]>
Commit | Line | Data |
---|---|---|
d55e5bfc RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
3 | * Version 1.3.22 | |
4 | * | |
5 | * This file is not intended to be easily readable and contains a number of | |
6 | * coding conventions designed to improve portability and efficiency. Do not make | |
7 | * changes to this file unless you know what you are doing--modify the SWIG | |
8 | * interface file instead. | |
9 | * ----------------------------------------------------------------------------- */ | |
10 | ||
11 | #define SWIGPYTHON | |
12 | #define SWIG_NOINCLUDE | |
13 | ||
14 | #ifdef __cplusplus | |
15 | template<class T> class SwigValueWrapper { | |
16 | T *tt; | |
17 | public: | |
18 | SwigValueWrapper() : tt(0) { } | |
19 | SwigValueWrapper(const SwigValueWrapper<T>& rhs) : tt(new T(*rhs.tt)) { } | |
20 | SwigValueWrapper(const T& t) : tt(new T(t)) { } | |
21 | ~SwigValueWrapper() { delete tt; } | |
22 | SwigValueWrapper& operator=(const T& t) { delete tt; tt = new T(t); return *this; } | |
23 | operator T&() const { return *tt; } | |
24 | T *operator&() { return tt; } | |
25 | private: | |
26 | SwigValueWrapper& operator=(const SwigValueWrapper<T>& rhs); | |
27 | }; | |
28 | #endif | |
29 | ||
30 | ||
31 | #include "Python.h" | |
32 | ||
33 | /*************************************************************** -*- c -*- | |
34 | * python/precommon.swg | |
35 | * | |
36 | * Rename all exported symbols from common.swg, to avoid symbol | |
37 | * clashes if multiple interpreters are included | |
38 | * | |
39 | ************************************************************************/ | |
40 | ||
41 | #define SWIG_TypeRegister SWIG_Python_TypeRegister | |
42 | #define SWIG_TypeCheck SWIG_Python_TypeCheck | |
43 | #define SWIG_TypeCast SWIG_Python_TypeCast | |
44 | #define SWIG_TypeDynamicCast SWIG_Python_TypeDynamicCast | |
45 | #define SWIG_TypeName SWIG_Python_TypeName | |
46 | #define SWIG_TypeQuery SWIG_Python_TypeQuery | |
47 | #define SWIG_TypeClientData SWIG_Python_TypeClientData | |
48 | #define SWIG_PackData SWIG_Python_PackData | |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
51 | ||
52 | /*********************************************************************** | |
53 | * common.swg for wxPython | |
54 | * | |
55 | * Include only the function prototypes and such from SWIG's common.swg, | |
56 | * but not the runtime functions themselves. This helps keep the | |
57 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
58 | * anyway. | |
59 | * | |
60 | ************************************************************************/ | |
61 | ||
62 | #include <string.h> | |
63 | ||
64 | #if defined(_WIN32) || defined(__WIN32__) || defined(__CYGWIN__) | |
65 | # if defined(_MSC_VER) || defined(__GNUC__) | |
66 | # if defined(STATIC_LINKED) | |
67 | # define SWIGEXPORT(a) a | |
68 | # define SWIGIMPORT(a) extern a | |
69 | # else | |
70 | # define SWIGEXPORT(a) __declspec(dllexport) a | |
71 | # define SWIGIMPORT(a) extern a | |
72 | # endif | |
73 | # else | |
74 | # if defined(__BORLANDC__) | |
75 | # define SWIGEXPORT(a) a _export | |
76 | # define SWIGIMPORT(a) a _export | |
77 | # else | |
78 | # define SWIGEXPORT(a) a | |
79 | # define SWIGIMPORT(a) a | |
80 | # endif | |
81 | # endif | |
82 | #else | |
83 | # define SWIGEXPORT(a) a | |
84 | # define SWIGIMPORT(a) a | |
85 | #endif | |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) | |
89 | #else | |
90 | # define SWIGRUNTIME(a) static a | |
91 | #endif | |
92 | ||
93 | #ifdef __cplusplus | |
94 | extern "C" { | |
95 | #endif | |
96 | ||
97 | typedef void *(*swig_converter_func)(void *); | |
98 | typedef struct swig_type_info *(*swig_dycast_func)(void **); | |
99 | ||
100 | typedef struct swig_type_info { | |
101 | const char *name; | |
102 | swig_converter_func converter; | |
103 | const char *str; | |
104 | void *clientdata; | |
105 | swig_dycast_func dcast; | |
106 | struct swig_type_info *next; | |
107 | struct swig_type_info *prev; | |
108 | } swig_type_info; | |
109 | ||
110 | ||
111 | SWIGIMPORT(swig_type_info *) SWIG_TypeRegister(swig_type_info *); | |
112 | SWIGIMPORT(swig_type_info *) SWIG_TypeCheck(char *c, swig_type_info *); | |
113 | SWIGIMPORT(void *) SWIG_TypeCast(swig_type_info *, void *); | |
114 | SWIGIMPORT(swig_type_info *) SWIG_TypeDynamicCast(swig_type_info *, void **); | |
115 | SWIGIMPORT(const char *) SWIG_TypeName(const swig_type_info *); | |
116 | SWIGIMPORT(swig_type_info *) SWIG_TypeQuery(const char *); | |
117 | SWIGIMPORT(void) SWIG_TypeClientData(swig_type_info *, void *); | |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); | |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
120 | ||
121 | ||
122 | #ifdef __cplusplus | |
123 | } | |
124 | #endif | |
125 | ||
126 | /*********************************************************************** | |
127 | * pyrun.swg for wxPython | |
128 | * | |
129 | * Include only the function prototypes and such from SWIG's pyrun.swg, | |
130 | * but not the runtime functions themselves. This helps keep the | |
131 | * wrapper files clean of unnecessary stuff that is in the libpy.c file | |
132 | * anyway. | |
133 | * | |
134 | ************************************************************************/ | |
135 | ||
136 | #include "Python.h" | |
137 | ||
138 | #ifdef __cplusplus | |
139 | extern "C" { | |
140 | #endif | |
141 | ||
142 | #define SWIG_PY_INT 1 | |
143 | #define SWIG_PY_FLOAT 2 | |
144 | #define SWIG_PY_STRING 3 | |
145 | #define SWIG_PY_POINTER 4 | |
146 | #define SWIG_PY_BINARY 5 | |
147 | ||
148 | /* Flags for pointer conversion */ | |
149 | ||
150 | #define SWIG_POINTER_EXCEPTION 0x1 | |
151 | #define SWIG_POINTER_DISOWN 0x2 | |
152 | ||
153 | /* Exception handling in wrappers */ | |
154 | #define SWIG_fail goto fail | |
155 | ||
156 | /* Constant information structure */ | |
157 | typedef struct swig_const_info { | |
158 | int type; | |
159 | char *name; | |
160 | long lvalue; | |
161 | double dvalue; | |
162 | void *pvalue; | |
163 | swig_type_info **ptype; | |
164 | } swig_const_info; | |
165 | ||
166 | /* Common SWIG API */ | |
167 | #define SWIG_ConvertPtr(obj, pp, type, flags) \ | |
168 | SWIG_Python_ConvertPtr(obj, pp, type, flags) | |
169 | #define SWIG_NewPointerObj(p, type, flags) \ | |
170 | SWIG_Python_NewPointerObj(p, type, flags) | |
171 | #define SWIG_MustGetPtr(p, type, argnum, flags) \ | |
172 | SWIG_Python_MustGetPtr(p, type, argnum, flags) | |
173 | ||
174 | /* Python-specific SWIG API */ | |
175 | #define SWIG_newvarlink() \ | |
176 | SWIG_Python_newvarlink() | |
177 | #define SWIG_addvarlink(p, name, get_attr, set_attr) \ | |
178 | SWIG_Python_addvarlink(p, name, get_attr, set_attr) | |
179 | #define SWIG_ConvertPacked(obj, ptr, sz, ty, flags) \ | |
180 | SWIG_Python_ConvertPacked(obj, ptr, sz, ty, flags) | |
181 | #define SWIG_NewPackedObj(ptr, sz, type) \ | |
182 | SWIG_Python_NewPackedObj(ptr, sz, type) | |
183 | #define SWIG_InstallConstants(d, constants) \ | |
184 | SWIG_Python_InstallConstants(d, constants) | |
185 | ||
186 | typedef double (*py_objasdbl_conv)(PyObject *obj); | |
187 | ||
188 | SWIGIMPORT(int) SWIG_Python_ConvertPtr(PyObject *, void **, swig_type_info *, int); | |
189 | SWIGIMPORT(PyObject *) SWIG_Python_NewPointerObj(void *, swig_type_info *,int own); | |
190 | SWIGIMPORT(void *) SWIG_Python_MustGetPtr(PyObject *, swig_type_info *, int, int); | |
191 | SWIGIMPORT(PyObject *) SWIG_Python_newvarlink(void); | |
192 | SWIGIMPORT(void) SWIG_Python_addvarlink(PyObject *, char *, PyObject *(*)(void), int (*)(PyObject *)); | |
193 | SWIGIMPORT(int) SWIG_Python_ConvertPacked(PyObject *, void *, int sz, swig_type_info *, int); | |
194 | SWIGIMPORT(PyObject *) SWIG_Python_NewPackedObj(void *, int sz, swig_type_info *); | |
195 | SWIGIMPORT(void) SWIG_Python_InstallConstants(PyObject *d, swig_const_info constants[]); | |
196 | ||
197 | ||
198 | /* Contract support */ | |
199 | ||
200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else | |
201 | ||
202 | #ifdef __cplusplus | |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
207 | /* -------- TYPES TABLE (BEGIN) -------- */ | |
208 | ||
209 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
212 | #define SWIGTYPE_p_wxCheckBox swig_types[3] | |
213 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
214 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
215 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
216 | #define SWIGTYPE_p_bool swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
218 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
219 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] | |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
238 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] | |
239 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
241 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
243 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
244 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
245 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
246 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
248 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
249 | #define SWIGTYPE_p_long swig_types[40] | |
250 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
251 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
253 | #define SWIGTYPE_p_wxListBox swig_types[44] | |
254 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
255 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
260 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
261 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
262 | #define SWIGTYPE_p_char swig_types[53] | |
263 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
264 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
265 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
266 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
267 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
268 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
269 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
270 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
271 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
272 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
273 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
274 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
275 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
276 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxObject swig_types[69] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
280 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
282 | #define SWIGTYPE_p_wxString swig_types[73] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
284 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
288 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
289 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
293 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
295 | ||
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
300 | @(target):= _controls_.so | |
301 | ------------------------------------------------*/ | |
302 | #define SWIG_init init_controls_ | |
303 | ||
304 | #define SWIG_name "_controls_" | |
305 | ||
306 | /* Auxiliar swig macros */ | |
307 | ||
308 | #ifdef __cplusplus | |
309 | #define SWIGSTATICINLINE(a) static inline a | |
310 | #define SWIGSTATIC(a) static a | |
311 | #define swig_new_array(type, size) (new type[(size)]) | |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
316 | ||
317 | #ifdef HAVE_NUMERIC_CAST | |
318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) | |
319 | #else | |
320 | #define swig_numeric_cast(type,a) static_cast<type>(a) | |
321 | #endif | |
322 | ||
323 | #else /* C case */ | |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
335 | ||
336 | ||
337 | #define SWIG_FromSignedChar PyInt_FromLong | |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
347 | ||
348 | ||
349 | #include "wx/wxPython/wxPython.h" | |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); | |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
355 | ||
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); | |
359 | ||
360 | #include <limits.h> | |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
390 | if (PyNumber_Check(obj)) | |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
399 | } | |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
405 | { | |
406 | return swig_numeric_cast(int, | |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
409 | } | |
410 | #else | |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
413 | ||
414 | ||
415 | SWIGSTATICINLINE(int) | |
416 | SWIG_CheckInt(PyObject* obj) | |
417 | { | |
418 | SWIG_AsInt(obj); | |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
438 | } | |
439 | ||
440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); | |
441 | ||
442 | SWIGSTATICINLINE(bool) | |
443 | SWIG_AsBool(PyObject *obj) | |
444 | { | |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
448 | ||
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
461 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); | |
462 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
463 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
464 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
465 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
466 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
467 | ||
468 | #include <wx/checklst.h> | |
469 | ||
470 | ||
471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); | |
472 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ | |
473 | if (clientData) { | |
474 | wxPyClientData* data = new wxPyClientData(clientData); | |
475 | self->Insert(item, pos, data); | |
476 | } else | |
477 | self->Insert(item, pos); | |
478 | } | |
479 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
480 | wxArrayInt lst; | |
481 | self->GetSelections(lst); | |
482 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
483 | for(size_t i=0; i<lst.GetCount(); i++) { | |
484 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
485 | } | |
486 | return tup; | |
487 | } | |
488 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ | |
489 | #ifdef __WXMSW__ | |
490 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
491 | self->GetItem(item)->SetTextColour(c); | |
492 | #endif | |
493 | } | |
494 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
495 | #ifdef __WXMSW__ | |
496 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
497 | self->GetItem(item)->SetBackgroundColour(c); | |
498 | #endif | |
499 | } | |
500 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
501 | #ifdef __WXMSW__ | |
502 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
503 | self->GetItem(item)->SetFont(f); | |
504 | #endif | |
505 | } | |
506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); | |
507 | ||
508 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
509 | PyObject* o2; | |
510 | PyObject* o3; | |
511 | ||
512 | if (!target) { | |
513 | target = o; | |
514 | } else if (target == Py_None) { | |
515 | Py_DECREF(Py_None); | |
516 | target = o; | |
517 | } else { | |
518 | if (!PyTuple_Check(target)) { | |
519 | o2 = target; | |
520 | target = PyTuple_New(1); | |
521 | PyTuple_SetItem(target, 0, o2); | |
522 | } | |
523 | o3 = PyTuple_New(1); | |
524 | PyTuple_SetItem(o3, 0, o); | |
525 | ||
526 | o2 = target; | |
527 | target = PySequence_Concat(o2, o3); | |
528 | Py_DECREF(o2); | |
529 | Py_DECREF(o3); | |
530 | } | |
531 | return target; | |
532 | } | |
533 | ||
534 | ||
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
541 | long i = SWIG_AsLong(obj); | |
542 | if ( !PyErr_Occurred() && (i < 0)) { | |
543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); | |
544 | } | |
545 | return i; | |
546 | } | |
547 | } | |
548 | ||
549 | ||
550 | SWIGSTATICINLINE(int) | |
551 | SWIG_CheckUnsignedLong(PyObject* obj) | |
552 | { | |
553 | SWIG_AsUnsignedLong(obj); | |
554 | if (PyErr_Occurred()) { | |
555 | PyErr_Clear(); | |
556 | return 0; | |
557 | } else { | |
558 | return 1; | |
559 | } | |
560 | } | |
561 | ||
562 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ | |
563 | self->AppendText(text); | |
564 | } | |
565 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
566 | return self->GetValue().Mid(from, to - from); | |
567 | } | |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); | |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); | |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); | |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
573 | ||
574 | #include <wx/slider.h> | |
575 | ||
576 | ||
577 | static const wxString wxPySliderNameStr(wxSliderNameStr); | |
578 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); | |
579 | ||
580 | #if !wxUSE_TOGGLEBTN | |
581 | // implement dummy items for platforms that don't have this class | |
582 | ||
583 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
584 | ||
585 | class wxToggleButton : public wxControl | |
586 | { | |
587 | public: | |
588 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
589 | const wxPoint&, const wxSize&, long, | |
590 | const wxValidator&, const wxString&) | |
591 | { wxPyRaiseNotImplemented(); } | |
592 | ||
593 | wxToggleButton() | |
594 | { wxPyRaiseNotImplemented(); } | |
595 | }; | |
596 | #endif | |
597 | ||
598 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); | |
599 | ||
600 | SWIGSTATICINLINE(PyObject* ) | |
601 | SWIG_FromUnsignedLong(unsigned long value) | |
602 | { | |
603 | return (value > LONG_MAX) ? | |
604 | PyLong_FromUnsignedLong(value) | |
605 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
606 | } | |
607 | ||
608 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); | |
609 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ | |
610 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
611 | if (udata) { | |
612 | Py_INCREF(udata->m_obj); | |
613 | return udata->m_obj; | |
614 | } else { | |
615 | Py_INCREF(Py_None); | |
616 | return Py_None; | |
617 | } | |
618 | } | |
619 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
620 | self->SetClientData(new wxPyUserData(clientData)); | |
621 | } | |
622 | wxToolBarToolBase *wxToolBarBase_DoAddTool(wxToolBarBase *self,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
623 | wxPyUserData* udata = NULL; | |
624 | if (clientData && clientData != Py_None) | |
625 | udata = new wxPyUserData(clientData); | |
626 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
627 | shortHelp, longHelp, udata); | |
628 | } | |
629 | wxToolBarToolBase *wxToolBarBase_DoInsertTool(wxToolBarBase *self,size_t pos,int id,wxString const &label,wxBitmap const &bitmap,wxBitmap const &bmpDisabled,wxItemKind kind,wxString const &shortHelp,wxString const &longHelp,PyObject *clientData){ | |
630 | wxPyUserData* udata = NULL; | |
631 | if (clientData && clientData != Py_None) | |
632 | udata = new wxPyUserData(clientData); | |
633 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
634 | shortHelp, longHelp, udata); | |
635 | } | |
636 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
637 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
638 | if (udata) { | |
639 | Py_INCREF(udata->m_obj); | |
640 | return udata->m_obj; | |
641 | } else { | |
642 | Py_INCREF(Py_None); | |
643 | return Py_None; | |
644 | } | |
645 | } | |
646 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
647 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
648 | } | |
649 | ||
650 | #include <wx/listctrl.h> | |
651 | ||
652 | ||
653 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); | |
654 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
655 | // Python aware sorting function for wxPyListCtrl | |
656 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
657 | int retval = 0; | |
658 | PyObject* func = (PyObject*)funcPtr; | |
659 | bool blocked = wxPyBeginBlockThreads(); | |
660 | ||
661 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
662 | PyObject* result = PyEval_CallObject(func, args); | |
663 | Py_DECREF(args); | |
664 | if (result) { | |
665 | retval = PyInt_AsLong(result); | |
666 | Py_DECREF(result); | |
667 | } | |
668 | ||
669 | wxPyEndBlockThreads(blocked); | |
670 | return retval; | |
671 | } | |
672 | ||
673 | // C++ Version of a Python aware class | |
674 | class wxPyListCtrl : public wxListCtrl { | |
675 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
676 | public: | |
677 | wxPyListCtrl() : wxListCtrl() {} | |
678 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
679 | const wxPoint& pos, | |
680 | const wxSize& size, | |
681 | long style, | |
682 | const wxValidator& validator, | |
683 | const wxString& name) : | |
684 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
685 | ||
686 | bool Create(wxWindow* parent, wxWindowID id, | |
687 | const wxPoint& pos, | |
688 | const wxSize& size, | |
689 | long style, | |
690 | const wxValidator& validator, | |
691 | const wxString& name) { | |
692 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
693 | } | |
694 | ||
695 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
696 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
697 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
698 | ||
699 | PYPRIVATE; | |
700 | }; | |
701 | ||
702 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
703 | ||
704 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
705 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
706 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
707 | ||
708 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
709 | wxListItem item; | |
710 | item.SetMask( wxLIST_MASK_STATE | | |
711 | wxLIST_MASK_TEXT | | |
712 | wxLIST_MASK_IMAGE | | |
713 | wxLIST_MASK_DATA | | |
714 | wxLIST_SET_ITEM | | |
715 | wxLIST_MASK_WIDTH | | |
716 | wxLIST_MASK_FORMAT | |
717 | ); | |
718 | if (self->GetColumn(col, item)) | |
719 | return new wxListItem(item); | |
720 | else | |
721 | return NULL; | |
722 | } | |
723 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
724 | wxListItem* info = new wxListItem; | |
725 | info->m_itemId = itemId; | |
726 | info->m_col = col; | |
727 | info->m_mask = 0xFFFF; | |
728 | self->GetItem(*info); | |
729 | return info; | |
730 | } | |
731 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
732 | wxPoint pos; | |
733 | self->GetItemPosition(item, pos); | |
734 | return pos; | |
735 | } | |
736 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
737 | wxRect rect; | |
738 | self->GetItemRect(item, rect, code); | |
739 | return rect; | |
740 | } | |
741 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
742 | if (!PyCallable_Check(func)) | |
743 | return False; | |
744 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
745 | } | |
746 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
747 | ||
748 | return self; | |
749 | ||
750 | ||
751 | ||
752 | } | |
753 | ||
754 | #include <wx/treectrl.h> | |
755 | #include "wx/wxPython/pytree.h" | |
756 | ||
757 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
758 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
759 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
760 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
761 | // C++ version of Python aware wxTreeCtrl | |
762 | class wxPyTreeCtrl : public wxTreeCtrl { | |
763 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
764 | public: | |
765 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
766 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
767 | const wxPoint& pos, | |
768 | const wxSize& size, | |
769 | long style, | |
770 | const wxValidator& validator, | |
771 | const wxString& name) : | |
772 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
773 | ||
774 | bool Create(wxWindow *parent, wxWindowID id, | |
775 | const wxPoint& pos, | |
776 | const wxSize& size, | |
777 | long style, | |
778 | const wxValidator& validator, | |
779 | const wxString& name) { | |
780 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
781 | } | |
782 | ||
783 | ||
784 | int OnCompareItems(const wxTreeItemId& item1, | |
785 | const wxTreeItemId& item2) { | |
786 | int rval = 0; | |
787 | bool found; | |
788 | bool blocked = wxPyBeginBlockThreads(); | |
789 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
790 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
791 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
792 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
793 | Py_DECREF(o1); | |
794 | Py_DECREF(o2); | |
795 | } | |
796 | wxPyEndBlockThreads(blocked); | |
797 | if (! found) | |
798 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
799 | return rval; | |
800 | } | |
801 | PYPRIVATE; | |
802 | }; | |
803 | ||
804 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
805 | ||
806 | ||
807 | ||
808 | #if UINT_MAX < LONG_MAX | |
809 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
810 | #else | |
811 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
812 | #endif | |
813 | ||
814 | ||
815 | SWIGSTATICINLINE(unsigned long) | |
816 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
817 | unsigned long max_value) | |
818 | { | |
819 | if (!PyErr_Occurred()) { | |
820 | if (value > max_value) { | |
821 | PyObject *err = | |
822 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
823 | value, type, max_value); | |
824 | PyErr_SetObject(PyExc_OverflowError, err); | |
825 | Py_DECREF(err); | |
826 | } | |
827 | } | |
828 | return value; | |
829 | } | |
830 | ||
831 | ||
832 | #if UINT_MAX != ULONG_MAX | |
833 | SWIGSTATICINLINE(unsigned int) | |
834 | SWIG_AsUnsignedInt(PyObject *obj) | |
835 | { | |
836 | return swig_numeric_cast(unsigned int, | |
837 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
838 | "unsigned int", UINT_MAX)); | |
839 | } | |
840 | #else | |
841 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
842 | #endif | |
843 | ||
844 | ||
845 | SWIGSTATICINLINE(int) | |
846 | SWIG_CheckUnsignedInt(PyObject* obj) | |
847 | { | |
848 | SWIG_AsUnsignedInt(obj); | |
849 | if (PyErr_Occurred()) { | |
850 | PyErr_Clear(); | |
851 | return 0; | |
852 | } else { | |
853 | return 1; | |
854 | } | |
855 | } | |
856 | ||
857 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
858 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
859 | if (data == NULL) { | |
860 | data = new wxPyTreeItemData(); | |
861 | data->SetId(item); // set the id | |
862 | self->SetItemData(item, data); | |
863 | } | |
864 | return data; | |
865 | } | |
866 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
867 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
868 | if (data == NULL) { | |
869 | data = new wxPyTreeItemData(); | |
870 | data->SetId(item); // set the id | |
871 | self->SetItemData(item, data); | |
872 | } | |
873 | return data->GetData(); | |
874 | } | |
875 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
876 | data->SetId(item); // set the id | |
877 | self->SetItemData(item, data); | |
878 | } | |
879 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
880 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
881 | if (data == NULL) { | |
882 | data = new wxPyTreeItemData(obj); | |
883 | data->SetId(item); // set the id | |
884 | self->SetItemData(item, data); | |
885 | } else | |
886 | data->SetData(obj); | |
887 | } | |
888 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
889 | bool blocked = wxPyBeginBlockThreads(); | |
890 | PyObject* rval = PyList_New(0); | |
891 | wxArrayTreeItemIds array; | |
892 | size_t num, x; | |
893 | num = self->GetSelections(array); | |
894 | for (x=0; x < num; x++) { | |
895 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
896 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
897 | PyList_Append(rval, item); | |
898 | } | |
899 | wxPyEndBlockThreads(blocked); | |
900 | return rval; | |
901 | } | |
902 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
903 | void* cookie = 0; | |
904 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
905 | bool blocked = wxPyBeginBlockThreads(); | |
906 | PyObject* tup = PyTuple_New(2); | |
907 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
908 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
909 | wxPyEndBlockThreads(blocked); | |
910 | return tup; | |
911 | } | |
912 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ | |
913 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
914 | bool blocked = wxPyBeginBlockThreads(); | |
915 | PyObject* tup = PyTuple_New(2); | |
916 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); | |
917 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
918 | wxPyEndBlockThreads(blocked); | |
919 | return tup; | |
920 | } | |
921 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
922 | wxRect rect; | |
923 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
924 | bool blocked = wxPyBeginBlockThreads(); | |
925 | wxRect* r = new wxRect(rect); | |
926 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); | |
927 | wxPyEndBlockThreads(blocked); | |
928 | return val; | |
929 | } | |
930 | else | |
931 | RETURN_NONE(); | |
932 | } | |
933 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); | |
934 | // C++ version of Python aware wxControl | |
935 | class wxPyControl : public wxControl | |
936 | { | |
937 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
938 | public: | |
939 | wxPyControl() : wxControl() {} | |
940 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
941 | const wxPoint& pos = wxDefaultPosition, | |
942 | const wxSize& size = wxDefaultSize, | |
943 | long style = 0, | |
944 | const wxValidator& validator=wxDefaultValidator, | |
945 | const wxString& name = wxPyControlNameStr) | |
946 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
947 | ||
948 | ||
949 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
950 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
951 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
952 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
953 | ||
954 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
957 | ||
958 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
959 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
960 | ||
961 | DEC_PYCALLBACK__(InitDialog); | |
962 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
963 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
964 | DEC_PYCALLBACK_BOOL_(Validate); | |
965 | ||
966 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
967 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
968 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
969 | ||
970 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
971 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
972 | ||
973 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); | |
974 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); | |
975 | ||
976 | PYPRIVATE; | |
977 | }; | |
978 | ||
979 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
980 | ||
981 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
982 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
983 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
984 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
985 | ||
986 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
987 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
988 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
989 | ||
990 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
991 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
992 | ||
993 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
994 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
995 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
996 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
997 | ||
998 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
999 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1000 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1001 | ||
1002 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1003 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1004 | ||
1005 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); | |
1006 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); | |
1007 | ||
1008 | ||
1009 | ||
1010 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1011 | ||
1012 | #include <wx/generic/dragimgg.h> | |
1013 | ||
1014 | #ifdef __cplusplus | |
1015 | extern "C" { | |
1016 | #endif | |
1017 | static int _wrap_ButtonNameStr_set(PyObject *_val) { | |
1018 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1019 | return 1; | |
1020 | } | |
1021 | ||
1022 | ||
1023 | static PyObject *_wrap_ButtonNameStr_get() { | |
1024 | PyObject *pyobj; | |
1025 | ||
1026 | { | |
1027 | #if wxUSE_UNICODE | |
1028 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1029 | #else | |
1030 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1031 | #endif | |
1032 | } | |
1033 | return pyobj; | |
1034 | } | |
1035 | ||
1036 | ||
1037 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1038 | PyObject *resultobj; | |
1039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1040 | int arg2 ; | |
1041 | wxString *arg3 = 0 ; | |
1042 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1043 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1044 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1045 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1046 | long arg6 = (long) 0 ; | |
1047 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1048 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1049 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1050 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1051 | wxButton *result; | |
1052 | bool temp3 = False ; | |
1053 | wxPoint temp4 ; | |
1054 | wxSize temp5 ; | |
1055 | bool temp8 = False ; | |
1056 | PyObject * obj0 = 0 ; | |
1057 | PyObject * obj1 = 0 ; | |
1058 | PyObject * obj2 = 0 ; | |
1059 | PyObject * obj3 = 0 ; | |
1060 | PyObject * obj4 = 0 ; | |
1061 | PyObject * obj5 = 0 ; | |
1062 | PyObject * obj6 = 0 ; | |
1063 | PyObject * obj7 = 0 ; | |
1064 | char *kwnames[] = { | |
1065 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1066 | }; | |
1067 | ||
1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1071 | arg2 = (int) SWIG_AsInt(obj1); | |
1072 | if (PyErr_Occurred()) SWIG_fail; | |
1073 | { | |
1074 | arg3 = wxString_in_helper(obj2); | |
1075 | if (arg3 == NULL) SWIG_fail; | |
1076 | temp3 = True; | |
1077 | } | |
1078 | if (obj3) { | |
1079 | { | |
1080 | arg4 = &temp4; | |
1081 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1082 | } | |
1083 | } | |
1084 | if (obj4) { | |
1085 | { | |
1086 | arg5 = &temp5; | |
1087 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1088 | } | |
1089 | } | |
1090 | if (obj5) { | |
1091 | arg6 = (long) SWIG_AsLong(obj5); | |
1092 | if (PyErr_Occurred()) SWIG_fail; | |
1093 | } | |
1094 | if (obj6) { | |
1095 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1097 | SWIG_fail; | |
1098 | if (arg7 == NULL) { | |
1099 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1100 | SWIG_fail; | |
1101 | } | |
1102 | } | |
1103 | if (obj7) { | |
1104 | { | |
1105 | arg8 = wxString_in_helper(obj7); | |
1106 | if (arg8 == NULL) SWIG_fail; | |
1107 | temp8 = True; | |
1108 | } | |
1109 | } | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) SWIG_fail; | |
1116 | } | |
1117 | { | |
1118 | resultobj = wxPyMake_wxObject(result); | |
1119 | } | |
1120 | { | |
1121 | if (temp3) | |
1122 | delete arg3; | |
1123 | } | |
1124 | { | |
1125 | if (temp8) | |
1126 | delete arg8; | |
1127 | } | |
1128 | return resultobj; | |
1129 | fail: | |
1130 | { | |
1131 | if (temp3) | |
1132 | delete arg3; | |
1133 | } | |
1134 | { | |
1135 | if (temp8) | |
1136 | delete arg8; | |
1137 | } | |
1138 | return NULL; | |
1139 | } | |
1140 | ||
1141 | ||
1142 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject *resultobj; | |
1144 | wxButton *result; | |
1145 | char *kwnames[] = { | |
1146 | NULL | |
1147 | }; | |
1148 | ||
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1150 | { | |
1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1152 | result = (wxButton *)new wxButton(); | |
1153 | ||
1154 | wxPyEndAllowThreads(__tstate); | |
1155 | if (PyErr_Occurred()) SWIG_fail; | |
1156 | } | |
1157 | { | |
1158 | resultobj = wxPyMake_wxObject(result); | |
1159 | } | |
1160 | return resultobj; | |
1161 | fail: | |
1162 | return NULL; | |
1163 | } | |
1164 | ||
1165 | ||
1166 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1167 | PyObject *resultobj; | |
1168 | wxButton *arg1 = (wxButton *) 0 ; | |
1169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1170 | int arg3 ; | |
1171 | wxString *arg4 = 0 ; | |
1172 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1173 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1174 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1175 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1176 | long arg7 = (long) 0 ; | |
1177 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1178 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1179 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1180 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1181 | bool result; | |
1182 | bool temp4 = False ; | |
1183 | wxPoint temp5 ; | |
1184 | wxSize temp6 ; | |
1185 | bool temp9 = False ; | |
1186 | PyObject * obj0 = 0 ; | |
1187 | PyObject * obj1 = 0 ; | |
1188 | PyObject * obj2 = 0 ; | |
1189 | PyObject * obj3 = 0 ; | |
1190 | PyObject * obj4 = 0 ; | |
1191 | PyObject * obj5 = 0 ; | |
1192 | PyObject * obj6 = 0 ; | |
1193 | PyObject * obj7 = 0 ; | |
1194 | PyObject * obj8 = 0 ; | |
1195 | char *kwnames[] = { | |
1196 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1197 | }; | |
1198 | ||
1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1204 | arg3 = (int) SWIG_AsInt(obj2); | |
1205 | if (PyErr_Occurred()) SWIG_fail; | |
1206 | { | |
1207 | arg4 = wxString_in_helper(obj3); | |
1208 | if (arg4 == NULL) SWIG_fail; | |
1209 | temp4 = True; | |
1210 | } | |
1211 | if (obj4) { | |
1212 | { | |
1213 | arg5 = &temp5; | |
1214 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1215 | } | |
1216 | } | |
1217 | if (obj5) { | |
1218 | { | |
1219 | arg6 = &temp6; | |
1220 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1221 | } | |
1222 | } | |
1223 | if (obj6) { | |
1224 | arg7 = (long) SWIG_AsLong(obj6); | |
1225 | if (PyErr_Occurred()) SWIG_fail; | |
1226 | } | |
1227 | if (obj7) { | |
1228 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1230 | SWIG_fail; | |
1231 | if (arg8 == NULL) { | |
1232 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1233 | SWIG_fail; | |
1234 | } | |
1235 | } | |
1236 | if (obj8) { | |
1237 | { | |
1238 | arg9 = wxString_in_helper(obj8); | |
1239 | if (arg9 == NULL) SWIG_fail; | |
1240 | temp9 = True; | |
1241 | } | |
1242 | } | |
1243 | { | |
1244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1245 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1246 | ||
1247 | wxPyEndAllowThreads(__tstate); | |
1248 | if (PyErr_Occurred()) SWIG_fail; | |
1249 | } | |
1250 | { | |
1251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1252 | } | |
1253 | { | |
1254 | if (temp4) | |
1255 | delete arg4; | |
1256 | } | |
1257 | { | |
1258 | if (temp9) | |
1259 | delete arg9; | |
1260 | } | |
1261 | return resultobj; | |
1262 | fail: | |
1263 | { | |
1264 | if (temp4) | |
1265 | delete arg4; | |
1266 | } | |
1267 | { | |
1268 | if (temp9) | |
1269 | delete arg9; | |
1270 | } | |
1271 | return NULL; | |
1272 | } | |
1273 | ||
1274 | ||
1275 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject *resultobj; | |
1277 | wxButton *arg1 = (wxButton *) 0 ; | |
1278 | PyObject * obj0 = 0 ; | |
1279 | char *kwnames[] = { | |
1280 | (char *) "self", NULL | |
1281 | }; | |
1282 | ||
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1286 | { | |
1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1288 | (arg1)->SetDefault(); | |
1289 | ||
1290 | wxPyEndAllowThreads(__tstate); | |
1291 | if (PyErr_Occurred()) SWIG_fail; | |
1292 | } | |
1293 | Py_INCREF(Py_None); resultobj = Py_None; | |
1294 | return resultobj; | |
1295 | fail: | |
1296 | return NULL; | |
1297 | } | |
1298 | ||
1299 | ||
1300 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1301 | PyObject *resultobj; | |
1302 | wxSize result; | |
1303 | char *kwnames[] = { | |
1304 | NULL | |
1305 | }; | |
1306 | ||
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1308 | { | |
1309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1310 | result = wxButton::GetDefaultSize(); | |
1311 | ||
1312 | wxPyEndAllowThreads(__tstate); | |
1313 | if (PyErr_Occurred()) SWIG_fail; | |
1314 | } | |
1315 | { | |
1316 | wxSize * resultptr; | |
1317 | resultptr = new wxSize((wxSize &) result); | |
1318 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1319 | } | |
1320 | return resultobj; | |
1321 | fail: | |
1322 | return NULL; | |
1323 | } | |
1324 | ||
1325 | ||
1326 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1327 | PyObject *obj; | |
1328 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1329 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1330 | Py_INCREF(obj); | |
1331 | return Py_BuildValue((char *)""); | |
1332 | } | |
1333 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject *resultobj; | |
1335 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1336 | int arg2 ; | |
1337 | wxBitmap *arg3 = 0 ; | |
1338 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1339 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1340 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1341 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1342 | long arg6 = (long) wxBU_AUTODRAW ; | |
1343 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1344 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1345 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1346 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1347 | wxBitmapButton *result; | |
1348 | wxPoint temp4 ; | |
1349 | wxSize temp5 ; | |
1350 | bool temp8 = False ; | |
1351 | PyObject * obj0 = 0 ; | |
1352 | PyObject * obj1 = 0 ; | |
1353 | PyObject * obj2 = 0 ; | |
1354 | PyObject * obj3 = 0 ; | |
1355 | PyObject * obj4 = 0 ; | |
1356 | PyObject * obj5 = 0 ; | |
1357 | PyObject * obj6 = 0 ; | |
1358 | PyObject * obj7 = 0 ; | |
1359 | char *kwnames[] = { | |
1360 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1361 | }; | |
1362 | ||
1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1366 | arg2 = (int) SWIG_AsInt(obj1); | |
1367 | if (PyErr_Occurred()) SWIG_fail; | |
1368 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1369 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1370 | SWIG_fail; | |
1371 | if (arg3 == NULL) { | |
1372 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1373 | SWIG_fail; | |
1374 | } | |
1375 | if (obj3) { | |
1376 | { | |
1377 | arg4 = &temp4; | |
1378 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1379 | } | |
1380 | } | |
1381 | if (obj4) { | |
1382 | { | |
1383 | arg5 = &temp5; | |
1384 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1385 | } | |
1386 | } | |
1387 | if (obj5) { | |
1388 | arg6 = (long) SWIG_AsLong(obj5); | |
1389 | if (PyErr_Occurred()) SWIG_fail; | |
1390 | } | |
1391 | if (obj6) { | |
1392 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1394 | SWIG_fail; | |
1395 | if (arg7 == NULL) { | |
1396 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1397 | SWIG_fail; | |
1398 | } | |
1399 | } | |
1400 | if (obj7) { | |
1401 | { | |
1402 | arg8 = wxString_in_helper(obj7); | |
1403 | if (arg8 == NULL) SWIG_fail; | |
1404 | temp8 = True; | |
1405 | } | |
1406 | } | |
1407 | { | |
1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1409 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1410 | ||
1411 | wxPyEndAllowThreads(__tstate); | |
1412 | if (PyErr_Occurred()) SWIG_fail; | |
1413 | } | |
1414 | { | |
1415 | resultobj = wxPyMake_wxObject(result); | |
1416 | } | |
1417 | { | |
1418 | if (temp8) | |
1419 | delete arg8; | |
1420 | } | |
1421 | return resultobj; | |
1422 | fail: | |
1423 | { | |
1424 | if (temp8) | |
1425 | delete arg8; | |
1426 | } | |
1427 | return NULL; | |
1428 | } | |
1429 | ||
1430 | ||
1431 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject *resultobj; | |
1433 | wxBitmapButton *result; | |
1434 | char *kwnames[] = { | |
1435 | NULL | |
1436 | }; | |
1437 | ||
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1439 | { | |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | { | |
1447 | resultobj = wxPyMake_wxObject(result); | |
1448 | } | |
1449 | return resultobj; | |
1450 | fail: | |
1451 | return NULL; | |
1452 | } | |
1453 | ||
1454 | ||
1455 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1456 | PyObject *resultobj; | |
1457 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
1459 | int arg3 ; | |
1460 | wxBitmap *arg4 = 0 ; | |
1461 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1462 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1463 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1464 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1465 | long arg7 = (long) wxBU_AUTODRAW ; | |
1466 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1467 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1468 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1469 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1470 | bool result; | |
1471 | wxPoint temp5 ; | |
1472 | wxSize temp6 ; | |
1473 | bool temp9 = False ; | |
1474 | PyObject * obj0 = 0 ; | |
1475 | PyObject * obj1 = 0 ; | |
1476 | PyObject * obj2 = 0 ; | |
1477 | PyObject * obj3 = 0 ; | |
1478 | PyObject * obj4 = 0 ; | |
1479 | PyObject * obj5 = 0 ; | |
1480 | PyObject * obj6 = 0 ; | |
1481 | PyObject * obj7 = 0 ; | |
1482 | PyObject * obj8 = 0 ; | |
1483 | char *kwnames[] = { | |
1484 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1485 | }; | |
1486 | ||
1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
1488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1492 | arg3 = (int) SWIG_AsInt(obj2); | |
1493 | if (PyErr_Occurred()) SWIG_fail; | |
1494 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1496 | SWIG_fail; | |
1497 | if (arg4 == NULL) { | |
1498 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1499 | SWIG_fail; | |
1500 | } | |
1501 | if (obj4) { | |
1502 | { | |
1503 | arg5 = &temp5; | |
1504 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1505 | } | |
1506 | } | |
1507 | if (obj5) { | |
1508 | { | |
1509 | arg6 = &temp6; | |
1510 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1511 | } | |
1512 | } | |
1513 | if (obj6) { | |
1514 | arg7 = (long) SWIG_AsLong(obj6); | |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
1516 | } | |
1517 | if (obj7) { | |
1518 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1520 | SWIG_fail; | |
1521 | if (arg8 == NULL) { | |
1522 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1523 | SWIG_fail; | |
1524 | } | |
1525 | } | |
1526 | if (obj8) { | |
1527 | { | |
1528 | arg9 = wxString_in_helper(obj8); | |
1529 | if (arg9 == NULL) SWIG_fail; | |
1530 | temp9 = True; | |
1531 | } | |
1532 | } | |
1533 | { | |
1534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1535 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1536 | ||
1537 | wxPyEndAllowThreads(__tstate); | |
1538 | if (PyErr_Occurred()) SWIG_fail; | |
1539 | } | |
1540 | { | |
1541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1542 | } | |
1543 | { | |
1544 | if (temp9) | |
1545 | delete arg9; | |
1546 | } | |
1547 | return resultobj; | |
1548 | fail: | |
1549 | { | |
1550 | if (temp9) | |
1551 | delete arg9; | |
1552 | } | |
1553 | return NULL; | |
1554 | } | |
1555 | ||
1556 | ||
1557 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1558 | PyObject *resultobj; | |
1559 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1560 | wxBitmap result; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "self", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1569 | { | |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | result = (arg1)->GetBitmapLabel(); | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | { | |
1577 | wxBitmap * resultptr; | |
1578 | resultptr = new wxBitmap((wxBitmap &) result); | |
1579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1580 | } | |
1581 | return resultobj; | |
1582 | fail: | |
1583 | return NULL; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject *resultobj; | |
1589 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1590 | wxBitmap result; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1599 | { | |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | result = (arg1)->GetBitmapDisabled(); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | } | |
1606 | { | |
1607 | wxBitmap * resultptr; | |
1608 | resultptr = new wxBitmap((wxBitmap &) result); | |
1609 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1610 | } | |
1611 | return resultobj; | |
1612 | fail: | |
1613 | return NULL; | |
1614 | } | |
1615 | ||
1616 | ||
1617 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1618 | PyObject *resultobj; | |
1619 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1620 | wxBitmap result; | |
1621 | PyObject * obj0 = 0 ; | |
1622 | char *kwnames[] = { | |
1623 | (char *) "self", NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1629 | { | |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | result = (arg1)->GetBitmapFocus(); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | { | |
1637 | wxBitmap * resultptr; | |
1638 | resultptr = new wxBitmap((wxBitmap &) result); | |
1639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1640 | } | |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1650 | wxBitmap result; | |
1651 | PyObject * obj0 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "self", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1659 | { | |
1660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1661 | result = (arg1)->GetBitmapSelected(); | |
1662 | ||
1663 | wxPyEndAllowThreads(__tstate); | |
1664 | if (PyErr_Occurred()) SWIG_fail; | |
1665 | } | |
1666 | { | |
1667 | wxBitmap * resultptr; | |
1668 | resultptr = new wxBitmap((wxBitmap &) result); | |
1669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1670 | } | |
1671 | return resultobj; | |
1672 | fail: | |
1673 | return NULL; | |
1674 | } | |
1675 | ||
1676 | ||
1677 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject *resultobj; | |
1679 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1680 | wxBitmap *arg2 = 0 ; | |
1681 | PyObject * obj0 = 0 ; | |
1682 | PyObject * obj1 = 0 ; | |
1683 | char *kwnames[] = { | |
1684 | (char *) "self",(char *) "bitmap", NULL | |
1685 | }; | |
1686 | ||
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1691 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1692 | SWIG_fail; | |
1693 | if (arg2 == NULL) { | |
1694 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1695 | SWIG_fail; | |
1696 | } | |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | Py_INCREF(Py_None); resultobj = Py_None; | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1714 | wxBitmap *arg2 = 0 ; | |
1715 | PyObject * obj0 = 0 ; | |
1716 | PyObject * obj1 = 0 ; | |
1717 | char *kwnames[] = { | |
1718 | (char *) "self",(char *) "bitmap", NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1726 | SWIG_fail; | |
1727 | if (arg2 == NULL) { | |
1728 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1729 | SWIG_fail; | |
1730 | } | |
1731 | { | |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | Py_INCREF(Py_None); resultobj = Py_None; | |
1739 | return resultobj; | |
1740 | fail: | |
1741 | return NULL; | |
1742 | } | |
1743 | ||
1744 | ||
1745 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1746 | PyObject *resultobj; | |
1747 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1748 | wxBitmap *arg2 = 0 ; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | PyObject * obj1 = 0 ; | |
1751 | char *kwnames[] = { | |
1752 | (char *) "self",(char *) "bitmap", NULL | |
1753 | }; | |
1754 | ||
1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1760 | SWIG_fail; | |
1761 | if (arg2 == NULL) { | |
1762 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1763 | SWIG_fail; | |
1764 | } | |
1765 | { | |
1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1767 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1768 | ||
1769 | wxPyEndAllowThreads(__tstate); | |
1770 | if (PyErr_Occurred()) SWIG_fail; | |
1771 | } | |
1772 | Py_INCREF(Py_None); resultobj = Py_None; | |
1773 | return resultobj; | |
1774 | fail: | |
1775 | return NULL; | |
1776 | } | |
1777 | ||
1778 | ||
1779 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1780 | PyObject *resultobj; | |
1781 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1782 | wxBitmap *arg2 = 0 ; | |
1783 | PyObject * obj0 = 0 ; | |
1784 | PyObject * obj1 = 0 ; | |
1785 | char *kwnames[] = { | |
1786 | (char *) "self",(char *) "bitmap", NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1794 | SWIG_fail; | |
1795 | if (arg2 == NULL) { | |
1796 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1797 | SWIG_fail; | |
1798 | } | |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
1806 | Py_INCREF(Py_None); resultobj = Py_None; | |
1807 | return resultobj; | |
1808 | fail: | |
1809 | return NULL; | |
1810 | } | |
1811 | ||
1812 | ||
1813 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject *resultobj; | |
1815 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1816 | int arg2 ; | |
1817 | int arg3 ; | |
1818 | PyObject * obj0 = 0 ; | |
1819 | PyObject * obj1 = 0 ; | |
1820 | PyObject * obj2 = 0 ; | |
1821 | char *kwnames[] = { | |
1822 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1823 | }; | |
1824 | ||
1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1828 | arg2 = (int) SWIG_AsInt(obj1); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | arg3 = (int) SWIG_AsInt(obj2); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
1832 | { | |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1834 | (arg1)->SetMargins(arg2,arg3); | |
1835 | ||
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) SWIG_fail; | |
1838 | } | |
1839 | Py_INCREF(Py_None); resultobj = Py_None; | |
1840 | return resultobj; | |
1841 | fail: | |
1842 | return NULL; | |
1843 | } | |
1844 | ||
1845 | ||
1846 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject *resultobj; | |
1848 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1849 | int result; | |
1850 | PyObject * obj0 = 0 ; | |
1851 | char *kwnames[] = { | |
1852 | (char *) "self", NULL | |
1853 | }; | |
1854 | ||
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1858 | { | |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
1865 | resultobj = SWIG_FromInt((int)result); | |
1866 | return resultobj; | |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1875 | int result; | |
1876 | PyObject * obj0 = 0 ; | |
1877 | char *kwnames[] = { | |
1878 | (char *) "self", NULL | |
1879 | }; | |
1880 | ||
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1884 | { | |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
1891 | resultobj = SWIG_FromInt((int)result); | |
1892 | return resultobj; | |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1899 | PyObject *obj; | |
1900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1901 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1902 | Py_INCREF(obj); | |
1903 | return Py_BuildValue((char *)""); | |
1904 | } | |
1905 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { | |
1906 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1907 | return 1; | |
1908 | } | |
1909 | ||
1910 | ||
1911 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1912 | PyObject *pyobj; | |
1913 | ||
1914 | { | |
1915 | #if wxUSE_UNICODE | |
1916 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1917 | #else | |
1918 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1919 | #endif | |
1920 | } | |
1921 | return pyobj; | |
1922 | } | |
1923 | ||
1924 | ||
1925 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1926 | PyObject *resultobj; | |
1927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
1928 | int arg2 ; | |
1929 | wxString *arg3 = 0 ; | |
1930 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1931 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1932 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1933 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1934 | long arg6 = (long) 0 ; | |
1935 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1936 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1937 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1938 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1939 | wxCheckBox *result; | |
1940 | bool temp3 = False ; | |
1941 | wxPoint temp4 ; | |
1942 | wxSize temp5 ; | |
1943 | bool temp8 = False ; | |
1944 | PyObject * obj0 = 0 ; | |
1945 | PyObject * obj1 = 0 ; | |
1946 | PyObject * obj2 = 0 ; | |
1947 | PyObject * obj3 = 0 ; | |
1948 | PyObject * obj4 = 0 ; | |
1949 | PyObject * obj5 = 0 ; | |
1950 | PyObject * obj6 = 0 ; | |
1951 | PyObject * obj7 = 0 ; | |
1952 | char *kwnames[] = { | |
1953 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1954 | }; | |
1955 | ||
1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
1957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
1958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1959 | arg2 = (int) SWIG_AsInt(obj1); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
1961 | { | |
1962 | arg3 = wxString_in_helper(obj2); | |
1963 | if (arg3 == NULL) SWIG_fail; | |
1964 | temp3 = True; | |
1965 | } | |
1966 | if (obj3) { | |
1967 | { | |
1968 | arg4 = &temp4; | |
1969 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1970 | } | |
1971 | } | |
1972 | if (obj4) { | |
1973 | { | |
1974 | arg5 = &temp5; | |
1975 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1976 | } | |
1977 | } | |
1978 | if (obj5) { | |
1979 | arg6 = (long) SWIG_AsLong(obj5); | |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
1981 | } | |
1982 | if (obj6) { | |
1983 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1985 | SWIG_fail; | |
1986 | if (arg7 == NULL) { | |
1987 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1988 | SWIG_fail; | |
1989 | } | |
1990 | } | |
1991 | if (obj7) { | |
1992 | { | |
1993 | arg8 = wxString_in_helper(obj7); | |
1994 | if (arg8 == NULL) SWIG_fail; | |
1995 | temp8 = True; | |
1996 | } | |
1997 | } | |
1998 | { | |
1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2000 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2001 | ||
2002 | wxPyEndAllowThreads(__tstate); | |
2003 | if (PyErr_Occurred()) SWIG_fail; | |
2004 | } | |
2005 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2006 | { | |
2007 | if (temp3) | |
2008 | delete arg3; | |
2009 | } | |
2010 | { | |
2011 | if (temp8) | |
2012 | delete arg8; | |
2013 | } | |
2014 | return resultobj; | |
2015 | fail: | |
2016 | { | |
2017 | if (temp3) | |
2018 | delete arg3; | |
2019 | } | |
2020 | { | |
2021 | if (temp8) | |
2022 | delete arg8; | |
2023 | } | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxCheckBox *result; | |
2031 | char *kwnames[] = { | |
2032 | NULL | |
2033 | }; | |
2034 | ||
2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | result = (wxCheckBox *)new wxCheckBox(); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) SWIG_fail; | |
2042 | } | |
2043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2044 | return resultobj; | |
2045 | fail: | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject *resultobj; | |
2052 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2054 | int arg3 ; | |
2055 | wxString *arg4 = 0 ; | |
2056 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2057 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2058 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2059 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2060 | long arg7 = (long) 0 ; | |
2061 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2062 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2063 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2064 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2065 | bool result; | |
2066 | bool temp4 = False ; | |
2067 | wxPoint temp5 ; | |
2068 | wxSize temp6 ; | |
2069 | bool temp9 = False ; | |
2070 | PyObject * obj0 = 0 ; | |
2071 | PyObject * obj1 = 0 ; | |
2072 | PyObject * obj2 = 0 ; | |
2073 | PyObject * obj3 = 0 ; | |
2074 | PyObject * obj4 = 0 ; | |
2075 | PyObject * obj5 = 0 ; | |
2076 | PyObject * obj6 = 0 ; | |
2077 | PyObject * obj7 = 0 ; | |
2078 | PyObject * obj8 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2081 | }; | |
2082 | ||
2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2088 | arg3 = (int) SWIG_AsInt(obj2); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
2090 | { | |
2091 | arg4 = wxString_in_helper(obj3); | |
2092 | if (arg4 == NULL) SWIG_fail; | |
2093 | temp4 = True; | |
2094 | } | |
2095 | if (obj4) { | |
2096 | { | |
2097 | arg5 = &temp5; | |
2098 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2099 | } | |
2100 | } | |
2101 | if (obj5) { | |
2102 | { | |
2103 | arg6 = &temp6; | |
2104 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2105 | } | |
2106 | } | |
2107 | if (obj6) { | |
2108 | arg7 = (long) SWIG_AsLong(obj6); | |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
2110 | } | |
2111 | if (obj7) { | |
2112 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2114 | SWIG_fail; | |
2115 | if (arg8 == NULL) { | |
2116 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2117 | SWIG_fail; | |
2118 | } | |
2119 | } | |
2120 | if (obj8) { | |
2121 | { | |
2122 | arg9 = wxString_in_helper(obj8); | |
2123 | if (arg9 == NULL) SWIG_fail; | |
2124 | temp9 = True; | |
2125 | } | |
2126 | } | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
2134 | { | |
2135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2136 | } | |
2137 | { | |
2138 | if (temp4) | |
2139 | delete arg4; | |
2140 | } | |
2141 | { | |
2142 | if (temp9) | |
2143 | delete arg9; | |
2144 | } | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | { | |
2148 | if (temp4) | |
2149 | delete arg4; | |
2150 | } | |
2151 | { | |
2152 | if (temp9) | |
2153 | delete arg9; | |
2154 | } | |
2155 | return NULL; | |
2156 | } | |
2157 | ||
2158 | ||
2159 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject *resultobj; | |
2161 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2162 | bool result; | |
2163 | PyObject * obj0 = 0 ; | |
2164 | char *kwnames[] = { | |
2165 | (char *) "self", NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2171 | { | |
2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2173 | result = (bool)(arg1)->GetValue(); | |
2174 | ||
2175 | wxPyEndAllowThreads(__tstate); | |
2176 | if (PyErr_Occurred()) SWIG_fail; | |
2177 | } | |
2178 | { | |
2179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2180 | } | |
2181 | return resultobj; | |
2182 | fail: | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2187 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject *resultobj; | |
2189 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2190 | bool result; | |
2191 | PyObject * obj0 = 0 ; | |
2192 | char *kwnames[] = { | |
2193 | (char *) "self", NULL | |
2194 | }; | |
2195 | ||
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2199 | { | |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = (bool)(arg1)->IsChecked(); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
2206 | { | |
2207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2208 | } | |
2209 | return resultobj; | |
2210 | fail: | |
2211 | return NULL; | |
2212 | } | |
2213 | ||
2214 | ||
2215 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject *resultobj; | |
2217 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2218 | bool arg2 ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | PyObject * obj1 = 0 ; | |
2221 | char *kwnames[] = { | |
2222 | (char *) "self",(char *) "state", NULL | |
2223 | }; | |
2224 | ||
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2228 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2229 | if (PyErr_Occurred()) SWIG_fail; | |
2230 | { | |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | (arg1)->SetValue(arg2); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) SWIG_fail; | |
2236 | } | |
2237 | Py_INCREF(Py_None); resultobj = Py_None; | |
2238 | return resultobj; | |
2239 | fail: | |
2240 | return NULL; | |
2241 | } | |
2242 | ||
2243 | ||
2244 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject *resultobj; | |
2246 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2247 | int result; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "self", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2256 | { | |
2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2258 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2259 | ||
2260 | wxPyEndAllowThreads(__tstate); | |
2261 | if (PyErr_Occurred()) SWIG_fail; | |
2262 | } | |
2263 | resultobj = SWIG_FromInt((int)result); | |
2264 | return resultobj; | |
2265 | fail: | |
2266 | return NULL; | |
2267 | } | |
2268 | ||
2269 | ||
2270 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2271 | PyObject *resultobj; | |
2272 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2273 | int arg2 ; | |
2274 | PyObject * obj0 = 0 ; | |
2275 | PyObject * obj1 = 0 ; | |
2276 | char *kwnames[] = { | |
2277 | (char *) "self",(char *) "state", NULL | |
2278 | }; | |
2279 | ||
2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2283 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
2285 | { | |
2286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2287 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2288 | ||
2289 | wxPyEndAllowThreads(__tstate); | |
2290 | if (PyErr_Occurred()) SWIG_fail; | |
2291 | } | |
2292 | Py_INCREF(Py_None); resultobj = Py_None; | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2302 | bool result; | |
2303 | PyObject * obj0 = 0 ; | |
2304 | char *kwnames[] = { | |
2305 | (char *) "self", NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2311 | { | |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
2318 | { | |
2319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2320 | } | |
2321 | return resultobj; | |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2330 | bool result; | |
2331 | PyObject * obj0 = 0 ; | |
2332 | char *kwnames[] = { | |
2333 | (char *) "self", NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2339 | { | |
2340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2341 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2342 | ||
2343 | wxPyEndAllowThreads(__tstate); | |
2344 | if (PyErr_Occurred()) SWIG_fail; | |
2345 | } | |
2346 | { | |
2347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2348 | } | |
2349 | return resultobj; | |
2350 | fail: | |
2351 | return NULL; | |
2352 | } | |
2353 | ||
2354 | ||
2355 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2356 | PyObject *obj; | |
2357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2358 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2359 | Py_INCREF(obj); | |
2360 | return Py_BuildValue((char *)""); | |
2361 | } | |
2362 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { | |
2363 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2364 | return 1; | |
2365 | } | |
2366 | ||
2367 | ||
2368 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2369 | PyObject *pyobj; | |
2370 | ||
2371 | { | |
2372 | #if wxUSE_UNICODE | |
2373 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2374 | #else | |
2375 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2376 | #endif | |
2377 | } | |
2378 | return pyobj; | |
2379 | } | |
2380 | ||
2381 | ||
2382 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2383 | PyObject *resultobj; | |
2384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2385 | int arg2 = (int) -1 ; | |
2386 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2387 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2388 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2389 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2390 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2391 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2392 | long arg6 = (long) 0 ; | |
2393 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2394 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2395 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2396 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2397 | wxChoice *result; | |
2398 | wxPoint temp3 ; | |
2399 | wxSize temp4 ; | |
2400 | bool temp5 = False ; | |
2401 | bool temp8 = False ; | |
2402 | PyObject * obj0 = 0 ; | |
2403 | PyObject * obj1 = 0 ; | |
2404 | PyObject * obj2 = 0 ; | |
2405 | PyObject * obj3 = 0 ; | |
2406 | PyObject * obj4 = 0 ; | |
2407 | PyObject * obj5 = 0 ; | |
2408 | PyObject * obj6 = 0 ; | |
2409 | PyObject * obj7 = 0 ; | |
2410 | char *kwnames[] = { | |
2411 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2412 | }; | |
2413 | ||
2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2417 | if (obj1) { | |
2418 | arg2 = (int) SWIG_AsInt(obj1); | |
2419 | if (PyErr_Occurred()) SWIG_fail; | |
2420 | } | |
2421 | if (obj2) { | |
2422 | { | |
2423 | arg3 = &temp3; | |
2424 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2425 | } | |
2426 | } | |
2427 | if (obj3) { | |
2428 | { | |
2429 | arg4 = &temp4; | |
2430 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2431 | } | |
2432 | } | |
2433 | if (obj4) { | |
2434 | { | |
2435 | if (! PySequence_Check(obj4)) { | |
2436 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2437 | SWIG_fail; | |
2438 | } | |
2439 | arg5 = new wxArrayString; | |
2440 | temp5 = True; | |
2441 | int i, len=PySequence_Length(obj4); | |
2442 | for (i=0; i<len; i++) { | |
2443 | PyObject* item = PySequence_GetItem(obj4, i); | |
2444 | #if wxUSE_UNICODE | |
2445 | PyObject* str = PyObject_Unicode(item); | |
2446 | #else | |
2447 | PyObject* str = PyObject_Str(item); | |
2448 | #endif | |
2449 | if (PyErr_Occurred()) SWIG_fail; | |
2450 | arg5->Add(Py2wxString(str)); | |
2451 | Py_DECREF(item); | |
2452 | Py_DECREF(str); | |
2453 | } | |
2454 | } | |
2455 | } | |
2456 | if (obj5) { | |
2457 | arg6 = (long) SWIG_AsLong(obj5); | |
2458 | if (PyErr_Occurred()) SWIG_fail; | |
2459 | } | |
2460 | if (obj6) { | |
2461 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2463 | SWIG_fail; | |
2464 | if (arg7 == NULL) { | |
2465 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2466 | SWIG_fail; | |
2467 | } | |
2468 | } | |
2469 | if (obj7) { | |
2470 | { | |
2471 | arg8 = wxString_in_helper(obj7); | |
2472 | if (arg8 == NULL) SWIG_fail; | |
2473 | temp8 = True; | |
2474 | } | |
2475 | } | |
2476 | { | |
2477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2478 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2479 | ||
2480 | wxPyEndAllowThreads(__tstate); | |
2481 | if (PyErr_Occurred()) SWIG_fail; | |
2482 | } | |
2483 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2484 | { | |
2485 | if (temp5) delete arg5; | |
2486 | } | |
2487 | { | |
2488 | if (temp8) | |
2489 | delete arg8; | |
2490 | } | |
2491 | return resultobj; | |
2492 | fail: | |
2493 | { | |
2494 | if (temp5) delete arg5; | |
2495 | } | |
2496 | { | |
2497 | if (temp8) | |
2498 | delete arg8; | |
2499 | } | |
2500 | return NULL; | |
2501 | } | |
2502 | ||
2503 | ||
2504 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2505 | PyObject *resultobj; | |
2506 | wxChoice *result; | |
2507 | char *kwnames[] = { | |
2508 | NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2512 | { | |
2513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2514 | result = (wxChoice *)new wxChoice(); | |
2515 | ||
2516 | wxPyEndAllowThreads(__tstate); | |
2517 | if (PyErr_Occurred()) SWIG_fail; | |
2518 | } | |
2519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2520 | return resultobj; | |
2521 | fail: | |
2522 | return NULL; | |
2523 | } | |
2524 | ||
2525 | ||
2526 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2527 | PyObject *resultobj; | |
2528 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2529 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2530 | int arg3 = (int) -1 ; | |
2531 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2532 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2533 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2534 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2535 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2536 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2537 | long arg7 = (long) 0 ; | |
2538 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2539 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2540 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2541 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2542 | bool result; | |
2543 | wxPoint temp4 ; | |
2544 | wxSize temp5 ; | |
2545 | bool temp6 = False ; | |
2546 | bool temp9 = False ; | |
2547 | PyObject * obj0 = 0 ; | |
2548 | PyObject * obj1 = 0 ; | |
2549 | PyObject * obj2 = 0 ; | |
2550 | PyObject * obj3 = 0 ; | |
2551 | PyObject * obj4 = 0 ; | |
2552 | PyObject * obj5 = 0 ; | |
2553 | PyObject * obj6 = 0 ; | |
2554 | PyObject * obj7 = 0 ; | |
2555 | PyObject * obj8 = 0 ; | |
2556 | char *kwnames[] = { | |
2557 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2558 | }; | |
2559 | ||
2560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2565 | if (obj2) { | |
2566 | arg3 = (int) SWIG_AsInt(obj2); | |
2567 | if (PyErr_Occurred()) SWIG_fail; | |
2568 | } | |
2569 | if (obj3) { | |
2570 | { | |
2571 | arg4 = &temp4; | |
2572 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2573 | } | |
2574 | } | |
2575 | if (obj4) { | |
2576 | { | |
2577 | arg5 = &temp5; | |
2578 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2579 | } | |
2580 | } | |
2581 | if (obj5) { | |
2582 | { | |
2583 | if (! PySequence_Check(obj5)) { | |
2584 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2585 | SWIG_fail; | |
2586 | } | |
2587 | arg6 = new wxArrayString; | |
2588 | temp6 = True; | |
2589 | int i, len=PySequence_Length(obj5); | |
2590 | for (i=0; i<len; i++) { | |
2591 | PyObject* item = PySequence_GetItem(obj5, i); | |
2592 | #if wxUSE_UNICODE | |
2593 | PyObject* str = PyObject_Unicode(item); | |
2594 | #else | |
2595 | PyObject* str = PyObject_Str(item); | |
2596 | #endif | |
2597 | if (PyErr_Occurred()) SWIG_fail; | |
2598 | arg6->Add(Py2wxString(str)); | |
2599 | Py_DECREF(item); | |
2600 | Py_DECREF(str); | |
2601 | } | |
2602 | } | |
2603 | } | |
2604 | if (obj6) { | |
2605 | arg7 = (long) SWIG_AsLong(obj6); | |
2606 | if (PyErr_Occurred()) SWIG_fail; | |
2607 | } | |
2608 | if (obj7) { | |
2609 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2610 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2611 | SWIG_fail; | |
2612 | if (arg8 == NULL) { | |
2613 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2614 | SWIG_fail; | |
2615 | } | |
2616 | } | |
2617 | if (obj8) { | |
2618 | { | |
2619 | arg9 = wxString_in_helper(obj8); | |
2620 | if (arg9 == NULL) SWIG_fail; | |
2621 | temp9 = True; | |
2622 | } | |
2623 | } | |
2624 | { | |
2625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2626 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2627 | ||
2628 | wxPyEndAllowThreads(__tstate); | |
2629 | if (PyErr_Occurred()) SWIG_fail; | |
2630 | } | |
2631 | { | |
2632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2633 | } | |
2634 | { | |
2635 | if (temp6) delete arg6; | |
2636 | } | |
2637 | { | |
2638 | if (temp9) | |
2639 | delete arg9; | |
2640 | } | |
2641 | return resultobj; | |
2642 | fail: | |
2643 | { | |
2644 | if (temp6) delete arg6; | |
2645 | } | |
2646 | { | |
2647 | if (temp9) | |
2648 | delete arg9; | |
2649 | } | |
2650 | return NULL; | |
2651 | } | |
2652 | ||
2653 | ||
2654 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2655 | PyObject *resultobj; | |
2656 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2657 | int arg2 ; | |
2658 | PyObject * obj0 = 0 ; | |
2659 | PyObject * obj1 = 0 ; | |
2660 | char *kwnames[] = { | |
2661 | (char *) "self",(char *) "n", NULL | |
2662 | }; | |
2663 | ||
2664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2667 | arg2 = (int const) SWIG_AsInt(obj1); | |
2668 | if (PyErr_Occurred()) SWIG_fail; | |
2669 | { | |
2670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2671 | (arg1)->SetSelection(arg2); | |
2672 | ||
2673 | wxPyEndAllowThreads(__tstate); | |
2674 | if (PyErr_Occurred()) SWIG_fail; | |
2675 | } | |
2676 | Py_INCREF(Py_None); resultobj = Py_None; | |
2677 | return resultobj; | |
2678 | fail: | |
2679 | return NULL; | |
2680 | } | |
2681 | ||
2682 | ||
2683 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2684 | PyObject *resultobj; | |
2685 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2686 | wxString *arg2 = 0 ; | |
121b9a67 | 2687 | bool result; |
d55e5bfc RD |
2688 | bool temp2 = False ; |
2689 | PyObject * obj0 = 0 ; | |
2690 | PyObject * obj1 = 0 ; | |
2691 | char *kwnames[] = { | |
2692 | (char *) "self",(char *) "string", NULL | |
2693 | }; | |
2694 | ||
2695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2698 | { | |
2699 | arg2 = wxString_in_helper(obj1); | |
2700 | if (arg2 == NULL) SWIG_fail; | |
2701 | temp2 = True; | |
2702 | } | |
2703 | { | |
2704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2705 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2706 | |
2707 | wxPyEndAllowThreads(__tstate); | |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
2709 | } | |
121b9a67 RD |
2710 | { |
2711 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2712 | } | |
d55e5bfc RD |
2713 | { |
2714 | if (temp2) | |
2715 | delete arg2; | |
2716 | } | |
2717 | return resultobj; | |
2718 | fail: | |
2719 | { | |
2720 | if (temp2) | |
2721 | delete arg2; | |
2722 | } | |
2723 | return NULL; | |
2724 | } | |
2725 | ||
2726 | ||
2727 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2728 | PyObject *resultobj; | |
2729 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2730 | int arg2 ; | |
2731 | wxString *arg3 = 0 ; | |
2732 | bool temp3 = False ; | |
2733 | PyObject * obj0 = 0 ; | |
2734 | PyObject * obj1 = 0 ; | |
2735 | PyObject * obj2 = 0 ; | |
2736 | char *kwnames[] = { | |
2737 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2738 | }; | |
2739 | ||
2740 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2741 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2743 | arg2 = (int) SWIG_AsInt(obj1); | |
2744 | if (PyErr_Occurred()) SWIG_fail; | |
2745 | { | |
2746 | arg3 = wxString_in_helper(obj2); | |
2747 | if (arg3 == NULL) SWIG_fail; | |
2748 | temp3 = True; | |
2749 | } | |
2750 | { | |
2751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2752 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2753 | ||
2754 | wxPyEndAllowThreads(__tstate); | |
2755 | if (PyErr_Occurred()) SWIG_fail; | |
2756 | } | |
2757 | Py_INCREF(Py_None); resultobj = Py_None; | |
2758 | { | |
2759 | if (temp3) | |
2760 | delete arg3; | |
2761 | } | |
2762 | return resultobj; | |
2763 | fail: | |
2764 | { | |
2765 | if (temp3) | |
2766 | delete arg3; | |
2767 | } | |
2768 | return NULL; | |
2769 | } | |
2770 | ||
2771 | ||
2772 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2773 | PyObject *obj; | |
2774 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2775 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2776 | Py_INCREF(obj); | |
2777 | return Py_BuildValue((char *)""); | |
2778 | } | |
2779 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { | |
2780 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2781 | return 1; | |
2782 | } | |
2783 | ||
2784 | ||
2785 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2786 | PyObject *pyobj; | |
2787 | ||
2788 | { | |
2789 | #if wxUSE_UNICODE | |
2790 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2791 | #else | |
2792 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2793 | #endif | |
2794 | } | |
2795 | return pyobj; | |
2796 | } | |
2797 | ||
2798 | ||
2799 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2800 | PyObject *resultobj; | |
2801 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2802 | int arg2 = (int) -1 ; | |
2803 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2804 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2805 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2806 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2807 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2808 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2809 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2810 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2811 | long arg7 = (long) 0 ; | |
2812 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2813 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2814 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2815 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2816 | wxComboBox *result; | |
2817 | bool temp3 = False ; | |
2818 | wxPoint temp4 ; | |
2819 | wxSize temp5 ; | |
2820 | bool temp6 = False ; | |
2821 | bool temp9 = False ; | |
2822 | PyObject * obj0 = 0 ; | |
2823 | PyObject * obj1 = 0 ; | |
2824 | PyObject * obj2 = 0 ; | |
2825 | PyObject * obj3 = 0 ; | |
2826 | PyObject * obj4 = 0 ; | |
2827 | PyObject * obj5 = 0 ; | |
2828 | PyObject * obj6 = 0 ; | |
2829 | PyObject * obj7 = 0 ; | |
2830 | PyObject * obj8 = 0 ; | |
2831 | char *kwnames[] = { | |
2832 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2833 | }; | |
2834 | ||
2835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2838 | if (obj1) { | |
2839 | arg2 = (int) SWIG_AsInt(obj1); | |
2840 | if (PyErr_Occurred()) SWIG_fail; | |
2841 | } | |
2842 | if (obj2) { | |
2843 | { | |
2844 | arg3 = wxString_in_helper(obj2); | |
2845 | if (arg3 == NULL) SWIG_fail; | |
2846 | temp3 = True; | |
2847 | } | |
2848 | } | |
2849 | if (obj3) { | |
2850 | { | |
2851 | arg4 = &temp4; | |
2852 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2853 | } | |
2854 | } | |
2855 | if (obj4) { | |
2856 | { | |
2857 | arg5 = &temp5; | |
2858 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2859 | } | |
2860 | } | |
2861 | if (obj5) { | |
2862 | { | |
2863 | if (! PySequence_Check(obj5)) { | |
2864 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2865 | SWIG_fail; | |
2866 | } | |
2867 | arg6 = new wxArrayString; | |
2868 | temp6 = True; | |
2869 | int i, len=PySequence_Length(obj5); | |
2870 | for (i=0; i<len; i++) { | |
2871 | PyObject* item = PySequence_GetItem(obj5, i); | |
2872 | #if wxUSE_UNICODE | |
2873 | PyObject* str = PyObject_Unicode(item); | |
2874 | #else | |
2875 | PyObject* str = PyObject_Str(item); | |
2876 | #endif | |
2877 | if (PyErr_Occurred()) SWIG_fail; | |
2878 | arg6->Add(Py2wxString(str)); | |
2879 | Py_DECREF(item); | |
2880 | Py_DECREF(str); | |
2881 | } | |
2882 | } | |
2883 | } | |
2884 | if (obj6) { | |
2885 | arg7 = (long) SWIG_AsLong(obj6); | |
2886 | if (PyErr_Occurred()) SWIG_fail; | |
2887 | } | |
2888 | if (obj7) { | |
2889 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2891 | SWIG_fail; | |
2892 | if (arg8 == NULL) { | |
2893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2894 | SWIG_fail; | |
2895 | } | |
2896 | } | |
2897 | if (obj8) { | |
2898 | { | |
2899 | arg9 = wxString_in_helper(obj8); | |
2900 | if (arg9 == NULL) SWIG_fail; | |
2901 | temp9 = True; | |
2902 | } | |
2903 | } | |
2904 | { | |
2905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2906 | result = (wxComboBox *)new wxComboBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2907 | ||
2908 | wxPyEndAllowThreads(__tstate); | |
2909 | if (PyErr_Occurred()) SWIG_fail; | |
2910 | } | |
2911 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
2912 | { | |
2913 | if (temp3) | |
2914 | delete arg3; | |
2915 | } | |
2916 | { | |
2917 | if (temp6) delete arg6; | |
2918 | } | |
2919 | { | |
2920 | if (temp9) | |
2921 | delete arg9; | |
2922 | } | |
2923 | return resultobj; | |
2924 | fail: | |
2925 | { | |
2926 | if (temp3) | |
2927 | delete arg3; | |
2928 | } | |
2929 | { | |
2930 | if (temp6) delete arg6; | |
2931 | } | |
2932 | { | |
2933 | if (temp9) | |
2934 | delete arg9; | |
2935 | } | |
2936 | return NULL; | |
2937 | } | |
2938 | ||
2939 | ||
2940 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2941 | PyObject *resultobj; | |
2942 | wxComboBox *result; | |
2943 | char *kwnames[] = { | |
2944 | NULL | |
2945 | }; | |
2946 | ||
2947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2948 | { | |
2949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2950 | result = (wxComboBox *)new wxComboBox(); | |
2951 | ||
2952 | wxPyEndAllowThreads(__tstate); | |
2953 | if (PyErr_Occurred()) SWIG_fail; | |
2954 | } | |
2955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
2956 | return resultobj; | |
2957 | fail: | |
2958 | return NULL; | |
2959 | } | |
2960 | ||
2961 | ||
2962 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2963 | PyObject *resultobj; | |
2964 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2965 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2966 | int arg3 = (int) -1 ; | |
2967 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2968 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2969 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2970 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2971 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2972 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2973 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
2974 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2975 | long arg8 = (long) 0 ; | |
2976 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2977 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
2978 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
2979 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
2980 | bool result; | |
2981 | bool temp4 = False ; | |
2982 | wxPoint temp5 ; | |
2983 | wxSize temp6 ; | |
2984 | bool temp7 = False ; | |
2985 | bool temp10 = False ; | |
2986 | PyObject * obj0 = 0 ; | |
2987 | PyObject * obj1 = 0 ; | |
2988 | PyObject * obj2 = 0 ; | |
2989 | PyObject * obj3 = 0 ; | |
2990 | PyObject * obj4 = 0 ; | |
2991 | PyObject * obj5 = 0 ; | |
2992 | PyObject * obj6 = 0 ; | |
2993 | PyObject * obj7 = 0 ; | |
2994 | PyObject * obj8 = 0 ; | |
2995 | PyObject * obj9 = 0 ; | |
2996 | char *kwnames[] = { | |
2997 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2998 | }; | |
2999 | ||
3000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3003 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3005 | if (obj2) { | |
3006 | arg3 = (int) SWIG_AsInt(obj2); | |
3007 | if (PyErr_Occurred()) SWIG_fail; | |
3008 | } | |
3009 | if (obj3) { | |
3010 | { | |
3011 | arg4 = wxString_in_helper(obj3); | |
3012 | if (arg4 == NULL) SWIG_fail; | |
3013 | temp4 = True; | |
3014 | } | |
3015 | } | |
3016 | if (obj4) { | |
3017 | { | |
3018 | arg5 = &temp5; | |
3019 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3020 | } | |
3021 | } | |
3022 | if (obj5) { | |
3023 | { | |
3024 | arg6 = &temp6; | |
3025 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3026 | } | |
3027 | } | |
3028 | if (obj6) { | |
3029 | { | |
3030 | if (! PySequence_Check(obj6)) { | |
3031 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3032 | SWIG_fail; | |
3033 | } | |
3034 | arg7 = new wxArrayString; | |
3035 | temp7 = True; | |
3036 | int i, len=PySequence_Length(obj6); | |
3037 | for (i=0; i<len; i++) { | |
3038 | PyObject* item = PySequence_GetItem(obj6, i); | |
3039 | #if wxUSE_UNICODE | |
3040 | PyObject* str = PyObject_Unicode(item); | |
3041 | #else | |
3042 | PyObject* str = PyObject_Str(item); | |
3043 | #endif | |
3044 | if (PyErr_Occurred()) SWIG_fail; | |
3045 | arg7->Add(Py2wxString(str)); | |
3046 | Py_DECREF(item); | |
3047 | Py_DECREF(str); | |
3048 | } | |
3049 | } | |
3050 | } | |
3051 | if (obj7) { | |
3052 | arg8 = (long) SWIG_AsLong(obj7); | |
3053 | if (PyErr_Occurred()) SWIG_fail; | |
3054 | } | |
3055 | if (obj8) { | |
3056 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3058 | SWIG_fail; | |
3059 | if (arg9 == NULL) { | |
3060 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3061 | SWIG_fail; | |
3062 | } | |
3063 | } | |
3064 | if (obj9) { | |
3065 | { | |
3066 | arg10 = wxString_in_helper(obj9); | |
3067 | if (arg10 == NULL) SWIG_fail; | |
3068 | temp10 = True; | |
3069 | } | |
3070 | } | |
3071 | { | |
3072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3073 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
3074 | ||
3075 | wxPyEndAllowThreads(__tstate); | |
3076 | if (PyErr_Occurred()) SWIG_fail; | |
3077 | } | |
3078 | { | |
3079 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3080 | } | |
3081 | { | |
3082 | if (temp4) | |
3083 | delete arg4; | |
3084 | } | |
3085 | { | |
3086 | if (temp7) delete arg7; | |
3087 | } | |
3088 | { | |
3089 | if (temp10) | |
3090 | delete arg10; | |
3091 | } | |
3092 | return resultobj; | |
3093 | fail: | |
3094 | { | |
3095 | if (temp4) | |
3096 | delete arg4; | |
3097 | } | |
3098 | { | |
3099 | if (temp7) delete arg7; | |
3100 | } | |
3101 | { | |
3102 | if (temp10) | |
3103 | delete arg10; | |
3104 | } | |
3105 | return NULL; | |
3106 | } | |
3107 | ||
3108 | ||
3109 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3110 | PyObject *resultobj; | |
3111 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3112 | wxString result; | |
3113 | PyObject * obj0 = 0 ; | |
3114 | char *kwnames[] = { | |
3115 | (char *) "self", NULL | |
3116 | }; | |
3117 | ||
3118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3121 | { | |
3122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3123 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3124 | ||
3125 | wxPyEndAllowThreads(__tstate); | |
3126 | if (PyErr_Occurred()) SWIG_fail; | |
3127 | } | |
3128 | { | |
3129 | #if wxUSE_UNICODE | |
3130 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3131 | #else | |
3132 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3133 | #endif | |
3134 | } | |
3135 | return resultobj; | |
3136 | fail: | |
3137 | return NULL; | |
3138 | } | |
3139 | ||
3140 | ||
3141 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3142 | PyObject *resultobj; | |
3143 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3144 | wxString *arg2 = 0 ; | |
3145 | bool temp2 = False ; | |
3146 | PyObject * obj0 = 0 ; | |
3147 | PyObject * obj1 = 0 ; | |
3148 | char *kwnames[] = { | |
3149 | (char *) "self",(char *) "value", NULL | |
3150 | }; | |
3151 | ||
3152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3155 | { | |
3156 | arg2 = wxString_in_helper(obj1); | |
3157 | if (arg2 == NULL) SWIG_fail; | |
3158 | temp2 = True; | |
3159 | } | |
3160 | { | |
3161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3162 | (arg1)->SetValue((wxString const &)*arg2); | |
3163 | ||
3164 | wxPyEndAllowThreads(__tstate); | |
3165 | if (PyErr_Occurred()) SWIG_fail; | |
3166 | } | |
3167 | Py_INCREF(Py_None); resultobj = Py_None; | |
3168 | { | |
3169 | if (temp2) | |
3170 | delete arg2; | |
3171 | } | |
3172 | return resultobj; | |
3173 | fail: | |
3174 | { | |
3175 | if (temp2) | |
3176 | delete arg2; | |
3177 | } | |
3178 | return NULL; | |
3179 | } | |
3180 | ||
3181 | ||
3182 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3183 | PyObject *resultobj; | |
3184 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3185 | PyObject * obj0 = 0 ; | |
3186 | char *kwnames[] = { | |
3187 | (char *) "self", NULL | |
3188 | }; | |
3189 | ||
3190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3193 | { | |
3194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3195 | (arg1)->Copy(); | |
3196 | ||
3197 | wxPyEndAllowThreads(__tstate); | |
3198 | if (PyErr_Occurred()) SWIG_fail; | |
3199 | } | |
3200 | Py_INCREF(Py_None); resultobj = Py_None; | |
3201 | return resultobj; | |
3202 | fail: | |
3203 | return NULL; | |
3204 | } | |
3205 | ||
3206 | ||
3207 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3208 | PyObject *resultobj; | |
3209 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3210 | PyObject * obj0 = 0 ; | |
3211 | char *kwnames[] = { | |
3212 | (char *) "self", NULL | |
3213 | }; | |
3214 | ||
3215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3218 | { | |
3219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3220 | (arg1)->Cut(); | |
3221 | ||
3222 | wxPyEndAllowThreads(__tstate); | |
3223 | if (PyErr_Occurred()) SWIG_fail; | |
3224 | } | |
3225 | Py_INCREF(Py_None); resultobj = Py_None; | |
3226 | return resultobj; | |
3227 | fail: | |
3228 | return NULL; | |
3229 | } | |
3230 | ||
3231 | ||
3232 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3233 | PyObject *resultobj; | |
3234 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3235 | PyObject * obj0 = 0 ; | |
3236 | char *kwnames[] = { | |
3237 | (char *) "self", NULL | |
3238 | }; | |
3239 | ||
3240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3243 | { | |
3244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3245 | (arg1)->Paste(); | |
3246 | ||
3247 | wxPyEndAllowThreads(__tstate); | |
3248 | if (PyErr_Occurred()) SWIG_fail; | |
3249 | } | |
3250 | Py_INCREF(Py_None); resultobj = Py_None; | |
3251 | return resultobj; | |
3252 | fail: | |
3253 | return NULL; | |
3254 | } | |
3255 | ||
3256 | ||
3257 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3258 | PyObject *resultobj; | |
3259 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3260 | long arg2 ; | |
3261 | PyObject * obj0 = 0 ; | |
3262 | PyObject * obj1 = 0 ; | |
3263 | char *kwnames[] = { | |
3264 | (char *) "self",(char *) "pos", NULL | |
3265 | }; | |
3266 | ||
3267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3270 | arg2 = (long) SWIG_AsLong(obj1); | |
3271 | if (PyErr_Occurred()) SWIG_fail; | |
3272 | { | |
3273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3274 | (arg1)->SetInsertionPoint(arg2); | |
3275 | ||
3276 | wxPyEndAllowThreads(__tstate); | |
3277 | if (PyErr_Occurred()) SWIG_fail; | |
3278 | } | |
3279 | Py_INCREF(Py_None); resultobj = Py_None; | |
3280 | return resultobj; | |
3281 | fail: | |
3282 | return NULL; | |
3283 | } | |
3284 | ||
3285 | ||
3286 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject *resultobj; | |
3288 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3289 | long result; | |
3290 | PyObject * obj0 = 0 ; | |
3291 | char *kwnames[] = { | |
3292 | (char *) "self", NULL | |
3293 | }; | |
3294 | ||
3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3298 | { | |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3301 | ||
3302 | wxPyEndAllowThreads(__tstate); | |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
3305 | resultobj = SWIG_FromLong((long)result); | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | return NULL; | |
3309 | } | |
3310 | ||
3311 | ||
3312 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject *resultobj; | |
3314 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3315 | long result; | |
3316 | PyObject * obj0 = 0 ; | |
3317 | char *kwnames[] = { | |
3318 | (char *) "self", NULL | |
3319 | }; | |
3320 | ||
3321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3324 | { | |
3325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3326 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3327 | ||
3328 | wxPyEndAllowThreads(__tstate); | |
3329 | if (PyErr_Occurred()) SWIG_fail; | |
3330 | } | |
3331 | resultobj = SWIG_FromLong((long)result); | |
3332 | return resultobj; | |
3333 | fail: | |
3334 | return NULL; | |
3335 | } | |
3336 | ||
3337 | ||
3338 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3339 | PyObject *resultobj; | |
3340 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3341 | long arg2 ; | |
3342 | long arg3 ; | |
3343 | wxString *arg4 = 0 ; | |
3344 | bool temp4 = False ; | |
3345 | PyObject * obj0 = 0 ; | |
3346 | PyObject * obj1 = 0 ; | |
3347 | PyObject * obj2 = 0 ; | |
3348 | PyObject * obj3 = 0 ; | |
3349 | char *kwnames[] = { | |
3350 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3351 | }; | |
3352 | ||
3353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3356 | arg2 = (long) SWIG_AsLong(obj1); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | arg3 = (long) SWIG_AsLong(obj2); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | { | |
3361 | arg4 = wxString_in_helper(obj3); | |
3362 | if (arg4 == NULL) SWIG_fail; | |
3363 | temp4 = True; | |
3364 | } | |
3365 | { | |
3366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3367 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3368 | ||
3369 | wxPyEndAllowThreads(__tstate); | |
3370 | if (PyErr_Occurred()) SWIG_fail; | |
3371 | } | |
3372 | Py_INCREF(Py_None); resultobj = Py_None; | |
3373 | { | |
3374 | if (temp4) | |
3375 | delete arg4; | |
3376 | } | |
3377 | return resultobj; | |
3378 | fail: | |
3379 | { | |
3380 | if (temp4) | |
3381 | delete arg4; | |
3382 | } | |
3383 | return NULL; | |
3384 | } | |
3385 | ||
3386 | ||
3387 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3388 | PyObject *resultobj; | |
3389 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3390 | int arg2 ; | |
3391 | PyObject * obj0 = 0 ; | |
3392 | PyObject * obj1 = 0 ; | |
3393 | char *kwnames[] = { | |
3394 | (char *) "self",(char *) "n", NULL | |
3395 | }; | |
3396 | ||
3397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3400 | arg2 = (int) SWIG_AsInt(obj1); | |
3401 | if (PyErr_Occurred()) SWIG_fail; | |
3402 | { | |
3403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3404 | (arg1)->SetSelection(arg2); | |
3405 | ||
3406 | wxPyEndAllowThreads(__tstate); | |
3407 | if (PyErr_Occurred()) SWIG_fail; | |
3408 | } | |
3409 | Py_INCREF(Py_None); resultobj = Py_None; | |
3410 | return resultobj; | |
3411 | fail: | |
3412 | return NULL; | |
3413 | } | |
3414 | ||
3415 | ||
3416 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3417 | PyObject *resultobj; | |
3418 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3419 | long arg2 ; | |
3420 | long arg3 ; | |
3421 | PyObject * obj0 = 0 ; | |
3422 | PyObject * obj1 = 0 ; | |
3423 | PyObject * obj2 = 0 ; | |
3424 | char *kwnames[] = { | |
3425 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3426 | }; | |
3427 | ||
3428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3431 | arg2 = (long) SWIG_AsLong(obj1); | |
3432 | if (PyErr_Occurred()) SWIG_fail; | |
3433 | arg3 = (long) SWIG_AsLong(obj2); | |
3434 | if (PyErr_Occurred()) SWIG_fail; | |
3435 | { | |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | (arg1)->SetSelection(arg2,arg3); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
3442 | Py_INCREF(Py_None); resultobj = Py_None; | |
3443 | return resultobj; | |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
121b9a67 RD |
3449 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3450 | PyObject *resultobj; | |
3451 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3452 | wxString *arg2 = 0 ; | |
3453 | bool result; | |
3454 | bool temp2 = False ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | PyObject * obj1 = 0 ; | |
3457 | char *kwnames[] = { | |
3458 | (char *) "self",(char *) "string", NULL | |
3459 | }; | |
3460 | ||
3461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3464 | { | |
3465 | arg2 = wxString_in_helper(obj1); | |
3466 | if (arg2 == NULL) SWIG_fail; | |
3467 | temp2 = True; | |
3468 | } | |
3469 | { | |
3470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3471 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3472 | ||
3473 | wxPyEndAllowThreads(__tstate); | |
3474 | if (PyErr_Occurred()) SWIG_fail; | |
3475 | } | |
3476 | { | |
3477 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3478 | } | |
3479 | { | |
3480 | if (temp2) | |
3481 | delete arg2; | |
3482 | } | |
3483 | return resultobj; | |
3484 | fail: | |
3485 | { | |
3486 | if (temp2) | |
3487 | delete arg2; | |
3488 | } | |
3489 | return NULL; | |
3490 | } | |
3491 | ||
3492 | ||
3493 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3494 | PyObject *resultobj; | |
3495 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3496 | int arg2 ; | |
3497 | wxString *arg3 = 0 ; | |
3498 | bool temp3 = False ; | |
3499 | PyObject * obj0 = 0 ; | |
3500 | PyObject * obj1 = 0 ; | |
3501 | PyObject * obj2 = 0 ; | |
3502 | char *kwnames[] = { | |
3503 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3504 | }; | |
3505 | ||
3506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3509 | arg2 = (int) SWIG_AsInt(obj1); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
3511 | { | |
3512 | arg3 = wxString_in_helper(obj2); | |
3513 | if (arg3 == NULL) SWIG_fail; | |
3514 | temp3 = True; | |
3515 | } | |
3516 | { | |
3517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3518 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3519 | ||
3520 | wxPyEndAllowThreads(__tstate); | |
3521 | if (PyErr_Occurred()) SWIG_fail; | |
3522 | } | |
3523 | Py_INCREF(Py_None); resultobj = Py_None; | |
3524 | { | |
3525 | if (temp3) | |
3526 | delete arg3; | |
3527 | } | |
3528 | return resultobj; | |
3529 | fail: | |
3530 | { | |
3531 | if (temp3) | |
3532 | delete arg3; | |
3533 | } | |
3534 | return NULL; | |
3535 | } | |
3536 | ||
3537 | ||
d55e5bfc RD |
3538 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3539 | PyObject *resultobj; | |
3540 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3541 | bool arg2 ; | |
3542 | PyObject * obj0 = 0 ; | |
3543 | PyObject * obj1 = 0 ; | |
3544 | char *kwnames[] = { | |
3545 | (char *) "self",(char *) "editable", NULL | |
3546 | }; | |
3547 | ||
3548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3551 | arg2 = (bool) SWIG_AsBool(obj1); | |
3552 | if (PyErr_Occurred()) SWIG_fail; | |
3553 | { | |
3554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3555 | (arg1)->SetEditable(arg2); | |
3556 | ||
3557 | wxPyEndAllowThreads(__tstate); | |
3558 | if (PyErr_Occurred()) SWIG_fail; | |
3559 | } | |
3560 | Py_INCREF(Py_None); resultobj = Py_None; | |
3561 | return resultobj; | |
3562 | fail: | |
3563 | return NULL; | |
3564 | } | |
3565 | ||
3566 | ||
3567 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3568 | PyObject *resultobj; | |
3569 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3570 | PyObject * obj0 = 0 ; | |
3571 | char *kwnames[] = { | |
3572 | (char *) "self", NULL | |
3573 | }; | |
3574 | ||
3575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3578 | { | |
3579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3580 | (arg1)->SetInsertionPointEnd(); | |
3581 | ||
3582 | wxPyEndAllowThreads(__tstate); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
3584 | } | |
3585 | Py_INCREF(Py_None); resultobj = Py_None; | |
3586 | return resultobj; | |
3587 | fail: | |
3588 | return NULL; | |
3589 | } | |
3590 | ||
3591 | ||
3592 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3593 | PyObject *resultobj; | |
3594 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3595 | long arg2 ; | |
3596 | long arg3 ; | |
3597 | PyObject * obj0 = 0 ; | |
3598 | PyObject * obj1 = 0 ; | |
3599 | PyObject * obj2 = 0 ; | |
3600 | char *kwnames[] = { | |
3601 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3602 | }; | |
3603 | ||
3604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3607 | arg2 = (long) SWIG_AsLong(obj1); | |
3608 | if (PyErr_Occurred()) SWIG_fail; | |
3609 | arg3 = (long) SWIG_AsLong(obj2); | |
3610 | if (PyErr_Occurred()) SWIG_fail; | |
3611 | { | |
3612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3613 | (arg1)->Remove(arg2,arg3); | |
3614 | ||
3615 | wxPyEndAllowThreads(__tstate); | |
3616 | if (PyErr_Occurred()) SWIG_fail; | |
3617 | } | |
3618 | Py_INCREF(Py_None); resultobj = Py_None; | |
3619 | return resultobj; | |
3620 | fail: | |
3621 | return NULL; | |
3622 | } | |
3623 | ||
3624 | ||
3625 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3626 | PyObject *obj; | |
3627 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3628 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3629 | Py_INCREF(obj); | |
3630 | return Py_BuildValue((char *)""); | |
3631 | } | |
3632 | static int _wrap_GaugeNameStr_set(PyObject *_val) { | |
3633 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3634 | return 1; | |
3635 | } | |
3636 | ||
3637 | ||
3638 | static PyObject *_wrap_GaugeNameStr_get() { | |
3639 | PyObject *pyobj; | |
3640 | ||
3641 | { | |
3642 | #if wxUSE_UNICODE | |
3643 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3644 | #else | |
3645 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3646 | #endif | |
3647 | } | |
3648 | return pyobj; | |
3649 | } | |
3650 | ||
3651 | ||
3652 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3653 | PyObject *resultobj; | |
3654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
3655 | int arg2 ; | |
3656 | int arg3 ; | |
3657 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3658 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3659 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3660 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3661 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3662 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3663 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3664 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3665 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3666 | wxGauge *result; | |
3667 | wxPoint temp4 ; | |
3668 | wxSize temp5 ; | |
3669 | bool temp8 = False ; | |
3670 | PyObject * obj0 = 0 ; | |
3671 | PyObject * obj1 = 0 ; | |
3672 | PyObject * obj2 = 0 ; | |
3673 | PyObject * obj3 = 0 ; | |
3674 | PyObject * obj4 = 0 ; | |
3675 | PyObject * obj5 = 0 ; | |
3676 | PyObject * obj6 = 0 ; | |
3677 | PyObject * obj7 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3680 | }; | |
3681 | ||
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
3683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
3684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3685 | arg2 = (int) SWIG_AsInt(obj1); | |
3686 | if (PyErr_Occurred()) SWIG_fail; | |
3687 | arg3 = (int) SWIG_AsInt(obj2); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | if (obj3) { | |
3690 | { | |
3691 | arg4 = &temp4; | |
3692 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3693 | } | |
3694 | } | |
3695 | if (obj4) { | |
3696 | { | |
3697 | arg5 = &temp5; | |
3698 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3699 | } | |
3700 | } | |
3701 | if (obj5) { | |
3702 | arg6 = (long) SWIG_AsLong(obj5); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | } | |
3705 | if (obj6) { | |
3706 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
3707 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3708 | SWIG_fail; | |
3709 | if (arg7 == NULL) { | |
3710 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3711 | SWIG_fail; | |
3712 | } | |
3713 | } | |
3714 | if (obj7) { | |
3715 | { | |
3716 | arg8 = wxString_in_helper(obj7); | |
3717 | if (arg8 == NULL) SWIG_fail; | |
3718 | temp8 = True; | |
3719 | } | |
3720 | } | |
3721 | { | |
3722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3723 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3724 | ||
3725 | wxPyEndAllowThreads(__tstate); | |
3726 | if (PyErr_Occurred()) SWIG_fail; | |
3727 | } | |
3728 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3729 | { | |
3730 | if (temp8) | |
3731 | delete arg8; | |
3732 | } | |
3733 | return resultobj; | |
3734 | fail: | |
3735 | { | |
3736 | if (temp8) | |
3737 | delete arg8; | |
3738 | } | |
3739 | return NULL; | |
3740 | } | |
3741 | ||
3742 | ||
3743 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3744 | PyObject *resultobj; | |
3745 | wxGauge *result; | |
3746 | char *kwnames[] = { | |
3747 | NULL | |
3748 | }; | |
3749 | ||
3750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3751 | { | |
3752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3753 | result = (wxGauge *)new wxGauge(); | |
3754 | ||
3755 | wxPyEndAllowThreads(__tstate); | |
3756 | if (PyErr_Occurred()) SWIG_fail; | |
3757 | } | |
3758 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3759 | return resultobj; | |
3760 | fail: | |
3761 | return NULL; | |
3762 | } | |
3763 | ||
3764 | ||
3765 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3766 | PyObject *resultobj; | |
3767 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3768 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3769 | int arg3 ; | |
3770 | int arg4 ; | |
3771 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3772 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3773 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3774 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3775 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3776 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3777 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3778 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3779 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3780 | bool result; | |
3781 | wxPoint temp5 ; | |
3782 | wxSize temp6 ; | |
3783 | bool temp9 = False ; | |
3784 | PyObject * obj0 = 0 ; | |
3785 | PyObject * obj1 = 0 ; | |
3786 | PyObject * obj2 = 0 ; | |
3787 | PyObject * obj3 = 0 ; | |
3788 | PyObject * obj4 = 0 ; | |
3789 | PyObject * obj5 = 0 ; | |
3790 | PyObject * obj6 = 0 ; | |
3791 | PyObject * obj7 = 0 ; | |
3792 | PyObject * obj8 = 0 ; | |
3793 | char *kwnames[] = { | |
3794 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3795 | }; | |
3796 | ||
3797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
3798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3800 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3802 | arg3 = (int) SWIG_AsInt(obj2); | |
3803 | if (PyErr_Occurred()) SWIG_fail; | |
3804 | arg4 = (int) SWIG_AsInt(obj3); | |
3805 | if (PyErr_Occurred()) SWIG_fail; | |
3806 | if (obj4) { | |
3807 | { | |
3808 | arg5 = &temp5; | |
3809 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3810 | } | |
3811 | } | |
3812 | if (obj5) { | |
3813 | { | |
3814 | arg6 = &temp6; | |
3815 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3816 | } | |
3817 | } | |
3818 | if (obj6) { | |
3819 | arg7 = (long) SWIG_AsLong(obj6); | |
3820 | if (PyErr_Occurred()) SWIG_fail; | |
3821 | } | |
3822 | if (obj7) { | |
3823 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3824 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3825 | SWIG_fail; | |
3826 | if (arg8 == NULL) { | |
3827 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3828 | SWIG_fail; | |
3829 | } | |
3830 | } | |
3831 | if (obj8) { | |
3832 | { | |
3833 | arg9 = wxString_in_helper(obj8); | |
3834 | if (arg9 == NULL) SWIG_fail; | |
3835 | temp9 = True; | |
3836 | } | |
3837 | } | |
3838 | { | |
3839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3840 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3841 | ||
3842 | wxPyEndAllowThreads(__tstate); | |
3843 | if (PyErr_Occurred()) SWIG_fail; | |
3844 | } | |
3845 | { | |
3846 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3847 | } | |
3848 | { | |
3849 | if (temp9) | |
3850 | delete arg9; | |
3851 | } | |
3852 | return resultobj; | |
3853 | fail: | |
3854 | { | |
3855 | if (temp9) | |
3856 | delete arg9; | |
3857 | } | |
3858 | return NULL; | |
3859 | } | |
3860 | ||
3861 | ||
3862 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3863 | PyObject *resultobj; | |
3864 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3865 | int arg2 ; | |
3866 | PyObject * obj0 = 0 ; | |
3867 | PyObject * obj1 = 0 ; | |
3868 | char *kwnames[] = { | |
3869 | (char *) "self",(char *) "range", NULL | |
3870 | }; | |
3871 | ||
3872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
3873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3875 | arg2 = (int) SWIG_AsInt(obj1); | |
3876 | if (PyErr_Occurred()) SWIG_fail; | |
3877 | { | |
3878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3879 | (arg1)->SetRange(arg2); | |
3880 | ||
3881 | wxPyEndAllowThreads(__tstate); | |
3882 | if (PyErr_Occurred()) SWIG_fail; | |
3883 | } | |
3884 | Py_INCREF(Py_None); resultobj = Py_None; | |
3885 | return resultobj; | |
3886 | fail: | |
3887 | return NULL; | |
3888 | } | |
3889 | ||
3890 | ||
3891 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3892 | PyObject *resultobj; | |
3893 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3894 | int result; | |
3895 | PyObject * obj0 = 0 ; | |
3896 | char *kwnames[] = { | |
3897 | (char *) "self", NULL | |
3898 | }; | |
3899 | ||
3900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
3901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3903 | { | |
3904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3905 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3906 | ||
3907 | wxPyEndAllowThreads(__tstate); | |
3908 | if (PyErr_Occurred()) SWIG_fail; | |
3909 | } | |
3910 | resultobj = SWIG_FromInt((int)result); | |
3911 | return resultobj; | |
3912 | fail: | |
3913 | return NULL; | |
3914 | } | |
3915 | ||
3916 | ||
3917 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3918 | PyObject *resultobj; | |
3919 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3920 | int arg2 ; | |
3921 | PyObject * obj0 = 0 ; | |
3922 | PyObject * obj1 = 0 ; | |
3923 | char *kwnames[] = { | |
3924 | (char *) "self",(char *) "pos", NULL | |
3925 | }; | |
3926 | ||
3927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3930 | arg2 = (int) SWIG_AsInt(obj1); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | { | |
3933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3934 | (arg1)->SetValue(arg2); | |
3935 | ||
3936 | wxPyEndAllowThreads(__tstate); | |
3937 | if (PyErr_Occurred()) SWIG_fail; | |
3938 | } | |
3939 | Py_INCREF(Py_None); resultobj = Py_None; | |
3940 | return resultobj; | |
3941 | fail: | |
3942 | return NULL; | |
3943 | } | |
3944 | ||
3945 | ||
3946 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3947 | PyObject *resultobj; | |
3948 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3949 | int result; | |
3950 | PyObject * obj0 = 0 ; | |
3951 | char *kwnames[] = { | |
3952 | (char *) "self", NULL | |
3953 | }; | |
3954 | ||
3955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
3956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3958 | { | |
3959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3960 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3961 | ||
3962 | wxPyEndAllowThreads(__tstate); | |
3963 | if (PyErr_Occurred()) SWIG_fail; | |
3964 | } | |
3965 | resultobj = SWIG_FromInt((int)result); | |
3966 | return resultobj; | |
3967 | fail: | |
3968 | return NULL; | |
3969 | } | |
3970 | ||
3971 | ||
3972 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3973 | PyObject *resultobj; | |
3974 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3975 | bool result; | |
3976 | PyObject * obj0 = 0 ; | |
3977 | char *kwnames[] = { | |
3978 | (char *) "self", NULL | |
3979 | }; | |
3980 | ||
3981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
3982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
3983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3984 | { | |
3985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3986 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3987 | ||
3988 | wxPyEndAllowThreads(__tstate); | |
3989 | if (PyErr_Occurred()) SWIG_fail; | |
3990 | } | |
3991 | { | |
3992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3993 | } | |
3994 | return resultobj; | |
3995 | fail: | |
3996 | return NULL; | |
3997 | } | |
3998 | ||
3999 | ||
4000 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4001 | PyObject *resultobj; | |
4002 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4003 | int arg2 ; | |
4004 | PyObject * obj0 = 0 ; | |
4005 | PyObject * obj1 = 0 ; | |
4006 | char *kwnames[] = { | |
4007 | (char *) "self",(char *) "w", NULL | |
4008 | }; | |
4009 | ||
4010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4013 | arg2 = (int) SWIG_AsInt(obj1); | |
4014 | if (PyErr_Occurred()) SWIG_fail; | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | (arg1)->SetShadowWidth(arg2); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | Py_INCREF(Py_None); resultobj = Py_None; | |
4023 | return resultobj; | |
4024 | fail: | |
4025 | return NULL; | |
4026 | } | |
4027 | ||
4028 | ||
4029 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4030 | PyObject *resultobj; | |
4031 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4032 | int result; | |
4033 | PyObject * obj0 = 0 ; | |
4034 | char *kwnames[] = { | |
4035 | (char *) "self", NULL | |
4036 | }; | |
4037 | ||
4038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4041 | { | |
4042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4043 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4044 | ||
4045 | wxPyEndAllowThreads(__tstate); | |
4046 | if (PyErr_Occurred()) SWIG_fail; | |
4047 | } | |
4048 | resultobj = SWIG_FromInt((int)result); | |
4049 | return resultobj; | |
4050 | fail: | |
4051 | return NULL; | |
4052 | } | |
4053 | ||
4054 | ||
4055 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4056 | PyObject *resultobj; | |
4057 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4058 | int arg2 ; | |
4059 | PyObject * obj0 = 0 ; | |
4060 | PyObject * obj1 = 0 ; | |
4061 | char *kwnames[] = { | |
4062 | (char *) "self",(char *) "w", NULL | |
4063 | }; | |
4064 | ||
4065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4068 | arg2 = (int) SWIG_AsInt(obj1); | |
4069 | if (PyErr_Occurred()) SWIG_fail; | |
4070 | { | |
4071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4072 | (arg1)->SetBezelFace(arg2); | |
4073 | ||
4074 | wxPyEndAllowThreads(__tstate); | |
4075 | if (PyErr_Occurred()) SWIG_fail; | |
4076 | } | |
4077 | Py_INCREF(Py_None); resultobj = Py_None; | |
4078 | return resultobj; | |
4079 | fail: | |
4080 | return NULL; | |
4081 | } | |
4082 | ||
4083 | ||
4084 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4085 | PyObject *resultobj; | |
4086 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4087 | int result; | |
4088 | PyObject * obj0 = 0 ; | |
4089 | char *kwnames[] = { | |
4090 | (char *) "self", NULL | |
4091 | }; | |
4092 | ||
4093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4096 | { | |
4097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4098 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4099 | ||
4100 | wxPyEndAllowThreads(__tstate); | |
4101 | if (PyErr_Occurred()) SWIG_fail; | |
4102 | } | |
4103 | resultobj = SWIG_FromInt((int)result); | |
4104 | return resultobj; | |
4105 | fail: | |
4106 | return NULL; | |
4107 | } | |
4108 | ||
4109 | ||
4110 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
4111 | PyObject *obj; | |
4112 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4113 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4114 | Py_INCREF(obj); | |
4115 | return Py_BuildValue((char *)""); | |
4116 | } | |
4117 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { | |
4118 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4119 | return 1; | |
4120 | } | |
4121 | ||
4122 | ||
4123 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4124 | PyObject *pyobj; | |
4125 | ||
4126 | { | |
4127 | #if wxUSE_UNICODE | |
4128 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4129 | #else | |
4130 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4131 | #endif | |
4132 | } | |
4133 | return pyobj; | |
4134 | } | |
4135 | ||
4136 | ||
4137 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4138 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4139 | return 1; | |
4140 | } | |
4141 | ||
4142 | ||
4143 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4144 | PyObject *pyobj; | |
4145 | ||
4146 | { | |
4147 | #if wxUSE_UNICODE | |
4148 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4149 | #else | |
4150 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4151 | #endif | |
4152 | } | |
4153 | return pyobj; | |
4154 | } | |
4155 | ||
4156 | ||
4157 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4158 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4159 | return 1; | |
4160 | } | |
4161 | ||
4162 | ||
4163 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4164 | PyObject *pyobj; | |
4165 | ||
4166 | { | |
4167 | #if wxUSE_UNICODE | |
4168 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4169 | #else | |
4170 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4171 | #endif | |
4172 | } | |
4173 | return pyobj; | |
4174 | } | |
4175 | ||
4176 | ||
4177 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject *resultobj; | |
4179 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4180 | int arg2 ; | |
4181 | wxString *arg3 = 0 ; | |
4182 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4183 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4184 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4185 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4186 | long arg6 = (long) 0 ; | |
4187 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4188 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4189 | wxStaticBox *result; | |
4190 | bool temp3 = False ; | |
4191 | wxPoint temp4 ; | |
4192 | wxSize temp5 ; | |
4193 | bool temp7 = False ; | |
4194 | PyObject * obj0 = 0 ; | |
4195 | PyObject * obj1 = 0 ; | |
4196 | PyObject * obj2 = 0 ; | |
4197 | PyObject * obj3 = 0 ; | |
4198 | PyObject * obj4 = 0 ; | |
4199 | PyObject * obj5 = 0 ; | |
4200 | PyObject * obj6 = 0 ; | |
4201 | char *kwnames[] = { | |
4202 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4203 | }; | |
4204 | ||
4205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4208 | arg2 = (int) SWIG_AsInt(obj1); | |
4209 | if (PyErr_Occurred()) SWIG_fail; | |
4210 | { | |
4211 | arg3 = wxString_in_helper(obj2); | |
4212 | if (arg3 == NULL) SWIG_fail; | |
4213 | temp3 = True; | |
4214 | } | |
4215 | if (obj3) { | |
4216 | { | |
4217 | arg4 = &temp4; | |
4218 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4219 | } | |
4220 | } | |
4221 | if (obj4) { | |
4222 | { | |
4223 | arg5 = &temp5; | |
4224 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4225 | } | |
4226 | } | |
4227 | if (obj5) { | |
4228 | arg6 = (long) SWIG_AsLong(obj5); | |
4229 | if (PyErr_Occurred()) SWIG_fail; | |
4230 | } | |
4231 | if (obj6) { | |
4232 | { | |
4233 | arg7 = wxString_in_helper(obj6); | |
4234 | if (arg7 == NULL) SWIG_fail; | |
4235 | temp7 = True; | |
4236 | } | |
4237 | } | |
4238 | { | |
4239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4240 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4241 | ||
4242 | wxPyEndAllowThreads(__tstate); | |
4243 | if (PyErr_Occurred()) SWIG_fail; | |
4244 | } | |
4245 | { | |
4246 | resultobj = wxPyMake_wxObject(result); | |
4247 | } | |
4248 | { | |
4249 | if (temp3) | |
4250 | delete arg3; | |
4251 | } | |
4252 | { | |
4253 | if (temp7) | |
4254 | delete arg7; | |
4255 | } | |
4256 | return resultobj; | |
4257 | fail: | |
4258 | { | |
4259 | if (temp3) | |
4260 | delete arg3; | |
4261 | } | |
4262 | { | |
4263 | if (temp7) | |
4264 | delete arg7; | |
4265 | } | |
4266 | return NULL; | |
4267 | } | |
4268 | ||
4269 | ||
4270 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4271 | PyObject *resultobj; | |
4272 | wxStaticBox *result; | |
4273 | char *kwnames[] = { | |
4274 | NULL | |
4275 | }; | |
4276 | ||
4277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4278 | { | |
4279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4280 | result = (wxStaticBox *)new wxStaticBox(); | |
4281 | ||
4282 | wxPyEndAllowThreads(__tstate); | |
4283 | if (PyErr_Occurred()) SWIG_fail; | |
4284 | } | |
4285 | { | |
4286 | resultobj = wxPyMake_wxObject(result); | |
4287 | } | |
4288 | return resultobj; | |
4289 | fail: | |
4290 | return NULL; | |
4291 | } | |
4292 | ||
4293 | ||
4294 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4295 | PyObject *resultobj; | |
4296 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4298 | int arg3 ; | |
4299 | wxString *arg4 = 0 ; | |
4300 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4301 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4302 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4303 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4304 | long arg7 = (long) 0 ; | |
4305 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4306 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4307 | bool result; | |
4308 | bool temp4 = False ; | |
4309 | wxPoint temp5 ; | |
4310 | wxSize temp6 ; | |
4311 | bool temp8 = False ; | |
4312 | PyObject * obj0 = 0 ; | |
4313 | PyObject * obj1 = 0 ; | |
4314 | PyObject * obj2 = 0 ; | |
4315 | PyObject * obj3 = 0 ; | |
4316 | PyObject * obj4 = 0 ; | |
4317 | PyObject * obj5 = 0 ; | |
4318 | PyObject * obj6 = 0 ; | |
4319 | PyObject * obj7 = 0 ; | |
4320 | char *kwnames[] = { | |
4321 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4322 | }; | |
4323 | ||
4324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, | |
4326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4329 | arg3 = (int) SWIG_AsInt(obj2); | |
4330 | if (PyErr_Occurred()) SWIG_fail; | |
4331 | { | |
4332 | arg4 = wxString_in_helper(obj3); | |
4333 | if (arg4 == NULL) SWIG_fail; | |
4334 | temp4 = True; | |
4335 | } | |
4336 | if (obj4) { | |
4337 | { | |
4338 | arg5 = &temp5; | |
4339 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4340 | } | |
4341 | } | |
4342 | if (obj5) { | |
4343 | { | |
4344 | arg6 = &temp6; | |
4345 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4346 | } | |
4347 | } | |
4348 | if (obj6) { | |
4349 | arg7 = (long) SWIG_AsLong(obj6); | |
4350 | if (PyErr_Occurred()) SWIG_fail; | |
4351 | } | |
4352 | if (obj7) { | |
4353 | { | |
4354 | arg8 = wxString_in_helper(obj7); | |
4355 | if (arg8 == NULL) SWIG_fail; | |
4356 | temp8 = True; | |
4357 | } | |
4358 | } | |
4359 | { | |
4360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4361 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4362 | ||
4363 | wxPyEndAllowThreads(__tstate); | |
4364 | if (PyErr_Occurred()) SWIG_fail; | |
4365 | } | |
4366 | { | |
4367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4368 | } | |
4369 | { | |
4370 | if (temp4) | |
4371 | delete arg4; | |
4372 | } | |
4373 | { | |
4374 | if (temp8) | |
4375 | delete arg8; | |
4376 | } | |
4377 | return resultobj; | |
4378 | fail: | |
4379 | { | |
4380 | if (temp4) | |
4381 | delete arg4; | |
4382 | } | |
4383 | { | |
4384 | if (temp8) | |
4385 | delete arg8; | |
4386 | } | |
4387 | return NULL; | |
4388 | } | |
4389 | ||
4390 | ||
4391 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4392 | PyObject *obj; | |
4393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4394 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4395 | Py_INCREF(obj); | |
4396 | return Py_BuildValue((char *)""); | |
4397 | } | |
4398 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4399 | PyObject *resultobj; | |
4400 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4401 | int arg2 ; | |
4402 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
4403 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4404 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4405 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4406 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4407 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4408 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4409 | wxStaticLine *result; | |
4410 | wxPoint temp3 ; | |
4411 | wxSize temp4 ; | |
4412 | bool temp6 = False ; | |
4413 | PyObject * obj0 = 0 ; | |
4414 | PyObject * obj1 = 0 ; | |
4415 | PyObject * obj2 = 0 ; | |
4416 | PyObject * obj3 = 0 ; | |
4417 | PyObject * obj4 = 0 ; | |
4418 | PyObject * obj5 = 0 ; | |
4419 | char *kwnames[] = { | |
4420 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4421 | }; | |
4422 | ||
4423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
4424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4426 | arg2 = (int) SWIG_AsInt(obj1); | |
4427 | if (PyErr_Occurred()) SWIG_fail; | |
4428 | if (obj2) { | |
4429 | { | |
4430 | arg3 = &temp3; | |
4431 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4432 | } | |
4433 | } | |
4434 | if (obj3) { | |
4435 | { | |
4436 | arg4 = &temp4; | |
4437 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4438 | } | |
4439 | } | |
4440 | if (obj4) { | |
4441 | arg5 = (long) SWIG_AsLong(obj4); | |
4442 | if (PyErr_Occurred()) SWIG_fail; | |
4443 | } | |
4444 | if (obj5) { | |
4445 | { | |
4446 | arg6 = wxString_in_helper(obj5); | |
4447 | if (arg6 == NULL) SWIG_fail; | |
4448 | temp6 = True; | |
4449 | } | |
4450 | } | |
4451 | { | |
4452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4453 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4454 | ||
4455 | wxPyEndAllowThreads(__tstate); | |
4456 | if (PyErr_Occurred()) SWIG_fail; | |
4457 | } | |
4458 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4459 | { | |
4460 | if (temp6) | |
4461 | delete arg6; | |
4462 | } | |
4463 | return resultobj; | |
4464 | fail: | |
4465 | { | |
4466 | if (temp6) | |
4467 | delete arg6; | |
4468 | } | |
4469 | return NULL; | |
4470 | } | |
4471 | ||
4472 | ||
4473 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4474 | PyObject *resultobj; | |
4475 | wxStaticLine *result; | |
4476 | char *kwnames[] = { | |
4477 | NULL | |
4478 | }; | |
4479 | ||
4480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4481 | { | |
4482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4483 | result = (wxStaticLine *)new wxStaticLine(); | |
4484 | ||
4485 | wxPyEndAllowThreads(__tstate); | |
4486 | if (PyErr_Occurred()) SWIG_fail; | |
4487 | } | |
4488 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4489 | return resultobj; | |
4490 | fail: | |
4491 | return NULL; | |
4492 | } | |
4493 | ||
4494 | ||
4495 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4496 | PyObject *resultobj; | |
4497 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4498 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4499 | int arg3 ; | |
4500 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4501 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4502 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4503 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4504 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4505 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4506 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4507 | bool result; | |
4508 | wxPoint temp4 ; | |
4509 | wxSize temp5 ; | |
4510 | bool temp7 = False ; | |
4511 | PyObject * obj0 = 0 ; | |
4512 | PyObject * obj1 = 0 ; | |
4513 | PyObject * obj2 = 0 ; | |
4514 | PyObject * obj3 = 0 ; | |
4515 | PyObject * obj4 = 0 ; | |
4516 | PyObject * obj5 = 0 ; | |
4517 | PyObject * obj6 = 0 ; | |
4518 | char *kwnames[] = { | |
4519 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4520 | }; | |
4521 | ||
4522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4527 | arg3 = (int) SWIG_AsInt(obj2); | |
4528 | if (PyErr_Occurred()) SWIG_fail; | |
4529 | if (obj3) { | |
4530 | { | |
4531 | arg4 = &temp4; | |
4532 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4533 | } | |
4534 | } | |
4535 | if (obj4) { | |
4536 | { | |
4537 | arg5 = &temp5; | |
4538 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4539 | } | |
4540 | } | |
4541 | if (obj5) { | |
4542 | arg6 = (long) SWIG_AsLong(obj5); | |
4543 | if (PyErr_Occurred()) SWIG_fail; | |
4544 | } | |
4545 | if (obj6) { | |
4546 | { | |
4547 | arg7 = wxString_in_helper(obj6); | |
4548 | if (arg7 == NULL) SWIG_fail; | |
4549 | temp7 = True; | |
4550 | } | |
4551 | } | |
4552 | { | |
4553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4554 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4555 | ||
4556 | wxPyEndAllowThreads(__tstate); | |
4557 | if (PyErr_Occurred()) SWIG_fail; | |
4558 | } | |
4559 | { | |
4560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4561 | } | |
4562 | { | |
4563 | if (temp7) | |
4564 | delete arg7; | |
4565 | } | |
4566 | return resultobj; | |
4567 | fail: | |
4568 | { | |
4569 | if (temp7) | |
4570 | delete arg7; | |
4571 | } | |
4572 | return NULL; | |
4573 | } | |
4574 | ||
4575 | ||
4576 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4577 | PyObject *resultobj; | |
4578 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4579 | bool result; | |
4580 | PyObject * obj0 = 0 ; | |
4581 | char *kwnames[] = { | |
4582 | (char *) "self", NULL | |
4583 | }; | |
4584 | ||
4585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4588 | { | |
4589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4590 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4591 | ||
4592 | wxPyEndAllowThreads(__tstate); | |
4593 | if (PyErr_Occurred()) SWIG_fail; | |
4594 | } | |
4595 | { | |
4596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4597 | } | |
4598 | return resultobj; | |
4599 | fail: | |
4600 | return NULL; | |
4601 | } | |
4602 | ||
4603 | ||
4604 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4605 | PyObject *resultobj; | |
4606 | int result; | |
4607 | char *kwnames[] = { | |
4608 | NULL | |
4609 | }; | |
4610 | ||
4611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4612 | { | |
4613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4614 | result = (int)wxStaticLine::GetDefaultSize(); | |
4615 | ||
4616 | wxPyEndAllowThreads(__tstate); | |
4617 | if (PyErr_Occurred()) SWIG_fail; | |
4618 | } | |
4619 | resultobj = SWIG_FromInt((int)result); | |
4620 | return resultobj; | |
4621 | fail: | |
4622 | return NULL; | |
4623 | } | |
4624 | ||
4625 | ||
4626 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4627 | PyObject *obj; | |
4628 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4629 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4630 | Py_INCREF(obj); | |
4631 | return Py_BuildValue((char *)""); | |
4632 | } | |
4633 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4634 | PyObject *resultobj; | |
4635 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4636 | int arg2 ; | |
4637 | wxString *arg3 = 0 ; | |
4638 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4639 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4640 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4641 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4642 | long arg6 = (long) 0 ; | |
4643 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4644 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4645 | wxStaticText *result; | |
4646 | bool temp3 = False ; | |
4647 | wxPoint temp4 ; | |
4648 | wxSize temp5 ; | |
4649 | bool temp7 = False ; | |
4650 | PyObject * obj0 = 0 ; | |
4651 | PyObject * obj1 = 0 ; | |
4652 | PyObject * obj2 = 0 ; | |
4653 | PyObject * obj3 = 0 ; | |
4654 | PyObject * obj4 = 0 ; | |
4655 | PyObject * obj5 = 0 ; | |
4656 | PyObject * obj6 = 0 ; | |
4657 | char *kwnames[] = { | |
4658 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4659 | }; | |
4660 | ||
4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4664 | arg2 = (int) SWIG_AsInt(obj1); | |
4665 | if (PyErr_Occurred()) SWIG_fail; | |
4666 | { | |
4667 | arg3 = wxString_in_helper(obj2); | |
4668 | if (arg3 == NULL) SWIG_fail; | |
4669 | temp3 = True; | |
4670 | } | |
4671 | if (obj3) { | |
4672 | { | |
4673 | arg4 = &temp4; | |
4674 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4675 | } | |
4676 | } | |
4677 | if (obj4) { | |
4678 | { | |
4679 | arg5 = &temp5; | |
4680 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4681 | } | |
4682 | } | |
4683 | if (obj5) { | |
4684 | arg6 = (long) SWIG_AsLong(obj5); | |
4685 | if (PyErr_Occurred()) SWIG_fail; | |
4686 | } | |
4687 | if (obj6) { | |
4688 | { | |
4689 | arg7 = wxString_in_helper(obj6); | |
4690 | if (arg7 == NULL) SWIG_fail; | |
4691 | temp7 = True; | |
4692 | } | |
4693 | } | |
4694 | { | |
4695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4696 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4697 | ||
4698 | wxPyEndAllowThreads(__tstate); | |
4699 | if (PyErr_Occurred()) SWIG_fail; | |
4700 | } | |
4701 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
4702 | { | |
4703 | if (temp3) | |
4704 | delete arg3; | |
4705 | } | |
4706 | { | |
4707 | if (temp7) | |
4708 | delete arg7; | |
4709 | } | |
4710 | return resultobj; | |
4711 | fail: | |
4712 | { | |
4713 | if (temp3) | |
4714 | delete arg3; | |
4715 | } | |
4716 | { | |
4717 | if (temp7) | |
4718 | delete arg7; | |
4719 | } | |
4720 | return NULL; | |
4721 | } | |
4722 | ||
4723 | ||
4724 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4725 | PyObject *resultobj; | |
4726 | wxStaticText *result; | |
4727 | char *kwnames[] = { | |
4728 | NULL | |
4729 | }; | |
4730 | ||
4731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4732 | { | |
4733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4734 | result = (wxStaticText *)new wxStaticText(); | |
4735 | ||
4736 | wxPyEndAllowThreads(__tstate); | |
4737 | if (PyErr_Occurred()) SWIG_fail; | |
4738 | } | |
4739 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
4740 | return resultobj; | |
4741 | fail: | |
4742 | return NULL; | |
4743 | } | |
4744 | ||
4745 | ||
4746 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4747 | PyObject *resultobj; | |
4748 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4749 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4750 | int arg3 ; | |
4751 | wxString *arg4 = 0 ; | |
4752 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4753 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4754 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4755 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4756 | long arg7 = (long) 0 ; | |
4757 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4758 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4759 | bool result; | |
4760 | bool temp4 = False ; | |
4761 | wxPoint temp5 ; | |
4762 | wxSize temp6 ; | |
4763 | bool temp8 = False ; | |
4764 | PyObject * obj0 = 0 ; | |
4765 | PyObject * obj1 = 0 ; | |
4766 | PyObject * obj2 = 0 ; | |
4767 | PyObject * obj3 = 0 ; | |
4768 | PyObject * obj4 = 0 ; | |
4769 | PyObject * obj5 = 0 ; | |
4770 | PyObject * obj6 = 0 ; | |
4771 | PyObject * obj7 = 0 ; | |
4772 | char *kwnames[] = { | |
4773 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4774 | }; | |
4775 | ||
4776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, | |
4778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4781 | arg3 = (int) SWIG_AsInt(obj2); | |
4782 | if (PyErr_Occurred()) SWIG_fail; | |
4783 | { | |
4784 | arg4 = wxString_in_helper(obj3); | |
4785 | if (arg4 == NULL) SWIG_fail; | |
4786 | temp4 = True; | |
4787 | } | |
4788 | if (obj4) { | |
4789 | { | |
4790 | arg5 = &temp5; | |
4791 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4792 | } | |
4793 | } | |
4794 | if (obj5) { | |
4795 | { | |
4796 | arg6 = &temp6; | |
4797 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4798 | } | |
4799 | } | |
4800 | if (obj6) { | |
4801 | arg7 = (long) SWIG_AsLong(obj6); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
4804 | if (obj7) { | |
4805 | { | |
4806 | arg8 = wxString_in_helper(obj7); | |
4807 | if (arg8 == NULL) SWIG_fail; | |
4808 | temp8 = True; | |
4809 | } | |
4810 | } | |
4811 | { | |
4812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4813 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4814 | ||
4815 | wxPyEndAllowThreads(__tstate); | |
4816 | if (PyErr_Occurred()) SWIG_fail; | |
4817 | } | |
4818 | { | |
4819 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4820 | } | |
4821 | { | |
4822 | if (temp4) | |
4823 | delete arg4; | |
4824 | } | |
4825 | { | |
4826 | if (temp8) | |
4827 | delete arg8; | |
4828 | } | |
4829 | return resultobj; | |
4830 | fail: | |
4831 | { | |
4832 | if (temp4) | |
4833 | delete arg4; | |
4834 | } | |
4835 | { | |
4836 | if (temp8) | |
4837 | delete arg8; | |
4838 | } | |
4839 | return NULL; | |
4840 | } | |
4841 | ||
4842 | ||
4843 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4844 | PyObject *obj; | |
4845 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4846 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4847 | Py_INCREF(obj); | |
4848 | return Py_BuildValue((char *)""); | |
4849 | } | |
4850 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4851 | PyObject *resultobj; | |
4852 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4853 | int arg2 ; | |
4854 | wxBitmap *arg3 = 0 ; | |
4855 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4856 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4857 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4858 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4859 | long arg6 = (long) 0 ; | |
4860 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4861 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4862 | wxStaticBitmap *result; | |
4863 | wxPoint temp4 ; | |
4864 | wxSize temp5 ; | |
4865 | bool temp7 = False ; | |
4866 | PyObject * obj0 = 0 ; | |
4867 | PyObject * obj1 = 0 ; | |
4868 | PyObject * obj2 = 0 ; | |
4869 | PyObject * obj3 = 0 ; | |
4870 | PyObject * obj4 = 0 ; | |
4871 | PyObject * obj5 = 0 ; | |
4872 | PyObject * obj6 = 0 ; | |
4873 | char *kwnames[] = { | |
4874 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4875 | }; | |
4876 | ||
4877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
4878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
4879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4880 | arg2 = (int) SWIG_AsInt(obj1); | |
4881 | if (PyErr_Occurred()) SWIG_fail; | |
4882 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
4883 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4884 | SWIG_fail; | |
4885 | if (arg3 == NULL) { | |
4886 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4887 | SWIG_fail; | |
4888 | } | |
4889 | if (obj3) { | |
4890 | { | |
4891 | arg4 = &temp4; | |
4892 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4893 | } | |
4894 | } | |
4895 | if (obj4) { | |
4896 | { | |
4897 | arg5 = &temp5; | |
4898 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4899 | } | |
4900 | } | |
4901 | if (obj5) { | |
4902 | arg6 = (long) SWIG_AsLong(obj5); | |
4903 | if (PyErr_Occurred()) SWIG_fail; | |
4904 | } | |
4905 | if (obj6) { | |
4906 | { | |
4907 | arg7 = wxString_in_helper(obj6); | |
4908 | if (arg7 == NULL) SWIG_fail; | |
4909 | temp7 = True; | |
4910 | } | |
4911 | } | |
4912 | { | |
4913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4914 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4915 | ||
4916 | wxPyEndAllowThreads(__tstate); | |
4917 | if (PyErr_Occurred()) SWIG_fail; | |
4918 | } | |
4919 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
4920 | { | |
4921 | if (temp7) | |
4922 | delete arg7; | |
4923 | } | |
4924 | return resultobj; | |
4925 | fail: | |
4926 | { | |
4927 | if (temp7) | |
4928 | delete arg7; | |
4929 | } | |
4930 | return NULL; | |
4931 | } | |
4932 | ||
4933 | ||
4934 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4935 | PyObject *resultobj; | |
4936 | wxStaticBitmap *result; | |
4937 | char *kwnames[] = { | |
4938 | NULL | |
4939 | }; | |
4940 | ||
4941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4942 | { | |
4943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4944 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4945 | ||
4946 | wxPyEndAllowThreads(__tstate); | |
4947 | if (PyErr_Occurred()) SWIG_fail; | |
4948 | } | |
4949 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
4950 | return resultobj; | |
4951 | fail: | |
4952 | return NULL; | |
4953 | } | |
4954 | ||
4955 | ||
4956 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4957 | PyObject *resultobj; | |
4958 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4959 | wxWindow *arg2 = (wxWindow *) 0 ; | |
4960 | int arg3 ; | |
4961 | wxBitmap *arg4 = 0 ; | |
4962 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4963 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4964 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4965 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4966 | long arg7 = (long) 0 ; | |
4967 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4968 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4969 | bool result; | |
4970 | wxPoint temp5 ; | |
4971 | wxSize temp6 ; | |
4972 | bool temp8 = False ; | |
4973 | PyObject * obj0 = 0 ; | |
4974 | PyObject * obj1 = 0 ; | |
4975 | PyObject * obj2 = 0 ; | |
4976 | PyObject * obj3 = 0 ; | |
4977 | PyObject * obj4 = 0 ; | |
4978 | PyObject * obj5 = 0 ; | |
4979 | PyObject * obj6 = 0 ; | |
4980 | PyObject * obj7 = 0 ; | |
4981 | char *kwnames[] = { | |
4982 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4983 | }; | |
4984 | ||
4985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
4986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
4987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4988 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4990 | arg3 = (int) SWIG_AsInt(obj2); | |
4991 | if (PyErr_Occurred()) SWIG_fail; | |
4992 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
4993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4994 | SWIG_fail; | |
4995 | if (arg4 == NULL) { | |
4996 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4997 | SWIG_fail; | |
4998 | } | |
4999 | if (obj4) { | |
5000 | { | |
5001 | arg5 = &temp5; | |
5002 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5003 | } | |
5004 | } | |
5005 | if (obj5) { | |
5006 | { | |
5007 | arg6 = &temp6; | |
5008 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5009 | } | |
5010 | } | |
5011 | if (obj6) { | |
5012 | arg7 = (long) SWIG_AsLong(obj6); | |
5013 | if (PyErr_Occurred()) SWIG_fail; | |
5014 | } | |
5015 | if (obj7) { | |
5016 | { | |
5017 | arg8 = wxString_in_helper(obj7); | |
5018 | if (arg8 == NULL) SWIG_fail; | |
5019 | temp8 = True; | |
5020 | } | |
5021 | } | |
5022 | { | |
5023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5024 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5025 | ||
5026 | wxPyEndAllowThreads(__tstate); | |
5027 | if (PyErr_Occurred()) SWIG_fail; | |
5028 | } | |
5029 | { | |
5030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5031 | } | |
5032 | { | |
5033 | if (temp8) | |
5034 | delete arg8; | |
5035 | } | |
5036 | return resultobj; | |
5037 | fail: | |
5038 | { | |
5039 | if (temp8) | |
5040 | delete arg8; | |
5041 | } | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject *resultobj; | |
5048 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5049 | wxBitmap result; | |
5050 | PyObject * obj0 = 0 ; | |
5051 | char *kwnames[] = { | |
5052 | (char *) "self", NULL | |
5053 | }; | |
5054 | ||
5055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5058 | { | |
5059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5060 | result = (arg1)->GetBitmap(); | |
5061 | ||
5062 | wxPyEndAllowThreads(__tstate); | |
5063 | if (PyErr_Occurred()) SWIG_fail; | |
5064 | } | |
5065 | { | |
5066 | wxBitmap * resultptr; | |
5067 | resultptr = new wxBitmap((wxBitmap &) result); | |
5068 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5069 | } | |
5070 | return resultobj; | |
5071 | fail: | |
5072 | return NULL; | |
5073 | } | |
5074 | ||
5075 | ||
5076 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5077 | PyObject *resultobj; | |
5078 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5079 | wxBitmap *arg2 = 0 ; | |
5080 | PyObject * obj0 = 0 ; | |
5081 | PyObject * obj1 = 0 ; | |
5082 | char *kwnames[] = { | |
5083 | (char *) "self",(char *) "bitmap", NULL | |
5084 | }; | |
5085 | ||
5086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5089 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5091 | SWIG_fail; | |
5092 | if (arg2 == NULL) { | |
5093 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5094 | SWIG_fail; | |
5095 | } | |
5096 | { | |
5097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5098 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5099 | ||
5100 | wxPyEndAllowThreads(__tstate); | |
5101 | if (PyErr_Occurred()) SWIG_fail; | |
5102 | } | |
5103 | Py_INCREF(Py_None); resultobj = Py_None; | |
5104 | return resultobj; | |
5105 | fail: | |
5106 | return NULL; | |
5107 | } | |
5108 | ||
5109 | ||
5110 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5111 | PyObject *resultobj; | |
5112 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5113 | wxIcon *arg2 = 0 ; | |
5114 | PyObject * obj0 = 0 ; | |
5115 | PyObject * obj1 = 0 ; | |
5116 | char *kwnames[] = { | |
5117 | (char *) "self",(char *) "icon", NULL | |
5118 | }; | |
5119 | ||
5120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5124 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5125 | SWIG_fail; | |
5126 | if (arg2 == NULL) { | |
5127 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5128 | SWIG_fail; | |
5129 | } | |
5130 | { | |
5131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5132 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5133 | ||
5134 | wxPyEndAllowThreads(__tstate); | |
5135 | if (PyErr_Occurred()) SWIG_fail; | |
5136 | } | |
5137 | Py_INCREF(Py_None); resultobj = Py_None; | |
5138 | return resultobj; | |
5139 | fail: | |
5140 | return NULL; | |
5141 | } | |
5142 | ||
5143 | ||
5144 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
5145 | PyObject *obj; | |
5146 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5147 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5148 | Py_INCREF(obj); | |
5149 | return Py_BuildValue((char *)""); | |
5150 | } | |
5151 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { | |
5152 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5153 | return 1; | |
5154 | } | |
5155 | ||
5156 | ||
5157 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5158 | PyObject *pyobj; | |
5159 | ||
5160 | { | |
5161 | #if wxUSE_UNICODE | |
5162 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5163 | #else | |
5164 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5165 | #endif | |
5166 | } | |
5167 | return pyobj; | |
5168 | } | |
5169 | ||
5170 | ||
5171 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5172 | PyObject *resultobj; | |
5173 | wxWindow *arg1 = (wxWindow *) 0 ; | |
5174 | int arg2 ; | |
5175 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
5176 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5177 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5178 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5179 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5180 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5181 | long arg6 = (long) 0 ; | |
5182 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5183 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5184 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5185 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5186 | wxListBox *result; | |
5187 | wxPoint temp3 ; | |
5188 | wxSize temp4 ; | |
5189 | bool temp5 = False ; | |
5190 | bool temp8 = False ; | |
5191 | PyObject * obj0 = 0 ; | |
5192 | PyObject * obj1 = 0 ; | |
5193 | PyObject * obj2 = 0 ; | |
5194 | PyObject * obj3 = 0 ; | |
5195 | PyObject * obj4 = 0 ; | |
5196 | PyObject * obj5 = 0 ; | |
5197 | PyObject * obj6 = 0 ; | |
5198 | PyObject * obj7 = 0 ; | |
5199 | char *kwnames[] = { | |
5200 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5201 | }; | |
5202 | ||
5203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
5204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
5205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5206 | arg2 = (int) SWIG_AsInt(obj1); | |
5207 | if (PyErr_Occurred()) SWIG_fail; | |
5208 | if (obj2) { | |
5209 | { | |
5210 | arg3 = &temp3; | |
5211 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5212 | } | |
5213 | } | |
5214 | if (obj3) { | |
5215 | { | |
5216 | arg4 = &temp4; | |
5217 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5218 | } | |
5219 | } | |
5220 | if (obj4) { | |
5221 | { | |
5222 | if (! PySequence_Check(obj4)) { | |
5223 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5224 | SWIG_fail; | |
5225 | } | |
5226 | arg5 = new wxArrayString; | |
5227 | temp5 = True; | |
5228 | int i, len=PySequence_Length(obj4); | |
5229 | for (i=0; i<len; i++) { | |
5230 | PyObject* item = PySequence_GetItem(obj4, i); | |
5231 | #if wxUSE_UNICODE | |
5232 | PyObject* str = PyObject_Unicode(item); | |
5233 | #else | |
5234 | PyObject* str = PyObject_Str(item); | |
5235 | #endif | |
5236 | if (PyErr_Occurred()) SWIG_fail; | |
5237 | arg5->Add(Py2wxString(str)); | |
5238 | Py_DECREF(item); | |
5239 | Py_DECREF(str); | |
5240 | } | |
5241 | } | |
5242 | } | |
5243 | if (obj5) { | |
5244 | arg6 = (long) SWIG_AsLong(obj5); | |
5245 | if (PyErr_Occurred()) SWIG_fail; | |
5246 | } | |
5247 | if (obj6) { | |
5248 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5250 | SWIG_fail; | |
5251 | if (arg7 == NULL) { | |
5252 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5253 | SWIG_fail; | |
5254 | } | |
5255 | } | |
5256 | if (obj7) { | |
5257 | { | |
5258 | arg8 = wxString_in_helper(obj7); | |
5259 | if (arg8 == NULL) SWIG_fail; | |
5260 | temp8 = True; | |
5261 | } | |
5262 | } | |
5263 | { | |
5264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5265 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5266 | ||
5267 | wxPyEndAllowThreads(__tstate); | |
5268 | if (PyErr_Occurred()) SWIG_fail; | |
5269 | } | |
5270 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5271 | { | |
5272 | if (temp5) delete arg5; | |
5273 | } | |
5274 | { | |
5275 | if (temp8) | |
5276 | delete arg8; | |
5277 | } | |
5278 | return resultobj; | |
5279 | fail: | |
5280 | { | |
5281 | if (temp5) delete arg5; | |
5282 | } | |
5283 | { | |
5284 | if (temp8) | |
5285 | delete arg8; | |
5286 | } | |
5287 | return NULL; | |
5288 | } | |
5289 | ||
5290 | ||
5291 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5292 | PyObject *resultobj; | |
5293 | wxListBox *result; | |
5294 | char *kwnames[] = { | |
5295 | NULL | |
5296 | }; | |
5297 | ||
5298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5299 | { | |
5300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5301 | result = (wxListBox *)new wxListBox(); | |
5302 | ||
5303 | wxPyEndAllowThreads(__tstate); | |
5304 | if (PyErr_Occurred()) SWIG_fail; | |
5305 | } | |
5306 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5307 | return resultobj; | |
5308 | fail: | |
5309 | return NULL; | |
5310 | } | |
5311 | ||
5312 | ||
5313 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5314 | PyObject *resultobj; | |
5315 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5316 | wxWindow *arg2 = (wxWindow *) 0 ; | |
5317 | int arg3 ; | |
5318 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
5319 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5320 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5321 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5322 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5323 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5324 | long arg7 = (long) 0 ; | |
5325 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5326 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5327 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5328 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5329 | bool result; | |
5330 | wxPoint temp4 ; | |
5331 | wxSize temp5 ; | |
5332 | bool temp6 = False ; | |
5333 | bool temp9 = False ; | |
5334 | PyObject * obj0 = 0 ; | |
5335 | PyObject * obj1 = 0 ; | |
5336 | PyObject * obj2 = 0 ; | |
5337 | PyObject * obj3 = 0 ; | |
5338 | PyObject * obj4 = 0 ; | |
5339 | PyObject * obj5 = 0 ; | |
5340 | PyObject * obj6 = 0 ; | |
5341 | PyObject * obj7 = 0 ; | |
5342 | PyObject * obj8 = 0 ; | |
5343 | char *kwnames[] = { | |
5344 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5345 | }; | |
5346 | ||
5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
5348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5350 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5352 | arg3 = (int) SWIG_AsInt(obj2); | |
5353 | if (PyErr_Occurred()) SWIG_fail; | |
5354 | if (obj3) { | |
5355 | { | |
5356 | arg4 = &temp4; | |
5357 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5358 | } | |
5359 | } | |
5360 | if (obj4) { | |
5361 | { | |
5362 | arg5 = &temp5; | |
5363 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5364 | } | |
5365 | } | |
5366 | if (obj5) { | |
5367 | { | |
5368 | if (! PySequence_Check(obj5)) { | |
5369 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5370 | SWIG_fail; | |
5371 | } | |
5372 | arg6 = new wxArrayString; | |
5373 | temp6 = True; | |
5374 | int i, len=PySequence_Length(obj5); | |
5375 | for (i=0; i<len; i++) { | |
5376 | PyObject* item = PySequence_GetItem(obj5, i); | |
5377 | #if wxUSE_UNICODE | |
5378 | PyObject* str = PyObject_Unicode(item); | |
5379 | #else | |
5380 | PyObject* str = PyObject_Str(item); | |
5381 | #endif | |
5382 | if (PyErr_Occurred()) SWIG_fail; | |
5383 | arg6->Add(Py2wxString(str)); | |
5384 | Py_DECREF(item); | |
5385 | Py_DECREF(str); | |
5386 | } | |
5387 | } | |
5388 | } | |
5389 | if (obj6) { | |
5390 | arg7 = (long) SWIG_AsLong(obj6); | |
5391 | if (PyErr_Occurred()) SWIG_fail; | |
5392 | } | |
5393 | if (obj7) { | |
5394 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5395 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5396 | SWIG_fail; | |
5397 | if (arg8 == NULL) { | |
5398 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5399 | SWIG_fail; | |
5400 | } | |
5401 | } | |
5402 | if (obj8) { | |
5403 | { | |
5404 | arg9 = wxString_in_helper(obj8); | |
5405 | if (arg9 == NULL) SWIG_fail; | |
5406 | temp9 = True; | |
5407 | } | |
5408 | } | |
5409 | { | |
5410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5411 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5412 | ||
5413 | wxPyEndAllowThreads(__tstate); | |
5414 | if (PyErr_Occurred()) SWIG_fail; | |
5415 | } | |
5416 | { | |
5417 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5418 | } | |
5419 | { | |
5420 | if (temp6) delete arg6; | |
5421 | } | |
5422 | { | |
5423 | if (temp9) | |
5424 | delete arg9; | |
5425 | } | |
5426 | return resultobj; | |
5427 | fail: | |
5428 | { | |
5429 | if (temp6) delete arg6; | |
5430 | } | |
5431 | { | |
5432 | if (temp9) | |
5433 | delete arg9; | |
5434 | } | |
5435 | return NULL; | |
5436 | } | |
5437 | ||
5438 | ||
5439 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5440 | PyObject *resultobj; | |
5441 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5442 | wxString *arg2 = 0 ; | |
5443 | int arg3 ; | |
5444 | PyObject *arg4 = (PyObject *) NULL ; | |
5445 | bool temp2 = False ; | |
5446 | PyObject * obj0 = 0 ; | |
5447 | PyObject * obj1 = 0 ; | |
5448 | PyObject * obj2 = 0 ; | |
5449 | PyObject * obj3 = 0 ; | |
5450 | char *kwnames[] = { | |
5451 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5452 | }; | |
5453 | ||
5454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5457 | { | |
5458 | arg2 = wxString_in_helper(obj1); | |
5459 | if (arg2 == NULL) SWIG_fail; | |
5460 | temp2 = True; | |
5461 | } | |
5462 | arg3 = (int) SWIG_AsInt(obj2); | |
5463 | if (PyErr_Occurred()) SWIG_fail; | |
5464 | if (obj3) { | |
5465 | arg4 = obj3; | |
5466 | } | |
5467 | { | |
5468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5469 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5470 | ||
5471 | wxPyEndAllowThreads(__tstate); | |
5472 | if (PyErr_Occurred()) SWIG_fail; | |
5473 | } | |
5474 | Py_INCREF(Py_None); resultobj = Py_None; | |
5475 | { | |
5476 | if (temp2) | |
5477 | delete arg2; | |
5478 | } | |
5479 | return resultobj; | |
5480 | fail: | |
5481 | { | |
5482 | if (temp2) | |
5483 | delete arg2; | |
5484 | } | |
5485 | return NULL; | |
5486 | } | |
5487 | ||
5488 | ||
5489 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5490 | PyObject *resultobj; | |
5491 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5492 | wxArrayString *arg2 = 0 ; | |
5493 | int arg3 ; | |
5494 | bool temp2 = False ; | |
5495 | PyObject * obj0 = 0 ; | |
5496 | PyObject * obj1 = 0 ; | |
5497 | PyObject * obj2 = 0 ; | |
5498 | char *kwnames[] = { | |
5499 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5500 | }; | |
5501 | ||
5502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5505 | { | |
5506 | if (! PySequence_Check(obj1)) { | |
5507 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5508 | SWIG_fail; | |
5509 | } | |
5510 | arg2 = new wxArrayString; | |
5511 | temp2 = True; | |
5512 | int i, len=PySequence_Length(obj1); | |
5513 | for (i=0; i<len; i++) { | |
5514 | PyObject* item = PySequence_GetItem(obj1, i); | |
5515 | #if wxUSE_UNICODE | |
5516 | PyObject* str = PyObject_Unicode(item); | |
5517 | #else | |
5518 | PyObject* str = PyObject_Str(item); | |
5519 | #endif | |
5520 | if (PyErr_Occurred()) SWIG_fail; | |
5521 | arg2->Add(Py2wxString(str)); | |
5522 | Py_DECREF(item); | |
5523 | Py_DECREF(str); | |
5524 | } | |
5525 | } | |
5526 | arg3 = (int) SWIG_AsInt(obj2); | |
5527 | if (PyErr_Occurred()) SWIG_fail; | |
5528 | { | |
5529 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5530 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5531 | ||
5532 | wxPyEndAllowThreads(__tstate); | |
5533 | if (PyErr_Occurred()) SWIG_fail; | |
5534 | } | |
5535 | Py_INCREF(Py_None); resultobj = Py_None; | |
5536 | { | |
5537 | if (temp2) delete arg2; | |
5538 | } | |
5539 | return resultobj; | |
5540 | fail: | |
5541 | { | |
5542 | if (temp2) delete arg2; | |
5543 | } | |
5544 | return NULL; | |
5545 | } | |
5546 | ||
5547 | ||
5548 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5549 | PyObject *resultobj; | |
5550 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5551 | wxArrayString *arg2 = 0 ; | |
5552 | bool temp2 = False ; | |
5553 | PyObject * obj0 = 0 ; | |
5554 | PyObject * obj1 = 0 ; | |
5555 | char *kwnames[] = { | |
5556 | (char *) "self",(char *) "items", NULL | |
5557 | }; | |
5558 | ||
5559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
5560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5562 | { | |
5563 | if (! PySequence_Check(obj1)) { | |
5564 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5565 | SWIG_fail; | |
5566 | } | |
5567 | arg2 = new wxArrayString; | |
5568 | temp2 = True; | |
5569 | int i, len=PySequence_Length(obj1); | |
5570 | for (i=0; i<len; i++) { | |
5571 | PyObject* item = PySequence_GetItem(obj1, i); | |
5572 | #if wxUSE_UNICODE | |
5573 | PyObject* str = PyObject_Unicode(item); | |
5574 | #else | |
5575 | PyObject* str = PyObject_Str(item); | |
5576 | #endif | |
5577 | if (PyErr_Occurred()) SWIG_fail; | |
5578 | arg2->Add(Py2wxString(str)); | |
5579 | Py_DECREF(item); | |
5580 | Py_DECREF(str); | |
5581 | } | |
5582 | } | |
5583 | { | |
5584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5585 | (arg1)->Set((wxArrayString const &)*arg2); | |
5586 | ||
5587 | wxPyEndAllowThreads(__tstate); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
5590 | Py_INCREF(Py_None); resultobj = Py_None; | |
5591 | { | |
5592 | if (temp2) delete arg2; | |
5593 | } | |
5594 | return resultobj; | |
5595 | fail: | |
5596 | { | |
5597 | if (temp2) delete arg2; | |
5598 | } | |
5599 | return NULL; | |
5600 | } | |
5601 | ||
5602 | ||
5603 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5604 | PyObject *resultobj; | |
5605 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5606 | int arg2 ; | |
5607 | bool result; | |
5608 | PyObject * obj0 = 0 ; | |
5609 | PyObject * obj1 = 0 ; | |
5610 | char *kwnames[] = { | |
5611 | (char *) "self",(char *) "n", NULL | |
5612 | }; | |
5613 | ||
5614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
5615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5617 | arg2 = (int) SWIG_AsInt(obj1); | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | { | |
5620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5621 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5622 | ||
5623 | wxPyEndAllowThreads(__tstate); | |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
5625 | } | |
5626 | { | |
5627 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5628 | } | |
5629 | return resultobj; | |
5630 | fail: | |
5631 | return NULL; | |
5632 | } | |
5633 | ||
5634 | ||
5635 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5636 | PyObject *resultobj; | |
5637 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5638 | int arg2 ; | |
5639 | bool arg3 = (bool) True ; | |
5640 | PyObject * obj0 = 0 ; | |
5641 | PyObject * obj1 = 0 ; | |
5642 | PyObject * obj2 = 0 ; | |
5643 | char *kwnames[] = { | |
5644 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5645 | }; | |
5646 | ||
5647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5650 | arg2 = (int) SWIG_AsInt(obj1); | |
5651 | if (PyErr_Occurred()) SWIG_fail; | |
5652 | if (obj2) { | |
5653 | arg3 = (bool) SWIG_AsBool(obj2); | |
5654 | if (PyErr_Occurred()) SWIG_fail; | |
5655 | } | |
5656 | { | |
5657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5658 | (arg1)->SetSelection(arg2,arg3); | |
5659 | ||
5660 | wxPyEndAllowThreads(__tstate); | |
5661 | if (PyErr_Occurred()) SWIG_fail; | |
5662 | } | |
5663 | Py_INCREF(Py_None); resultobj = Py_None; | |
5664 | return resultobj; | |
5665 | fail: | |
5666 | return NULL; | |
5667 | } | |
5668 | ||
5669 | ||
5670 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5671 | PyObject *resultobj; | |
5672 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5673 | int arg2 ; | |
5674 | PyObject * obj0 = 0 ; | |
5675 | PyObject * obj1 = 0 ; | |
5676 | char *kwnames[] = { | |
5677 | (char *) "self",(char *) "n", NULL | |
5678 | }; | |
5679 | ||
5680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
5681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5683 | arg2 = (int) SWIG_AsInt(obj1); | |
5684 | if (PyErr_Occurred()) SWIG_fail; | |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | (arg1)->Select(arg2); | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
5692 | Py_INCREF(Py_None); resultobj = Py_None; | |
5693 | return resultobj; | |
5694 | fail: | |
5695 | return NULL; | |
5696 | } | |
5697 | ||
5698 | ||
5699 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5700 | PyObject *resultobj; | |
5701 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5702 | int arg2 ; | |
5703 | PyObject * obj0 = 0 ; | |
5704 | PyObject * obj1 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self",(char *) "n", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
5710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5712 | arg2 = (int) SWIG_AsInt(obj1); | |
5713 | if (PyErr_Occurred()) SWIG_fail; | |
5714 | { | |
5715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5716 | (arg1)->Deselect(arg2); | |
5717 | ||
5718 | wxPyEndAllowThreads(__tstate); | |
5719 | if (PyErr_Occurred()) SWIG_fail; | |
5720 | } | |
5721 | Py_INCREF(Py_None); resultobj = Py_None; | |
5722 | return resultobj; | |
5723 | fail: | |
5724 | return NULL; | |
5725 | } | |
5726 | ||
5727 | ||
5728 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5729 | PyObject *resultobj; | |
5730 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5731 | int arg2 = (int) -1 ; | |
5732 | PyObject * obj0 = 0 ; | |
5733 | PyObject * obj1 = 0 ; | |
5734 | char *kwnames[] = { | |
5735 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5736 | }; | |
5737 | ||
5738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
5739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5741 | if (obj1) { | |
5742 | arg2 = (int) SWIG_AsInt(obj1); | |
5743 | if (PyErr_Occurred()) SWIG_fail; | |
5744 | } | |
5745 | { | |
5746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5747 | (arg1)->DeselectAll(arg2); | |
5748 | ||
5749 | wxPyEndAllowThreads(__tstate); | |
5750 | if (PyErr_Occurred()) SWIG_fail; | |
5751 | } | |
5752 | Py_INCREF(Py_None); resultobj = Py_None; | |
5753 | return resultobj; | |
5754 | fail: | |
5755 | return NULL; | |
5756 | } | |
5757 | ||
5758 | ||
5759 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5760 | PyObject *resultobj; | |
5761 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5762 | wxString *arg2 = 0 ; | |
5763 | bool arg3 = (bool) True ; | |
5764 | bool result; | |
5765 | bool temp2 = False ; | |
5766 | PyObject * obj0 = 0 ; | |
5767 | PyObject * obj1 = 0 ; | |
5768 | PyObject * obj2 = 0 ; | |
5769 | char *kwnames[] = { | |
5770 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5771 | }; | |
5772 | ||
5773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5776 | { | |
5777 | arg2 = wxString_in_helper(obj1); | |
5778 | if (arg2 == NULL) SWIG_fail; | |
5779 | temp2 = True; | |
5780 | } | |
5781 | if (obj2) { | |
5782 | arg3 = (bool) SWIG_AsBool(obj2); | |
5783 | if (PyErr_Occurred()) SWIG_fail; | |
5784 | } | |
5785 | { | |
5786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5787 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5788 | ||
5789 | wxPyEndAllowThreads(__tstate); | |
5790 | if (PyErr_Occurred()) SWIG_fail; | |
5791 | } | |
5792 | { | |
5793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5794 | } | |
5795 | { | |
5796 | if (temp2) | |
5797 | delete arg2; | |
5798 | } | |
5799 | return resultobj; | |
5800 | fail: | |
5801 | { | |
5802 | if (temp2) | |
5803 | delete arg2; | |
5804 | } | |
5805 | return NULL; | |
5806 | } | |
5807 | ||
5808 | ||
5809 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5810 | PyObject *resultobj; | |
5811 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5812 | PyObject *result; | |
5813 | PyObject * obj0 = 0 ; | |
5814 | char *kwnames[] = { | |
5815 | (char *) "self", NULL | |
5816 | }; | |
5817 | ||
5818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
5819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5821 | { | |
5822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5823 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5824 | ||
5825 | wxPyEndAllowThreads(__tstate); | |
5826 | if (PyErr_Occurred()) SWIG_fail; | |
5827 | } | |
5828 | resultobj = result; | |
5829 | return resultobj; | |
5830 | fail: | |
5831 | return NULL; | |
5832 | } | |
5833 | ||
5834 | ||
5835 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5836 | PyObject *resultobj; | |
5837 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5838 | int arg2 ; | |
5839 | PyObject * obj0 = 0 ; | |
5840 | PyObject * obj1 = 0 ; | |
5841 | char *kwnames[] = { | |
5842 | (char *) "self",(char *) "n", NULL | |
5843 | }; | |
5844 | ||
5845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
5846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5848 | arg2 = (int) SWIG_AsInt(obj1); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | { | |
5851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5852 | (arg1)->SetFirstItem(arg2); | |
5853 | ||
5854 | wxPyEndAllowThreads(__tstate); | |
5855 | if (PyErr_Occurred()) SWIG_fail; | |
5856 | } | |
5857 | Py_INCREF(Py_None); resultobj = Py_None; | |
5858 | return resultobj; | |
5859 | fail: | |
5860 | return NULL; | |
5861 | } | |
5862 | ||
5863 | ||
5864 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5865 | PyObject *resultobj; | |
5866 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5867 | wxString *arg2 = 0 ; | |
5868 | bool temp2 = False ; | |
5869 | PyObject * obj0 = 0 ; | |
5870 | PyObject * obj1 = 0 ; | |
5871 | char *kwnames[] = { | |
5872 | (char *) "self",(char *) "s", NULL | |
5873 | }; | |
5874 | ||
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5878 | { | |
5879 | arg2 = wxString_in_helper(obj1); | |
5880 | if (arg2 == NULL) SWIG_fail; | |
5881 | temp2 = True; | |
5882 | } | |
5883 | { | |
5884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5885 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5886 | ||
5887 | wxPyEndAllowThreads(__tstate); | |
5888 | if (PyErr_Occurred()) SWIG_fail; | |
5889 | } | |
5890 | Py_INCREF(Py_None); resultobj = Py_None; | |
5891 | { | |
5892 | if (temp2) | |
5893 | delete arg2; | |
5894 | } | |
5895 | return resultobj; | |
5896 | fail: | |
5897 | { | |
5898 | if (temp2) | |
5899 | delete arg2; | |
5900 | } | |
5901 | return NULL; | |
5902 | } | |
5903 | ||
5904 | ||
5905 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5906 | PyObject *resultobj; | |
5907 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5908 | int arg2 ; | |
5909 | PyObject * obj0 = 0 ; | |
5910 | PyObject * obj1 = 0 ; | |
5911 | char *kwnames[] = { | |
5912 | (char *) "self",(char *) "n", NULL | |
5913 | }; | |
5914 | ||
5915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5918 | arg2 = (int) SWIG_AsInt(obj1); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | { | |
5921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5922 | (arg1)->EnsureVisible(arg2); | |
5923 | ||
5924 | wxPyEndAllowThreads(__tstate); | |
5925 | if (PyErr_Occurred()) SWIG_fail; | |
5926 | } | |
5927 | Py_INCREF(Py_None); resultobj = Py_None; | |
5928 | return resultobj; | |
5929 | fail: | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject *resultobj; | |
5936 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5937 | wxString *arg2 = 0 ; | |
5938 | bool temp2 = False ; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | PyObject * obj1 = 0 ; | |
5941 | char *kwnames[] = { | |
5942 | (char *) "self",(char *) "s", NULL | |
5943 | }; | |
5944 | ||
5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
5946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5948 | { | |
5949 | arg2 = wxString_in_helper(obj1); | |
5950 | if (arg2 == NULL) SWIG_fail; | |
5951 | temp2 = True; | |
5952 | } | |
5953 | { | |
5954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5955 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5956 | ||
5957 | wxPyEndAllowThreads(__tstate); | |
5958 | if (PyErr_Occurred()) SWIG_fail; | |
5959 | } | |
5960 | Py_INCREF(Py_None); resultobj = Py_None; | |
5961 | { | |
5962 | if (temp2) | |
5963 | delete arg2; | |
5964 | } | |
5965 | return resultobj; | |
5966 | fail: | |
5967 | { | |
5968 | if (temp2) | |
5969 | delete arg2; | |
5970 | } | |
5971 | return NULL; | |
5972 | } | |
5973 | ||
5974 | ||
5975 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject *resultobj; | |
5977 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5978 | bool result; | |
5979 | PyObject * obj0 = 0 ; | |
5980 | char *kwnames[] = { | |
5981 | (char *) "self", NULL | |
5982 | }; | |
5983 | ||
5984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
5985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5987 | { | |
5988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5989 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5990 | ||
5991 | wxPyEndAllowThreads(__tstate); | |
5992 | if (PyErr_Occurred()) SWIG_fail; | |
5993 | } | |
5994 | { | |
5995 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5996 | } | |
5997 | return resultobj; | |
5998 | fail: | |
5999 | return NULL; | |
6000 | } | |
6001 | ||
6002 | ||
6003 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6004 | PyObject *resultobj; | |
6005 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6006 | int arg2 ; | |
6007 | wxColour *arg3 = 0 ; | |
6008 | wxColour temp3 ; | |
6009 | PyObject * obj0 = 0 ; | |
6010 | PyObject * obj1 = 0 ; | |
6011 | PyObject * obj2 = 0 ; | |
6012 | char *kwnames[] = { | |
6013 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6014 | }; | |
6015 | ||
6016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6019 | arg2 = (int) SWIG_AsInt(obj1); | |
6020 | if (PyErr_Occurred()) SWIG_fail; | |
6021 | { | |
6022 | arg3 = &temp3; | |
6023 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6024 | } | |
6025 | { | |
6026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6027 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6028 | ||
6029 | wxPyEndAllowThreads(__tstate); | |
6030 | if (PyErr_Occurred()) SWIG_fail; | |
6031 | } | |
6032 | Py_INCREF(Py_None); resultobj = Py_None; | |
6033 | return resultobj; | |
6034 | fail: | |
6035 | return NULL; | |
6036 | } | |
6037 | ||
6038 | ||
6039 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6040 | PyObject *resultobj; | |
6041 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6042 | int arg2 ; | |
6043 | wxColour *arg3 = 0 ; | |
6044 | wxColour temp3 ; | |
6045 | PyObject * obj0 = 0 ; | |
6046 | PyObject * obj1 = 0 ; | |
6047 | PyObject * obj2 = 0 ; | |
6048 | char *kwnames[] = { | |
6049 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6050 | }; | |
6051 | ||
6052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6055 | arg2 = (int) SWIG_AsInt(obj1); | |
6056 | if (PyErr_Occurred()) SWIG_fail; | |
6057 | { | |
6058 | arg3 = &temp3; | |
6059 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6060 | } | |
6061 | { | |
6062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6063 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6064 | ||
6065 | wxPyEndAllowThreads(__tstate); | |
6066 | if (PyErr_Occurred()) SWIG_fail; | |
6067 | } | |
6068 | Py_INCREF(Py_None); resultobj = Py_None; | |
6069 | return resultobj; | |
6070 | fail: | |
6071 | return NULL; | |
6072 | } | |
6073 | ||
6074 | ||
6075 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6076 | PyObject *resultobj; | |
6077 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6078 | int arg2 ; | |
6079 | wxFont *arg3 = 0 ; | |
6080 | PyObject * obj0 = 0 ; | |
6081 | PyObject * obj1 = 0 ; | |
6082 | PyObject * obj2 = 0 ; | |
6083 | char *kwnames[] = { | |
6084 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6085 | }; | |
6086 | ||
6087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6090 | arg2 = (int) SWIG_AsInt(obj1); | |
6091 | if (PyErr_Occurred()) SWIG_fail; | |
6092 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6093 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6094 | SWIG_fail; | |
6095 | if (arg3 == NULL) { | |
6096 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6097 | SWIG_fail; | |
6098 | } | |
6099 | { | |
6100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6101 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6102 | ||
6103 | wxPyEndAllowThreads(__tstate); | |
6104 | if (PyErr_Occurred()) SWIG_fail; | |
6105 | } | |
6106 | Py_INCREF(Py_None); resultobj = Py_None; | |
6107 | return resultobj; | |
6108 | fail: | |
6109 | return NULL; | |
6110 | } | |
6111 | ||
6112 | ||
6113 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6114 | PyObject *resultobj; | |
6115 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6116 | wxVisualAttributes result; | |
6117 | PyObject * obj0 = 0 ; | |
6118 | char *kwnames[] = { | |
6119 | (char *) "variant", NULL | |
6120 | }; | |
6121 | ||
6122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6123 | if (obj0) { | |
6124 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6125 | if (PyErr_Occurred()) SWIG_fail; | |
6126 | } | |
6127 | { | |
6128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6129 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6130 | ||
6131 | wxPyEndAllowThreads(__tstate); | |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
6133 | } | |
6134 | { | |
6135 | wxVisualAttributes * resultptr; | |
6136 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6137 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6138 | } | |
6139 | return resultobj; | |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
6145 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
6146 | PyObject *obj; | |
6147 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6148 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6149 | Py_INCREF(obj); | |
6150 | return Py_BuildValue((char *)""); | |
6151 | } | |
6152 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject *resultobj; | |
6154 | wxWindow *arg1 = (wxWindow *) 0 ; | |
6155 | int arg2 ; | |
6156 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
6157 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6158 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6159 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6160 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6161 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6162 | long arg6 = (long) 0 ; | |
6163 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6164 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6165 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6166 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6167 | wxCheckListBox *result; | |
6168 | wxPoint temp3 ; | |
6169 | wxSize temp4 ; | |
6170 | bool temp5 = False ; | |
6171 | bool temp8 = False ; | |
6172 | PyObject * obj0 = 0 ; | |
6173 | PyObject * obj1 = 0 ; | |
6174 | PyObject * obj2 = 0 ; | |
6175 | PyObject * obj3 = 0 ; | |
6176 | PyObject * obj4 = 0 ; | |
6177 | PyObject * obj5 = 0 ; | |
6178 | PyObject * obj6 = 0 ; | |
6179 | PyObject * obj7 = 0 ; | |
6180 | char *kwnames[] = { | |
6181 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6182 | }; | |
6183 | ||
6184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
6185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
6186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6187 | arg2 = (int) SWIG_AsInt(obj1); | |
6188 | if (PyErr_Occurred()) SWIG_fail; | |
6189 | if (obj2) { | |
6190 | { | |
6191 | arg3 = &temp3; | |
6192 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6193 | } | |
6194 | } | |
6195 | if (obj3) { | |
6196 | { | |
6197 | arg4 = &temp4; | |
6198 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6199 | } | |
6200 | } | |
6201 | if (obj4) { | |
6202 | { | |
6203 | if (! PySequence_Check(obj4)) { | |
6204 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6205 | SWIG_fail; | |
6206 | } | |
6207 | arg5 = new wxArrayString; | |
6208 | temp5 = True; | |
6209 | int i, len=PySequence_Length(obj4); | |
6210 | for (i=0; i<len; i++) { | |
6211 | PyObject* item = PySequence_GetItem(obj4, i); | |
6212 | #if wxUSE_UNICODE | |
6213 | PyObject* str = PyObject_Unicode(item); | |
6214 | #else | |
6215 | PyObject* str = PyObject_Str(item); | |
6216 | #endif | |
6217 | if (PyErr_Occurred()) SWIG_fail; | |
6218 | arg5->Add(Py2wxString(str)); | |
6219 | Py_DECREF(item); | |
6220 | Py_DECREF(str); | |
6221 | } | |
6222 | } | |
6223 | } | |
6224 | if (obj5) { | |
6225 | arg6 = (long) SWIG_AsLong(obj5); | |
6226 | if (PyErr_Occurred()) SWIG_fail; | |
6227 | } | |
6228 | if (obj6) { | |
6229 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6231 | SWIG_fail; | |
6232 | if (arg7 == NULL) { | |
6233 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6234 | SWIG_fail; | |
6235 | } | |
6236 | } | |
6237 | if (obj7) { | |
6238 | { | |
6239 | arg8 = wxString_in_helper(obj7); | |
6240 | if (arg8 == NULL) SWIG_fail; | |
6241 | temp8 = True; | |
6242 | } | |
6243 | } | |
6244 | { | |
6245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6246 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6247 | ||
6248 | wxPyEndAllowThreads(__tstate); | |
6249 | if (PyErr_Occurred()) SWIG_fail; | |
6250 | } | |
6251 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6252 | { | |
6253 | if (temp5) delete arg5; | |
6254 | } | |
6255 | { | |
6256 | if (temp8) | |
6257 | delete arg8; | |
6258 | } | |
6259 | return resultobj; | |
6260 | fail: | |
6261 | { | |
6262 | if (temp5) delete arg5; | |
6263 | } | |
6264 | { | |
6265 | if (temp8) | |
6266 | delete arg8; | |
6267 | } | |
6268 | return NULL; | |
6269 | } | |
6270 | ||
6271 | ||
6272 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6273 | PyObject *resultobj; | |
6274 | wxCheckListBox *result; | |
6275 | char *kwnames[] = { | |
6276 | NULL | |
6277 | }; | |
6278 | ||
6279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6280 | { | |
6281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6282 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6283 | ||
6284 | wxPyEndAllowThreads(__tstate); | |
6285 | if (PyErr_Occurred()) SWIG_fail; | |
6286 | } | |
6287 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6288 | return resultobj; | |
6289 | fail: | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
6298 | int arg3 ; | |
6299 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
6300 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6301 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6302 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6303 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6304 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6305 | long arg7 = (long) 0 ; | |
6306 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6307 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6308 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6309 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6310 | bool result; | |
6311 | wxPoint temp4 ; | |
6312 | wxSize temp5 ; | |
6313 | bool temp6 = False ; | |
6314 | bool temp9 = False ; | |
6315 | PyObject * obj0 = 0 ; | |
6316 | PyObject * obj1 = 0 ; | |
6317 | PyObject * obj2 = 0 ; | |
6318 | PyObject * obj3 = 0 ; | |
6319 | PyObject * obj4 = 0 ; | |
6320 | PyObject * obj5 = 0 ; | |
6321 | PyObject * obj6 = 0 ; | |
6322 | PyObject * obj7 = 0 ; | |
6323 | PyObject * obj8 = 0 ; | |
6324 | char *kwnames[] = { | |
6325 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6326 | }; | |
6327 | ||
6328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
6329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6333 | arg3 = (int) SWIG_AsInt(obj2); | |
6334 | if (PyErr_Occurred()) SWIG_fail; | |
6335 | if (obj3) { | |
6336 | { | |
6337 | arg4 = &temp4; | |
6338 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6339 | } | |
6340 | } | |
6341 | if (obj4) { | |
6342 | { | |
6343 | arg5 = &temp5; | |
6344 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6345 | } | |
6346 | } | |
6347 | if (obj5) { | |
6348 | { | |
6349 | if (! PySequence_Check(obj5)) { | |
6350 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6351 | SWIG_fail; | |
6352 | } | |
6353 | arg6 = new wxArrayString; | |
6354 | temp6 = True; | |
6355 | int i, len=PySequence_Length(obj5); | |
6356 | for (i=0; i<len; i++) { | |
6357 | PyObject* item = PySequence_GetItem(obj5, i); | |
6358 | #if wxUSE_UNICODE | |
6359 | PyObject* str = PyObject_Unicode(item); | |
6360 | #else | |
6361 | PyObject* str = PyObject_Str(item); | |
6362 | #endif | |
6363 | if (PyErr_Occurred()) SWIG_fail; | |
6364 | arg6->Add(Py2wxString(str)); | |
6365 | Py_DECREF(item); | |
6366 | Py_DECREF(str); | |
6367 | } | |
6368 | } | |
6369 | } | |
6370 | if (obj6) { | |
6371 | arg7 = (long) SWIG_AsLong(obj6); | |
6372 | if (PyErr_Occurred()) SWIG_fail; | |
6373 | } | |
6374 | if (obj7) { | |
6375 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6376 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6377 | SWIG_fail; | |
6378 | if (arg8 == NULL) { | |
6379 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6380 | SWIG_fail; | |
6381 | } | |
6382 | } | |
6383 | if (obj8) { | |
6384 | { | |
6385 | arg9 = wxString_in_helper(obj8); | |
6386 | if (arg9 == NULL) SWIG_fail; | |
6387 | temp9 = True; | |
6388 | } | |
6389 | } | |
6390 | { | |
6391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6392 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6393 | ||
6394 | wxPyEndAllowThreads(__tstate); | |
6395 | if (PyErr_Occurred()) SWIG_fail; | |
6396 | } | |
6397 | { | |
6398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6399 | } | |
6400 | { | |
6401 | if (temp6) delete arg6; | |
6402 | } | |
6403 | { | |
6404 | if (temp9) | |
6405 | delete arg9; | |
6406 | } | |
6407 | return resultobj; | |
6408 | fail: | |
6409 | { | |
6410 | if (temp6) delete arg6; | |
6411 | } | |
6412 | { | |
6413 | if (temp9) | |
6414 | delete arg9; | |
6415 | } | |
6416 | return NULL; | |
6417 | } | |
6418 | ||
6419 | ||
6420 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6421 | PyObject *resultobj; | |
6422 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6423 | int arg2 ; | |
6424 | bool result; | |
6425 | PyObject * obj0 = 0 ; | |
6426 | PyObject * obj1 = 0 ; | |
6427 | char *kwnames[] = { | |
6428 | (char *) "self",(char *) "index", NULL | |
6429 | }; | |
6430 | ||
6431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6434 | arg2 = (int) SWIG_AsInt(obj1); | |
6435 | if (PyErr_Occurred()) SWIG_fail; | |
6436 | { | |
6437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6438 | result = (bool)(arg1)->IsChecked(arg2); | |
6439 | ||
6440 | wxPyEndAllowThreads(__tstate); | |
6441 | if (PyErr_Occurred()) SWIG_fail; | |
6442 | } | |
6443 | { | |
6444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6445 | } | |
6446 | return resultobj; | |
6447 | fail: | |
6448 | return NULL; | |
6449 | } | |
6450 | ||
6451 | ||
6452 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6453 | PyObject *resultobj; | |
6454 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6455 | int arg2 ; | |
6456 | int arg3 = (int) True ; | |
6457 | PyObject * obj0 = 0 ; | |
6458 | PyObject * obj1 = 0 ; | |
6459 | PyObject * obj2 = 0 ; | |
6460 | char *kwnames[] = { | |
6461 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6462 | }; | |
6463 | ||
6464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6467 | arg2 = (int) SWIG_AsInt(obj1); | |
6468 | if (PyErr_Occurred()) SWIG_fail; | |
6469 | if (obj2) { | |
6470 | arg3 = (int) SWIG_AsInt(obj2); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
6473 | { | |
6474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6475 | (arg1)->Check(arg2,arg3); | |
6476 | ||
6477 | wxPyEndAllowThreads(__tstate); | |
6478 | if (PyErr_Occurred()) SWIG_fail; | |
6479 | } | |
6480 | Py_INCREF(Py_None); resultobj = Py_None; | |
6481 | return resultobj; | |
6482 | fail: | |
6483 | return NULL; | |
6484 | } | |
6485 | ||
6486 | ||
6487 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6488 | PyObject *resultobj; | |
6489 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6490 | int result; | |
6491 | PyObject * obj0 = 0 ; | |
6492 | char *kwnames[] = { | |
6493 | (char *) "self", NULL | |
6494 | }; | |
6495 | ||
6496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6497 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6498 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6499 | { | |
6500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6501 | result = (int)(arg1)->GetItemHeight(); | |
6502 | ||
6503 | wxPyEndAllowThreads(__tstate); | |
6504 | if (PyErr_Occurred()) SWIG_fail; | |
6505 | } | |
6506 | resultobj = SWIG_FromInt((int)result); | |
6507 | return resultobj; | |
6508 | fail: | |
6509 | return NULL; | |
6510 | } | |
6511 | ||
6512 | ||
6513 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6514 | PyObject *resultobj; | |
6515 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6516 | wxPoint *arg2 = 0 ; | |
6517 | int result; | |
6518 | wxPoint temp2 ; | |
6519 | PyObject * obj0 = 0 ; | |
6520 | PyObject * obj1 = 0 ; | |
6521 | char *kwnames[] = { | |
6522 | (char *) "self",(char *) "pt", NULL | |
6523 | }; | |
6524 | ||
6525 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6526 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6527 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6528 | { | |
6529 | arg2 = &temp2; | |
6530 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6531 | } | |
6532 | { | |
6533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6534 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6535 | ||
6536 | wxPyEndAllowThreads(__tstate); | |
6537 | if (PyErr_Occurred()) SWIG_fail; | |
6538 | } | |
6539 | resultobj = SWIG_FromInt((int)result); | |
6540 | return resultobj; | |
6541 | fail: | |
6542 | return NULL; | |
6543 | } | |
6544 | ||
6545 | ||
6546 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6547 | PyObject *resultobj; | |
6548 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6549 | int arg2 ; | |
6550 | int arg3 ; | |
6551 | int result; | |
6552 | PyObject * obj0 = 0 ; | |
6553 | PyObject * obj1 = 0 ; | |
6554 | PyObject * obj2 = 0 ; | |
6555 | char *kwnames[] = { | |
6556 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6557 | }; | |
6558 | ||
6559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6562 | arg2 = (int) SWIG_AsInt(obj1); | |
6563 | if (PyErr_Occurred()) SWIG_fail; | |
6564 | arg3 = (int) SWIG_AsInt(obj2); | |
6565 | if (PyErr_Occurred()) SWIG_fail; | |
6566 | { | |
6567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6568 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6569 | ||
6570 | wxPyEndAllowThreads(__tstate); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
6573 | resultobj = SWIG_FromInt((int)result); | |
6574 | return resultobj; | |
6575 | fail: | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6581 | PyObject *obj; | |
6582 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6583 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6584 | Py_INCREF(obj); | |
6585 | return Py_BuildValue((char *)""); | |
6586 | } | |
6587 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { | |
6588 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6589 | return 1; | |
6590 | } | |
6591 | ||
6592 | ||
6593 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6594 | PyObject *pyobj; | |
6595 | ||
6596 | { | |
6597 | #if wxUSE_UNICODE | |
6598 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6599 | #else | |
6600 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6601 | #endif | |
6602 | } | |
6603 | return pyobj; | |
6604 | } | |
6605 | ||
6606 | ||
6607 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { | |
6608 | PyObject *resultobj; | |
6609 | wxTextAttr *result; | |
6610 | ||
6611 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6612 | { | |
6613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6614 | result = (wxTextAttr *)new wxTextAttr(); | |
6615 | ||
6616 | wxPyEndAllowThreads(__tstate); | |
6617 | if (PyErr_Occurred()) SWIG_fail; | |
6618 | } | |
6619 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
6620 | return resultobj; | |
6621 | fail: | |
6622 | return NULL; | |
6623 | } | |
6624 | ||
6625 | ||
6626 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6627 | PyObject *resultobj; | |
6628 | wxColour *arg1 = 0 ; | |
6629 | wxColour const &arg2_defvalue = wxNullColour ; | |
6630 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6631 | wxFont const &arg3_defvalue = wxNullFont ; | |
6632 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6633 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6634 | wxTextAttr *result; | |
6635 | wxColour temp1 ; | |
6636 | wxColour temp2 ; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | PyObject * obj1 = 0 ; | |
6639 | PyObject * obj2 = 0 ; | |
6640 | PyObject * obj3 = 0 ; | |
6641 | ||
6642 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; | |
6643 | { | |
6644 | arg1 = &temp1; | |
6645 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6646 | } | |
6647 | if (obj1) { | |
6648 | { | |
6649 | arg2 = &temp2; | |
6650 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6651 | } | |
6652 | } | |
6653 | if (obj2) { | |
6654 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6655 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6656 | SWIG_fail; | |
6657 | if (arg3 == NULL) { | |
6658 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6659 | SWIG_fail; | |
6660 | } | |
6661 | } | |
6662 | if (obj3) { | |
6663 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); | |
6664 | if (PyErr_Occurred()) SWIG_fail; | |
6665 | } | |
6666 | { | |
6667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6668 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
6669 | ||
6670 | wxPyEndAllowThreads(__tstate); | |
6671 | if (PyErr_Occurred()) SWIG_fail; | |
6672 | } | |
6673 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
6674 | return resultobj; | |
6675 | fail: | |
6676 | return NULL; | |
6677 | } | |
6678 | ||
6679 | ||
6680 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6681 | int argc; | |
6682 | PyObject *argv[5]; | |
6683 | int ii; | |
6684 | ||
6685 | argc = PyObject_Length(args); | |
6686 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6687 | argv[ii] = PyTuple_GetItem(args,ii); | |
6688 | } | |
6689 | if (argc == 0) { | |
6690 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6691 | } | |
6692 | if ((argc >= 1) && (argc <= 4)) { | |
6693 | int _v; | |
6694 | { | |
6695 | _v = wxColour_typecheck(argv[0]); | |
6696 | } | |
6697 | if (_v) { | |
6698 | if (argc <= 1) { | |
6699 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6700 | } | |
6701 | { | |
6702 | _v = wxColour_typecheck(argv[1]); | |
6703 | } | |
6704 | if (_v) { | |
6705 | if (argc <= 2) { | |
6706 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6707 | } | |
6708 | { | |
6709 | void *ptr; | |
6710 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { | |
6711 | _v = 0; | |
6712 | PyErr_Clear(); | |
6713 | } else { | |
6714 | _v = 1; | |
6715 | } | |
6716 | } | |
6717 | if (_v) { | |
6718 | if (argc <= 3) { | |
6719 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6720 | } | |
6721 | _v = SWIG_CheckInt(argv[3]); | |
6722 | if (_v) { | |
6723 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6724 | } | |
6725 | } | |
6726 | } | |
6727 | } | |
6728 | } | |
6729 | ||
6730 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6731 | return NULL; | |
6732 | } | |
6733 | ||
6734 | ||
6735 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6736 | PyObject *resultobj; | |
6737 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6738 | PyObject * obj0 = 0 ; | |
6739 | char *kwnames[] = { | |
6740 | (char *) "self", NULL | |
6741 | }; | |
6742 | ||
6743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
6744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6746 | { | |
6747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6748 | delete arg1; | |
6749 | ||
6750 | wxPyEndAllowThreads(__tstate); | |
6751 | if (PyErr_Occurred()) SWIG_fail; | |
6752 | } | |
6753 | Py_INCREF(Py_None); resultobj = Py_None; | |
6754 | return resultobj; | |
6755 | fail: | |
6756 | return NULL; | |
6757 | } | |
6758 | ||
6759 | ||
6760 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6761 | PyObject *resultobj; | |
6762 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6763 | PyObject * obj0 = 0 ; | |
6764 | char *kwnames[] = { | |
6765 | (char *) "self", NULL | |
6766 | }; | |
6767 | ||
6768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
6769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6771 | { | |
6772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6773 | (arg1)->Init(); | |
6774 | ||
6775 | wxPyEndAllowThreads(__tstate); | |
6776 | if (PyErr_Occurred()) SWIG_fail; | |
6777 | } | |
6778 | Py_INCREF(Py_None); resultobj = Py_None; | |
6779 | return resultobj; | |
6780 | fail: | |
6781 | return NULL; | |
6782 | } | |
6783 | ||
6784 | ||
6785 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6786 | PyObject *resultobj; | |
6787 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6788 | wxColour *arg2 = 0 ; | |
6789 | wxColour temp2 ; | |
6790 | PyObject * obj0 = 0 ; | |
6791 | PyObject * obj1 = 0 ; | |
6792 | char *kwnames[] = { | |
6793 | (char *) "self",(char *) "colText", NULL | |
6794 | }; | |
6795 | ||
6796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
6797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6799 | { | |
6800 | arg2 = &temp2; | |
6801 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6802 | } | |
6803 | { | |
6804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6805 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6806 | ||
6807 | wxPyEndAllowThreads(__tstate); | |
6808 | if (PyErr_Occurred()) SWIG_fail; | |
6809 | } | |
6810 | Py_INCREF(Py_None); resultobj = Py_None; | |
6811 | return resultobj; | |
6812 | fail: | |
6813 | return NULL; | |
6814 | } | |
6815 | ||
6816 | ||
6817 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6818 | PyObject *resultobj; | |
6819 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6820 | wxColour *arg2 = 0 ; | |
6821 | wxColour temp2 ; | |
6822 | PyObject * obj0 = 0 ; | |
6823 | PyObject * obj1 = 0 ; | |
6824 | char *kwnames[] = { | |
6825 | (char *) "self",(char *) "colBack", NULL | |
6826 | }; | |
6827 | ||
6828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
6829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6831 | { | |
6832 | arg2 = &temp2; | |
6833 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6834 | } | |
6835 | { | |
6836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6837 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6838 | ||
6839 | wxPyEndAllowThreads(__tstate); | |
6840 | if (PyErr_Occurred()) SWIG_fail; | |
6841 | } | |
6842 | Py_INCREF(Py_None); resultobj = Py_None; | |
6843 | return resultobj; | |
6844 | fail: | |
6845 | return NULL; | |
6846 | } | |
6847 | ||
6848 | ||
6849 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6850 | PyObject *resultobj; | |
6851 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6852 | wxFont *arg2 = 0 ; | |
6853 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6854 | PyObject * obj0 = 0 ; | |
6855 | PyObject * obj1 = 0 ; | |
6856 | PyObject * obj2 = 0 ; | |
6857 | char *kwnames[] = { | |
6858 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6859 | }; | |
6860 | ||
6861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6864 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6865 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6866 | SWIG_fail; | |
6867 | if (arg2 == NULL) { | |
6868 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6869 | SWIG_fail; | |
6870 | } | |
6871 | if (obj2) { | |
6872 | arg3 = (long) SWIG_AsLong(obj2); | |
6873 | if (PyErr_Occurred()) SWIG_fail; | |
6874 | } | |
6875 | { | |
6876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6877 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6878 | ||
6879 | wxPyEndAllowThreads(__tstate); | |
6880 | if (PyErr_Occurred()) SWIG_fail; | |
6881 | } | |
6882 | Py_INCREF(Py_None); resultobj = Py_None; | |
6883 | return resultobj; | |
6884 | fail: | |
6885 | return NULL; | |
6886 | } | |
6887 | ||
6888 | ||
6889 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6890 | PyObject *resultobj; | |
6891 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6892 | int arg2 ; | |
6893 | PyObject * obj0 = 0 ; | |
6894 | PyObject * obj1 = 0 ; | |
6895 | char *kwnames[] = { | |
6896 | (char *) "self",(char *) "alignment", NULL | |
6897 | }; | |
6898 | ||
6899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
6900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6902 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | { | |
6905 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6906 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6907 | ||
6908 | wxPyEndAllowThreads(__tstate); | |
6909 | if (PyErr_Occurred()) SWIG_fail; | |
6910 | } | |
6911 | Py_INCREF(Py_None); resultobj = Py_None; | |
6912 | return resultobj; | |
6913 | fail: | |
6914 | return NULL; | |
6915 | } | |
6916 | ||
6917 | ||
6918 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6919 | PyObject *resultobj; | |
6920 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6921 | wxArrayInt *arg2 = 0 ; | |
6922 | bool temp2 = False ; | |
6923 | PyObject * obj0 = 0 ; | |
6924 | PyObject * obj1 = 0 ; | |
6925 | char *kwnames[] = { | |
6926 | (char *) "self",(char *) "tabs", NULL | |
6927 | }; | |
6928 | ||
6929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
6930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6932 | { | |
6933 | if (! PySequence_Check(obj1)) { | |
6934 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6935 | SWIG_fail; | |
6936 | } | |
6937 | arg2 = new wxArrayInt; | |
6938 | temp2 = True; | |
6939 | int i, len=PySequence_Length(obj1); | |
6940 | for (i=0; i<len; i++) { | |
6941 | PyObject* item = PySequence_GetItem(obj1, i); | |
6942 | PyObject* number = PyNumber_Int(item); | |
6943 | arg2->Add(PyInt_AS_LONG(number)); | |
6944 | Py_DECREF(item); | |
6945 | Py_DECREF(number); | |
6946 | } | |
6947 | } | |
6948 | { | |
6949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6950 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6951 | ||
6952 | wxPyEndAllowThreads(__tstate); | |
6953 | if (PyErr_Occurred()) SWIG_fail; | |
6954 | } | |
6955 | Py_INCREF(Py_None); resultobj = Py_None; | |
6956 | { | |
6957 | if (temp2) delete arg2; | |
6958 | } | |
6959 | return resultobj; | |
6960 | fail: | |
6961 | { | |
6962 | if (temp2) delete arg2; | |
6963 | } | |
6964 | return NULL; | |
6965 | } | |
6966 | ||
6967 | ||
6968 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6969 | PyObject *resultobj; | |
6970 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6971 | int arg2 ; | |
6972 | PyObject * obj0 = 0 ; | |
6973 | PyObject * obj1 = 0 ; | |
6974 | char *kwnames[] = { | |
6975 | (char *) "self",(char *) "indent", NULL | |
6976 | }; | |
6977 | ||
6978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; | |
6979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
6980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6981 | arg2 = (int) SWIG_AsInt(obj1); | |
6982 | if (PyErr_Occurred()) SWIG_fail; | |
6983 | { | |
6984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6985 | (arg1)->SetLeftIndent(arg2); | |
6986 | ||
6987 | wxPyEndAllowThreads(__tstate); | |
6988 | if (PyErr_Occurred()) SWIG_fail; | |
6989 | } | |
6990 | Py_INCREF(Py_None); resultobj = Py_None; | |
6991 | return resultobj; | |
6992 | fail: | |
6993 | return NULL; | |
6994 | } | |
6995 | ||
6996 | ||
6997 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6998 | PyObject *resultobj; | |
6999 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7000 | int arg2 ; | |
7001 | PyObject * obj0 = 0 ; | |
7002 | PyObject * obj1 = 0 ; | |
7003 | char *kwnames[] = { | |
7004 | (char *) "self",(char *) "indent", NULL | |
7005 | }; | |
7006 | ||
7007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7010 | arg2 = (int) SWIG_AsInt(obj1); | |
7011 | if (PyErr_Occurred()) SWIG_fail; | |
7012 | { | |
7013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7014 | (arg1)->SetRightIndent(arg2); | |
7015 | ||
7016 | wxPyEndAllowThreads(__tstate); | |
7017 | if (PyErr_Occurred()) SWIG_fail; | |
7018 | } | |
7019 | Py_INCREF(Py_None); resultobj = Py_None; | |
7020 | return resultobj; | |
7021 | fail: | |
7022 | return NULL; | |
7023 | } | |
7024 | ||
7025 | ||
7026 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7027 | PyObject *resultobj; | |
7028 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7029 | long arg2 ; | |
7030 | PyObject * obj0 = 0 ; | |
7031 | PyObject * obj1 = 0 ; | |
7032 | char *kwnames[] = { | |
7033 | (char *) "self",(char *) "flags", NULL | |
7034 | }; | |
7035 | ||
7036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7039 | arg2 = (long) SWIG_AsLong(obj1); | |
7040 | if (PyErr_Occurred()) SWIG_fail; | |
7041 | { | |
7042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7043 | (arg1)->SetFlags(arg2); | |
7044 | ||
7045 | wxPyEndAllowThreads(__tstate); | |
7046 | if (PyErr_Occurred()) SWIG_fail; | |
7047 | } | |
7048 | Py_INCREF(Py_None); resultobj = Py_None; | |
7049 | return resultobj; | |
7050 | fail: | |
7051 | return NULL; | |
7052 | } | |
7053 | ||
7054 | ||
7055 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7056 | PyObject *resultobj; | |
7057 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7058 | bool result; | |
7059 | PyObject * obj0 = 0 ; | |
7060 | char *kwnames[] = { | |
7061 | (char *) "self", NULL | |
7062 | }; | |
7063 | ||
7064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7067 | { | |
7068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7069 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7070 | ||
7071 | wxPyEndAllowThreads(__tstate); | |
7072 | if (PyErr_Occurred()) SWIG_fail; | |
7073 | } | |
7074 | { | |
7075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7076 | } | |
7077 | return resultobj; | |
7078 | fail: | |
7079 | return NULL; | |
7080 | } | |
7081 | ||
7082 | ||
7083 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7084 | PyObject *resultobj; | |
7085 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7086 | bool result; | |
7087 | PyObject * obj0 = 0 ; | |
7088 | char *kwnames[] = { | |
7089 | (char *) "self", NULL | |
7090 | }; | |
7091 | ||
7092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7095 | { | |
7096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7097 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7098 | ||
7099 | wxPyEndAllowThreads(__tstate); | |
7100 | if (PyErr_Occurred()) SWIG_fail; | |
7101 | } | |
7102 | { | |
7103 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7104 | } | |
7105 | return resultobj; | |
7106 | fail: | |
7107 | return NULL; | |
7108 | } | |
7109 | ||
7110 | ||
7111 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7112 | PyObject *resultobj; | |
7113 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7114 | bool result; | |
7115 | PyObject * obj0 = 0 ; | |
7116 | char *kwnames[] = { | |
7117 | (char *) "self", NULL | |
7118 | }; | |
7119 | ||
7120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7123 | { | |
7124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7125 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7126 | ||
7127 | wxPyEndAllowThreads(__tstate); | |
7128 | if (PyErr_Occurred()) SWIG_fail; | |
7129 | } | |
7130 | { | |
7131 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7132 | } | |
7133 | return resultobj; | |
7134 | fail: | |
7135 | return NULL; | |
7136 | } | |
7137 | ||
7138 | ||
7139 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7140 | PyObject *resultobj; | |
7141 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7142 | bool result; | |
7143 | PyObject * obj0 = 0 ; | |
7144 | char *kwnames[] = { | |
7145 | (char *) "self", NULL | |
7146 | }; | |
7147 | ||
7148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7151 | { | |
7152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7153 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7154 | ||
7155 | wxPyEndAllowThreads(__tstate); | |
7156 | if (PyErr_Occurred()) SWIG_fail; | |
7157 | } | |
7158 | { | |
7159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7160 | } | |
7161 | return resultobj; | |
7162 | fail: | |
7163 | return NULL; | |
7164 | } | |
7165 | ||
7166 | ||
7167 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7168 | PyObject *resultobj; | |
7169 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7170 | bool result; | |
7171 | PyObject * obj0 = 0 ; | |
7172 | char *kwnames[] = { | |
7173 | (char *) "self", NULL | |
7174 | }; | |
7175 | ||
7176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7179 | { | |
7180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7181 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7182 | ||
7183 | wxPyEndAllowThreads(__tstate); | |
7184 | if (PyErr_Occurred()) SWIG_fail; | |
7185 | } | |
7186 | { | |
7187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7188 | } | |
7189 | return resultobj; | |
7190 | fail: | |
7191 | return NULL; | |
7192 | } | |
7193 | ||
7194 | ||
7195 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7196 | PyObject *resultobj; | |
7197 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7198 | bool result; | |
7199 | PyObject * obj0 = 0 ; | |
7200 | char *kwnames[] = { | |
7201 | (char *) "self", NULL | |
7202 | }; | |
7203 | ||
7204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7207 | { | |
7208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7209 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7210 | ||
7211 | wxPyEndAllowThreads(__tstate); | |
7212 | if (PyErr_Occurred()) SWIG_fail; | |
7213 | } | |
7214 | { | |
7215 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7216 | } | |
7217 | return resultobj; | |
7218 | fail: | |
7219 | return NULL; | |
7220 | } | |
7221 | ||
7222 | ||
7223 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7224 | PyObject *resultobj; | |
7225 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7226 | bool result; | |
7227 | PyObject * obj0 = 0 ; | |
7228 | char *kwnames[] = { | |
7229 | (char *) "self", NULL | |
7230 | }; | |
7231 | ||
7232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7235 | { | |
7236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7237 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7238 | ||
7239 | wxPyEndAllowThreads(__tstate); | |
7240 | if (PyErr_Occurred()) SWIG_fail; | |
7241 | } | |
7242 | { | |
7243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7244 | } | |
7245 | return resultobj; | |
7246 | fail: | |
7247 | return NULL; | |
7248 | } | |
7249 | ||
7250 | ||
7251 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7252 | PyObject *resultobj; | |
7253 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7254 | long arg2 ; | |
7255 | bool result; | |
7256 | PyObject * obj0 = 0 ; | |
7257 | PyObject * obj1 = 0 ; | |
7258 | char *kwnames[] = { | |
7259 | (char *) "self",(char *) "flag", NULL | |
7260 | }; | |
7261 | ||
7262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7265 | arg2 = (long) SWIG_AsLong(obj1); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | { | |
7268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7269 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7270 | ||
7271 | wxPyEndAllowThreads(__tstate); | |
7272 | if (PyErr_Occurred()) SWIG_fail; | |
7273 | } | |
7274 | { | |
7275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7276 | } | |
7277 | return resultobj; | |
7278 | fail: | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
7283 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7284 | PyObject *resultobj; | |
7285 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7286 | wxColour *result; | |
7287 | PyObject * obj0 = 0 ; | |
7288 | char *kwnames[] = { | |
7289 | (char *) "self", NULL | |
7290 | }; | |
7291 | ||
7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7295 | { | |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | { | |
7298 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7299 | result = (wxColour *) &_result_ref; | |
7300 | } | |
7301 | ||
7302 | wxPyEndAllowThreads(__tstate); | |
7303 | if (PyErr_Occurred()) SWIG_fail; | |
7304 | } | |
7305 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7306 | return resultobj; | |
7307 | fail: | |
7308 | return NULL; | |
7309 | } | |
7310 | ||
7311 | ||
7312 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7313 | PyObject *resultobj; | |
7314 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7315 | wxColour *result; | |
7316 | PyObject * obj0 = 0 ; | |
7317 | char *kwnames[] = { | |
7318 | (char *) "self", NULL | |
7319 | }; | |
7320 | ||
7321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7324 | { | |
7325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7326 | { | |
7327 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7328 | result = (wxColour *) &_result_ref; | |
7329 | } | |
7330 | ||
7331 | wxPyEndAllowThreads(__tstate); | |
7332 | if (PyErr_Occurred()) SWIG_fail; | |
7333 | } | |
7334 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7335 | return resultobj; | |
7336 | fail: | |
7337 | return NULL; | |
7338 | } | |
7339 | ||
7340 | ||
7341 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7342 | PyObject *resultobj; | |
7343 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7344 | wxFont *result; | |
7345 | PyObject * obj0 = 0 ; | |
7346 | char *kwnames[] = { | |
7347 | (char *) "self", NULL | |
7348 | }; | |
7349 | ||
7350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7353 | { | |
7354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7355 | { | |
7356 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7357 | result = (wxFont *) &_result_ref; | |
7358 | } | |
7359 | ||
7360 | wxPyEndAllowThreads(__tstate); | |
7361 | if (PyErr_Occurred()) SWIG_fail; | |
7362 | } | |
7363 | { | |
7364 | wxFont* resultptr = new wxFont(*result); | |
7365 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7366 | } | |
7367 | return resultobj; | |
7368 | fail: | |
7369 | return NULL; | |
7370 | } | |
7371 | ||
7372 | ||
7373 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7374 | PyObject *resultobj; | |
7375 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7376 | int result; | |
7377 | PyObject * obj0 = 0 ; | |
7378 | char *kwnames[] = { | |
7379 | (char *) "self", NULL | |
7380 | }; | |
7381 | ||
7382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7385 | { | |
7386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7387 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7388 | ||
7389 | wxPyEndAllowThreads(__tstate); | |
7390 | if (PyErr_Occurred()) SWIG_fail; | |
7391 | } | |
7392 | resultobj = SWIG_FromInt((int)result); | |
7393 | return resultobj; | |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7402 | wxArrayInt *result; | |
7403 | PyObject * obj0 = 0 ; | |
7404 | char *kwnames[] = { | |
7405 | (char *) "self", NULL | |
7406 | }; | |
7407 | ||
7408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7411 | { | |
7412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7413 | { | |
7414 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7415 | result = (wxArrayInt *) &_result_ref; | |
7416 | } | |
7417 | ||
7418 | wxPyEndAllowThreads(__tstate); | |
7419 | if (PyErr_Occurred()) SWIG_fail; | |
7420 | } | |
7421 | { | |
7422 | resultobj = PyList_New(0); | |
7423 | size_t idx; | |
7424 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7425 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7426 | PyList_Append(resultobj, val); | |
7427 | Py_DECREF(val); | |
7428 | } | |
7429 | } | |
7430 | return resultobj; | |
7431 | fail: | |
7432 | return NULL; | |
7433 | } | |
7434 | ||
7435 | ||
7436 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7437 | PyObject *resultobj; | |
7438 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7439 | long result; | |
7440 | PyObject * obj0 = 0 ; | |
7441 | char *kwnames[] = { | |
7442 | (char *) "self", NULL | |
7443 | }; | |
7444 | ||
7445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7448 | { | |
7449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7450 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7451 | ||
7452 | wxPyEndAllowThreads(__tstate); | |
7453 | if (PyErr_Occurred()) SWIG_fail; | |
7454 | } | |
7455 | resultobj = SWIG_FromLong((long)result); | |
7456 | return resultobj; | |
7457 | fail: | |
7458 | return NULL; | |
7459 | } | |
7460 | ||
7461 | ||
7462 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7463 | PyObject *resultobj; | |
7464 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7465 | long result; | |
7466 | PyObject * obj0 = 0 ; | |
7467 | char *kwnames[] = { | |
7468 | (char *) "self", NULL | |
7469 | }; | |
7470 | ||
7471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7474 | { | |
7475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7476 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7477 | ||
7478 | wxPyEndAllowThreads(__tstate); | |
7479 | if (PyErr_Occurred()) SWIG_fail; | |
7480 | } | |
7481 | resultobj = SWIG_FromLong((long)result); | |
7482 | return resultobj; | |
7483 | fail: | |
7484 | return NULL; | |
7485 | } | |
7486 | ||
7487 | ||
7488 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7489 | PyObject *resultobj; | |
7490 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7491 | long result; | |
7492 | PyObject * obj0 = 0 ; | |
7493 | char *kwnames[] = { | |
7494 | (char *) "self", NULL | |
7495 | }; | |
7496 | ||
7497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7500 | { | |
7501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7502 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7503 | ||
7504 | wxPyEndAllowThreads(__tstate); | |
7505 | if (PyErr_Occurred()) SWIG_fail; | |
7506 | } | |
7507 | resultobj = SWIG_FromLong((long)result); | |
7508 | return resultobj; | |
7509 | fail: | |
7510 | return NULL; | |
7511 | } | |
7512 | ||
7513 | ||
7514 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7515 | PyObject *resultobj; | |
7516 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7517 | bool result; | |
7518 | PyObject * obj0 = 0 ; | |
7519 | char *kwnames[] = { | |
7520 | (char *) "self", NULL | |
7521 | }; | |
7522 | ||
7523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7526 | { | |
7527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7528 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7529 | ||
7530 | wxPyEndAllowThreads(__tstate); | |
7531 | if (PyErr_Occurred()) SWIG_fail; | |
7532 | } | |
7533 | { | |
7534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7535 | } | |
7536 | return resultobj; | |
7537 | fail: | |
7538 | return NULL; | |
7539 | } | |
7540 | ||
7541 | ||
7542 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7543 | PyObject *resultobj; | |
7544 | wxTextAttr *arg1 = 0 ; | |
7545 | wxTextAttr *arg2 = 0 ; | |
7546 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7547 | wxTextAttr result; | |
7548 | PyObject * obj0 = 0 ; | |
7549 | PyObject * obj1 = 0 ; | |
7550 | PyObject * obj2 = 0 ; | |
7551 | char *kwnames[] = { | |
7552 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7553 | }; | |
7554 | ||
7555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7558 | SWIG_fail; | |
7559 | if (arg1 == NULL) { | |
7560 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7561 | SWIG_fail; | |
7562 | } | |
7563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
7564 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7565 | SWIG_fail; | |
7566 | if (arg2 == NULL) { | |
7567 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7568 | SWIG_fail; | |
7569 | } | |
7570 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
7571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7572 | { | |
7573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7574 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7575 | ||
7576 | wxPyEndAllowThreads(__tstate); | |
7577 | if (PyErr_Occurred()) SWIG_fail; | |
7578 | } | |
7579 | { | |
7580 | wxTextAttr * resultptr; | |
7581 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7582 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
7583 | } | |
7584 | return resultobj; | |
7585 | fail: | |
7586 | return NULL; | |
7587 | } | |
7588 | ||
7589 | ||
7590 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7591 | PyObject *obj; | |
7592 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7593 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7594 | Py_INCREF(obj); | |
7595 | return Py_BuildValue((char *)""); | |
7596 | } | |
7597 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7598 | PyObject *resultobj; | |
7599 | wxWindow *arg1 = (wxWindow *) 0 ; | |
7600 | int arg2 ; | |
7601 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
7602 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7603 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7604 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7605 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7606 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7607 | long arg6 = (long) 0 ; | |
7608 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7609 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7610 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7611 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7612 | wxTextCtrl *result; | |
7613 | bool temp3 = False ; | |
7614 | wxPoint temp4 ; | |
7615 | wxSize temp5 ; | |
7616 | bool temp8 = False ; | |
7617 | PyObject * obj0 = 0 ; | |
7618 | PyObject * obj1 = 0 ; | |
7619 | PyObject * obj2 = 0 ; | |
7620 | PyObject * obj3 = 0 ; | |
7621 | PyObject * obj4 = 0 ; | |
7622 | PyObject * obj5 = 0 ; | |
7623 | PyObject * obj6 = 0 ; | |
7624 | PyObject * obj7 = 0 ; | |
7625 | char *kwnames[] = { | |
7626 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7627 | }; | |
7628 | ||
7629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
7630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
7631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7632 | arg2 = (int) SWIG_AsInt(obj1); | |
7633 | if (PyErr_Occurred()) SWIG_fail; | |
7634 | if (obj2) { | |
7635 | { | |
7636 | arg3 = wxString_in_helper(obj2); | |
7637 | if (arg3 == NULL) SWIG_fail; | |
7638 | temp3 = True; | |
7639 | } | |
7640 | } | |
7641 | if (obj3) { | |
7642 | { | |
7643 | arg4 = &temp4; | |
7644 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7645 | } | |
7646 | } | |
7647 | if (obj4) { | |
7648 | { | |
7649 | arg5 = &temp5; | |
7650 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7651 | } | |
7652 | } | |
7653 | if (obj5) { | |
7654 | arg6 = (long) SWIG_AsLong(obj5); | |
7655 | if (PyErr_Occurred()) SWIG_fail; | |
7656 | } | |
7657 | if (obj6) { | |
7658 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
7659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7660 | SWIG_fail; | |
7661 | if (arg7 == NULL) { | |
7662 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7663 | SWIG_fail; | |
7664 | } | |
7665 | } | |
7666 | if (obj7) { | |
7667 | { | |
7668 | arg8 = wxString_in_helper(obj7); | |
7669 | if (arg8 == NULL) SWIG_fail; | |
7670 | temp8 = True; | |
7671 | } | |
7672 | } | |
7673 | { | |
7674 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7675 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7676 | ||
7677 | wxPyEndAllowThreads(__tstate); | |
7678 | if (PyErr_Occurred()) SWIG_fail; | |
7679 | } | |
7680 | { | |
7681 | resultobj = wxPyMake_wxObject(result); | |
7682 | } | |
7683 | { | |
7684 | if (temp3) | |
7685 | delete arg3; | |
7686 | } | |
7687 | { | |
7688 | if (temp8) | |
7689 | delete arg8; | |
7690 | } | |
7691 | return resultobj; | |
7692 | fail: | |
7693 | { | |
7694 | if (temp3) | |
7695 | delete arg3; | |
7696 | } | |
7697 | { | |
7698 | if (temp8) | |
7699 | delete arg8; | |
7700 | } | |
7701 | return NULL; | |
7702 | } | |
7703 | ||
7704 | ||
7705 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7706 | PyObject *resultobj; | |
7707 | wxTextCtrl *result; | |
7708 | char *kwnames[] = { | |
7709 | NULL | |
7710 | }; | |
7711 | ||
7712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7713 | { | |
7714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7715 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7716 | ||
7717 | wxPyEndAllowThreads(__tstate); | |
7718 | if (PyErr_Occurred()) SWIG_fail; | |
7719 | } | |
7720 | { | |
7721 | resultobj = wxPyMake_wxObject(result); | |
7722 | } | |
7723 | return resultobj; | |
7724 | fail: | |
7725 | return NULL; | |
7726 | } | |
7727 | ||
7728 | ||
7729 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7730 | PyObject *resultobj; | |
7731 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
7733 | int arg3 ; | |
7734 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
7735 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7736 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7737 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7738 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7739 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7740 | long arg7 = (long) 0 ; | |
7741 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7742 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7743 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7744 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7745 | bool result; | |
7746 | bool temp4 = False ; | |
7747 | wxPoint temp5 ; | |
7748 | wxSize temp6 ; | |
7749 | bool temp9 = False ; | |
7750 | PyObject * obj0 = 0 ; | |
7751 | PyObject * obj1 = 0 ; | |
7752 | PyObject * obj2 = 0 ; | |
7753 | PyObject * obj3 = 0 ; | |
7754 | PyObject * obj4 = 0 ; | |
7755 | PyObject * obj5 = 0 ; | |
7756 | PyObject * obj6 = 0 ; | |
7757 | PyObject * obj7 = 0 ; | |
7758 | PyObject * obj8 = 0 ; | |
7759 | char *kwnames[] = { | |
7760 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7761 | }; | |
7762 | ||
7763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
7764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7768 | arg3 = (int) SWIG_AsInt(obj2); | |
7769 | if (PyErr_Occurred()) SWIG_fail; | |
7770 | if (obj3) { | |
7771 | { | |
7772 | arg4 = wxString_in_helper(obj3); | |
7773 | if (arg4 == NULL) SWIG_fail; | |
7774 | temp4 = True; | |
7775 | } | |
7776 | } | |
7777 | if (obj4) { | |
7778 | { | |
7779 | arg5 = &temp5; | |
7780 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7781 | } | |
7782 | } | |
7783 | if (obj5) { | |
7784 | { | |
7785 | arg6 = &temp6; | |
7786 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7787 | } | |
7788 | } | |
7789 | if (obj6) { | |
7790 | arg7 = (long) SWIG_AsLong(obj6); | |
7791 | if (PyErr_Occurred()) SWIG_fail; | |
7792 | } | |
7793 | if (obj7) { | |
7794 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
7795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7796 | SWIG_fail; | |
7797 | if (arg8 == NULL) { | |
7798 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7799 | SWIG_fail; | |
7800 | } | |
7801 | } | |
7802 | if (obj8) { | |
7803 | { | |
7804 | arg9 = wxString_in_helper(obj8); | |
7805 | if (arg9 == NULL) SWIG_fail; | |
7806 | temp9 = True; | |
7807 | } | |
7808 | } | |
7809 | { | |
7810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7811 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7812 | ||
7813 | wxPyEndAllowThreads(__tstate); | |
7814 | if (PyErr_Occurred()) SWIG_fail; | |
7815 | } | |
7816 | { | |
7817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7818 | } | |
7819 | { | |
7820 | if (temp4) | |
7821 | delete arg4; | |
7822 | } | |
7823 | { | |
7824 | if (temp9) | |
7825 | delete arg9; | |
7826 | } | |
7827 | return resultobj; | |
7828 | fail: | |
7829 | { | |
7830 | if (temp4) | |
7831 | delete arg4; | |
7832 | } | |
7833 | { | |
7834 | if (temp9) | |
7835 | delete arg9; | |
7836 | } | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7844 | wxString result; | |
7845 | PyObject * obj0 = 0 ; | |
7846 | char *kwnames[] = { | |
7847 | (char *) "self", NULL | |
7848 | }; | |
7849 | ||
7850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
7851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7853 | { | |
7854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7855 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7856 | ||
7857 | wxPyEndAllowThreads(__tstate); | |
7858 | if (PyErr_Occurred()) SWIG_fail; | |
7859 | } | |
7860 | { | |
7861 | #if wxUSE_UNICODE | |
7862 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7863 | #else | |
7864 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7865 | #endif | |
7866 | } | |
7867 | return resultobj; | |
7868 | fail: | |
7869 | return NULL; | |
7870 | } | |
7871 | ||
7872 | ||
7873 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7874 | PyObject *resultobj; | |
7875 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7876 | wxString *arg2 = 0 ; | |
7877 | bool temp2 = False ; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | PyObject * obj1 = 0 ; | |
7880 | char *kwnames[] = { | |
7881 | (char *) "self",(char *) "value", NULL | |
7882 | }; | |
7883 | ||
7884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
7885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7887 | { | |
7888 | arg2 = wxString_in_helper(obj1); | |
7889 | if (arg2 == NULL) SWIG_fail; | |
7890 | temp2 = True; | |
7891 | } | |
7892 | { | |
7893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7894 | (arg1)->SetValue((wxString const &)*arg2); | |
7895 | ||
7896 | wxPyEndAllowThreads(__tstate); | |
7897 | if (PyErr_Occurred()) SWIG_fail; | |
7898 | } | |
7899 | Py_INCREF(Py_None); resultobj = Py_None; | |
7900 | { | |
7901 | if (temp2) | |
7902 | delete arg2; | |
7903 | } | |
7904 | return resultobj; | |
7905 | fail: | |
7906 | { | |
7907 | if (temp2) | |
7908 | delete arg2; | |
7909 | } | |
7910 | return NULL; | |
7911 | } | |
7912 | ||
7913 | ||
7914 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7915 | PyObject *resultobj; | |
7916 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7917 | long arg2 ; | |
7918 | long arg3 ; | |
7919 | wxString result; | |
7920 | PyObject * obj0 = 0 ; | |
7921 | PyObject * obj1 = 0 ; | |
7922 | PyObject * obj2 = 0 ; | |
7923 | char *kwnames[] = { | |
7924 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7925 | }; | |
7926 | ||
7927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7930 | arg2 = (long) SWIG_AsLong(obj1); | |
7931 | if (PyErr_Occurred()) SWIG_fail; | |
7932 | arg3 = (long) SWIG_AsLong(obj2); | |
7933 | if (PyErr_Occurred()) SWIG_fail; | |
7934 | { | |
7935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7936 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7937 | ||
7938 | wxPyEndAllowThreads(__tstate); | |
7939 | if (PyErr_Occurred()) SWIG_fail; | |
7940 | } | |
7941 | { | |
7942 | #if wxUSE_UNICODE | |
7943 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7944 | #else | |
7945 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7946 | #endif | |
7947 | } | |
7948 | return resultobj; | |
7949 | fail: | |
7950 | return NULL; | |
7951 | } | |
7952 | ||
7953 | ||
7954 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject *resultobj; | |
7956 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7957 | long arg2 ; | |
7958 | int result; | |
7959 | PyObject * obj0 = 0 ; | |
7960 | PyObject * obj1 = 0 ; | |
7961 | char *kwnames[] = { | |
7962 | (char *) "self",(char *) "lineNo", NULL | |
7963 | }; | |
7964 | ||
7965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
7966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7968 | arg2 = (long) SWIG_AsLong(obj1); | |
7969 | if (PyErr_Occurred()) SWIG_fail; | |
7970 | { | |
7971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7972 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7973 | ||
7974 | wxPyEndAllowThreads(__tstate); | |
7975 | if (PyErr_Occurred()) SWIG_fail; | |
7976 | } | |
7977 | resultobj = SWIG_FromInt((int)result); | |
7978 | return resultobj; | |
7979 | fail: | |
7980 | return NULL; | |
7981 | } | |
7982 | ||
7983 | ||
7984 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7985 | PyObject *resultobj; | |
7986 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7987 | long arg2 ; | |
7988 | wxString result; | |
7989 | PyObject * obj0 = 0 ; | |
7990 | PyObject * obj1 = 0 ; | |
7991 | char *kwnames[] = { | |
7992 | (char *) "self",(char *) "lineNo", NULL | |
7993 | }; | |
7994 | ||
7995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
7996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
7997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7998 | arg2 = (long) SWIG_AsLong(obj1); | |
7999 | if (PyErr_Occurred()) SWIG_fail; | |
8000 | { | |
8001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8002 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8003 | ||
8004 | wxPyEndAllowThreads(__tstate); | |
8005 | if (PyErr_Occurred()) SWIG_fail; | |
8006 | } | |
8007 | { | |
8008 | #if wxUSE_UNICODE | |
8009 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8010 | #else | |
8011 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8012 | #endif | |
8013 | } | |
8014 | return resultobj; | |
8015 | fail: | |
8016 | return NULL; | |
8017 | } | |
8018 | ||
8019 | ||
8020 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8021 | PyObject *resultobj; | |
8022 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8023 | int result; | |
8024 | PyObject * obj0 = 0 ; | |
8025 | char *kwnames[] = { | |
8026 | (char *) "self", NULL | |
8027 | }; | |
8028 | ||
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8032 | { | |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8035 | ||
8036 | wxPyEndAllowThreads(__tstate); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
8039 | resultobj = SWIG_FromInt((int)result); | |
8040 | return resultobj; | |
8041 | fail: | |
8042 | return NULL; | |
8043 | } | |
8044 | ||
8045 | ||
8046 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8047 | PyObject *resultobj; | |
8048 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8049 | bool result; | |
8050 | PyObject * obj0 = 0 ; | |
8051 | char *kwnames[] = { | |
8052 | (char *) "self", NULL | |
8053 | }; | |
8054 | ||
8055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8058 | { | |
8059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8060 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8061 | ||
8062 | wxPyEndAllowThreads(__tstate); | |
8063 | if (PyErr_Occurred()) SWIG_fail; | |
8064 | } | |
8065 | { | |
8066 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8067 | } | |
8068 | return resultobj; | |
8069 | fail: | |
8070 | return NULL; | |
8071 | } | |
8072 | ||
8073 | ||
8074 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8075 | PyObject *resultobj; | |
8076 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8077 | bool result; | |
8078 | PyObject * obj0 = 0 ; | |
8079 | char *kwnames[] = { | |
8080 | (char *) "self", NULL | |
8081 | }; | |
8082 | ||
8083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8086 | { | |
8087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8088 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8089 | ||
8090 | wxPyEndAllowThreads(__tstate); | |
8091 | if (PyErr_Occurred()) SWIG_fail; | |
8092 | } | |
8093 | { | |
8094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8095 | } | |
8096 | return resultobj; | |
8097 | fail: | |
8098 | return NULL; | |
8099 | } | |
8100 | ||
8101 | ||
8102 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8103 | PyObject *resultobj; | |
8104 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8105 | bool result; | |
8106 | PyObject * obj0 = 0 ; | |
8107 | char *kwnames[] = { | |
8108 | (char *) "self", NULL | |
8109 | }; | |
8110 | ||
8111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8114 | { | |
8115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8116 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8117 | ||
8118 | wxPyEndAllowThreads(__tstate); | |
8119 | if (PyErr_Occurred()) SWIG_fail; | |
8120 | } | |
8121 | { | |
8122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8123 | } | |
8124 | return resultobj; | |
8125 | fail: | |
8126 | return NULL; | |
8127 | } | |
8128 | ||
8129 | ||
8130 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8131 | PyObject *resultobj; | |
8132 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8133 | bool result; | |
8134 | PyObject * obj0 = 0 ; | |
8135 | char *kwnames[] = { | |
8136 | (char *) "self", NULL | |
8137 | }; | |
8138 | ||
8139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8142 | { | |
8143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8144 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8145 | ||
8146 | wxPyEndAllowThreads(__tstate); | |
8147 | if (PyErr_Occurred()) SWIG_fail; | |
8148 | } | |
8149 | { | |
8150 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8151 | } | |
8152 | return resultobj; | |
8153 | fail: | |
8154 | return NULL; | |
8155 | } | |
8156 | ||
8157 | ||
8158 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8159 | PyObject *resultobj; | |
8160 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8161 | long *arg2 = (long *) 0 ; | |
8162 | long *arg3 = (long *) 0 ; | |
8163 | long temp2 ; | |
8164 | long temp3 ; | |
8165 | PyObject * obj0 = 0 ; | |
8166 | char *kwnames[] = { | |
8167 | (char *) "self", NULL | |
8168 | }; | |
8169 | ||
8170 | arg2 = &temp2; | |
8171 | arg3 = &temp3; | |
8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
8173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8175 | { | |
8176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8177 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8178 | ||
8179 | wxPyEndAllowThreads(__tstate); | |
8180 | if (PyErr_Occurred()) SWIG_fail; | |
8181 | } | |
8182 | Py_INCREF(Py_None); resultobj = Py_None; | |
8183 | { | |
8184 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8185 | resultobj = t_output_helper(resultobj,o); | |
8186 | } | |
8187 | { | |
8188 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8189 | resultobj = t_output_helper(resultobj,o); | |
8190 | } | |
8191 | return resultobj; | |
8192 | fail: | |
8193 | return NULL; | |
8194 | } | |
8195 | ||
8196 | ||
8197 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8198 | PyObject *resultobj; | |
8199 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8200 | wxString result; | |
8201 | PyObject * obj0 = 0 ; | |
8202 | char *kwnames[] = { | |
8203 | (char *) "self", NULL | |
8204 | }; | |
8205 | ||
8206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8209 | { | |
8210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8211 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8212 | ||
8213 | wxPyEndAllowThreads(__tstate); | |
8214 | if (PyErr_Occurred()) SWIG_fail; | |
8215 | } | |
8216 | { | |
8217 | #if wxUSE_UNICODE | |
8218 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8219 | #else | |
8220 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8221 | #endif | |
8222 | } | |
8223 | return resultobj; | |
8224 | fail: | |
8225 | return NULL; | |
8226 | } | |
8227 | ||
8228 | ||
8229 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8230 | PyObject *resultobj; | |
8231 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8232 | PyObject * obj0 = 0 ; | |
8233 | char *kwnames[] = { | |
8234 | (char *) "self", NULL | |
8235 | }; | |
8236 | ||
8237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8240 | { | |
8241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8242 | (arg1)->Clear(); | |
8243 | ||
8244 | wxPyEndAllowThreads(__tstate); | |
8245 | if (PyErr_Occurred()) SWIG_fail; | |
8246 | } | |
8247 | Py_INCREF(Py_None); resultobj = Py_None; | |
8248 | return resultobj; | |
8249 | fail: | |
8250 | return NULL; | |
8251 | } | |
8252 | ||
8253 | ||
8254 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8255 | PyObject *resultobj; | |
8256 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8257 | long arg2 ; | |
8258 | long arg3 ; | |
8259 | wxString *arg4 = 0 ; | |
8260 | bool temp4 = False ; | |
8261 | PyObject * obj0 = 0 ; | |
8262 | PyObject * obj1 = 0 ; | |
8263 | PyObject * obj2 = 0 ; | |
8264 | PyObject * obj3 = 0 ; | |
8265 | char *kwnames[] = { | |
8266 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8267 | }; | |
8268 | ||
8269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8272 | arg2 = (long) SWIG_AsLong(obj1); | |
8273 | if (PyErr_Occurred()) SWIG_fail; | |
8274 | arg3 = (long) SWIG_AsLong(obj2); | |
8275 | if (PyErr_Occurred()) SWIG_fail; | |
8276 | { | |
8277 | arg4 = wxString_in_helper(obj3); | |
8278 | if (arg4 == NULL) SWIG_fail; | |
8279 | temp4 = True; | |
8280 | } | |
8281 | { | |
8282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8283 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8284 | ||
8285 | wxPyEndAllowThreads(__tstate); | |
8286 | if (PyErr_Occurred()) SWIG_fail; | |
8287 | } | |
8288 | Py_INCREF(Py_None); resultobj = Py_None; | |
8289 | { | |
8290 | if (temp4) | |
8291 | delete arg4; | |
8292 | } | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | { | |
8296 | if (temp4) | |
8297 | delete arg4; | |
8298 | } | |
8299 | return NULL; | |
8300 | } | |
8301 | ||
8302 | ||
8303 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8304 | PyObject *resultobj; | |
8305 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8306 | long arg2 ; | |
8307 | long arg3 ; | |
8308 | PyObject * obj0 = 0 ; | |
8309 | PyObject * obj1 = 0 ; | |
8310 | PyObject * obj2 = 0 ; | |
8311 | char *kwnames[] = { | |
8312 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8313 | }; | |
8314 | ||
8315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8318 | arg2 = (long) SWIG_AsLong(obj1); | |
8319 | if (PyErr_Occurred()) SWIG_fail; | |
8320 | arg3 = (long) SWIG_AsLong(obj2); | |
8321 | if (PyErr_Occurred()) SWIG_fail; | |
8322 | { | |
8323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8324 | (arg1)->Remove(arg2,arg3); | |
8325 | ||
8326 | wxPyEndAllowThreads(__tstate); | |
8327 | if (PyErr_Occurred()) SWIG_fail; | |
8328 | } | |
8329 | Py_INCREF(Py_None); resultobj = Py_None; | |
8330 | return resultobj; | |
8331 | fail: | |
8332 | return NULL; | |
8333 | } | |
8334 | ||
8335 | ||
8336 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8337 | PyObject *resultobj; | |
8338 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8339 | wxString *arg2 = 0 ; | |
8340 | bool result; | |
8341 | bool temp2 = False ; | |
8342 | PyObject * obj0 = 0 ; | |
8343 | PyObject * obj1 = 0 ; | |
8344 | char *kwnames[] = { | |
8345 | (char *) "self",(char *) "file", NULL | |
8346 | }; | |
8347 | ||
8348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8351 | { | |
8352 | arg2 = wxString_in_helper(obj1); | |
8353 | if (arg2 == NULL) SWIG_fail; | |
8354 | temp2 = True; | |
8355 | } | |
8356 | { | |
8357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8358 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8359 | ||
8360 | wxPyEndAllowThreads(__tstate); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
8362 | } | |
8363 | { | |
8364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8365 | } | |
8366 | { | |
8367 | if (temp2) | |
8368 | delete arg2; | |
8369 | } | |
8370 | return resultobj; | |
8371 | fail: | |
8372 | { | |
8373 | if (temp2) | |
8374 | delete arg2; | |
8375 | } | |
8376 | return NULL; | |
8377 | } | |
8378 | ||
8379 | ||
8380 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8381 | PyObject *resultobj; | |
8382 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8383 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8384 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8385 | bool result; | |
8386 | bool temp2 = False ; | |
8387 | PyObject * obj0 = 0 ; | |
8388 | PyObject * obj1 = 0 ; | |
8389 | char *kwnames[] = { | |
8390 | (char *) "self",(char *) "file", NULL | |
8391 | }; | |
8392 | ||
8393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8396 | if (obj1) { | |
8397 | { | |
8398 | arg2 = wxString_in_helper(obj1); | |
8399 | if (arg2 == NULL) SWIG_fail; | |
8400 | temp2 = True; | |
8401 | } | |
8402 | } | |
8403 | { | |
8404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8405 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8406 | ||
8407 | wxPyEndAllowThreads(__tstate); | |
8408 | if (PyErr_Occurred()) SWIG_fail; | |
8409 | } | |
8410 | { | |
8411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8412 | } | |
8413 | { | |
8414 | if (temp2) | |
8415 | delete arg2; | |
8416 | } | |
8417 | return resultobj; | |
8418 | fail: | |
8419 | { | |
8420 | if (temp2) | |
8421 | delete arg2; | |
8422 | } | |
8423 | return NULL; | |
8424 | } | |
8425 | ||
8426 | ||
8427 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8428 | PyObject *resultobj; | |
8429 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8430 | PyObject * obj0 = 0 ; | |
8431 | char *kwnames[] = { | |
8432 | (char *) "self", NULL | |
8433 | }; | |
8434 | ||
8435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8438 | { | |
8439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8440 | (arg1)->MarkDirty(); | |
8441 | ||
8442 | wxPyEndAllowThreads(__tstate); | |
8443 | if (PyErr_Occurred()) SWIG_fail; | |
8444 | } | |
8445 | Py_INCREF(Py_None); resultobj = Py_None; | |
8446 | return resultobj; | |
8447 | fail: | |
8448 | return NULL; | |
8449 | } | |
8450 | ||
8451 | ||
8452 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8453 | PyObject *resultobj; | |
8454 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8455 | PyObject * obj0 = 0 ; | |
8456 | char *kwnames[] = { | |
8457 | (char *) "self", NULL | |
8458 | }; | |
8459 | ||
8460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8463 | { | |
8464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8465 | (arg1)->DiscardEdits(); | |
8466 | ||
8467 | wxPyEndAllowThreads(__tstate); | |
8468 | if (PyErr_Occurred()) SWIG_fail; | |
8469 | } | |
8470 | Py_INCREF(Py_None); resultobj = Py_None; | |
8471 | return resultobj; | |
8472 | fail: | |
8473 | return NULL; | |
8474 | } | |
8475 | ||
8476 | ||
8477 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8478 | PyObject *resultobj; | |
8479 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8480 | unsigned long arg2 ; | |
8481 | PyObject * obj0 = 0 ; | |
8482 | PyObject * obj1 = 0 ; | |
8483 | char *kwnames[] = { | |
8484 | (char *) "self",(char *) "len", NULL | |
8485 | }; | |
8486 | ||
8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8490 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8491 | if (PyErr_Occurred()) SWIG_fail; | |
8492 | { | |
8493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8494 | (arg1)->SetMaxLength(arg2); | |
8495 | ||
8496 | wxPyEndAllowThreads(__tstate); | |
8497 | if (PyErr_Occurred()) SWIG_fail; | |
8498 | } | |
8499 | Py_INCREF(Py_None); resultobj = Py_None; | |
8500 | return resultobj; | |
8501 | fail: | |
8502 | return NULL; | |
8503 | } | |
8504 | ||
8505 | ||
8506 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8507 | PyObject *resultobj; | |
8508 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8509 | wxString *arg2 = 0 ; | |
8510 | bool temp2 = False ; | |
8511 | PyObject * obj0 = 0 ; | |
8512 | PyObject * obj1 = 0 ; | |
8513 | char *kwnames[] = { | |
8514 | (char *) "self",(char *) "text", NULL | |
8515 | }; | |
8516 | ||
8517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8520 | { | |
8521 | arg2 = wxString_in_helper(obj1); | |
8522 | if (arg2 == NULL) SWIG_fail; | |
8523 | temp2 = True; | |
8524 | } | |
8525 | { | |
8526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8527 | (arg1)->WriteText((wxString const &)*arg2); | |
8528 | ||
8529 | wxPyEndAllowThreads(__tstate); | |
8530 | if (PyErr_Occurred()) SWIG_fail; | |
8531 | } | |
8532 | Py_INCREF(Py_None); resultobj = Py_None; | |
8533 | { | |
8534 | if (temp2) | |
8535 | delete arg2; | |
8536 | } | |
8537 | return resultobj; | |
8538 | fail: | |
8539 | { | |
8540 | if (temp2) | |
8541 | delete arg2; | |
8542 | } | |
8543 | return NULL; | |
8544 | } | |
8545 | ||
8546 | ||
8547 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8548 | PyObject *resultobj; | |
8549 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8550 | wxString *arg2 = 0 ; | |
8551 | bool temp2 = False ; | |
8552 | PyObject * obj0 = 0 ; | |
8553 | PyObject * obj1 = 0 ; | |
8554 | char *kwnames[] = { | |
8555 | (char *) "self",(char *) "text", NULL | |
8556 | }; | |
8557 | ||
8558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8561 | { | |
8562 | arg2 = wxString_in_helper(obj1); | |
8563 | if (arg2 == NULL) SWIG_fail; | |
8564 | temp2 = True; | |
8565 | } | |
8566 | { | |
8567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8568 | (arg1)->AppendText((wxString const &)*arg2); | |
8569 | ||
8570 | wxPyEndAllowThreads(__tstate); | |
8571 | if (PyErr_Occurred()) SWIG_fail; | |
8572 | } | |
8573 | Py_INCREF(Py_None); resultobj = Py_None; | |
8574 | { | |
8575 | if (temp2) | |
8576 | delete arg2; | |
8577 | } | |
8578 | return resultobj; | |
8579 | fail: | |
8580 | { | |
8581 | if (temp2) | |
8582 | delete arg2; | |
8583 | } | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj; | |
8590 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8591 | wxKeyEvent *arg2 = 0 ; | |
8592 | bool result; | |
8593 | PyObject * obj0 = 0 ; | |
8594 | PyObject * obj1 = 0 ; | |
8595 | char *kwnames[] = { | |
8596 | (char *) "self",(char *) "event", NULL | |
8597 | }; | |
8598 | ||
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8602 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8603 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8604 | SWIG_fail; | |
8605 | if (arg2 == NULL) { | |
8606 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8607 | SWIG_fail; | |
8608 | } | |
8609 | { | |
8610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8611 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8612 | ||
8613 | wxPyEndAllowThreads(__tstate); | |
8614 | if (PyErr_Occurred()) SWIG_fail; | |
8615 | } | |
8616 | { | |
8617 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8618 | } | |
8619 | return resultobj; | |
8620 | fail: | |
8621 | return NULL; | |
8622 | } | |
8623 | ||
8624 | ||
8625 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8626 | PyObject *resultobj; | |
8627 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8628 | long arg2 ; | |
8629 | long arg3 ; | |
8630 | wxTextAttr *arg4 = 0 ; | |
8631 | bool result; | |
8632 | PyObject * obj0 = 0 ; | |
8633 | PyObject * obj1 = 0 ; | |
8634 | PyObject * obj2 = 0 ; | |
8635 | PyObject * obj3 = 0 ; | |
8636 | char *kwnames[] = { | |
8637 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8638 | }; | |
8639 | ||
8640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8643 | arg2 = (long) SWIG_AsLong(obj1); | |
8644 | if (PyErr_Occurred()) SWIG_fail; | |
8645 | arg3 = (long) SWIG_AsLong(obj2); | |
8646 | if (PyErr_Occurred()) SWIG_fail; | |
8647 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8649 | SWIG_fail; | |
8650 | if (arg4 == NULL) { | |
8651 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8652 | SWIG_fail; | |
8653 | } | |
8654 | { | |
8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8656 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8657 | ||
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
8661 | { | |
8662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8663 | } | |
8664 | return resultobj; | |
8665 | fail: | |
8666 | return NULL; | |
8667 | } | |
8668 | ||
8669 | ||
8670 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8671 | PyObject *resultobj; | |
8672 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8673 | long arg2 ; | |
8674 | wxTextAttr *arg3 = 0 ; | |
8675 | bool result; | |
8676 | PyObject * obj0 = 0 ; | |
8677 | PyObject * obj1 = 0 ; | |
8678 | PyObject * obj2 = 0 ; | |
8679 | char *kwnames[] = { | |
8680 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8681 | }; | |
8682 | ||
8683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8686 | arg2 = (long) SWIG_AsLong(obj1); | |
8687 | if (PyErr_Occurred()) SWIG_fail; | |
8688 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8690 | SWIG_fail; | |
8691 | if (arg3 == NULL) { | |
8692 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8693 | SWIG_fail; | |
8694 | } | |
8695 | { | |
8696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8697 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8698 | ||
8699 | wxPyEndAllowThreads(__tstate); | |
8700 | if (PyErr_Occurred()) SWIG_fail; | |
8701 | } | |
8702 | { | |
8703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8704 | } | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
8711 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject *resultobj; | |
8713 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8714 | wxTextAttr *arg2 = 0 ; | |
8715 | bool result; | |
8716 | PyObject * obj0 = 0 ; | |
8717 | PyObject * obj1 = 0 ; | |
8718 | char *kwnames[] = { | |
8719 | (char *) "self",(char *) "style", NULL | |
8720 | }; | |
8721 | ||
8722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
8723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8726 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8727 | SWIG_fail; | |
8728 | if (arg2 == NULL) { | |
8729 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8730 | SWIG_fail; | |
8731 | } | |
8732 | { | |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8735 | ||
8736 | wxPyEndAllowThreads(__tstate); | |
8737 | if (PyErr_Occurred()) SWIG_fail; | |
8738 | } | |
8739 | { | |
8740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8741 | } | |
8742 | return resultobj; | |
8743 | fail: | |
8744 | return NULL; | |
8745 | } | |
8746 | ||
8747 | ||
8748 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8749 | PyObject *resultobj; | |
8750 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8751 | wxTextAttr *result; | |
8752 | PyObject * obj0 = 0 ; | |
8753 | char *kwnames[] = { | |
8754 | (char *) "self", NULL | |
8755 | }; | |
8756 | ||
8757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
8758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8760 | { | |
8761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8762 | { | |
8763 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8764 | result = (wxTextAttr *) &_result_ref; | |
8765 | } | |
8766 | ||
8767 | wxPyEndAllowThreads(__tstate); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
8769 | } | |
8770 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
8777 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8778 | PyObject *resultobj; | |
8779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8780 | long arg2 ; | |
8781 | long arg3 ; | |
8782 | long result; | |
8783 | PyObject * obj0 = 0 ; | |
8784 | PyObject * obj1 = 0 ; | |
8785 | PyObject * obj2 = 0 ; | |
8786 | char *kwnames[] = { | |
8787 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8788 | }; | |
8789 | ||
8790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8793 | arg2 = (long) SWIG_AsLong(obj1); | |
8794 | if (PyErr_Occurred()) SWIG_fail; | |
8795 | arg3 = (long) SWIG_AsLong(obj2); | |
8796 | if (PyErr_Occurred()) SWIG_fail; | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | resultobj = SWIG_FromLong((long)result); | |
8805 | return resultobj; | |
8806 | fail: | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
8811 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj; | |
8813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8814 | long arg2 ; | |
8815 | long *arg3 = (long *) 0 ; | |
8816 | long *arg4 = (long *) 0 ; | |
8817 | long temp3 ; | |
8818 | long temp4 ; | |
8819 | PyObject * obj0 = 0 ; | |
8820 | PyObject * obj1 = 0 ; | |
8821 | char *kwnames[] = { | |
8822 | (char *) "self",(char *) "pos", NULL | |
8823 | }; | |
8824 | ||
8825 | arg3 = &temp3; | |
8826 | arg4 = &temp4; | |
8827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
8828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8830 | arg2 = (long) SWIG_AsLong(obj1); | |
8831 | if (PyErr_Occurred()) SWIG_fail; | |
8832 | { | |
8833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8834 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8835 | ||
8836 | wxPyEndAllowThreads(__tstate); | |
8837 | if (PyErr_Occurred()) SWIG_fail; | |
8838 | } | |
8839 | Py_INCREF(Py_None); resultobj = Py_None; | |
8840 | { | |
8841 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8842 | resultobj = t_output_helper(resultobj,o); | |
8843 | } | |
8844 | { | |
8845 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8846 | resultobj = t_output_helper(resultobj,o); | |
8847 | } | |
8848 | return resultobj; | |
8849 | fail: | |
8850 | return NULL; | |
8851 | } | |
8852 | ||
8853 | ||
8854 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8855 | PyObject *resultobj; | |
8856 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8857 | long arg2 ; | |
8858 | PyObject * obj0 = 0 ; | |
8859 | PyObject * obj1 = 0 ; | |
8860 | char *kwnames[] = { | |
8861 | (char *) "self",(char *) "pos", NULL | |
8862 | }; | |
8863 | ||
8864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
8865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8867 | arg2 = (long) SWIG_AsLong(obj1); | |
8868 | if (PyErr_Occurred()) SWIG_fail; | |
8869 | { | |
8870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8871 | (arg1)->ShowPosition(arg2); | |
8872 | ||
8873 | wxPyEndAllowThreads(__tstate); | |
8874 | if (PyErr_Occurred()) SWIG_fail; | |
8875 | } | |
8876 | Py_INCREF(Py_None); resultobj = Py_None; | |
8877 | return resultobj; | |
8878 | fail: | |
8879 | return NULL; | |
8880 | } | |
8881 | ||
8882 | ||
8883 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8884 | PyObject *resultobj; | |
8885 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8886 | wxPoint *arg2 = 0 ; | |
8887 | long *arg3 = (long *) 0 ; | |
8888 | long *arg4 = (long *) 0 ; | |
8889 | int result; | |
8890 | wxPoint temp2 ; | |
8891 | long temp3 ; | |
8892 | long temp4 ; | |
8893 | PyObject * obj0 = 0 ; | |
8894 | PyObject * obj1 = 0 ; | |
8895 | char *kwnames[] = { | |
8896 | (char *) "self",(char *) "pt", NULL | |
8897 | }; | |
8898 | ||
8899 | arg3 = &temp3; | |
8900 | arg4 = &temp4; | |
8901 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
8902 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8903 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8904 | { | |
8905 | arg2 = &temp2; | |
8906 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8907 | } | |
8908 | { | |
8909 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8910 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8911 | ||
8912 | wxPyEndAllowThreads(__tstate); | |
8913 | if (PyErr_Occurred()) SWIG_fail; | |
8914 | } | |
8915 | resultobj = SWIG_FromInt((int)result); | |
8916 | { | |
8917 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8918 | resultobj = t_output_helper(resultobj,o); | |
8919 | } | |
8920 | { | |
8921 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8922 | resultobj = t_output_helper(resultobj,o); | |
8923 | } | |
8924 | return resultobj; | |
8925 | fail: | |
8926 | return NULL; | |
8927 | } | |
8928 | ||
8929 | ||
8930 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8931 | PyObject *resultobj; | |
8932 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8933 | PyObject * obj0 = 0 ; | |
8934 | char *kwnames[] = { | |
8935 | (char *) "self", NULL | |
8936 | }; | |
8937 | ||
8938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
8939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8941 | { | |
8942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8943 | (arg1)->Copy(); | |
8944 | ||
8945 | wxPyEndAllowThreads(__tstate); | |
8946 | if (PyErr_Occurred()) SWIG_fail; | |
8947 | } | |
8948 | Py_INCREF(Py_None); resultobj = Py_None; | |
8949 | return resultobj; | |
8950 | fail: | |
8951 | return NULL; | |
8952 | } | |
8953 | ||
8954 | ||
8955 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8956 | PyObject *resultobj; | |
8957 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8958 | PyObject * obj0 = 0 ; | |
8959 | char *kwnames[] = { | |
8960 | (char *) "self", NULL | |
8961 | }; | |
8962 | ||
8963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
8964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8966 | { | |
8967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8968 | (arg1)->Cut(); | |
8969 | ||
8970 | wxPyEndAllowThreads(__tstate); | |
8971 | if (PyErr_Occurred()) SWIG_fail; | |
8972 | } | |
8973 | Py_INCREF(Py_None); resultobj = Py_None; | |
8974 | return resultobj; | |
8975 | fail: | |
8976 | return NULL; | |
8977 | } | |
8978 | ||
8979 | ||
8980 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8981 | PyObject *resultobj; | |
8982 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8983 | PyObject * obj0 = 0 ; | |
8984 | char *kwnames[] = { | |
8985 | (char *) "self", NULL | |
8986 | }; | |
8987 | ||
8988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
8989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8991 | { | |
8992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8993 | (arg1)->Paste(); | |
8994 | ||
8995 | wxPyEndAllowThreads(__tstate); | |
8996 | if (PyErr_Occurred()) SWIG_fail; | |
8997 | } | |
8998 | Py_INCREF(Py_None); resultobj = Py_None; | |
8999 | return resultobj; | |
9000 | fail: | |
9001 | return NULL; | |
9002 | } | |
9003 | ||
9004 | ||
9005 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9006 | PyObject *resultobj; | |
9007 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9008 | bool result; | |
9009 | PyObject * obj0 = 0 ; | |
9010 | char *kwnames[] = { | |
9011 | (char *) "self", NULL | |
9012 | }; | |
9013 | ||
9014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9017 | { | |
9018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9019 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9020 | ||
9021 | wxPyEndAllowThreads(__tstate); | |
9022 | if (PyErr_Occurred()) SWIG_fail; | |
9023 | } | |
9024 | { | |
9025 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9026 | } | |
9027 | return resultobj; | |
9028 | fail: | |
9029 | return NULL; | |
9030 | } | |
9031 | ||
9032 | ||
9033 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9034 | PyObject *resultobj; | |
9035 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9036 | bool result; | |
9037 | PyObject * obj0 = 0 ; | |
9038 | char *kwnames[] = { | |
9039 | (char *) "self", NULL | |
9040 | }; | |
9041 | ||
9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9045 | { | |
9046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9047 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9048 | ||
9049 | wxPyEndAllowThreads(__tstate); | |
9050 | if (PyErr_Occurred()) SWIG_fail; | |
9051 | } | |
9052 | { | |
9053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9054 | } | |
9055 | return resultobj; | |
9056 | fail: | |
9057 | return NULL; | |
9058 | } | |
9059 | ||
9060 | ||
9061 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9062 | PyObject *resultobj; | |
9063 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9064 | bool result; | |
9065 | PyObject * obj0 = 0 ; | |
9066 | char *kwnames[] = { | |
9067 | (char *) "self", NULL | |
9068 | }; | |
9069 | ||
9070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9073 | { | |
9074 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9075 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9076 | ||
9077 | wxPyEndAllowThreads(__tstate); | |
9078 | if (PyErr_Occurred()) SWIG_fail; | |
9079 | } | |
9080 | { | |
9081 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9082 | } | |
9083 | return resultobj; | |
9084 | fail: | |
9085 | return NULL; | |
9086 | } | |
9087 | ||
9088 | ||
9089 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9090 | PyObject *resultobj; | |
9091 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9092 | PyObject * obj0 = 0 ; | |
9093 | char *kwnames[] = { | |
9094 | (char *) "self", NULL | |
9095 | }; | |
9096 | ||
9097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9100 | { | |
9101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9102 | (arg1)->Undo(); | |
9103 | ||
9104 | wxPyEndAllowThreads(__tstate); | |
9105 | if (PyErr_Occurred()) SWIG_fail; | |
9106 | } | |
9107 | Py_INCREF(Py_None); resultobj = Py_None; | |
9108 | return resultobj; | |
9109 | fail: | |
9110 | return NULL; | |
9111 | } | |
9112 | ||
9113 | ||
9114 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9115 | PyObject *resultobj; | |
9116 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9117 | PyObject * obj0 = 0 ; | |
9118 | char *kwnames[] = { | |
9119 | (char *) "self", NULL | |
9120 | }; | |
9121 | ||
9122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9125 | { | |
9126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9127 | (arg1)->Redo(); | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
9132 | Py_INCREF(Py_None); resultobj = Py_None; | |
9133 | return resultobj; | |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9142 | bool result; | |
9143 | PyObject * obj0 = 0 ; | |
9144 | char *kwnames[] = { | |
9145 | (char *) "self", NULL | |
9146 | }; | |
9147 | ||
9148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9151 | { | |
9152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9153 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9154 | ||
9155 | wxPyEndAllowThreads(__tstate); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | } | |
9158 | { | |
9159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9160 | } | |
9161 | return resultobj; | |
9162 | fail: | |
9163 | return NULL; | |
9164 | } | |
9165 | ||
9166 | ||
9167 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9168 | PyObject *resultobj; | |
9169 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9170 | bool result; | |
9171 | PyObject * obj0 = 0 ; | |
9172 | char *kwnames[] = { | |
9173 | (char *) "self", NULL | |
9174 | }; | |
9175 | ||
9176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9179 | { | |
9180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9181 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9182 | ||
9183 | wxPyEndAllowThreads(__tstate); | |
9184 | if (PyErr_Occurred()) SWIG_fail; | |
9185 | } | |
9186 | { | |
9187 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9188 | } | |
9189 | return resultobj; | |
9190 | fail: | |
9191 | return NULL; | |
9192 | } | |
9193 | ||
9194 | ||
9195 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9196 | PyObject *resultobj; | |
9197 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9198 | long arg2 ; | |
9199 | PyObject * obj0 = 0 ; | |
9200 | PyObject * obj1 = 0 ; | |
9201 | char *kwnames[] = { | |
9202 | (char *) "self",(char *) "pos", NULL | |
9203 | }; | |
9204 | ||
9205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9208 | arg2 = (long) SWIG_AsLong(obj1); | |
9209 | if (PyErr_Occurred()) SWIG_fail; | |
9210 | { | |
9211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9212 | (arg1)->SetInsertionPoint(arg2); | |
9213 | ||
9214 | wxPyEndAllowThreads(__tstate); | |
9215 | if (PyErr_Occurred()) SWIG_fail; | |
9216 | } | |
9217 | Py_INCREF(Py_None); resultobj = Py_None; | |
9218 | return resultobj; | |
9219 | fail: | |
9220 | return NULL; | |
9221 | } | |
9222 | ||
9223 | ||
9224 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9225 | PyObject *resultobj; | |
9226 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9227 | PyObject * obj0 = 0 ; | |
9228 | char *kwnames[] = { | |
9229 | (char *) "self", NULL | |
9230 | }; | |
9231 | ||
9232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9235 | { | |
9236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9237 | (arg1)->SetInsertionPointEnd(); | |
9238 | ||
9239 | wxPyEndAllowThreads(__tstate); | |
9240 | if (PyErr_Occurred()) SWIG_fail; | |
9241 | } | |
9242 | Py_INCREF(Py_None); resultobj = Py_None; | |
9243 | return resultobj; | |
9244 | fail: | |
9245 | return NULL; | |
9246 | } | |
9247 | ||
9248 | ||
9249 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9250 | PyObject *resultobj; | |
9251 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9252 | long result; | |
9253 | PyObject * obj0 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "self", NULL | |
9256 | }; | |
9257 | ||
9258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9261 | { | |
9262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9263 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9264 | ||
9265 | wxPyEndAllowThreads(__tstate); | |
9266 | if (PyErr_Occurred()) SWIG_fail; | |
9267 | } | |
9268 | resultobj = SWIG_FromLong((long)result); | |
9269 | return resultobj; | |
9270 | fail: | |
9271 | return NULL; | |
9272 | } | |
9273 | ||
9274 | ||
9275 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9276 | PyObject *resultobj; | |
9277 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9278 | long result; | |
9279 | PyObject * obj0 = 0 ; | |
9280 | char *kwnames[] = { | |
9281 | (char *) "self", NULL | |
9282 | }; | |
9283 | ||
9284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9287 | { | |
9288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9289 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9290 | ||
9291 | wxPyEndAllowThreads(__tstate); | |
9292 | if (PyErr_Occurred()) SWIG_fail; | |
9293 | } | |
9294 | resultobj = SWIG_FromLong((long)result); | |
9295 | return resultobj; | |
9296 | fail: | |
9297 | return NULL; | |
9298 | } | |
9299 | ||
9300 | ||
9301 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9302 | PyObject *resultobj; | |
9303 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9304 | long arg2 ; | |
9305 | long arg3 ; | |
9306 | PyObject * obj0 = 0 ; | |
9307 | PyObject * obj1 = 0 ; | |
9308 | PyObject * obj2 = 0 ; | |
9309 | char *kwnames[] = { | |
9310 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9311 | }; | |
9312 | ||
9313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9316 | arg2 = (long) SWIG_AsLong(obj1); | |
9317 | if (PyErr_Occurred()) SWIG_fail; | |
9318 | arg3 = (long) SWIG_AsLong(obj2); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | { | |
9321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9322 | (arg1)->SetSelection(arg2,arg3); | |
9323 | ||
9324 | wxPyEndAllowThreads(__tstate); | |
9325 | if (PyErr_Occurred()) SWIG_fail; | |
9326 | } | |
9327 | Py_INCREF(Py_None); resultobj = Py_None; | |
9328 | return resultobj; | |
9329 | fail: | |
9330 | return NULL; | |
9331 | } | |
9332 | ||
9333 | ||
9334 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9335 | PyObject *resultobj; | |
9336 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9337 | PyObject * obj0 = 0 ; | |
9338 | char *kwnames[] = { | |
9339 | (char *) "self", NULL | |
9340 | }; | |
9341 | ||
9342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9345 | { | |
9346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9347 | (arg1)->SelectAll(); | |
9348 | ||
9349 | wxPyEndAllowThreads(__tstate); | |
9350 | if (PyErr_Occurred()) SWIG_fail; | |
9351 | } | |
9352 | Py_INCREF(Py_None); resultobj = Py_None; | |
9353 | return resultobj; | |
9354 | fail: | |
9355 | return NULL; | |
9356 | } | |
9357 | ||
9358 | ||
9359 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9360 | PyObject *resultobj; | |
9361 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9362 | bool arg2 ; | |
9363 | PyObject * obj0 = 0 ; | |
9364 | PyObject * obj1 = 0 ; | |
9365 | char *kwnames[] = { | |
9366 | (char *) "self",(char *) "editable", NULL | |
9367 | }; | |
9368 | ||
9369 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9370 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9372 | arg2 = (bool) SWIG_AsBool(obj1); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | { | |
9375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9376 | (arg1)->SetEditable(arg2); | |
9377 | ||
9378 | wxPyEndAllowThreads(__tstate); | |
9379 | if (PyErr_Occurred()) SWIG_fail; | |
9380 | } | |
9381 | Py_INCREF(Py_None); resultobj = Py_None; | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9389 | PyObject *resultobj; | |
9390 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9391 | bool arg2 = (bool) True ; | |
9392 | bool result; | |
9393 | PyObject * obj0 = 0 ; | |
9394 | PyObject * obj1 = 0 ; | |
9395 | char *kwnames[] = { | |
9396 | (char *) "self",(char *) "show", NULL | |
9397 | }; | |
9398 | ||
9399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
9400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9402 | if (obj1) { | |
9403 | arg2 = (bool) SWIG_AsBool(obj1); | |
9404 | if (PyErr_Occurred()) SWIG_fail; | |
9405 | } | |
9406 | { | |
9407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9408 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9409 | ||
9410 | wxPyEndAllowThreads(__tstate); | |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | } | |
9413 | { | |
9414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9415 | } | |
9416 | return resultobj; | |
9417 | fail: | |
9418 | return NULL; | |
9419 | } | |
9420 | ||
9421 | ||
9422 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9423 | PyObject *resultobj; | |
9424 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9425 | bool result; | |
9426 | PyObject * obj0 = 0 ; | |
9427 | char *kwnames[] = { | |
9428 | (char *) "self", NULL | |
9429 | }; | |
9430 | ||
9431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9434 | { | |
9435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9436 | result = (bool)(arg1)->HideNativeCaret(); | |
9437 | ||
9438 | wxPyEndAllowThreads(__tstate); | |
9439 | if (PyErr_Occurred()) SWIG_fail; | |
9440 | } | |
9441 | { | |
9442 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9443 | } | |
9444 | return resultobj; | |
9445 | fail: | |
9446 | return NULL; | |
9447 | } | |
9448 | ||
9449 | ||
9450 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9451 | PyObject *resultobj; | |
9452 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9453 | wxString *arg2 = 0 ; | |
9454 | bool temp2 = False ; | |
9455 | PyObject * obj0 = 0 ; | |
9456 | PyObject * obj1 = 0 ; | |
9457 | char *kwnames[] = { | |
9458 | (char *) "self",(char *) "text", NULL | |
9459 | }; | |
9460 | ||
9461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9464 | { | |
9465 | arg2 = wxString_in_helper(obj1); | |
9466 | if (arg2 == NULL) SWIG_fail; | |
9467 | temp2 = True; | |
9468 | } | |
9469 | { | |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
9476 | Py_INCREF(Py_None); resultobj = Py_None; | |
9477 | { | |
9478 | if (temp2) | |
9479 | delete arg2; | |
9480 | } | |
9481 | return resultobj; | |
9482 | fail: | |
9483 | { | |
9484 | if (temp2) | |
9485 | delete arg2; | |
9486 | } | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9494 | long arg2 ; | |
9495 | long arg3 ; | |
9496 | wxString result; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | PyObject * obj1 = 0 ; | |
9499 | PyObject * obj2 = 0 ; | |
9500 | char *kwnames[] = { | |
9501 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9502 | }; | |
9503 | ||
9504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9507 | arg2 = (long) SWIG_AsLong(obj1); | |
9508 | if (PyErr_Occurred()) SWIG_fail; | |
9509 | arg3 = (long) SWIG_AsLong(obj2); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
9511 | { | |
9512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9513 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9514 | ||
9515 | wxPyEndAllowThreads(__tstate); | |
9516 | if (PyErr_Occurred()) SWIG_fail; | |
9517 | } | |
9518 | { | |
9519 | #if wxUSE_UNICODE | |
9520 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9521 | #else | |
9522 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9523 | #endif | |
9524 | } | |
9525 | return resultobj; | |
9526 | fail: | |
9527 | return NULL; | |
9528 | } | |
9529 | ||
9530 | ||
9531 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9532 | PyObject *obj; | |
9533 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9534 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9535 | Py_INCREF(obj); | |
9536 | return Py_BuildValue((char *)""); | |
9537 | } | |
9538 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9539 | PyObject *resultobj; | |
9540 | int arg1 ; | |
9541 | wxMouseEvent *arg2 = 0 ; | |
9542 | long arg3 ; | |
9543 | long arg4 ; | |
9544 | wxTextUrlEvent *result; | |
9545 | PyObject * obj0 = 0 ; | |
9546 | PyObject * obj1 = 0 ; | |
9547 | PyObject * obj2 = 0 ; | |
9548 | PyObject * obj3 = 0 ; | |
9549 | char *kwnames[] = { | |
9550 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9551 | }; | |
9552 | ||
9553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9554 | arg1 = (int) SWIG_AsInt(obj0); | |
9555 | if (PyErr_Occurred()) SWIG_fail; | |
9556 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9558 | SWIG_fail; | |
9559 | if (arg2 == NULL) { | |
9560 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9561 | SWIG_fail; | |
9562 | } | |
9563 | arg3 = (long) SWIG_AsLong(obj2); | |
9564 | if (PyErr_Occurred()) SWIG_fail; | |
9565 | arg4 = (long) SWIG_AsLong(obj3); | |
9566 | if (PyErr_Occurred()) SWIG_fail; | |
9567 | { | |
9568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9569 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9570 | ||
9571 | wxPyEndAllowThreads(__tstate); | |
9572 | if (PyErr_Occurred()) SWIG_fail; | |
9573 | } | |
9574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
9575 | return resultobj; | |
9576 | fail: | |
9577 | return NULL; | |
9578 | } | |
9579 | ||
9580 | ||
9581 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9582 | PyObject *resultobj; | |
9583 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9584 | wxMouseEvent *result; | |
9585 | PyObject * obj0 = 0 ; | |
9586 | char *kwnames[] = { | |
9587 | (char *) "self", NULL | |
9588 | }; | |
9589 | ||
9590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9593 | { | |
9594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9595 | { | |
9596 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9597 | result = (wxMouseEvent *) &_result_ref; | |
9598 | } | |
9599 | ||
9600 | wxPyEndAllowThreads(__tstate); | |
9601 | if (PyErr_Occurred()) SWIG_fail; | |
9602 | } | |
9603 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
9604 | return resultobj; | |
9605 | fail: | |
9606 | return NULL; | |
9607 | } | |
9608 | ||
9609 | ||
9610 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9611 | PyObject *resultobj; | |
9612 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9613 | long result; | |
9614 | PyObject * obj0 = 0 ; | |
9615 | char *kwnames[] = { | |
9616 | (char *) "self", NULL | |
9617 | }; | |
9618 | ||
9619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
9620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9622 | { | |
9623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9624 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9625 | ||
9626 | wxPyEndAllowThreads(__tstate); | |
9627 | if (PyErr_Occurred()) SWIG_fail; | |
9628 | } | |
9629 | resultobj = SWIG_FromLong((long)result); | |
9630 | return resultobj; | |
9631 | fail: | |
9632 | return NULL; | |
9633 | } | |
9634 | ||
9635 | ||
9636 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9637 | PyObject *resultobj; | |
9638 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9639 | long result; | |
9640 | PyObject * obj0 = 0 ; | |
9641 | char *kwnames[] = { | |
9642 | (char *) "self", NULL | |
9643 | }; | |
9644 | ||
9645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
9646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9648 | { | |
9649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9650 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9651 | ||
9652 | wxPyEndAllowThreads(__tstate); | |
9653 | if (PyErr_Occurred()) SWIG_fail; | |
9654 | } | |
9655 | resultobj = SWIG_FromLong((long)result); | |
9656 | return resultobj; | |
9657 | fail: | |
9658 | return NULL; | |
9659 | } | |
9660 | ||
9661 | ||
9662 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9663 | PyObject *obj; | |
9664 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9665 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9666 | Py_INCREF(obj); | |
9667 | return Py_BuildValue((char *)""); | |
9668 | } | |
9669 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { | |
9670 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
9671 | return 1; | |
9672 | } | |
9673 | ||
9674 | ||
9675 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9676 | PyObject *pyobj; | |
9677 | ||
9678 | { | |
9679 | #if wxUSE_UNICODE | |
9680 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9681 | #else | |
9682 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9683 | #endif | |
9684 | } | |
9685 | return pyobj; | |
9686 | } | |
9687 | ||
9688 | ||
9689 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9690 | PyObject *resultobj; | |
9691 | wxWindow *arg1 = (wxWindow *) 0 ; | |
9692 | int arg2 = (int) -1 ; | |
9693 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
9694 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9695 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9696 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9697 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9698 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9699 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9700 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9701 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9702 | wxScrollBar *result; | |
9703 | wxPoint temp3 ; | |
9704 | wxSize temp4 ; | |
9705 | bool temp7 = False ; | |
9706 | PyObject * obj0 = 0 ; | |
9707 | PyObject * obj1 = 0 ; | |
9708 | PyObject * obj2 = 0 ; | |
9709 | PyObject * obj3 = 0 ; | |
9710 | PyObject * obj4 = 0 ; | |
9711 | PyObject * obj5 = 0 ; | |
9712 | PyObject * obj6 = 0 ; | |
9713 | char *kwnames[] = { | |
9714 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9715 | }; | |
9716 | ||
9717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
9718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
9719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9720 | if (obj1) { | |
9721 | arg2 = (int) SWIG_AsInt(obj1); | |
9722 | if (PyErr_Occurred()) SWIG_fail; | |
9723 | } | |
9724 | if (obj2) { | |
9725 | { | |
9726 | arg3 = &temp3; | |
9727 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9728 | } | |
9729 | } | |
9730 | if (obj3) { | |
9731 | { | |
9732 | arg4 = &temp4; | |
9733 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9734 | } | |
9735 | } | |
9736 | if (obj4) { | |
9737 | arg5 = (long) SWIG_AsLong(obj4); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | if (obj5) { | |
9741 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
9742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9743 | SWIG_fail; | |
9744 | if (arg6 == NULL) { | |
9745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9746 | SWIG_fail; | |
9747 | } | |
9748 | } | |
9749 | if (obj6) { | |
9750 | { | |
9751 | arg7 = wxString_in_helper(obj6); | |
9752 | if (arg7 == NULL) SWIG_fail; | |
9753 | temp7 = True; | |
9754 | } | |
9755 | } | |
9756 | { | |
9757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9758 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9759 | ||
9760 | wxPyEndAllowThreads(__tstate); | |
9761 | if (PyErr_Occurred()) SWIG_fail; | |
9762 | } | |
9763 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
9764 | { | |
9765 | if (temp7) | |
9766 | delete arg7; | |
9767 | } | |
9768 | return resultobj; | |
9769 | fail: | |
9770 | { | |
9771 | if (temp7) | |
9772 | delete arg7; | |
9773 | } | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj; | |
9780 | wxScrollBar *result; | |
9781 | char *kwnames[] = { | |
9782 | NULL | |
9783 | }; | |
9784 | ||
9785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9786 | { | |
9787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9788 | result = (wxScrollBar *)new wxScrollBar(); | |
9789 | ||
9790 | wxPyEndAllowThreads(__tstate); | |
9791 | if (PyErr_Occurred()) SWIG_fail; | |
9792 | } | |
9793 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
9794 | return resultobj; | |
9795 | fail: | |
9796 | return NULL; | |
9797 | } | |
9798 | ||
9799 | ||
9800 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9801 | PyObject *resultobj; | |
9802 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9803 | wxWindow *arg2 = (wxWindow *) 0 ; | |
9804 | int arg3 = (int) -1 ; | |
9805 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
9806 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9807 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9808 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9809 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9810 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9811 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9812 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9813 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9814 | bool result; | |
9815 | wxPoint temp4 ; | |
9816 | wxSize temp5 ; | |
9817 | bool temp8 = False ; | |
9818 | PyObject * obj0 = 0 ; | |
9819 | PyObject * obj1 = 0 ; | |
9820 | PyObject * obj2 = 0 ; | |
9821 | PyObject * obj3 = 0 ; | |
9822 | PyObject * obj4 = 0 ; | |
9823 | PyObject * obj5 = 0 ; | |
9824 | PyObject * obj6 = 0 ; | |
9825 | PyObject * obj7 = 0 ; | |
9826 | char *kwnames[] = { | |
9827 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9828 | }; | |
9829 | ||
9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
9831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9833 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9835 | if (obj2) { | |
9836 | arg3 = (int) SWIG_AsInt(obj2); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
9839 | if (obj3) { | |
9840 | { | |
9841 | arg4 = &temp4; | |
9842 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9843 | } | |
9844 | } | |
9845 | if (obj4) { | |
9846 | { | |
9847 | arg5 = &temp5; | |
9848 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9849 | } | |
9850 | } | |
9851 | if (obj5) { | |
9852 | arg6 = (long) SWIG_AsLong(obj5); | |
9853 | if (PyErr_Occurred()) SWIG_fail; | |
9854 | } | |
9855 | if (obj6) { | |
9856 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
9857 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9858 | SWIG_fail; | |
9859 | if (arg7 == NULL) { | |
9860 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9861 | SWIG_fail; | |
9862 | } | |
9863 | } | |
9864 | if (obj7) { | |
9865 | { | |
9866 | arg8 = wxString_in_helper(obj7); | |
9867 | if (arg8 == NULL) SWIG_fail; | |
9868 | temp8 = True; | |
9869 | } | |
9870 | } | |
9871 | { | |
9872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9873 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9874 | ||
9875 | wxPyEndAllowThreads(__tstate); | |
9876 | if (PyErr_Occurred()) SWIG_fail; | |
9877 | } | |
9878 | { | |
9879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9880 | } | |
9881 | { | |
9882 | if (temp8) | |
9883 | delete arg8; | |
9884 | } | |
9885 | return resultobj; | |
9886 | fail: | |
9887 | { | |
9888 | if (temp8) | |
9889 | delete arg8; | |
9890 | } | |
9891 | return NULL; | |
9892 | } | |
9893 | ||
9894 | ||
9895 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9896 | PyObject *resultobj; | |
9897 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9898 | int result; | |
9899 | PyObject * obj0 = 0 ; | |
9900 | char *kwnames[] = { | |
9901 | (char *) "self", NULL | |
9902 | }; | |
9903 | ||
9904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
9905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9907 | { | |
9908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9909 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9910 | ||
9911 | wxPyEndAllowThreads(__tstate); | |
9912 | if (PyErr_Occurred()) SWIG_fail; | |
9913 | } | |
9914 | resultobj = SWIG_FromInt((int)result); | |
9915 | return resultobj; | |
9916 | fail: | |
9917 | return NULL; | |
9918 | } | |
9919 | ||
9920 | ||
9921 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9922 | PyObject *resultobj; | |
9923 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9924 | int result; | |
9925 | PyObject * obj0 = 0 ; | |
9926 | char *kwnames[] = { | |
9927 | (char *) "self", NULL | |
9928 | }; | |
9929 | ||
9930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
9931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9933 | { | |
9934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9935 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9936 | ||
9937 | wxPyEndAllowThreads(__tstate); | |
9938 | if (PyErr_Occurred()) SWIG_fail; | |
9939 | } | |
9940 | resultobj = SWIG_FromInt((int)result); | |
9941 | return resultobj; | |
9942 | fail: | |
9943 | return NULL; | |
9944 | } | |
9945 | ||
9946 | ||
9947 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9948 | PyObject *resultobj; | |
9949 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9950 | int result; | |
9951 | PyObject * obj0 = 0 ; | |
9952 | char *kwnames[] = { | |
9953 | (char *) "self", NULL | |
9954 | }; | |
9955 | ||
9956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
9957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9959 | { | |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
9966 | resultobj = SWIG_FromInt((int)result); | |
9967 | return resultobj; | |
9968 | fail: | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject *resultobj; | |
9975 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9976 | int result; | |
9977 | PyObject * obj0 = 0 ; | |
9978 | char *kwnames[] = { | |
9979 | (char *) "self", NULL | |
9980 | }; | |
9981 | ||
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
9983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
9984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9988 | ||
9989 | wxPyEndAllowThreads(__tstate); | |
9990 | if (PyErr_Occurred()) SWIG_fail; | |
9991 | } | |
9992 | resultobj = SWIG_FromInt((int)result); | |
9993 | return resultobj; | |
9994 | fail: | |
9995 | return NULL; | |
9996 | } | |
9997 | ||
9998 | ||
9999 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10000 | PyObject *resultobj; | |
10001 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10002 | bool result; | |
10003 | PyObject * obj0 = 0 ; | |
10004 | char *kwnames[] = { | |
10005 | (char *) "self", NULL | |
10006 | }; | |
10007 | ||
10008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10011 | { | |
10012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10013 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10014 | ||
10015 | wxPyEndAllowThreads(__tstate); | |
10016 | if (PyErr_Occurred()) SWIG_fail; | |
10017 | } | |
10018 | { | |
10019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10020 | } | |
10021 | return resultobj; | |
10022 | fail: | |
10023 | return NULL; | |
10024 | } | |
10025 | ||
10026 | ||
10027 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10028 | PyObject *resultobj; | |
10029 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10030 | int arg2 ; | |
10031 | PyObject * obj0 = 0 ; | |
10032 | PyObject * obj1 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self",(char *) "viewStart", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10040 | arg2 = (int) SWIG_AsInt(obj1); | |
10041 | if (PyErr_Occurred()) SWIG_fail; | |
10042 | { | |
10043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10044 | (arg1)->SetThumbPosition(arg2); | |
10045 | ||
10046 | wxPyEndAllowThreads(__tstate); | |
10047 | if (PyErr_Occurred()) SWIG_fail; | |
10048 | } | |
10049 | Py_INCREF(Py_None); resultobj = Py_None; | |
10050 | return resultobj; | |
10051 | fail: | |
10052 | return NULL; | |
10053 | } | |
10054 | ||
10055 | ||
10056 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10057 | PyObject *resultobj; | |
10058 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10059 | int arg2 ; | |
10060 | int arg3 ; | |
10061 | int arg4 ; | |
10062 | int arg5 ; | |
10063 | bool arg6 = (bool) True ; | |
10064 | PyObject * obj0 = 0 ; | |
10065 | PyObject * obj1 = 0 ; | |
10066 | PyObject * obj2 = 0 ; | |
10067 | PyObject * obj3 = 0 ; | |
10068 | PyObject * obj4 = 0 ; | |
10069 | PyObject * obj5 = 0 ; | |
10070 | char *kwnames[] = { | |
10071 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10072 | }; | |
10073 | ||
10074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10077 | arg2 = (int) SWIG_AsInt(obj1); | |
10078 | if (PyErr_Occurred()) SWIG_fail; | |
10079 | arg3 = (int) SWIG_AsInt(obj2); | |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
10081 | arg4 = (int) SWIG_AsInt(obj3); | |
10082 | if (PyErr_Occurred()) SWIG_fail; | |
10083 | arg5 = (int) SWIG_AsInt(obj4); | |
10084 | if (PyErr_Occurred()) SWIG_fail; | |
10085 | if (obj5) { | |
10086 | arg6 = (bool) SWIG_AsBool(obj5); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
10089 | { | |
10090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10091 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10092 | ||
10093 | wxPyEndAllowThreads(__tstate); | |
10094 | if (PyErr_Occurred()) SWIG_fail; | |
10095 | } | |
10096 | Py_INCREF(Py_None); resultobj = Py_None; | |
10097 | return resultobj; | |
10098 | fail: | |
10099 | return NULL; | |
10100 | } | |
10101 | ||
10102 | ||
10103 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
10104 | PyObject *obj; | |
10105 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10106 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10107 | Py_INCREF(obj); | |
10108 | return Py_BuildValue((char *)""); | |
10109 | } | |
10110 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { | |
10111 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10112 | return 1; | |
10113 | } | |
10114 | ||
10115 | ||
10116 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10117 | PyObject *pyobj; | |
10118 | ||
10119 | { | |
10120 | #if wxUSE_UNICODE | |
10121 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10122 | #else | |
10123 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10124 | #endif | |
10125 | } | |
10126 | return pyobj; | |
10127 | } | |
10128 | ||
10129 | ||
10130 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10131 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10132 | return 1; | |
10133 | } | |
10134 | ||
10135 | ||
10136 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10137 | PyObject *pyobj; | |
10138 | ||
10139 | { | |
10140 | #if wxUSE_UNICODE | |
10141 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10142 | #else | |
10143 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10144 | #endif | |
10145 | } | |
10146 | return pyobj; | |
10147 | } | |
10148 | ||
10149 | ||
10150 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10151 | PyObject *resultobj; | |
10152 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10153 | int arg2 = (int) -1 ; | |
10154 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10155 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10156 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10157 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10158 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10159 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10160 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10161 | wxSpinButton *result; | |
10162 | wxPoint temp3 ; | |
10163 | wxSize temp4 ; | |
10164 | bool temp6 = False ; | |
10165 | PyObject * obj0 = 0 ; | |
10166 | PyObject * obj1 = 0 ; | |
10167 | PyObject * obj2 = 0 ; | |
10168 | PyObject * obj3 = 0 ; | |
10169 | PyObject * obj4 = 0 ; | |
10170 | PyObject * obj5 = 0 ; | |
10171 | char *kwnames[] = { | |
10172 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10173 | }; | |
10174 | ||
10175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10178 | if (obj1) { | |
10179 | arg2 = (int) SWIG_AsInt(obj1); | |
10180 | if (PyErr_Occurred()) SWIG_fail; | |
10181 | } | |
10182 | if (obj2) { | |
10183 | { | |
10184 | arg3 = &temp3; | |
10185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10186 | } | |
10187 | } | |
10188 | if (obj3) { | |
10189 | { | |
10190 | arg4 = &temp4; | |
10191 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10192 | } | |
10193 | } | |
10194 | if (obj4) { | |
10195 | arg5 = (long) SWIG_AsLong(obj4); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
10198 | if (obj5) { | |
10199 | { | |
10200 | arg6 = wxString_in_helper(obj5); | |
10201 | if (arg6 == NULL) SWIG_fail; | |
10202 | temp6 = True; | |
10203 | } | |
10204 | } | |
10205 | { | |
10206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10207 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10208 | ||
10209 | wxPyEndAllowThreads(__tstate); | |
10210 | if (PyErr_Occurred()) SWIG_fail; | |
10211 | } | |
10212 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10213 | { | |
10214 | if (temp6) | |
10215 | delete arg6; | |
10216 | } | |
10217 | return resultobj; | |
10218 | fail: | |
10219 | { | |
10220 | if (temp6) | |
10221 | delete arg6; | |
10222 | } | |
10223 | return NULL; | |
10224 | } | |
10225 | ||
10226 | ||
10227 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10228 | PyObject *resultobj; | |
10229 | wxSpinButton *result; | |
10230 | char *kwnames[] = { | |
10231 | NULL | |
10232 | }; | |
10233 | ||
10234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10235 | { | |
10236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10237 | result = (wxSpinButton *)new wxSpinButton(); | |
10238 | ||
10239 | wxPyEndAllowThreads(__tstate); | |
10240 | if (PyErr_Occurred()) SWIG_fail; | |
10241 | } | |
10242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10243 | return resultobj; | |
10244 | fail: | |
10245 | return NULL; | |
10246 | } | |
10247 | ||
10248 | ||
10249 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10250 | PyObject *resultobj; | |
10251 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10252 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10253 | int arg3 = (int) -1 ; | |
10254 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10255 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10256 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10257 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10258 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10259 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10260 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10261 | bool result; | |
10262 | wxPoint temp4 ; | |
10263 | wxSize temp5 ; | |
10264 | bool temp7 = False ; | |
10265 | PyObject * obj0 = 0 ; | |
10266 | PyObject * obj1 = 0 ; | |
10267 | PyObject * obj2 = 0 ; | |
10268 | PyObject * obj3 = 0 ; | |
10269 | PyObject * obj4 = 0 ; | |
10270 | PyObject * obj5 = 0 ; | |
10271 | PyObject * obj6 = 0 ; | |
10272 | char *kwnames[] = { | |
10273 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10274 | }; | |
10275 | ||
10276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10281 | if (obj2) { | |
10282 | arg3 = (int) SWIG_AsInt(obj2); | |
10283 | if (PyErr_Occurred()) SWIG_fail; | |
10284 | } | |
10285 | if (obj3) { | |
10286 | { | |
10287 | arg4 = &temp4; | |
10288 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10289 | } | |
10290 | } | |
10291 | if (obj4) { | |
10292 | { | |
10293 | arg5 = &temp5; | |
10294 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10295 | } | |
10296 | } | |
10297 | if (obj5) { | |
10298 | arg6 = (long) SWIG_AsLong(obj5); | |
10299 | if (PyErr_Occurred()) SWIG_fail; | |
10300 | } | |
10301 | if (obj6) { | |
10302 | { | |
10303 | arg7 = wxString_in_helper(obj6); | |
10304 | if (arg7 == NULL) SWIG_fail; | |
10305 | temp7 = True; | |
10306 | } | |
10307 | } | |
10308 | { | |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
10315 | { | |
10316 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10317 | } | |
10318 | { | |
10319 | if (temp7) | |
10320 | delete arg7; | |
10321 | } | |
10322 | return resultobj; | |
10323 | fail: | |
10324 | { | |
10325 | if (temp7) | |
10326 | delete arg7; | |
10327 | } | |
10328 | return NULL; | |
10329 | } | |
10330 | ||
10331 | ||
10332 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10333 | PyObject *resultobj; | |
10334 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10335 | int result; | |
10336 | PyObject * obj0 = 0 ; | |
10337 | char *kwnames[] = { | |
10338 | (char *) "self", NULL | |
10339 | }; | |
10340 | ||
10341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10344 | { | |
10345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10346 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10347 | ||
10348 | wxPyEndAllowThreads(__tstate); | |
10349 | if (PyErr_Occurred()) SWIG_fail; | |
10350 | } | |
10351 | resultobj = SWIG_FromInt((int)result); | |
10352 | return resultobj; | |
10353 | fail: | |
10354 | return NULL; | |
10355 | } | |
10356 | ||
10357 | ||
10358 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10359 | PyObject *resultobj; | |
10360 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10361 | int result; | |
10362 | PyObject * obj0 = 0 ; | |
10363 | char *kwnames[] = { | |
10364 | (char *) "self", NULL | |
10365 | }; | |
10366 | ||
10367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10370 | { | |
10371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10372 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10373 | ||
10374 | wxPyEndAllowThreads(__tstate); | |
10375 | if (PyErr_Occurred()) SWIG_fail; | |
10376 | } | |
10377 | resultobj = SWIG_FromInt((int)result); | |
10378 | return resultobj; | |
10379 | fail: | |
10380 | return NULL; | |
10381 | } | |
10382 | ||
10383 | ||
10384 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10385 | PyObject *resultobj; | |
10386 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10387 | int result; | |
10388 | PyObject * obj0 = 0 ; | |
10389 | char *kwnames[] = { | |
10390 | (char *) "self", NULL | |
10391 | }; | |
10392 | ||
10393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10396 | { | |
10397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10398 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10399 | ||
10400 | wxPyEndAllowThreads(__tstate); | |
10401 | if (PyErr_Occurred()) SWIG_fail; | |
10402 | } | |
10403 | resultobj = SWIG_FromInt((int)result); | |
10404 | return resultobj; | |
10405 | fail: | |
10406 | return NULL; | |
10407 | } | |
10408 | ||
10409 | ||
10410 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10411 | PyObject *resultobj; | |
10412 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10413 | int arg2 ; | |
10414 | PyObject * obj0 = 0 ; | |
10415 | PyObject * obj1 = 0 ; | |
10416 | char *kwnames[] = { | |
10417 | (char *) "self",(char *) "val", NULL | |
10418 | }; | |
10419 | ||
10420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10423 | arg2 = (int) SWIG_AsInt(obj1); | |
10424 | if (PyErr_Occurred()) SWIG_fail; | |
10425 | { | |
10426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10427 | (arg1)->SetValue(arg2); | |
10428 | ||
10429 | wxPyEndAllowThreads(__tstate); | |
10430 | if (PyErr_Occurred()) SWIG_fail; | |
10431 | } | |
10432 | Py_INCREF(Py_None); resultobj = Py_None; | |
10433 | return resultobj; | |
10434 | fail: | |
10435 | return NULL; | |
10436 | } | |
10437 | ||
10438 | ||
10439 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10440 | PyObject *resultobj; | |
10441 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10442 | int arg2 ; | |
10443 | PyObject * obj0 = 0 ; | |
10444 | PyObject * obj1 = 0 ; | |
10445 | char *kwnames[] = { | |
10446 | (char *) "self",(char *) "minVal", NULL | |
10447 | }; | |
10448 | ||
10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10452 | arg2 = (int) SWIG_AsInt(obj1); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | { | |
10455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10456 | (arg1)->SetMin(arg2); | |
10457 | ||
10458 | wxPyEndAllowThreads(__tstate); | |
10459 | if (PyErr_Occurred()) SWIG_fail; | |
10460 | } | |
10461 | Py_INCREF(Py_None); resultobj = Py_None; | |
10462 | return resultobj; | |
10463 | fail: | |
10464 | return NULL; | |
10465 | } | |
10466 | ||
10467 | ||
10468 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10469 | PyObject *resultobj; | |
10470 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10471 | int arg2 ; | |
10472 | PyObject * obj0 = 0 ; | |
10473 | PyObject * obj1 = 0 ; | |
10474 | char *kwnames[] = { | |
10475 | (char *) "self",(char *) "maxVal", NULL | |
10476 | }; | |
10477 | ||
10478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10481 | arg2 = (int) SWIG_AsInt(obj1); | |
10482 | if (PyErr_Occurred()) SWIG_fail; | |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | (arg1)->SetMax(arg2); | |
10486 | ||
10487 | wxPyEndAllowThreads(__tstate); | |
10488 | if (PyErr_Occurred()) SWIG_fail; | |
10489 | } | |
10490 | Py_INCREF(Py_None); resultobj = Py_None; | |
10491 | return resultobj; | |
10492 | fail: | |
10493 | return NULL; | |
10494 | } | |
10495 | ||
10496 | ||
10497 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10498 | PyObject *resultobj; | |
10499 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10500 | int arg2 ; | |
10501 | int arg3 ; | |
10502 | PyObject * obj0 = 0 ; | |
10503 | PyObject * obj1 = 0 ; | |
10504 | PyObject * obj2 = 0 ; | |
10505 | char *kwnames[] = { | |
10506 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10507 | }; | |
10508 | ||
10509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10512 | arg2 = (int) SWIG_AsInt(obj1); | |
10513 | if (PyErr_Occurred()) SWIG_fail; | |
10514 | arg3 = (int) SWIG_AsInt(obj2); | |
10515 | if (PyErr_Occurred()) SWIG_fail; | |
10516 | { | |
10517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10518 | (arg1)->SetRange(arg2,arg3); | |
10519 | ||
10520 | wxPyEndAllowThreads(__tstate); | |
10521 | if (PyErr_Occurred()) SWIG_fail; | |
10522 | } | |
10523 | Py_INCREF(Py_None); resultobj = Py_None; | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
10530 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10531 | PyObject *resultobj; | |
10532 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10533 | bool result; | |
10534 | PyObject * obj0 = 0 ; | |
10535 | char *kwnames[] = { | |
10536 | (char *) "self", NULL | |
10537 | }; | |
10538 | ||
10539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10542 | { | |
10543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10544 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10545 | ||
10546 | wxPyEndAllowThreads(__tstate); | |
10547 | if (PyErr_Occurred()) SWIG_fail; | |
10548 | } | |
10549 | { | |
10550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10551 | } | |
10552 | return resultobj; | |
10553 | fail: | |
10554 | return NULL; | |
10555 | } | |
10556 | ||
10557 | ||
10558 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10559 | PyObject *obj; | |
10560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10561 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10562 | Py_INCREF(obj); | |
10563 | return Py_BuildValue((char *)""); | |
10564 | } | |
10565 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10566 | PyObject *resultobj; | |
10567 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10568 | int arg2 = (int) -1 ; | |
10569 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
10570 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10571 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10572 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10573 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10574 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10575 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10576 | int arg7 = (int) 0 ; | |
10577 | int arg8 = (int) 100 ; | |
10578 | int arg9 = (int) 0 ; | |
10579 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10580 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10581 | wxSpinCtrl *result; | |
10582 | bool temp3 = False ; | |
10583 | wxPoint temp4 ; | |
10584 | wxSize temp5 ; | |
10585 | bool temp10 = False ; | |
10586 | PyObject * obj0 = 0 ; | |
10587 | PyObject * obj1 = 0 ; | |
10588 | PyObject * obj2 = 0 ; | |
10589 | PyObject * obj3 = 0 ; | |
10590 | PyObject * obj4 = 0 ; | |
10591 | PyObject * obj5 = 0 ; | |
10592 | PyObject * obj6 = 0 ; | |
10593 | PyObject * obj7 = 0 ; | |
10594 | PyObject * obj8 = 0 ; | |
10595 | PyObject * obj9 = 0 ; | |
10596 | char *kwnames[] = { | |
10597 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10598 | }; | |
10599 | ||
10600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
10601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10603 | if (obj1) { | |
10604 | arg2 = (int) SWIG_AsInt(obj1); | |
10605 | if (PyErr_Occurred()) SWIG_fail; | |
10606 | } | |
10607 | if (obj2) { | |
10608 | { | |
10609 | arg3 = wxString_in_helper(obj2); | |
10610 | if (arg3 == NULL) SWIG_fail; | |
10611 | temp3 = True; | |
10612 | } | |
10613 | } | |
10614 | if (obj3) { | |
10615 | { | |
10616 | arg4 = &temp4; | |
10617 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10618 | } | |
10619 | } | |
10620 | if (obj4) { | |
10621 | { | |
10622 | arg5 = &temp5; | |
10623 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10624 | } | |
10625 | } | |
10626 | if (obj5) { | |
10627 | arg6 = (long) SWIG_AsLong(obj5); | |
10628 | if (PyErr_Occurred()) SWIG_fail; | |
10629 | } | |
10630 | if (obj6) { | |
10631 | arg7 = (int) SWIG_AsInt(obj6); | |
10632 | if (PyErr_Occurred()) SWIG_fail; | |
10633 | } | |
10634 | if (obj7) { | |
10635 | arg8 = (int) SWIG_AsInt(obj7); | |
10636 | if (PyErr_Occurred()) SWIG_fail; | |
10637 | } | |
10638 | if (obj8) { | |
10639 | arg9 = (int) SWIG_AsInt(obj8); | |
10640 | if (PyErr_Occurred()) SWIG_fail; | |
10641 | } | |
10642 | if (obj9) { | |
10643 | { | |
10644 | arg10 = wxString_in_helper(obj9); | |
10645 | if (arg10 == NULL) SWIG_fail; | |
10646 | temp10 = True; | |
10647 | } | |
10648 | } | |
10649 | { | |
10650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10651 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10652 | ||
10653 | wxPyEndAllowThreads(__tstate); | |
10654 | if (PyErr_Occurred()) SWIG_fail; | |
10655 | } | |
10656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
10657 | { | |
10658 | if (temp3) | |
10659 | delete arg3; | |
10660 | } | |
10661 | { | |
10662 | if (temp10) | |
10663 | delete arg10; | |
10664 | } | |
10665 | return resultobj; | |
10666 | fail: | |
10667 | { | |
10668 | if (temp3) | |
10669 | delete arg3; | |
10670 | } | |
10671 | { | |
10672 | if (temp10) | |
10673 | delete arg10; | |
10674 | } | |
10675 | return NULL; | |
10676 | } | |
10677 | ||
10678 | ||
10679 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10680 | PyObject *resultobj; | |
10681 | wxSpinCtrl *result; | |
10682 | char *kwnames[] = { | |
10683 | NULL | |
10684 | }; | |
10685 | ||
10686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10687 | { | |
10688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10689 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10690 | ||
10691 | wxPyEndAllowThreads(__tstate); | |
10692 | if (PyErr_Occurred()) SWIG_fail; | |
10693 | } | |
10694 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
10695 | return resultobj; | |
10696 | fail: | |
10697 | return NULL; | |
10698 | } | |
10699 | ||
10700 | ||
10701 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10702 | PyObject *resultobj; | |
10703 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10704 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10705 | int arg3 = (int) -1 ; | |
10706 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
10707 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10708 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10709 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10710 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10711 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10712 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10713 | int arg8 = (int) 0 ; | |
10714 | int arg9 = (int) 100 ; | |
10715 | int arg10 = (int) 0 ; | |
10716 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10717 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10718 | bool result; | |
10719 | bool temp4 = False ; | |
10720 | wxPoint temp5 ; | |
10721 | wxSize temp6 ; | |
10722 | bool temp11 = False ; | |
10723 | PyObject * obj0 = 0 ; | |
10724 | PyObject * obj1 = 0 ; | |
10725 | PyObject * obj2 = 0 ; | |
10726 | PyObject * obj3 = 0 ; | |
10727 | PyObject * obj4 = 0 ; | |
10728 | PyObject * obj5 = 0 ; | |
10729 | PyObject * obj6 = 0 ; | |
10730 | PyObject * obj7 = 0 ; | |
10731 | PyObject * obj8 = 0 ; | |
10732 | PyObject * obj9 = 0 ; | |
10733 | PyObject * obj10 = 0 ; | |
10734 | char *kwnames[] = { | |
10735 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10736 | }; | |
10737 | ||
10738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
10739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10742 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10743 | if (obj2) { | |
10744 | arg3 = (int) SWIG_AsInt(obj2); | |
10745 | if (PyErr_Occurred()) SWIG_fail; | |
10746 | } | |
10747 | if (obj3) { | |
10748 | { | |
10749 | arg4 = wxString_in_helper(obj3); | |
10750 | if (arg4 == NULL) SWIG_fail; | |
10751 | temp4 = True; | |
10752 | } | |
10753 | } | |
10754 | if (obj4) { | |
10755 | { | |
10756 | arg5 = &temp5; | |
10757 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10758 | } | |
10759 | } | |
10760 | if (obj5) { | |
10761 | { | |
10762 | arg6 = &temp6; | |
10763 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10764 | } | |
10765 | } | |
10766 | if (obj6) { | |
10767 | arg7 = (long) SWIG_AsLong(obj6); | |
10768 | if (PyErr_Occurred()) SWIG_fail; | |
10769 | } | |
10770 | if (obj7) { | |
10771 | arg8 = (int) SWIG_AsInt(obj7); | |
10772 | if (PyErr_Occurred()) SWIG_fail; | |
10773 | } | |
10774 | if (obj8) { | |
10775 | arg9 = (int) SWIG_AsInt(obj8); | |
10776 | if (PyErr_Occurred()) SWIG_fail; | |
10777 | } | |
10778 | if (obj9) { | |
10779 | arg10 = (int) SWIG_AsInt(obj9); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | } | |
10782 | if (obj10) { | |
10783 | { | |
10784 | arg11 = wxString_in_helper(obj10); | |
10785 | if (arg11 == NULL) SWIG_fail; | |
10786 | temp11 = True; | |
10787 | } | |
10788 | } | |
10789 | { | |
10790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10791 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10792 | ||
10793 | wxPyEndAllowThreads(__tstate); | |
10794 | if (PyErr_Occurred()) SWIG_fail; | |
10795 | } | |
10796 | { | |
10797 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10798 | } | |
10799 | { | |
10800 | if (temp4) | |
10801 | delete arg4; | |
10802 | } | |
10803 | { | |
10804 | if (temp11) | |
10805 | delete arg11; | |
10806 | } | |
10807 | return resultobj; | |
10808 | fail: | |
10809 | { | |
10810 | if (temp4) | |
10811 | delete arg4; | |
10812 | } | |
10813 | { | |
10814 | if (temp11) | |
10815 | delete arg11; | |
10816 | } | |
10817 | return NULL; | |
10818 | } | |
10819 | ||
10820 | ||
10821 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10822 | PyObject *resultobj; | |
10823 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10824 | int result; | |
10825 | PyObject * obj0 = 0 ; | |
10826 | char *kwnames[] = { | |
10827 | (char *) "self", NULL | |
10828 | }; | |
10829 | ||
10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
10831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10833 | { | |
10834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10835 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10836 | ||
10837 | wxPyEndAllowThreads(__tstate); | |
10838 | if (PyErr_Occurred()) SWIG_fail; | |
10839 | } | |
10840 | resultobj = SWIG_FromInt((int)result); | |
10841 | return resultobj; | |
10842 | fail: | |
10843 | return NULL; | |
10844 | } | |
10845 | ||
10846 | ||
10847 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10848 | PyObject *resultobj; | |
10849 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10850 | int arg2 ; | |
10851 | PyObject * obj0 = 0 ; | |
10852 | PyObject * obj1 = 0 ; | |
10853 | char *kwnames[] = { | |
10854 | (char *) "self",(char *) "value", NULL | |
10855 | }; | |
10856 | ||
10857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10860 | arg2 = (int) SWIG_AsInt(obj1); | |
10861 | if (PyErr_Occurred()) SWIG_fail; | |
10862 | { | |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | (arg1)->SetValue(arg2); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
10869 | Py_INCREF(Py_None); resultobj = Py_None; | |
10870 | return resultobj; | |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
10876 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10877 | PyObject *resultobj; | |
10878 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10879 | wxString *arg2 = 0 ; | |
10880 | bool temp2 = False ; | |
10881 | PyObject * obj0 = 0 ; | |
10882 | PyObject * obj1 = 0 ; | |
10883 | char *kwnames[] = { | |
10884 | (char *) "self",(char *) "text", NULL | |
10885 | }; | |
10886 | ||
10887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
10888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10890 | { | |
10891 | arg2 = wxString_in_helper(obj1); | |
10892 | if (arg2 == NULL) SWIG_fail; | |
10893 | temp2 = True; | |
10894 | } | |
10895 | { | |
10896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10897 | (arg1)->SetValue((wxString const &)*arg2); | |
10898 | ||
10899 | wxPyEndAllowThreads(__tstate); | |
10900 | if (PyErr_Occurred()) SWIG_fail; | |
10901 | } | |
10902 | Py_INCREF(Py_None); resultobj = Py_None; | |
10903 | { | |
10904 | if (temp2) | |
10905 | delete arg2; | |
10906 | } | |
10907 | return resultobj; | |
10908 | fail: | |
10909 | { | |
10910 | if (temp2) | |
10911 | delete arg2; | |
10912 | } | |
10913 | return NULL; | |
10914 | } | |
10915 | ||
10916 | ||
10917 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10918 | PyObject *resultobj; | |
10919 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10920 | int arg2 ; | |
10921 | int arg3 ; | |
10922 | PyObject * obj0 = 0 ; | |
10923 | PyObject * obj1 = 0 ; | |
10924 | PyObject * obj2 = 0 ; | |
10925 | char *kwnames[] = { | |
10926 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10927 | }; | |
10928 | ||
10929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10932 | arg2 = (int) SWIG_AsInt(obj1); | |
10933 | if (PyErr_Occurred()) SWIG_fail; | |
10934 | arg3 = (int) SWIG_AsInt(obj2); | |
10935 | if (PyErr_Occurred()) SWIG_fail; | |
10936 | { | |
10937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10938 | (arg1)->SetRange(arg2,arg3); | |
10939 | ||
10940 | wxPyEndAllowThreads(__tstate); | |
10941 | if (PyErr_Occurred()) SWIG_fail; | |
10942 | } | |
10943 | Py_INCREF(Py_None); resultobj = Py_None; | |
10944 | return resultobj; | |
10945 | fail: | |
10946 | return NULL; | |
10947 | } | |
10948 | ||
10949 | ||
10950 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10951 | PyObject *resultobj; | |
10952 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10953 | int result; | |
10954 | PyObject * obj0 = 0 ; | |
10955 | char *kwnames[] = { | |
10956 | (char *) "self", NULL | |
10957 | }; | |
10958 | ||
10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
10960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10962 | { | |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10965 | ||
10966 | wxPyEndAllowThreads(__tstate); | |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
10968 | } | |
10969 | resultobj = SWIG_FromInt((int)result); | |
10970 | return resultobj; | |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj; | |
10978 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10979 | int result; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | char *kwnames[] = { | |
10982 | (char *) "self", NULL | |
10983 | }; | |
10984 | ||
10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
10986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
10987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10988 | { | |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
10995 | resultobj = SWIG_FromInt((int)result); | |
10996 | return resultobj; | |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11005 | long arg2 ; | |
11006 | long arg3 ; | |
11007 | PyObject * obj0 = 0 ; | |
11008 | PyObject * obj1 = 0 ; | |
11009 | PyObject * obj2 = 0 ; | |
11010 | char *kwnames[] = { | |
11011 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11012 | }; | |
11013 | ||
11014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11017 | arg2 = (long) SWIG_AsLong(obj1); | |
11018 | if (PyErr_Occurred()) SWIG_fail; | |
11019 | arg3 = (long) SWIG_AsLong(obj2); | |
11020 | if (PyErr_Occurred()) SWIG_fail; | |
11021 | { | |
11022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11023 | (arg1)->SetSelection(arg2,arg3); | |
11024 | ||
11025 | wxPyEndAllowThreads(__tstate); | |
11026 | if (PyErr_Occurred()) SWIG_fail; | |
11027 | } | |
11028 | Py_INCREF(Py_None); resultobj = Py_None; | |
11029 | return resultobj; | |
11030 | fail: | |
11031 | return NULL; | |
11032 | } | |
11033 | ||
11034 | ||
11035 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
11036 | PyObject *obj; | |
11037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11038 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11039 | Py_INCREF(obj); | |
11040 | return Py_BuildValue((char *)""); | |
11041 | } | |
11042 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11043 | PyObject *resultobj; | |
11044 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11045 | int arg2 = (int) 0 ; | |
11046 | wxSpinEvent *result; | |
11047 | PyObject * obj0 = 0 ; | |
11048 | PyObject * obj1 = 0 ; | |
11049 | char *kwnames[] = { | |
11050 | (char *) "commandType",(char *) "winid", NULL | |
11051 | }; | |
11052 | ||
11053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
11054 | if (obj0) { | |
11055 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11056 | if (PyErr_Occurred()) SWIG_fail; | |
11057 | } | |
11058 | if (obj1) { | |
11059 | arg2 = (int) SWIG_AsInt(obj1); | |
11060 | if (PyErr_Occurred()) SWIG_fail; | |
11061 | } | |
11062 | { | |
11063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11064 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11065 | ||
11066 | wxPyEndAllowThreads(__tstate); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | } | |
11069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
11070 | return resultobj; | |
11071 | fail: | |
11072 | return NULL; | |
11073 | } | |
11074 | ||
11075 | ||
11076 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11077 | PyObject *resultobj; | |
11078 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11079 | int result; | |
11080 | PyObject * obj0 = 0 ; | |
11081 | char *kwnames[] = { | |
11082 | (char *) "self", NULL | |
11083 | }; | |
11084 | ||
11085 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11086 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11088 | { | |
11089 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11090 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11091 | ||
11092 | wxPyEndAllowThreads(__tstate); | |
11093 | if (PyErr_Occurred()) SWIG_fail; | |
11094 | } | |
11095 | resultobj = SWIG_FromInt((int)result); | |
11096 | return resultobj; | |
11097 | fail: | |
11098 | return NULL; | |
11099 | } | |
11100 | ||
11101 | ||
11102 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11103 | PyObject *resultobj; | |
11104 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11105 | int arg2 ; | |
11106 | PyObject * obj0 = 0 ; | |
11107 | PyObject * obj1 = 0 ; | |
11108 | char *kwnames[] = { | |
11109 | (char *) "self",(char *) "pos", NULL | |
11110 | }; | |
11111 | ||
11112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11115 | arg2 = (int) SWIG_AsInt(obj1); | |
11116 | if (PyErr_Occurred()) SWIG_fail; | |
11117 | { | |
11118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11119 | (arg1)->SetPosition(arg2); | |
11120 | ||
11121 | wxPyEndAllowThreads(__tstate); | |
11122 | if (PyErr_Occurred()) SWIG_fail; | |
11123 | } | |
11124 | Py_INCREF(Py_None); resultobj = Py_None; | |
11125 | return resultobj; | |
11126 | fail: | |
11127 | return NULL; | |
11128 | } | |
11129 | ||
11130 | ||
11131 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11132 | PyObject *obj; | |
11133 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11134 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11135 | Py_INCREF(obj); | |
11136 | return Py_BuildValue((char *)""); | |
11137 | } | |
11138 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { | |
11139 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11140 | return 1; | |
11141 | } | |
11142 | ||
11143 | ||
11144 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11145 | PyObject *pyobj; | |
11146 | ||
11147 | { | |
11148 | #if wxUSE_UNICODE | |
11149 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11150 | #else | |
11151 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11152 | #endif | |
11153 | } | |
11154 | return pyobj; | |
11155 | } | |
11156 | ||
11157 | ||
11158 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11159 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11160 | return 1; | |
11161 | } | |
11162 | ||
11163 | ||
11164 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11165 | PyObject *pyobj; | |
11166 | ||
11167 | { | |
11168 | #if wxUSE_UNICODE | |
11169 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11170 | #else | |
11171 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11172 | #endif | |
11173 | } | |
11174 | return pyobj; | |
11175 | } | |
11176 | ||
11177 | ||
11178 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11179 | PyObject *resultobj; | |
11180 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11181 | int arg2 ; | |
11182 | wxString *arg3 = 0 ; | |
11183 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11184 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11185 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11186 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11187 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
11188 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11189 | int arg7 = (int) 0 ; | |
11190 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11191 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11192 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11193 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11194 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11195 | wxRadioBox *result; | |
11196 | bool temp3 = False ; | |
11197 | wxPoint temp4 ; | |
11198 | wxSize temp5 ; | |
11199 | bool temp6 = False ; | |
11200 | bool temp10 = False ; | |
11201 | PyObject * obj0 = 0 ; | |
11202 | PyObject * obj1 = 0 ; | |
11203 | PyObject * obj2 = 0 ; | |
11204 | PyObject * obj3 = 0 ; | |
11205 | PyObject * obj4 = 0 ; | |
11206 | PyObject * obj5 = 0 ; | |
11207 | PyObject * obj6 = 0 ; | |
11208 | PyObject * obj7 = 0 ; | |
11209 | PyObject * obj8 = 0 ; | |
11210 | PyObject * obj9 = 0 ; | |
11211 | char *kwnames[] = { | |
11212 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11213 | }; | |
11214 | ||
11215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11218 | arg2 = (int) SWIG_AsInt(obj1); | |
11219 | if (PyErr_Occurred()) SWIG_fail; | |
11220 | { | |
11221 | arg3 = wxString_in_helper(obj2); | |
11222 | if (arg3 == NULL) SWIG_fail; | |
11223 | temp3 = True; | |
11224 | } | |
11225 | if (obj3) { | |
11226 | { | |
11227 | arg4 = &temp4; | |
11228 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11229 | } | |
11230 | } | |
11231 | if (obj4) { | |
11232 | { | |
11233 | arg5 = &temp5; | |
11234 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11235 | } | |
11236 | } | |
11237 | if (obj5) { | |
11238 | { | |
11239 | if (! PySequence_Check(obj5)) { | |
11240 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11241 | SWIG_fail; | |
11242 | } | |
11243 | arg6 = new wxArrayString; | |
11244 | temp6 = True; | |
11245 | int i, len=PySequence_Length(obj5); | |
11246 | for (i=0; i<len; i++) { | |
11247 | PyObject* item = PySequence_GetItem(obj5, i); | |
11248 | #if wxUSE_UNICODE | |
11249 | PyObject* str = PyObject_Unicode(item); | |
11250 | #else | |
11251 | PyObject* str = PyObject_Str(item); | |
11252 | #endif | |
11253 | if (PyErr_Occurred()) SWIG_fail; | |
11254 | arg6->Add(Py2wxString(str)); | |
11255 | Py_DECREF(item); | |
11256 | Py_DECREF(str); | |
11257 | } | |
11258 | } | |
11259 | } | |
11260 | if (obj6) { | |
11261 | arg7 = (int) SWIG_AsInt(obj6); | |
11262 | if (PyErr_Occurred()) SWIG_fail; | |
11263 | } | |
11264 | if (obj7) { | |
11265 | arg8 = (long) SWIG_AsLong(obj7); | |
11266 | if (PyErr_Occurred()) SWIG_fail; | |
11267 | } | |
11268 | if (obj8) { | |
11269 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11270 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11271 | SWIG_fail; | |
11272 | if (arg9 == NULL) { | |
11273 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11274 | SWIG_fail; | |
11275 | } | |
11276 | } | |
11277 | if (obj9) { | |
11278 | { | |
11279 | arg10 = wxString_in_helper(obj9); | |
11280 | if (arg10 == NULL) SWIG_fail; | |
11281 | temp10 = True; | |
11282 | } | |
11283 | } | |
11284 | { | |
11285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11286 | result = (wxRadioBox *)new wxRadioBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
11287 | ||
11288 | wxPyEndAllowThreads(__tstate); | |
11289 | if (PyErr_Occurred()) SWIG_fail; | |
11290 | } | |
11291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11292 | { | |
11293 | if (temp3) | |
11294 | delete arg3; | |
11295 | } | |
11296 | { | |
11297 | if (temp6) delete arg6; | |
11298 | } | |
11299 | { | |
11300 | if (temp10) | |
11301 | delete arg10; | |
11302 | } | |
11303 | return resultobj; | |
11304 | fail: | |
11305 | { | |
11306 | if (temp3) | |
11307 | delete arg3; | |
11308 | } | |
11309 | { | |
11310 | if (temp6) delete arg6; | |
11311 | } | |
11312 | { | |
11313 | if (temp10) | |
11314 | delete arg10; | |
11315 | } | |
11316 | return NULL; | |
11317 | } | |
11318 | ||
11319 | ||
11320 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11321 | PyObject *resultobj; | |
11322 | wxRadioBox *result; | |
11323 | char *kwnames[] = { | |
11324 | NULL | |
11325 | }; | |
11326 | ||
11327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11328 | { | |
11329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11330 | result = (wxRadioBox *)new wxRadioBox(); | |
11331 | ||
11332 | wxPyEndAllowThreads(__tstate); | |
11333 | if (PyErr_Occurred()) SWIG_fail; | |
11334 | } | |
11335 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11336 | return resultobj; | |
11337 | fail: | |
11338 | return NULL; | |
11339 | } | |
11340 | ||
11341 | ||
11342 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11343 | PyObject *resultobj; | |
11344 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11345 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11346 | int arg3 ; | |
11347 | wxString *arg4 = 0 ; | |
11348 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11349 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11350 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11351 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11352 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11353 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11354 | int arg8 = (int) 0 ; | |
11355 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11356 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11357 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11358 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11359 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11360 | bool result; | |
11361 | bool temp4 = False ; | |
11362 | wxPoint temp5 ; | |
11363 | wxSize temp6 ; | |
11364 | bool temp7 = False ; | |
11365 | bool temp11 = False ; | |
11366 | PyObject * obj0 = 0 ; | |
11367 | PyObject * obj1 = 0 ; | |
11368 | PyObject * obj2 = 0 ; | |
11369 | PyObject * obj3 = 0 ; | |
11370 | PyObject * obj4 = 0 ; | |
11371 | PyObject * obj5 = 0 ; | |
11372 | PyObject * obj6 = 0 ; | |
11373 | PyObject * obj7 = 0 ; | |
11374 | PyObject * obj8 = 0 ; | |
11375 | PyObject * obj9 = 0 ; | |
11376 | PyObject * obj10 = 0 ; | |
11377 | char *kwnames[] = { | |
11378 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11379 | }; | |
11380 | ||
11381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11386 | arg3 = (int) SWIG_AsInt(obj2); | |
11387 | if (PyErr_Occurred()) SWIG_fail; | |
11388 | { | |
11389 | arg4 = wxString_in_helper(obj3); | |
11390 | if (arg4 == NULL) SWIG_fail; | |
11391 | temp4 = True; | |
11392 | } | |
11393 | if (obj4) { | |
11394 | { | |
11395 | arg5 = &temp5; | |
11396 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11397 | } | |
11398 | } | |
11399 | if (obj5) { | |
11400 | { | |
11401 | arg6 = &temp6; | |
11402 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11403 | } | |
11404 | } | |
11405 | if (obj6) { | |
11406 | { | |
11407 | if (! PySequence_Check(obj6)) { | |
11408 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11409 | SWIG_fail; | |
11410 | } | |
11411 | arg7 = new wxArrayString; | |
11412 | temp7 = True; | |
11413 | int i, len=PySequence_Length(obj6); | |
11414 | for (i=0; i<len; i++) { | |
11415 | PyObject* item = PySequence_GetItem(obj6, i); | |
11416 | #if wxUSE_UNICODE | |
11417 | PyObject* str = PyObject_Unicode(item); | |
11418 | #else | |
11419 | PyObject* str = PyObject_Str(item); | |
11420 | #endif | |
11421 | if (PyErr_Occurred()) SWIG_fail; | |
11422 | arg7->Add(Py2wxString(str)); | |
11423 | Py_DECREF(item); | |
11424 | Py_DECREF(str); | |
11425 | } | |
11426 | } | |
11427 | } | |
11428 | if (obj7) { | |
11429 | arg8 = (int) SWIG_AsInt(obj7); | |
11430 | if (PyErr_Occurred()) SWIG_fail; | |
11431 | } | |
11432 | if (obj8) { | |
11433 | arg9 = (long) SWIG_AsLong(obj8); | |
11434 | if (PyErr_Occurred()) SWIG_fail; | |
11435 | } | |
11436 | if (obj9) { | |
11437 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
11438 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11439 | SWIG_fail; | |
11440 | if (arg10 == NULL) { | |
11441 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11442 | SWIG_fail; | |
11443 | } | |
11444 | } | |
11445 | if (obj10) { | |
11446 | { | |
11447 | arg11 = wxString_in_helper(obj10); | |
11448 | if (arg11 == NULL) SWIG_fail; | |
11449 | temp11 = True; | |
11450 | } | |
11451 | } | |
11452 | { | |
11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11454 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,(wxArrayString const &)*arg7,arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
11455 | ||
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | { | |
11460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11461 | } | |
11462 | { | |
11463 | if (temp4) | |
11464 | delete arg4; | |
11465 | } | |
11466 | { | |
11467 | if (temp7) delete arg7; | |
11468 | } | |
11469 | { | |
11470 | if (temp11) | |
11471 | delete arg11; | |
11472 | } | |
11473 | return resultobj; | |
11474 | fail: | |
11475 | { | |
11476 | if (temp4) | |
11477 | delete arg4; | |
11478 | } | |
11479 | { | |
11480 | if (temp7) delete arg7; | |
11481 | } | |
11482 | { | |
11483 | if (temp11) | |
11484 | delete arg11; | |
11485 | } | |
11486 | return NULL; | |
11487 | } | |
11488 | ||
11489 | ||
11490 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11491 | PyObject *resultobj; | |
11492 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11493 | int arg2 ; | |
11494 | PyObject * obj0 = 0 ; | |
11495 | PyObject * obj1 = 0 ; | |
11496 | char *kwnames[] = { | |
11497 | (char *) "self",(char *) "n", NULL | |
11498 | }; | |
11499 | ||
11500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
11501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11503 | arg2 = (int) SWIG_AsInt(obj1); | |
11504 | if (PyErr_Occurred()) SWIG_fail; | |
11505 | { | |
11506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11507 | (arg1)->SetSelection(arg2); | |
11508 | ||
11509 | wxPyEndAllowThreads(__tstate); | |
11510 | if (PyErr_Occurred()) SWIG_fail; | |
11511 | } | |
11512 | Py_INCREF(Py_None); resultobj = Py_None; | |
11513 | return resultobj; | |
11514 | fail: | |
11515 | return NULL; | |
11516 | } | |
11517 | ||
11518 | ||
11519 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11520 | PyObject *resultobj; | |
11521 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11522 | int result; | |
11523 | PyObject * obj0 = 0 ; | |
11524 | char *kwnames[] = { | |
11525 | (char *) "self", NULL | |
11526 | }; | |
11527 | ||
11528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
11529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11531 | { | |
11532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11533 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11534 | ||
11535 | wxPyEndAllowThreads(__tstate); | |
11536 | if (PyErr_Occurred()) SWIG_fail; | |
11537 | } | |
11538 | resultobj = SWIG_FromInt((int)result); | |
11539 | return resultobj; | |
11540 | fail: | |
11541 | return NULL; | |
11542 | } | |
11543 | ||
11544 | ||
11545 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11546 | PyObject *resultobj; | |
11547 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11548 | wxString result; | |
11549 | PyObject * obj0 = 0 ; | |
11550 | char *kwnames[] = { | |
11551 | (char *) "self", NULL | |
11552 | }; | |
11553 | ||
11554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
11555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11557 | { | |
11558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11559 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11560 | ||
11561 | wxPyEndAllowThreads(__tstate); | |
11562 | if (PyErr_Occurred()) SWIG_fail; | |
11563 | } | |
11564 | { | |
11565 | #if wxUSE_UNICODE | |
11566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11567 | #else | |
11568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11569 | #endif | |
11570 | } | |
11571 | return resultobj; | |
11572 | fail: | |
11573 | return NULL; | |
11574 | } | |
11575 | ||
11576 | ||
11577 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11578 | PyObject *resultobj; | |
11579 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11580 | wxString *arg2 = 0 ; | |
11581 | bool result; | |
11582 | bool temp2 = False ; | |
11583 | PyObject * obj0 = 0 ; | |
11584 | PyObject * obj1 = 0 ; | |
11585 | char *kwnames[] = { | |
11586 | (char *) "self",(char *) "s", NULL | |
11587 | }; | |
11588 | ||
11589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
11590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11592 | { | |
11593 | arg2 = wxString_in_helper(obj1); | |
11594 | if (arg2 == NULL) SWIG_fail; | |
11595 | temp2 = True; | |
11596 | } | |
11597 | { | |
11598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11599 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11600 | ||
11601 | wxPyEndAllowThreads(__tstate); | |
11602 | if (PyErr_Occurred()) SWIG_fail; | |
11603 | } | |
11604 | { | |
11605 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11606 | } | |
11607 | { | |
11608 | if (temp2) | |
11609 | delete arg2; | |
11610 | } | |
11611 | return resultobj; | |
11612 | fail: | |
11613 | { | |
11614 | if (temp2) | |
11615 | delete arg2; | |
11616 | } | |
11617 | return NULL; | |
11618 | } | |
11619 | ||
11620 | ||
11621 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11622 | PyObject *resultobj; | |
11623 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11624 | int result; | |
11625 | PyObject * obj0 = 0 ; | |
11626 | char *kwnames[] = { | |
11627 | (char *) "self", NULL | |
11628 | }; | |
11629 | ||
11630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
11631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11633 | { | |
11634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11635 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11636 | ||
11637 | wxPyEndAllowThreads(__tstate); | |
11638 | if (PyErr_Occurred()) SWIG_fail; | |
11639 | } | |
11640 | resultobj = SWIG_FromInt((int)result); | |
11641 | return resultobj; | |
11642 | fail: | |
11643 | return NULL; | |
11644 | } | |
11645 | ||
11646 | ||
11647 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11648 | PyObject *resultobj; | |
11649 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11650 | wxString *arg2 = 0 ; | |
11651 | int result; | |
11652 | bool temp2 = False ; | |
11653 | PyObject * obj0 = 0 ; | |
11654 | PyObject * obj1 = 0 ; | |
11655 | char *kwnames[] = { | |
11656 | (char *) "self",(char *) "s", NULL | |
11657 | }; | |
11658 | ||
11659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
11660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11662 | { | |
11663 | arg2 = wxString_in_helper(obj1); | |
11664 | if (arg2 == NULL) SWIG_fail; | |
11665 | temp2 = True; | |
11666 | } | |
11667 | { | |
11668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11669 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11670 | ||
11671 | wxPyEndAllowThreads(__tstate); | |
11672 | if (PyErr_Occurred()) SWIG_fail; | |
11673 | } | |
11674 | resultobj = SWIG_FromInt((int)result); | |
11675 | { | |
11676 | if (temp2) | |
11677 | delete arg2; | |
11678 | } | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | { | |
11682 | if (temp2) | |
11683 | delete arg2; | |
11684 | } | |
11685 | return NULL; | |
11686 | } | |
11687 | ||
11688 | ||
11689 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11690 | PyObject *resultobj; | |
11691 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11692 | int arg2 ; | |
11693 | wxString result; | |
11694 | PyObject * obj0 = 0 ; | |
11695 | PyObject * obj1 = 0 ; | |
11696 | char *kwnames[] = { | |
11697 | (char *) "self",(char *) "n", NULL | |
11698 | }; | |
11699 | ||
11700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
11701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11703 | arg2 = (int) SWIG_AsInt(obj1); | |
11704 | if (PyErr_Occurred()) SWIG_fail; | |
11705 | { | |
11706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11707 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11708 | ||
11709 | wxPyEndAllowThreads(__tstate); | |
11710 | if (PyErr_Occurred()) SWIG_fail; | |
11711 | } | |
11712 | { | |
11713 | #if wxUSE_UNICODE | |
11714 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11715 | #else | |
11716 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11717 | #endif | |
11718 | } | |
11719 | return resultobj; | |
11720 | fail: | |
11721 | return NULL; | |
11722 | } | |
11723 | ||
11724 | ||
11725 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11726 | PyObject *resultobj; | |
11727 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11728 | int arg2 ; | |
11729 | wxString *arg3 = 0 ; | |
11730 | bool temp3 = False ; | |
11731 | PyObject * obj0 = 0 ; | |
11732 | PyObject * obj1 = 0 ; | |
11733 | PyObject * obj2 = 0 ; | |
11734 | char *kwnames[] = { | |
11735 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11736 | }; | |
11737 | ||
11738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11741 | arg2 = (int) SWIG_AsInt(obj1); | |
11742 | if (PyErr_Occurred()) SWIG_fail; | |
11743 | { | |
11744 | arg3 = wxString_in_helper(obj2); | |
11745 | if (arg3 == NULL) SWIG_fail; | |
11746 | temp3 = True; | |
11747 | } | |
11748 | { | |
11749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11750 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11751 | ||
11752 | wxPyEndAllowThreads(__tstate); | |
11753 | if (PyErr_Occurred()) SWIG_fail; | |
11754 | } | |
11755 | Py_INCREF(Py_None); resultobj = Py_None; | |
11756 | { | |
11757 | if (temp3) | |
11758 | delete arg3; | |
11759 | } | |
11760 | return resultobj; | |
11761 | fail: | |
11762 | { | |
11763 | if (temp3) | |
11764 | delete arg3; | |
11765 | } | |
11766 | return NULL; | |
11767 | } | |
11768 | ||
11769 | ||
11770 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11771 | PyObject *resultobj; | |
11772 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11773 | int arg2 ; | |
11774 | bool arg3 = (bool) True ; | |
11775 | PyObject * obj0 = 0 ; | |
11776 | PyObject * obj1 = 0 ; | |
11777 | PyObject * obj2 = 0 ; | |
11778 | char *kwnames[] = { | |
11779 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11780 | }; | |
11781 | ||
11782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11785 | arg2 = (int) SWIG_AsInt(obj1); | |
11786 | if (PyErr_Occurred()) SWIG_fail; | |
11787 | if (obj2) { | |
11788 | arg3 = (bool) SWIG_AsBool(obj2); | |
11789 | if (PyErr_Occurred()) SWIG_fail; | |
11790 | } | |
11791 | { | |
11792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11793 | (arg1)->Enable(arg2,arg3); | |
11794 | ||
11795 | wxPyEndAllowThreads(__tstate); | |
11796 | if (PyErr_Occurred()) SWIG_fail; | |
11797 | } | |
11798 | Py_INCREF(Py_None); resultobj = Py_None; | |
11799 | return resultobj; | |
11800 | fail: | |
11801 | return NULL; | |
11802 | } | |
11803 | ||
11804 | ||
11805 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11806 | PyObject *resultobj; | |
11807 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11808 | int arg2 ; | |
11809 | bool arg3 = (bool) True ; | |
11810 | PyObject * obj0 = 0 ; | |
11811 | PyObject * obj1 = 0 ; | |
11812 | PyObject * obj2 = 0 ; | |
11813 | char *kwnames[] = { | |
11814 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11815 | }; | |
11816 | ||
11817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11820 | arg2 = (int) SWIG_AsInt(obj1); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | if (obj2) { | |
11823 | arg3 = (bool) SWIG_AsBool(obj2); | |
11824 | if (PyErr_Occurred()) SWIG_fail; | |
11825 | } | |
11826 | { | |
11827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11828 | (arg1)->Show(arg2,arg3); | |
11829 | ||
11830 | wxPyEndAllowThreads(__tstate); | |
11831 | if (PyErr_Occurred()) SWIG_fail; | |
11832 | } | |
11833 | Py_INCREF(Py_None); resultobj = Py_None; | |
11834 | return resultobj; | |
11835 | fail: | |
11836 | return NULL; | |
11837 | } | |
11838 | ||
11839 | ||
11840 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11841 | PyObject *resultobj; | |
11842 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11843 | int result; | |
11844 | PyObject * obj0 = 0 ; | |
11845 | char *kwnames[] = { | |
11846 | (char *) "self", NULL | |
11847 | }; | |
11848 | ||
11849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
11850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11852 | { | |
11853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11854 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11855 | ||
11856 | wxPyEndAllowThreads(__tstate); | |
11857 | if (PyErr_Occurred()) SWIG_fail; | |
11858 | } | |
11859 | resultobj = SWIG_FromInt((int)result); | |
11860 | return resultobj; | |
11861 | fail: | |
11862 | return NULL; | |
11863 | } | |
11864 | ||
11865 | ||
11866 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11867 | PyObject *resultobj; | |
11868 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11869 | int result; | |
11870 | PyObject * obj0 = 0 ; | |
11871 | char *kwnames[] = { | |
11872 | (char *) "self", NULL | |
11873 | }; | |
11874 | ||
11875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
11876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11878 | { | |
11879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11880 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11881 | ||
11882 | wxPyEndAllowThreads(__tstate); | |
11883 | if (PyErr_Occurred()) SWIG_fail; | |
11884 | } | |
11885 | resultobj = SWIG_FromInt((int)result); | |
11886 | return resultobj; | |
11887 | fail: | |
11888 | return NULL; | |
11889 | } | |
11890 | ||
11891 | ||
11892 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11893 | PyObject *resultobj; | |
11894 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11895 | int arg2 ; | |
11896 | int arg3 ; | |
11897 | long arg4 ; | |
11898 | int result; | |
11899 | PyObject * obj0 = 0 ; | |
11900 | PyObject * obj1 = 0 ; | |
11901 | PyObject * obj2 = 0 ; | |
11902 | PyObject * obj3 = 0 ; | |
11903 | char *kwnames[] = { | |
11904 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11905 | }; | |
11906 | ||
11907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
11908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
11909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11910 | arg2 = (int) SWIG_AsInt(obj1); | |
11911 | if (PyErr_Occurred()) SWIG_fail; | |
11912 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
11913 | if (PyErr_Occurred()) SWIG_fail; | |
11914 | arg4 = (long) SWIG_AsLong(obj3); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | { | |
11917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11918 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11919 | ||
11920 | wxPyEndAllowThreads(__tstate); | |
11921 | if (PyErr_Occurred()) SWIG_fail; | |
11922 | } | |
11923 | resultobj = SWIG_FromInt((int)result); | |
11924 | return resultobj; | |
11925 | fail: | |
11926 | return NULL; | |
11927 | } | |
11928 | ||
11929 | ||
11930 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11931 | PyObject *obj; | |
11932 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11933 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11934 | Py_INCREF(obj); | |
11935 | return Py_BuildValue((char *)""); | |
11936 | } | |
11937 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11938 | PyObject *resultobj; | |
11939 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11940 | int arg2 ; | |
11941 | wxString *arg3 = 0 ; | |
11942 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11943 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11944 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11945 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11946 | long arg6 = (long) 0 ; | |
11947 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11948 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11949 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11950 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11951 | wxRadioButton *result; | |
11952 | bool temp3 = False ; | |
11953 | wxPoint temp4 ; | |
11954 | wxSize temp5 ; | |
11955 | bool temp8 = False ; | |
11956 | PyObject * obj0 = 0 ; | |
11957 | PyObject * obj1 = 0 ; | |
11958 | PyObject * obj2 = 0 ; | |
11959 | PyObject * obj3 = 0 ; | |
11960 | PyObject * obj4 = 0 ; | |
11961 | PyObject * obj5 = 0 ; | |
11962 | PyObject * obj6 = 0 ; | |
11963 | PyObject * obj7 = 0 ; | |
11964 | char *kwnames[] = { | |
11965 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11966 | }; | |
11967 | ||
11968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
11969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11971 | arg2 = (int) SWIG_AsInt(obj1); | |
11972 | if (PyErr_Occurred()) SWIG_fail; | |
11973 | { | |
11974 | arg3 = wxString_in_helper(obj2); | |
11975 | if (arg3 == NULL) SWIG_fail; | |
11976 | temp3 = True; | |
11977 | } | |
11978 | if (obj3) { | |
11979 | { | |
11980 | arg4 = &temp4; | |
11981 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11982 | } | |
11983 | } | |
11984 | if (obj4) { | |
11985 | { | |
11986 | arg5 = &temp5; | |
11987 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11988 | } | |
11989 | } | |
11990 | if (obj5) { | |
11991 | arg6 = (long) SWIG_AsLong(obj5); | |
11992 | if (PyErr_Occurred()) SWIG_fail; | |
11993 | } | |
11994 | if (obj6) { | |
11995 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
11996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11997 | SWIG_fail; | |
11998 | if (arg7 == NULL) { | |
11999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12000 | SWIG_fail; | |
12001 | } | |
12002 | } | |
12003 | if (obj7) { | |
12004 | { | |
12005 | arg8 = wxString_in_helper(obj7); | |
12006 | if (arg8 == NULL) SWIG_fail; | |
12007 | temp8 = True; | |
12008 | } | |
12009 | } | |
12010 | { | |
12011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12012 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12013 | ||
12014 | wxPyEndAllowThreads(__tstate); | |
12015 | if (PyErr_Occurred()) SWIG_fail; | |
12016 | } | |
12017 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12018 | { | |
12019 | if (temp3) | |
12020 | delete arg3; | |
12021 | } | |
12022 | { | |
12023 | if (temp8) | |
12024 | delete arg8; | |
12025 | } | |
12026 | return resultobj; | |
12027 | fail: | |
12028 | { | |
12029 | if (temp3) | |
12030 | delete arg3; | |
12031 | } | |
12032 | { | |
12033 | if (temp8) | |
12034 | delete arg8; | |
12035 | } | |
12036 | return NULL; | |
12037 | } | |
12038 | ||
12039 | ||
12040 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12041 | PyObject *resultobj; | |
12042 | wxRadioButton *result; | |
12043 | char *kwnames[] = { | |
12044 | NULL | |
12045 | }; | |
12046 | ||
12047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12048 | { | |
12049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12050 | result = (wxRadioButton *)new wxRadioButton(); | |
12051 | ||
12052 | wxPyEndAllowThreads(__tstate); | |
12053 | if (PyErr_Occurred()) SWIG_fail; | |
12054 | } | |
12055 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12056 | return resultobj; | |
12057 | fail: | |
12058 | return NULL; | |
12059 | } | |
12060 | ||
12061 | ||
12062 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12063 | PyObject *resultobj; | |
12064 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12065 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12066 | int arg3 ; | |
12067 | wxString *arg4 = 0 ; | |
12068 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
12069 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12070 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12071 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12072 | long arg7 = (long) 0 ; | |
12073 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12074 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12075 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12076 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12077 | bool result; | |
12078 | bool temp4 = False ; | |
12079 | wxPoint temp5 ; | |
12080 | wxSize temp6 ; | |
12081 | bool temp9 = False ; | |
12082 | PyObject * obj0 = 0 ; | |
12083 | PyObject * obj1 = 0 ; | |
12084 | PyObject * obj2 = 0 ; | |
12085 | PyObject * obj3 = 0 ; | |
12086 | PyObject * obj4 = 0 ; | |
12087 | PyObject * obj5 = 0 ; | |
12088 | PyObject * obj6 = 0 ; | |
12089 | PyObject * obj7 = 0 ; | |
12090 | PyObject * obj8 = 0 ; | |
12091 | char *kwnames[] = { | |
12092 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12093 | }; | |
12094 | ||
12095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
12096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12098 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12100 | arg3 = (int) SWIG_AsInt(obj2); | |
12101 | if (PyErr_Occurred()) SWIG_fail; | |
12102 | { | |
12103 | arg4 = wxString_in_helper(obj3); | |
12104 | if (arg4 == NULL) SWIG_fail; | |
12105 | temp4 = True; | |
12106 | } | |
12107 | if (obj4) { | |
12108 | { | |
12109 | arg5 = &temp5; | |
12110 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12111 | } | |
12112 | } | |
12113 | if (obj5) { | |
12114 | { | |
12115 | arg6 = &temp6; | |
12116 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12117 | } | |
12118 | } | |
12119 | if (obj6) { | |
12120 | arg7 = (long) SWIG_AsLong(obj6); | |
12121 | if (PyErr_Occurred()) SWIG_fail; | |
12122 | } | |
12123 | if (obj7) { | |
12124 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
12125 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12126 | SWIG_fail; | |
12127 | if (arg8 == NULL) { | |
12128 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12129 | SWIG_fail; | |
12130 | } | |
12131 | } | |
12132 | if (obj8) { | |
12133 | { | |
12134 | arg9 = wxString_in_helper(obj8); | |
12135 | if (arg9 == NULL) SWIG_fail; | |
12136 | temp9 = True; | |
12137 | } | |
12138 | } | |
12139 | { | |
12140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12141 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12142 | ||
12143 | wxPyEndAllowThreads(__tstate); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
12145 | } | |
12146 | { | |
12147 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12148 | } | |
12149 | { | |
12150 | if (temp4) | |
12151 | delete arg4; | |
12152 | } | |
12153 | { | |
12154 | if (temp9) | |
12155 | delete arg9; | |
12156 | } | |
12157 | return resultobj; | |
12158 | fail: | |
12159 | { | |
12160 | if (temp4) | |
12161 | delete arg4; | |
12162 | } | |
12163 | { | |
12164 | if (temp9) | |
12165 | delete arg9; | |
12166 | } | |
12167 | return NULL; | |
12168 | } | |
12169 | ||
12170 | ||
12171 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12172 | PyObject *resultobj; | |
12173 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12174 | bool result; | |
12175 | PyObject * obj0 = 0 ; | |
12176 | char *kwnames[] = { | |
12177 | (char *) "self", NULL | |
12178 | }; | |
12179 | ||
12180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
12181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12183 | { | |
12184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12185 | result = (bool)(arg1)->GetValue(); | |
12186 | ||
12187 | wxPyEndAllowThreads(__tstate); | |
12188 | if (PyErr_Occurred()) SWIG_fail; | |
12189 | } | |
12190 | { | |
12191 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12192 | } | |
12193 | return resultobj; | |
12194 | fail: | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj; | |
12201 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12202 | bool arg2 ; | |
12203 | PyObject * obj0 = 0 ; | |
12204 | PyObject * obj1 = 0 ; | |
12205 | char *kwnames[] = { | |
12206 | (char *) "self",(char *) "value", NULL | |
12207 | }; | |
12208 | ||
12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12212 | arg2 = (bool) SWIG_AsBool(obj1); | |
12213 | if (PyErr_Occurred()) SWIG_fail; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | (arg1)->SetValue(arg2); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | Py_INCREF(Py_None); resultobj = Py_None; | |
12222 | return resultobj; | |
12223 | fail: | |
12224 | return NULL; | |
12225 | } | |
12226 | ||
12227 | ||
12228 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
12229 | PyObject *obj; | |
12230 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12231 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12232 | Py_INCREF(obj); | |
12233 | return Py_BuildValue((char *)""); | |
12234 | } | |
12235 | static int _wrap_SliderNameStr_set(PyObject *_val) { | |
12236 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12237 | return 1; | |
12238 | } | |
12239 | ||
12240 | ||
12241 | static PyObject *_wrap_SliderNameStr_get() { | |
12242 | PyObject *pyobj; | |
12243 | ||
12244 | { | |
12245 | #if wxUSE_UNICODE | |
12246 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12247 | #else | |
12248 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12249 | #endif | |
12250 | } | |
12251 | return pyobj; | |
12252 | } | |
12253 | ||
12254 | ||
12255 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12256 | PyObject *resultobj; | |
12257 | wxWindow *arg1 = (wxWindow *) 0 ; | |
12258 | int arg2 ; | |
12259 | int arg3 ; | |
12260 | int arg4 ; | |
12261 | int arg5 ; | |
12262 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12263 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12264 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12265 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12266 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12267 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12268 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12269 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12270 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12271 | wxSlider *result; | |
12272 | wxPoint temp6 ; | |
12273 | wxSize temp7 ; | |
12274 | bool temp10 = False ; | |
12275 | PyObject * obj0 = 0 ; | |
12276 | PyObject * obj1 = 0 ; | |
12277 | PyObject * obj2 = 0 ; | |
12278 | PyObject * obj3 = 0 ; | |
12279 | PyObject * obj4 = 0 ; | |
12280 | PyObject * obj5 = 0 ; | |
12281 | PyObject * obj6 = 0 ; | |
12282 | PyObject * obj7 = 0 ; | |
12283 | PyObject * obj8 = 0 ; | |
12284 | PyObject * obj9 = 0 ; | |
12285 | char *kwnames[] = { | |
12286 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12287 | }; | |
12288 | ||
12289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
12290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
12291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12292 | arg2 = (int) SWIG_AsInt(obj1); | |
12293 | if (PyErr_Occurred()) SWIG_fail; | |
12294 | arg3 = (int) SWIG_AsInt(obj2); | |
12295 | if (PyErr_Occurred()) SWIG_fail; | |
12296 | arg4 = (int) SWIG_AsInt(obj3); | |
12297 | if (PyErr_Occurred()) SWIG_fail; | |
12298 | arg5 = (int) SWIG_AsInt(obj4); | |
12299 | if (PyErr_Occurred()) SWIG_fail; | |
12300 | if (obj5) { | |
12301 | { | |
12302 | arg6 = &temp6; | |
12303 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12304 | } | |
12305 | } | |
12306 | if (obj6) { | |
12307 | { | |
12308 | arg7 = &temp7; | |
12309 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12310 | } | |
12311 | } | |
12312 | if (obj7) { | |
12313 | arg8 = (long) SWIG_AsLong(obj7); | |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
12315 | } | |
12316 | if (obj8) { | |
12317 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12319 | SWIG_fail; | |
12320 | if (arg9 == NULL) { | |
12321 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12322 | SWIG_fail; | |
12323 | } | |
12324 | } | |
12325 | if (obj9) { | |
12326 | { | |
12327 | arg10 = wxString_in_helper(obj9); | |
12328 | if (arg10 == NULL) SWIG_fail; | |
12329 | temp10 = True; | |
12330 | } | |
12331 | } | |
12332 | { | |
12333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12334 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12335 | ||
12336 | wxPyEndAllowThreads(__tstate); | |
12337 | if (PyErr_Occurred()) SWIG_fail; | |
12338 | } | |
12339 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12340 | { | |
12341 | if (temp10) | |
12342 | delete arg10; | |
12343 | } | |
12344 | return resultobj; | |
12345 | fail: | |
12346 | { | |
12347 | if (temp10) | |
12348 | delete arg10; | |
12349 | } | |
12350 | return NULL; | |
12351 | } | |
12352 | ||
12353 | ||
12354 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12355 | PyObject *resultobj; | |
12356 | wxSlider *result; | |
12357 | char *kwnames[] = { | |
12358 | NULL | |
12359 | }; | |
12360 | ||
12361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12362 | { | |
12363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12364 | result = (wxSlider *)new wxSlider(); | |
12365 | ||
12366 | wxPyEndAllowThreads(__tstate); | |
12367 | if (PyErr_Occurred()) SWIG_fail; | |
12368 | } | |
12369 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12370 | return resultobj; | |
12371 | fail: | |
12372 | return NULL; | |
12373 | } | |
12374 | ||
12375 | ||
12376 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12377 | PyObject *resultobj; | |
12378 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12379 | wxWindow *arg2 = (wxWindow *) 0 ; | |
12380 | int arg3 ; | |
12381 | int arg4 ; | |
12382 | int arg5 ; | |
12383 | int arg6 ; | |
12384 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12385 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12386 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12387 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12388 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12389 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12390 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12391 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12392 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12393 | bool result; | |
12394 | wxPoint temp7 ; | |
12395 | wxSize temp8 ; | |
12396 | bool temp11 = False ; | |
12397 | PyObject * obj0 = 0 ; | |
12398 | PyObject * obj1 = 0 ; | |
12399 | PyObject * obj2 = 0 ; | |
12400 | PyObject * obj3 = 0 ; | |
12401 | PyObject * obj4 = 0 ; | |
12402 | PyObject * obj5 = 0 ; | |
12403 | PyObject * obj6 = 0 ; | |
12404 | PyObject * obj7 = 0 ; | |
12405 | PyObject * obj8 = 0 ; | |
12406 | PyObject * obj9 = 0 ; | |
12407 | PyObject * obj10 = 0 ; | |
12408 | char *kwnames[] = { | |
12409 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12410 | }; | |
12411 | ||
12412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
12413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12415 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12417 | arg3 = (int) SWIG_AsInt(obj2); | |
12418 | if (PyErr_Occurred()) SWIG_fail; | |
12419 | arg4 = (int) SWIG_AsInt(obj3); | |
12420 | if (PyErr_Occurred()) SWIG_fail; | |
12421 | arg5 = (int) SWIG_AsInt(obj4); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | arg6 = (int) SWIG_AsInt(obj5); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | if (obj6) { | |
12426 | { | |
12427 | arg7 = &temp7; | |
12428 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12429 | } | |
12430 | } | |
12431 | if (obj7) { | |
12432 | { | |
12433 | arg8 = &temp8; | |
12434 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12435 | } | |
12436 | } | |
12437 | if (obj8) { | |
12438 | arg9 = (long) SWIG_AsLong(obj8); | |
12439 | if (PyErr_Occurred()) SWIG_fail; | |
12440 | } | |
12441 | if (obj9) { | |
12442 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
12443 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12444 | SWIG_fail; | |
12445 | if (arg10 == NULL) { | |
12446 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12447 | SWIG_fail; | |
12448 | } | |
12449 | } | |
12450 | if (obj10) { | |
12451 | { | |
12452 | arg11 = wxString_in_helper(obj10); | |
12453 | if (arg11 == NULL) SWIG_fail; | |
12454 | temp11 = True; | |
12455 | } | |
12456 | } | |
12457 | { | |
12458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12459 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12460 | ||
12461 | wxPyEndAllowThreads(__tstate); | |
12462 | if (PyErr_Occurred()) SWIG_fail; | |
12463 | } | |
12464 | { | |
12465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12466 | } | |
12467 | { | |
12468 | if (temp11) | |
12469 | delete arg11; | |
12470 | } | |
12471 | return resultobj; | |
12472 | fail: | |
12473 | { | |
12474 | if (temp11) | |
12475 | delete arg11; | |
12476 | } | |
12477 | return NULL; | |
12478 | } | |
12479 | ||
12480 | ||
12481 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12482 | PyObject *resultobj; | |
12483 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12484 | int result; | |
12485 | PyObject * obj0 = 0 ; | |
12486 | char *kwnames[] = { | |
12487 | (char *) "self", NULL | |
12488 | }; | |
12489 | ||
12490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
12491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12493 | { | |
12494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12495 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12496 | ||
12497 | wxPyEndAllowThreads(__tstate); | |
12498 | if (PyErr_Occurred()) SWIG_fail; | |
12499 | } | |
12500 | resultobj = SWIG_FromInt((int)result); | |
12501 | return resultobj; | |
12502 | fail: | |
12503 | return NULL; | |
12504 | } | |
12505 | ||
12506 | ||
12507 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12508 | PyObject *resultobj; | |
12509 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12510 | int arg2 ; | |
12511 | PyObject * obj0 = 0 ; | |
12512 | PyObject * obj1 = 0 ; | |
12513 | char *kwnames[] = { | |
12514 | (char *) "self",(char *) "value", NULL | |
12515 | }; | |
12516 | ||
12517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12520 | arg2 = (int) SWIG_AsInt(obj1); | |
12521 | if (PyErr_Occurred()) SWIG_fail; | |
12522 | { | |
12523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12524 | (arg1)->SetValue(arg2); | |
12525 | ||
12526 | wxPyEndAllowThreads(__tstate); | |
12527 | if (PyErr_Occurred()) SWIG_fail; | |
12528 | } | |
12529 | Py_INCREF(Py_None); resultobj = Py_None; | |
12530 | return resultobj; | |
12531 | fail: | |
12532 | return NULL; | |
12533 | } | |
12534 | ||
12535 | ||
12536 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12537 | PyObject *resultobj; | |
12538 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12539 | int arg2 ; | |
12540 | int arg3 ; | |
12541 | PyObject * obj0 = 0 ; | |
12542 | PyObject * obj1 = 0 ; | |
12543 | PyObject * obj2 = 0 ; | |
12544 | char *kwnames[] = { | |
12545 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12546 | }; | |
12547 | ||
12548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12551 | arg2 = (int) SWIG_AsInt(obj1); | |
12552 | if (PyErr_Occurred()) SWIG_fail; | |
12553 | arg3 = (int) SWIG_AsInt(obj2); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | { | |
12556 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12557 | (arg1)->SetRange(arg2,arg3); | |
12558 | ||
12559 | wxPyEndAllowThreads(__tstate); | |
12560 | if (PyErr_Occurred()) SWIG_fail; | |
12561 | } | |
12562 | Py_INCREF(Py_None); resultobj = Py_None; | |
12563 | return resultobj; | |
12564 | fail: | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12570 | PyObject *resultobj; | |
12571 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12572 | int result; | |
12573 | PyObject * obj0 = 0 ; | |
12574 | char *kwnames[] = { | |
12575 | (char *) "self", NULL | |
12576 | }; | |
12577 | ||
12578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
12579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12581 | { | |
12582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12583 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12584 | ||
12585 | wxPyEndAllowThreads(__tstate); | |
12586 | if (PyErr_Occurred()) SWIG_fail; | |
12587 | } | |
12588 | resultobj = SWIG_FromInt((int)result); | |
12589 | return resultobj; | |
12590 | fail: | |
12591 | return NULL; | |
12592 | } | |
12593 | ||
12594 | ||
12595 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12596 | PyObject *resultobj; | |
12597 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12598 | int result; | |
12599 | PyObject * obj0 = 0 ; | |
12600 | char *kwnames[] = { | |
12601 | (char *) "self", NULL | |
12602 | }; | |
12603 | ||
12604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
12605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12607 | { | |
12608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12609 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12610 | ||
12611 | wxPyEndAllowThreads(__tstate); | |
12612 | if (PyErr_Occurred()) SWIG_fail; | |
12613 | } | |
12614 | resultobj = SWIG_FromInt((int)result); | |
12615 | return resultobj; | |
12616 | fail: | |
12617 | return NULL; | |
12618 | } | |
12619 | ||
12620 | ||
12621 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12622 | PyObject *resultobj; | |
12623 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12624 | int arg2 ; | |
12625 | PyObject * obj0 = 0 ; | |
12626 | PyObject * obj1 = 0 ; | |
12627 | char *kwnames[] = { | |
12628 | (char *) "self",(char *) "minValue", NULL | |
12629 | }; | |
12630 | ||
12631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
12632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12634 | arg2 = (int) SWIG_AsInt(obj1); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | { | |
12637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12638 | (arg1)->SetMin(arg2); | |
12639 | ||
12640 | wxPyEndAllowThreads(__tstate); | |
12641 | if (PyErr_Occurred()) SWIG_fail; | |
12642 | } | |
12643 | Py_INCREF(Py_None); resultobj = Py_None; | |
12644 | return resultobj; | |
12645 | fail: | |
12646 | return NULL; | |
12647 | } | |
12648 | ||
12649 | ||
12650 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12651 | PyObject *resultobj; | |
12652 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12653 | int arg2 ; | |
12654 | PyObject * obj0 = 0 ; | |
12655 | PyObject * obj1 = 0 ; | |
12656 | char *kwnames[] = { | |
12657 | (char *) "self",(char *) "maxValue", NULL | |
12658 | }; | |
12659 | ||
12660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
12661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12663 | arg2 = (int) SWIG_AsInt(obj1); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | { | |
12666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12667 | (arg1)->SetMax(arg2); | |
12668 | ||
12669 | wxPyEndAllowThreads(__tstate); | |
12670 | if (PyErr_Occurred()) SWIG_fail; | |
12671 | } | |
12672 | Py_INCREF(Py_None); resultobj = Py_None; | |
12673 | return resultobj; | |
12674 | fail: | |
12675 | return NULL; | |
12676 | } | |
12677 | ||
12678 | ||
12679 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12680 | PyObject *resultobj; | |
12681 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12682 | int arg2 ; | |
12683 | PyObject * obj0 = 0 ; | |
12684 | PyObject * obj1 = 0 ; | |
12685 | char *kwnames[] = { | |
12686 | (char *) "self",(char *) "lineSize", NULL | |
12687 | }; | |
12688 | ||
12689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
12690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12692 | arg2 = (int) SWIG_AsInt(obj1); | |
12693 | if (PyErr_Occurred()) SWIG_fail; | |
12694 | { | |
12695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12696 | (arg1)->SetLineSize(arg2); | |
12697 | ||
12698 | wxPyEndAllowThreads(__tstate); | |
12699 | if (PyErr_Occurred()) SWIG_fail; | |
12700 | } | |
12701 | Py_INCREF(Py_None); resultobj = Py_None; | |
12702 | return resultobj; | |
12703 | fail: | |
12704 | return NULL; | |
12705 | } | |
12706 | ||
12707 | ||
12708 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12709 | PyObject *resultobj; | |
12710 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12711 | int arg2 ; | |
12712 | PyObject * obj0 = 0 ; | |
12713 | PyObject * obj1 = 0 ; | |
12714 | char *kwnames[] = { | |
12715 | (char *) "self",(char *) "pageSize", NULL | |
12716 | }; | |
12717 | ||
12718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
12719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12721 | arg2 = (int) SWIG_AsInt(obj1); | |
12722 | if (PyErr_Occurred()) SWIG_fail; | |
12723 | { | |
12724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12725 | (arg1)->SetPageSize(arg2); | |
12726 | ||
12727 | wxPyEndAllowThreads(__tstate); | |
12728 | if (PyErr_Occurred()) SWIG_fail; | |
12729 | } | |
12730 | Py_INCREF(Py_None); resultobj = Py_None; | |
12731 | return resultobj; | |
12732 | fail: | |
12733 | return NULL; | |
12734 | } | |
12735 | ||
12736 | ||
12737 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12738 | PyObject *resultobj; | |
12739 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12740 | int result; | |
12741 | PyObject * obj0 = 0 ; | |
12742 | char *kwnames[] = { | |
12743 | (char *) "self", NULL | |
12744 | }; | |
12745 | ||
12746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
12747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12749 | { | |
12750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12751 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12752 | ||
12753 | wxPyEndAllowThreads(__tstate); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | resultobj = SWIG_FromInt((int)result); | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | return NULL; | |
12760 | } | |
12761 | ||
12762 | ||
12763 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12764 | PyObject *resultobj; | |
12765 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12766 | int result; | |
12767 | PyObject * obj0 = 0 ; | |
12768 | char *kwnames[] = { | |
12769 | (char *) "self", NULL | |
12770 | }; | |
12771 | ||
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
12773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12775 | { | |
12776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12777 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12778 | ||
12779 | wxPyEndAllowThreads(__tstate); | |
12780 | if (PyErr_Occurred()) SWIG_fail; | |
12781 | } | |
12782 | resultobj = SWIG_FromInt((int)result); | |
12783 | return resultobj; | |
12784 | fail: | |
12785 | return NULL; | |
12786 | } | |
12787 | ||
12788 | ||
12789 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12790 | PyObject *resultobj; | |
12791 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12792 | int arg2 ; | |
12793 | PyObject * obj0 = 0 ; | |
12794 | PyObject * obj1 = 0 ; | |
12795 | char *kwnames[] = { | |
12796 | (char *) "self",(char *) "lenPixels", NULL | |
12797 | }; | |
12798 | ||
12799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
12800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12802 | arg2 = (int) SWIG_AsInt(obj1); | |
12803 | if (PyErr_Occurred()) SWIG_fail; | |
12804 | { | |
12805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12806 | (arg1)->SetThumbLength(arg2); | |
12807 | ||
12808 | wxPyEndAllowThreads(__tstate); | |
12809 | if (PyErr_Occurred()) SWIG_fail; | |
12810 | } | |
12811 | Py_INCREF(Py_None); resultobj = Py_None; | |
12812 | return resultobj; | |
12813 | fail: | |
12814 | return NULL; | |
12815 | } | |
12816 | ||
12817 | ||
12818 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12819 | PyObject *resultobj; | |
12820 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12821 | int result; | |
12822 | PyObject * obj0 = 0 ; | |
12823 | char *kwnames[] = { | |
12824 | (char *) "self", NULL | |
12825 | }; | |
12826 | ||
12827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
12828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12830 | { | |
12831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12832 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12833 | ||
12834 | wxPyEndAllowThreads(__tstate); | |
12835 | if (PyErr_Occurred()) SWIG_fail; | |
12836 | } | |
12837 | resultobj = SWIG_FromInt((int)result); | |
12838 | return resultobj; | |
12839 | fail: | |
12840 | return NULL; | |
12841 | } | |
12842 | ||
12843 | ||
12844 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12845 | PyObject *resultobj; | |
12846 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12847 | int arg2 ; | |
12848 | int arg3 = (int) 1 ; | |
12849 | PyObject * obj0 = 0 ; | |
12850 | PyObject * obj1 = 0 ; | |
12851 | PyObject * obj2 = 0 ; | |
12852 | char *kwnames[] = { | |
12853 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12854 | }; | |
12855 | ||
12856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12859 | arg2 = (int) SWIG_AsInt(obj1); | |
12860 | if (PyErr_Occurred()) SWIG_fail; | |
12861 | if (obj2) { | |
12862 | arg3 = (int) SWIG_AsInt(obj2); | |
12863 | if (PyErr_Occurred()) SWIG_fail; | |
12864 | } | |
12865 | { | |
12866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12867 | (arg1)->SetTickFreq(arg2,arg3); | |
12868 | ||
12869 | wxPyEndAllowThreads(__tstate); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
12872 | Py_INCREF(Py_None); resultobj = Py_None; | |
12873 | return resultobj; | |
12874 | fail: | |
12875 | return NULL; | |
12876 | } | |
12877 | ||
12878 | ||
12879 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12880 | PyObject *resultobj; | |
12881 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12882 | int result; | |
12883 | PyObject * obj0 = 0 ; | |
12884 | char *kwnames[] = { | |
12885 | (char *) "self", NULL | |
12886 | }; | |
12887 | ||
12888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
12889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12891 | { | |
12892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12893 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12894 | ||
12895 | wxPyEndAllowThreads(__tstate); | |
12896 | if (PyErr_Occurred()) SWIG_fail; | |
12897 | } | |
12898 | resultobj = SWIG_FromInt((int)result); | |
12899 | return resultobj; | |
12900 | fail: | |
12901 | return NULL; | |
12902 | } | |
12903 | ||
12904 | ||
12905 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12906 | PyObject *resultobj; | |
12907 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12908 | PyObject * obj0 = 0 ; | |
12909 | char *kwnames[] = { | |
12910 | (char *) "self", NULL | |
12911 | }; | |
12912 | ||
12913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
12914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12916 | { | |
12917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12918 | (arg1)->ClearTicks(); | |
12919 | ||
12920 | wxPyEndAllowThreads(__tstate); | |
12921 | if (PyErr_Occurred()) SWIG_fail; | |
12922 | } | |
12923 | Py_INCREF(Py_None); resultobj = Py_None; | |
12924 | return resultobj; | |
12925 | fail: | |
12926 | return NULL; | |
12927 | } | |
12928 | ||
12929 | ||
12930 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12931 | PyObject *resultobj; | |
12932 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12933 | int arg2 ; | |
12934 | PyObject * obj0 = 0 ; | |
12935 | PyObject * obj1 = 0 ; | |
12936 | char *kwnames[] = { | |
12937 | (char *) "self",(char *) "tickPos", NULL | |
12938 | }; | |
12939 | ||
12940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
12941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12943 | arg2 = (int) SWIG_AsInt(obj1); | |
12944 | if (PyErr_Occurred()) SWIG_fail; | |
12945 | { | |
12946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12947 | (arg1)->SetTick(arg2); | |
12948 | ||
12949 | wxPyEndAllowThreads(__tstate); | |
12950 | if (PyErr_Occurred()) SWIG_fail; | |
12951 | } | |
12952 | Py_INCREF(Py_None); resultobj = Py_None; | |
12953 | return resultobj; | |
12954 | fail: | |
12955 | return NULL; | |
12956 | } | |
12957 | ||
12958 | ||
12959 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12960 | PyObject *resultobj; | |
12961 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12962 | PyObject * obj0 = 0 ; | |
12963 | char *kwnames[] = { | |
12964 | (char *) "self", NULL | |
12965 | }; | |
12966 | ||
12967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
12968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12970 | { | |
12971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12972 | (arg1)->ClearSel(); | |
12973 | ||
12974 | wxPyEndAllowThreads(__tstate); | |
12975 | if (PyErr_Occurred()) SWIG_fail; | |
12976 | } | |
12977 | Py_INCREF(Py_None); resultobj = Py_None; | |
12978 | return resultobj; | |
12979 | fail: | |
12980 | return NULL; | |
12981 | } | |
12982 | ||
12983 | ||
12984 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12985 | PyObject *resultobj; | |
12986 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12987 | int result; | |
12988 | PyObject * obj0 = 0 ; | |
12989 | char *kwnames[] = { | |
12990 | (char *) "self", NULL | |
12991 | }; | |
12992 | ||
12993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
12994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
12995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12996 | { | |
12997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12998 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12999 | ||
13000 | wxPyEndAllowThreads(__tstate); | |
13001 | if (PyErr_Occurred()) SWIG_fail; | |
13002 | } | |
13003 | resultobj = SWIG_FromInt((int)result); | |
13004 | return resultobj; | |
13005 | fail: | |
13006 | return NULL; | |
13007 | } | |
13008 | ||
13009 | ||
13010 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13011 | PyObject *resultobj; | |
13012 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13013 | int result; | |
13014 | PyObject * obj0 = 0 ; | |
13015 | char *kwnames[] = { | |
13016 | (char *) "self", NULL | |
13017 | }; | |
13018 | ||
13019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
13020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13022 | { | |
13023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13024 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13025 | ||
13026 | wxPyEndAllowThreads(__tstate); | |
13027 | if (PyErr_Occurred()) SWIG_fail; | |
13028 | } | |
13029 | resultobj = SWIG_FromInt((int)result); | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | return NULL; | |
13033 | } | |
13034 | ||
13035 | ||
13036 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13037 | PyObject *resultobj; | |
13038 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13039 | int arg2 ; | |
13040 | int arg3 ; | |
13041 | PyObject * obj0 = 0 ; | |
13042 | PyObject * obj1 = 0 ; | |
13043 | PyObject * obj2 = 0 ; | |
13044 | char *kwnames[] = { | |
13045 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13046 | }; | |
13047 | ||
13048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13051 | arg2 = (int) SWIG_AsInt(obj1); | |
13052 | if (PyErr_Occurred()) SWIG_fail; | |
13053 | arg3 = (int) SWIG_AsInt(obj2); | |
13054 | if (PyErr_Occurred()) SWIG_fail; | |
13055 | { | |
13056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13057 | (arg1)->SetSelection(arg2,arg3); | |
13058 | ||
13059 | wxPyEndAllowThreads(__tstate); | |
13060 | if (PyErr_Occurred()) SWIG_fail; | |
13061 | } | |
13062 | Py_INCREF(Py_None); resultobj = Py_None; | |
13063 | return resultobj; | |
13064 | fail: | |
13065 | return NULL; | |
13066 | } | |
13067 | ||
13068 | ||
13069 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
13070 | PyObject *obj; | |
13071 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13072 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13073 | Py_INCREF(obj); | |
13074 | return Py_BuildValue((char *)""); | |
13075 | } | |
13076 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { | |
13077 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13078 | return 1; | |
13079 | } | |
13080 | ||
13081 | ||
13082 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13083 | PyObject *pyobj; | |
13084 | ||
13085 | { | |
13086 | #if wxUSE_UNICODE | |
13087 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13088 | #else | |
13089 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13090 | #endif | |
13091 | } | |
13092 | return pyobj; | |
13093 | } | |
13094 | ||
13095 | ||
13096 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13097 | PyObject *resultobj; | |
13098 | wxWindow *arg1 = (wxWindow *) 0 ; | |
13099 | int arg2 ; | |
13100 | wxString *arg3 = 0 ; | |
13101 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13102 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13103 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13104 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13105 | long arg6 = (long) 0 ; | |
13106 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13107 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13108 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13109 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13110 | wxToggleButton *result; | |
13111 | bool temp3 = False ; | |
13112 | wxPoint temp4 ; | |
13113 | wxSize temp5 ; | |
13114 | bool temp8 = False ; | |
13115 | PyObject * obj0 = 0 ; | |
13116 | PyObject * obj1 = 0 ; | |
13117 | PyObject * obj2 = 0 ; | |
13118 | PyObject * obj3 = 0 ; | |
13119 | PyObject * obj4 = 0 ; | |
13120 | PyObject * obj5 = 0 ; | |
13121 | PyObject * obj6 = 0 ; | |
13122 | PyObject * obj7 = 0 ; | |
13123 | char *kwnames[] = { | |
13124 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13125 | }; | |
13126 | ||
13127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
13128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
13129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13130 | arg2 = (int) SWIG_AsInt(obj1); | |
13131 | if (PyErr_Occurred()) SWIG_fail; | |
13132 | { | |
13133 | arg3 = wxString_in_helper(obj2); | |
13134 | if (arg3 == NULL) SWIG_fail; | |
13135 | temp3 = True; | |
13136 | } | |
13137 | if (obj3) { | |
13138 | { | |
13139 | arg4 = &temp4; | |
13140 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13141 | } | |
13142 | } | |
13143 | if (obj4) { | |
13144 | { | |
13145 | arg5 = &temp5; | |
13146 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13147 | } | |
13148 | } | |
13149 | if (obj5) { | |
13150 | arg6 = (long) SWIG_AsLong(obj5); | |
13151 | if (PyErr_Occurred()) SWIG_fail; | |
13152 | } | |
13153 | if (obj6) { | |
13154 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
13155 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13156 | SWIG_fail; | |
13157 | if (arg7 == NULL) { | |
13158 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13159 | SWIG_fail; | |
13160 | } | |
13161 | } | |
13162 | if (obj7) { | |
13163 | { | |
13164 | arg8 = wxString_in_helper(obj7); | |
13165 | if (arg8 == NULL) SWIG_fail; | |
13166 | temp8 = True; | |
13167 | } | |
13168 | } | |
13169 | { | |
13170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13171 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13172 | ||
13173 | wxPyEndAllowThreads(__tstate); | |
13174 | if (PyErr_Occurred()) SWIG_fail; | |
13175 | } | |
13176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13177 | { | |
13178 | if (temp3) | |
13179 | delete arg3; | |
13180 | } | |
13181 | { | |
13182 | if (temp8) | |
13183 | delete arg8; | |
13184 | } | |
13185 | return resultobj; | |
13186 | fail: | |
13187 | { | |
13188 | if (temp3) | |
13189 | delete arg3; | |
13190 | } | |
13191 | { | |
13192 | if (temp8) | |
13193 | delete arg8; | |
13194 | } | |
13195 | return NULL; | |
13196 | } | |
13197 | ||
13198 | ||
13199 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13200 | PyObject *resultobj; | |
13201 | wxToggleButton *result; | |
13202 | char *kwnames[] = { | |
13203 | NULL | |
13204 | }; | |
13205 | ||
13206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13207 | { | |
13208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13209 | result = (wxToggleButton *)new wxToggleButton(); | |
13210 | ||
13211 | wxPyEndAllowThreads(__tstate); | |
13212 | if (PyErr_Occurred()) SWIG_fail; | |
13213 | } | |
13214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13215 | return resultobj; | |
13216 | fail: | |
13217 | return NULL; | |
13218 | } | |
13219 | ||
13220 | ||
13221 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13222 | PyObject *resultobj; | |
13223 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13224 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13225 | int arg3 ; | |
13226 | wxString *arg4 = 0 ; | |
13227 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13228 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13229 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13230 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13231 | long arg7 = (long) 0 ; | |
13232 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13233 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13234 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13235 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13236 | bool result; | |
13237 | bool temp4 = False ; | |
13238 | wxPoint temp5 ; | |
13239 | wxSize temp6 ; | |
13240 | bool temp9 = False ; | |
13241 | PyObject * obj0 = 0 ; | |
13242 | PyObject * obj1 = 0 ; | |
13243 | PyObject * obj2 = 0 ; | |
13244 | PyObject * obj3 = 0 ; | |
13245 | PyObject * obj4 = 0 ; | |
13246 | PyObject * obj5 = 0 ; | |
13247 | PyObject * obj6 = 0 ; | |
13248 | PyObject * obj7 = 0 ; | |
13249 | PyObject * obj8 = 0 ; | |
13250 | char *kwnames[] = { | |
13251 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13252 | }; | |
13253 | ||
13254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
13255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13259 | arg3 = (int) SWIG_AsInt(obj2); | |
13260 | if (PyErr_Occurred()) SWIG_fail; | |
13261 | { | |
13262 | arg4 = wxString_in_helper(obj3); | |
13263 | if (arg4 == NULL) SWIG_fail; | |
13264 | temp4 = True; | |
13265 | } | |
13266 | if (obj4) { | |
13267 | { | |
13268 | arg5 = &temp5; | |
13269 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13270 | } | |
13271 | } | |
13272 | if (obj5) { | |
13273 | { | |
13274 | arg6 = &temp6; | |
13275 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13276 | } | |
13277 | } | |
13278 | if (obj6) { | |
13279 | arg7 = (long) SWIG_AsLong(obj6); | |
13280 | if (PyErr_Occurred()) SWIG_fail; | |
13281 | } | |
13282 | if (obj7) { | |
13283 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13285 | SWIG_fail; | |
13286 | if (arg8 == NULL) { | |
13287 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13288 | SWIG_fail; | |
13289 | } | |
13290 | } | |
13291 | if (obj8) { | |
13292 | { | |
13293 | arg9 = wxString_in_helper(obj8); | |
13294 | if (arg9 == NULL) SWIG_fail; | |
13295 | temp9 = True; | |
13296 | } | |
13297 | } | |
13298 | { | |
13299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13300 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13301 | ||
13302 | wxPyEndAllowThreads(__tstate); | |
13303 | if (PyErr_Occurred()) SWIG_fail; | |
13304 | } | |
13305 | { | |
13306 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13307 | } | |
13308 | { | |
13309 | if (temp4) | |
13310 | delete arg4; | |
13311 | } | |
13312 | { | |
13313 | if (temp9) | |
13314 | delete arg9; | |
13315 | } | |
13316 | return resultobj; | |
13317 | fail: | |
13318 | { | |
13319 | if (temp4) | |
13320 | delete arg4; | |
13321 | } | |
13322 | { | |
13323 | if (temp9) | |
13324 | delete arg9; | |
13325 | } | |
13326 | return NULL; | |
13327 | } | |
13328 | ||
13329 | ||
13330 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13331 | PyObject *resultobj; | |
13332 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13333 | bool arg2 ; | |
13334 | PyObject * obj0 = 0 ; | |
13335 | PyObject * obj1 = 0 ; | |
13336 | char *kwnames[] = { | |
13337 | (char *) "self",(char *) "value", NULL | |
13338 | }; | |
13339 | ||
13340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13343 | arg2 = (bool) SWIG_AsBool(obj1); | |
13344 | if (PyErr_Occurred()) SWIG_fail; | |
13345 | { | |
13346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13347 | (arg1)->SetValue(arg2); | |
13348 | ||
13349 | wxPyEndAllowThreads(__tstate); | |
13350 | if (PyErr_Occurred()) SWIG_fail; | |
13351 | } | |
13352 | Py_INCREF(Py_None); resultobj = Py_None; | |
13353 | return resultobj; | |
13354 | fail: | |
13355 | return NULL; | |
13356 | } | |
13357 | ||
13358 | ||
13359 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13360 | PyObject *resultobj; | |
13361 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13362 | bool result; | |
13363 | PyObject * obj0 = 0 ; | |
13364 | char *kwnames[] = { | |
13365 | (char *) "self", NULL | |
13366 | }; | |
13367 | ||
13368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
13369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13371 | { | |
13372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13373 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13374 | ||
13375 | wxPyEndAllowThreads(__tstate); | |
13376 | if (PyErr_Occurred()) SWIG_fail; | |
13377 | } | |
13378 | { | |
13379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13380 | } | |
13381 | return resultobj; | |
13382 | fail: | |
13383 | return NULL; | |
13384 | } | |
13385 | ||
13386 | ||
13387 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13388 | PyObject *resultobj; | |
13389 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13390 | wxString *arg2 = 0 ; | |
13391 | bool temp2 = False ; | |
13392 | PyObject * obj0 = 0 ; | |
13393 | PyObject * obj1 = 0 ; | |
13394 | char *kwnames[] = { | |
13395 | (char *) "self",(char *) "label", NULL | |
13396 | }; | |
13397 | ||
13398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
13399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13401 | { | |
13402 | arg2 = wxString_in_helper(obj1); | |
13403 | if (arg2 == NULL) SWIG_fail; | |
13404 | temp2 = True; | |
13405 | } | |
13406 | { | |
13407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13408 | (arg1)->SetLabel((wxString const &)*arg2); | |
13409 | ||
13410 | wxPyEndAllowThreads(__tstate); | |
13411 | if (PyErr_Occurred()) SWIG_fail; | |
13412 | } | |
13413 | Py_INCREF(Py_None); resultobj = Py_None; | |
13414 | { | |
13415 | if (temp2) | |
13416 | delete arg2; | |
13417 | } | |
13418 | return resultobj; | |
13419 | fail: | |
13420 | { | |
13421 | if (temp2) | |
13422 | delete arg2; | |
13423 | } | |
13424 | return NULL; | |
13425 | } | |
13426 | ||
13427 | ||
13428 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13429 | PyObject *obj; | |
13430 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13431 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13432 | Py_INCREF(obj); | |
13433 | return Py_BuildValue((char *)""); | |
13434 | } | |
13435 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { | |
13436 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
13437 | return 1; | |
13438 | } | |
13439 | ||
13440 | ||
13441 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13442 | PyObject *pyobj; | |
13443 | ||
13444 | { | |
13445 | #if wxUSE_UNICODE | |
13446 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13447 | #else | |
13448 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13449 | #endif | |
13450 | } | |
13451 | return pyobj; | |
13452 | } | |
13453 | ||
13454 | ||
13455 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13456 | PyObject *resultobj; | |
13457 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13458 | size_t result; | |
13459 | PyObject * obj0 = 0 ; | |
13460 | char *kwnames[] = { | |
13461 | (char *) "self", NULL | |
13462 | }; | |
13463 | ||
13464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
13465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13467 | { | |
13468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13469 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13470 | ||
13471 | wxPyEndAllowThreads(__tstate); | |
13472 | if (PyErr_Occurred()) SWIG_fail; | |
13473 | } | |
13474 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
13475 | return resultobj; | |
13476 | fail: | |
13477 | return NULL; | |
13478 | } | |
13479 | ||
13480 | ||
13481 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13482 | PyObject *resultobj; | |
13483 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13484 | size_t arg2 ; | |
13485 | wxWindow *result; | |
13486 | PyObject * obj0 = 0 ; | |
13487 | PyObject * obj1 = 0 ; | |
13488 | char *kwnames[] = { | |
13489 | (char *) "self",(char *) "n", NULL | |
13490 | }; | |
13491 | ||
13492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
13493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13495 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13496 | if (PyErr_Occurred()) SWIG_fail; | |
13497 | { | |
13498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13499 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13500 | ||
13501 | wxPyEndAllowThreads(__tstate); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
13503 | } | |
13504 | { | |
13505 | resultobj = wxPyMake_wxObject(result); | |
13506 | } | |
13507 | return resultobj; | |
13508 | fail: | |
13509 | return NULL; | |
13510 | } | |
13511 | ||
13512 | ||
13513 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13514 | PyObject *resultobj; | |
13515 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13516 | int result; | |
13517 | PyObject * obj0 = 0 ; | |
13518 | char *kwnames[] = { | |
13519 | (char *) "self", NULL | |
13520 | }; | |
13521 | ||
13522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
13523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13525 | { | |
13526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13527 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13528 | ||
13529 | wxPyEndAllowThreads(__tstate); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
13531 | } | |
13532 | resultobj = SWIG_FromInt((int)result); | |
13533 | return resultobj; | |
13534 | fail: | |
13535 | return NULL; | |
13536 | } | |
13537 | ||
13538 | ||
13539 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13540 | PyObject *resultobj; | |
13541 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13542 | size_t arg2 ; | |
13543 | wxString *arg3 = 0 ; | |
13544 | bool result; | |
13545 | bool temp3 = False ; | |
13546 | PyObject * obj0 = 0 ; | |
13547 | PyObject * obj1 = 0 ; | |
13548 | PyObject * obj2 = 0 ; | |
13549 | char *kwnames[] = { | |
13550 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13551 | }; | |
13552 | ||
13553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13556 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13557 | if (PyErr_Occurred()) SWIG_fail; | |
13558 | { | |
13559 | arg3 = wxString_in_helper(obj2); | |
13560 | if (arg3 == NULL) SWIG_fail; | |
13561 | temp3 = True; | |
13562 | } | |
13563 | { | |
13564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13565 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13566 | ||
13567 | wxPyEndAllowThreads(__tstate); | |
13568 | if (PyErr_Occurred()) SWIG_fail; | |
13569 | } | |
13570 | { | |
13571 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13572 | } | |
13573 | { | |
13574 | if (temp3) | |
13575 | delete arg3; | |
13576 | } | |
13577 | return resultobj; | |
13578 | fail: | |
13579 | { | |
13580 | if (temp3) | |
13581 | delete arg3; | |
13582 | } | |
13583 | return NULL; | |
13584 | } | |
13585 | ||
13586 | ||
13587 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13588 | PyObject *resultobj; | |
13589 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13590 | size_t arg2 ; | |
13591 | wxString result; | |
13592 | PyObject * obj0 = 0 ; | |
13593 | PyObject * obj1 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self",(char *) "n", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13602 | if (PyErr_Occurred()) SWIG_fail; | |
13603 | { | |
13604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13605 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13606 | ||
13607 | wxPyEndAllowThreads(__tstate); | |
13608 | if (PyErr_Occurred()) SWIG_fail; | |
13609 | } | |
13610 | { | |
13611 | #if wxUSE_UNICODE | |
13612 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13613 | #else | |
13614 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13615 | #endif | |
13616 | } | |
13617 | return resultobj; | |
13618 | fail: | |
13619 | return NULL; | |
13620 | } | |
13621 | ||
13622 | ||
13623 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13624 | PyObject *resultobj; | |
13625 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13626 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13627 | PyObject * obj0 = 0 ; | |
13628 | PyObject * obj1 = 0 ; | |
13629 | char *kwnames[] = { | |
13630 | (char *) "self",(char *) "imageList", NULL | |
13631 | }; | |
13632 | ||
13633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
13634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13636 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | (arg1)->SetImageList(arg2); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
13652 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13653 | PyObject *resultobj; | |
13654 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13655 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13656 | PyObject * obj0 = 0 ; | |
13657 | PyObject * obj1 = 0 ; | |
13658 | char *kwnames[] = { | |
13659 | (char *) "self",(char *) "imageList", NULL | |
13660 | }; | |
13661 | ||
13662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
13663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13666 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
13667 | { | |
13668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13669 | (arg1)->AssignImageList(arg2); | |
13670 | ||
13671 | wxPyEndAllowThreads(__tstate); | |
13672 | if (PyErr_Occurred()) SWIG_fail; | |
13673 | } | |
13674 | Py_INCREF(Py_None); resultobj = Py_None; | |
13675 | return resultobj; | |
13676 | fail: | |
13677 | return NULL; | |
13678 | } | |
13679 | ||
13680 | ||
13681 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13682 | PyObject *resultobj; | |
13683 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13684 | wxImageList *result; | |
13685 | PyObject * obj0 = 0 ; | |
13686 | char *kwnames[] = { | |
13687 | (char *) "self", NULL | |
13688 | }; | |
13689 | ||
13690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
13691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13693 | { | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13696 | ||
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | { | |
13701 | resultobj = wxPyMake_wxObject(result); | |
13702 | } | |
13703 | return resultobj; | |
13704 | fail: | |
13705 | return NULL; | |
13706 | } | |
13707 | ||
13708 | ||
13709 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13710 | PyObject *resultobj; | |
13711 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13712 | size_t arg2 ; | |
13713 | int result; | |
13714 | PyObject * obj0 = 0 ; | |
13715 | PyObject * obj1 = 0 ; | |
13716 | char *kwnames[] = { | |
13717 | (char *) "self",(char *) "n", NULL | |
13718 | }; | |
13719 | ||
13720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
13721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13723 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13724 | if (PyErr_Occurred()) SWIG_fail; | |
13725 | { | |
13726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13727 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13728 | ||
13729 | wxPyEndAllowThreads(__tstate); | |
13730 | if (PyErr_Occurred()) SWIG_fail; | |
13731 | } | |
13732 | resultobj = SWIG_FromInt((int)result); | |
13733 | return resultobj; | |
13734 | fail: | |
13735 | return NULL; | |
13736 | } | |
13737 | ||
13738 | ||
13739 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13740 | PyObject *resultobj; | |
13741 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13742 | size_t arg2 ; | |
13743 | int arg3 ; | |
13744 | bool result; | |
13745 | PyObject * obj0 = 0 ; | |
13746 | PyObject * obj1 = 0 ; | |
13747 | PyObject * obj2 = 0 ; | |
13748 | char *kwnames[] = { | |
13749 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13750 | }; | |
13751 | ||
13752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13755 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13756 | if (PyErr_Occurred()) SWIG_fail; | |
13757 | arg3 = (int) SWIG_AsInt(obj2); | |
13758 | if (PyErr_Occurred()) SWIG_fail; | |
13759 | { | |
13760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13761 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13762 | ||
13763 | wxPyEndAllowThreads(__tstate); | |
13764 | if (PyErr_Occurred()) SWIG_fail; | |
13765 | } | |
13766 | { | |
13767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13768 | } | |
13769 | return resultobj; | |
13770 | fail: | |
13771 | return NULL; | |
13772 | } | |
13773 | ||
13774 | ||
13775 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13776 | PyObject *resultobj; | |
13777 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13778 | wxSize *arg2 = 0 ; | |
13779 | wxSize temp2 ; | |
13780 | PyObject * obj0 = 0 ; | |
13781 | PyObject * obj1 = 0 ; | |
13782 | char *kwnames[] = { | |
13783 | (char *) "self",(char *) "size", NULL | |
13784 | }; | |
13785 | ||
13786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13789 | { | |
13790 | arg2 = &temp2; | |
13791 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13792 | } | |
13793 | { | |
13794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13795 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13796 | ||
13797 | wxPyEndAllowThreads(__tstate); | |
13798 | if (PyErr_Occurred()) SWIG_fail; | |
13799 | } | |
13800 | Py_INCREF(Py_None); resultobj = Py_None; | |
13801 | return resultobj; | |
13802 | fail: | |
13803 | return NULL; | |
13804 | } | |
13805 | ||
13806 | ||
13807 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13808 | PyObject *resultobj; | |
13809 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13810 | wxSize *arg2 = 0 ; | |
13811 | wxSize result; | |
13812 | wxSize temp2 ; | |
13813 | PyObject * obj0 = 0 ; | |
13814 | PyObject * obj1 = 0 ; | |
13815 | char *kwnames[] = { | |
13816 | (char *) "self",(char *) "sizePage", NULL | |
13817 | }; | |
13818 | ||
13819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
13820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13822 | { | |
13823 | arg2 = &temp2; | |
13824 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13825 | } | |
13826 | { | |
13827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13828 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13829 | ||
13830 | wxPyEndAllowThreads(__tstate); | |
13831 | if (PyErr_Occurred()) SWIG_fail; | |
13832 | } | |
13833 | { | |
13834 | wxSize * resultptr; | |
13835 | resultptr = new wxSize((wxSize &) result); | |
13836 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
13837 | } | |
13838 | return resultobj; | |
13839 | fail: | |
13840 | return NULL; | |
13841 | } | |
13842 | ||
13843 | ||
13844 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13845 | PyObject *resultobj; | |
13846 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13847 | size_t arg2 ; | |
13848 | bool result; | |
13849 | PyObject * obj0 = 0 ; | |
13850 | PyObject * obj1 = 0 ; | |
13851 | char *kwnames[] = { | |
13852 | (char *) "self",(char *) "n", NULL | |
13853 | }; | |
13854 | ||
13855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
13856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13858 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13859 | if (PyErr_Occurred()) SWIG_fail; | |
13860 | { | |
13861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13862 | result = (bool)(arg1)->DeletePage(arg2); | |
13863 | ||
13864 | wxPyEndAllowThreads(__tstate); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | } | |
13867 | { | |
13868 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13869 | } | |
13870 | return resultobj; | |
13871 | fail: | |
13872 | return NULL; | |
13873 | } | |
13874 | ||
13875 | ||
13876 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13877 | PyObject *resultobj; | |
13878 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13879 | size_t arg2 ; | |
13880 | bool result; | |
13881 | PyObject * obj0 = 0 ; | |
13882 | PyObject * obj1 = 0 ; | |
13883 | char *kwnames[] = { | |
13884 | (char *) "self",(char *) "n", NULL | |
13885 | }; | |
13886 | ||
13887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
13888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13890 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13891 | if (PyErr_Occurred()) SWIG_fail; | |
13892 | { | |
13893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13894 | result = (bool)(arg1)->RemovePage(arg2); | |
13895 | ||
13896 | wxPyEndAllowThreads(__tstate); | |
13897 | if (PyErr_Occurred()) SWIG_fail; | |
13898 | } | |
13899 | { | |
13900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13901 | } | |
13902 | return resultobj; | |
13903 | fail: | |
13904 | return NULL; | |
13905 | } | |
13906 | ||
13907 | ||
13908 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13909 | PyObject *resultobj; | |
13910 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13911 | bool result; | |
13912 | PyObject * obj0 = 0 ; | |
13913 | char *kwnames[] = { | |
13914 | (char *) "self", NULL | |
13915 | }; | |
13916 | ||
13917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
13918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13920 | { | |
13921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13922 | result = (bool)(arg1)->DeleteAllPages(); | |
13923 | ||
13924 | wxPyEndAllowThreads(__tstate); | |
13925 | if (PyErr_Occurred()) SWIG_fail; | |
13926 | } | |
13927 | { | |
13928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13929 | } | |
13930 | return resultobj; | |
13931 | fail: | |
13932 | return NULL; | |
13933 | } | |
13934 | ||
13935 | ||
13936 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13937 | PyObject *resultobj; | |
13938 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13939 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13940 | wxString *arg3 = 0 ; | |
13941 | bool arg4 = (bool) False ; | |
13942 | int arg5 = (int) -1 ; | |
13943 | bool result; | |
13944 | bool temp3 = False ; | |
13945 | PyObject * obj0 = 0 ; | |
13946 | PyObject * obj1 = 0 ; | |
13947 | PyObject * obj2 = 0 ; | |
13948 | PyObject * obj3 = 0 ; | |
13949 | PyObject * obj4 = 0 ; | |
13950 | char *kwnames[] = { | |
13951 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13952 | }; | |
13953 | ||
13954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
13955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
13956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13957 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13959 | { | |
13960 | arg3 = wxString_in_helper(obj2); | |
13961 | if (arg3 == NULL) SWIG_fail; | |
13962 | temp3 = True; | |
13963 | } | |
13964 | if (obj3) { | |
13965 | arg4 = (bool) SWIG_AsBool(obj3); | |
13966 | if (PyErr_Occurred()) SWIG_fail; | |
13967 | } | |
13968 | if (obj4) { | |
13969 | arg5 = (int) SWIG_AsInt(obj4); | |
13970 | if (PyErr_Occurred()) SWIG_fail; | |
13971 | } | |
13972 | { | |
13973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13974 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13975 | ||
13976 | wxPyEndAllowThreads(__tstate); | |
13977 | if (PyErr_Occurred()) SWIG_fail; | |
13978 | } | |
13979 | { | |
13980 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13981 | } | |
13982 | { | |
13983 | if (temp3) | |
13984 | delete arg3; | |
13985 | } | |
13986 | return resultobj; | |
13987 | fail: | |
13988 | { | |
13989 | if (temp3) | |
13990 | delete arg3; | |
13991 | } | |
13992 | return NULL; | |
13993 | } | |
13994 | ||
13995 | ||
13996 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13997 | PyObject *resultobj; | |
13998 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13999 | size_t arg2 ; | |
14000 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14001 | wxString *arg4 = 0 ; | |
14002 | bool arg5 = (bool) False ; | |
14003 | int arg6 = (int) -1 ; | |
14004 | bool result; | |
14005 | bool temp4 = False ; | |
14006 | PyObject * obj0 = 0 ; | |
14007 | PyObject * obj1 = 0 ; | |
14008 | PyObject * obj2 = 0 ; | |
14009 | PyObject * obj3 = 0 ; | |
14010 | PyObject * obj4 = 0 ; | |
14011 | PyObject * obj5 = 0 ; | |
14012 | char *kwnames[] = { | |
14013 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14014 | }; | |
14015 | ||
14016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14019 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14020 | if (PyErr_Occurred()) SWIG_fail; | |
14021 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14023 | { | |
14024 | arg4 = wxString_in_helper(obj3); | |
14025 | if (arg4 == NULL) SWIG_fail; | |
14026 | temp4 = True; | |
14027 | } | |
14028 | if (obj4) { | |
14029 | arg5 = (bool) SWIG_AsBool(obj4); | |
14030 | if (PyErr_Occurred()) SWIG_fail; | |
14031 | } | |
14032 | if (obj5) { | |
14033 | arg6 = (int) SWIG_AsInt(obj5); | |
14034 | if (PyErr_Occurred()) SWIG_fail; | |
14035 | } | |
14036 | { | |
14037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14038 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14039 | ||
14040 | wxPyEndAllowThreads(__tstate); | |
14041 | if (PyErr_Occurred()) SWIG_fail; | |
14042 | } | |
14043 | { | |
14044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14045 | } | |
14046 | { | |
14047 | if (temp4) | |
14048 | delete arg4; | |
14049 | } | |
14050 | return resultobj; | |
14051 | fail: | |
14052 | { | |
14053 | if (temp4) | |
14054 | delete arg4; | |
14055 | } | |
14056 | return NULL; | |
14057 | } | |
14058 | ||
14059 | ||
14060 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14061 | PyObject *resultobj; | |
14062 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14063 | size_t arg2 ; | |
14064 | int result; | |
14065 | PyObject * obj0 = 0 ; | |
14066 | PyObject * obj1 = 0 ; | |
14067 | char *kwnames[] = { | |
14068 | (char *) "self",(char *) "n", NULL | |
14069 | }; | |
14070 | ||
14071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14074 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14075 | if (PyErr_Occurred()) SWIG_fail; | |
14076 | { | |
14077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14078 | result = (int)(arg1)->SetSelection(arg2); | |
14079 | ||
14080 | wxPyEndAllowThreads(__tstate); | |
14081 | if (PyErr_Occurred()) SWIG_fail; | |
14082 | } | |
14083 | resultobj = SWIG_FromInt((int)result); | |
14084 | return resultobj; | |
14085 | fail: | |
14086 | return NULL; | |
14087 | } | |
14088 | ||
14089 | ||
14090 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14091 | PyObject *resultobj; | |
14092 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14093 | bool arg2 = (bool) True ; | |
14094 | PyObject * obj0 = 0 ; | |
14095 | PyObject * obj1 = 0 ; | |
14096 | char *kwnames[] = { | |
14097 | (char *) "self",(char *) "forward", NULL | |
14098 | }; | |
14099 | ||
14100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
14101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14103 | if (obj1) { | |
14104 | arg2 = (bool) SWIG_AsBool(obj1); | |
14105 | if (PyErr_Occurred()) SWIG_fail; | |
14106 | } | |
14107 | { | |
14108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14109 | (arg1)->AdvanceSelection(arg2); | |
14110 | ||
14111 | wxPyEndAllowThreads(__tstate); | |
14112 | if (PyErr_Occurred()) SWIG_fail; | |
14113 | } | |
14114 | Py_INCREF(Py_None); resultobj = Py_None; | |
14115 | return resultobj; | |
14116 | fail: | |
14117 | return NULL; | |
14118 | } | |
14119 | ||
14120 | ||
14121 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
14122 | PyObject *obj; | |
14123 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14124 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14125 | Py_INCREF(obj); | |
14126 | return Py_BuildValue((char *)""); | |
14127 | } | |
14128 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14129 | PyObject *resultobj; | |
14130 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14131 | int arg2 = (int) 0 ; | |
14132 | int arg3 = (int) -1 ; | |
14133 | int arg4 = (int) -1 ; | |
14134 | wxBookCtrlEvent *result; | |
14135 | PyObject * obj0 = 0 ; | |
14136 | PyObject * obj1 = 0 ; | |
14137 | PyObject * obj2 = 0 ; | |
14138 | PyObject * obj3 = 0 ; | |
14139 | char *kwnames[] = { | |
14140 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14141 | }; | |
14142 | ||
14143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14144 | if (obj0) { | |
14145 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14146 | if (PyErr_Occurred()) SWIG_fail; | |
14147 | } | |
14148 | if (obj1) { | |
14149 | arg2 = (int) SWIG_AsInt(obj1); | |
14150 | if (PyErr_Occurred()) SWIG_fail; | |
14151 | } | |
14152 | if (obj2) { | |
14153 | arg3 = (int) SWIG_AsInt(obj2); | |
14154 | if (PyErr_Occurred()) SWIG_fail; | |
14155 | } | |
14156 | if (obj3) { | |
14157 | arg4 = (int) SWIG_AsInt(obj3); | |
14158 | if (PyErr_Occurred()) SWIG_fail; | |
14159 | } | |
14160 | { | |
14161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14162 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14163 | ||
14164 | wxPyEndAllowThreads(__tstate); | |
14165 | if (PyErr_Occurred()) SWIG_fail; | |
14166 | } | |
14167 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
14168 | return resultobj; | |
14169 | fail: | |
14170 | return NULL; | |
14171 | } | |
14172 | ||
14173 | ||
14174 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14175 | PyObject *resultobj; | |
14176 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14177 | int result; | |
14178 | PyObject * obj0 = 0 ; | |
14179 | char *kwnames[] = { | |
14180 | (char *) "self", NULL | |
14181 | }; | |
14182 | ||
14183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
14184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14186 | { | |
14187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14188 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14189 | ||
14190 | wxPyEndAllowThreads(__tstate); | |
14191 | if (PyErr_Occurred()) SWIG_fail; | |
14192 | } | |
14193 | resultobj = SWIG_FromInt((int)result); | |
14194 | return resultobj; | |
14195 | fail: | |
14196 | return NULL; | |
14197 | } | |
14198 | ||
14199 | ||
14200 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14201 | PyObject *resultobj; | |
14202 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14203 | int arg2 ; | |
14204 | PyObject * obj0 = 0 ; | |
14205 | PyObject * obj1 = 0 ; | |
14206 | char *kwnames[] = { | |
14207 | (char *) "self",(char *) "nSel", NULL | |
14208 | }; | |
14209 | ||
14210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14213 | arg2 = (int) SWIG_AsInt(obj1); | |
14214 | if (PyErr_Occurred()) SWIG_fail; | |
14215 | { | |
14216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14217 | (arg1)->SetSelection(arg2); | |
14218 | ||
14219 | wxPyEndAllowThreads(__tstate); | |
14220 | if (PyErr_Occurred()) SWIG_fail; | |
14221 | } | |
14222 | Py_INCREF(Py_None); resultobj = Py_None; | |
14223 | return resultobj; | |
14224 | fail: | |
14225 | return NULL; | |
14226 | } | |
14227 | ||
14228 | ||
14229 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14230 | PyObject *resultobj; | |
14231 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14232 | int result; | |
14233 | PyObject * obj0 = 0 ; | |
14234 | char *kwnames[] = { | |
14235 | (char *) "self", NULL | |
14236 | }; | |
14237 | ||
14238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
14239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14241 | { | |
14242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14243 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14244 | ||
14245 | wxPyEndAllowThreads(__tstate); | |
14246 | if (PyErr_Occurred()) SWIG_fail; | |
14247 | } | |
14248 | resultobj = SWIG_FromInt((int)result); | |
14249 | return resultobj; | |
14250 | fail: | |
14251 | return NULL; | |
14252 | } | |
14253 | ||
14254 | ||
14255 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14256 | PyObject *resultobj; | |
14257 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14258 | int arg2 ; | |
14259 | PyObject * obj0 = 0 ; | |
14260 | PyObject * obj1 = 0 ; | |
14261 | char *kwnames[] = { | |
14262 | (char *) "self",(char *) "nOldSel", NULL | |
14263 | }; | |
14264 | ||
14265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
14266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14268 | arg2 = (int) SWIG_AsInt(obj1); | |
14269 | if (PyErr_Occurred()) SWIG_fail; | |
14270 | { | |
14271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14272 | (arg1)->SetOldSelection(arg2); | |
14273 | ||
14274 | wxPyEndAllowThreads(__tstate); | |
14275 | if (PyErr_Occurred()) SWIG_fail; | |
14276 | } | |
14277 | Py_INCREF(Py_None); resultobj = Py_None; | |
14278 | return resultobj; | |
14279 | fail: | |
14280 | return NULL; | |
14281 | } | |
14282 | ||
14283 | ||
14284 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14285 | PyObject *obj; | |
14286 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14287 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14288 | Py_INCREF(obj); | |
14289 | return Py_BuildValue((char *)""); | |
14290 | } | |
14291 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14292 | PyObject *resultobj; | |
14293 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14294 | int arg2 = (int) -1 ; | |
14295 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14296 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14297 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14298 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14299 | long arg5 = (long) 0 ; | |
14300 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14301 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14302 | wxNotebook *result; | |
14303 | wxPoint temp3 ; | |
14304 | wxSize temp4 ; | |
14305 | bool temp6 = False ; | |
14306 | PyObject * obj0 = 0 ; | |
14307 | PyObject * obj1 = 0 ; | |
14308 | PyObject * obj2 = 0 ; | |
14309 | PyObject * obj3 = 0 ; | |
14310 | PyObject * obj4 = 0 ; | |
14311 | PyObject * obj5 = 0 ; | |
14312 | char *kwnames[] = { | |
14313 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14314 | }; | |
14315 | ||
14316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14319 | if (obj1) { | |
14320 | arg2 = (int) SWIG_AsInt(obj1); | |
14321 | if (PyErr_Occurred()) SWIG_fail; | |
14322 | } | |
14323 | if (obj2) { | |
14324 | { | |
14325 | arg3 = &temp3; | |
14326 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14327 | } | |
14328 | } | |
14329 | if (obj3) { | |
14330 | { | |
14331 | arg4 = &temp4; | |
14332 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14333 | } | |
14334 | } | |
14335 | if (obj4) { | |
14336 | arg5 = (long) SWIG_AsLong(obj4); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
14339 | if (obj5) { | |
14340 | { | |
14341 | arg6 = wxString_in_helper(obj5); | |
14342 | if (arg6 == NULL) SWIG_fail; | |
14343 | temp6 = True; | |
14344 | } | |
14345 | } | |
14346 | { | |
14347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14348 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14349 | ||
14350 | wxPyEndAllowThreads(__tstate); | |
14351 | if (PyErr_Occurred()) SWIG_fail; | |
14352 | } | |
14353 | { | |
14354 | resultobj = wxPyMake_wxObject(result); | |
14355 | } | |
14356 | { | |
14357 | if (temp6) | |
14358 | delete arg6; | |
14359 | } | |
14360 | return resultobj; | |
14361 | fail: | |
14362 | { | |
14363 | if (temp6) | |
14364 | delete arg6; | |
14365 | } | |
14366 | return NULL; | |
14367 | } | |
14368 | ||
14369 | ||
14370 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14371 | PyObject *resultobj; | |
14372 | wxNotebook *result; | |
14373 | char *kwnames[] = { | |
14374 | NULL | |
14375 | }; | |
14376 | ||
14377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14378 | { | |
14379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14380 | result = (wxNotebook *)new wxNotebook(); | |
14381 | ||
14382 | wxPyEndAllowThreads(__tstate); | |
14383 | if (PyErr_Occurred()) SWIG_fail; | |
14384 | } | |
14385 | { | |
14386 | resultobj = wxPyMake_wxObject(result); | |
14387 | } | |
14388 | return resultobj; | |
14389 | fail: | |
14390 | return NULL; | |
14391 | } | |
14392 | ||
14393 | ||
14394 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14395 | PyObject *resultobj; | |
14396 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14397 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14398 | int arg3 ; | |
14399 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14400 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14401 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14402 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14403 | long arg6 = (long) 0 ; | |
14404 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14405 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14406 | bool result; | |
14407 | wxPoint temp4 ; | |
14408 | wxSize temp5 ; | |
14409 | bool temp7 = False ; | |
14410 | PyObject * obj0 = 0 ; | |
14411 | PyObject * obj1 = 0 ; | |
14412 | PyObject * obj2 = 0 ; | |
14413 | PyObject * obj3 = 0 ; | |
14414 | PyObject * obj4 = 0 ; | |
14415 | PyObject * obj5 = 0 ; | |
14416 | PyObject * obj6 = 0 ; | |
14417 | char *kwnames[] = { | |
14418 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14419 | }; | |
14420 | ||
14421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14426 | arg3 = (int) SWIG_AsInt(obj2); | |
14427 | if (PyErr_Occurred()) SWIG_fail; | |
14428 | if (obj3) { | |
14429 | { | |
14430 | arg4 = &temp4; | |
14431 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14432 | } | |
14433 | } | |
14434 | if (obj4) { | |
14435 | { | |
14436 | arg5 = &temp5; | |
14437 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14438 | } | |
14439 | } | |
14440 | if (obj5) { | |
14441 | arg6 = (long) SWIG_AsLong(obj5); | |
14442 | if (PyErr_Occurred()) SWIG_fail; | |
14443 | } | |
14444 | if (obj6) { | |
14445 | { | |
14446 | arg7 = wxString_in_helper(obj6); | |
14447 | if (arg7 == NULL) SWIG_fail; | |
14448 | temp7 = True; | |
14449 | } | |
14450 | } | |
14451 | { | |
14452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14453 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14454 | ||
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | { | |
14459 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14460 | } | |
14461 | { | |
14462 | if (temp7) | |
14463 | delete arg7; | |
14464 | } | |
14465 | return resultobj; | |
14466 | fail: | |
14467 | { | |
14468 | if (temp7) | |
14469 | delete arg7; | |
14470 | } | |
14471 | return NULL; | |
14472 | } | |
14473 | ||
14474 | ||
14475 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14476 | PyObject *resultobj; | |
14477 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14478 | int result; | |
14479 | PyObject * obj0 = 0 ; | |
14480 | char *kwnames[] = { | |
14481 | (char *) "self", NULL | |
14482 | }; | |
14483 | ||
14484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
14485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14487 | { | |
14488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14489 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14490 | ||
14491 | wxPyEndAllowThreads(__tstate); | |
14492 | if (PyErr_Occurred()) SWIG_fail; | |
14493 | } | |
14494 | resultobj = SWIG_FromInt((int)result); | |
14495 | return resultobj; | |
14496 | fail: | |
14497 | return NULL; | |
14498 | } | |
14499 | ||
14500 | ||
14501 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14502 | PyObject *resultobj; | |
14503 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14504 | wxSize *arg2 = 0 ; | |
14505 | wxSize temp2 ; | |
14506 | PyObject * obj0 = 0 ; | |
14507 | PyObject * obj1 = 0 ; | |
14508 | char *kwnames[] = { | |
14509 | (char *) "self",(char *) "padding", NULL | |
14510 | }; | |
14511 | ||
14512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
14513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14515 | { | |
14516 | arg2 = &temp2; | |
14517 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14518 | } | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14522 | ||
14523 | wxPyEndAllowThreads(__tstate); | |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | Py_INCREF(Py_None); resultobj = Py_None; | |
14527 | return resultobj; | |
14528 | fail: | |
14529 | return NULL; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14534 | PyObject *resultobj; | |
14535 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14536 | wxSize *arg2 = 0 ; | |
14537 | wxSize temp2 ; | |
14538 | PyObject * obj0 = 0 ; | |
14539 | PyObject * obj1 = 0 ; | |
14540 | char *kwnames[] = { | |
14541 | (char *) "self",(char *) "sz", NULL | |
14542 | }; | |
14543 | ||
14544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
14545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14547 | { | |
14548 | arg2 = &temp2; | |
14549 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14550 | } | |
14551 | { | |
14552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14553 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14554 | ||
14555 | wxPyEndAllowThreads(__tstate); | |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
14557 | } | |
14558 | Py_INCREF(Py_None); resultobj = Py_None; | |
14559 | return resultobj; | |
14560 | fail: | |
14561 | return NULL; | |
14562 | } | |
14563 | ||
14564 | ||
14565 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14566 | PyObject *resultobj; | |
14567 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14568 | wxPoint *arg2 = 0 ; | |
14569 | long *arg3 = (long *) 0 ; | |
14570 | int result; | |
14571 | wxPoint temp2 ; | |
14572 | long temp3 ; | |
14573 | PyObject * obj0 = 0 ; | |
14574 | PyObject * obj1 = 0 ; | |
14575 | char *kwnames[] = { | |
14576 | (char *) "self",(char *) "pt", NULL | |
14577 | }; | |
14578 | ||
14579 | arg3 = &temp3; | |
14580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
14581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14583 | { | |
14584 | arg2 = &temp2; | |
14585 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14586 | } | |
14587 | { | |
14588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14589 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14590 | ||
14591 | wxPyEndAllowThreads(__tstate); | |
14592 | if (PyErr_Occurred()) SWIG_fail; | |
14593 | } | |
14594 | resultobj = SWIG_FromInt((int)result); | |
14595 | { | |
14596 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14597 | resultobj = t_output_helper(resultobj,o); | |
14598 | } | |
14599 | return resultobj; | |
14600 | fail: | |
14601 | return NULL; | |
14602 | } | |
14603 | ||
14604 | ||
14605 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14606 | PyObject *resultobj; | |
14607 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14608 | wxSize *arg2 = 0 ; | |
14609 | wxSize result; | |
14610 | wxSize temp2 ; | |
14611 | PyObject * obj0 = 0 ; | |
14612 | PyObject * obj1 = 0 ; | |
14613 | char *kwnames[] = { | |
14614 | (char *) "self",(char *) "sizePage", NULL | |
14615 | }; | |
14616 | ||
14617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14620 | { | |
14621 | arg2 = &temp2; | |
14622 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14623 | } | |
14624 | { | |
14625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14626 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14627 | ||
14628 | wxPyEndAllowThreads(__tstate); | |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
14630 | } | |
14631 | { | |
14632 | wxSize * resultptr; | |
14633 | resultptr = new wxSize((wxSize &) result); | |
14634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14635 | } | |
14636 | return resultobj; | |
14637 | fail: | |
14638 | return NULL; | |
14639 | } | |
14640 | ||
14641 | ||
14642 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14643 | PyObject *resultobj; | |
14644 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14645 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14646 | wxColour *arg3 = 0 ; | |
14647 | wxColour temp3 ; | |
14648 | PyObject * obj0 = 0 ; | |
14649 | PyObject * obj1 = 0 ; | |
14650 | PyObject * obj2 = 0 ; | |
14651 | char *kwnames[] = { | |
14652 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14653 | }; | |
14654 | ||
14655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
14657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14660 | { | |
14661 | arg3 = &temp3; | |
14662 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14663 | } | |
14664 | { | |
14665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14666 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14667 | ||
14668 | wxPyEndAllowThreads(__tstate); | |
14669 | if (PyErr_Occurred()) SWIG_fail; | |
14670 | } | |
14671 | Py_INCREF(Py_None); resultobj = Py_None; | |
14672 | return resultobj; | |
14673 | fail: | |
14674 | return NULL; | |
14675 | } | |
14676 | ||
14677 | ||
14678 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14679 | PyObject *obj; | |
14680 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14681 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14682 | Py_INCREF(obj); | |
14683 | return Py_BuildValue((char *)""); | |
14684 | } | |
14685 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14686 | PyObject *resultobj; | |
14687 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14688 | int arg2 = (int) 0 ; | |
14689 | int arg3 = (int) -1 ; | |
14690 | int arg4 = (int) -1 ; | |
14691 | wxNotebookEvent *result; | |
14692 | PyObject * obj0 = 0 ; | |
14693 | PyObject * obj1 = 0 ; | |
14694 | PyObject * obj2 = 0 ; | |
14695 | PyObject * obj3 = 0 ; | |
14696 | char *kwnames[] = { | |
14697 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14698 | }; | |
14699 | ||
14700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14701 | if (obj0) { | |
14702 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
14704 | } | |
14705 | if (obj1) { | |
14706 | arg2 = (int) SWIG_AsInt(obj1); | |
14707 | if (PyErr_Occurred()) SWIG_fail; | |
14708 | } | |
14709 | if (obj2) { | |
14710 | arg3 = (int) SWIG_AsInt(obj2); | |
14711 | if (PyErr_Occurred()) SWIG_fail; | |
14712 | } | |
14713 | if (obj3) { | |
14714 | arg4 = (int) SWIG_AsInt(obj3); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
14716 | } | |
14717 | { | |
14718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14719 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14720 | ||
14721 | wxPyEndAllowThreads(__tstate); | |
14722 | if (PyErr_Occurred()) SWIG_fail; | |
14723 | } | |
14724 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
14725 | return resultobj; | |
14726 | fail: | |
14727 | return NULL; | |
14728 | } | |
14729 | ||
14730 | ||
14731 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14732 | PyObject *obj; | |
14733 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14734 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14735 | Py_INCREF(obj); | |
14736 | return Py_BuildValue((char *)""); | |
14737 | } | |
14738 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14739 | PyObject *resultobj; | |
14740 | wxWindow *arg1 = (wxWindow *) 0 ; | |
14741 | int arg2 = (int) -1 ; | |
14742 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
14743 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14744 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14745 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14746 | long arg5 = (long) 0 ; | |
14747 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14748 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14749 | wxListbook *result; | |
14750 | wxPoint temp3 ; | |
14751 | wxSize temp4 ; | |
14752 | bool temp6 = False ; | |
14753 | PyObject * obj0 = 0 ; | |
14754 | PyObject * obj1 = 0 ; | |
14755 | PyObject * obj2 = 0 ; | |
14756 | PyObject * obj3 = 0 ; | |
14757 | PyObject * obj4 = 0 ; | |
14758 | PyObject * obj5 = 0 ; | |
14759 | char *kwnames[] = { | |
14760 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14761 | }; | |
14762 | ||
14763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
14765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14766 | if (obj1) { | |
14767 | arg2 = (int) SWIG_AsInt(obj1); | |
14768 | if (PyErr_Occurred()) SWIG_fail; | |
14769 | } | |
14770 | if (obj2) { | |
14771 | { | |
14772 | arg3 = &temp3; | |
14773 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14774 | } | |
14775 | } | |
14776 | if (obj3) { | |
14777 | { | |
14778 | arg4 = &temp4; | |
14779 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14780 | } | |
14781 | } | |
14782 | if (obj4) { | |
14783 | arg5 = (long) SWIG_AsLong(obj4); | |
14784 | if (PyErr_Occurred()) SWIG_fail; | |
14785 | } | |
14786 | if (obj5) { | |
14787 | { | |
14788 | arg6 = wxString_in_helper(obj5); | |
14789 | if (arg6 == NULL) SWIG_fail; | |
14790 | temp6 = True; | |
14791 | } | |
14792 | } | |
14793 | { | |
14794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14795 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14796 | ||
14797 | wxPyEndAllowThreads(__tstate); | |
14798 | if (PyErr_Occurred()) SWIG_fail; | |
14799 | } | |
14800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
14801 | { | |
14802 | if (temp6) | |
14803 | delete arg6; | |
14804 | } | |
14805 | return resultobj; | |
14806 | fail: | |
14807 | { | |
14808 | if (temp6) | |
14809 | delete arg6; | |
14810 | } | |
14811 | return NULL; | |
14812 | } | |
14813 | ||
14814 | ||
14815 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14816 | PyObject *resultobj; | |
14817 | wxListbook *result; | |
14818 | char *kwnames[] = { | |
14819 | NULL | |
14820 | }; | |
14821 | ||
14822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14823 | { | |
14824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14825 | result = (wxListbook *)new wxListbook(); | |
14826 | ||
14827 | wxPyEndAllowThreads(__tstate); | |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
14829 | } | |
14830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
14837 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14838 | PyObject *resultobj; | |
14839 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14840 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14841 | int arg3 ; | |
14842 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
14843 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14844 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14845 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14846 | long arg6 = (long) 0 ; | |
14847 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14848 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14849 | bool result; | |
14850 | wxPoint temp4 ; | |
14851 | wxSize temp5 ; | |
14852 | bool temp7 = False ; | |
14853 | PyObject * obj0 = 0 ; | |
14854 | PyObject * obj1 = 0 ; | |
14855 | PyObject * obj2 = 0 ; | |
14856 | PyObject * obj3 = 0 ; | |
14857 | PyObject * obj4 = 0 ; | |
14858 | PyObject * obj5 = 0 ; | |
14859 | PyObject * obj6 = 0 ; | |
14860 | char *kwnames[] = { | |
14861 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14862 | }; | |
14863 | ||
14864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
14865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
14866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14867 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14869 | arg3 = (int) SWIG_AsInt(obj2); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | if (obj3) { | |
14872 | { | |
14873 | arg4 = &temp4; | |
14874 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14875 | } | |
14876 | } | |
14877 | if (obj4) { | |
14878 | { | |
14879 | arg5 = &temp5; | |
14880 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14881 | } | |
14882 | } | |
14883 | if (obj5) { | |
14884 | arg6 = (long) SWIG_AsLong(obj5); | |
14885 | if (PyErr_Occurred()) SWIG_fail; | |
14886 | } | |
14887 | if (obj6) { | |
14888 | { | |
14889 | arg7 = wxString_in_helper(obj6); | |
14890 | if (arg7 == NULL) SWIG_fail; | |
14891 | temp7 = True; | |
14892 | } | |
14893 | } | |
14894 | { | |
14895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14896 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14897 | ||
14898 | wxPyEndAllowThreads(__tstate); | |
14899 | if (PyErr_Occurred()) SWIG_fail; | |
14900 | } | |
14901 | { | |
14902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14903 | } | |
14904 | { | |
14905 | if (temp7) | |
14906 | delete arg7; | |
14907 | } | |
14908 | return resultobj; | |
14909 | fail: | |
14910 | { | |
14911 | if (temp7) | |
14912 | delete arg7; | |
14913 | } | |
14914 | return NULL; | |
14915 | } | |
14916 | ||
14917 | ||
14918 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14919 | PyObject *resultobj; | |
14920 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14921 | bool result; | |
14922 | PyObject * obj0 = 0 ; | |
14923 | char *kwnames[] = { | |
14924 | (char *) "self", NULL | |
14925 | }; | |
14926 | ||
14927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
14928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
14929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14930 | { | |
14931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14932 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14933 | ||
14934 | wxPyEndAllowThreads(__tstate); | |
14935 | if (PyErr_Occurred()) SWIG_fail; | |
14936 | } | |
14937 | { | |
14938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14939 | } | |
14940 | return resultobj; | |
14941 | fail: | |
14942 | return NULL; | |
14943 | } | |
14944 | ||
14945 | ||
14946 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14947 | PyObject *obj; | |
14948 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14949 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14950 | Py_INCREF(obj); | |
14951 | return Py_BuildValue((char *)""); | |
14952 | } | |
14953 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14954 | PyObject *resultobj; | |
14955 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14956 | int arg2 = (int) 0 ; | |
14957 | int arg3 = (int) -1 ; | |
14958 | int arg4 = (int) -1 ; | |
14959 | wxListbookEvent *result; | |
14960 | PyObject * obj0 = 0 ; | |
14961 | PyObject * obj1 = 0 ; | |
14962 | PyObject * obj2 = 0 ; | |
14963 | PyObject * obj3 = 0 ; | |
14964 | char *kwnames[] = { | |
14965 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14966 | }; | |
14967 | ||
14968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14969 | if (obj0) { | |
14970 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14971 | if (PyErr_Occurred()) SWIG_fail; | |
14972 | } | |
14973 | if (obj1) { | |
14974 | arg2 = (int) SWIG_AsInt(obj1); | |
14975 | if (PyErr_Occurred()) SWIG_fail; | |
14976 | } | |
14977 | if (obj2) { | |
14978 | arg3 = (int) SWIG_AsInt(obj2); | |
14979 | if (PyErr_Occurred()) SWIG_fail; | |
14980 | } | |
14981 | if (obj3) { | |
14982 | arg4 = (int) SWIG_AsInt(obj3); | |
14983 | if (PyErr_Occurred()) SWIG_fail; | |
14984 | } | |
14985 | { | |
14986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14987 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14988 | ||
14989 | wxPyEndAllowThreads(__tstate); | |
14990 | if (PyErr_Occurred()) SWIG_fail; | |
14991 | } | |
14992 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
14993 | return resultobj; | |
14994 | fail: | |
14995 | return NULL; | |
14996 | } | |
14997 | ||
14998 | ||
14999 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15000 | PyObject *obj; | |
15001 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15002 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15003 | Py_INCREF(obj); | |
15004 | return Py_BuildValue((char *)""); | |
15005 | } | |
15006 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15007 | PyObject *resultobj; | |
15008 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15009 | wxBookCtrlSizer *result; | |
15010 | PyObject * obj0 = 0 ; | |
15011 | char *kwnames[] = { | |
15012 | (char *) "nb", NULL | |
15013 | }; | |
15014 | ||
15015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
15017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15018 | { | |
15019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15020 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15021 | ||
15022 | wxPyEndAllowThreads(__tstate); | |
15023 | if (PyErr_Occurred()) SWIG_fail; | |
15024 | } | |
15025 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
15026 | return resultobj; | |
15027 | fail: | |
15028 | return NULL; | |
15029 | } | |
15030 | ||
15031 | ||
15032 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15033 | PyObject *resultobj; | |
15034 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15035 | PyObject * obj0 = 0 ; | |
15036 | char *kwnames[] = { | |
15037 | (char *) "self", NULL | |
15038 | }; | |
15039 | ||
15040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15043 | { | |
15044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15045 | (arg1)->RecalcSizes(); | |
15046 | ||
15047 | wxPyEndAllowThreads(__tstate); | |
15048 | if (PyErr_Occurred()) SWIG_fail; | |
15049 | } | |
15050 | Py_INCREF(Py_None); resultobj = Py_None; | |
15051 | return resultobj; | |
15052 | fail: | |
15053 | return NULL; | |
15054 | } | |
15055 | ||
15056 | ||
15057 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15058 | PyObject *resultobj; | |
15059 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15060 | wxSize result; | |
15061 | PyObject * obj0 = 0 ; | |
15062 | char *kwnames[] = { | |
15063 | (char *) "self", NULL | |
15064 | }; | |
15065 | ||
15066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15069 | { | |
15070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15071 | result = (arg1)->CalcMin(); | |
15072 | ||
15073 | wxPyEndAllowThreads(__tstate); | |
15074 | if (PyErr_Occurred()) SWIG_fail; | |
15075 | } | |
15076 | { | |
15077 | wxSize * resultptr; | |
15078 | resultptr = new wxSize((wxSize &) result); | |
15079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15080 | } | |
15081 | return resultobj; | |
15082 | fail: | |
15083 | return NULL; | |
15084 | } | |
15085 | ||
15086 | ||
15087 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15088 | PyObject *resultobj; | |
15089 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15090 | wxBookCtrl *result; | |
15091 | PyObject * obj0 = 0 ; | |
15092 | char *kwnames[] = { | |
15093 | (char *) "self", NULL | |
15094 | }; | |
15095 | ||
15096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15099 | { | |
15100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15101 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15102 | ||
15103 | wxPyEndAllowThreads(__tstate); | |
15104 | if (PyErr_Occurred()) SWIG_fail; | |
15105 | } | |
15106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
15107 | return resultobj; | |
15108 | fail: | |
15109 | return NULL; | |
15110 | } | |
15111 | ||
15112 | ||
15113 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15114 | PyObject *obj; | |
15115 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15116 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15117 | Py_INCREF(obj); | |
15118 | return Py_BuildValue((char *)""); | |
15119 | } | |
15120 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15121 | PyObject *resultobj; | |
15122 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15123 | wxNotebookSizer *result; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | char *kwnames[] = { | |
15126 | (char *) "nb", NULL | |
15127 | }; | |
15128 | ||
15129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15132 | { | |
15133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15134 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15135 | ||
15136 | wxPyEndAllowThreads(__tstate); | |
15137 | if (PyErr_Occurred()) SWIG_fail; | |
15138 | } | |
15139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
15140 | return resultobj; | |
15141 | fail: | |
15142 | return NULL; | |
15143 | } | |
15144 | ||
15145 | ||
15146 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15147 | PyObject *resultobj; | |
15148 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15149 | PyObject * obj0 = 0 ; | |
15150 | char *kwnames[] = { | |
15151 | (char *) "self", NULL | |
15152 | }; | |
15153 | ||
15154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15157 | { | |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15159 | (arg1)->RecalcSizes(); | |
15160 | ||
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | Py_INCREF(Py_None); resultobj = Py_None; | |
15165 | return resultobj; | |
15166 | fail: | |
15167 | return NULL; | |
15168 | } | |
15169 | ||
15170 | ||
15171 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15172 | PyObject *resultobj; | |
15173 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15174 | wxSize result; | |
15175 | PyObject * obj0 = 0 ; | |
15176 | char *kwnames[] = { | |
15177 | (char *) "self", NULL | |
15178 | }; | |
15179 | ||
15180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15183 | { | |
15184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15185 | result = (arg1)->CalcMin(); | |
15186 | ||
15187 | wxPyEndAllowThreads(__tstate); | |
15188 | if (PyErr_Occurred()) SWIG_fail; | |
15189 | } | |
15190 | { | |
15191 | wxSize * resultptr; | |
15192 | resultptr = new wxSize((wxSize &) result); | |
15193 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15194 | } | |
15195 | return resultobj; | |
15196 | fail: | |
15197 | return NULL; | |
15198 | } | |
15199 | ||
15200 | ||
15201 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15202 | PyObject *resultobj; | |
15203 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15204 | wxNotebook *result; | |
15205 | PyObject * obj0 = 0 ; | |
15206 | char *kwnames[] = { | |
15207 | (char *) "self", NULL | |
15208 | }; | |
15209 | ||
15210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15213 | { | |
15214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15215 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15216 | ||
15217 | wxPyEndAllowThreads(__tstate); | |
15218 | if (PyErr_Occurred()) SWIG_fail; | |
15219 | } | |
15220 | { | |
15221 | resultobj = wxPyMake_wxObject(result); | |
15222 | } | |
15223 | return resultobj; | |
15224 | fail: | |
15225 | return NULL; | |
15226 | } | |
15227 | ||
15228 | ||
15229 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15230 | PyObject *obj; | |
15231 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15232 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15233 | Py_INCREF(obj); | |
15234 | return Py_BuildValue((char *)""); | |
15235 | } | |
15236 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15237 | PyObject *resultobj; | |
15238 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15239 | int result; | |
15240 | PyObject * obj0 = 0 ; | |
15241 | char *kwnames[] = { | |
15242 | (char *) "self", NULL | |
15243 | }; | |
15244 | ||
15245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | result = (int)(arg1)->GetId(); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | resultobj = SWIG_FromInt((int)result); | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
15262 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj; | |
15264 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15265 | wxControl *result; | |
15266 | PyObject * obj0 = 0 ; | |
15267 | char *kwnames[] = { | |
15268 | (char *) "self", NULL | |
15269 | }; | |
15270 | ||
15271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15274 | { | |
15275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15276 | result = (wxControl *)(arg1)->GetControl(); | |
15277 | ||
15278 | wxPyEndAllowThreads(__tstate); | |
15279 | if (PyErr_Occurred()) SWIG_fail; | |
15280 | } | |
15281 | { | |
15282 | resultobj = wxPyMake_wxObject(result); | |
15283 | } | |
15284 | return resultobj; | |
15285 | fail: | |
15286 | return NULL; | |
15287 | } | |
15288 | ||
15289 | ||
15290 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15291 | PyObject *resultobj; | |
15292 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15293 | wxToolBarBase *result; | |
15294 | PyObject * obj0 = 0 ; | |
15295 | char *kwnames[] = { | |
15296 | (char *) "self", NULL | |
15297 | }; | |
15298 | ||
15299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15302 | { | |
15303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15304 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15305 | ||
15306 | wxPyEndAllowThreads(__tstate); | |
15307 | if (PyErr_Occurred()) SWIG_fail; | |
15308 | } | |
15309 | { | |
15310 | resultobj = wxPyMake_wxObject(result); | |
15311 | } | |
15312 | return resultobj; | |
15313 | fail: | |
15314 | return NULL; | |
15315 | } | |
15316 | ||
15317 | ||
15318 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15319 | PyObject *resultobj; | |
15320 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15321 | int result; | |
15322 | PyObject * obj0 = 0 ; | |
15323 | char *kwnames[] = { | |
15324 | (char *) "self", NULL | |
15325 | }; | |
15326 | ||
15327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15330 | { | |
15331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15332 | result = (int)(arg1)->IsButton(); | |
15333 | ||
15334 | wxPyEndAllowThreads(__tstate); | |
15335 | if (PyErr_Occurred()) SWIG_fail; | |
15336 | } | |
15337 | resultobj = SWIG_FromInt((int)result); | |
15338 | return resultobj; | |
15339 | fail: | |
15340 | return NULL; | |
15341 | } | |
15342 | ||
15343 | ||
15344 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15345 | PyObject *resultobj; | |
15346 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15347 | int result; | |
15348 | PyObject * obj0 = 0 ; | |
15349 | char *kwnames[] = { | |
15350 | (char *) "self", NULL | |
15351 | }; | |
15352 | ||
15353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15356 | { | |
15357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15358 | result = (int)(arg1)->IsControl(); | |
15359 | ||
15360 | wxPyEndAllowThreads(__tstate); | |
15361 | if (PyErr_Occurred()) SWIG_fail; | |
15362 | } | |
15363 | resultobj = SWIG_FromInt((int)result); | |
15364 | return resultobj; | |
15365 | fail: | |
15366 | return NULL; | |
15367 | } | |
15368 | ||
15369 | ||
15370 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15371 | PyObject *resultobj; | |
15372 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15373 | int result; | |
15374 | PyObject * obj0 = 0 ; | |
15375 | char *kwnames[] = { | |
15376 | (char *) "self", NULL | |
15377 | }; | |
15378 | ||
15379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15382 | { | |
15383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15384 | result = (int)(arg1)->IsSeparator(); | |
15385 | ||
15386 | wxPyEndAllowThreads(__tstate); | |
15387 | if (PyErr_Occurred()) SWIG_fail; | |
15388 | } | |
15389 | resultobj = SWIG_FromInt((int)result); | |
15390 | return resultobj; | |
15391 | fail: | |
15392 | return NULL; | |
15393 | } | |
15394 | ||
15395 | ||
15396 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15397 | PyObject *resultobj; | |
15398 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15399 | int result; | |
15400 | PyObject * obj0 = 0 ; | |
15401 | char *kwnames[] = { | |
15402 | (char *) "self", NULL | |
15403 | }; | |
15404 | ||
15405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15408 | { | |
15409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15410 | result = (int)(arg1)->GetStyle(); | |
15411 | ||
15412 | wxPyEndAllowThreads(__tstate); | |
15413 | if (PyErr_Occurred()) SWIG_fail; | |
15414 | } | |
15415 | resultobj = SWIG_FromInt((int)result); | |
15416 | return resultobj; | |
15417 | fail: | |
15418 | return NULL; | |
15419 | } | |
15420 | ||
15421 | ||
15422 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15423 | PyObject *resultobj; | |
15424 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15425 | int result; | |
15426 | PyObject * obj0 = 0 ; | |
15427 | char *kwnames[] = { | |
15428 | (char *) "self", NULL | |
15429 | }; | |
15430 | ||
15431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15434 | { | |
15435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15436 | result = (int)(arg1)->GetKind(); | |
15437 | ||
15438 | wxPyEndAllowThreads(__tstate); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | } | |
15441 | resultobj = SWIG_FromInt((int)result); | |
15442 | return resultobj; | |
15443 | fail: | |
15444 | return NULL; | |
15445 | } | |
15446 | ||
15447 | ||
15448 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15449 | PyObject *resultobj; | |
15450 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15451 | bool result; | |
15452 | PyObject * obj0 = 0 ; | |
15453 | char *kwnames[] = { | |
15454 | (char *) "self", NULL | |
15455 | }; | |
15456 | ||
15457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15460 | { | |
15461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15462 | result = (bool)(arg1)->IsEnabled(); | |
15463 | ||
15464 | wxPyEndAllowThreads(__tstate); | |
15465 | if (PyErr_Occurred()) SWIG_fail; | |
15466 | } | |
15467 | { | |
15468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15469 | } | |
15470 | return resultobj; | |
15471 | fail: | |
15472 | return NULL; | |
15473 | } | |
15474 | ||
15475 | ||
15476 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15477 | PyObject *resultobj; | |
15478 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15479 | bool result; | |
15480 | PyObject * obj0 = 0 ; | |
15481 | char *kwnames[] = { | |
15482 | (char *) "self", NULL | |
15483 | }; | |
15484 | ||
15485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15488 | { | |
15489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15490 | result = (bool)(arg1)->IsToggled(); | |
15491 | ||
15492 | wxPyEndAllowThreads(__tstate); | |
15493 | if (PyErr_Occurred()) SWIG_fail; | |
15494 | } | |
15495 | { | |
15496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15497 | } | |
15498 | return resultobj; | |
15499 | fail: | |
15500 | return NULL; | |
15501 | } | |
15502 | ||
15503 | ||
15504 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15505 | PyObject *resultobj; | |
15506 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15507 | bool result; | |
15508 | PyObject * obj0 = 0 ; | |
15509 | char *kwnames[] = { | |
15510 | (char *) "self", NULL | |
15511 | }; | |
15512 | ||
15513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15516 | { | |
15517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15518 | result = (bool)(arg1)->CanBeToggled(); | |
15519 | ||
15520 | wxPyEndAllowThreads(__tstate); | |
15521 | if (PyErr_Occurred()) SWIG_fail; | |
15522 | } | |
15523 | { | |
15524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15525 | } | |
15526 | return resultobj; | |
15527 | fail: | |
15528 | return NULL; | |
15529 | } | |
15530 | ||
15531 | ||
15532 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15533 | PyObject *resultobj; | |
15534 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15535 | wxBitmap *result; | |
15536 | PyObject * obj0 = 0 ; | |
15537 | char *kwnames[] = { | |
15538 | (char *) "self", NULL | |
15539 | }; | |
15540 | ||
15541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15544 | { | |
15545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15546 | { | |
15547 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15548 | result = (wxBitmap *) &_result_ref; | |
15549 | } | |
15550 | ||
15551 | wxPyEndAllowThreads(__tstate); | |
15552 | if (PyErr_Occurred()) SWIG_fail; | |
15553 | } | |
15554 | { | |
15555 | wxBitmap* resultptr = new wxBitmap(*result); | |
15556 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15557 | } | |
15558 | return resultobj; | |
15559 | fail: | |
15560 | return NULL; | |
15561 | } | |
15562 | ||
15563 | ||
15564 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15565 | PyObject *resultobj; | |
15566 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15567 | wxBitmap *result; | |
15568 | PyObject * obj0 = 0 ; | |
15569 | char *kwnames[] = { | |
15570 | (char *) "self", NULL | |
15571 | }; | |
15572 | ||
15573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15576 | { | |
15577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15578 | { | |
15579 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15580 | result = (wxBitmap *) &_result_ref; | |
15581 | } | |
15582 | ||
15583 | wxPyEndAllowThreads(__tstate); | |
15584 | if (PyErr_Occurred()) SWIG_fail; | |
15585 | } | |
15586 | { | |
15587 | wxBitmap* resultptr = new wxBitmap(*result); | |
15588 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15589 | } | |
15590 | return resultobj; | |
15591 | fail: | |
15592 | return NULL; | |
15593 | } | |
15594 | ||
15595 | ||
15596 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15597 | PyObject *resultobj; | |
15598 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15599 | wxBitmap result; | |
15600 | PyObject * obj0 = 0 ; | |
15601 | char *kwnames[] = { | |
15602 | (char *) "self", NULL | |
15603 | }; | |
15604 | ||
15605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15608 | { | |
15609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15610 | result = (arg1)->GetBitmap(); | |
15611 | ||
15612 | wxPyEndAllowThreads(__tstate); | |
15613 | if (PyErr_Occurred()) SWIG_fail; | |
15614 | } | |
15615 | { | |
15616 | wxBitmap * resultptr; | |
15617 | resultptr = new wxBitmap((wxBitmap &) result); | |
15618 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15619 | } | |
15620 | return resultobj; | |
15621 | fail: | |
15622 | return NULL; | |
15623 | } | |
15624 | ||
15625 | ||
15626 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15627 | PyObject *resultobj; | |
15628 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15629 | wxString result; | |
15630 | PyObject * obj0 = 0 ; | |
15631 | char *kwnames[] = { | |
15632 | (char *) "self", NULL | |
15633 | }; | |
15634 | ||
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15638 | { | |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | result = (arg1)->GetLabel(); | |
15641 | ||
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
15645 | { | |
15646 | #if wxUSE_UNICODE | |
15647 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15648 | #else | |
15649 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15650 | #endif | |
15651 | } | |
15652 | return resultobj; | |
15653 | fail: | |
15654 | return NULL; | |
15655 | } | |
15656 | ||
15657 | ||
15658 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15659 | PyObject *resultobj; | |
15660 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15661 | wxString result; | |
15662 | PyObject * obj0 = 0 ; | |
15663 | char *kwnames[] = { | |
15664 | (char *) "self", NULL | |
15665 | }; | |
15666 | ||
15667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15670 | { | |
15671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15672 | result = (arg1)->GetShortHelp(); | |
15673 | ||
15674 | wxPyEndAllowThreads(__tstate); | |
15675 | if (PyErr_Occurred()) SWIG_fail; | |
15676 | } | |
15677 | { | |
15678 | #if wxUSE_UNICODE | |
15679 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15680 | #else | |
15681 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15682 | #endif | |
15683 | } | |
15684 | return resultobj; | |
15685 | fail: | |
15686 | return NULL; | |
15687 | } | |
15688 | ||
15689 | ||
15690 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15691 | PyObject *resultobj; | |
15692 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15693 | wxString result; | |
15694 | PyObject * obj0 = 0 ; | |
15695 | char *kwnames[] = { | |
15696 | (char *) "self", NULL | |
15697 | }; | |
15698 | ||
15699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15702 | { | |
15703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15704 | result = (arg1)->GetLongHelp(); | |
15705 | ||
15706 | wxPyEndAllowThreads(__tstate); | |
15707 | if (PyErr_Occurred()) SWIG_fail; | |
15708 | } | |
15709 | { | |
15710 | #if wxUSE_UNICODE | |
15711 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15712 | #else | |
15713 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15714 | #endif | |
15715 | } | |
15716 | return resultobj; | |
15717 | fail: | |
15718 | return NULL; | |
15719 | } | |
15720 | ||
15721 | ||
15722 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15723 | PyObject *resultobj; | |
15724 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15725 | bool arg2 ; | |
15726 | bool result; | |
15727 | PyObject * obj0 = 0 ; | |
15728 | PyObject * obj1 = 0 ; | |
15729 | char *kwnames[] = { | |
15730 | (char *) "self",(char *) "enable", NULL | |
15731 | }; | |
15732 | ||
15733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15736 | arg2 = (bool) SWIG_AsBool(obj1); | |
15737 | if (PyErr_Occurred()) SWIG_fail; | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | result = (bool)(arg1)->Enable(arg2); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | { | |
15746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15747 | } | |
15748 | return resultobj; | |
15749 | fail: | |
15750 | return NULL; | |
15751 | } | |
15752 | ||
15753 | ||
15754 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15755 | PyObject *resultobj; | |
15756 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15757 | PyObject * obj0 = 0 ; | |
15758 | char *kwnames[] = { | |
15759 | (char *) "self", NULL | |
15760 | }; | |
15761 | ||
15762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15765 | { | |
15766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15767 | (arg1)->Toggle(); | |
15768 | ||
15769 | wxPyEndAllowThreads(__tstate); | |
15770 | if (PyErr_Occurred()) SWIG_fail; | |
15771 | } | |
15772 | Py_INCREF(Py_None); resultobj = Py_None; | |
15773 | return resultobj; | |
15774 | fail: | |
15775 | return NULL; | |
15776 | } | |
15777 | ||
15778 | ||
15779 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15780 | PyObject *resultobj; | |
15781 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15782 | bool arg2 ; | |
15783 | bool result; | |
15784 | PyObject * obj0 = 0 ; | |
15785 | PyObject * obj1 = 0 ; | |
15786 | char *kwnames[] = { | |
15787 | (char *) "self",(char *) "toggle", NULL | |
15788 | }; | |
15789 | ||
15790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15793 | arg2 = (bool) SWIG_AsBool(obj1); | |
15794 | if (PyErr_Occurred()) SWIG_fail; | |
15795 | { | |
15796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15797 | result = (bool)(arg1)->SetToggle(arg2); | |
15798 | ||
15799 | wxPyEndAllowThreads(__tstate); | |
15800 | if (PyErr_Occurred()) SWIG_fail; | |
15801 | } | |
15802 | { | |
15803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15804 | } | |
15805 | return resultobj; | |
15806 | fail: | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15812 | PyObject *resultobj; | |
15813 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15814 | wxString *arg2 = 0 ; | |
15815 | bool result; | |
15816 | bool temp2 = False ; | |
15817 | PyObject * obj0 = 0 ; | |
15818 | PyObject * obj1 = 0 ; | |
15819 | char *kwnames[] = { | |
15820 | (char *) "self",(char *) "help", NULL | |
15821 | }; | |
15822 | ||
15823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15826 | { | |
15827 | arg2 = wxString_in_helper(obj1); | |
15828 | if (arg2 == NULL) SWIG_fail; | |
15829 | temp2 = True; | |
15830 | } | |
15831 | { | |
15832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15833 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15834 | ||
15835 | wxPyEndAllowThreads(__tstate); | |
15836 | if (PyErr_Occurred()) SWIG_fail; | |
15837 | } | |
15838 | { | |
15839 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15840 | } | |
15841 | { | |
15842 | if (temp2) | |
15843 | delete arg2; | |
15844 | } | |
15845 | return resultobj; | |
15846 | fail: | |
15847 | { | |
15848 | if (temp2) | |
15849 | delete arg2; | |
15850 | } | |
15851 | return NULL; | |
15852 | } | |
15853 | ||
15854 | ||
15855 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15856 | PyObject *resultobj; | |
15857 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15858 | wxString *arg2 = 0 ; | |
15859 | bool result; | |
15860 | bool temp2 = False ; | |
15861 | PyObject * obj0 = 0 ; | |
15862 | PyObject * obj1 = 0 ; | |
15863 | char *kwnames[] = { | |
15864 | (char *) "self",(char *) "help", NULL | |
15865 | }; | |
15866 | ||
15867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15870 | { | |
15871 | arg2 = wxString_in_helper(obj1); | |
15872 | if (arg2 == NULL) SWIG_fail; | |
15873 | temp2 = True; | |
15874 | } | |
15875 | { | |
15876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15877 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15878 | ||
15879 | wxPyEndAllowThreads(__tstate); | |
15880 | if (PyErr_Occurred()) SWIG_fail; | |
15881 | } | |
15882 | { | |
15883 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15884 | } | |
15885 | { | |
15886 | if (temp2) | |
15887 | delete arg2; | |
15888 | } | |
15889 | return resultobj; | |
15890 | fail: | |
15891 | { | |
15892 | if (temp2) | |
15893 | delete arg2; | |
15894 | } | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15902 | wxBitmap *arg2 = 0 ; | |
15903 | PyObject * obj0 = 0 ; | |
15904 | PyObject * obj1 = 0 ; | |
15905 | char *kwnames[] = { | |
15906 | (char *) "self",(char *) "bmp", NULL | |
15907 | }; | |
15908 | ||
15909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15914 | SWIG_fail; | |
15915 | if (arg2 == NULL) { | |
15916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15917 | SWIG_fail; | |
15918 | } | |
15919 | { | |
15920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15921 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15922 | ||
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | Py_INCREF(Py_None); resultobj = Py_None; | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15934 | PyObject *resultobj; | |
15935 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15936 | wxBitmap *arg2 = 0 ; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | PyObject * obj1 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self",(char *) "bmp", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15947 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15948 | SWIG_fail; | |
15949 | if (arg2 == NULL) { | |
15950 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
15951 | SWIG_fail; | |
15952 | } | |
15953 | { | |
15954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15955 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15956 | ||
15957 | wxPyEndAllowThreads(__tstate); | |
15958 | if (PyErr_Occurred()) SWIG_fail; | |
15959 | } | |
15960 | Py_INCREF(Py_None); resultobj = Py_None; | |
15961 | return resultobj; | |
15962 | fail: | |
15963 | return NULL; | |
15964 | } | |
15965 | ||
15966 | ||
15967 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15968 | PyObject *resultobj; | |
15969 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15970 | wxString *arg2 = 0 ; | |
15971 | bool temp2 = False ; | |
15972 | PyObject * obj0 = 0 ; | |
15973 | PyObject * obj1 = 0 ; | |
15974 | char *kwnames[] = { | |
15975 | (char *) "self",(char *) "label", NULL | |
15976 | }; | |
15977 | ||
15978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
15980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15981 | { | |
15982 | arg2 = wxString_in_helper(obj1); | |
15983 | if (arg2 == NULL) SWIG_fail; | |
15984 | temp2 = True; | |
15985 | } | |
15986 | { | |
15987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15988 | (arg1)->SetLabel((wxString const &)*arg2); | |
15989 | ||
15990 | wxPyEndAllowThreads(__tstate); | |
15991 | if (PyErr_Occurred()) SWIG_fail; | |
15992 | } | |
15993 | Py_INCREF(Py_None); resultobj = Py_None; | |
15994 | { | |
15995 | if (temp2) | |
15996 | delete arg2; | |
15997 | } | |
15998 | return resultobj; | |
15999 | fail: | |
16000 | { | |
16001 | if (temp2) | |
16002 | delete arg2; | |
16003 | } | |
16004 | return NULL; | |
16005 | } | |
16006 | ||
16007 | ||
16008 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16009 | PyObject *resultobj; | |
16010 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16011 | PyObject * obj0 = 0 ; | |
16012 | char *kwnames[] = { | |
16013 | (char *) "self", NULL | |
16014 | }; | |
16015 | ||
16016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
16017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16019 | { | |
16020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16021 | (arg1)->Detach(); | |
16022 | ||
16023 | wxPyEndAllowThreads(__tstate); | |
16024 | if (PyErr_Occurred()) SWIG_fail; | |
16025 | } | |
16026 | Py_INCREF(Py_None); resultobj = Py_None; | |
16027 | return resultobj; | |
16028 | fail: | |
16029 | return NULL; | |
16030 | } | |
16031 | ||
16032 | ||
16033 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16034 | PyObject *resultobj; | |
16035 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16036 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16037 | PyObject * obj0 = 0 ; | |
16038 | PyObject * obj1 = 0 ; | |
16039 | char *kwnames[] = { | |
16040 | (char *) "self",(char *) "tbar", NULL | |
16041 | }; | |
16042 | ||
16043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
16044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16046 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16048 | { | |
16049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16050 | (arg1)->Attach(arg2); | |
16051 | ||
16052 | wxPyEndAllowThreads(__tstate); | |
16053 | if (PyErr_Occurred()) SWIG_fail; | |
16054 | } | |
16055 | Py_INCREF(Py_None); resultobj = Py_None; | |
16056 | return resultobj; | |
16057 | fail: | |
16058 | return NULL; | |
16059 | } | |
16060 | ||
16061 | ||
16062 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16063 | PyObject *resultobj; | |
16064 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16065 | PyObject *result; | |
16066 | PyObject * obj0 = 0 ; | |
16067 | char *kwnames[] = { | |
16068 | (char *) "self", NULL | |
16069 | }; | |
16070 | ||
16071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
16072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16074 | { | |
16075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16076 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16077 | ||
16078 | wxPyEndAllowThreads(__tstate); | |
16079 | if (PyErr_Occurred()) SWIG_fail; | |
16080 | } | |
16081 | resultobj = result; | |
16082 | return resultobj; | |
16083 | fail: | |
16084 | return NULL; | |
16085 | } | |
16086 | ||
16087 | ||
16088 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16089 | PyObject *resultobj; | |
16090 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16091 | PyObject *arg2 = (PyObject *) 0 ; | |
16092 | PyObject * obj0 = 0 ; | |
16093 | PyObject * obj1 = 0 ; | |
16094 | char *kwnames[] = { | |
16095 | (char *) "self",(char *) "clientData", NULL | |
16096 | }; | |
16097 | ||
16098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
16099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16101 | arg2 = obj1; | |
16102 | { | |
16103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16104 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16105 | ||
16106 | wxPyEndAllowThreads(__tstate); | |
16107 | if (PyErr_Occurred()) SWIG_fail; | |
16108 | } | |
16109 | Py_INCREF(Py_None); resultobj = Py_None; | |
16110 | return resultobj; | |
16111 | fail: | |
16112 | return NULL; | |
16113 | } | |
16114 | ||
16115 | ||
16116 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16117 | PyObject *obj; | |
16118 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16119 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16120 | Py_INCREF(obj); | |
16121 | return Py_BuildValue((char *)""); | |
16122 | } | |
16123 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16124 | PyObject *resultobj; | |
16125 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16126 | int arg2 ; | |
16127 | wxString *arg3 = 0 ; | |
16128 | wxBitmap *arg4 = 0 ; | |
16129 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16130 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16131 | int arg6 = (int) wxITEM_NORMAL ; | |
16132 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16133 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16134 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16135 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16136 | PyObject *arg9 = (PyObject *) NULL ; | |
16137 | wxToolBarToolBase *result; | |
16138 | bool temp3 = False ; | |
16139 | bool temp7 = False ; | |
16140 | bool temp8 = False ; | |
16141 | PyObject * obj0 = 0 ; | |
16142 | PyObject * obj1 = 0 ; | |
16143 | PyObject * obj2 = 0 ; | |
16144 | PyObject * obj3 = 0 ; | |
16145 | PyObject * obj4 = 0 ; | |
16146 | PyObject * obj5 = 0 ; | |
16147 | PyObject * obj6 = 0 ; | |
16148 | PyObject * obj7 = 0 ; | |
16149 | PyObject * obj8 = 0 ; | |
16150 | char *kwnames[] = { | |
16151 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16152 | }; | |
16153 | ||
16154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
16155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16157 | arg2 = (int) SWIG_AsInt(obj1); | |
16158 | if (PyErr_Occurred()) SWIG_fail; | |
16159 | { | |
16160 | arg3 = wxString_in_helper(obj2); | |
16161 | if (arg3 == NULL) SWIG_fail; | |
16162 | temp3 = True; | |
16163 | } | |
16164 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
16165 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16166 | SWIG_fail; | |
16167 | if (arg4 == NULL) { | |
16168 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16169 | SWIG_fail; | |
16170 | } | |
16171 | if (obj4) { | |
16172 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16174 | SWIG_fail; | |
16175 | if (arg5 == NULL) { | |
16176 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16177 | SWIG_fail; | |
16178 | } | |
16179 | } | |
16180 | if (obj5) { | |
16181 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
16182 | if (PyErr_Occurred()) SWIG_fail; | |
16183 | } | |
16184 | if (obj6) { | |
16185 | { | |
16186 | arg7 = wxString_in_helper(obj6); | |
16187 | if (arg7 == NULL) SWIG_fail; | |
16188 | temp7 = True; | |
16189 | } | |
16190 | } | |
16191 | if (obj7) { | |
16192 | { | |
16193 | arg8 = wxString_in_helper(obj7); | |
16194 | if (arg8 == NULL) SWIG_fail; | |
16195 | temp8 = True; | |
16196 | } | |
16197 | } | |
16198 | if (obj8) { | |
16199 | arg9 = obj8; | |
16200 | } | |
16201 | { | |
16202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16203 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16204 | ||
16205 | wxPyEndAllowThreads(__tstate); | |
16206 | if (PyErr_Occurred()) SWIG_fail; | |
16207 | } | |
16208 | { | |
16209 | resultobj = wxPyMake_wxObject(result); | |
16210 | } | |
16211 | { | |
16212 | if (temp3) | |
16213 | delete arg3; | |
16214 | } | |
16215 | { | |
16216 | if (temp7) | |
16217 | delete arg7; | |
16218 | } | |
16219 | { | |
16220 | if (temp8) | |
16221 | delete arg8; | |
16222 | } | |
16223 | return resultobj; | |
16224 | fail: | |
16225 | { | |
16226 | if (temp3) | |
16227 | delete arg3; | |
16228 | } | |
16229 | { | |
16230 | if (temp7) | |
16231 | delete arg7; | |
16232 | } | |
16233 | { | |
16234 | if (temp8) | |
16235 | delete arg8; | |
16236 | } | |
16237 | return NULL; | |
16238 | } | |
16239 | ||
16240 | ||
16241 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16242 | PyObject *resultobj; | |
16243 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16244 | size_t arg2 ; | |
16245 | int arg3 ; | |
16246 | wxString *arg4 = 0 ; | |
16247 | wxBitmap *arg5 = 0 ; | |
16248 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16249 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16250 | int arg7 = (int) wxITEM_NORMAL ; | |
16251 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16252 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16253 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16254 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16255 | PyObject *arg10 = (PyObject *) NULL ; | |
16256 | wxToolBarToolBase *result; | |
16257 | bool temp4 = False ; | |
16258 | bool temp8 = False ; | |
16259 | bool temp9 = False ; | |
16260 | PyObject * obj0 = 0 ; | |
16261 | PyObject * obj1 = 0 ; | |
16262 | PyObject * obj2 = 0 ; | |
16263 | PyObject * obj3 = 0 ; | |
16264 | PyObject * obj4 = 0 ; | |
16265 | PyObject * obj5 = 0 ; | |
16266 | PyObject * obj6 = 0 ; | |
16267 | PyObject * obj7 = 0 ; | |
16268 | PyObject * obj8 = 0 ; | |
16269 | PyObject * obj9 = 0 ; | |
16270 | char *kwnames[] = { | |
16271 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16272 | }; | |
16273 | ||
16274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
16275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16277 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16278 | if (PyErr_Occurred()) SWIG_fail; | |
16279 | arg3 = (int) SWIG_AsInt(obj2); | |
16280 | if (PyErr_Occurred()) SWIG_fail; | |
16281 | { | |
16282 | arg4 = wxString_in_helper(obj3); | |
16283 | if (arg4 == NULL) SWIG_fail; | |
16284 | temp4 = True; | |
16285 | } | |
16286 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16287 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16288 | SWIG_fail; | |
16289 | if (arg5 == NULL) { | |
16290 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16291 | SWIG_fail; | |
16292 | } | |
16293 | if (obj5) { | |
16294 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
16295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16296 | SWIG_fail; | |
16297 | if (arg6 == NULL) { | |
16298 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16299 | SWIG_fail; | |
16300 | } | |
16301 | } | |
16302 | if (obj6) { | |
16303 | arg7 = (wxItemKind) SWIG_AsInt(obj6); | |
16304 | if (PyErr_Occurred()) SWIG_fail; | |
16305 | } | |
16306 | if (obj7) { | |
16307 | { | |
16308 | arg8 = wxString_in_helper(obj7); | |
16309 | if (arg8 == NULL) SWIG_fail; | |
16310 | temp8 = True; | |
16311 | } | |
16312 | } | |
16313 | if (obj8) { | |
16314 | { | |
16315 | arg9 = wxString_in_helper(obj8); | |
16316 | if (arg9 == NULL) SWIG_fail; | |
16317 | temp9 = True; | |
16318 | } | |
16319 | } | |
16320 | if (obj9) { | |
16321 | arg10 = obj9; | |
16322 | } | |
16323 | { | |
16324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16325 | result = (wxToolBarToolBase *)wxToolBarBase_DoInsertTool(arg1,arg2,arg3,(wxString const &)*arg4,(wxBitmap const &)*arg5,(wxBitmap const &)*arg6,(wxItemKind )arg7,(wxString const &)*arg8,(wxString const &)*arg9,arg10); | |
16326 | ||
16327 | wxPyEndAllowThreads(__tstate); | |
16328 | if (PyErr_Occurred()) SWIG_fail; | |
16329 | } | |
16330 | { | |
16331 | resultobj = wxPyMake_wxObject(result); | |
16332 | } | |
16333 | { | |
16334 | if (temp4) | |
16335 | delete arg4; | |
16336 | } | |
16337 | { | |
16338 | if (temp8) | |
16339 | delete arg8; | |
16340 | } | |
16341 | { | |
16342 | if (temp9) | |
16343 | delete arg9; | |
16344 | } | |
16345 | return resultobj; | |
16346 | fail: | |
16347 | { | |
16348 | if (temp4) | |
16349 | delete arg4; | |
16350 | } | |
16351 | { | |
16352 | if (temp8) | |
16353 | delete arg8; | |
16354 | } | |
16355 | { | |
16356 | if (temp9) | |
16357 | delete arg9; | |
16358 | } | |
16359 | return NULL; | |
16360 | } | |
16361 | ||
16362 | ||
16363 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16364 | PyObject *resultobj; | |
16365 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16366 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16367 | wxToolBarToolBase *result; | |
16368 | PyObject * obj0 = 0 ; | |
16369 | PyObject * obj1 = 0 ; | |
16370 | char *kwnames[] = { | |
16371 | (char *) "self",(char *) "tool", NULL | |
16372 | }; | |
16373 | ||
16374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
16375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16377 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | { | |
16380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16381 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16382 | ||
16383 | wxPyEndAllowThreads(__tstate); | |
16384 | if (PyErr_Occurred()) SWIG_fail; | |
16385 | } | |
16386 | { | |
16387 | resultobj = wxPyMake_wxObject(result); | |
16388 | } | |
16389 | return resultobj; | |
16390 | fail: | |
16391 | return NULL; | |
16392 | } | |
16393 | ||
16394 | ||
16395 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16396 | PyObject *resultobj; | |
16397 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16398 | size_t arg2 ; | |
16399 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16400 | wxToolBarToolBase *result; | |
16401 | PyObject * obj0 = 0 ; | |
16402 | PyObject * obj1 = 0 ; | |
16403 | PyObject * obj2 = 0 ; | |
16404 | char *kwnames[] = { | |
16405 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16406 | }; | |
16407 | ||
16408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16411 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16412 | if (PyErr_Occurred()) SWIG_fail; | |
16413 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16415 | { | |
16416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16417 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16418 | ||
16419 | wxPyEndAllowThreads(__tstate); | |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
16421 | } | |
16422 | { | |
16423 | resultobj = wxPyMake_wxObject(result); | |
16424 | } | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16434 | wxControl *arg2 = (wxControl *) 0 ; | |
16435 | wxToolBarToolBase *result; | |
16436 | PyObject * obj0 = 0 ; | |
16437 | PyObject * obj1 = 0 ; | |
16438 | char *kwnames[] = { | |
16439 | (char *) "self",(char *) "control", NULL | |
16440 | }; | |
16441 | ||
16442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
16443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16447 | { | |
16448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16449 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16450 | ||
16451 | wxPyEndAllowThreads(__tstate); | |
16452 | if (PyErr_Occurred()) SWIG_fail; | |
16453 | } | |
16454 | { | |
16455 | resultobj = wxPyMake_wxObject(result); | |
16456 | } | |
16457 | return resultobj; | |
16458 | fail: | |
16459 | return NULL; | |
16460 | } | |
16461 | ||
16462 | ||
16463 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16464 | PyObject *resultobj; | |
16465 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16466 | size_t arg2 ; | |
16467 | wxControl *arg3 = (wxControl *) 0 ; | |
16468 | wxToolBarToolBase *result; | |
16469 | PyObject * obj0 = 0 ; | |
16470 | PyObject * obj1 = 0 ; | |
16471 | PyObject * obj2 = 0 ; | |
16472 | char *kwnames[] = { | |
16473 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16474 | }; | |
16475 | ||
16476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16479 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16480 | if (PyErr_Occurred()) SWIG_fail; | |
16481 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16483 | { | |
16484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16485 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16486 | ||
16487 | wxPyEndAllowThreads(__tstate); | |
16488 | if (PyErr_Occurred()) SWIG_fail; | |
16489 | } | |
16490 | { | |
16491 | resultobj = wxPyMake_wxObject(result); | |
16492 | } | |
16493 | return resultobj; | |
16494 | fail: | |
16495 | return NULL; | |
16496 | } | |
16497 | ||
16498 | ||
16499 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16500 | PyObject *resultobj; | |
16501 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16502 | int arg2 ; | |
16503 | wxControl *result; | |
16504 | PyObject * obj0 = 0 ; | |
16505 | PyObject * obj1 = 0 ; | |
16506 | char *kwnames[] = { | |
16507 | (char *) "self",(char *) "id", NULL | |
16508 | }; | |
16509 | ||
16510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
16511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16513 | arg2 = (int) SWIG_AsInt(obj1); | |
16514 | if (PyErr_Occurred()) SWIG_fail; | |
16515 | { | |
16516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16517 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16518 | ||
16519 | wxPyEndAllowThreads(__tstate); | |
16520 | if (PyErr_Occurred()) SWIG_fail; | |
16521 | } | |
16522 | { | |
16523 | resultobj = wxPyMake_wxObject(result); | |
16524 | } | |
16525 | return resultobj; | |
16526 | fail: | |
16527 | return NULL; | |
16528 | } | |
16529 | ||
16530 | ||
16531 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16532 | PyObject *resultobj; | |
16533 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16534 | wxToolBarToolBase *result; | |
16535 | PyObject * obj0 = 0 ; | |
16536 | char *kwnames[] = { | |
16537 | (char *) "self", NULL | |
16538 | }; | |
16539 | ||
16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16543 | { | |
16544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16545 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16546 | ||
16547 | wxPyEndAllowThreads(__tstate); | |
16548 | if (PyErr_Occurred()) SWIG_fail; | |
16549 | } | |
16550 | { | |
16551 | resultobj = wxPyMake_wxObject(result); | |
16552 | } | |
16553 | return resultobj; | |
16554 | fail: | |
16555 | return NULL; | |
16556 | } | |
16557 | ||
16558 | ||
16559 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16560 | PyObject *resultobj; | |
16561 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16562 | size_t arg2 ; | |
16563 | wxToolBarToolBase *result; | |
16564 | PyObject * obj0 = 0 ; | |
16565 | PyObject * obj1 = 0 ; | |
16566 | char *kwnames[] = { | |
16567 | (char *) "self",(char *) "pos", NULL | |
16568 | }; | |
16569 | ||
16570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
16571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16573 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | { | |
16576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16577 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16578 | ||
16579 | wxPyEndAllowThreads(__tstate); | |
16580 | if (PyErr_Occurred()) SWIG_fail; | |
16581 | } | |
16582 | { | |
16583 | resultobj = wxPyMake_wxObject(result); | |
16584 | } | |
16585 | return resultobj; | |
16586 | fail: | |
16587 | return NULL; | |
16588 | } | |
16589 | ||
16590 | ||
16591 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16592 | PyObject *resultobj; | |
16593 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16594 | int arg2 ; | |
16595 | wxToolBarToolBase *result; | |
16596 | PyObject * obj0 = 0 ; | |
16597 | PyObject * obj1 = 0 ; | |
16598 | char *kwnames[] = { | |
16599 | (char *) "self",(char *) "id", NULL | |
16600 | }; | |
16601 | ||
16602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
16603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16605 | arg2 = (int) SWIG_AsInt(obj1); | |
16606 | if (PyErr_Occurred()) SWIG_fail; | |
16607 | { | |
16608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16609 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16610 | ||
16611 | wxPyEndAllowThreads(__tstate); | |
16612 | if (PyErr_Occurred()) SWIG_fail; | |
16613 | } | |
16614 | { | |
16615 | resultobj = wxPyMake_wxObject(result); | |
16616 | } | |
16617 | return resultobj; | |
16618 | fail: | |
16619 | return NULL; | |
16620 | } | |
16621 | ||
16622 | ||
16623 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16624 | PyObject *resultobj; | |
16625 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16626 | size_t arg2 ; | |
16627 | bool result; | |
16628 | PyObject * obj0 = 0 ; | |
16629 | PyObject * obj1 = 0 ; | |
16630 | char *kwnames[] = { | |
16631 | (char *) "self",(char *) "pos", NULL | |
16632 | }; | |
16633 | ||
16634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
16635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16637 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16638 | if (PyErr_Occurred()) SWIG_fail; | |
16639 | { | |
16640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16641 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16642 | ||
16643 | wxPyEndAllowThreads(__tstate); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | } | |
16646 | { | |
16647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16648 | } | |
16649 | return resultobj; | |
16650 | fail: | |
16651 | return NULL; | |
16652 | } | |
16653 | ||
16654 | ||
16655 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16656 | PyObject *resultobj; | |
16657 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16658 | int arg2 ; | |
16659 | bool result; | |
16660 | PyObject * obj0 = 0 ; | |
16661 | PyObject * obj1 = 0 ; | |
16662 | char *kwnames[] = { | |
16663 | (char *) "self",(char *) "id", NULL | |
16664 | }; | |
16665 | ||
16666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
16667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16669 | arg2 = (int) SWIG_AsInt(obj1); | |
16670 | if (PyErr_Occurred()) SWIG_fail; | |
16671 | { | |
16672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16673 | result = (bool)(arg1)->DeleteTool(arg2); | |
16674 | ||
16675 | wxPyEndAllowThreads(__tstate); | |
16676 | if (PyErr_Occurred()) SWIG_fail; | |
16677 | } | |
16678 | { | |
16679 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16680 | } | |
16681 | return resultobj; | |
16682 | fail: | |
16683 | return NULL; | |
16684 | } | |
16685 | ||
16686 | ||
16687 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16688 | PyObject *resultobj; | |
16689 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | char *kwnames[] = { | |
16692 | (char *) "self", NULL | |
16693 | }; | |
16694 | ||
16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
16696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16698 | { | |
16699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16700 | (arg1)->ClearTools(); | |
16701 | ||
16702 | wxPyEndAllowThreads(__tstate); | |
16703 | if (PyErr_Occurred()) SWIG_fail; | |
16704 | } | |
16705 | Py_INCREF(Py_None); resultobj = Py_None; | |
16706 | return resultobj; | |
16707 | fail: | |
16708 | return NULL; | |
16709 | } | |
16710 | ||
16711 | ||
16712 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16713 | PyObject *resultobj; | |
16714 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16715 | bool result; | |
16716 | PyObject * obj0 = 0 ; | |
16717 | char *kwnames[] = { | |
16718 | (char *) "self", NULL | |
16719 | }; | |
16720 | ||
16721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
16722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16724 | { | |
16725 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16726 | result = (bool)(arg1)->Realize(); | |
16727 | ||
16728 | wxPyEndAllowThreads(__tstate); | |
16729 | if (PyErr_Occurred()) SWIG_fail; | |
16730 | } | |
16731 | { | |
16732 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16733 | } | |
16734 | return resultobj; | |
16735 | fail: | |
16736 | return NULL; | |
16737 | } | |
16738 | ||
16739 | ||
16740 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16741 | PyObject *resultobj; | |
16742 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16743 | int arg2 ; | |
16744 | bool arg3 ; | |
16745 | PyObject * obj0 = 0 ; | |
16746 | PyObject * obj1 = 0 ; | |
16747 | PyObject * obj2 = 0 ; | |
16748 | char *kwnames[] = { | |
16749 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16750 | }; | |
16751 | ||
16752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16755 | arg2 = (int) SWIG_AsInt(obj1); | |
16756 | if (PyErr_Occurred()) SWIG_fail; | |
16757 | arg3 = (bool) SWIG_AsBool(obj2); | |
16758 | if (PyErr_Occurred()) SWIG_fail; | |
16759 | { | |
16760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16761 | (arg1)->EnableTool(arg2,arg3); | |
16762 | ||
16763 | wxPyEndAllowThreads(__tstate); | |
16764 | if (PyErr_Occurred()) SWIG_fail; | |
16765 | } | |
16766 | Py_INCREF(Py_None); resultobj = Py_None; | |
16767 | return resultobj; | |
16768 | fail: | |
16769 | return NULL; | |
16770 | } | |
16771 | ||
16772 | ||
16773 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16774 | PyObject *resultobj; | |
16775 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16776 | int arg2 ; | |
16777 | bool arg3 ; | |
16778 | PyObject * obj0 = 0 ; | |
16779 | PyObject * obj1 = 0 ; | |
16780 | PyObject * obj2 = 0 ; | |
16781 | char *kwnames[] = { | |
16782 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16783 | }; | |
16784 | ||
16785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16788 | arg2 = (int) SWIG_AsInt(obj1); | |
16789 | if (PyErr_Occurred()) SWIG_fail; | |
16790 | arg3 = (bool) SWIG_AsBool(obj2); | |
16791 | if (PyErr_Occurred()) SWIG_fail; | |
16792 | { | |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | (arg1)->ToggleTool(arg2,arg3); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
16798 | } | |
16799 | Py_INCREF(Py_None); resultobj = Py_None; | |
16800 | return resultobj; | |
16801 | fail: | |
16802 | return NULL; | |
16803 | } | |
16804 | ||
16805 | ||
16806 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16807 | PyObject *resultobj; | |
16808 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16809 | int arg2 ; | |
16810 | bool arg3 ; | |
16811 | PyObject * obj0 = 0 ; | |
16812 | PyObject * obj1 = 0 ; | |
16813 | PyObject * obj2 = 0 ; | |
16814 | char *kwnames[] = { | |
16815 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16816 | }; | |
16817 | ||
16818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16821 | arg2 = (int) SWIG_AsInt(obj1); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | arg3 = (bool) SWIG_AsBool(obj2); | |
16824 | if (PyErr_Occurred()) SWIG_fail; | |
16825 | { | |
16826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16827 | (arg1)->SetToggle(arg2,arg3); | |
16828 | ||
16829 | wxPyEndAllowThreads(__tstate); | |
16830 | if (PyErr_Occurred()) SWIG_fail; | |
16831 | } | |
16832 | Py_INCREF(Py_None); resultobj = Py_None; | |
16833 | return resultobj; | |
16834 | fail: | |
16835 | return NULL; | |
16836 | } | |
16837 | ||
16838 | ||
16839 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16840 | PyObject *resultobj; | |
16841 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16842 | int arg2 ; | |
16843 | PyObject *result; | |
16844 | PyObject * obj0 = 0 ; | |
16845 | PyObject * obj1 = 0 ; | |
16846 | char *kwnames[] = { | |
16847 | (char *) "self",(char *) "id", NULL | |
16848 | }; | |
16849 | ||
16850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
16851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16853 | arg2 = (int) SWIG_AsInt(obj1); | |
16854 | if (PyErr_Occurred()) SWIG_fail; | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | resultobj = result; | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16870 | PyObject *resultobj; | |
16871 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16872 | int arg2 ; | |
16873 | PyObject *arg3 = (PyObject *) 0 ; | |
16874 | PyObject * obj0 = 0 ; | |
16875 | PyObject * obj1 = 0 ; | |
16876 | PyObject * obj2 = 0 ; | |
16877 | char *kwnames[] = { | |
16878 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16879 | }; | |
16880 | ||
16881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
16882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16884 | arg2 = (int) SWIG_AsInt(obj1); | |
16885 | if (PyErr_Occurred()) SWIG_fail; | |
16886 | arg3 = obj2; | |
16887 | { | |
16888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16889 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16890 | ||
16891 | wxPyEndAllowThreads(__tstate); | |
16892 | if (PyErr_Occurred()) SWIG_fail; | |
16893 | } | |
16894 | Py_INCREF(Py_None); resultobj = Py_None; | |
16895 | return resultobj; | |
16896 | fail: | |
16897 | return NULL; | |
16898 | } | |
16899 | ||
16900 | ||
16901 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16902 | PyObject *resultobj; | |
16903 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16904 | int arg2 ; | |
16905 | int result; | |
16906 | PyObject * obj0 = 0 ; | |
16907 | PyObject * obj1 = 0 ; | |
16908 | char *kwnames[] = { | |
16909 | (char *) "self",(char *) "id", NULL | |
16910 | }; | |
16911 | ||
16912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
16913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16915 | arg2 = (int) SWIG_AsInt(obj1); | |
16916 | if (PyErr_Occurred()) SWIG_fail; | |
16917 | { | |
16918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16919 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16920 | ||
16921 | wxPyEndAllowThreads(__tstate); | |
16922 | if (PyErr_Occurred()) SWIG_fail; | |
16923 | } | |
16924 | resultobj = SWIG_FromInt((int)result); | |
16925 | return resultobj; | |
16926 | fail: | |
16927 | return NULL; | |
16928 | } | |
16929 | ||
16930 | ||
16931 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16932 | PyObject *resultobj; | |
16933 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16934 | int arg2 ; | |
16935 | bool result; | |
16936 | PyObject * obj0 = 0 ; | |
16937 | PyObject * obj1 = 0 ; | |
16938 | char *kwnames[] = { | |
16939 | (char *) "self",(char *) "id", NULL | |
16940 | }; | |
16941 | ||
16942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
16943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16945 | arg2 = (int) SWIG_AsInt(obj1); | |
16946 | if (PyErr_Occurred()) SWIG_fail; | |
16947 | { | |
16948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16949 | result = (bool)(arg1)->GetToolState(arg2); | |
16950 | ||
16951 | wxPyEndAllowThreads(__tstate); | |
16952 | if (PyErr_Occurred()) SWIG_fail; | |
16953 | } | |
16954 | { | |
16955 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16956 | } | |
16957 | return resultobj; | |
16958 | fail: | |
16959 | return NULL; | |
16960 | } | |
16961 | ||
16962 | ||
16963 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16964 | PyObject *resultobj; | |
16965 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16966 | int arg2 ; | |
16967 | bool result; | |
16968 | PyObject * obj0 = 0 ; | |
16969 | PyObject * obj1 = 0 ; | |
16970 | char *kwnames[] = { | |
16971 | (char *) "self",(char *) "id", NULL | |
16972 | }; | |
16973 | ||
16974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
16975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16977 | arg2 = (int) SWIG_AsInt(obj1); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
16979 | { | |
16980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16981 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16982 | ||
16983 | wxPyEndAllowThreads(__tstate); | |
16984 | if (PyErr_Occurred()) SWIG_fail; | |
16985 | } | |
16986 | { | |
16987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16988 | } | |
16989 | return resultobj; | |
16990 | fail: | |
16991 | return NULL; | |
16992 | } | |
16993 | ||
16994 | ||
16995 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16996 | PyObject *resultobj; | |
16997 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16998 | int arg2 ; | |
16999 | wxString *arg3 = 0 ; | |
17000 | bool temp3 = False ; | |
17001 | PyObject * obj0 = 0 ; | |
17002 | PyObject * obj1 = 0 ; | |
17003 | PyObject * obj2 = 0 ; | |
17004 | char *kwnames[] = { | |
17005 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17006 | }; | |
17007 | ||
17008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17011 | arg2 = (int) SWIG_AsInt(obj1); | |
17012 | if (PyErr_Occurred()) SWIG_fail; | |
17013 | { | |
17014 | arg3 = wxString_in_helper(obj2); | |
17015 | if (arg3 == NULL) SWIG_fail; | |
17016 | temp3 = True; | |
17017 | } | |
17018 | { | |
17019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17020 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17021 | ||
17022 | wxPyEndAllowThreads(__tstate); | |
17023 | if (PyErr_Occurred()) SWIG_fail; | |
17024 | } | |
17025 | Py_INCREF(Py_None); resultobj = Py_None; | |
17026 | { | |
17027 | if (temp3) | |
17028 | delete arg3; | |
17029 | } | |
17030 | return resultobj; | |
17031 | fail: | |
17032 | { | |
17033 | if (temp3) | |
17034 | delete arg3; | |
17035 | } | |
17036 | return NULL; | |
17037 | } | |
17038 | ||
17039 | ||
17040 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17041 | PyObject *resultobj; | |
17042 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17043 | int arg2 ; | |
17044 | wxString result; | |
17045 | PyObject * obj0 = 0 ; | |
17046 | PyObject * obj1 = 0 ; | |
17047 | char *kwnames[] = { | |
17048 | (char *) "self",(char *) "id", NULL | |
17049 | }; | |
17050 | ||
17051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17054 | arg2 = (int) SWIG_AsInt(obj1); | |
17055 | if (PyErr_Occurred()) SWIG_fail; | |
17056 | { | |
17057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17058 | result = (arg1)->GetToolShortHelp(arg2); | |
17059 | ||
17060 | wxPyEndAllowThreads(__tstate); | |
17061 | if (PyErr_Occurred()) SWIG_fail; | |
17062 | } | |
17063 | { | |
17064 | #if wxUSE_UNICODE | |
17065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17066 | #else | |
17067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17068 | #endif | |
17069 | } | |
17070 | return resultobj; | |
17071 | fail: | |
17072 | return NULL; | |
17073 | } | |
17074 | ||
17075 | ||
17076 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17077 | PyObject *resultobj; | |
17078 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17079 | int arg2 ; | |
17080 | wxString *arg3 = 0 ; | |
17081 | bool temp3 = False ; | |
17082 | PyObject * obj0 = 0 ; | |
17083 | PyObject * obj1 = 0 ; | |
17084 | PyObject * obj2 = 0 ; | |
17085 | char *kwnames[] = { | |
17086 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17087 | }; | |
17088 | ||
17089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17092 | arg2 = (int) SWIG_AsInt(obj1); | |
17093 | if (PyErr_Occurred()) SWIG_fail; | |
17094 | { | |
17095 | arg3 = wxString_in_helper(obj2); | |
17096 | if (arg3 == NULL) SWIG_fail; | |
17097 | temp3 = True; | |
17098 | } | |
17099 | { | |
17100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17101 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17102 | ||
17103 | wxPyEndAllowThreads(__tstate); | |
17104 | if (PyErr_Occurred()) SWIG_fail; | |
17105 | } | |
17106 | Py_INCREF(Py_None); resultobj = Py_None; | |
17107 | { | |
17108 | if (temp3) | |
17109 | delete arg3; | |
17110 | } | |
17111 | return resultobj; | |
17112 | fail: | |
17113 | { | |
17114 | if (temp3) | |
17115 | delete arg3; | |
17116 | } | |
17117 | return NULL; | |
17118 | } | |
17119 | ||
17120 | ||
17121 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17122 | PyObject *resultobj; | |
17123 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17124 | int arg2 ; | |
17125 | wxString result; | |
17126 | PyObject * obj0 = 0 ; | |
17127 | PyObject * obj1 = 0 ; | |
17128 | char *kwnames[] = { | |
17129 | (char *) "self",(char *) "id", NULL | |
17130 | }; | |
17131 | ||
17132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17135 | arg2 = (int) SWIG_AsInt(obj1); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
17137 | { | |
17138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17139 | result = (arg1)->GetToolLongHelp(arg2); | |
17140 | ||
17141 | wxPyEndAllowThreads(__tstate); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | } | |
17144 | { | |
17145 | #if wxUSE_UNICODE | |
17146 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17147 | #else | |
17148 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17149 | #endif | |
17150 | } | |
17151 | return resultobj; | |
17152 | fail: | |
17153 | return NULL; | |
17154 | } | |
17155 | ||
17156 | ||
17157 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17158 | PyObject *resultobj; | |
17159 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17160 | int arg2 ; | |
17161 | int arg3 ; | |
17162 | PyObject * obj0 = 0 ; | |
17163 | PyObject * obj1 = 0 ; | |
17164 | PyObject * obj2 = 0 ; | |
17165 | char *kwnames[] = { | |
17166 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17167 | }; | |
17168 | ||
17169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17172 | arg2 = (int) SWIG_AsInt(obj1); | |
17173 | if (PyErr_Occurred()) SWIG_fail; | |
17174 | arg3 = (int) SWIG_AsInt(obj2); | |
17175 | if (PyErr_Occurred()) SWIG_fail; | |
17176 | { | |
17177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17178 | (arg1)->SetMargins(arg2,arg3); | |
17179 | ||
17180 | wxPyEndAllowThreads(__tstate); | |
17181 | if (PyErr_Occurred()) SWIG_fail; | |
17182 | } | |
17183 | Py_INCREF(Py_None); resultobj = Py_None; | |
17184 | return resultobj; | |
17185 | fail: | |
17186 | return NULL; | |
17187 | } | |
17188 | ||
17189 | ||
17190 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17191 | PyObject *resultobj; | |
17192 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17193 | wxSize *arg2 = 0 ; | |
17194 | wxSize temp2 ; | |
17195 | PyObject * obj0 = 0 ; | |
17196 | PyObject * obj1 = 0 ; | |
17197 | char *kwnames[] = { | |
17198 | (char *) "self",(char *) "size", NULL | |
17199 | }; | |
17200 | ||
17201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
17202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17204 | { | |
17205 | arg2 = &temp2; | |
17206 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17207 | } | |
17208 | { | |
17209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17210 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17211 | ||
17212 | wxPyEndAllowThreads(__tstate); | |
17213 | if (PyErr_Occurred()) SWIG_fail; | |
17214 | } | |
17215 | Py_INCREF(Py_None); resultobj = Py_None; | |
17216 | return resultobj; | |
17217 | fail: | |
17218 | return NULL; | |
17219 | } | |
17220 | ||
17221 | ||
17222 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17223 | PyObject *resultobj; | |
17224 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17225 | int arg2 ; | |
17226 | PyObject * obj0 = 0 ; | |
17227 | PyObject * obj1 = 0 ; | |
17228 | char *kwnames[] = { | |
17229 | (char *) "self",(char *) "packing", NULL | |
17230 | }; | |
17231 | ||
17232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
17233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17235 | arg2 = (int) SWIG_AsInt(obj1); | |
17236 | if (PyErr_Occurred()) SWIG_fail; | |
17237 | { | |
17238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17239 | (arg1)->SetToolPacking(arg2); | |
17240 | ||
17241 | wxPyEndAllowThreads(__tstate); | |
17242 | if (PyErr_Occurred()) SWIG_fail; | |
17243 | } | |
17244 | Py_INCREF(Py_None); resultobj = Py_None; | |
17245 | return resultobj; | |
17246 | fail: | |
17247 | return NULL; | |
17248 | } | |
17249 | ||
17250 | ||
17251 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17252 | PyObject *resultobj; | |
17253 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17254 | int arg2 ; | |
17255 | PyObject * obj0 = 0 ; | |
17256 | PyObject * obj1 = 0 ; | |
17257 | char *kwnames[] = { | |
17258 | (char *) "self",(char *) "separation", NULL | |
17259 | }; | |
17260 | ||
17261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
17262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17264 | arg2 = (int) SWIG_AsInt(obj1); | |
17265 | if (PyErr_Occurred()) SWIG_fail; | |
17266 | { | |
17267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17268 | (arg1)->SetToolSeparation(arg2); | |
17269 | ||
17270 | wxPyEndAllowThreads(__tstate); | |
17271 | if (PyErr_Occurred()) SWIG_fail; | |
17272 | } | |
17273 | Py_INCREF(Py_None); resultobj = Py_None; | |
17274 | return resultobj; | |
17275 | fail: | |
17276 | return NULL; | |
17277 | } | |
17278 | ||
17279 | ||
17280 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17281 | PyObject *resultobj; | |
17282 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17283 | wxSize result; | |
17284 | PyObject * obj0 = 0 ; | |
17285 | char *kwnames[] = { | |
17286 | (char *) "self", NULL | |
17287 | }; | |
17288 | ||
17289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
17290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17292 | { | |
17293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17294 | result = (arg1)->GetToolMargins(); | |
17295 | ||
17296 | wxPyEndAllowThreads(__tstate); | |
17297 | if (PyErr_Occurred()) SWIG_fail; | |
17298 | } | |
17299 | { | |
17300 | wxSize * resultptr; | |
17301 | resultptr = new wxSize((wxSize &) result); | |
17302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17303 | } | |
17304 | return resultobj; | |
17305 | fail: | |
17306 | return NULL; | |
17307 | } | |
17308 | ||
17309 | ||
17310 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17311 | PyObject *resultobj; | |
17312 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17313 | wxSize result; | |
17314 | PyObject * obj0 = 0 ; | |
17315 | char *kwnames[] = { | |
17316 | (char *) "self", NULL | |
17317 | }; | |
17318 | ||
17319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
17320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17322 | { | |
17323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17324 | result = (arg1)->GetMargins(); | |
17325 | ||
17326 | wxPyEndAllowThreads(__tstate); | |
17327 | if (PyErr_Occurred()) SWIG_fail; | |
17328 | } | |
17329 | { | |
17330 | wxSize * resultptr; | |
17331 | resultptr = new wxSize((wxSize &) result); | |
17332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17333 | } | |
17334 | return resultobj; | |
17335 | fail: | |
17336 | return NULL; | |
17337 | } | |
17338 | ||
17339 | ||
17340 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17341 | PyObject *resultobj; | |
17342 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17343 | int result; | |
17344 | PyObject * obj0 = 0 ; | |
17345 | char *kwnames[] = { | |
17346 | (char *) "self", NULL | |
17347 | }; | |
17348 | ||
17349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
17350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17352 | { | |
17353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17354 | result = (int)(arg1)->GetToolPacking(); | |
17355 | ||
17356 | wxPyEndAllowThreads(__tstate); | |
17357 | if (PyErr_Occurred()) SWIG_fail; | |
17358 | } | |
17359 | resultobj = SWIG_FromInt((int)result); | |
17360 | return resultobj; | |
17361 | fail: | |
17362 | return NULL; | |
17363 | } | |
17364 | ||
17365 | ||
17366 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17367 | PyObject *resultobj; | |
17368 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17369 | int result; | |
17370 | PyObject * obj0 = 0 ; | |
17371 | char *kwnames[] = { | |
17372 | (char *) "self", NULL | |
17373 | }; | |
17374 | ||
17375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
17376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17378 | { | |
17379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17380 | result = (int)(arg1)->GetToolSeparation(); | |
17381 | ||
17382 | wxPyEndAllowThreads(__tstate); | |
17383 | if (PyErr_Occurred()) SWIG_fail; | |
17384 | } | |
17385 | resultobj = SWIG_FromInt((int)result); | |
17386 | return resultobj; | |
17387 | fail: | |
17388 | return NULL; | |
17389 | } | |
17390 | ||
17391 | ||
17392 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17393 | PyObject *resultobj; | |
17394 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17395 | int arg2 ; | |
17396 | PyObject * obj0 = 0 ; | |
17397 | PyObject * obj1 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self",(char *) "nRows", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
17403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17405 | arg2 = (int) SWIG_AsInt(obj1); | |
17406 | if (PyErr_Occurred()) SWIG_fail; | |
17407 | { | |
17408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17409 | (arg1)->SetRows(arg2); | |
17410 | ||
17411 | wxPyEndAllowThreads(__tstate); | |
17412 | if (PyErr_Occurred()) SWIG_fail; | |
17413 | } | |
17414 | Py_INCREF(Py_None); resultobj = Py_None; | |
17415 | return resultobj; | |
17416 | fail: | |
17417 | return NULL; | |
17418 | } | |
17419 | ||
17420 | ||
17421 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17422 | PyObject *resultobj; | |
17423 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17424 | int arg2 ; | |
17425 | int arg3 ; | |
17426 | PyObject * obj0 = 0 ; | |
17427 | PyObject * obj1 = 0 ; | |
17428 | PyObject * obj2 = 0 ; | |
17429 | char *kwnames[] = { | |
17430 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17431 | }; | |
17432 | ||
17433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17436 | arg2 = (int) SWIG_AsInt(obj1); | |
17437 | if (PyErr_Occurred()) SWIG_fail; | |
17438 | arg3 = (int) SWIG_AsInt(obj2); | |
17439 | if (PyErr_Occurred()) SWIG_fail; | |
17440 | { | |
17441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17442 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17443 | ||
17444 | wxPyEndAllowThreads(__tstate); | |
17445 | if (PyErr_Occurred()) SWIG_fail; | |
17446 | } | |
17447 | Py_INCREF(Py_None); resultobj = Py_None; | |
17448 | return resultobj; | |
17449 | fail: | |
17450 | return NULL; | |
17451 | } | |
17452 | ||
17453 | ||
17454 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17455 | PyObject *resultobj; | |
17456 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17457 | int result; | |
17458 | PyObject * obj0 = 0 ; | |
17459 | char *kwnames[] = { | |
17460 | (char *) "self", NULL | |
17461 | }; | |
17462 | ||
17463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
17464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17466 | { | |
17467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17468 | result = (int)(arg1)->GetMaxRows(); | |
17469 | ||
17470 | wxPyEndAllowThreads(__tstate); | |
17471 | if (PyErr_Occurred()) SWIG_fail; | |
17472 | } | |
17473 | resultobj = SWIG_FromInt((int)result); | |
17474 | return resultobj; | |
17475 | fail: | |
17476 | return NULL; | |
17477 | } | |
17478 | ||
17479 | ||
17480 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17481 | PyObject *resultobj; | |
17482 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17483 | int result; | |
17484 | PyObject * obj0 = 0 ; | |
17485 | char *kwnames[] = { | |
17486 | (char *) "self", NULL | |
17487 | }; | |
17488 | ||
17489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
17490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17492 | { | |
17493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17494 | result = (int)(arg1)->GetMaxCols(); | |
17495 | ||
17496 | wxPyEndAllowThreads(__tstate); | |
17497 | if (PyErr_Occurred()) SWIG_fail; | |
17498 | } | |
17499 | resultobj = SWIG_FromInt((int)result); | |
17500 | return resultobj; | |
17501 | fail: | |
17502 | return NULL; | |
17503 | } | |
17504 | ||
17505 | ||
17506 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17507 | PyObject *resultobj; | |
17508 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17509 | wxSize *arg2 = 0 ; | |
17510 | wxSize temp2 ; | |
17511 | PyObject * obj0 = 0 ; | |
17512 | PyObject * obj1 = 0 ; | |
17513 | char *kwnames[] = { | |
17514 | (char *) "self",(char *) "size", NULL | |
17515 | }; | |
17516 | ||
17517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
17518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17520 | { | |
17521 | arg2 = &temp2; | |
17522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17523 | } | |
17524 | { | |
17525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17526 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17527 | ||
17528 | wxPyEndAllowThreads(__tstate); | |
17529 | if (PyErr_Occurred()) SWIG_fail; | |
17530 | } | |
17531 | Py_INCREF(Py_None); resultobj = Py_None; | |
17532 | return resultobj; | |
17533 | fail: | |
17534 | return NULL; | |
17535 | } | |
17536 | ||
17537 | ||
17538 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17539 | PyObject *resultobj; | |
17540 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17541 | wxSize result; | |
17542 | PyObject * obj0 = 0 ; | |
17543 | char *kwnames[] = { | |
17544 | (char *) "self", NULL | |
17545 | }; | |
17546 | ||
17547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
17548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17550 | { | |
17551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17552 | result = (arg1)->GetToolBitmapSize(); | |
17553 | ||
17554 | wxPyEndAllowThreads(__tstate); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | { | |
17558 | wxSize * resultptr; | |
17559 | resultptr = new wxSize((wxSize &) result); | |
17560 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17561 | } | |
17562 | return resultobj; | |
17563 | fail: | |
17564 | return NULL; | |
17565 | } | |
17566 | ||
17567 | ||
17568 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17569 | PyObject *resultobj; | |
17570 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17571 | wxSize result; | |
17572 | PyObject * obj0 = 0 ; | |
17573 | char *kwnames[] = { | |
17574 | (char *) "self", NULL | |
17575 | }; | |
17576 | ||
17577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
17578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17580 | { | |
17581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17582 | result = (arg1)->GetToolSize(); | |
17583 | ||
17584 | wxPyEndAllowThreads(__tstate); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
17586 | } | |
17587 | { | |
17588 | wxSize * resultptr; | |
17589 | resultptr = new wxSize((wxSize &) result); | |
17590 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
17591 | } | |
17592 | return resultobj; | |
17593 | fail: | |
17594 | return NULL; | |
17595 | } | |
17596 | ||
17597 | ||
17598 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17599 | PyObject *resultobj; | |
17600 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17601 | int arg2 ; | |
17602 | int arg3 ; | |
17603 | wxToolBarToolBase *result; | |
17604 | PyObject * obj0 = 0 ; | |
17605 | PyObject * obj1 = 0 ; | |
17606 | PyObject * obj2 = 0 ; | |
17607 | char *kwnames[] = { | |
17608 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17609 | }; | |
17610 | ||
17611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17614 | arg2 = (int) SWIG_AsInt(obj1); | |
17615 | if (PyErr_Occurred()) SWIG_fail; | |
17616 | arg3 = (int) SWIG_AsInt(obj2); | |
17617 | if (PyErr_Occurred()) SWIG_fail; | |
17618 | { | |
17619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17620 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17621 | ||
17622 | wxPyEndAllowThreads(__tstate); | |
17623 | if (PyErr_Occurred()) SWIG_fail; | |
17624 | } | |
17625 | { | |
17626 | resultobj = wxPyMake_wxObject(result); | |
17627 | } | |
17628 | return resultobj; | |
17629 | fail: | |
17630 | return NULL; | |
17631 | } | |
17632 | ||
17633 | ||
17634 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17635 | PyObject *resultobj; | |
17636 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17637 | int arg2 ; | |
17638 | wxToolBarToolBase *result; | |
17639 | PyObject * obj0 = 0 ; | |
17640 | PyObject * obj1 = 0 ; | |
17641 | char *kwnames[] = { | |
17642 | (char *) "self",(char *) "toolid", NULL | |
17643 | }; | |
17644 | ||
17645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
17646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17648 | arg2 = (int) SWIG_AsInt(obj1); | |
17649 | if (PyErr_Occurred()) SWIG_fail; | |
17650 | { | |
17651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17652 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17653 | ||
17654 | wxPyEndAllowThreads(__tstate); | |
17655 | if (PyErr_Occurred()) SWIG_fail; | |
17656 | } | |
17657 | { | |
17658 | resultobj = wxPyMake_wxObject(result); | |
17659 | } | |
17660 | return resultobj; | |
17661 | fail: | |
17662 | return NULL; | |
17663 | } | |
17664 | ||
17665 | ||
17666 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17667 | PyObject *resultobj; | |
17668 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17669 | bool result; | |
17670 | PyObject * obj0 = 0 ; | |
17671 | char *kwnames[] = { | |
17672 | (char *) "self", NULL | |
17673 | }; | |
17674 | ||
17675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
17676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17678 | { | |
17679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17680 | result = (bool)(arg1)->IsVertical(); | |
17681 | ||
17682 | wxPyEndAllowThreads(__tstate); | |
17683 | if (PyErr_Occurred()) SWIG_fail; | |
17684 | } | |
17685 | { | |
17686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17687 | } | |
17688 | return resultobj; | |
17689 | fail: | |
17690 | return NULL; | |
17691 | } | |
17692 | ||
17693 | ||
17694 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17695 | PyObject *obj; | |
17696 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17697 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17698 | Py_INCREF(obj); | |
17699 | return Py_BuildValue((char *)""); | |
17700 | } | |
17701 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17702 | PyObject *resultobj; | |
17703 | wxWindow *arg1 = (wxWindow *) 0 ; | |
17704 | int arg2 ; | |
17705 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
17706 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17707 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17708 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17709 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17710 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17711 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17712 | wxToolBar *result; | |
17713 | wxPoint temp3 ; | |
17714 | wxSize temp4 ; | |
17715 | bool temp6 = False ; | |
17716 | PyObject * obj0 = 0 ; | |
17717 | PyObject * obj1 = 0 ; | |
17718 | PyObject * obj2 = 0 ; | |
17719 | PyObject * obj3 = 0 ; | |
17720 | PyObject * obj4 = 0 ; | |
17721 | PyObject * obj5 = 0 ; | |
17722 | char *kwnames[] = { | |
17723 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17724 | }; | |
17725 | ||
17726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
17727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
17728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17729 | arg2 = (int) SWIG_AsInt(obj1); | |
17730 | if (PyErr_Occurred()) SWIG_fail; | |
17731 | if (obj2) { | |
17732 | { | |
17733 | arg3 = &temp3; | |
17734 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17735 | } | |
17736 | } | |
17737 | if (obj3) { | |
17738 | { | |
17739 | arg4 = &temp4; | |
17740 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17741 | } | |
17742 | } | |
17743 | if (obj4) { | |
17744 | arg5 = (long) SWIG_AsLong(obj4); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | } | |
17747 | if (obj5) { | |
17748 | { | |
17749 | arg6 = wxString_in_helper(obj5); | |
17750 | if (arg6 == NULL) SWIG_fail; | |
17751 | temp6 = True; | |
17752 | } | |
17753 | } | |
17754 | { | |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | { | |
17762 | resultobj = wxPyMake_wxObject(result); | |
17763 | } | |
17764 | { | |
17765 | if (temp6) | |
17766 | delete arg6; | |
17767 | } | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | { | |
17771 | if (temp6) | |
17772 | delete arg6; | |
17773 | } | |
17774 | return NULL; | |
17775 | } | |
17776 | ||
17777 | ||
17778 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17779 | PyObject *resultobj; | |
17780 | wxToolBar *result; | |
17781 | char *kwnames[] = { | |
17782 | NULL | |
17783 | }; | |
17784 | ||
17785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17786 | { | |
17787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17788 | result = (wxToolBar *)new wxToolBar(); | |
17789 | ||
17790 | wxPyEndAllowThreads(__tstate); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
17792 | } | |
17793 | { | |
17794 | resultobj = wxPyMake_wxObject(result); | |
17795 | } | |
17796 | return resultobj; | |
17797 | fail: | |
17798 | return NULL; | |
17799 | } | |
17800 | ||
17801 | ||
17802 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17803 | PyObject *resultobj; | |
17804 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17805 | wxWindow *arg2 = (wxWindow *) 0 ; | |
17806 | int arg3 ; | |
17807 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
17808 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17809 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17810 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17811 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17812 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17813 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17814 | bool result; | |
17815 | wxPoint temp4 ; | |
17816 | wxSize temp5 ; | |
17817 | bool temp7 = False ; | |
17818 | PyObject * obj0 = 0 ; | |
17819 | PyObject * obj1 = 0 ; | |
17820 | PyObject * obj2 = 0 ; | |
17821 | PyObject * obj3 = 0 ; | |
17822 | PyObject * obj4 = 0 ; | |
17823 | PyObject * obj5 = 0 ; | |
17824 | PyObject * obj6 = 0 ; | |
17825 | char *kwnames[] = { | |
17826 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17827 | }; | |
17828 | ||
17829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
17830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
17831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17834 | arg3 = (int) SWIG_AsInt(obj2); | |
17835 | if (PyErr_Occurred()) SWIG_fail; | |
17836 | if (obj3) { | |
17837 | { | |
17838 | arg4 = &temp4; | |
17839 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17840 | } | |
17841 | } | |
17842 | if (obj4) { | |
17843 | { | |
17844 | arg5 = &temp5; | |
17845 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17846 | } | |
17847 | } | |
17848 | if (obj5) { | |
17849 | arg6 = (long) SWIG_AsLong(obj5); | |
17850 | if (PyErr_Occurred()) SWIG_fail; | |
17851 | } | |
17852 | if (obj6) { | |
17853 | { | |
17854 | arg7 = wxString_in_helper(obj6); | |
17855 | if (arg7 == NULL) SWIG_fail; | |
17856 | temp7 = True; | |
17857 | } | |
17858 | } | |
17859 | { | |
17860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17861 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17862 | ||
17863 | wxPyEndAllowThreads(__tstate); | |
17864 | if (PyErr_Occurred()) SWIG_fail; | |
17865 | } | |
17866 | { | |
17867 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17868 | } | |
17869 | { | |
17870 | if (temp7) | |
17871 | delete arg7; | |
17872 | } | |
17873 | return resultobj; | |
17874 | fail: | |
17875 | { | |
17876 | if (temp7) | |
17877 | delete arg7; | |
17878 | } | |
17879 | return NULL; | |
17880 | } | |
17881 | ||
17882 | ||
17883 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17884 | PyObject *resultobj; | |
17885 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17886 | int arg2 ; | |
17887 | int arg3 ; | |
17888 | wxToolBarToolBase *result; | |
17889 | PyObject * obj0 = 0 ; | |
17890 | PyObject * obj1 = 0 ; | |
17891 | PyObject * obj2 = 0 ; | |
17892 | char *kwnames[] = { | |
17893 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17894 | }; | |
17895 | ||
17896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
17898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17899 | arg2 = (int) SWIG_AsInt(obj1); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | arg3 = (int) SWIG_AsInt(obj2); | |
17902 | if (PyErr_Occurred()) SWIG_fail; | |
17903 | { | |
17904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17905 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17906 | ||
17907 | wxPyEndAllowThreads(__tstate); | |
17908 | if (PyErr_Occurred()) SWIG_fail; | |
17909 | } | |
17910 | { | |
17911 | resultobj = wxPyMake_wxObject(result); | |
17912 | } | |
17913 | return resultobj; | |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17920 | PyObject *obj; | |
17921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17922 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17923 | Py_INCREF(obj); | |
17924 | return Py_BuildValue((char *)""); | |
17925 | } | |
17926 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { | |
17927 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
17928 | return 1; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17933 | PyObject *pyobj; | |
17934 | ||
17935 | { | |
17936 | #if wxUSE_UNICODE | |
17937 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17938 | #else | |
17939 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17940 | #endif | |
17941 | } | |
17942 | return pyobj; | |
17943 | } | |
17944 | ||
17945 | ||
17946 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17947 | PyObject *resultobj; | |
17948 | wxColour const &arg1_defvalue = wxNullColour ; | |
17949 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17950 | wxColour const &arg2_defvalue = wxNullColour ; | |
17951 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17952 | wxFont const &arg3_defvalue = wxNullFont ; | |
17953 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17954 | wxListItemAttr *result; | |
17955 | wxColour temp1 ; | |
17956 | wxColour temp2 ; | |
17957 | PyObject * obj0 = 0 ; | |
17958 | PyObject * obj1 = 0 ; | |
17959 | PyObject * obj2 = 0 ; | |
17960 | char *kwnames[] = { | |
17961 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17962 | }; | |
17963 | ||
17964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17965 | if (obj0) { | |
17966 | { | |
17967 | arg1 = &temp1; | |
17968 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17969 | } | |
17970 | } | |
17971 | if (obj1) { | |
17972 | { | |
17973 | arg2 = &temp2; | |
17974 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17975 | } | |
17976 | } | |
17977 | if (obj2) { | |
17978 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
17979 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17980 | SWIG_fail; | |
17981 | if (arg3 == NULL) { | |
17982 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17983 | SWIG_fail; | |
17984 | } | |
17985 | } | |
17986 | { | |
17987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17988 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17989 | ||
17990 | wxPyEndAllowThreads(__tstate); | |
17991 | if (PyErr_Occurred()) SWIG_fail; | |
17992 | } | |
17993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
17994 | return resultobj; | |
17995 | fail: | |
17996 | return NULL; | |
17997 | } | |
17998 | ||
17999 | ||
18000 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18001 | PyObject *resultobj; | |
18002 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18003 | wxColour *arg2 = 0 ; | |
18004 | wxColour temp2 ; | |
18005 | PyObject * obj0 = 0 ; | |
18006 | PyObject * obj1 = 0 ; | |
18007 | char *kwnames[] = { | |
18008 | (char *) "self",(char *) "colText", NULL | |
18009 | }; | |
18010 | ||
18011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18014 | { | |
18015 | arg2 = &temp2; | |
18016 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18017 | } | |
18018 | { | |
18019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18020 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18021 | ||
18022 | wxPyEndAllowThreads(__tstate); | |
18023 | if (PyErr_Occurred()) SWIG_fail; | |
18024 | } | |
18025 | Py_INCREF(Py_None); resultobj = Py_None; | |
18026 | return resultobj; | |
18027 | fail: | |
18028 | return NULL; | |
18029 | } | |
18030 | ||
18031 | ||
18032 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18033 | PyObject *resultobj; | |
18034 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18035 | wxColour *arg2 = 0 ; | |
18036 | wxColour temp2 ; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | PyObject * obj1 = 0 ; | |
18039 | char *kwnames[] = { | |
18040 | (char *) "self",(char *) "colBack", NULL | |
18041 | }; | |
18042 | ||
18043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18046 | { | |
18047 | arg2 = &temp2; | |
18048 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18049 | } | |
18050 | { | |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
18057 | Py_INCREF(Py_None); resultobj = Py_None; | |
18058 | return resultobj; | |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18067 | wxFont *arg2 = 0 ; | |
18068 | PyObject * obj0 = 0 ; | |
18069 | PyObject * obj1 = 0 ; | |
18070 | char *kwnames[] = { | |
18071 | (char *) "self",(char *) "font", NULL | |
18072 | }; | |
18073 | ||
18074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18078 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18079 | SWIG_fail; | |
18080 | if (arg2 == NULL) { | |
18081 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18082 | SWIG_fail; | |
18083 | } | |
18084 | { | |
18085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18086 | (arg1)->SetFont((wxFont const &)*arg2); | |
18087 | ||
18088 | wxPyEndAllowThreads(__tstate); | |
18089 | if (PyErr_Occurred()) SWIG_fail; | |
18090 | } | |
18091 | Py_INCREF(Py_None); resultobj = Py_None; | |
18092 | return resultobj; | |
18093 | fail: | |
18094 | return NULL; | |
18095 | } | |
18096 | ||
18097 | ||
18098 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18099 | PyObject *resultobj; | |
18100 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18101 | bool result; | |
18102 | PyObject * obj0 = 0 ; | |
18103 | char *kwnames[] = { | |
18104 | (char *) "self", NULL | |
18105 | }; | |
18106 | ||
18107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
18108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18110 | { | |
18111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18112 | result = (bool)(arg1)->HasTextColour(); | |
18113 | ||
18114 | wxPyEndAllowThreads(__tstate); | |
18115 | if (PyErr_Occurred()) SWIG_fail; | |
18116 | } | |
18117 | { | |
18118 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18119 | } | |
18120 | return resultobj; | |
18121 | fail: | |
18122 | return NULL; | |
18123 | } | |
18124 | ||
18125 | ||
18126 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18127 | PyObject *resultobj; | |
18128 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18129 | bool result; | |
18130 | PyObject * obj0 = 0 ; | |
18131 | char *kwnames[] = { | |
18132 | (char *) "self", NULL | |
18133 | }; | |
18134 | ||
18135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
18136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18138 | { | |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | result = (bool)(arg1)->HasBackgroundColour(); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | { | |
18146 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18147 | } | |
18148 | return resultobj; | |
18149 | fail: | |
18150 | return NULL; | |
18151 | } | |
18152 | ||
18153 | ||
18154 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18155 | PyObject *resultobj; | |
18156 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18157 | bool result; | |
18158 | PyObject * obj0 = 0 ; | |
18159 | char *kwnames[] = { | |
18160 | (char *) "self", NULL | |
18161 | }; | |
18162 | ||
18163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
18164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18166 | { | |
18167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18168 | result = (bool)(arg1)->HasFont(); | |
18169 | ||
18170 | wxPyEndAllowThreads(__tstate); | |
18171 | if (PyErr_Occurred()) SWIG_fail; | |
18172 | } | |
18173 | { | |
18174 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18175 | } | |
18176 | return resultobj; | |
18177 | fail: | |
18178 | return NULL; | |
18179 | } | |
18180 | ||
18181 | ||
18182 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18183 | PyObject *resultobj; | |
18184 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18185 | wxColour result; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | char *kwnames[] = { | |
18188 | (char *) "self", NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
18192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18194 | { | |
18195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18196 | result = (arg1)->GetTextColour(); | |
18197 | ||
18198 | wxPyEndAllowThreads(__tstate); | |
18199 | if (PyErr_Occurred()) SWIG_fail; | |
18200 | } | |
18201 | { | |
18202 | wxColour * resultptr; | |
18203 | resultptr = new wxColour((wxColour &) result); | |
18204 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18205 | } | |
18206 | return resultobj; | |
18207 | fail: | |
18208 | return NULL; | |
18209 | } | |
18210 | ||
18211 | ||
18212 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18213 | PyObject *resultobj; | |
18214 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18215 | wxColour result; | |
18216 | PyObject * obj0 = 0 ; | |
18217 | char *kwnames[] = { | |
18218 | (char *) "self", NULL | |
18219 | }; | |
18220 | ||
18221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
18222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18224 | { | |
18225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18226 | result = (arg1)->GetBackgroundColour(); | |
18227 | ||
18228 | wxPyEndAllowThreads(__tstate); | |
18229 | if (PyErr_Occurred()) SWIG_fail; | |
18230 | } | |
18231 | { | |
18232 | wxColour * resultptr; | |
18233 | resultptr = new wxColour((wxColour &) result); | |
18234 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18235 | } | |
18236 | return resultobj; | |
18237 | fail: | |
18238 | return NULL; | |
18239 | } | |
18240 | ||
18241 | ||
18242 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18243 | PyObject *resultobj; | |
18244 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18245 | wxFont result; | |
18246 | PyObject * obj0 = 0 ; | |
18247 | char *kwnames[] = { | |
18248 | (char *) "self", NULL | |
18249 | }; | |
18250 | ||
18251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
18252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18254 | { | |
18255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18256 | result = (arg1)->GetFont(); | |
18257 | ||
18258 | wxPyEndAllowThreads(__tstate); | |
18259 | if (PyErr_Occurred()) SWIG_fail; | |
18260 | } | |
18261 | { | |
18262 | wxFont * resultptr; | |
18263 | resultptr = new wxFont((wxFont &) result); | |
18264 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
18265 | } | |
18266 | return resultobj; | |
18267 | fail: | |
18268 | return NULL; | |
18269 | } | |
18270 | ||
18271 | ||
18272 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18273 | PyObject *resultobj; | |
18274 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18275 | PyObject * obj0 = 0 ; | |
18276 | char *kwnames[] = { | |
18277 | (char *) "self", NULL | |
18278 | }; | |
18279 | ||
18280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
18281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18283 | { | |
18284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18285 | wxListItemAttr_Destroy(arg1); | |
18286 | ||
18287 | wxPyEndAllowThreads(__tstate); | |
18288 | if (PyErr_Occurred()) SWIG_fail; | |
18289 | } | |
18290 | Py_INCREF(Py_None); resultobj = Py_None; | |
18291 | return resultobj; | |
18292 | fail: | |
18293 | return NULL; | |
18294 | } | |
18295 | ||
18296 | ||
18297 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18298 | PyObject *obj; | |
18299 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18300 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18301 | Py_INCREF(obj); | |
18302 | return Py_BuildValue((char *)""); | |
18303 | } | |
18304 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18305 | PyObject *resultobj; | |
18306 | wxListItem *result; | |
18307 | char *kwnames[] = { | |
18308 | NULL | |
18309 | }; | |
18310 | ||
18311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18312 | { | |
18313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18314 | result = (wxListItem *)new wxListItem(); | |
18315 | ||
18316 | wxPyEndAllowThreads(__tstate); | |
18317 | if (PyErr_Occurred()) SWIG_fail; | |
18318 | } | |
18319 | { | |
18320 | resultobj = wxPyMake_wxObject(result); | |
18321 | } | |
18322 | return resultobj; | |
18323 | fail: | |
18324 | return NULL; | |
18325 | } | |
18326 | ||
18327 | ||
18328 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18329 | PyObject *resultobj; | |
18330 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18331 | PyObject * obj0 = 0 ; | |
18332 | char *kwnames[] = { | |
18333 | (char *) "self", NULL | |
18334 | }; | |
18335 | ||
18336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
18337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18339 | { | |
18340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18341 | delete arg1; | |
18342 | ||
18343 | wxPyEndAllowThreads(__tstate); | |
18344 | if (PyErr_Occurred()) SWIG_fail; | |
18345 | } | |
18346 | Py_INCREF(Py_None); resultobj = Py_None; | |
18347 | return resultobj; | |
18348 | fail: | |
18349 | return NULL; | |
18350 | } | |
18351 | ||
18352 | ||
18353 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18354 | PyObject *resultobj; | |
18355 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18356 | PyObject * obj0 = 0 ; | |
18357 | char *kwnames[] = { | |
18358 | (char *) "self", NULL | |
18359 | }; | |
18360 | ||
18361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
18362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18364 | { | |
18365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18366 | (arg1)->Clear(); | |
18367 | ||
18368 | wxPyEndAllowThreads(__tstate); | |
18369 | if (PyErr_Occurred()) SWIG_fail; | |
18370 | } | |
18371 | Py_INCREF(Py_None); resultobj = Py_None; | |
18372 | return resultobj; | |
18373 | fail: | |
18374 | return NULL; | |
18375 | } | |
18376 | ||
18377 | ||
18378 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18379 | PyObject *resultobj; | |
18380 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18381 | PyObject * obj0 = 0 ; | |
18382 | char *kwnames[] = { | |
18383 | (char *) "self", NULL | |
18384 | }; | |
18385 | ||
18386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
18387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18389 | { | |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | (arg1)->ClearAttributes(); | |
18392 | ||
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
18396 | Py_INCREF(Py_None); resultobj = Py_None; | |
18397 | return resultobj; | |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj; | |
18405 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18406 | long arg2 ; | |
18407 | PyObject * obj0 = 0 ; | |
18408 | PyObject * obj1 = 0 ; | |
18409 | char *kwnames[] = { | |
18410 | (char *) "self",(char *) "mask", NULL | |
18411 | }; | |
18412 | ||
18413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
18414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18416 | arg2 = (long) SWIG_AsLong(obj1); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | { | |
18419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18420 | (arg1)->SetMask(arg2); | |
18421 | ||
18422 | wxPyEndAllowThreads(__tstate); | |
18423 | if (PyErr_Occurred()) SWIG_fail; | |
18424 | } | |
18425 | Py_INCREF(Py_None); resultobj = Py_None; | |
18426 | return resultobj; | |
18427 | fail: | |
18428 | return NULL; | |
18429 | } | |
18430 | ||
18431 | ||
18432 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18433 | PyObject *resultobj; | |
18434 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18435 | long arg2 ; | |
18436 | PyObject * obj0 = 0 ; | |
18437 | PyObject * obj1 = 0 ; | |
18438 | char *kwnames[] = { | |
18439 | (char *) "self",(char *) "id", NULL | |
18440 | }; | |
18441 | ||
18442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
18443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18445 | arg2 = (long) SWIG_AsLong(obj1); | |
18446 | if (PyErr_Occurred()) SWIG_fail; | |
18447 | { | |
18448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18449 | (arg1)->SetId(arg2); | |
18450 | ||
18451 | wxPyEndAllowThreads(__tstate); | |
18452 | if (PyErr_Occurred()) SWIG_fail; | |
18453 | } | |
18454 | Py_INCREF(Py_None); resultobj = Py_None; | |
18455 | return resultobj; | |
18456 | fail: | |
18457 | return NULL; | |
18458 | } | |
18459 | ||
18460 | ||
18461 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18462 | PyObject *resultobj; | |
18463 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18464 | int arg2 ; | |
18465 | PyObject * obj0 = 0 ; | |
18466 | PyObject * obj1 = 0 ; | |
18467 | char *kwnames[] = { | |
18468 | (char *) "self",(char *) "col", NULL | |
18469 | }; | |
18470 | ||
18471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
18472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18474 | arg2 = (int) SWIG_AsInt(obj1); | |
18475 | if (PyErr_Occurred()) SWIG_fail; | |
18476 | { | |
18477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18478 | (arg1)->SetColumn(arg2); | |
18479 | ||
18480 | wxPyEndAllowThreads(__tstate); | |
18481 | if (PyErr_Occurred()) SWIG_fail; | |
18482 | } | |
18483 | Py_INCREF(Py_None); resultobj = Py_None; | |
18484 | return resultobj; | |
18485 | fail: | |
18486 | return NULL; | |
18487 | } | |
18488 | ||
18489 | ||
18490 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18491 | PyObject *resultobj; | |
18492 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18493 | long arg2 ; | |
18494 | PyObject * obj0 = 0 ; | |
18495 | PyObject * obj1 = 0 ; | |
18496 | char *kwnames[] = { | |
18497 | (char *) "self",(char *) "state", NULL | |
18498 | }; | |
18499 | ||
18500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
18501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18503 | arg2 = (long) SWIG_AsLong(obj1); | |
18504 | if (PyErr_Occurred()) SWIG_fail; | |
18505 | { | |
18506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18507 | (arg1)->SetState(arg2); | |
18508 | ||
18509 | wxPyEndAllowThreads(__tstate); | |
18510 | if (PyErr_Occurred()) SWIG_fail; | |
18511 | } | |
18512 | Py_INCREF(Py_None); resultobj = Py_None; | |
18513 | return resultobj; | |
18514 | fail: | |
18515 | return NULL; | |
18516 | } | |
18517 | ||
18518 | ||
18519 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18520 | PyObject *resultobj; | |
18521 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18522 | long arg2 ; | |
18523 | PyObject * obj0 = 0 ; | |
18524 | PyObject * obj1 = 0 ; | |
18525 | char *kwnames[] = { | |
18526 | (char *) "self",(char *) "stateMask", NULL | |
18527 | }; | |
18528 | ||
18529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
18530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18532 | arg2 = (long) SWIG_AsLong(obj1); | |
18533 | if (PyErr_Occurred()) SWIG_fail; | |
18534 | { | |
18535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18536 | (arg1)->SetStateMask(arg2); | |
18537 | ||
18538 | wxPyEndAllowThreads(__tstate); | |
18539 | if (PyErr_Occurred()) SWIG_fail; | |
18540 | } | |
18541 | Py_INCREF(Py_None); resultobj = Py_None; | |
18542 | return resultobj; | |
18543 | fail: | |
18544 | return NULL; | |
18545 | } | |
18546 | ||
18547 | ||
18548 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18549 | PyObject *resultobj; | |
18550 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18551 | wxString *arg2 = 0 ; | |
18552 | bool temp2 = False ; | |
18553 | PyObject * obj0 = 0 ; | |
18554 | PyObject * obj1 = 0 ; | |
18555 | char *kwnames[] = { | |
18556 | (char *) "self",(char *) "text", NULL | |
18557 | }; | |
18558 | ||
18559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
18560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18562 | { | |
18563 | arg2 = wxString_in_helper(obj1); | |
18564 | if (arg2 == NULL) SWIG_fail; | |
18565 | temp2 = True; | |
18566 | } | |
18567 | { | |
18568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18569 | (arg1)->SetText((wxString const &)*arg2); | |
18570 | ||
18571 | wxPyEndAllowThreads(__tstate); | |
18572 | if (PyErr_Occurred()) SWIG_fail; | |
18573 | } | |
18574 | Py_INCREF(Py_None); resultobj = Py_None; | |
18575 | { | |
18576 | if (temp2) | |
18577 | delete arg2; | |
18578 | } | |
18579 | return resultobj; | |
18580 | fail: | |
18581 | { | |
18582 | if (temp2) | |
18583 | delete arg2; | |
18584 | } | |
18585 | return NULL; | |
18586 | } | |
18587 | ||
18588 | ||
18589 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18590 | PyObject *resultobj; | |
18591 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18592 | int arg2 ; | |
18593 | PyObject * obj0 = 0 ; | |
18594 | PyObject * obj1 = 0 ; | |
18595 | char *kwnames[] = { | |
18596 | (char *) "self",(char *) "image", NULL | |
18597 | }; | |
18598 | ||
18599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
18600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18602 | arg2 = (int) SWIG_AsInt(obj1); | |
18603 | if (PyErr_Occurred()) SWIG_fail; | |
18604 | { | |
18605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18606 | (arg1)->SetImage(arg2); | |
18607 | ||
18608 | wxPyEndAllowThreads(__tstate); | |
18609 | if (PyErr_Occurred()) SWIG_fail; | |
18610 | } | |
18611 | Py_INCREF(Py_None); resultobj = Py_None; | |
18612 | return resultobj; | |
18613 | fail: | |
18614 | return NULL; | |
18615 | } | |
18616 | ||
18617 | ||
18618 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18619 | PyObject *resultobj; | |
18620 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18621 | long arg2 ; | |
18622 | PyObject * obj0 = 0 ; | |
18623 | PyObject * obj1 = 0 ; | |
18624 | char *kwnames[] = { | |
18625 | (char *) "self",(char *) "data", NULL | |
18626 | }; | |
18627 | ||
18628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
18629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18631 | arg2 = (long) SWIG_AsLong(obj1); | |
18632 | if (PyErr_Occurred()) SWIG_fail; | |
18633 | { | |
18634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18635 | (arg1)->SetData(arg2); | |
18636 | ||
18637 | wxPyEndAllowThreads(__tstate); | |
18638 | if (PyErr_Occurred()) SWIG_fail; | |
18639 | } | |
18640 | Py_INCREF(Py_None); resultobj = Py_None; | |
18641 | return resultobj; | |
18642 | fail: | |
18643 | return NULL; | |
18644 | } | |
18645 | ||
18646 | ||
18647 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18648 | PyObject *resultobj; | |
18649 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18650 | int arg2 ; | |
18651 | PyObject * obj0 = 0 ; | |
18652 | PyObject * obj1 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self",(char *) "width", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
18658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18660 | arg2 = (int) SWIG_AsInt(obj1); | |
18661 | if (PyErr_Occurred()) SWIG_fail; | |
18662 | { | |
18663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18664 | (arg1)->SetWidth(arg2); | |
18665 | ||
18666 | wxPyEndAllowThreads(__tstate); | |
18667 | if (PyErr_Occurred()) SWIG_fail; | |
18668 | } | |
18669 | Py_INCREF(Py_None); resultobj = Py_None; | |
18670 | return resultobj; | |
18671 | fail: | |
18672 | return NULL; | |
18673 | } | |
18674 | ||
18675 | ||
18676 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18677 | PyObject *resultobj; | |
18678 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18679 | int arg2 ; | |
18680 | PyObject * obj0 = 0 ; | |
18681 | PyObject * obj1 = 0 ; | |
18682 | char *kwnames[] = { | |
18683 | (char *) "self",(char *) "align", NULL | |
18684 | }; | |
18685 | ||
18686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
18687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18689 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
18690 | if (PyErr_Occurred()) SWIG_fail; | |
18691 | { | |
18692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18693 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18694 | ||
18695 | wxPyEndAllowThreads(__tstate); | |
18696 | if (PyErr_Occurred()) SWIG_fail; | |
18697 | } | |
18698 | Py_INCREF(Py_None); resultobj = Py_None; | |
18699 | return resultobj; | |
18700 | fail: | |
18701 | return NULL; | |
18702 | } | |
18703 | ||
18704 | ||
18705 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18706 | PyObject *resultobj; | |
18707 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18708 | wxColour *arg2 = 0 ; | |
18709 | wxColour temp2 ; | |
18710 | PyObject * obj0 = 0 ; | |
18711 | PyObject * obj1 = 0 ; | |
18712 | char *kwnames[] = { | |
18713 | (char *) "self",(char *) "colText", NULL | |
18714 | }; | |
18715 | ||
18716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18719 | { | |
18720 | arg2 = &temp2; | |
18721 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18722 | } | |
18723 | { | |
18724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18725 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18726 | ||
18727 | wxPyEndAllowThreads(__tstate); | |
18728 | if (PyErr_Occurred()) SWIG_fail; | |
18729 | } | |
18730 | Py_INCREF(Py_None); resultobj = Py_None; | |
18731 | return resultobj; | |
18732 | fail: | |
18733 | return NULL; | |
18734 | } | |
18735 | ||
18736 | ||
18737 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18738 | PyObject *resultobj; | |
18739 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18740 | wxColour *arg2 = 0 ; | |
18741 | wxColour temp2 ; | |
18742 | PyObject * obj0 = 0 ; | |
18743 | PyObject * obj1 = 0 ; | |
18744 | char *kwnames[] = { | |
18745 | (char *) "self",(char *) "colBack", NULL | |
18746 | }; | |
18747 | ||
18748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18751 | { | |
18752 | arg2 = &temp2; | |
18753 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18754 | } | |
18755 | { | |
18756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18757 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18758 | ||
18759 | wxPyEndAllowThreads(__tstate); | |
18760 | if (PyErr_Occurred()) SWIG_fail; | |
18761 | } | |
18762 | Py_INCREF(Py_None); resultobj = Py_None; | |
18763 | return resultobj; | |
18764 | fail: | |
18765 | return NULL; | |
18766 | } | |
18767 | ||
18768 | ||
18769 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18770 | PyObject *resultobj; | |
18771 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18772 | wxFont *arg2 = 0 ; | |
18773 | PyObject * obj0 = 0 ; | |
18774 | PyObject * obj1 = 0 ; | |
18775 | char *kwnames[] = { | |
18776 | (char *) "self",(char *) "font", NULL | |
18777 | }; | |
18778 | ||
18779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18784 | SWIG_fail; | |
18785 | if (arg2 == NULL) { | |
18786 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18787 | SWIG_fail; | |
18788 | } | |
18789 | { | |
18790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18791 | (arg1)->SetFont((wxFont const &)*arg2); | |
18792 | ||
18793 | wxPyEndAllowThreads(__tstate); | |
18794 | if (PyErr_Occurred()) SWIG_fail; | |
18795 | } | |
18796 | Py_INCREF(Py_None); resultobj = Py_None; | |
18797 | return resultobj; | |
18798 | fail: | |
18799 | return NULL; | |
18800 | } | |
18801 | ||
18802 | ||
18803 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18804 | PyObject *resultobj; | |
18805 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18806 | long result; | |
18807 | PyObject * obj0 = 0 ; | |
18808 | char *kwnames[] = { | |
18809 | (char *) "self", NULL | |
18810 | }; | |
18811 | ||
18812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
18813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18815 | { | |
18816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18817 | result = (long)(arg1)->GetMask(); | |
18818 | ||
18819 | wxPyEndAllowThreads(__tstate); | |
18820 | if (PyErr_Occurred()) SWIG_fail; | |
18821 | } | |
18822 | resultobj = SWIG_FromLong((long)result); | |
18823 | return resultobj; | |
18824 | fail: | |
18825 | return NULL; | |
18826 | } | |
18827 | ||
18828 | ||
18829 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18830 | PyObject *resultobj; | |
18831 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18832 | long result; | |
18833 | PyObject * obj0 = 0 ; | |
18834 | char *kwnames[] = { | |
18835 | (char *) "self", NULL | |
18836 | }; | |
18837 | ||
18838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
18839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18841 | { | |
18842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18843 | result = (long)(arg1)->GetId(); | |
18844 | ||
18845 | wxPyEndAllowThreads(__tstate); | |
18846 | if (PyErr_Occurred()) SWIG_fail; | |
18847 | } | |
18848 | resultobj = SWIG_FromLong((long)result); | |
18849 | return resultobj; | |
18850 | fail: | |
18851 | return NULL; | |
18852 | } | |
18853 | ||
18854 | ||
18855 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18856 | PyObject *resultobj; | |
18857 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18858 | int result; | |
18859 | PyObject * obj0 = 0 ; | |
18860 | char *kwnames[] = { | |
18861 | (char *) "self", NULL | |
18862 | }; | |
18863 | ||
18864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
18865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18867 | { | |
18868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18869 | result = (int)(arg1)->GetColumn(); | |
18870 | ||
18871 | wxPyEndAllowThreads(__tstate); | |
18872 | if (PyErr_Occurred()) SWIG_fail; | |
18873 | } | |
18874 | resultobj = SWIG_FromInt((int)result); | |
18875 | return resultobj; | |
18876 | fail: | |
18877 | return NULL; | |
18878 | } | |
18879 | ||
18880 | ||
18881 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18882 | PyObject *resultobj; | |
18883 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18884 | long result; | |
18885 | PyObject * obj0 = 0 ; | |
18886 | char *kwnames[] = { | |
18887 | (char *) "self", NULL | |
18888 | }; | |
18889 | ||
18890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
18891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18893 | { | |
18894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18895 | result = (long)(arg1)->GetState(); | |
18896 | ||
18897 | wxPyEndAllowThreads(__tstate); | |
18898 | if (PyErr_Occurred()) SWIG_fail; | |
18899 | } | |
18900 | resultobj = SWIG_FromLong((long)result); | |
18901 | return resultobj; | |
18902 | fail: | |
18903 | return NULL; | |
18904 | } | |
18905 | ||
18906 | ||
18907 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18908 | PyObject *resultobj; | |
18909 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18910 | wxString *result; | |
18911 | PyObject * obj0 = 0 ; | |
18912 | char *kwnames[] = { | |
18913 | (char *) "self", NULL | |
18914 | }; | |
18915 | ||
18916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
18917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18919 | { | |
18920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18921 | { | |
18922 | wxString const &_result_ref = (arg1)->GetText(); | |
18923 | result = (wxString *) &_result_ref; | |
18924 | } | |
18925 | ||
18926 | wxPyEndAllowThreads(__tstate); | |
18927 | if (PyErr_Occurred()) SWIG_fail; | |
18928 | } | |
18929 | { | |
18930 | #if wxUSE_UNICODE | |
18931 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18932 | #else | |
18933 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18934 | #endif | |
18935 | } | |
18936 | return resultobj; | |
18937 | fail: | |
18938 | return NULL; | |
18939 | } | |
18940 | ||
18941 | ||
18942 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18945 | int result; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "self", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
18952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18954 | { | |
18955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18956 | result = (int)(arg1)->GetImage(); | |
18957 | ||
18958 | wxPyEndAllowThreads(__tstate); | |
18959 | if (PyErr_Occurred()) SWIG_fail; | |
18960 | } | |
18961 | resultobj = SWIG_FromInt((int)result); | |
18962 | return resultobj; | |
18963 | fail: | |
18964 | return NULL; | |
18965 | } | |
18966 | ||
18967 | ||
18968 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18969 | PyObject *resultobj; | |
18970 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18971 | long result; | |
18972 | PyObject * obj0 = 0 ; | |
18973 | char *kwnames[] = { | |
18974 | (char *) "self", NULL | |
18975 | }; | |
18976 | ||
18977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
18978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
18979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18980 | { | |
18981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18982 | result = (long)(arg1)->GetData(); | |
18983 | ||
18984 | wxPyEndAllowThreads(__tstate); | |
18985 | if (PyErr_Occurred()) SWIG_fail; | |
18986 | } | |
18987 | resultobj = SWIG_FromLong((long)result); | |
18988 | return resultobj; | |
18989 | fail: | |
18990 | return NULL; | |
18991 | } | |
18992 | ||
18993 | ||
18994 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18995 | PyObject *resultobj; | |
18996 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18997 | int result; | |
18998 | PyObject * obj0 = 0 ; | |
18999 | char *kwnames[] = { | |
19000 | (char *) "self", NULL | |
19001 | }; | |
19002 | ||
19003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
19004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19006 | { | |
19007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19008 | result = (int)(arg1)->GetWidth(); | |
19009 | ||
19010 | wxPyEndAllowThreads(__tstate); | |
19011 | if (PyErr_Occurred()) SWIG_fail; | |
19012 | } | |
19013 | resultobj = SWIG_FromInt((int)result); | |
19014 | return resultobj; | |
19015 | fail: | |
19016 | return NULL; | |
19017 | } | |
19018 | ||
19019 | ||
19020 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19021 | PyObject *resultobj; | |
19022 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19023 | int result; | |
19024 | PyObject * obj0 = 0 ; | |
19025 | char *kwnames[] = { | |
19026 | (char *) "self", NULL | |
19027 | }; | |
19028 | ||
19029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
19030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19032 | { | |
19033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19034 | result = (int)(arg1)->GetAlign(); | |
19035 | ||
19036 | wxPyEndAllowThreads(__tstate); | |
19037 | if (PyErr_Occurred()) SWIG_fail; | |
19038 | } | |
19039 | resultobj = SWIG_FromInt((int)result); | |
19040 | return resultobj; | |
19041 | fail: | |
19042 | return NULL; | |
19043 | } | |
19044 | ||
19045 | ||
19046 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19047 | PyObject *resultobj; | |
19048 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19049 | wxListItemAttr *result; | |
19050 | PyObject * obj0 = 0 ; | |
19051 | char *kwnames[] = { | |
19052 | (char *) "self", NULL | |
19053 | }; | |
19054 | ||
19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19058 | { | |
19059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19060 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19061 | ||
19062 | wxPyEndAllowThreads(__tstate); | |
19063 | if (PyErr_Occurred()) SWIG_fail; | |
19064 | } | |
19065 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
19066 | return resultobj; | |
19067 | fail: | |
19068 | return NULL; | |
19069 | } | |
19070 | ||
19071 | ||
19072 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19073 | PyObject *resultobj; | |
19074 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19075 | bool result; | |
19076 | PyObject * obj0 = 0 ; | |
19077 | char *kwnames[] = { | |
19078 | (char *) "self", NULL | |
19079 | }; | |
19080 | ||
19081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
19082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19084 | { | |
19085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19086 | result = (bool)(arg1)->HasAttributes(); | |
19087 | ||
19088 | wxPyEndAllowThreads(__tstate); | |
19089 | if (PyErr_Occurred()) SWIG_fail; | |
19090 | } | |
19091 | { | |
19092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19093 | } | |
19094 | return resultobj; | |
19095 | fail: | |
19096 | return NULL; | |
19097 | } | |
19098 | ||
19099 | ||
19100 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19101 | PyObject *resultobj; | |
19102 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19103 | wxColour result; | |
19104 | PyObject * obj0 = 0 ; | |
19105 | char *kwnames[] = { | |
19106 | (char *) "self", NULL | |
19107 | }; | |
19108 | ||
19109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
19110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19112 | { | |
19113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19114 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19115 | ||
19116 | wxPyEndAllowThreads(__tstate); | |
19117 | if (PyErr_Occurred()) SWIG_fail; | |
19118 | } | |
19119 | { | |
19120 | wxColour * resultptr; | |
19121 | resultptr = new wxColour((wxColour &) result); | |
19122 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19123 | } | |
19124 | return resultobj; | |
19125 | fail: | |
19126 | return NULL; | |
19127 | } | |
19128 | ||
19129 | ||
19130 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19131 | PyObject *resultobj; | |
19132 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19133 | wxColour result; | |
19134 | PyObject * obj0 = 0 ; | |
19135 | char *kwnames[] = { | |
19136 | (char *) "self", NULL | |
19137 | }; | |
19138 | ||
19139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19142 | { | |
19143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19144 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19145 | ||
19146 | wxPyEndAllowThreads(__tstate); | |
19147 | if (PyErr_Occurred()) SWIG_fail; | |
19148 | } | |
19149 | { | |
19150 | wxColour * resultptr; | |
19151 | resultptr = new wxColour((wxColour &) result); | |
19152 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19153 | } | |
19154 | return resultobj; | |
19155 | fail: | |
19156 | return NULL; | |
19157 | } | |
19158 | ||
19159 | ||
19160 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19161 | PyObject *resultobj; | |
19162 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19163 | wxFont result; | |
19164 | PyObject * obj0 = 0 ; | |
19165 | char *kwnames[] = { | |
19166 | (char *) "self", NULL | |
19167 | }; | |
19168 | ||
19169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
19170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19172 | { | |
19173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19174 | result = ((wxListItem const *)arg1)->GetFont(); | |
19175 | ||
19176 | wxPyEndAllowThreads(__tstate); | |
19177 | if (PyErr_Occurred()) SWIG_fail; | |
19178 | } | |
19179 | { | |
19180 | wxFont * resultptr; | |
19181 | resultptr = new wxFont((wxFont &) result); | |
19182 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19183 | } | |
19184 | return resultobj; | |
19185 | fail: | |
19186 | return NULL; | |
19187 | } | |
19188 | ||
19189 | ||
19190 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19191 | PyObject *resultobj; | |
19192 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19193 | long arg2 ; | |
19194 | PyObject * obj0 = 0 ; | |
19195 | PyObject * obj1 = 0 ; | |
19196 | char *kwnames[] = { | |
19197 | (char *) "self",(char *) "m_mask", NULL | |
19198 | }; | |
19199 | ||
19200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
19201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19203 | arg2 = (long) SWIG_AsLong(obj1); | |
19204 | if (PyErr_Occurred()) SWIG_fail; | |
19205 | if (arg1) (arg1)->m_mask = arg2; | |
19206 | ||
19207 | Py_INCREF(Py_None); resultobj = Py_None; | |
19208 | return resultobj; | |
19209 | fail: | |
19210 | return NULL; | |
19211 | } | |
19212 | ||
19213 | ||
19214 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19215 | PyObject *resultobj; | |
19216 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19217 | long result; | |
19218 | PyObject * obj0 = 0 ; | |
19219 | char *kwnames[] = { | |
19220 | (char *) "self", NULL | |
19221 | }; | |
19222 | ||
19223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
19224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19226 | result = (long) ((arg1)->m_mask); | |
19227 | ||
19228 | resultobj = SWIG_FromLong((long)result); | |
19229 | return resultobj; | |
19230 | fail: | |
19231 | return NULL; | |
19232 | } | |
19233 | ||
19234 | ||
19235 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19236 | PyObject *resultobj; | |
19237 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19238 | long arg2 ; | |
19239 | PyObject * obj0 = 0 ; | |
19240 | PyObject * obj1 = 0 ; | |
19241 | char *kwnames[] = { | |
19242 | (char *) "self",(char *) "m_itemId", NULL | |
19243 | }; | |
19244 | ||
19245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
19246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19248 | arg2 = (long) SWIG_AsLong(obj1); | |
19249 | if (PyErr_Occurred()) SWIG_fail; | |
19250 | if (arg1) (arg1)->m_itemId = arg2; | |
19251 | ||
19252 | Py_INCREF(Py_None); resultobj = Py_None; | |
19253 | return resultobj; | |
19254 | fail: | |
19255 | return NULL; | |
19256 | } | |
19257 | ||
19258 | ||
19259 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19260 | PyObject *resultobj; | |
19261 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19262 | long result; | |
19263 | PyObject * obj0 = 0 ; | |
19264 | char *kwnames[] = { | |
19265 | (char *) "self", NULL | |
19266 | }; | |
19267 | ||
19268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
19269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19271 | result = (long) ((arg1)->m_itemId); | |
19272 | ||
19273 | resultobj = SWIG_FromLong((long)result); | |
19274 | return resultobj; | |
19275 | fail: | |
19276 | return NULL; | |
19277 | } | |
19278 | ||
19279 | ||
19280 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19281 | PyObject *resultobj; | |
19282 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19283 | int arg2 ; | |
19284 | PyObject * obj0 = 0 ; | |
19285 | PyObject * obj1 = 0 ; | |
19286 | char *kwnames[] = { | |
19287 | (char *) "self",(char *) "m_col", NULL | |
19288 | }; | |
19289 | ||
19290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
19291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19293 | arg2 = (int) SWIG_AsInt(obj1); | |
19294 | if (PyErr_Occurred()) SWIG_fail; | |
19295 | if (arg1) (arg1)->m_col = arg2; | |
19296 | ||
19297 | Py_INCREF(Py_None); resultobj = Py_None; | |
19298 | return resultobj; | |
19299 | fail: | |
19300 | return NULL; | |
19301 | } | |
19302 | ||
19303 | ||
19304 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19305 | PyObject *resultobj; | |
19306 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19307 | int result; | |
19308 | PyObject * obj0 = 0 ; | |
19309 | char *kwnames[] = { | |
19310 | (char *) "self", NULL | |
19311 | }; | |
19312 | ||
19313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
19314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19316 | result = (int) ((arg1)->m_col); | |
19317 | ||
19318 | resultobj = SWIG_FromInt((int)result); | |
19319 | return resultobj; | |
19320 | fail: | |
19321 | return NULL; | |
19322 | } | |
19323 | ||
19324 | ||
19325 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19326 | PyObject *resultobj; | |
19327 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19328 | long arg2 ; | |
19329 | PyObject * obj0 = 0 ; | |
19330 | PyObject * obj1 = 0 ; | |
19331 | char *kwnames[] = { | |
19332 | (char *) "self",(char *) "m_state", NULL | |
19333 | }; | |
19334 | ||
19335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
19336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19338 | arg2 = (long) SWIG_AsLong(obj1); | |
19339 | if (PyErr_Occurred()) SWIG_fail; | |
19340 | if (arg1) (arg1)->m_state = arg2; | |
19341 | ||
19342 | Py_INCREF(Py_None); resultobj = Py_None; | |
19343 | return resultobj; | |
19344 | fail: | |
19345 | return NULL; | |
19346 | } | |
19347 | ||
19348 | ||
19349 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19350 | PyObject *resultobj; | |
19351 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19352 | long result; | |
19353 | PyObject * obj0 = 0 ; | |
19354 | char *kwnames[] = { | |
19355 | (char *) "self", NULL | |
19356 | }; | |
19357 | ||
19358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
19359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19361 | result = (long) ((arg1)->m_state); | |
19362 | ||
19363 | resultobj = SWIG_FromLong((long)result); | |
19364 | return resultobj; | |
19365 | fail: | |
19366 | return NULL; | |
19367 | } | |
19368 | ||
19369 | ||
19370 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19371 | PyObject *resultobj; | |
19372 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19373 | long arg2 ; | |
19374 | PyObject * obj0 = 0 ; | |
19375 | PyObject * obj1 = 0 ; | |
19376 | char *kwnames[] = { | |
19377 | (char *) "self",(char *) "m_stateMask", NULL | |
19378 | }; | |
19379 | ||
19380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
19381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19383 | arg2 = (long) SWIG_AsLong(obj1); | |
19384 | if (PyErr_Occurred()) SWIG_fail; | |
19385 | if (arg1) (arg1)->m_stateMask = arg2; | |
19386 | ||
19387 | Py_INCREF(Py_None); resultobj = Py_None; | |
19388 | return resultobj; | |
19389 | fail: | |
19390 | return NULL; | |
19391 | } | |
19392 | ||
19393 | ||
19394 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19395 | PyObject *resultobj; | |
19396 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19397 | long result; | |
19398 | PyObject * obj0 = 0 ; | |
19399 | char *kwnames[] = { | |
19400 | (char *) "self", NULL | |
19401 | }; | |
19402 | ||
19403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
19404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19406 | result = (long) ((arg1)->m_stateMask); | |
19407 | ||
19408 | resultobj = SWIG_FromLong((long)result); | |
19409 | return resultobj; | |
19410 | fail: | |
19411 | return NULL; | |
19412 | } | |
19413 | ||
19414 | ||
19415 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19416 | PyObject *resultobj; | |
19417 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19418 | wxString *arg2 = (wxString *) 0 ; | |
19419 | bool temp2 = False ; | |
19420 | PyObject * obj0 = 0 ; | |
19421 | PyObject * obj1 = 0 ; | |
19422 | char *kwnames[] = { | |
19423 | (char *) "self",(char *) "m_text", NULL | |
19424 | }; | |
19425 | ||
19426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
19427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19429 | { | |
19430 | arg2 = wxString_in_helper(obj1); | |
19431 | if (arg2 == NULL) SWIG_fail; | |
19432 | temp2 = True; | |
19433 | } | |
19434 | if (arg1) (arg1)->m_text = *arg2; | |
19435 | ||
19436 | Py_INCREF(Py_None); resultobj = Py_None; | |
19437 | { | |
19438 | if (temp2) | |
19439 | delete arg2; | |
19440 | } | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | { | |
19444 | if (temp2) | |
19445 | delete arg2; | |
19446 | } | |
19447 | return NULL; | |
19448 | } | |
19449 | ||
19450 | ||
19451 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19452 | PyObject *resultobj; | |
19453 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19454 | wxString *result; | |
19455 | PyObject * obj0 = 0 ; | |
19456 | char *kwnames[] = { | |
19457 | (char *) "self", NULL | |
19458 | }; | |
19459 | ||
19460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
19461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19463 | result = (wxString *)& ((arg1)->m_text); | |
19464 | ||
19465 | { | |
19466 | #if wxUSE_UNICODE | |
19467 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19468 | #else | |
19469 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19470 | #endif | |
19471 | } | |
19472 | return resultobj; | |
19473 | fail: | |
19474 | return NULL; | |
19475 | } | |
19476 | ||
19477 | ||
19478 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19479 | PyObject *resultobj; | |
19480 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19481 | int arg2 ; | |
19482 | PyObject * obj0 = 0 ; | |
19483 | PyObject * obj1 = 0 ; | |
19484 | char *kwnames[] = { | |
19485 | (char *) "self",(char *) "m_image", NULL | |
19486 | }; | |
19487 | ||
19488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
19489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19491 | arg2 = (int) SWIG_AsInt(obj1); | |
19492 | if (PyErr_Occurred()) SWIG_fail; | |
19493 | if (arg1) (arg1)->m_image = arg2; | |
19494 | ||
19495 | Py_INCREF(Py_None); resultobj = Py_None; | |
19496 | return resultobj; | |
19497 | fail: | |
19498 | return NULL; | |
19499 | } | |
19500 | ||
19501 | ||
19502 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19503 | PyObject *resultobj; | |
19504 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19505 | int result; | |
19506 | PyObject * obj0 = 0 ; | |
19507 | char *kwnames[] = { | |
19508 | (char *) "self", NULL | |
19509 | }; | |
19510 | ||
19511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
19512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19514 | result = (int) ((arg1)->m_image); | |
19515 | ||
19516 | resultobj = SWIG_FromInt((int)result); | |
19517 | return resultobj; | |
19518 | fail: | |
19519 | return NULL; | |
19520 | } | |
19521 | ||
19522 | ||
19523 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19524 | PyObject *resultobj; | |
19525 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19526 | long arg2 ; | |
19527 | PyObject * obj0 = 0 ; | |
19528 | PyObject * obj1 = 0 ; | |
19529 | char *kwnames[] = { | |
19530 | (char *) "self",(char *) "m_data", NULL | |
19531 | }; | |
19532 | ||
19533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
19534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19536 | arg2 = (long) SWIG_AsLong(obj1); | |
19537 | if (PyErr_Occurred()) SWIG_fail; | |
19538 | if (arg1) (arg1)->m_data = arg2; | |
19539 | ||
19540 | Py_INCREF(Py_None); resultobj = Py_None; | |
19541 | return resultobj; | |
19542 | fail: | |
19543 | return NULL; | |
19544 | } | |
19545 | ||
19546 | ||
19547 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19548 | PyObject *resultobj; | |
19549 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19550 | long result; | |
19551 | PyObject * obj0 = 0 ; | |
19552 | char *kwnames[] = { | |
19553 | (char *) "self", NULL | |
19554 | }; | |
19555 | ||
19556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
19557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19559 | result = (long) ((arg1)->m_data); | |
19560 | ||
19561 | resultobj = SWIG_FromLong((long)result); | |
19562 | return resultobj; | |
19563 | fail: | |
19564 | return NULL; | |
19565 | } | |
19566 | ||
19567 | ||
19568 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19569 | PyObject *resultobj; | |
19570 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19571 | int arg2 ; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | PyObject * obj1 = 0 ; | |
19574 | char *kwnames[] = { | |
19575 | (char *) "self",(char *) "m_format", NULL | |
19576 | }; | |
19577 | ||
19578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
19579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19581 | arg2 = (int) SWIG_AsInt(obj1); | |
19582 | if (PyErr_Occurred()) SWIG_fail; | |
19583 | if (arg1) (arg1)->m_format = arg2; | |
19584 | ||
19585 | Py_INCREF(Py_None); resultobj = Py_None; | |
19586 | return resultobj; | |
19587 | fail: | |
19588 | return NULL; | |
19589 | } | |
19590 | ||
19591 | ||
19592 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19593 | PyObject *resultobj; | |
19594 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19595 | int result; | |
19596 | PyObject * obj0 = 0 ; | |
19597 | char *kwnames[] = { | |
19598 | (char *) "self", NULL | |
19599 | }; | |
19600 | ||
19601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
19602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19604 | result = (int) ((arg1)->m_format); | |
19605 | ||
19606 | resultobj = SWIG_FromInt((int)result); | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
19613 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19614 | PyObject *resultobj; | |
19615 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19616 | int arg2 ; | |
19617 | PyObject * obj0 = 0 ; | |
19618 | PyObject * obj1 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "self",(char *) "m_width", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
19624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19626 | arg2 = (int) SWIG_AsInt(obj1); | |
19627 | if (PyErr_Occurred()) SWIG_fail; | |
19628 | if (arg1) (arg1)->m_width = arg2; | |
19629 | ||
19630 | Py_INCREF(Py_None); resultobj = Py_None; | |
19631 | return resultobj; | |
19632 | fail: | |
19633 | return NULL; | |
19634 | } | |
19635 | ||
19636 | ||
19637 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19638 | PyObject *resultobj; | |
19639 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19640 | int result; | |
19641 | PyObject * obj0 = 0 ; | |
19642 | char *kwnames[] = { | |
19643 | (char *) "self", NULL | |
19644 | }; | |
19645 | ||
19646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
19647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19649 | result = (int) ((arg1)->m_width); | |
19650 | ||
19651 | resultobj = SWIG_FromInt((int)result); | |
19652 | return resultobj; | |
19653 | fail: | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19659 | PyObject *obj; | |
19660 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19661 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19662 | Py_INCREF(obj); | |
19663 | return Py_BuildValue((char *)""); | |
19664 | } | |
19665 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19666 | PyObject *resultobj; | |
19667 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19668 | int arg2 = (int) 0 ; | |
19669 | wxListEvent *result; | |
19670 | PyObject * obj0 = 0 ; | |
19671 | PyObject * obj1 = 0 ; | |
19672 | char *kwnames[] = { | |
19673 | (char *) "commandType",(char *) "id", NULL | |
19674 | }; | |
19675 | ||
19676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
19677 | if (obj0) { | |
19678 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
19679 | if (PyErr_Occurred()) SWIG_fail; | |
19680 | } | |
19681 | if (obj1) { | |
19682 | arg2 = (int) SWIG_AsInt(obj1); | |
19683 | if (PyErr_Occurred()) SWIG_fail; | |
19684 | } | |
19685 | { | |
19686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19687 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19688 | ||
19689 | wxPyEndAllowThreads(__tstate); | |
19690 | if (PyErr_Occurred()) SWIG_fail; | |
19691 | } | |
19692 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
19693 | return resultobj; | |
19694 | fail: | |
19695 | return NULL; | |
19696 | } | |
19697 | ||
19698 | ||
19699 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19700 | PyObject *resultobj; | |
19701 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19702 | int arg2 ; | |
19703 | PyObject * obj0 = 0 ; | |
19704 | PyObject * obj1 = 0 ; | |
19705 | char *kwnames[] = { | |
19706 | (char *) "self",(char *) "m_code", NULL | |
19707 | }; | |
19708 | ||
19709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
19710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19712 | arg2 = (int) SWIG_AsInt(obj1); | |
19713 | if (PyErr_Occurred()) SWIG_fail; | |
19714 | if (arg1) (arg1)->m_code = arg2; | |
19715 | ||
19716 | Py_INCREF(Py_None); resultobj = Py_None; | |
19717 | return resultobj; | |
19718 | fail: | |
19719 | return NULL; | |
19720 | } | |
19721 | ||
19722 | ||
19723 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19724 | PyObject *resultobj; | |
19725 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19726 | int result; | |
19727 | PyObject * obj0 = 0 ; | |
19728 | char *kwnames[] = { | |
19729 | (char *) "self", NULL | |
19730 | }; | |
19731 | ||
19732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
19733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19735 | result = (int) ((arg1)->m_code); | |
19736 | ||
19737 | resultobj = SWIG_FromInt((int)result); | |
19738 | return resultobj; | |
19739 | fail: | |
19740 | return NULL; | |
19741 | } | |
19742 | ||
19743 | ||
19744 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19745 | PyObject *resultobj; | |
19746 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19747 | long arg2 ; | |
19748 | PyObject * obj0 = 0 ; | |
19749 | PyObject * obj1 = 0 ; | |
19750 | char *kwnames[] = { | |
19751 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19752 | }; | |
19753 | ||
19754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
19755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19757 | arg2 = (long) SWIG_AsLong(obj1); | |
19758 | if (PyErr_Occurred()) SWIG_fail; | |
19759 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
19760 | ||
19761 | Py_INCREF(Py_None); resultobj = Py_None; | |
19762 | return resultobj; | |
19763 | fail: | |
19764 | return NULL; | |
19765 | } | |
19766 | ||
19767 | ||
19768 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19769 | PyObject *resultobj; | |
19770 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19771 | long result; | |
19772 | PyObject * obj0 = 0 ; | |
19773 | char *kwnames[] = { | |
19774 | (char *) "self", NULL | |
19775 | }; | |
19776 | ||
19777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
19778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19780 | result = (long) ((arg1)->m_oldItemIndex); | |
19781 | ||
19782 | resultobj = SWIG_FromLong((long)result); | |
19783 | return resultobj; | |
19784 | fail: | |
19785 | return NULL; | |
19786 | } | |
19787 | ||
19788 | ||
19789 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19790 | PyObject *resultobj; | |
19791 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19792 | long arg2 ; | |
19793 | PyObject * obj0 = 0 ; | |
19794 | PyObject * obj1 = 0 ; | |
19795 | char *kwnames[] = { | |
19796 | (char *) "self",(char *) "m_itemIndex", NULL | |
19797 | }; | |
19798 | ||
19799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
19800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19802 | arg2 = (long) SWIG_AsLong(obj1); | |
19803 | if (PyErr_Occurred()) SWIG_fail; | |
19804 | if (arg1) (arg1)->m_itemIndex = arg2; | |
19805 | ||
19806 | Py_INCREF(Py_None); resultobj = Py_None; | |
19807 | return resultobj; | |
19808 | fail: | |
19809 | return NULL; | |
19810 | } | |
19811 | ||
19812 | ||
19813 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19814 | PyObject *resultobj; | |
19815 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19816 | long result; | |
19817 | PyObject * obj0 = 0 ; | |
19818 | char *kwnames[] = { | |
19819 | (char *) "self", NULL | |
19820 | }; | |
19821 | ||
19822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
19823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19825 | result = (long) ((arg1)->m_itemIndex); | |
19826 | ||
19827 | resultobj = SWIG_FromLong((long)result); | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19835 | PyObject *resultobj; | |
19836 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19837 | int arg2 ; | |
19838 | PyObject * obj0 = 0 ; | |
19839 | PyObject * obj1 = 0 ; | |
19840 | char *kwnames[] = { | |
19841 | (char *) "self",(char *) "m_col", NULL | |
19842 | }; | |
19843 | ||
19844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
19845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19847 | arg2 = (int) SWIG_AsInt(obj1); | |
19848 | if (PyErr_Occurred()) SWIG_fail; | |
19849 | if (arg1) (arg1)->m_col = arg2; | |
19850 | ||
19851 | Py_INCREF(Py_None); resultobj = Py_None; | |
19852 | return resultobj; | |
19853 | fail: | |
19854 | return NULL; | |
19855 | } | |
19856 | ||
19857 | ||
19858 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19859 | PyObject *resultobj; | |
19860 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19861 | int result; | |
19862 | PyObject * obj0 = 0 ; | |
19863 | char *kwnames[] = { | |
19864 | (char *) "self", NULL | |
19865 | }; | |
19866 | ||
19867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
19868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19870 | result = (int) ((arg1)->m_col); | |
19871 | ||
19872 | resultobj = SWIG_FromInt((int)result); | |
19873 | return resultobj; | |
19874 | fail: | |
19875 | return NULL; | |
19876 | } | |
19877 | ||
19878 | ||
19879 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19880 | PyObject *resultobj; | |
19881 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19882 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19883 | PyObject * obj0 = 0 ; | |
19884 | PyObject * obj1 = 0 ; | |
19885 | char *kwnames[] = { | |
19886 | (char *) "self",(char *) "m_pointDrag", NULL | |
19887 | }; | |
19888 | ||
19889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
19890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19892 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
19893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19894 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
19895 | ||
19896 | Py_INCREF(Py_None); resultobj = Py_None; | |
19897 | return resultobj; | |
19898 | fail: | |
19899 | return NULL; | |
19900 | } | |
19901 | ||
19902 | ||
19903 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19904 | PyObject *resultobj; | |
19905 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19906 | wxPoint *result; | |
19907 | PyObject * obj0 = 0 ; | |
19908 | char *kwnames[] = { | |
19909 | (char *) "self", NULL | |
19910 | }; | |
19911 | ||
19912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
19913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19915 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
19916 | ||
19917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
19918 | return resultobj; | |
19919 | fail: | |
19920 | return NULL; | |
19921 | } | |
19922 | ||
19923 | ||
19924 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19925 | PyObject *resultobj; | |
19926 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19927 | wxListItem *result; | |
19928 | PyObject * obj0 = 0 ; | |
19929 | char *kwnames[] = { | |
19930 | (char *) "self", NULL | |
19931 | }; | |
19932 | ||
19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
19934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19936 | result = (wxListItem *)& ((arg1)->m_item); | |
19937 | ||
19938 | { | |
19939 | resultobj = wxPyMake_wxObject(result); | |
19940 | } | |
19941 | return resultobj; | |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19950 | int result; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19959 | { | |
19960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19961 | result = (int)(arg1)->GetKeyCode(); | |
19962 | ||
19963 | wxPyEndAllowThreads(__tstate); | |
19964 | if (PyErr_Occurred()) SWIG_fail; | |
19965 | } | |
19966 | resultobj = SWIG_FromInt((int)result); | |
19967 | return resultobj; | |
19968 | fail: | |
19969 | return NULL; | |
19970 | } | |
19971 | ||
19972 | ||
19973 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19974 | PyObject *resultobj; | |
19975 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19976 | long result; | |
19977 | PyObject * obj0 = 0 ; | |
19978 | char *kwnames[] = { | |
19979 | (char *) "self", NULL | |
19980 | }; | |
19981 | ||
19982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
19983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
19984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19985 | { | |
19986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19987 | result = (long)(arg1)->GetIndex(); | |
19988 | ||
19989 | wxPyEndAllowThreads(__tstate); | |
19990 | if (PyErr_Occurred()) SWIG_fail; | |
19991 | } | |
19992 | resultobj = SWIG_FromLong((long)result); | |
19993 | return resultobj; | |
19994 | fail: | |
19995 | return NULL; | |
19996 | } | |
19997 | ||
19998 | ||
19999 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20000 | PyObject *resultobj; | |
20001 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20002 | int result; | |
20003 | PyObject * obj0 = 0 ; | |
20004 | char *kwnames[] = { | |
20005 | (char *) "self", NULL | |
20006 | }; | |
20007 | ||
20008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
20009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20011 | { | |
20012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20013 | result = (int)(arg1)->GetColumn(); | |
20014 | ||
20015 | wxPyEndAllowThreads(__tstate); | |
20016 | if (PyErr_Occurred()) SWIG_fail; | |
20017 | } | |
20018 | resultobj = SWIG_FromInt((int)result); | |
20019 | return resultobj; | |
20020 | fail: | |
20021 | return NULL; | |
20022 | } | |
20023 | ||
20024 | ||
20025 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20026 | PyObject *resultobj; | |
20027 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20028 | wxPoint result; | |
20029 | PyObject * obj0 = 0 ; | |
20030 | char *kwnames[] = { | |
20031 | (char *) "self", NULL | |
20032 | }; | |
20033 | ||
20034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20037 | { | |
20038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20039 | result = (arg1)->GetPoint(); | |
20040 | ||
20041 | wxPyEndAllowThreads(__tstate); | |
20042 | if (PyErr_Occurred()) SWIG_fail; | |
20043 | } | |
20044 | { | |
20045 | wxPoint * resultptr; | |
20046 | resultptr = new wxPoint((wxPoint &) result); | |
20047 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20048 | } | |
20049 | return resultobj; | |
20050 | fail: | |
20051 | return NULL; | |
20052 | } | |
20053 | ||
20054 | ||
20055 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20056 | PyObject *resultobj; | |
20057 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20058 | wxString *result; | |
20059 | PyObject * obj0 = 0 ; | |
20060 | char *kwnames[] = { | |
20061 | (char *) "self", NULL | |
20062 | }; | |
20063 | ||
20064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20067 | { | |
20068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20069 | { | |
20070 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20071 | result = (wxString *) &_result_ref; | |
20072 | } | |
20073 | ||
20074 | wxPyEndAllowThreads(__tstate); | |
20075 | if (PyErr_Occurred()) SWIG_fail; | |
20076 | } | |
20077 | { | |
20078 | #if wxUSE_UNICODE | |
20079 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20080 | #else | |
20081 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20082 | #endif | |
20083 | } | |
20084 | return resultobj; | |
20085 | fail: | |
20086 | return NULL; | |
20087 | } | |
20088 | ||
20089 | ||
20090 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20091 | PyObject *resultobj; | |
20092 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20093 | wxString *result; | |
20094 | PyObject * obj0 = 0 ; | |
20095 | char *kwnames[] = { | |
20096 | (char *) "self", NULL | |
20097 | }; | |
20098 | ||
20099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
20100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20102 | { | |
20103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20104 | { | |
20105 | wxString const &_result_ref = (arg1)->GetText(); | |
20106 | result = (wxString *) &_result_ref; | |
20107 | } | |
20108 | ||
20109 | wxPyEndAllowThreads(__tstate); | |
20110 | if (PyErr_Occurred()) SWIG_fail; | |
20111 | } | |
20112 | { | |
20113 | #if wxUSE_UNICODE | |
20114 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20115 | #else | |
20116 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20117 | #endif | |
20118 | } | |
20119 | return resultobj; | |
20120 | fail: | |
20121 | return NULL; | |
20122 | } | |
20123 | ||
20124 | ||
20125 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20126 | PyObject *resultobj; | |
20127 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20128 | int result; | |
20129 | PyObject * obj0 = 0 ; | |
20130 | char *kwnames[] = { | |
20131 | (char *) "self", NULL | |
20132 | }; | |
20133 | ||
20134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
20135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20137 | { | |
20138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20139 | result = (int)(arg1)->GetImage(); | |
20140 | ||
20141 | wxPyEndAllowThreads(__tstate); | |
20142 | if (PyErr_Occurred()) SWIG_fail; | |
20143 | } | |
20144 | resultobj = SWIG_FromInt((int)result); | |
20145 | return resultobj; | |
20146 | fail: | |
20147 | return NULL; | |
20148 | } | |
20149 | ||
20150 | ||
20151 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20152 | PyObject *resultobj; | |
20153 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20154 | long result; | |
20155 | PyObject * obj0 = 0 ; | |
20156 | char *kwnames[] = { | |
20157 | (char *) "self", NULL | |
20158 | }; | |
20159 | ||
20160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
20161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20163 | { | |
20164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20165 | result = (long)(arg1)->GetData(); | |
20166 | ||
20167 | wxPyEndAllowThreads(__tstate); | |
20168 | if (PyErr_Occurred()) SWIG_fail; | |
20169 | } | |
20170 | resultobj = SWIG_FromLong((long)result); | |
20171 | return resultobj; | |
20172 | fail: | |
20173 | return NULL; | |
20174 | } | |
20175 | ||
20176 | ||
20177 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20178 | PyObject *resultobj; | |
20179 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20180 | long result; | |
20181 | PyObject * obj0 = 0 ; | |
20182 | char *kwnames[] = { | |
20183 | (char *) "self", NULL | |
20184 | }; | |
20185 | ||
20186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
20187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20189 | { | |
20190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20191 | result = (long)(arg1)->GetMask(); | |
20192 | ||
20193 | wxPyEndAllowThreads(__tstate); | |
20194 | if (PyErr_Occurred()) SWIG_fail; | |
20195 | } | |
20196 | resultobj = SWIG_FromLong((long)result); | |
20197 | return resultobj; | |
20198 | fail: | |
20199 | return NULL; | |
20200 | } | |
20201 | ||
20202 | ||
20203 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20204 | PyObject *resultobj; | |
20205 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20206 | wxListItem *result; | |
20207 | PyObject * obj0 = 0 ; | |
20208 | char *kwnames[] = { | |
20209 | (char *) "self", NULL | |
20210 | }; | |
20211 | ||
20212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
20213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20215 | { | |
20216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20217 | { | |
20218 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20219 | result = (wxListItem *) &_result_ref; | |
20220 | } | |
20221 | ||
20222 | wxPyEndAllowThreads(__tstate); | |
20223 | if (PyErr_Occurred()) SWIG_fail; | |
20224 | } | |
20225 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
20226 | return resultobj; | |
20227 | fail: | |
20228 | return NULL; | |
20229 | } | |
20230 | ||
20231 | ||
20232 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20233 | PyObject *resultobj; | |
20234 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20235 | long result; | |
20236 | PyObject * obj0 = 0 ; | |
20237 | char *kwnames[] = { | |
20238 | (char *) "self", NULL | |
20239 | }; | |
20240 | ||
20241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
20242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20244 | { | |
20245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20246 | result = (long)(arg1)->GetCacheFrom(); | |
20247 | ||
20248 | wxPyEndAllowThreads(__tstate); | |
20249 | if (PyErr_Occurred()) SWIG_fail; | |
20250 | } | |
20251 | resultobj = SWIG_FromLong((long)result); | |
20252 | return resultobj; | |
20253 | fail: | |
20254 | return NULL; | |
20255 | } | |
20256 | ||
20257 | ||
20258 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20259 | PyObject *resultobj; | |
20260 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20261 | long result; | |
20262 | PyObject * obj0 = 0 ; | |
20263 | char *kwnames[] = { | |
20264 | (char *) "self", NULL | |
20265 | }; | |
20266 | ||
20267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
20268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | result = (long)(arg1)->GetCacheTo(); | |
20273 | ||
20274 | wxPyEndAllowThreads(__tstate); | |
20275 | if (PyErr_Occurred()) SWIG_fail; | |
20276 | } | |
20277 | resultobj = SWIG_FromLong((long)result); | |
20278 | return resultobj; | |
20279 | fail: | |
20280 | return NULL; | |
20281 | } | |
20282 | ||
20283 | ||
20284 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20285 | PyObject *resultobj; | |
20286 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20287 | bool result; | |
20288 | PyObject * obj0 = 0 ; | |
20289 | char *kwnames[] = { | |
20290 | (char *) "self", NULL | |
20291 | }; | |
20292 | ||
20293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
20294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20296 | { | |
20297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20298 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20299 | ||
20300 | wxPyEndAllowThreads(__tstate); | |
20301 | if (PyErr_Occurred()) SWIG_fail; | |
20302 | } | |
20303 | { | |
20304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20305 | } | |
20306 | return resultobj; | |
20307 | fail: | |
20308 | return NULL; | |
20309 | } | |
20310 | ||
20311 | ||
20312 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20313 | PyObject *resultobj; | |
20314 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20315 | bool arg2 ; | |
20316 | PyObject * obj0 = 0 ; | |
20317 | PyObject * obj1 = 0 ; | |
20318 | char *kwnames[] = { | |
20319 | (char *) "self",(char *) "editCancelled", NULL | |
20320 | }; | |
20321 | ||
20322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
20323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20325 | arg2 = (bool) SWIG_AsBool(obj1); | |
20326 | if (PyErr_Occurred()) SWIG_fail; | |
20327 | { | |
20328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20329 | (arg1)->SetEditCanceled(arg2); | |
20330 | ||
20331 | wxPyEndAllowThreads(__tstate); | |
20332 | if (PyErr_Occurred()) SWIG_fail; | |
20333 | } | |
20334 | Py_INCREF(Py_None); resultobj = Py_None; | |
20335 | return resultobj; | |
20336 | fail: | |
20337 | return NULL; | |
20338 | } | |
20339 | ||
20340 | ||
20341 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20342 | PyObject *obj; | |
20343 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20344 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20345 | Py_INCREF(obj); | |
20346 | return Py_BuildValue((char *)""); | |
20347 | } | |
20348 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20349 | PyObject *resultobj; | |
20350 | wxWindow *arg1 = (wxWindow *) 0 ; | |
20351 | int arg2 = (int) -1 ; | |
20352 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
20353 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20354 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20355 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20356 | long arg5 = (long) wxLC_ICON ; | |
20357 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20358 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20359 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20360 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20361 | wxPyListCtrl *result; | |
20362 | wxPoint temp3 ; | |
20363 | wxSize temp4 ; | |
20364 | bool temp7 = False ; | |
20365 | PyObject * obj0 = 0 ; | |
20366 | PyObject * obj1 = 0 ; | |
20367 | PyObject * obj2 = 0 ; | |
20368 | PyObject * obj3 = 0 ; | |
20369 | PyObject * obj4 = 0 ; | |
20370 | PyObject * obj5 = 0 ; | |
20371 | PyObject * obj6 = 0 ; | |
20372 | char *kwnames[] = { | |
20373 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20374 | }; | |
20375 | ||
20376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
20377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
20378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20379 | if (obj1) { | |
20380 | arg2 = (int) SWIG_AsInt(obj1); | |
20381 | if (PyErr_Occurred()) SWIG_fail; | |
20382 | } | |
20383 | if (obj2) { | |
20384 | { | |
20385 | arg3 = &temp3; | |
20386 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20387 | } | |
20388 | } | |
20389 | if (obj3) { | |
20390 | { | |
20391 | arg4 = &temp4; | |
20392 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20393 | } | |
20394 | } | |
20395 | if (obj4) { | |
20396 | arg5 = (long) SWIG_AsLong(obj4); | |
20397 | if (PyErr_Occurred()) SWIG_fail; | |
20398 | } | |
20399 | if (obj5) { | |
20400 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
20401 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20402 | SWIG_fail; | |
20403 | if (arg6 == NULL) { | |
20404 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20405 | SWIG_fail; | |
20406 | } | |
20407 | } | |
20408 | if (obj6) { | |
20409 | { | |
20410 | arg7 = wxString_in_helper(obj6); | |
20411 | if (arg7 == NULL) SWIG_fail; | |
20412 | temp7 = True; | |
20413 | } | |
20414 | } | |
20415 | { | |
20416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20417 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20418 | ||
20419 | wxPyEndAllowThreads(__tstate); | |
20420 | if (PyErr_Occurred()) SWIG_fail; | |
20421 | } | |
20422 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
20423 | { | |
20424 | if (temp7) | |
20425 | delete arg7; | |
20426 | } | |
20427 | return resultobj; | |
20428 | fail: | |
20429 | { | |
20430 | if (temp7) | |
20431 | delete arg7; | |
20432 | } | |
20433 | return NULL; | |
20434 | } | |
20435 | ||
20436 | ||
20437 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20438 | PyObject *resultobj; | |
20439 | wxPyListCtrl *result; | |
20440 | char *kwnames[] = { | |
20441 | NULL | |
20442 | }; | |
20443 | ||
20444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20445 | { | |
20446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20447 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20448 | ||
20449 | wxPyEndAllowThreads(__tstate); | |
20450 | if (PyErr_Occurred()) SWIG_fail; | |
20451 | } | |
20452 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
20453 | return resultobj; | |
20454 | fail: | |
20455 | return NULL; | |
20456 | } | |
20457 | ||
20458 | ||
20459 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20460 | PyObject *resultobj; | |
20461 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20462 | wxWindow *arg2 = (wxWindow *) 0 ; | |
20463 | int arg3 = (int) -1 ; | |
20464 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
20465 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20466 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20467 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20468 | long arg6 = (long) wxLC_ICON ; | |
20469 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20470 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20471 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20472 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20473 | bool result; | |
20474 | wxPoint temp4 ; | |
20475 | wxSize temp5 ; | |
20476 | bool temp8 = False ; | |
20477 | PyObject * obj0 = 0 ; | |
20478 | PyObject * obj1 = 0 ; | |
20479 | PyObject * obj2 = 0 ; | |
20480 | PyObject * obj3 = 0 ; | |
20481 | PyObject * obj4 = 0 ; | |
20482 | PyObject * obj5 = 0 ; | |
20483 | PyObject * obj6 = 0 ; | |
20484 | PyObject * obj7 = 0 ; | |
20485 | char *kwnames[] = { | |
20486 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20487 | }; | |
20488 | ||
20489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
20490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20492 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20494 | if (obj2) { | |
20495 | arg3 = (int) SWIG_AsInt(obj2); | |
20496 | if (PyErr_Occurred()) SWIG_fail; | |
20497 | } | |
20498 | if (obj3) { | |
20499 | { | |
20500 | arg4 = &temp4; | |
20501 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20502 | } | |
20503 | } | |
20504 | if (obj4) { | |
20505 | { | |
20506 | arg5 = &temp5; | |
20507 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20508 | } | |
20509 | } | |
20510 | if (obj5) { | |
20511 | arg6 = (long) SWIG_AsLong(obj5); | |
20512 | if (PyErr_Occurred()) SWIG_fail; | |
20513 | } | |
20514 | if (obj6) { | |
20515 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
20516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20517 | SWIG_fail; | |
20518 | if (arg7 == NULL) { | |
20519 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20520 | SWIG_fail; | |
20521 | } | |
20522 | } | |
20523 | if (obj7) { | |
20524 | { | |
20525 | arg8 = wxString_in_helper(obj7); | |
20526 | if (arg8 == NULL) SWIG_fail; | |
20527 | temp8 = True; | |
20528 | } | |
20529 | } | |
20530 | { | |
20531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20532 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20533 | ||
20534 | wxPyEndAllowThreads(__tstate); | |
20535 | if (PyErr_Occurred()) SWIG_fail; | |
20536 | } | |
20537 | { | |
20538 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20539 | } | |
20540 | { | |
20541 | if (temp8) | |
20542 | delete arg8; | |
20543 | } | |
20544 | return resultobj; | |
20545 | fail: | |
20546 | { | |
20547 | if (temp8) | |
20548 | delete arg8; | |
20549 | } | |
20550 | return NULL; | |
20551 | } | |
20552 | ||
20553 | ||
20554 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20555 | PyObject *resultobj; | |
20556 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20557 | PyObject *arg2 = (PyObject *) 0 ; | |
20558 | PyObject *arg3 = (PyObject *) 0 ; | |
20559 | PyObject * obj0 = 0 ; | |
20560 | PyObject * obj1 = 0 ; | |
20561 | PyObject * obj2 = 0 ; | |
20562 | char *kwnames[] = { | |
20563 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20564 | }; | |
20565 | ||
20566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20569 | arg2 = obj1; | |
20570 | arg3 = obj2; | |
20571 | { | |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20574 | ||
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | Py_INCREF(Py_None); resultobj = Py_None; | |
20579 | return resultobj; | |
20580 | fail: | |
20581 | return NULL; | |
20582 | } | |
20583 | ||
20584 | ||
20585 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20586 | PyObject *resultobj; | |
20587 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20588 | wxColour *arg2 = 0 ; | |
20589 | bool result; | |
20590 | wxColour temp2 ; | |
20591 | PyObject * obj0 = 0 ; | |
20592 | PyObject * obj1 = 0 ; | |
20593 | char *kwnames[] = { | |
20594 | (char *) "self",(char *) "col", NULL | |
20595 | }; | |
20596 | ||
20597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20600 | { | |
20601 | arg2 = &temp2; | |
20602 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20603 | } | |
20604 | { | |
20605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20606 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20607 | ||
20608 | wxPyEndAllowThreads(__tstate); | |
20609 | if (PyErr_Occurred()) SWIG_fail; | |
20610 | } | |
20611 | { | |
20612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20613 | } | |
20614 | return resultobj; | |
20615 | fail: | |
20616 | return NULL; | |
20617 | } | |
20618 | ||
20619 | ||
20620 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20621 | PyObject *resultobj; | |
20622 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20623 | wxColour *arg2 = 0 ; | |
20624 | bool result; | |
20625 | wxColour temp2 ; | |
20626 | PyObject * obj0 = 0 ; | |
20627 | PyObject * obj1 = 0 ; | |
20628 | char *kwnames[] = { | |
20629 | (char *) "self",(char *) "col", NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
20633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20635 | { | |
20636 | arg2 = &temp2; | |
20637 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20638 | } | |
20639 | { | |
20640 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20641 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20642 | ||
20643 | wxPyEndAllowThreads(__tstate); | |
20644 | if (PyErr_Occurred()) SWIG_fail; | |
20645 | } | |
20646 | { | |
20647 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20648 | } | |
20649 | return resultobj; | |
20650 | fail: | |
20651 | return NULL; | |
20652 | } | |
20653 | ||
20654 | ||
20655 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20656 | PyObject *resultobj; | |
20657 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20658 | int arg2 ; | |
20659 | wxListItem *result; | |
20660 | PyObject * obj0 = 0 ; | |
20661 | PyObject * obj1 = 0 ; | |
20662 | char *kwnames[] = { | |
20663 | (char *) "self",(char *) "col", NULL | |
20664 | }; | |
20665 | ||
20666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
20667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20669 | arg2 = (int) SWIG_AsInt(obj1); | |
20670 | if (PyErr_Occurred()) SWIG_fail; | |
20671 | { | |
20672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20673 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20674 | ||
20675 | wxPyEndAllowThreads(__tstate); | |
20676 | if (PyErr_Occurred()) SWIG_fail; | |
20677 | } | |
20678 | { | |
20679 | resultobj = wxPyMake_wxObject(result); | |
20680 | } | |
20681 | return resultobj; | |
20682 | fail: | |
20683 | return NULL; | |
20684 | } | |
20685 | ||
20686 | ||
20687 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20688 | PyObject *resultobj; | |
20689 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20690 | int arg2 ; | |
20691 | wxListItem *arg3 = 0 ; | |
20692 | bool result; | |
20693 | PyObject * obj0 = 0 ; | |
20694 | PyObject * obj1 = 0 ; | |
20695 | PyObject * obj2 = 0 ; | |
20696 | char *kwnames[] = { | |
20697 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20698 | }; | |
20699 | ||
20700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20703 | arg2 = (int) SWIG_AsInt(obj1); | |
20704 | if (PyErr_Occurred()) SWIG_fail; | |
20705 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
20706 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20707 | SWIG_fail; | |
20708 | if (arg3 == NULL) { | |
20709 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20710 | SWIG_fail; | |
20711 | } | |
20712 | { | |
20713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20714 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20715 | ||
20716 | wxPyEndAllowThreads(__tstate); | |
20717 | if (PyErr_Occurred()) SWIG_fail; | |
20718 | } | |
20719 | { | |
20720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20721 | } | |
20722 | return resultobj; | |
20723 | fail: | |
20724 | return NULL; | |
20725 | } | |
20726 | ||
20727 | ||
20728 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20729 | PyObject *resultobj; | |
20730 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20731 | int arg2 ; | |
20732 | int result; | |
20733 | PyObject * obj0 = 0 ; | |
20734 | PyObject * obj1 = 0 ; | |
20735 | char *kwnames[] = { | |
20736 | (char *) "self",(char *) "col", NULL | |
20737 | }; | |
20738 | ||
20739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
20740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20742 | arg2 = (int) SWIG_AsInt(obj1); | |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
20744 | { | |
20745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20746 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20747 | ||
20748 | wxPyEndAllowThreads(__tstate); | |
20749 | if (PyErr_Occurred()) SWIG_fail; | |
20750 | } | |
20751 | resultobj = SWIG_FromInt((int)result); | |
20752 | return resultobj; | |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20761 | int arg2 ; | |
20762 | int arg3 ; | |
20763 | bool result; | |
20764 | PyObject * obj0 = 0 ; | |
20765 | PyObject * obj1 = 0 ; | |
20766 | PyObject * obj2 = 0 ; | |
20767 | char *kwnames[] = { | |
20768 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20769 | }; | |
20770 | ||
20771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20774 | arg2 = (int) SWIG_AsInt(obj1); | |
20775 | if (PyErr_Occurred()) SWIG_fail; | |
20776 | arg3 = (int) SWIG_AsInt(obj2); | |
20777 | if (PyErr_Occurred()) SWIG_fail; | |
20778 | { | |
20779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20780 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20781 | ||
20782 | wxPyEndAllowThreads(__tstate); | |
20783 | if (PyErr_Occurred()) SWIG_fail; | |
20784 | } | |
20785 | { | |
20786 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20787 | } | |
20788 | return resultobj; | |
20789 | fail: | |
20790 | return NULL; | |
20791 | } | |
20792 | ||
20793 | ||
20794 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20795 | PyObject *resultobj; | |
20796 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20797 | int result; | |
20798 | PyObject * obj0 = 0 ; | |
20799 | char *kwnames[] = { | |
20800 | (char *) "self", NULL | |
20801 | }; | |
20802 | ||
20803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
20804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20806 | { | |
20807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20808 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20809 | ||
20810 | wxPyEndAllowThreads(__tstate); | |
20811 | if (PyErr_Occurred()) SWIG_fail; | |
20812 | } | |
20813 | resultobj = SWIG_FromInt((int)result); | |
20814 | return resultobj; | |
20815 | fail: | |
20816 | return NULL; | |
20817 | } | |
20818 | ||
20819 | ||
20820 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20821 | PyObject *resultobj; | |
20822 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20823 | wxRect result; | |
20824 | PyObject * obj0 = 0 ; | |
20825 | char *kwnames[] = { | |
20826 | (char *) "self", NULL | |
20827 | }; | |
20828 | ||
20829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
20830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20832 | { | |
20833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20834 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20835 | ||
20836 | wxPyEndAllowThreads(__tstate); | |
20837 | if (PyErr_Occurred()) SWIG_fail; | |
20838 | } | |
20839 | { | |
20840 | wxRect * resultptr; | |
20841 | resultptr = new wxRect((wxRect &) result); | |
20842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
20843 | } | |
20844 | return resultobj; | |
20845 | fail: | |
20846 | return NULL; | |
20847 | } | |
20848 | ||
20849 | ||
20850 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20851 | PyObject *resultobj; | |
20852 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20853 | wxTextCtrl *result; | |
20854 | PyObject * obj0 = 0 ; | |
20855 | char *kwnames[] = { | |
20856 | (char *) "self", NULL | |
20857 | }; | |
20858 | ||
20859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
20860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20862 | { | |
20863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20864 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20865 | ||
20866 | wxPyEndAllowThreads(__tstate); | |
20867 | if (PyErr_Occurred()) SWIG_fail; | |
20868 | } | |
20869 | { | |
20870 | resultobj = wxPyMake_wxObject(result); | |
20871 | } | |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
20878 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20879 | PyObject *resultobj; | |
20880 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20881 | long arg2 ; | |
20882 | int arg3 = (int) 0 ; | |
20883 | wxListItem *result; | |
20884 | PyObject * obj0 = 0 ; | |
20885 | PyObject * obj1 = 0 ; | |
20886 | PyObject * obj2 = 0 ; | |
20887 | char *kwnames[] = { | |
20888 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20889 | }; | |
20890 | ||
20891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
20892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20894 | arg2 = (long) SWIG_AsLong(obj1); | |
20895 | if (PyErr_Occurred()) SWIG_fail; | |
20896 | if (obj2) { | |
20897 | arg3 = (int) SWIG_AsInt(obj2); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | { | |
20901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20902 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20903 | ||
20904 | wxPyEndAllowThreads(__tstate); | |
20905 | if (PyErr_Occurred()) SWIG_fail; | |
20906 | } | |
20907 | { | |
20908 | resultobj = wxPyMake_wxObject(result); | |
20909 | } | |
20910 | return resultobj; | |
20911 | fail: | |
20912 | return NULL; | |
20913 | } | |
20914 | ||
20915 | ||
20916 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20917 | PyObject *resultobj; | |
20918 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20919 | wxListItem *arg2 = 0 ; | |
20920 | bool result; | |
20921 | PyObject * obj0 = 0 ; | |
20922 | PyObject * obj1 = 0 ; | |
20923 | char *kwnames[] = { | |
20924 | (char *) "self",(char *) "info", NULL | |
20925 | }; | |
20926 | ||
20927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
20928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20930 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
20931 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20932 | SWIG_fail; | |
20933 | if (arg2 == NULL) { | |
20934 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
20935 | SWIG_fail; | |
20936 | } | |
20937 | { | |
20938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20939 | result = (bool)(arg1)->SetItem(*arg2); | |
20940 | ||
20941 | wxPyEndAllowThreads(__tstate); | |
20942 | if (PyErr_Occurred()) SWIG_fail; | |
20943 | } | |
20944 | { | |
20945 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20946 | } | |
20947 | return resultobj; | |
20948 | fail: | |
20949 | return NULL; | |
20950 | } | |
20951 | ||
20952 | ||
20953 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20954 | PyObject *resultobj; | |
20955 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20956 | long arg2 ; | |
20957 | int arg3 ; | |
20958 | wxString *arg4 = 0 ; | |
20959 | int arg5 = (int) -1 ; | |
20960 | long result; | |
20961 | bool temp4 = False ; | |
20962 | PyObject * obj0 = 0 ; | |
20963 | PyObject * obj1 = 0 ; | |
20964 | PyObject * obj2 = 0 ; | |
20965 | PyObject * obj3 = 0 ; | |
20966 | PyObject * obj4 = 0 ; | |
20967 | char *kwnames[] = { | |
20968 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20969 | }; | |
20970 | ||
20971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
20972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
20973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20974 | arg2 = (long) SWIG_AsLong(obj1); | |
20975 | if (PyErr_Occurred()) SWIG_fail; | |
20976 | arg3 = (int) SWIG_AsInt(obj2); | |
20977 | if (PyErr_Occurred()) SWIG_fail; | |
20978 | { | |
20979 | arg4 = wxString_in_helper(obj3); | |
20980 | if (arg4 == NULL) SWIG_fail; | |
20981 | temp4 = True; | |
20982 | } | |
20983 | if (obj4) { | |
20984 | arg5 = (int) SWIG_AsInt(obj4); | |
20985 | if (PyErr_Occurred()) SWIG_fail; | |
20986 | } | |
20987 | { | |
20988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20989 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20990 | ||
20991 | wxPyEndAllowThreads(__tstate); | |
20992 | if (PyErr_Occurred()) SWIG_fail; | |
20993 | } | |
20994 | resultobj = SWIG_FromLong((long)result); | |
20995 | { | |
20996 | if (temp4) | |
20997 | delete arg4; | |
20998 | } | |
20999 | return resultobj; | |
21000 | fail: | |
21001 | { | |
21002 | if (temp4) | |
21003 | delete arg4; | |
21004 | } | |
21005 | return NULL; | |
21006 | } | |
21007 | ||
21008 | ||
21009 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21010 | PyObject *resultobj; | |
21011 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21012 | long arg2 ; | |
21013 | long arg3 ; | |
21014 | int result; | |
21015 | PyObject * obj0 = 0 ; | |
21016 | PyObject * obj1 = 0 ; | |
21017 | PyObject * obj2 = 0 ; | |
21018 | char *kwnames[] = { | |
21019 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21020 | }; | |
21021 | ||
21022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21025 | arg2 = (long) SWIG_AsLong(obj1); | |
21026 | if (PyErr_Occurred()) SWIG_fail; | |
21027 | arg3 = (long) SWIG_AsLong(obj2); | |
21028 | if (PyErr_Occurred()) SWIG_fail; | |
21029 | { | |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
21036 | resultobj = SWIG_FromInt((int)result); | |
21037 | return resultobj; | |
21038 | fail: | |
21039 | return NULL; | |
21040 | } | |
21041 | ||
21042 | ||
21043 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21044 | PyObject *resultobj; | |
21045 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21046 | long arg2 ; | |
21047 | long arg3 ; | |
21048 | long arg4 ; | |
21049 | bool result; | |
21050 | PyObject * obj0 = 0 ; | |
21051 | PyObject * obj1 = 0 ; | |
21052 | PyObject * obj2 = 0 ; | |
21053 | PyObject * obj3 = 0 ; | |
21054 | char *kwnames[] = { | |
21055 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21056 | }; | |
21057 | ||
21058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21061 | arg2 = (long) SWIG_AsLong(obj1); | |
21062 | if (PyErr_Occurred()) SWIG_fail; | |
21063 | arg3 = (long) SWIG_AsLong(obj2); | |
21064 | if (PyErr_Occurred()) SWIG_fail; | |
21065 | arg4 = (long) SWIG_AsLong(obj3); | |
21066 | if (PyErr_Occurred()) SWIG_fail; | |
21067 | { | |
21068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21069 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21070 | ||
21071 | wxPyEndAllowThreads(__tstate); | |
21072 | if (PyErr_Occurred()) SWIG_fail; | |
21073 | } | |
21074 | { | |
21075 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21076 | } | |
21077 | return resultobj; | |
21078 | fail: | |
21079 | return NULL; | |
21080 | } | |
21081 | ||
21082 | ||
21083 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21084 | PyObject *resultobj; | |
21085 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21086 | long arg2 ; | |
21087 | int arg3 ; | |
21088 | int arg4 ; | |
21089 | bool result; | |
21090 | PyObject * obj0 = 0 ; | |
21091 | PyObject * obj1 = 0 ; | |
21092 | PyObject * obj2 = 0 ; | |
21093 | PyObject * obj3 = 0 ; | |
21094 | char *kwnames[] = { | |
21095 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21096 | }; | |
21097 | ||
21098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21101 | arg2 = (long) SWIG_AsLong(obj1); | |
21102 | if (PyErr_Occurred()) SWIG_fail; | |
21103 | arg3 = (int) SWIG_AsInt(obj2); | |
21104 | if (PyErr_Occurred()) SWIG_fail; | |
21105 | arg4 = (int) SWIG_AsInt(obj3); | |
21106 | if (PyErr_Occurred()) SWIG_fail; | |
21107 | { | |
21108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21109 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21110 | ||
21111 | wxPyEndAllowThreads(__tstate); | |
21112 | if (PyErr_Occurred()) SWIG_fail; | |
21113 | } | |
21114 | { | |
21115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21116 | } | |
21117 | return resultobj; | |
21118 | fail: | |
21119 | return NULL; | |
21120 | } | |
21121 | ||
21122 | ||
21123 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21124 | PyObject *resultobj; | |
21125 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21126 | long arg2 ; | |
21127 | wxString result; | |
21128 | PyObject * obj0 = 0 ; | |
21129 | PyObject * obj1 = 0 ; | |
21130 | char *kwnames[] = { | |
21131 | (char *) "self",(char *) "item", NULL | |
21132 | }; | |
21133 | ||
21134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21137 | arg2 = (long) SWIG_AsLong(obj1); | |
21138 | if (PyErr_Occurred()) SWIG_fail; | |
21139 | { | |
21140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21141 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21142 | ||
21143 | wxPyEndAllowThreads(__tstate); | |
21144 | if (PyErr_Occurred()) SWIG_fail; | |
21145 | } | |
21146 | { | |
21147 | #if wxUSE_UNICODE | |
21148 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21149 | #else | |
21150 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21151 | #endif | |
21152 | } | |
21153 | return resultobj; | |
21154 | fail: | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
21159 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21160 | PyObject *resultobj; | |
21161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21162 | long arg2 ; | |
21163 | wxString *arg3 = 0 ; | |
21164 | bool temp3 = False ; | |
21165 | PyObject * obj0 = 0 ; | |
21166 | PyObject * obj1 = 0 ; | |
21167 | PyObject * obj2 = 0 ; | |
21168 | char *kwnames[] = { | |
21169 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21170 | }; | |
21171 | ||
21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21175 | arg2 = (long) SWIG_AsLong(obj1); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
21177 | { | |
21178 | arg3 = wxString_in_helper(obj2); | |
21179 | if (arg3 == NULL) SWIG_fail; | |
21180 | temp3 = True; | |
21181 | } | |
21182 | { | |
21183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21184 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21185 | ||
21186 | wxPyEndAllowThreads(__tstate); | |
21187 | if (PyErr_Occurred()) SWIG_fail; | |
21188 | } | |
21189 | Py_INCREF(Py_None); resultobj = Py_None; | |
21190 | { | |
21191 | if (temp3) | |
21192 | delete arg3; | |
21193 | } | |
21194 | return resultobj; | |
21195 | fail: | |
21196 | { | |
21197 | if (temp3) | |
21198 | delete arg3; | |
21199 | } | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21205 | PyObject *resultobj; | |
21206 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21207 | long arg2 ; | |
21208 | long result; | |
21209 | PyObject * obj0 = 0 ; | |
21210 | PyObject * obj1 = 0 ; | |
21211 | char *kwnames[] = { | |
21212 | (char *) "self",(char *) "item", NULL | |
21213 | }; | |
21214 | ||
21215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
21216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21218 | arg2 = (long) SWIG_AsLong(obj1); | |
21219 | if (PyErr_Occurred()) SWIG_fail; | |
21220 | { | |
21221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21222 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21223 | ||
21224 | wxPyEndAllowThreads(__tstate); | |
21225 | if (PyErr_Occurred()) SWIG_fail; | |
21226 | } | |
21227 | resultobj = SWIG_FromLong((long)result); | |
21228 | return resultobj; | |
21229 | fail: | |
21230 | return NULL; | |
21231 | } | |
21232 | ||
21233 | ||
21234 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21235 | PyObject *resultobj; | |
21236 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21237 | long arg2 ; | |
21238 | long arg3 ; | |
21239 | bool result; | |
21240 | PyObject * obj0 = 0 ; | |
21241 | PyObject * obj1 = 0 ; | |
21242 | PyObject * obj2 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21250 | arg2 = (long) SWIG_AsLong(obj1); | |
21251 | if (PyErr_Occurred()) SWIG_fail; | |
21252 | arg3 = (long) SWIG_AsLong(obj2); | |
21253 | if (PyErr_Occurred()) SWIG_fail; | |
21254 | { | |
21255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21256 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21257 | ||
21258 | wxPyEndAllowThreads(__tstate); | |
21259 | if (PyErr_Occurred()) SWIG_fail; | |
21260 | } | |
21261 | { | |
21262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21263 | } | |
21264 | return resultobj; | |
21265 | fail: | |
21266 | return NULL; | |
21267 | } | |
21268 | ||
21269 | ||
21270 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21271 | PyObject *resultobj; | |
21272 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21273 | long arg2 ; | |
21274 | wxPoint result; | |
21275 | PyObject * obj0 = 0 ; | |
21276 | PyObject * obj1 = 0 ; | |
21277 | char *kwnames[] = { | |
21278 | (char *) "self",(char *) "item", NULL | |
21279 | }; | |
21280 | ||
21281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
21282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21284 | arg2 = (long) SWIG_AsLong(obj1); | |
21285 | if (PyErr_Occurred()) SWIG_fail; | |
21286 | { | |
21287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21288 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21289 | ||
21290 | wxPyEndAllowThreads(__tstate); | |
21291 | if (PyErr_Occurred()) SWIG_fail; | |
21292 | } | |
21293 | { | |
21294 | wxPoint * resultptr; | |
21295 | resultptr = new wxPoint((wxPoint &) result); | |
21296 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
21297 | } | |
21298 | return resultobj; | |
21299 | fail: | |
21300 | return NULL; | |
21301 | } | |
21302 | ||
21303 | ||
21304 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21305 | PyObject *resultobj; | |
21306 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21307 | long arg2 ; | |
21308 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21309 | wxRect result; | |
21310 | PyObject * obj0 = 0 ; | |
21311 | PyObject * obj1 = 0 ; | |
21312 | PyObject * obj2 = 0 ; | |
21313 | char *kwnames[] = { | |
21314 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21315 | }; | |
21316 | ||
21317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21320 | arg2 = (long) SWIG_AsLong(obj1); | |
21321 | if (PyErr_Occurred()) SWIG_fail; | |
21322 | if (obj2) { | |
21323 | arg3 = (int) SWIG_AsInt(obj2); | |
21324 | if (PyErr_Occurred()) SWIG_fail; | |
21325 | } | |
21326 | { | |
21327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21328 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21329 | ||
21330 | wxPyEndAllowThreads(__tstate); | |
21331 | if (PyErr_Occurred()) SWIG_fail; | |
21332 | } | |
21333 | { | |
21334 | wxRect * resultptr; | |
21335 | resultptr = new wxRect((wxRect &) result); | |
21336 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21337 | } | |
21338 | return resultobj; | |
21339 | fail: | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
21344 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21345 | PyObject *resultobj; | |
21346 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21347 | long arg2 ; | |
21348 | wxPoint *arg3 = 0 ; | |
21349 | bool result; | |
21350 | wxPoint temp3 ; | |
21351 | PyObject * obj0 = 0 ; | |
21352 | PyObject * obj1 = 0 ; | |
21353 | PyObject * obj2 = 0 ; | |
21354 | char *kwnames[] = { | |
21355 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21356 | }; | |
21357 | ||
21358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21361 | arg2 = (long) SWIG_AsLong(obj1); | |
21362 | if (PyErr_Occurred()) SWIG_fail; | |
21363 | { | |
21364 | arg3 = &temp3; | |
21365 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21366 | } | |
21367 | { | |
21368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21369 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21370 | ||
21371 | wxPyEndAllowThreads(__tstate); | |
21372 | if (PyErr_Occurred()) SWIG_fail; | |
21373 | } | |
21374 | { | |
21375 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21376 | } | |
21377 | return resultobj; | |
21378 | fail: | |
21379 | return NULL; | |
21380 | } | |
21381 | ||
21382 | ||
21383 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21384 | PyObject *resultobj; | |
21385 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21386 | int result; | |
21387 | PyObject * obj0 = 0 ; | |
21388 | char *kwnames[] = { | |
21389 | (char *) "self", NULL | |
21390 | }; | |
21391 | ||
21392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
21393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21395 | { | |
21396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21397 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21398 | ||
21399 | wxPyEndAllowThreads(__tstate); | |
21400 | if (PyErr_Occurred()) SWIG_fail; | |
21401 | } | |
21402 | resultobj = SWIG_FromInt((int)result); | |
21403 | return resultobj; | |
21404 | fail: | |
21405 | return NULL; | |
21406 | } | |
21407 | ||
21408 | ||
21409 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21410 | PyObject *resultobj; | |
21411 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21412 | int result; | |
21413 | PyObject * obj0 = 0 ; | |
21414 | char *kwnames[] = { | |
21415 | (char *) "self", NULL | |
21416 | }; | |
21417 | ||
21418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
21419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21421 | { | |
21422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21423 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21424 | ||
21425 | wxPyEndAllowThreads(__tstate); | |
21426 | if (PyErr_Occurred()) SWIG_fail; | |
21427 | } | |
21428 | resultobj = SWIG_FromInt((int)result); | |
21429 | return resultobj; | |
21430 | fail: | |
21431 | return NULL; | |
21432 | } | |
21433 | ||
21434 | ||
21435 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21436 | PyObject *resultobj; | |
21437 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21438 | wxSize result; | |
21439 | PyObject * obj0 = 0 ; | |
21440 | char *kwnames[] = { | |
21441 | (char *) "self", NULL | |
21442 | }; | |
21443 | ||
21444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
21445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21447 | { | |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
21454 | { | |
21455 | wxSize * resultptr; | |
21456 | resultptr = new wxSize((wxSize &) result); | |
21457 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
21458 | } | |
21459 | return resultobj; | |
21460 | fail: | |
21461 | return NULL; | |
21462 | } | |
21463 | ||
21464 | ||
21465 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21466 | PyObject *resultobj; | |
21467 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21468 | int result; | |
21469 | PyObject * obj0 = 0 ; | |
21470 | char *kwnames[] = { | |
21471 | (char *) "self", NULL | |
21472 | }; | |
21473 | ||
21474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
21475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21477 | { | |
21478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21479 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21480 | ||
21481 | wxPyEndAllowThreads(__tstate); | |
21482 | if (PyErr_Occurred()) SWIG_fail; | |
21483 | } | |
21484 | resultobj = SWIG_FromInt((int)result); | |
21485 | return resultobj; | |
21486 | fail: | |
21487 | return NULL; | |
21488 | } | |
21489 | ||
21490 | ||
21491 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21492 | PyObject *resultobj; | |
21493 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21494 | wxColour result; | |
21495 | PyObject * obj0 = 0 ; | |
21496 | char *kwnames[] = { | |
21497 | (char *) "self", NULL | |
21498 | }; | |
21499 | ||
21500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
21501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21503 | { | |
21504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21505 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21506 | ||
21507 | wxPyEndAllowThreads(__tstate); | |
21508 | if (PyErr_Occurred()) SWIG_fail; | |
21509 | } | |
21510 | { | |
21511 | wxColour * resultptr; | |
21512 | resultptr = new wxColour((wxColour &) result); | |
21513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
21514 | } | |
21515 | return resultobj; | |
21516 | fail: | |
21517 | return NULL; | |
21518 | } | |
21519 | ||
21520 | ||
21521 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21522 | PyObject *resultobj; | |
21523 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21524 | wxColour *arg2 = 0 ; | |
21525 | wxColour temp2 ; | |
21526 | PyObject * obj0 = 0 ; | |
21527 | PyObject * obj1 = 0 ; | |
21528 | char *kwnames[] = { | |
21529 | (char *) "self",(char *) "col", NULL | |
21530 | }; | |
21531 | ||
21532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
21533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21535 | { | |
21536 | arg2 = &temp2; | |
21537 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21538 | } | |
21539 | { | |
21540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21541 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21542 | ||
21543 | wxPyEndAllowThreads(__tstate); | |
21544 | if (PyErr_Occurred()) SWIG_fail; | |
21545 | } | |
21546 | Py_INCREF(Py_None); resultobj = Py_None; | |
21547 | return resultobj; | |
21548 | fail: | |
21549 | return NULL; | |
21550 | } | |
21551 | ||
21552 | ||
21553 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21554 | PyObject *resultobj; | |
21555 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21556 | long result; | |
21557 | PyObject * obj0 = 0 ; | |
21558 | char *kwnames[] = { | |
21559 | (char *) "self", NULL | |
21560 | }; | |
21561 | ||
21562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
21563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21565 | { | |
21566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21567 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21568 | ||
21569 | wxPyEndAllowThreads(__tstate); | |
21570 | if (PyErr_Occurred()) SWIG_fail; | |
21571 | } | |
21572 | resultobj = SWIG_FromLong((long)result); | |
21573 | return resultobj; | |
21574 | fail: | |
21575 | return NULL; | |
21576 | } | |
21577 | ||
21578 | ||
21579 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21580 | PyObject *resultobj; | |
21581 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21582 | long arg2 ; | |
21583 | bool arg3 = (bool) True ; | |
21584 | PyObject * obj0 = 0 ; | |
21585 | PyObject * obj1 = 0 ; | |
21586 | PyObject * obj2 = 0 ; | |
21587 | char *kwnames[] = { | |
21588 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21589 | }; | |
21590 | ||
21591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21594 | arg2 = (long) SWIG_AsLong(obj1); | |
21595 | if (PyErr_Occurred()) SWIG_fail; | |
21596 | if (obj2) { | |
21597 | arg3 = (bool) SWIG_AsBool(obj2); | |
21598 | if (PyErr_Occurred()) SWIG_fail; | |
21599 | } | |
21600 | { | |
21601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21602 | (arg1)->SetSingleStyle(arg2,arg3); | |
21603 | ||
21604 | wxPyEndAllowThreads(__tstate); | |
21605 | if (PyErr_Occurred()) SWIG_fail; | |
21606 | } | |
21607 | Py_INCREF(Py_None); resultobj = Py_None; | |
21608 | return resultobj; | |
21609 | fail: | |
21610 | return NULL; | |
21611 | } | |
21612 | ||
21613 | ||
21614 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21615 | PyObject *resultobj; | |
21616 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21617 | long arg2 ; | |
21618 | PyObject * obj0 = 0 ; | |
21619 | PyObject * obj1 = 0 ; | |
21620 | char *kwnames[] = { | |
21621 | (char *) "self",(char *) "style", NULL | |
21622 | }; | |
21623 | ||
21624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
21625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21627 | arg2 = (long) SWIG_AsLong(obj1); | |
21628 | if (PyErr_Occurred()) SWIG_fail; | |
21629 | { | |
21630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21631 | (arg1)->SetWindowStyleFlag(arg2); | |
21632 | ||
21633 | wxPyEndAllowThreads(__tstate); | |
21634 | if (PyErr_Occurred()) SWIG_fail; | |
21635 | } | |
21636 | Py_INCREF(Py_None); resultobj = Py_None; | |
21637 | return resultobj; | |
21638 | fail: | |
21639 | return NULL; | |
21640 | } | |
21641 | ||
21642 | ||
21643 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21644 | PyObject *resultobj; | |
21645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21646 | long arg2 ; | |
21647 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21648 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21649 | long result; | |
21650 | PyObject * obj0 = 0 ; | |
21651 | PyObject * obj1 = 0 ; | |
21652 | PyObject * obj2 = 0 ; | |
21653 | PyObject * obj3 = 0 ; | |
21654 | char *kwnames[] = { | |
21655 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21656 | }; | |
21657 | ||
21658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21661 | arg2 = (long) SWIG_AsLong(obj1); | |
21662 | if (PyErr_Occurred()) SWIG_fail; | |
21663 | if (obj2) { | |
21664 | arg3 = (int) SWIG_AsInt(obj2); | |
21665 | if (PyErr_Occurred()) SWIG_fail; | |
21666 | } | |
21667 | if (obj3) { | |
21668 | arg4 = (int) SWIG_AsInt(obj3); | |
21669 | if (PyErr_Occurred()) SWIG_fail; | |
21670 | } | |
21671 | { | |
21672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21673 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21674 | ||
21675 | wxPyEndAllowThreads(__tstate); | |
21676 | if (PyErr_Occurred()) SWIG_fail; | |
21677 | } | |
21678 | resultobj = SWIG_FromLong((long)result); | |
21679 | return resultobj; | |
21680 | fail: | |
21681 | return NULL; | |
21682 | } | |
21683 | ||
21684 | ||
21685 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21686 | PyObject *resultobj; | |
21687 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21688 | int arg2 ; | |
21689 | wxImageList *result; | |
21690 | PyObject * obj0 = 0 ; | |
21691 | PyObject * obj1 = 0 ; | |
21692 | char *kwnames[] = { | |
21693 | (char *) "self",(char *) "which", NULL | |
21694 | }; | |
21695 | ||
21696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
21697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21699 | arg2 = (int) SWIG_AsInt(obj1); | |
21700 | if (PyErr_Occurred()) SWIG_fail; | |
21701 | { | |
21702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21703 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21704 | ||
21705 | wxPyEndAllowThreads(__tstate); | |
21706 | if (PyErr_Occurred()) SWIG_fail; | |
21707 | } | |
21708 | { | |
21709 | resultobj = wxPyMake_wxObject(result); | |
21710 | } | |
21711 | return resultobj; | |
21712 | fail: | |
21713 | return NULL; | |
21714 | } | |
21715 | ||
21716 | ||
21717 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21718 | PyObject *resultobj; | |
21719 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21720 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21721 | int arg3 ; | |
21722 | PyObject * obj0 = 0 ; | |
21723 | PyObject * obj1 = 0 ; | |
21724 | PyObject * obj2 = 0 ; | |
21725 | char *kwnames[] = { | |
21726 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21727 | }; | |
21728 | ||
21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21732 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21734 | arg3 = (int) SWIG_AsInt(obj2); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
21736 | { | |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | (arg1)->SetImageList(arg2,arg3); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
21743 | Py_INCREF(Py_None); resultobj = Py_None; | |
21744 | return resultobj; | |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21751 | PyObject *resultobj; | |
21752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21753 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21754 | int arg3 ; | |
21755 | PyObject * obj0 = 0 ; | |
21756 | PyObject * obj1 = 0 ; | |
21757 | PyObject * obj2 = 0 ; | |
21758 | char *kwnames[] = { | |
21759 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21760 | }; | |
21761 | ||
21762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21766 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
21767 | arg3 = (int) SWIG_AsInt(obj2); | |
21768 | if (PyErr_Occurred()) SWIG_fail; | |
21769 | { | |
21770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21771 | (arg1)->AssignImageList(arg2,arg3); | |
21772 | ||
21773 | wxPyEndAllowThreads(__tstate); | |
21774 | if (PyErr_Occurred()) SWIG_fail; | |
21775 | } | |
21776 | Py_INCREF(Py_None); resultobj = Py_None; | |
21777 | return resultobj; | |
21778 | fail: | |
21779 | return NULL; | |
21780 | } | |
21781 | ||
21782 | ||
21783 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21784 | PyObject *resultobj; | |
21785 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21786 | bool result; | |
21787 | PyObject * obj0 = 0 ; | |
21788 | char *kwnames[] = { | |
21789 | (char *) "self", NULL | |
21790 | }; | |
21791 | ||
21792 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
21793 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21794 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21795 | { | |
21796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21797 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
21798 | ||
21799 | wxPyEndAllowThreads(__tstate); | |
21800 | if (PyErr_Occurred()) SWIG_fail; | |
21801 | } | |
21802 | { | |
21803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21804 | } | |
21805 | return resultobj; | |
21806 | fail: | |
21807 | return NULL; | |
21808 | } | |
21809 | ||
21810 | ||
21811 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21812 | PyObject *resultobj; | |
21813 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21814 | bool result; | |
21815 | PyObject * obj0 = 0 ; | |
21816 | char *kwnames[] = { | |
21817 | (char *) "self", NULL | |
21818 | }; | |
21819 | ||
21820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
21821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21823 | { | |
21824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21825 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21826 | ||
21827 | wxPyEndAllowThreads(__tstate); | |
21828 | if (PyErr_Occurred()) SWIG_fail; | |
21829 | } | |
21830 | { | |
21831 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21832 | } | |
21833 | return resultobj; | |
21834 | fail: | |
21835 | return NULL; | |
21836 | } | |
21837 | ||
21838 | ||
21839 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21840 | PyObject *resultobj; | |
21841 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21842 | long arg2 ; | |
21843 | PyObject * obj0 = 0 ; | |
21844 | PyObject * obj1 = 0 ; | |
21845 | char *kwnames[] = { | |
21846 | (char *) "self",(char *) "item", NULL | |
21847 | }; | |
21848 | ||
21849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
21850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21852 | arg2 = (long) SWIG_AsLong(obj1); | |
21853 | if (PyErr_Occurred()) SWIG_fail; | |
21854 | { | |
21855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21856 | (arg1)->RefreshItem(arg2); | |
21857 | ||
21858 | wxPyEndAllowThreads(__tstate); | |
21859 | if (PyErr_Occurred()) SWIG_fail; | |
21860 | } | |
21861 | Py_INCREF(Py_None); resultobj = Py_None; | |
21862 | return resultobj; | |
21863 | fail: | |
21864 | return NULL; | |
21865 | } | |
21866 | ||
21867 | ||
21868 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21869 | PyObject *resultobj; | |
21870 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21871 | long arg2 ; | |
21872 | long arg3 ; | |
21873 | PyObject * obj0 = 0 ; | |
21874 | PyObject * obj1 = 0 ; | |
21875 | PyObject * obj2 = 0 ; | |
21876 | char *kwnames[] = { | |
21877 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21878 | }; | |
21879 | ||
21880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21883 | arg2 = (long) SWIG_AsLong(obj1); | |
21884 | if (PyErr_Occurred()) SWIG_fail; | |
21885 | arg3 = (long) SWIG_AsLong(obj2); | |
21886 | if (PyErr_Occurred()) SWIG_fail; | |
21887 | { | |
21888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21889 | (arg1)->RefreshItems(arg2,arg3); | |
21890 | ||
21891 | wxPyEndAllowThreads(__tstate); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | } | |
21894 | Py_INCREF(Py_None); resultobj = Py_None; | |
21895 | return resultobj; | |
21896 | fail: | |
21897 | return NULL; | |
21898 | } | |
21899 | ||
21900 | ||
21901 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21902 | PyObject *resultobj; | |
21903 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21904 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21905 | bool result; | |
21906 | PyObject * obj0 = 0 ; | |
21907 | PyObject * obj1 = 0 ; | |
21908 | char *kwnames[] = { | |
21909 | (char *) "self",(char *) "flag", NULL | |
21910 | }; | |
21911 | ||
21912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
21913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21915 | if (obj1) { | |
21916 | arg2 = (int) SWIG_AsInt(obj1); | |
21917 | if (PyErr_Occurred()) SWIG_fail; | |
21918 | } | |
21919 | { | |
21920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21921 | result = (bool)(arg1)->Arrange(arg2); | |
21922 | ||
21923 | wxPyEndAllowThreads(__tstate); | |
21924 | if (PyErr_Occurred()) SWIG_fail; | |
21925 | } | |
21926 | { | |
21927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21928 | } | |
21929 | return resultobj; | |
21930 | fail: | |
21931 | return NULL; | |
21932 | } | |
21933 | ||
21934 | ||
21935 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21936 | PyObject *resultobj; | |
21937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21938 | long arg2 ; | |
21939 | bool result; | |
21940 | PyObject * obj0 = 0 ; | |
21941 | PyObject * obj1 = 0 ; | |
21942 | char *kwnames[] = { | |
21943 | (char *) "self",(char *) "item", NULL | |
21944 | }; | |
21945 | ||
21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
21947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21949 | arg2 = (long) SWIG_AsLong(obj1); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
21951 | { | |
21952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21953 | result = (bool)(arg1)->DeleteItem(arg2); | |
21954 | ||
21955 | wxPyEndAllowThreads(__tstate); | |
21956 | if (PyErr_Occurred()) SWIG_fail; | |
21957 | } | |
21958 | { | |
21959 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21960 | } | |
21961 | return resultobj; | |
21962 | fail: | |
21963 | return NULL; | |
21964 | } | |
21965 | ||
21966 | ||
21967 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21968 | PyObject *resultobj; | |
21969 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21970 | bool result; | |
21971 | PyObject * obj0 = 0 ; | |
21972 | char *kwnames[] = { | |
21973 | (char *) "self", NULL | |
21974 | }; | |
21975 | ||
21976 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
21977 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21978 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21979 | { | |
21980 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21981 | result = (bool)(arg1)->DeleteAllItems(); | |
21982 | ||
21983 | wxPyEndAllowThreads(__tstate); | |
21984 | if (PyErr_Occurred()) SWIG_fail; | |
21985 | } | |
21986 | { | |
21987 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21988 | } | |
21989 | return resultobj; | |
21990 | fail: | |
21991 | return NULL; | |
21992 | } | |
21993 | ||
21994 | ||
21995 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21996 | PyObject *resultobj; | |
21997 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21998 | int arg2 ; | |
21999 | bool result; | |
22000 | PyObject * obj0 = 0 ; | |
22001 | PyObject * obj1 = 0 ; | |
22002 | char *kwnames[] = { | |
22003 | (char *) "self",(char *) "col", NULL | |
22004 | }; | |
22005 | ||
22006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
22007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22009 | arg2 = (int) SWIG_AsInt(obj1); | |
22010 | if (PyErr_Occurred()) SWIG_fail; | |
22011 | { | |
22012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22013 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22014 | ||
22015 | wxPyEndAllowThreads(__tstate); | |
22016 | if (PyErr_Occurred()) SWIG_fail; | |
22017 | } | |
22018 | { | |
22019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22020 | } | |
22021 | return resultobj; | |
22022 | fail: | |
22023 | return NULL; | |
22024 | } | |
22025 | ||
22026 | ||
22027 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22028 | PyObject *resultobj; | |
22029 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22030 | bool result; | |
22031 | PyObject * obj0 = 0 ; | |
22032 | char *kwnames[] = { | |
22033 | (char *) "self", NULL | |
22034 | }; | |
22035 | ||
22036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
22037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22039 | { | |
22040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22041 | result = (bool)(arg1)->DeleteAllColumns(); | |
22042 | ||
22043 | wxPyEndAllowThreads(__tstate); | |
22044 | if (PyErr_Occurred()) SWIG_fail; | |
22045 | } | |
22046 | { | |
22047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22048 | } | |
22049 | return resultobj; | |
22050 | fail: | |
22051 | return NULL; | |
22052 | } | |
22053 | ||
22054 | ||
22055 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22056 | PyObject *resultobj; | |
22057 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22058 | PyObject * obj0 = 0 ; | |
22059 | char *kwnames[] = { | |
22060 | (char *) "self", NULL | |
22061 | }; | |
22062 | ||
22063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
22064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22066 | { | |
22067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22068 | (arg1)->ClearAll(); | |
22069 | ||
22070 | wxPyEndAllowThreads(__tstate); | |
22071 | if (PyErr_Occurred()) SWIG_fail; | |
22072 | } | |
22073 | Py_INCREF(Py_None); resultobj = Py_None; | |
22074 | return resultobj; | |
22075 | fail: | |
22076 | return NULL; | |
22077 | } | |
22078 | ||
22079 | ||
22080 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22081 | PyObject *resultobj; | |
22082 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22083 | long arg2 ; | |
22084 | wxTextCtrl *result; | |
22085 | PyObject * obj0 = 0 ; | |
22086 | PyObject * obj1 = 0 ; | |
22087 | char *kwnames[] = { | |
22088 | (char *) "self",(char *) "item", NULL | |
22089 | }; | |
22090 | ||
22091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22094 | arg2 = (long) SWIG_AsLong(obj1); | |
22095 | if (PyErr_Occurred()) SWIG_fail; | |
22096 | { | |
22097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22098 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
22099 | ||
22100 | wxPyEndAllowThreads(__tstate); | |
22101 | if (PyErr_Occurred()) SWIG_fail; | |
22102 | } | |
22103 | { | |
22104 | resultobj = wxPyMake_wxObject(result); | |
22105 | } | |
22106 | return resultobj; | |
22107 | fail: | |
22108 | return NULL; | |
22109 | } | |
22110 | ||
22111 | ||
22112 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22113 | PyObject *resultobj; | |
22114 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22115 | bool arg2 ; | |
22116 | bool result; | |
22117 | PyObject * obj0 = 0 ; | |
22118 | PyObject * obj1 = 0 ; | |
22119 | char *kwnames[] = { | |
22120 | (char *) "self",(char *) "cancel", NULL | |
22121 | }; | |
22122 | ||
22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | arg2 = (bool) SWIG_AsBool(obj1); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
22128 | { | |
22129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22130 | result = (bool)(arg1)->EndEditLabel(arg2); | |
22131 | ||
22132 | wxPyEndAllowThreads(__tstate); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
22135 | { | |
22136 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22137 | } | |
22138 | return resultobj; | |
22139 | fail: | |
22140 | return NULL; | |
22141 | } | |
22142 | ||
22143 | ||
22144 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22145 | PyObject *resultobj; | |
22146 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22147 | long arg2 ; | |
22148 | bool result; | |
22149 | PyObject * obj0 = 0 ; | |
22150 | PyObject * obj1 = 0 ; | |
22151 | char *kwnames[] = { | |
22152 | (char *) "self",(char *) "item", NULL | |
22153 | }; | |
22154 | ||
22155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22158 | arg2 = (long) SWIG_AsLong(obj1); | |
22159 | if (PyErr_Occurred()) SWIG_fail; | |
22160 | { | |
22161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22162 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22163 | ||
22164 | wxPyEndAllowThreads(__tstate); | |
22165 | if (PyErr_Occurred()) SWIG_fail; | |
22166 | } | |
22167 | { | |
22168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22169 | } | |
22170 | return resultobj; | |
22171 | fail: | |
22172 | return NULL; | |
22173 | } | |
22174 | ||
22175 | ||
22176 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22177 | PyObject *resultobj; | |
22178 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22179 | long arg2 ; | |
22180 | wxString *arg3 = 0 ; | |
22181 | bool arg4 = (bool) False ; | |
22182 | long result; | |
22183 | bool temp3 = False ; | |
22184 | PyObject * obj0 = 0 ; | |
22185 | PyObject * obj1 = 0 ; | |
22186 | PyObject * obj2 = 0 ; | |
22187 | PyObject * obj3 = 0 ; | |
22188 | char *kwnames[] = { | |
22189 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22190 | }; | |
22191 | ||
22192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22195 | arg2 = (long) SWIG_AsLong(obj1); | |
22196 | if (PyErr_Occurred()) SWIG_fail; | |
22197 | { | |
22198 | arg3 = wxString_in_helper(obj2); | |
22199 | if (arg3 == NULL) SWIG_fail; | |
22200 | temp3 = True; | |
22201 | } | |
22202 | if (obj3) { | |
22203 | arg4 = (bool) SWIG_AsBool(obj3); | |
22204 | if (PyErr_Occurred()) SWIG_fail; | |
22205 | } | |
22206 | { | |
22207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22208 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22209 | ||
22210 | wxPyEndAllowThreads(__tstate); | |
22211 | if (PyErr_Occurred()) SWIG_fail; | |
22212 | } | |
22213 | resultobj = SWIG_FromLong((long)result); | |
22214 | { | |
22215 | if (temp3) | |
22216 | delete arg3; | |
22217 | } | |
22218 | return resultobj; | |
22219 | fail: | |
22220 | { | |
22221 | if (temp3) | |
22222 | delete arg3; | |
22223 | } | |
22224 | return NULL; | |
22225 | } | |
22226 | ||
22227 | ||
22228 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22229 | PyObject *resultobj; | |
22230 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22231 | long arg2 ; | |
22232 | long arg3 ; | |
22233 | long result; | |
22234 | PyObject * obj0 = 0 ; | |
22235 | PyObject * obj1 = 0 ; | |
22236 | PyObject * obj2 = 0 ; | |
22237 | char *kwnames[] = { | |
22238 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22239 | }; | |
22240 | ||
22241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22244 | arg2 = (long) SWIG_AsLong(obj1); | |
22245 | if (PyErr_Occurred()) SWIG_fail; | |
22246 | arg3 = (long) SWIG_AsLong(obj2); | |
22247 | if (PyErr_Occurred()) SWIG_fail; | |
22248 | { | |
22249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22250 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22251 | ||
22252 | wxPyEndAllowThreads(__tstate); | |
22253 | if (PyErr_Occurred()) SWIG_fail; | |
22254 | } | |
22255 | resultobj = SWIG_FromLong((long)result); | |
22256 | return resultobj; | |
22257 | fail: | |
22258 | return NULL; | |
22259 | } | |
22260 | ||
22261 | ||
22262 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22263 | PyObject *resultobj; | |
22264 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22265 | long arg2 ; | |
22266 | wxPoint *arg3 = 0 ; | |
22267 | int arg4 ; | |
22268 | long result; | |
22269 | wxPoint temp3 ; | |
22270 | PyObject * obj0 = 0 ; | |
22271 | PyObject * obj1 = 0 ; | |
22272 | PyObject * obj2 = 0 ; | |
22273 | PyObject * obj3 = 0 ; | |
22274 | char *kwnames[] = { | |
22275 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22276 | }; | |
22277 | ||
22278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22281 | arg2 = (long) SWIG_AsLong(obj1); | |
22282 | if (PyErr_Occurred()) SWIG_fail; | |
22283 | { | |
22284 | arg3 = &temp3; | |
22285 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22286 | } | |
22287 | arg4 = (int) SWIG_AsInt(obj3); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
22289 | { | |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
22296 | resultobj = SWIG_FromLong((long)result); | |
22297 | return resultobj; | |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
22303 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22304 | PyObject *resultobj; | |
22305 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22306 | wxPoint *arg2 = 0 ; | |
22307 | int *arg3 = 0 ; | |
22308 | long result; | |
22309 | wxPoint temp2 ; | |
22310 | int temp3 ; | |
22311 | PyObject * obj0 = 0 ; | |
22312 | PyObject * obj1 = 0 ; | |
22313 | char *kwnames[] = { | |
22314 | (char *) "self",(char *) "point", NULL | |
22315 | }; | |
22316 | ||
22317 | arg3 = &temp3; | |
22318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
22319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22321 | { | |
22322 | arg2 = &temp2; | |
22323 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22324 | } | |
22325 | { | |
22326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22327 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22328 | ||
22329 | wxPyEndAllowThreads(__tstate); | |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
22331 | } | |
22332 | resultobj = SWIG_FromLong((long)result); | |
22333 | { | |
22334 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22335 | resultobj = t_output_helper(resultobj,o); | |
22336 | } | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | return NULL; | |
22340 | } | |
22341 | ||
22342 | ||
22343 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22344 | PyObject *resultobj; | |
22345 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22346 | wxListItem *arg2 = 0 ; | |
22347 | long result; | |
22348 | PyObject * obj0 = 0 ; | |
22349 | PyObject * obj1 = 0 ; | |
22350 | char *kwnames[] = { | |
22351 | (char *) "self",(char *) "info", NULL | |
22352 | }; | |
22353 | ||
22354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
22355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22357 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22359 | SWIG_fail; | |
22360 | if (arg2 == NULL) { | |
22361 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22362 | SWIG_fail; | |
22363 | } | |
22364 | { | |
22365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22366 | result = (long)(arg1)->InsertItem(*arg2); | |
22367 | ||
22368 | wxPyEndAllowThreads(__tstate); | |
22369 | if (PyErr_Occurred()) SWIG_fail; | |
22370 | } | |
22371 | resultobj = SWIG_FromLong((long)result); | |
22372 | return resultobj; | |
22373 | fail: | |
22374 | return NULL; | |
22375 | } | |
22376 | ||
22377 | ||
22378 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22379 | PyObject *resultobj; | |
22380 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22381 | long arg2 ; | |
22382 | wxString *arg3 = 0 ; | |
22383 | long result; | |
22384 | bool temp3 = False ; | |
22385 | PyObject * obj0 = 0 ; | |
22386 | PyObject * obj1 = 0 ; | |
22387 | PyObject * obj2 = 0 ; | |
22388 | char *kwnames[] = { | |
22389 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22390 | }; | |
22391 | ||
22392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22395 | arg2 = (long) SWIG_AsLong(obj1); | |
22396 | if (PyErr_Occurred()) SWIG_fail; | |
22397 | { | |
22398 | arg3 = wxString_in_helper(obj2); | |
22399 | if (arg3 == NULL) SWIG_fail; | |
22400 | temp3 = True; | |
22401 | } | |
22402 | { | |
22403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22404 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22405 | ||
22406 | wxPyEndAllowThreads(__tstate); | |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
22408 | } | |
22409 | resultobj = SWIG_FromLong((long)result); | |
22410 | { | |
22411 | if (temp3) | |
22412 | delete arg3; | |
22413 | } | |
22414 | return resultobj; | |
22415 | fail: | |
22416 | { | |
22417 | if (temp3) | |
22418 | delete arg3; | |
22419 | } | |
22420 | return NULL; | |
22421 | } | |
22422 | ||
22423 | ||
22424 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22425 | PyObject *resultobj; | |
22426 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22427 | long arg2 ; | |
22428 | int arg3 ; | |
22429 | long result; | |
22430 | PyObject * obj0 = 0 ; | |
22431 | PyObject * obj1 = 0 ; | |
22432 | PyObject * obj2 = 0 ; | |
22433 | char *kwnames[] = { | |
22434 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22435 | }; | |
22436 | ||
22437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22440 | arg2 = (long) SWIG_AsLong(obj1); | |
22441 | if (PyErr_Occurred()) SWIG_fail; | |
22442 | arg3 = (int) SWIG_AsInt(obj2); | |
22443 | if (PyErr_Occurred()) SWIG_fail; | |
22444 | { | |
22445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22446 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22447 | ||
22448 | wxPyEndAllowThreads(__tstate); | |
22449 | if (PyErr_Occurred()) SWIG_fail; | |
22450 | } | |
22451 | resultobj = SWIG_FromLong((long)result); | |
22452 | return resultobj; | |
22453 | fail: | |
22454 | return NULL; | |
22455 | } | |
22456 | ||
22457 | ||
22458 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22459 | PyObject *resultobj; | |
22460 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22461 | long arg2 ; | |
22462 | wxString *arg3 = 0 ; | |
22463 | int arg4 ; | |
22464 | long result; | |
22465 | bool temp3 = False ; | |
22466 | PyObject * obj0 = 0 ; | |
22467 | PyObject * obj1 = 0 ; | |
22468 | PyObject * obj2 = 0 ; | |
22469 | PyObject * obj3 = 0 ; | |
22470 | char *kwnames[] = { | |
22471 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22472 | }; | |
22473 | ||
22474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22477 | arg2 = (long) SWIG_AsLong(obj1); | |
22478 | if (PyErr_Occurred()) SWIG_fail; | |
22479 | { | |
22480 | arg3 = wxString_in_helper(obj2); | |
22481 | if (arg3 == NULL) SWIG_fail; | |
22482 | temp3 = True; | |
22483 | } | |
22484 | arg4 = (int) SWIG_AsInt(obj3); | |
22485 | if (PyErr_Occurred()) SWIG_fail; | |
22486 | { | |
22487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22488 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22489 | ||
22490 | wxPyEndAllowThreads(__tstate); | |
22491 | if (PyErr_Occurred()) SWIG_fail; | |
22492 | } | |
22493 | resultobj = SWIG_FromLong((long)result); | |
22494 | { | |
22495 | if (temp3) | |
22496 | delete arg3; | |
22497 | } | |
22498 | return resultobj; | |
22499 | fail: | |
22500 | { | |
22501 | if (temp3) | |
22502 | delete arg3; | |
22503 | } | |
22504 | return NULL; | |
22505 | } | |
22506 | ||
22507 | ||
22508 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22509 | PyObject *resultobj; | |
22510 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22511 | long arg2 ; | |
22512 | wxListItem *arg3 = 0 ; | |
22513 | long result; | |
22514 | PyObject * obj0 = 0 ; | |
22515 | PyObject * obj1 = 0 ; | |
22516 | PyObject * obj2 = 0 ; | |
22517 | char *kwnames[] = { | |
22518 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22519 | }; | |
22520 | ||
22521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22524 | arg2 = (long) SWIG_AsLong(obj1); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22527 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22528 | SWIG_fail; | |
22529 | if (arg3 == NULL) { | |
22530 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22531 | SWIG_fail; | |
22532 | } | |
22533 | { | |
22534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22535 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22536 | ||
22537 | wxPyEndAllowThreads(__tstate); | |
22538 | if (PyErr_Occurred()) SWIG_fail; | |
22539 | } | |
22540 | resultobj = SWIG_FromLong((long)result); | |
22541 | return resultobj; | |
22542 | fail: | |
22543 | return NULL; | |
22544 | } | |
22545 | ||
22546 | ||
22547 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22548 | PyObject *resultobj; | |
22549 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22550 | long arg2 ; | |
22551 | wxString *arg3 = 0 ; | |
22552 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22553 | int arg5 = (int) -1 ; | |
22554 | long result; | |
22555 | bool temp3 = False ; | |
22556 | PyObject * obj0 = 0 ; | |
22557 | PyObject * obj1 = 0 ; | |
22558 | PyObject * obj2 = 0 ; | |
22559 | PyObject * obj3 = 0 ; | |
22560 | PyObject * obj4 = 0 ; | |
22561 | char *kwnames[] = { | |
22562 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22563 | }; | |
22564 | ||
22565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
22566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22568 | arg2 = (long) SWIG_AsLong(obj1); | |
22569 | if (PyErr_Occurred()) SWIG_fail; | |
22570 | { | |
22571 | arg3 = wxString_in_helper(obj2); | |
22572 | if (arg3 == NULL) SWIG_fail; | |
22573 | temp3 = True; | |
22574 | } | |
22575 | if (obj3) { | |
22576 | arg4 = (int) SWIG_AsInt(obj3); | |
22577 | if (PyErr_Occurred()) SWIG_fail; | |
22578 | } | |
22579 | if (obj4) { | |
22580 | arg5 = (int) SWIG_AsInt(obj4); | |
22581 | if (PyErr_Occurred()) SWIG_fail; | |
22582 | } | |
22583 | { | |
22584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22585 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22586 | ||
22587 | wxPyEndAllowThreads(__tstate); | |
22588 | if (PyErr_Occurred()) SWIG_fail; | |
22589 | } | |
22590 | resultobj = SWIG_FromLong((long)result); | |
22591 | { | |
22592 | if (temp3) | |
22593 | delete arg3; | |
22594 | } | |
22595 | return resultobj; | |
22596 | fail: | |
22597 | { | |
22598 | if (temp3) | |
22599 | delete arg3; | |
22600 | } | |
22601 | return NULL; | |
22602 | } | |
22603 | ||
22604 | ||
22605 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22606 | PyObject *resultobj; | |
22607 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22608 | long arg2 ; | |
22609 | PyObject * obj0 = 0 ; | |
22610 | PyObject * obj1 = 0 ; | |
22611 | char *kwnames[] = { | |
22612 | (char *) "self",(char *) "count", NULL | |
22613 | }; | |
22614 | ||
22615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
22616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22618 | arg2 = (long) SWIG_AsLong(obj1); | |
22619 | if (PyErr_Occurred()) SWIG_fail; | |
22620 | { | |
22621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22622 | (arg1)->SetItemCount(arg2); | |
22623 | ||
22624 | wxPyEndAllowThreads(__tstate); | |
22625 | if (PyErr_Occurred()) SWIG_fail; | |
22626 | } | |
22627 | Py_INCREF(Py_None); resultobj = Py_None; | |
22628 | return resultobj; | |
22629 | fail: | |
22630 | return NULL; | |
22631 | } | |
22632 | ||
22633 | ||
22634 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22635 | PyObject *resultobj; | |
22636 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22637 | int arg2 ; | |
22638 | int arg3 ; | |
22639 | bool result; | |
22640 | PyObject * obj0 = 0 ; | |
22641 | PyObject * obj1 = 0 ; | |
22642 | PyObject * obj2 = 0 ; | |
22643 | char *kwnames[] = { | |
22644 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22645 | }; | |
22646 | ||
22647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22650 | arg2 = (int) SWIG_AsInt(obj1); | |
22651 | if (PyErr_Occurred()) SWIG_fail; | |
22652 | arg3 = (int) SWIG_AsInt(obj2); | |
22653 | if (PyErr_Occurred()) SWIG_fail; | |
22654 | { | |
22655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22656 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22657 | ||
22658 | wxPyEndAllowThreads(__tstate); | |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
22660 | } | |
22661 | { | |
22662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22663 | } | |
22664 | return resultobj; | |
22665 | fail: | |
22666 | return NULL; | |
22667 | } | |
22668 | ||
22669 | ||
22670 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22671 | PyObject *resultobj; | |
22672 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22673 | long arg2 ; | |
22674 | wxColour *arg3 = 0 ; | |
22675 | wxColour temp3 ; | |
22676 | PyObject * obj0 = 0 ; | |
22677 | PyObject * obj1 = 0 ; | |
22678 | PyObject * obj2 = 0 ; | |
22679 | char *kwnames[] = { | |
22680 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22681 | }; | |
22682 | ||
22683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22686 | arg2 = (long) SWIG_AsLong(obj1); | |
22687 | if (PyErr_Occurred()) SWIG_fail; | |
22688 | { | |
22689 | arg3 = &temp3; | |
22690 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22691 | } | |
22692 | { | |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | Py_INCREF(Py_None); resultobj = Py_None; | |
22700 | return resultobj; | |
22701 | fail: | |
22702 | return NULL; | |
22703 | } | |
22704 | ||
22705 | ||
22706 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22707 | PyObject *resultobj; | |
22708 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22709 | long arg2 ; | |
22710 | wxColour result; | |
22711 | PyObject * obj0 = 0 ; | |
22712 | PyObject * obj1 = 0 ; | |
22713 | char *kwnames[] = { | |
22714 | (char *) "self",(char *) "item", NULL | |
22715 | }; | |
22716 | ||
22717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22720 | arg2 = (long) SWIG_AsLong(obj1); | |
22721 | if (PyErr_Occurred()) SWIG_fail; | |
22722 | { | |
22723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22724 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22725 | ||
22726 | wxPyEndAllowThreads(__tstate); | |
22727 | if (PyErr_Occurred()) SWIG_fail; | |
22728 | } | |
22729 | { | |
22730 | wxColour * resultptr; | |
22731 | resultptr = new wxColour((wxColour &) result); | |
22732 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22733 | } | |
22734 | return resultobj; | |
22735 | fail: | |
22736 | return NULL; | |
22737 | } | |
22738 | ||
22739 | ||
22740 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22741 | PyObject *resultobj; | |
22742 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22743 | long arg2 ; | |
22744 | wxColour *arg3 = 0 ; | |
22745 | wxColour temp3 ; | |
22746 | PyObject * obj0 = 0 ; | |
22747 | PyObject * obj1 = 0 ; | |
22748 | PyObject * obj2 = 0 ; | |
22749 | char *kwnames[] = { | |
22750 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22751 | }; | |
22752 | ||
22753 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22754 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22755 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22756 | arg2 = (long) SWIG_AsLong(obj1); | |
22757 | if (PyErr_Occurred()) SWIG_fail; | |
22758 | { | |
22759 | arg3 = &temp3; | |
22760 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22761 | } | |
22762 | { | |
22763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22764 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22765 | ||
22766 | wxPyEndAllowThreads(__tstate); | |
22767 | if (PyErr_Occurred()) SWIG_fail; | |
22768 | } | |
22769 | Py_INCREF(Py_None); resultobj = Py_None; | |
22770 | return resultobj; | |
22771 | fail: | |
22772 | return NULL; | |
22773 | } | |
22774 | ||
22775 | ||
22776 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22777 | PyObject *resultobj; | |
22778 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22779 | long arg2 ; | |
22780 | wxColour result; | |
22781 | PyObject * obj0 = 0 ; | |
22782 | PyObject * obj1 = 0 ; | |
22783 | char *kwnames[] = { | |
22784 | (char *) "self",(char *) "item", NULL | |
22785 | }; | |
22786 | ||
22787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
22788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22790 | arg2 = (long) SWIG_AsLong(obj1); | |
22791 | if (PyErr_Occurred()) SWIG_fail; | |
22792 | { | |
22793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22794 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22795 | ||
22796 | wxPyEndAllowThreads(__tstate); | |
22797 | if (PyErr_Occurred()) SWIG_fail; | |
22798 | } | |
22799 | { | |
22800 | wxColour * resultptr; | |
22801 | resultptr = new wxColour((wxColour &) result); | |
22802 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22803 | } | |
22804 | return resultobj; | |
22805 | fail: | |
22806 | return NULL; | |
22807 | } | |
22808 | ||
22809 | ||
22810 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22811 | PyObject *resultobj; | |
22812 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22813 | PyObject *arg2 = (PyObject *) 0 ; | |
22814 | bool result; | |
22815 | PyObject * obj0 = 0 ; | |
22816 | PyObject * obj1 = 0 ; | |
22817 | char *kwnames[] = { | |
22818 | (char *) "self",(char *) "func", NULL | |
22819 | }; | |
22820 | ||
22821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
22822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22824 | arg2 = obj1; | |
22825 | { | |
22826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22827 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22828 | ||
22829 | wxPyEndAllowThreads(__tstate); | |
22830 | if (PyErr_Occurred()) SWIG_fail; | |
22831 | } | |
22832 | { | |
22833 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22834 | } | |
22835 | return resultobj; | |
22836 | fail: | |
22837 | return NULL; | |
22838 | } | |
22839 | ||
22840 | ||
22841 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22842 | PyObject *resultobj; | |
22843 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22844 | wxWindow *result; | |
22845 | PyObject * obj0 = 0 ; | |
22846 | char *kwnames[] = { | |
22847 | (char *) "self", NULL | |
22848 | }; | |
22849 | ||
22850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
22851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22853 | { | |
22854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22855 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22856 | ||
22857 | wxPyEndAllowThreads(__tstate); | |
22858 | if (PyErr_Occurred()) SWIG_fail; | |
22859 | } | |
22860 | { | |
22861 | resultobj = wxPyMake_wxObject(result); | |
22862 | } | |
22863 | return resultobj; | |
22864 | fail: | |
22865 | return NULL; | |
22866 | } | |
22867 | ||
22868 | ||
22869 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22870 | PyObject *resultobj; | |
22871 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
22872 | wxVisualAttributes result; | |
22873 | PyObject * obj0 = 0 ; | |
22874 | char *kwnames[] = { | |
22875 | (char *) "variant", NULL | |
22876 | }; | |
22877 | ||
22878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
22879 | if (obj0) { | |
22880 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
22881 | if (PyErr_Occurred()) SWIG_fail; | |
22882 | } | |
22883 | { | |
22884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22885 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
22886 | ||
22887 | wxPyEndAllowThreads(__tstate); | |
22888 | if (PyErr_Occurred()) SWIG_fail; | |
22889 | } | |
22890 | { | |
22891 | wxVisualAttributes * resultptr; | |
22892 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
22893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
22894 | } | |
22895 | return resultobj; | |
22896 | fail: | |
22897 | return NULL; | |
22898 | } | |
22899 | ||
22900 | ||
22901 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22902 | PyObject *obj; | |
22903 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22904 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22905 | Py_INCREF(obj); | |
22906 | return Py_BuildValue((char *)""); | |
22907 | } | |
22908 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22909 | PyObject *resultobj; | |
22910 | wxWindow *arg1 = (wxWindow *) 0 ; | |
22911 | int arg2 = (int) -1 ; | |
22912 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
22913 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22914 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22915 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22916 | long arg5 = (long) wxLC_REPORT ; | |
22917 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22918 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22919 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22920 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22921 | wxListView *result; | |
22922 | wxPoint temp3 ; | |
22923 | wxSize temp4 ; | |
22924 | bool temp7 = False ; | |
22925 | PyObject * obj0 = 0 ; | |
22926 | PyObject * obj1 = 0 ; | |
22927 | PyObject * obj2 = 0 ; | |
22928 | PyObject * obj3 = 0 ; | |
22929 | PyObject * obj4 = 0 ; | |
22930 | PyObject * obj5 = 0 ; | |
22931 | PyObject * obj6 = 0 ; | |
22932 | char *kwnames[] = { | |
22933 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22934 | }; | |
22935 | ||
22936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
22937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
22938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22939 | if (obj1) { | |
22940 | arg2 = (int) SWIG_AsInt(obj1); | |
22941 | if (PyErr_Occurred()) SWIG_fail; | |
22942 | } | |
22943 | if (obj2) { | |
22944 | { | |
22945 | arg3 = &temp3; | |
22946 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22947 | } | |
22948 | } | |
22949 | if (obj3) { | |
22950 | { | |
22951 | arg4 = &temp4; | |
22952 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22953 | } | |
22954 | } | |
22955 | if (obj4) { | |
22956 | arg5 = (long) SWIG_AsLong(obj4); | |
22957 | if (PyErr_Occurred()) SWIG_fail; | |
22958 | } | |
22959 | if (obj5) { | |
22960 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
22961 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22962 | SWIG_fail; | |
22963 | if (arg6 == NULL) { | |
22964 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
22965 | SWIG_fail; | |
22966 | } | |
22967 | } | |
22968 | if (obj6) { | |
22969 | { | |
22970 | arg7 = wxString_in_helper(obj6); | |
22971 | if (arg7 == NULL) SWIG_fail; | |
22972 | temp7 = True; | |
22973 | } | |
22974 | } | |
22975 | { | |
22976 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22977 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22978 | ||
22979 | wxPyEndAllowThreads(__tstate); | |
22980 | if (PyErr_Occurred()) SWIG_fail; | |
22981 | } | |
22982 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
22983 | { | |
22984 | if (temp7) | |
22985 | delete arg7; | |
22986 | } | |
22987 | return resultobj; | |
22988 | fail: | |
22989 | { | |
22990 | if (temp7) | |
22991 | delete arg7; | |
22992 | } | |
22993 | return NULL; | |
22994 | } | |
22995 | ||
22996 | ||
22997 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22998 | PyObject *resultobj; | |
22999 | wxListView *result; | |
23000 | char *kwnames[] = { | |
23001 | NULL | |
23002 | }; | |
23003 | ||
23004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23005 | { | |
23006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23007 | result = (wxListView *)new wxListView(); | |
23008 | ||
23009 | wxPyEndAllowThreads(__tstate); | |
23010 | if (PyErr_Occurred()) SWIG_fail; | |
23011 | } | |
23012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23013 | return resultobj; | |
23014 | fail: | |
23015 | return NULL; | |
23016 | } | |
23017 | ||
23018 | ||
23019 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23020 | PyObject *resultobj; | |
23021 | wxListView *arg1 = (wxListView *) 0 ; | |
23022 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23023 | int arg3 = (int) -1 ; | |
23024 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23025 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23026 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23027 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23028 | long arg6 = (long) wxLC_REPORT ; | |
23029 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23030 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23031 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23032 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23033 | bool result; | |
23034 | wxPoint temp4 ; | |
23035 | wxSize temp5 ; | |
23036 | bool temp8 = False ; | |
23037 | PyObject * obj0 = 0 ; | |
23038 | PyObject * obj1 = 0 ; | |
23039 | PyObject * obj2 = 0 ; | |
23040 | PyObject * obj3 = 0 ; | |
23041 | PyObject * obj4 = 0 ; | |
23042 | PyObject * obj5 = 0 ; | |
23043 | PyObject * obj6 = 0 ; | |
23044 | PyObject * obj7 = 0 ; | |
23045 | char *kwnames[] = { | |
23046 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23047 | }; | |
23048 | ||
23049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23052 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23054 | if (obj2) { | |
23055 | arg3 = (int) SWIG_AsInt(obj2); | |
23056 | if (PyErr_Occurred()) SWIG_fail; | |
23057 | } | |
23058 | if (obj3) { | |
23059 | { | |
23060 | arg4 = &temp4; | |
23061 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23062 | } | |
23063 | } | |
23064 | if (obj4) { | |
23065 | { | |
23066 | arg5 = &temp5; | |
23067 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23068 | } | |
23069 | } | |
23070 | if (obj5) { | |
23071 | arg6 = (long) SWIG_AsLong(obj5); | |
23072 | if (PyErr_Occurred()) SWIG_fail; | |
23073 | } | |
23074 | if (obj6) { | |
23075 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
23076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23077 | SWIG_fail; | |
23078 | if (arg7 == NULL) { | |
23079 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23080 | SWIG_fail; | |
23081 | } | |
23082 | } | |
23083 | if (obj7) { | |
23084 | { | |
23085 | arg8 = wxString_in_helper(obj7); | |
23086 | if (arg8 == NULL) SWIG_fail; | |
23087 | temp8 = True; | |
23088 | } | |
23089 | } | |
23090 | { | |
23091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23092 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23093 | ||
23094 | wxPyEndAllowThreads(__tstate); | |
23095 | if (PyErr_Occurred()) SWIG_fail; | |
23096 | } | |
23097 | { | |
23098 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23099 | } | |
23100 | { | |
23101 | if (temp8) | |
23102 | delete arg8; | |
23103 | } | |
23104 | return resultobj; | |
23105 | fail: | |
23106 | { | |
23107 | if (temp8) | |
23108 | delete arg8; | |
23109 | } | |
23110 | return NULL; | |
23111 | } | |
23112 | ||
23113 | ||
23114 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23115 | PyObject *resultobj; | |
23116 | wxListView *arg1 = (wxListView *) 0 ; | |
23117 | long arg2 ; | |
23118 | bool arg3 = (bool) True ; | |
23119 | PyObject * obj0 = 0 ; | |
23120 | PyObject * obj1 = 0 ; | |
23121 | PyObject * obj2 = 0 ; | |
23122 | char *kwnames[] = { | |
23123 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23124 | }; | |
23125 | ||
23126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23129 | arg2 = (long) SWIG_AsLong(obj1); | |
23130 | if (PyErr_Occurred()) SWIG_fail; | |
23131 | if (obj2) { | |
23132 | arg3 = (bool) SWIG_AsBool(obj2); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
23134 | } | |
23135 | { | |
23136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23137 | (arg1)->Select(arg2,arg3); | |
23138 | ||
23139 | wxPyEndAllowThreads(__tstate); | |
23140 | if (PyErr_Occurred()) SWIG_fail; | |
23141 | } | |
23142 | Py_INCREF(Py_None); resultobj = Py_None; | |
23143 | return resultobj; | |
23144 | fail: | |
23145 | return NULL; | |
23146 | } | |
23147 | ||
23148 | ||
23149 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23150 | PyObject *resultobj; | |
23151 | wxListView *arg1 = (wxListView *) 0 ; | |
23152 | long arg2 ; | |
23153 | PyObject * obj0 = 0 ; | |
23154 | PyObject * obj1 = 0 ; | |
23155 | char *kwnames[] = { | |
23156 | (char *) "self",(char *) "index", NULL | |
23157 | }; | |
23158 | ||
23159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
23160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23162 | arg2 = (long) SWIG_AsLong(obj1); | |
23163 | if (PyErr_Occurred()) SWIG_fail; | |
23164 | { | |
23165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23166 | (arg1)->Focus(arg2); | |
23167 | ||
23168 | wxPyEndAllowThreads(__tstate); | |
23169 | if (PyErr_Occurred()) SWIG_fail; | |
23170 | } | |
23171 | Py_INCREF(Py_None); resultobj = Py_None; | |
23172 | return resultobj; | |
23173 | fail: | |
23174 | return NULL; | |
23175 | } | |
23176 | ||
23177 | ||
23178 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23179 | PyObject *resultobj; | |
23180 | wxListView *arg1 = (wxListView *) 0 ; | |
23181 | long result; | |
23182 | PyObject * obj0 = 0 ; | |
23183 | char *kwnames[] = { | |
23184 | (char *) "self", NULL | |
23185 | }; | |
23186 | ||
23187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
23188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23190 | { | |
23191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23192 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23193 | ||
23194 | wxPyEndAllowThreads(__tstate); | |
23195 | if (PyErr_Occurred()) SWIG_fail; | |
23196 | } | |
23197 | resultobj = SWIG_FromLong((long)result); | |
23198 | return resultobj; | |
23199 | fail: | |
23200 | return NULL; | |
23201 | } | |
23202 | ||
23203 | ||
23204 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23205 | PyObject *resultobj; | |
23206 | wxListView *arg1 = (wxListView *) 0 ; | |
23207 | long arg2 ; | |
23208 | long result; | |
23209 | PyObject * obj0 = 0 ; | |
23210 | PyObject * obj1 = 0 ; | |
23211 | char *kwnames[] = { | |
23212 | (char *) "self",(char *) "item", NULL | |
23213 | }; | |
23214 | ||
23215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
23216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23218 | arg2 = (long) SWIG_AsLong(obj1); | |
23219 | if (PyErr_Occurred()) SWIG_fail; | |
23220 | { | |
23221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23222 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23223 | ||
23224 | wxPyEndAllowThreads(__tstate); | |
23225 | if (PyErr_Occurred()) SWIG_fail; | |
23226 | } | |
23227 | resultobj = SWIG_FromLong((long)result); | |
23228 | return resultobj; | |
23229 | fail: | |
23230 | return NULL; | |
23231 | } | |
23232 | ||
23233 | ||
23234 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23235 | PyObject *resultobj; | |
23236 | wxListView *arg1 = (wxListView *) 0 ; | |
23237 | long result; | |
23238 | PyObject * obj0 = 0 ; | |
23239 | char *kwnames[] = { | |
23240 | (char *) "self", NULL | |
23241 | }; | |
23242 | ||
23243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
23244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23246 | { | |
23247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23248 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23249 | ||
23250 | wxPyEndAllowThreads(__tstate); | |
23251 | if (PyErr_Occurred()) SWIG_fail; | |
23252 | } | |
23253 | resultobj = SWIG_FromLong((long)result); | |
23254 | return resultobj; | |
23255 | fail: | |
23256 | return NULL; | |
23257 | } | |
23258 | ||
23259 | ||
23260 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23261 | PyObject *resultobj; | |
23262 | wxListView *arg1 = (wxListView *) 0 ; | |
23263 | long arg2 ; | |
23264 | bool result; | |
23265 | PyObject * obj0 = 0 ; | |
23266 | PyObject * obj1 = 0 ; | |
23267 | char *kwnames[] = { | |
23268 | (char *) "self",(char *) "index", NULL | |
23269 | }; | |
23270 | ||
23271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
23272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23274 | arg2 = (long) SWIG_AsLong(obj1); | |
23275 | if (PyErr_Occurred()) SWIG_fail; | |
23276 | { | |
23277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23278 | result = (bool)(arg1)->IsSelected(arg2); | |
23279 | ||
23280 | wxPyEndAllowThreads(__tstate); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | } | |
23283 | { | |
23284 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23285 | } | |
23286 | return resultobj; | |
23287 | fail: | |
23288 | return NULL; | |
23289 | } | |
23290 | ||
23291 | ||
23292 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23293 | PyObject *resultobj; | |
23294 | wxListView *arg1 = (wxListView *) 0 ; | |
23295 | int arg2 ; | |
23296 | int arg3 ; | |
23297 | PyObject * obj0 = 0 ; | |
23298 | PyObject * obj1 = 0 ; | |
23299 | PyObject * obj2 = 0 ; | |
23300 | char *kwnames[] = { | |
23301 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23302 | }; | |
23303 | ||
23304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23307 | arg2 = (int) SWIG_AsInt(obj1); | |
23308 | if (PyErr_Occurred()) SWIG_fail; | |
23309 | arg3 = (int) SWIG_AsInt(obj2); | |
23310 | if (PyErr_Occurred()) SWIG_fail; | |
23311 | { | |
23312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23313 | (arg1)->SetColumnImage(arg2,arg3); | |
23314 | ||
23315 | wxPyEndAllowThreads(__tstate); | |
23316 | if (PyErr_Occurred()) SWIG_fail; | |
23317 | } | |
23318 | Py_INCREF(Py_None); resultobj = Py_None; | |
23319 | return resultobj; | |
23320 | fail: | |
23321 | return NULL; | |
23322 | } | |
23323 | ||
23324 | ||
23325 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23326 | PyObject *resultobj; | |
23327 | wxListView *arg1 = (wxListView *) 0 ; | |
23328 | int arg2 ; | |
23329 | PyObject * obj0 = 0 ; | |
23330 | PyObject * obj1 = 0 ; | |
23331 | char *kwnames[] = { | |
23332 | (char *) "self",(char *) "col", NULL | |
23333 | }; | |
23334 | ||
23335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
23336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23338 | arg2 = (int) SWIG_AsInt(obj1); | |
23339 | if (PyErr_Occurred()) SWIG_fail; | |
23340 | { | |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | (arg1)->ClearColumnImage(arg2); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
23347 | Py_INCREF(Py_None); resultobj = Py_None; | |
23348 | return resultobj; | |
23349 | fail: | |
23350 | return NULL; | |
23351 | } | |
23352 | ||
23353 | ||
23354 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23355 | PyObject *obj; | |
23356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23357 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23358 | Py_INCREF(obj); | |
23359 | return Py_BuildValue((char *)""); | |
23360 | } | |
23361 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { | |
23362 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
23363 | return 1; | |
23364 | } | |
23365 | ||
23366 | ||
23367 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23368 | PyObject *pyobj; | |
23369 | ||
23370 | { | |
23371 | #if wxUSE_UNICODE | |
23372 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23373 | #else | |
23374 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23375 | #endif | |
23376 | } | |
23377 | return pyobj; | |
23378 | } | |
23379 | ||
23380 | ||
23381 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23382 | PyObject *resultobj; | |
23383 | wxTreeItemId *result; | |
23384 | char *kwnames[] = { | |
23385 | NULL | |
23386 | }; | |
23387 | ||
23388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23389 | { | |
23390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23391 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23392 | ||
23393 | wxPyEndAllowThreads(__tstate); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
23395 | } | |
23396 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
23397 | return resultobj; | |
23398 | fail: | |
23399 | return NULL; | |
23400 | } | |
23401 | ||
23402 | ||
23403 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23404 | PyObject *resultobj; | |
23405 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23406 | PyObject * obj0 = 0 ; | |
23407 | char *kwnames[] = { | |
23408 | (char *) "self", NULL | |
23409 | }; | |
23410 | ||
23411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
23412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23414 | { | |
23415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23416 | delete arg1; | |
23417 | ||
23418 | wxPyEndAllowThreads(__tstate); | |
23419 | if (PyErr_Occurred()) SWIG_fail; | |
23420 | } | |
23421 | Py_INCREF(Py_None); resultobj = Py_None; | |
23422 | return resultobj; | |
23423 | fail: | |
23424 | return NULL; | |
23425 | } | |
23426 | ||
23427 | ||
23428 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23429 | PyObject *resultobj; | |
23430 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23431 | bool result; | |
23432 | PyObject * obj0 = 0 ; | |
23433 | char *kwnames[] = { | |
23434 | (char *) "self", NULL | |
23435 | }; | |
23436 | ||
23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | { | |
23441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23442 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23443 | ||
23444 | wxPyEndAllowThreads(__tstate); | |
23445 | if (PyErr_Occurred()) SWIG_fail; | |
23446 | } | |
23447 | { | |
23448 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23449 | } | |
23450 | return resultobj; | |
23451 | fail: | |
23452 | return NULL; | |
23453 | } | |
23454 | ||
23455 | ||
23456 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23457 | PyObject *resultobj; | |
23458 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23459 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23460 | bool result; | |
23461 | PyObject * obj0 = 0 ; | |
23462 | PyObject * obj1 = 0 ; | |
23463 | char *kwnames[] = { | |
23464 | (char *) "self",(char *) "other", NULL | |
23465 | }; | |
23466 | ||
23467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
23468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23472 | { | |
23473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23474 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
23475 | ||
23476 | wxPyEndAllowThreads(__tstate); | |
23477 | if (PyErr_Occurred()) SWIG_fail; | |
23478 | } | |
23479 | { | |
23480 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23481 | } | |
23482 | return resultobj; | |
23483 | fail: | |
23484 | return NULL; | |
23485 | } | |
23486 | ||
23487 | ||
23488 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23489 | PyObject *resultobj; | |
23490 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23491 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23492 | bool result; | |
23493 | PyObject * obj0 = 0 ; | |
23494 | PyObject * obj1 = 0 ; | |
23495 | char *kwnames[] = { | |
23496 | (char *) "self",(char *) "other", NULL | |
23497 | }; | |
23498 | ||
23499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
23500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23504 | { | |
23505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23506 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
23507 | ||
23508 | wxPyEndAllowThreads(__tstate); | |
23509 | if (PyErr_Occurred()) SWIG_fail; | |
23510 | } | |
23511 | { | |
23512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23513 | } | |
23514 | return resultobj; | |
23515 | fail: | |
23516 | return NULL; | |
23517 | } | |
23518 | ||
23519 | ||
23520 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23521 | PyObject *resultobj; | |
23522 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23523 | void *arg2 = (void *) 0 ; | |
23524 | PyObject * obj0 = 0 ; | |
23525 | PyObject * obj1 = 0 ; | |
23526 | char *kwnames[] = { | |
23527 | (char *) "self",(char *) "m_pItem", NULL | |
23528 | }; | |
23529 | ||
23530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
23531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23533 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
23534 | if (arg1) (arg1)->m_pItem = arg2; | |
23535 | ||
23536 | Py_INCREF(Py_None); resultobj = Py_None; | |
23537 | return resultobj; | |
23538 | fail: | |
23539 | return NULL; | |
23540 | } | |
23541 | ||
23542 | ||
23543 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23544 | PyObject *resultobj; | |
23545 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23546 | void *result; | |
23547 | PyObject * obj0 = 0 ; | |
23548 | char *kwnames[] = { | |
23549 | (char *) "self", NULL | |
23550 | }; | |
23551 | ||
23552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
23553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
23554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23555 | result = (void *) ((arg1)->m_pItem); | |
23556 | ||
23557 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
23558 | return resultobj; | |
23559 | fail: | |
23560 | return NULL; | |
23561 | } | |
23562 | ||
23563 | ||
23564 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23565 | PyObject *obj; | |
23566 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23567 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23568 | Py_INCREF(obj); | |
23569 | return Py_BuildValue((char *)""); | |
23570 | } | |
23571 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23572 | PyObject *resultobj; | |
23573 | PyObject *arg1 = (PyObject *) NULL ; | |
23574 | wxPyTreeItemData *result; | |
23575 | PyObject * obj0 = 0 ; | |
23576 | char *kwnames[] = { | |
23577 | (char *) "obj", NULL | |
23578 | }; | |
23579 | ||
23580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23581 | if (obj0) { | |
23582 | arg1 = obj0; | |
23583 | } | |
23584 | { | |
23585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23586 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23587 | ||
23588 | wxPyEndAllowThreads(__tstate); | |
23589 | if (PyErr_Occurred()) SWIG_fail; | |
23590 | } | |
23591 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
23592 | return resultobj; | |
23593 | fail: | |
23594 | return NULL; | |
23595 | } | |
23596 | ||
23597 | ||
23598 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23599 | PyObject *resultobj; | |
23600 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23601 | PyObject *result; | |
23602 | PyObject * obj0 = 0 ; | |
23603 | char *kwnames[] = { | |
23604 | (char *) "self", NULL | |
23605 | }; | |
23606 | ||
23607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
23608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23610 | { | |
23611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23612 | result = (PyObject *)(arg1)->GetData(); | |
23613 | ||
23614 | wxPyEndAllowThreads(__tstate); | |
23615 | if (PyErr_Occurred()) SWIG_fail; | |
23616 | } | |
23617 | resultobj = result; | |
23618 | return resultobj; | |
23619 | fail: | |
23620 | return NULL; | |
23621 | } | |
23622 | ||
23623 | ||
23624 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23625 | PyObject *resultobj; | |
23626 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23627 | PyObject *arg2 = (PyObject *) 0 ; | |
23628 | PyObject * obj0 = 0 ; | |
23629 | PyObject * obj1 = 0 ; | |
23630 | char *kwnames[] = { | |
23631 | (char *) "self",(char *) "obj", NULL | |
23632 | }; | |
23633 | ||
23634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
23635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23637 | arg2 = obj1; | |
23638 | { | |
23639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23640 | (arg1)->SetData(arg2); | |
23641 | ||
23642 | wxPyEndAllowThreads(__tstate); | |
23643 | if (PyErr_Occurred()) SWIG_fail; | |
23644 | } | |
23645 | Py_INCREF(Py_None); resultobj = Py_None; | |
23646 | return resultobj; | |
23647 | fail: | |
23648 | return NULL; | |
23649 | } | |
23650 | ||
23651 | ||
23652 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23653 | PyObject *resultobj; | |
23654 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23655 | wxTreeItemId *result; | |
23656 | PyObject * obj0 = 0 ; | |
23657 | char *kwnames[] = { | |
23658 | (char *) "self", NULL | |
23659 | }; | |
23660 | ||
23661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
23662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23664 | { | |
23665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23666 | { | |
23667 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23668 | result = (wxTreeItemId *) &_result_ref; | |
23669 | } | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
23674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
23675 | return resultobj; | |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
23681 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23682 | PyObject *resultobj; | |
23683 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23684 | wxTreeItemId *arg2 = 0 ; | |
23685 | PyObject * obj0 = 0 ; | |
23686 | PyObject * obj1 = 0 ; | |
23687 | char *kwnames[] = { | |
23688 | (char *) "self",(char *) "id", NULL | |
23689 | }; | |
23690 | ||
23691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
23692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23694 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23696 | SWIG_fail; | |
23697 | if (arg2 == NULL) { | |
23698 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23699 | SWIG_fail; | |
23700 | } | |
23701 | { | |
23702 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23703 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23704 | ||
23705 | wxPyEndAllowThreads(__tstate); | |
23706 | if (PyErr_Occurred()) SWIG_fail; | |
23707 | } | |
23708 | Py_INCREF(Py_None); resultobj = Py_None; | |
23709 | return resultobj; | |
23710 | fail: | |
23711 | return NULL; | |
23712 | } | |
23713 | ||
23714 | ||
23715 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23716 | PyObject *resultobj; | |
23717 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23718 | PyObject * obj0 = 0 ; | |
23719 | char *kwnames[] = { | |
23720 | (char *) "self", NULL | |
23721 | }; | |
23722 | ||
23723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
23724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
23725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23726 | { | |
23727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23728 | wxPyTreeItemData_Destroy(arg1); | |
23729 | ||
23730 | wxPyEndAllowThreads(__tstate); | |
23731 | if (PyErr_Occurred()) SWIG_fail; | |
23732 | } | |
23733 | Py_INCREF(Py_None); resultobj = Py_None; | |
23734 | return resultobj; | |
23735 | fail: | |
23736 | return NULL; | |
23737 | } | |
23738 | ||
23739 | ||
23740 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23741 | PyObject *obj; | |
23742 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23743 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23744 | Py_INCREF(obj); | |
23745 | return Py_BuildValue((char *)""); | |
23746 | } | |
23747 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23748 | PyObject *resultobj; | |
23749 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23750 | int arg2 = (int) 0 ; | |
23751 | wxTreeEvent *result; | |
23752 | PyObject * obj0 = 0 ; | |
23753 | PyObject * obj1 = 0 ; | |
23754 | char *kwnames[] = { | |
23755 | (char *) "commandType",(char *) "id", NULL | |
23756 | }; | |
23757 | ||
23758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
23759 | if (obj0) { | |
23760 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
23761 | if (PyErr_Occurred()) SWIG_fail; | |
23762 | } | |
23763 | if (obj1) { | |
23764 | arg2 = (int) SWIG_AsInt(obj1); | |
23765 | if (PyErr_Occurred()) SWIG_fail; | |
23766 | } | |
23767 | { | |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23769 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
23772 | if (PyErr_Occurred()) SWIG_fail; | |
23773 | } | |
23774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
23775 | return resultobj; | |
23776 | fail: | |
23777 | return NULL; | |
23778 | } | |
23779 | ||
23780 | ||
23781 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23782 | PyObject *resultobj; | |
23783 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23784 | wxTreeItemId result; | |
23785 | PyObject * obj0 = 0 ; | |
23786 | char *kwnames[] = { | |
23787 | (char *) "self", NULL | |
23788 | }; | |
23789 | ||
23790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
23791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23793 | { | |
23794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23795 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23796 | ||
23797 | wxPyEndAllowThreads(__tstate); | |
23798 | if (PyErr_Occurred()) SWIG_fail; | |
23799 | } | |
23800 | { | |
23801 | wxTreeItemId * resultptr; | |
23802 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
23804 | } | |
23805 | return resultobj; | |
23806 | fail: | |
23807 | return NULL; | |
23808 | } | |
23809 | ||
23810 | ||
23811 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23812 | PyObject *resultobj; | |
23813 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23814 | wxTreeItemId *arg2 = 0 ; | |
23815 | PyObject * obj0 = 0 ; | |
23816 | PyObject * obj1 = 0 ; | |
23817 | char *kwnames[] = { | |
23818 | (char *) "self",(char *) "item", NULL | |
23819 | }; | |
23820 | ||
23821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
23822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23824 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23825 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23826 | SWIG_fail; | |
23827 | if (arg2 == NULL) { | |
23828 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23829 | SWIG_fail; | |
23830 | } | |
23831 | { | |
23832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23833 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23834 | ||
23835 | wxPyEndAllowThreads(__tstate); | |
23836 | if (PyErr_Occurred()) SWIG_fail; | |
23837 | } | |
23838 | Py_INCREF(Py_None); resultobj = Py_None; | |
23839 | return resultobj; | |
23840 | fail: | |
23841 | return NULL; | |
23842 | } | |
23843 | ||
23844 | ||
23845 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23846 | PyObject *resultobj; | |
23847 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23848 | wxTreeItemId result; | |
23849 | PyObject * obj0 = 0 ; | |
23850 | char *kwnames[] = { | |
23851 | (char *) "self", NULL | |
23852 | }; | |
23853 | ||
23854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
23855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23857 | { | |
23858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23859 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23860 | ||
23861 | wxPyEndAllowThreads(__tstate); | |
23862 | if (PyErr_Occurred()) SWIG_fail; | |
23863 | } | |
23864 | { | |
23865 | wxTreeItemId * resultptr; | |
23866 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
23867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
23868 | } | |
23869 | return resultobj; | |
23870 | fail: | |
23871 | return NULL; | |
23872 | } | |
23873 | ||
23874 | ||
23875 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23876 | PyObject *resultobj; | |
23877 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23878 | wxTreeItemId *arg2 = 0 ; | |
23879 | PyObject * obj0 = 0 ; | |
23880 | PyObject * obj1 = 0 ; | |
23881 | char *kwnames[] = { | |
23882 | (char *) "self",(char *) "item", NULL | |
23883 | }; | |
23884 | ||
23885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
23886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23890 | SWIG_fail; | |
23891 | if (arg2 == NULL) { | |
23892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23893 | SWIG_fail; | |
23894 | } | |
23895 | { | |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23898 | ||
23899 | wxPyEndAllowThreads(__tstate); | |
23900 | if (PyErr_Occurred()) SWIG_fail; | |
23901 | } | |
23902 | Py_INCREF(Py_None); resultobj = Py_None; | |
23903 | return resultobj; | |
23904 | fail: | |
23905 | return NULL; | |
23906 | } | |
23907 | ||
23908 | ||
23909 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23910 | PyObject *resultobj; | |
23911 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23912 | wxPoint result; | |
23913 | PyObject * obj0 = 0 ; | |
23914 | char *kwnames[] = { | |
23915 | (char *) "self", NULL | |
23916 | }; | |
23917 | ||
23918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
23919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23921 | { | |
23922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23923 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23924 | ||
23925 | wxPyEndAllowThreads(__tstate); | |
23926 | if (PyErr_Occurred()) SWIG_fail; | |
23927 | } | |
23928 | { | |
23929 | wxPoint * resultptr; | |
23930 | resultptr = new wxPoint((wxPoint &) result); | |
23931 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
23932 | } | |
23933 | return resultobj; | |
23934 | fail: | |
23935 | return NULL; | |
23936 | } | |
23937 | ||
23938 | ||
23939 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23940 | PyObject *resultobj; | |
23941 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23942 | wxPoint *arg2 = 0 ; | |
23943 | wxPoint temp2 ; | |
23944 | PyObject * obj0 = 0 ; | |
23945 | PyObject * obj1 = 0 ; | |
23946 | char *kwnames[] = { | |
23947 | (char *) "self",(char *) "pt", NULL | |
23948 | }; | |
23949 | ||
23950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
23951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23953 | { | |
23954 | arg2 = &temp2; | |
23955 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23956 | } | |
23957 | { | |
23958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23959 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23960 | ||
23961 | wxPyEndAllowThreads(__tstate); | |
23962 | if (PyErr_Occurred()) SWIG_fail; | |
23963 | } | |
23964 | Py_INCREF(Py_None); resultobj = Py_None; | |
23965 | return resultobj; | |
23966 | fail: | |
23967 | return NULL; | |
23968 | } | |
23969 | ||
23970 | ||
23971 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23972 | PyObject *resultobj; | |
23973 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23974 | wxKeyEvent *result; | |
23975 | PyObject * obj0 = 0 ; | |
23976 | char *kwnames[] = { | |
23977 | (char *) "self", NULL | |
23978 | }; | |
23979 | ||
23980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
23981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
23982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23983 | { | |
23984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23985 | { | |
23986 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23987 | result = (wxKeyEvent *) &_result_ref; | |
23988 | } | |
23989 | ||
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
23993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
23994 | return resultobj; | |
23995 | fail: | |
23996 | return NULL; | |
23997 | } | |
23998 | ||
23999 | ||
24000 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24001 | PyObject *resultobj; | |
24002 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24003 | int result; | |
24004 | PyObject * obj0 = 0 ; | |
24005 | char *kwnames[] = { | |
24006 | (char *) "self", NULL | |
24007 | }; | |
24008 | ||
24009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
24010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24012 | { | |
24013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24014 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24015 | ||
24016 | wxPyEndAllowThreads(__tstate); | |
24017 | if (PyErr_Occurred()) SWIG_fail; | |
24018 | } | |
24019 | resultobj = SWIG_FromInt((int)result); | |
24020 | return resultobj; | |
24021 | fail: | |
24022 | return NULL; | |
24023 | } | |
24024 | ||
24025 | ||
24026 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24027 | PyObject *resultobj; | |
24028 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24029 | wxKeyEvent *arg2 = 0 ; | |
24030 | PyObject * obj0 = 0 ; | |
24031 | PyObject * obj1 = 0 ; | |
24032 | char *kwnames[] = { | |
24033 | (char *) "self",(char *) "evt", NULL | |
24034 | }; | |
24035 | ||
24036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
24037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24039 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24041 | SWIG_fail; | |
24042 | if (arg2 == NULL) { | |
24043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24044 | SWIG_fail; | |
24045 | } | |
24046 | { | |
24047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24048 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24049 | ||
24050 | wxPyEndAllowThreads(__tstate); | |
24051 | if (PyErr_Occurred()) SWIG_fail; | |
24052 | } | |
24053 | Py_INCREF(Py_None); resultobj = Py_None; | |
24054 | return resultobj; | |
24055 | fail: | |
24056 | return NULL; | |
24057 | } | |
24058 | ||
24059 | ||
24060 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24061 | PyObject *resultobj; | |
24062 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24063 | wxString *result; | |
24064 | PyObject * obj0 = 0 ; | |
24065 | char *kwnames[] = { | |
24066 | (char *) "self", NULL | |
24067 | }; | |
24068 | ||
24069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
24070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24072 | { | |
24073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24074 | { | |
24075 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24076 | result = (wxString *) &_result_ref; | |
24077 | } | |
24078 | ||
24079 | wxPyEndAllowThreads(__tstate); | |
24080 | if (PyErr_Occurred()) SWIG_fail; | |
24081 | } | |
24082 | { | |
24083 | #if wxUSE_UNICODE | |
24084 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24085 | #else | |
24086 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24087 | #endif | |
24088 | } | |
24089 | return resultobj; | |
24090 | fail: | |
24091 | return NULL; | |
24092 | } | |
24093 | ||
24094 | ||
24095 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24096 | PyObject *resultobj; | |
24097 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24098 | wxString *arg2 = 0 ; | |
24099 | bool temp2 = False ; | |
24100 | PyObject * obj0 = 0 ; | |
24101 | PyObject * obj1 = 0 ; | |
24102 | char *kwnames[] = { | |
24103 | (char *) "self",(char *) "label", NULL | |
24104 | }; | |
24105 | ||
24106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
24107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24109 | { | |
24110 | arg2 = wxString_in_helper(obj1); | |
24111 | if (arg2 == NULL) SWIG_fail; | |
24112 | temp2 = True; | |
24113 | } | |
24114 | { | |
24115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24116 | (arg1)->SetLabel((wxString const &)*arg2); | |
24117 | ||
24118 | wxPyEndAllowThreads(__tstate); | |
24119 | if (PyErr_Occurred()) SWIG_fail; | |
24120 | } | |
24121 | Py_INCREF(Py_None); resultobj = Py_None; | |
24122 | { | |
24123 | if (temp2) | |
24124 | delete arg2; | |
24125 | } | |
24126 | return resultobj; | |
24127 | fail: | |
24128 | { | |
24129 | if (temp2) | |
24130 | delete arg2; | |
24131 | } | |
24132 | return NULL; | |
24133 | } | |
24134 | ||
24135 | ||
24136 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24137 | PyObject *resultobj; | |
24138 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24139 | bool result; | |
24140 | PyObject * obj0 = 0 ; | |
24141 | char *kwnames[] = { | |
24142 | (char *) "self", NULL | |
24143 | }; | |
24144 | ||
24145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
24146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24148 | { | |
24149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24150 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24151 | ||
24152 | wxPyEndAllowThreads(__tstate); | |
24153 | if (PyErr_Occurred()) SWIG_fail; | |
24154 | } | |
24155 | { | |
24156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24157 | } | |
24158 | return resultobj; | |
24159 | fail: | |
24160 | return NULL; | |
24161 | } | |
24162 | ||
24163 | ||
24164 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24165 | PyObject *resultobj; | |
24166 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24167 | bool arg2 ; | |
24168 | PyObject * obj0 = 0 ; | |
24169 | PyObject * obj1 = 0 ; | |
24170 | char *kwnames[] = { | |
24171 | (char *) "self",(char *) "editCancelled", NULL | |
24172 | }; | |
24173 | ||
24174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
24175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24177 | arg2 = (bool) SWIG_AsBool(obj1); | |
24178 | if (PyErr_Occurred()) SWIG_fail; | |
24179 | { | |
24180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24181 | (arg1)->SetEditCanceled(arg2); | |
24182 | ||
24183 | wxPyEndAllowThreads(__tstate); | |
24184 | if (PyErr_Occurred()) SWIG_fail; | |
24185 | } | |
24186 | Py_INCREF(Py_None); resultobj = Py_None; | |
24187 | return resultobj; | |
24188 | fail: | |
24189 | return NULL; | |
24190 | } | |
24191 | ||
24192 | ||
24193 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24194 | PyObject *resultobj; | |
24195 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24196 | wxString *arg2 = 0 ; | |
24197 | bool temp2 = False ; | |
24198 | PyObject * obj0 = 0 ; | |
24199 | PyObject * obj1 = 0 ; | |
24200 | char *kwnames[] = { | |
24201 | (char *) "self",(char *) "toolTip", NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24207 | { | |
24208 | arg2 = wxString_in_helper(obj1); | |
24209 | if (arg2 == NULL) SWIG_fail; | |
24210 | temp2 = True; | |
24211 | } | |
24212 | { | |
24213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24214 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24215 | ||
24216 | wxPyEndAllowThreads(__tstate); | |
24217 | if (PyErr_Occurred()) SWIG_fail; | |
24218 | } | |
24219 | Py_INCREF(Py_None); resultobj = Py_None; | |
24220 | { | |
24221 | if (temp2) | |
24222 | delete arg2; | |
24223 | } | |
24224 | return resultobj; | |
24225 | fail: | |
24226 | { | |
24227 | if (temp2) | |
24228 | delete arg2; | |
24229 | } | |
24230 | return NULL; | |
24231 | } | |
24232 | ||
24233 | ||
24234 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
24235 | PyObject *obj; | |
24236 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24237 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24238 | Py_INCREF(obj); | |
24239 | return Py_BuildValue((char *)""); | |
24240 | } | |
24241 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24242 | PyObject *resultobj; | |
24243 | wxWindow *arg1 = (wxWindow *) 0 ; | |
24244 | int arg2 = (int) -1 ; | |
24245 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
24246 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24247 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24248 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24249 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24250 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24251 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
24252 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
24253 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
24254 | wxPyTreeCtrl *result; | |
24255 | wxPoint temp3 ; | |
24256 | wxSize temp4 ; | |
24257 | bool temp7 = False ; | |
24258 | PyObject * obj0 = 0 ; | |
24259 | PyObject * obj1 = 0 ; | |
24260 | PyObject * obj2 = 0 ; | |
24261 | PyObject * obj3 = 0 ; | |
24262 | PyObject * obj4 = 0 ; | |
24263 | PyObject * obj5 = 0 ; | |
24264 | PyObject * obj6 = 0 ; | |
24265 | char *kwnames[] = { | |
24266 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24267 | }; | |
24268 | ||
24269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
24270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
24271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24272 | if (obj1) { | |
24273 | arg2 = (int) SWIG_AsInt(obj1); | |
24274 | if (PyErr_Occurred()) SWIG_fail; | |
24275 | } | |
24276 | if (obj2) { | |
24277 | { | |
24278 | arg3 = &temp3; | |
24279 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24280 | } | |
24281 | } | |
24282 | if (obj3) { | |
24283 | { | |
24284 | arg4 = &temp4; | |
24285 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24286 | } | |
24287 | } | |
24288 | if (obj4) { | |
24289 | arg5 = (long) SWIG_AsLong(obj4); | |
24290 | if (PyErr_Occurred()) SWIG_fail; | |
24291 | } | |
24292 | if (obj5) { | |
24293 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
24294 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24295 | SWIG_fail; | |
24296 | if (arg6 == NULL) { | |
24297 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24298 | SWIG_fail; | |
24299 | } | |
24300 | } | |
24301 | if (obj6) { | |
24302 | { | |
24303 | arg7 = wxString_in_helper(obj6); | |
24304 | if (arg7 == NULL) SWIG_fail; | |
24305 | temp7 = True; | |
24306 | } | |
24307 | } | |
24308 | { | |
24309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24310 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24311 | ||
24312 | wxPyEndAllowThreads(__tstate); | |
24313 | if (PyErr_Occurred()) SWIG_fail; | |
24314 | } | |
24315 | { | |
24316 | resultobj = wxPyMake_wxObject(result); | |
24317 | } | |
24318 | { | |
24319 | if (temp7) | |
24320 | delete arg7; | |
24321 | } | |
24322 | return resultobj; | |
24323 | fail: | |
24324 | { | |
24325 | if (temp7) | |
24326 | delete arg7; | |
24327 | } | |
24328 | return NULL; | |
24329 | } | |
24330 | ||
24331 | ||
24332 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24333 | PyObject *resultobj; | |
24334 | wxPyTreeCtrl *result; | |
24335 | char *kwnames[] = { | |
24336 | NULL | |
24337 | }; | |
24338 | ||
24339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24340 | { | |
24341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24342 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24343 | ||
24344 | wxPyEndAllowThreads(__tstate); | |
24345 | if (PyErr_Occurred()) SWIG_fail; | |
24346 | } | |
24347 | { | |
24348 | resultobj = wxPyMake_wxObject(result); | |
24349 | } | |
24350 | return resultobj; | |
24351 | fail: | |
24352 | return NULL; | |
24353 | } | |
24354 | ||
24355 | ||
24356 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24357 | PyObject *resultobj; | |
24358 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24359 | wxWindow *arg2 = (wxWindow *) 0 ; | |
24360 | int arg3 = (int) -1 ; | |
24361 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
24362 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24363 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24364 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24365 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24366 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24367 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
24368 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
24369 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
24370 | bool result; | |
24371 | wxPoint temp4 ; | |
24372 | wxSize temp5 ; | |
24373 | bool temp8 = False ; | |
24374 | PyObject * obj0 = 0 ; | |
24375 | PyObject * obj1 = 0 ; | |
24376 | PyObject * obj2 = 0 ; | |
24377 | PyObject * obj3 = 0 ; | |
24378 | PyObject * obj4 = 0 ; | |
24379 | PyObject * obj5 = 0 ; | |
24380 | PyObject * obj6 = 0 ; | |
24381 | PyObject * obj7 = 0 ; | |
24382 | char *kwnames[] = { | |
24383 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24384 | }; | |
24385 | ||
24386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
24387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24391 | if (obj2) { | |
24392 | arg3 = (int) SWIG_AsInt(obj2); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
24395 | if (obj3) { | |
24396 | { | |
24397 | arg4 = &temp4; | |
24398 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24399 | } | |
24400 | } | |
24401 | if (obj4) { | |
24402 | { | |
24403 | arg5 = &temp5; | |
24404 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24405 | } | |
24406 | } | |
24407 | if (obj5) { | |
24408 | arg6 = (long) SWIG_AsLong(obj5); | |
24409 | if (PyErr_Occurred()) SWIG_fail; | |
24410 | } | |
24411 | if (obj6) { | |
24412 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
24413 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24414 | SWIG_fail; | |
24415 | if (arg7 == NULL) { | |
24416 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24417 | SWIG_fail; | |
24418 | } | |
24419 | } | |
24420 | if (obj7) { | |
24421 | { | |
24422 | arg8 = wxString_in_helper(obj7); | |
24423 | if (arg8 == NULL) SWIG_fail; | |
24424 | temp8 = True; | |
24425 | } | |
24426 | } | |
24427 | { | |
24428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24429 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24430 | ||
24431 | wxPyEndAllowThreads(__tstate); | |
24432 | if (PyErr_Occurred()) SWIG_fail; | |
24433 | } | |
24434 | { | |
24435 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24436 | } | |
24437 | { | |
24438 | if (temp8) | |
24439 | delete arg8; | |
24440 | } | |
24441 | return resultobj; | |
24442 | fail: | |
24443 | { | |
24444 | if (temp8) | |
24445 | delete arg8; | |
24446 | } | |
24447 | return NULL; | |
24448 | } | |
24449 | ||
24450 | ||
24451 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24452 | PyObject *resultobj; | |
24453 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24454 | PyObject *arg2 = (PyObject *) 0 ; | |
24455 | PyObject *arg3 = (PyObject *) 0 ; | |
24456 | PyObject * obj0 = 0 ; | |
24457 | PyObject * obj1 = 0 ; | |
24458 | PyObject * obj2 = 0 ; | |
24459 | char *kwnames[] = { | |
24460 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24461 | }; | |
24462 | ||
24463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24466 | arg2 = obj1; | |
24467 | arg3 = obj2; | |
24468 | { | |
24469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24470 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24471 | ||
24472 | wxPyEndAllowThreads(__tstate); | |
24473 | if (PyErr_Occurred()) SWIG_fail; | |
24474 | } | |
24475 | Py_INCREF(Py_None); resultobj = Py_None; | |
24476 | return resultobj; | |
24477 | fail: | |
24478 | return NULL; | |
24479 | } | |
24480 | ||
24481 | ||
24482 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24483 | PyObject *resultobj; | |
24484 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24485 | size_t result; | |
24486 | PyObject * obj0 = 0 ; | |
24487 | char *kwnames[] = { | |
24488 | (char *) "self", NULL | |
24489 | }; | |
24490 | ||
24491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
24492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24494 | { | |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24497 | ||
24498 | wxPyEndAllowThreads(__tstate); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | } | |
24501 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
24502 | return resultobj; | |
24503 | fail: | |
24504 | return NULL; | |
24505 | } | |
24506 | ||
24507 | ||
24508 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24509 | PyObject *resultobj; | |
24510 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24511 | unsigned int result; | |
24512 | PyObject * obj0 = 0 ; | |
24513 | char *kwnames[] = { | |
24514 | (char *) "self", NULL | |
24515 | }; | |
24516 | ||
24517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
24518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24520 | { | |
24521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24522 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24523 | ||
24524 | wxPyEndAllowThreads(__tstate); | |
24525 | if (PyErr_Occurred()) SWIG_fail; | |
24526 | } | |
24527 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
24528 | return resultobj; | |
24529 | fail: | |
24530 | return NULL; | |
24531 | } | |
24532 | ||
24533 | ||
24534 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24535 | PyObject *resultobj; | |
24536 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24537 | unsigned int arg2 ; | |
24538 | PyObject * obj0 = 0 ; | |
24539 | PyObject * obj1 = 0 ; | |
24540 | char *kwnames[] = { | |
24541 | (char *) "self",(char *) "indent", NULL | |
24542 | }; | |
24543 | ||
24544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
24545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24547 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24548 | if (PyErr_Occurred()) SWIG_fail; | |
24549 | { | |
24550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24551 | (arg1)->SetIndent(arg2); | |
24552 | ||
24553 | wxPyEndAllowThreads(__tstate); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
24556 | Py_INCREF(Py_None); resultobj = Py_None; | |
24557 | return resultobj; | |
24558 | fail: | |
24559 | return NULL; | |
24560 | } | |
24561 | ||
24562 | ||
24563 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24564 | PyObject *resultobj; | |
24565 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24566 | unsigned int result; | |
24567 | PyObject * obj0 = 0 ; | |
24568 | char *kwnames[] = { | |
24569 | (char *) "self", NULL | |
24570 | }; | |
24571 | ||
24572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
24573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24575 | { | |
24576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24577 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24578 | ||
24579 | wxPyEndAllowThreads(__tstate); | |
24580 | if (PyErr_Occurred()) SWIG_fail; | |
24581 | } | |
24582 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
24583 | return resultobj; | |
24584 | fail: | |
24585 | return NULL; | |
24586 | } | |
24587 | ||
24588 | ||
24589 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24590 | PyObject *resultobj; | |
24591 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24592 | unsigned int arg2 ; | |
24593 | PyObject * obj0 = 0 ; | |
24594 | PyObject * obj1 = 0 ; | |
24595 | char *kwnames[] = { | |
24596 | (char *) "self",(char *) "spacing", NULL | |
24597 | }; | |
24598 | ||
24599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
24600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24602 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24603 | if (PyErr_Occurred()) SWIG_fail; | |
24604 | { | |
24605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24606 | (arg1)->SetSpacing(arg2); | |
24607 | ||
24608 | wxPyEndAllowThreads(__tstate); | |
24609 | if (PyErr_Occurred()) SWIG_fail; | |
24610 | } | |
24611 | Py_INCREF(Py_None); resultobj = Py_None; | |
24612 | return resultobj; | |
24613 | fail: | |
24614 | return NULL; | |
24615 | } | |
24616 | ||
24617 | ||
24618 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24619 | PyObject *resultobj; | |
24620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24621 | wxImageList *result; | |
24622 | PyObject * obj0 = 0 ; | |
24623 | char *kwnames[] = { | |
24624 | (char *) "self", NULL | |
24625 | }; | |
24626 | ||
24627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
24628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24630 | { | |
24631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24632 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24633 | ||
24634 | wxPyEndAllowThreads(__tstate); | |
24635 | if (PyErr_Occurred()) SWIG_fail; | |
24636 | } | |
24637 | { | |
24638 | resultobj = wxPyMake_wxObject(result); | |
24639 | } | |
24640 | return resultobj; | |
24641 | fail: | |
24642 | return NULL; | |
24643 | } | |
24644 | ||
24645 | ||
24646 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24647 | PyObject *resultobj; | |
24648 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24649 | wxImageList *result; | |
24650 | PyObject * obj0 = 0 ; | |
24651 | char *kwnames[] = { | |
24652 | (char *) "self", NULL | |
24653 | }; | |
24654 | ||
24655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
24656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24658 | { | |
24659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24660 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24661 | ||
24662 | wxPyEndAllowThreads(__tstate); | |
24663 | if (PyErr_Occurred()) SWIG_fail; | |
24664 | } | |
24665 | { | |
24666 | resultobj = wxPyMake_wxObject(result); | |
24667 | } | |
24668 | return resultobj; | |
24669 | fail: | |
24670 | return NULL; | |
24671 | } | |
24672 | ||
24673 | ||
24674 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24675 | PyObject *resultobj; | |
24676 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24677 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24678 | PyObject * obj0 = 0 ; | |
24679 | PyObject * obj1 = 0 ; | |
24680 | char *kwnames[] = { | |
24681 | (char *) "self",(char *) "imageList", NULL | |
24682 | }; | |
24683 | ||
24684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
24685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24689 | { | |
24690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24691 | (arg1)->SetImageList(arg2); | |
24692 | ||
24693 | wxPyEndAllowThreads(__tstate); | |
24694 | if (PyErr_Occurred()) SWIG_fail; | |
24695 | } | |
24696 | Py_INCREF(Py_None); resultobj = Py_None; | |
24697 | return resultobj; | |
24698 | fail: | |
24699 | return NULL; | |
24700 | } | |
24701 | ||
24702 | ||
24703 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24704 | PyObject *resultobj; | |
24705 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24706 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24707 | PyObject * obj0 = 0 ; | |
24708 | PyObject * obj1 = 0 ; | |
24709 | char *kwnames[] = { | |
24710 | (char *) "self",(char *) "imageList", NULL | |
24711 | }; | |
24712 | ||
24713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24718 | { | |
24719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24720 | (arg1)->SetStateImageList(arg2); | |
24721 | ||
24722 | wxPyEndAllowThreads(__tstate); | |
24723 | if (PyErr_Occurred()) SWIG_fail; | |
24724 | } | |
24725 | Py_INCREF(Py_None); resultobj = Py_None; | |
24726 | return resultobj; | |
24727 | fail: | |
24728 | return NULL; | |
24729 | } | |
24730 | ||
24731 | ||
24732 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24733 | PyObject *resultobj; | |
24734 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24735 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24736 | PyObject * obj0 = 0 ; | |
24737 | PyObject * obj1 = 0 ; | |
24738 | char *kwnames[] = { | |
24739 | (char *) "self",(char *) "imageList", NULL | |
24740 | }; | |
24741 | ||
24742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
24743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24746 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24747 | { | |
24748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24749 | (arg1)->AssignImageList(arg2); | |
24750 | ||
24751 | wxPyEndAllowThreads(__tstate); | |
24752 | if (PyErr_Occurred()) SWIG_fail; | |
24753 | } | |
24754 | Py_INCREF(Py_None); resultobj = Py_None; | |
24755 | return resultobj; | |
24756 | fail: | |
24757 | return NULL; | |
24758 | } | |
24759 | ||
24760 | ||
24761 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24762 | PyObject *resultobj; | |
24763 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24764 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24765 | PyObject * obj0 = 0 ; | |
24766 | PyObject * obj1 = 0 ; | |
24767 | char *kwnames[] = { | |
24768 | (char *) "self",(char *) "imageList", NULL | |
24769 | }; | |
24770 | ||
24771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
24772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24774 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24775 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | (arg1)->AssignStateImageList(arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | Py_INCREF(Py_None); resultobj = Py_None; | |
24784 | return resultobj; | |
24785 | fail: | |
24786 | return NULL; | |
24787 | } | |
24788 | ||
24789 | ||
24790 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24791 | PyObject *resultobj; | |
24792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24793 | wxTreeItemId *arg2 = 0 ; | |
24794 | wxString result; | |
24795 | PyObject * obj0 = 0 ; | |
24796 | PyObject * obj1 = 0 ; | |
24797 | char *kwnames[] = { | |
24798 | (char *) "self",(char *) "item", NULL | |
24799 | }; | |
24800 | ||
24801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
24802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24804 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24805 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24806 | SWIG_fail; | |
24807 | if (arg2 == NULL) { | |
24808 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24809 | SWIG_fail; | |
24810 | } | |
24811 | { | |
24812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24813 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24814 | ||
24815 | wxPyEndAllowThreads(__tstate); | |
24816 | if (PyErr_Occurred()) SWIG_fail; | |
24817 | } | |
24818 | { | |
24819 | #if wxUSE_UNICODE | |
24820 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24821 | #else | |
24822 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24823 | #endif | |
24824 | } | |
24825 | return resultobj; | |
24826 | fail: | |
24827 | return NULL; | |
24828 | } | |
24829 | ||
24830 | ||
24831 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24832 | PyObject *resultobj; | |
24833 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24834 | wxTreeItemId *arg2 = 0 ; | |
24835 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24836 | int result; | |
24837 | PyObject * obj0 = 0 ; | |
24838 | PyObject * obj1 = 0 ; | |
24839 | PyObject * obj2 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24849 | SWIG_fail; | |
24850 | if (arg2 == NULL) { | |
24851 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24852 | SWIG_fail; | |
24853 | } | |
24854 | if (obj2) { | |
24855 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); | |
24856 | if (PyErr_Occurred()) SWIG_fail; | |
24857 | } | |
24858 | { | |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24861 | ||
24862 | wxPyEndAllowThreads(__tstate); | |
24863 | if (PyErr_Occurred()) SWIG_fail; | |
24864 | } | |
24865 | resultobj = SWIG_FromInt((int)result); | |
24866 | return resultobj; | |
24867 | fail: | |
24868 | return NULL; | |
24869 | } | |
24870 | ||
24871 | ||
24872 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24873 | PyObject *resultobj; | |
24874 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24875 | wxTreeItemId *arg2 = 0 ; | |
24876 | wxPyTreeItemData *result; | |
24877 | PyObject * obj0 = 0 ; | |
24878 | PyObject * obj1 = 0 ; | |
24879 | char *kwnames[] = { | |
24880 | (char *) "self",(char *) "item", NULL | |
24881 | }; | |
24882 | ||
24883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
24884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24886 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24887 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24888 | SWIG_fail; | |
24889 | if (arg2 == NULL) { | |
24890 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24891 | SWIG_fail; | |
24892 | } | |
24893 | { | |
24894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24895 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24896 | ||
24897 | wxPyEndAllowThreads(__tstate); | |
24898 | if (PyErr_Occurred()) SWIG_fail; | |
24899 | } | |
24900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
24901 | return resultobj; | |
24902 | fail: | |
24903 | return NULL; | |
24904 | } | |
24905 | ||
24906 | ||
24907 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24908 | PyObject *resultobj; | |
24909 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24910 | wxTreeItemId *arg2 = 0 ; | |
24911 | PyObject *result; | |
24912 | PyObject * obj0 = 0 ; | |
24913 | PyObject * obj1 = 0 ; | |
24914 | char *kwnames[] = { | |
24915 | (char *) "self",(char *) "item", NULL | |
24916 | }; | |
24917 | ||
24918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
24919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24921 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24922 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24923 | SWIG_fail; | |
24924 | if (arg2 == NULL) { | |
24925 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24926 | SWIG_fail; | |
24927 | } | |
24928 | { | |
24929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24930 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24931 | ||
24932 | wxPyEndAllowThreads(__tstate); | |
24933 | if (PyErr_Occurred()) SWIG_fail; | |
24934 | } | |
24935 | resultobj = result; | |
24936 | return resultobj; | |
24937 | fail: | |
24938 | return NULL; | |
24939 | } | |
24940 | ||
24941 | ||
24942 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24943 | PyObject *resultobj; | |
24944 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24945 | wxTreeItemId *arg2 = 0 ; | |
24946 | wxColour result; | |
24947 | PyObject * obj0 = 0 ; | |
24948 | PyObject * obj1 = 0 ; | |
24949 | char *kwnames[] = { | |
24950 | (char *) "self",(char *) "item", NULL | |
24951 | }; | |
24952 | ||
24953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
24954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24956 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24957 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24958 | SWIG_fail; | |
24959 | if (arg2 == NULL) { | |
24960 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24961 | SWIG_fail; | |
24962 | } | |
24963 | { | |
24964 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24965 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24966 | ||
24967 | wxPyEndAllowThreads(__tstate); | |
24968 | if (PyErr_Occurred()) SWIG_fail; | |
24969 | } | |
24970 | { | |
24971 | wxColour * resultptr; | |
24972 | resultptr = new wxColour((wxColour &) result); | |
24973 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
24974 | } | |
24975 | return resultobj; | |
24976 | fail: | |
24977 | return NULL; | |
24978 | } | |
24979 | ||
24980 | ||
24981 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24982 | PyObject *resultobj; | |
24983 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24984 | wxTreeItemId *arg2 = 0 ; | |
24985 | wxColour result; | |
24986 | PyObject * obj0 = 0 ; | |
24987 | PyObject * obj1 = 0 ; | |
24988 | char *kwnames[] = { | |
24989 | (char *) "self",(char *) "item", NULL | |
24990 | }; | |
24991 | ||
24992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
24993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
24994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24995 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24996 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24997 | SWIG_fail; | |
24998 | if (arg2 == NULL) { | |
24999 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25000 | SWIG_fail; | |
25001 | } | |
25002 | { | |
25003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25004 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25005 | ||
25006 | wxPyEndAllowThreads(__tstate); | |
25007 | if (PyErr_Occurred()) SWIG_fail; | |
25008 | } | |
25009 | { | |
25010 | wxColour * resultptr; | |
25011 | resultptr = new wxColour((wxColour &) result); | |
25012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25013 | } | |
25014 | return resultobj; | |
25015 | fail: | |
25016 | return NULL; | |
25017 | } | |
25018 | ||
25019 | ||
25020 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25021 | PyObject *resultobj; | |
25022 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25023 | wxTreeItemId *arg2 = 0 ; | |
25024 | wxFont result; | |
25025 | PyObject * obj0 = 0 ; | |
25026 | PyObject * obj1 = 0 ; | |
25027 | char *kwnames[] = { | |
25028 | (char *) "self",(char *) "item", NULL | |
25029 | }; | |
25030 | ||
25031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
25032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25036 | SWIG_fail; | |
25037 | if (arg2 == NULL) { | |
25038 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25039 | SWIG_fail; | |
25040 | } | |
25041 | { | |
25042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25043 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25044 | ||
25045 | wxPyEndAllowThreads(__tstate); | |
25046 | if (PyErr_Occurred()) SWIG_fail; | |
25047 | } | |
25048 | { | |
25049 | wxFont * resultptr; | |
25050 | resultptr = new wxFont((wxFont &) result); | |
25051 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25052 | } | |
25053 | return resultobj; | |
25054 | fail: | |
25055 | return NULL; | |
25056 | } | |
25057 | ||
25058 | ||
25059 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25060 | PyObject *resultobj; | |
25061 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25062 | wxTreeItemId *arg2 = 0 ; | |
25063 | wxString *arg3 = 0 ; | |
25064 | bool temp3 = False ; | |
25065 | PyObject * obj0 = 0 ; | |
25066 | PyObject * obj1 = 0 ; | |
25067 | PyObject * obj2 = 0 ; | |
25068 | char *kwnames[] = { | |
25069 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25070 | }; | |
25071 | ||
25072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25077 | SWIG_fail; | |
25078 | if (arg2 == NULL) { | |
25079 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25080 | SWIG_fail; | |
25081 | } | |
25082 | { | |
25083 | arg3 = wxString_in_helper(obj2); | |
25084 | if (arg3 == NULL) SWIG_fail; | |
25085 | temp3 = True; | |
25086 | } | |
25087 | { | |
25088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25089 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25090 | ||
25091 | wxPyEndAllowThreads(__tstate); | |
25092 | if (PyErr_Occurred()) SWIG_fail; | |
25093 | } | |
25094 | Py_INCREF(Py_None); resultobj = Py_None; | |
25095 | { | |
25096 | if (temp3) | |
25097 | delete arg3; | |
25098 | } | |
25099 | return resultobj; | |
25100 | fail: | |
25101 | { | |
25102 | if (temp3) | |
25103 | delete arg3; | |
25104 | } | |
25105 | return NULL; | |
25106 | } | |
25107 | ||
25108 | ||
25109 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25110 | PyObject *resultobj; | |
25111 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25112 | wxTreeItemId *arg2 = 0 ; | |
25113 | int arg3 ; | |
25114 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25115 | PyObject * obj0 = 0 ; | |
25116 | PyObject * obj1 = 0 ; | |
25117 | PyObject * obj2 = 0 ; | |
25118 | PyObject * obj3 = 0 ; | |
25119 | char *kwnames[] = { | |
25120 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25121 | }; | |
25122 | ||
25123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25127 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25128 | SWIG_fail; | |
25129 | if (arg2 == NULL) { | |
25130 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25131 | SWIG_fail; | |
25132 | } | |
25133 | arg3 = (int) SWIG_AsInt(obj2); | |
25134 | if (PyErr_Occurred()) SWIG_fail; | |
25135 | if (obj3) { | |
25136 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); | |
25137 | if (PyErr_Occurred()) SWIG_fail; | |
25138 | } | |
25139 | { | |
25140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25141 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25142 | ||
25143 | wxPyEndAllowThreads(__tstate); | |
25144 | if (PyErr_Occurred()) SWIG_fail; | |
25145 | } | |
25146 | Py_INCREF(Py_None); resultobj = Py_None; | |
25147 | return resultobj; | |
25148 | fail: | |
25149 | return NULL; | |
25150 | } | |
25151 | ||
25152 | ||
25153 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25154 | PyObject *resultobj; | |
25155 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25156 | wxTreeItemId *arg2 = 0 ; | |
25157 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25158 | PyObject * obj0 = 0 ; | |
25159 | PyObject * obj1 = 0 ; | |
25160 | PyObject * obj2 = 0 ; | |
25161 | char *kwnames[] = { | |
25162 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25163 | }; | |
25164 | ||
25165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25168 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25169 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25170 | SWIG_fail; | |
25171 | if (arg2 == NULL) { | |
25172 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25173 | SWIG_fail; | |
25174 | } | |
25175 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
25176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25177 | { | |
25178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25179 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25180 | ||
25181 | wxPyEndAllowThreads(__tstate); | |
25182 | if (PyErr_Occurred()) SWIG_fail; | |
25183 | } | |
25184 | Py_INCREF(Py_None); resultobj = Py_None; | |
25185 | return resultobj; | |
25186 | fail: | |
25187 | return NULL; | |
25188 | } | |
25189 | ||
25190 | ||
25191 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25192 | PyObject *resultobj; | |
25193 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25194 | wxTreeItemId *arg2 = 0 ; | |
25195 | PyObject *arg3 = (PyObject *) 0 ; | |
25196 | PyObject * obj0 = 0 ; | |
25197 | PyObject * obj1 = 0 ; | |
25198 | PyObject * obj2 = 0 ; | |
25199 | char *kwnames[] = { | |
25200 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25201 | }; | |
25202 | ||
25203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25207 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25208 | SWIG_fail; | |
25209 | if (arg2 == NULL) { | |
25210 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25211 | SWIG_fail; | |
25212 | } | |
25213 | arg3 = obj2; | |
25214 | { | |
25215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25216 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25217 | ||
25218 | wxPyEndAllowThreads(__tstate); | |
25219 | if (PyErr_Occurred()) SWIG_fail; | |
25220 | } | |
25221 | Py_INCREF(Py_None); resultobj = Py_None; | |
25222 | return resultobj; | |
25223 | fail: | |
25224 | return NULL; | |
25225 | } | |
25226 | ||
25227 | ||
25228 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25229 | PyObject *resultobj; | |
25230 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25231 | wxTreeItemId *arg2 = 0 ; | |
25232 | bool arg3 = (bool) True ; | |
25233 | PyObject * obj0 = 0 ; | |
25234 | PyObject * obj1 = 0 ; | |
25235 | PyObject * obj2 = 0 ; | |
25236 | char *kwnames[] = { | |
25237 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25238 | }; | |
25239 | ||
25240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25243 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25244 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25245 | SWIG_fail; | |
25246 | if (arg2 == NULL) { | |
25247 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25248 | SWIG_fail; | |
25249 | } | |
25250 | if (obj2) { | |
25251 | arg3 = (bool) SWIG_AsBool(obj2); | |
25252 | if (PyErr_Occurred()) SWIG_fail; | |
25253 | } | |
25254 | { | |
25255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25256 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25257 | ||
25258 | wxPyEndAllowThreads(__tstate); | |
25259 | if (PyErr_Occurred()) SWIG_fail; | |
25260 | } | |
25261 | Py_INCREF(Py_None); resultobj = Py_None; | |
25262 | return resultobj; | |
25263 | fail: | |
25264 | return NULL; | |
25265 | } | |
25266 | ||
25267 | ||
25268 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25269 | PyObject *resultobj; | |
25270 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25271 | wxTreeItemId *arg2 = 0 ; | |
25272 | bool arg3 = (bool) True ; | |
25273 | PyObject * obj0 = 0 ; | |
25274 | PyObject * obj1 = 0 ; | |
25275 | PyObject * obj2 = 0 ; | |
25276 | char *kwnames[] = { | |
25277 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25283 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25284 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25285 | SWIG_fail; | |
25286 | if (arg2 == NULL) { | |
25287 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25288 | SWIG_fail; | |
25289 | } | |
25290 | if (obj2) { | |
25291 | arg3 = (bool) SWIG_AsBool(obj2); | |
25292 | if (PyErr_Occurred()) SWIG_fail; | |
25293 | } | |
25294 | { | |
25295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25296 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25297 | ||
25298 | wxPyEndAllowThreads(__tstate); | |
25299 | if (PyErr_Occurred()) SWIG_fail; | |
25300 | } | |
25301 | Py_INCREF(Py_None); resultobj = Py_None; | |
25302 | return resultobj; | |
25303 | fail: | |
25304 | return NULL; | |
25305 | } | |
25306 | ||
25307 | ||
25308 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25309 | PyObject *resultobj; | |
25310 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25311 | wxTreeItemId *arg2 = 0 ; | |
25312 | bool arg3 = (bool) True ; | |
25313 | PyObject * obj0 = 0 ; | |
25314 | PyObject * obj1 = 0 ; | |
25315 | PyObject * obj2 = 0 ; | |
25316 | char *kwnames[] = { | |
25317 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
25318 | }; | |
25319 | ||
25320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25323 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25324 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25325 | SWIG_fail; | |
25326 | if (arg2 == NULL) { | |
25327 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25328 | SWIG_fail; | |
25329 | } | |
25330 | if (obj2) { | |
25331 | arg3 = (bool) SWIG_AsBool(obj2); | |
25332 | if (PyErr_Occurred()) SWIG_fail; | |
25333 | } | |
25334 | { | |
25335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25336 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
25337 | ||
25338 | wxPyEndAllowThreads(__tstate); | |
25339 | if (PyErr_Occurred()) SWIG_fail; | |
25340 | } | |
25341 | Py_INCREF(Py_None); resultobj = Py_None; | |
25342 | return resultobj; | |
25343 | fail: | |
25344 | return NULL; | |
25345 | } | |
25346 | ||
25347 | ||
25348 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25349 | PyObject *resultobj; | |
25350 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25351 | wxTreeItemId *arg2 = 0 ; | |
25352 | wxColour *arg3 = 0 ; | |
25353 | wxColour temp3 ; | |
25354 | PyObject * obj0 = 0 ; | |
25355 | PyObject * obj1 = 0 ; | |
25356 | PyObject * obj2 = 0 ; | |
25357 | char *kwnames[] = { | |
25358 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25359 | }; | |
25360 | ||
25361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25364 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25365 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25366 | SWIG_fail; | |
25367 | if (arg2 == NULL) { | |
25368 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25369 | SWIG_fail; | |
25370 | } | |
25371 | { | |
25372 | arg3 = &temp3; | |
25373 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25374 | } | |
25375 | { | |
25376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25377 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25378 | ||
25379 | wxPyEndAllowThreads(__tstate); | |
25380 | if (PyErr_Occurred()) SWIG_fail; | |
25381 | } | |
25382 | Py_INCREF(Py_None); resultobj = Py_None; | |
25383 | return resultobj; | |
25384 | fail: | |
25385 | return NULL; | |
25386 | } | |
25387 | ||
25388 | ||
25389 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25390 | PyObject *resultobj; | |
25391 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25392 | wxTreeItemId *arg2 = 0 ; | |
25393 | wxColour *arg3 = 0 ; | |
25394 | wxColour temp3 ; | |
25395 | PyObject * obj0 = 0 ; | |
25396 | PyObject * obj1 = 0 ; | |
25397 | PyObject * obj2 = 0 ; | |
25398 | char *kwnames[] = { | |
25399 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25400 | }; | |
25401 | ||
25402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25405 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25406 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25407 | SWIG_fail; | |
25408 | if (arg2 == NULL) { | |
25409 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25410 | SWIG_fail; | |
25411 | } | |
25412 | { | |
25413 | arg3 = &temp3; | |
25414 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25415 | } | |
25416 | { | |
25417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25418 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25419 | ||
25420 | wxPyEndAllowThreads(__tstate); | |
25421 | if (PyErr_Occurred()) SWIG_fail; | |
25422 | } | |
25423 | Py_INCREF(Py_None); resultobj = Py_None; | |
25424 | return resultobj; | |
25425 | fail: | |
25426 | return NULL; | |
25427 | } | |
25428 | ||
25429 | ||
25430 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25431 | PyObject *resultobj; | |
25432 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25433 | wxTreeItemId *arg2 = 0 ; | |
25434 | wxFont *arg3 = 0 ; | |
25435 | PyObject * obj0 = 0 ; | |
25436 | PyObject * obj1 = 0 ; | |
25437 | PyObject * obj2 = 0 ; | |
25438 | char *kwnames[] = { | |
25439 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25440 | }; | |
25441 | ||
25442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25445 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25446 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25447 | SWIG_fail; | |
25448 | if (arg2 == NULL) { | |
25449 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25450 | SWIG_fail; | |
25451 | } | |
25452 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
25453 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25454 | SWIG_fail; | |
25455 | if (arg3 == NULL) { | |
25456 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25457 | SWIG_fail; | |
25458 | } | |
25459 | { | |
25460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25461 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25462 | ||
25463 | wxPyEndAllowThreads(__tstate); | |
25464 | if (PyErr_Occurred()) SWIG_fail; | |
25465 | } | |
25466 | Py_INCREF(Py_None); resultobj = Py_None; | |
25467 | return resultobj; | |
25468 | fail: | |
25469 | return NULL; | |
25470 | } | |
25471 | ||
25472 | ||
25473 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25474 | PyObject *resultobj; | |
25475 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25476 | wxTreeItemId *arg2 = 0 ; | |
25477 | bool result; | |
25478 | PyObject * obj0 = 0 ; | |
25479 | PyObject * obj1 = 0 ; | |
25480 | char *kwnames[] = { | |
25481 | (char *) "self",(char *) "item", NULL | |
25482 | }; | |
25483 | ||
25484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
25485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25489 | SWIG_fail; | |
25490 | if (arg2 == NULL) { | |
25491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25492 | SWIG_fail; | |
25493 | } | |
25494 | { | |
25495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25496 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25497 | ||
25498 | wxPyEndAllowThreads(__tstate); | |
25499 | if (PyErr_Occurred()) SWIG_fail; | |
25500 | } | |
25501 | { | |
25502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25503 | } | |
25504 | return resultobj; | |
25505 | fail: | |
25506 | return NULL; | |
25507 | } | |
25508 | ||
25509 | ||
25510 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25511 | PyObject *resultobj; | |
25512 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25513 | wxTreeItemId *arg2 = 0 ; | |
25514 | bool result; | |
25515 | PyObject * obj0 = 0 ; | |
25516 | PyObject * obj1 = 0 ; | |
25517 | char *kwnames[] = { | |
25518 | (char *) "self",(char *) "item", NULL | |
25519 | }; | |
25520 | ||
25521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
25522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25524 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25525 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25526 | SWIG_fail; | |
25527 | if (arg2 == NULL) { | |
25528 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25529 | SWIG_fail; | |
25530 | } | |
25531 | { | |
25532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25533 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25534 | ||
25535 | wxPyEndAllowThreads(__tstate); | |
25536 | if (PyErr_Occurred()) SWIG_fail; | |
25537 | } | |
25538 | { | |
25539 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25540 | } | |
25541 | return resultobj; | |
25542 | fail: | |
25543 | return NULL; | |
25544 | } | |
25545 | ||
25546 | ||
25547 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25548 | PyObject *resultobj; | |
25549 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25550 | wxTreeItemId *arg2 = 0 ; | |
25551 | bool result; | |
25552 | PyObject * obj0 = 0 ; | |
25553 | PyObject * obj1 = 0 ; | |
25554 | char *kwnames[] = { | |
25555 | (char *) "self",(char *) "item", NULL | |
25556 | }; | |
25557 | ||
25558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
25559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25563 | SWIG_fail; | |
25564 | if (arg2 == NULL) { | |
25565 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25566 | SWIG_fail; | |
25567 | } | |
25568 | { | |
25569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25570 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25571 | ||
25572 | wxPyEndAllowThreads(__tstate); | |
25573 | if (PyErr_Occurred()) SWIG_fail; | |
25574 | } | |
25575 | { | |
25576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25577 | } | |
25578 | return resultobj; | |
25579 | fail: | |
25580 | return NULL; | |
25581 | } | |
25582 | ||
25583 | ||
25584 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25585 | PyObject *resultobj; | |
25586 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25587 | wxTreeItemId *arg2 = 0 ; | |
25588 | bool result; | |
25589 | PyObject * obj0 = 0 ; | |
25590 | PyObject * obj1 = 0 ; | |
25591 | char *kwnames[] = { | |
25592 | (char *) "self",(char *) "item", NULL | |
25593 | }; | |
25594 | ||
25595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
25596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25600 | SWIG_fail; | |
25601 | if (arg2 == NULL) { | |
25602 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25603 | SWIG_fail; | |
25604 | } | |
25605 | { | |
25606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25607 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25608 | ||
25609 | wxPyEndAllowThreads(__tstate); | |
25610 | if (PyErr_Occurred()) SWIG_fail; | |
25611 | } | |
25612 | { | |
25613 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25614 | } | |
25615 | return resultobj; | |
25616 | fail: | |
25617 | return NULL; | |
25618 | } | |
25619 | ||
25620 | ||
25621 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25622 | PyObject *resultobj; | |
25623 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25624 | wxTreeItemId *arg2 = 0 ; | |
25625 | bool result; | |
25626 | PyObject * obj0 = 0 ; | |
25627 | PyObject * obj1 = 0 ; | |
25628 | char *kwnames[] = { | |
25629 | (char *) "self",(char *) "item", NULL | |
25630 | }; | |
25631 | ||
25632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
25633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25635 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25636 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25637 | SWIG_fail; | |
25638 | if (arg2 == NULL) { | |
25639 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25640 | SWIG_fail; | |
25641 | } | |
25642 | { | |
25643 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25644 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25645 | ||
25646 | wxPyEndAllowThreads(__tstate); | |
25647 | if (PyErr_Occurred()) SWIG_fail; | |
25648 | } | |
25649 | { | |
25650 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25651 | } | |
25652 | return resultobj; | |
25653 | fail: | |
25654 | return NULL; | |
25655 | } | |
25656 | ||
25657 | ||
25658 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25659 | PyObject *resultobj; | |
25660 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25661 | wxTreeItemId *arg2 = 0 ; | |
25662 | bool arg3 = (bool) True ; | |
25663 | size_t result; | |
25664 | PyObject * obj0 = 0 ; | |
25665 | PyObject * obj1 = 0 ; | |
25666 | PyObject * obj2 = 0 ; | |
25667 | char *kwnames[] = { | |
25668 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25669 | }; | |
25670 | ||
25671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25675 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25676 | SWIG_fail; | |
25677 | if (arg2 == NULL) { | |
25678 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25679 | SWIG_fail; | |
25680 | } | |
25681 | if (obj2) { | |
25682 | arg3 = (bool) SWIG_AsBool(obj2); | |
25683 | if (PyErr_Occurred()) SWIG_fail; | |
25684 | } | |
25685 | { | |
25686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25687 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25688 | ||
25689 | wxPyEndAllowThreads(__tstate); | |
25690 | if (PyErr_Occurred()) SWIG_fail; | |
25691 | } | |
25692 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25693 | return resultobj; | |
25694 | fail: | |
25695 | return NULL; | |
25696 | } | |
25697 | ||
25698 | ||
25699 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25700 | PyObject *resultobj; | |
25701 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25702 | wxTreeItemId result; | |
25703 | PyObject * obj0 = 0 ; | |
25704 | char *kwnames[] = { | |
25705 | (char *) "self", NULL | |
25706 | }; | |
25707 | ||
25708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
25709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25711 | { | |
25712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25713 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25714 | ||
25715 | wxPyEndAllowThreads(__tstate); | |
25716 | if (PyErr_Occurred()) SWIG_fail; | |
25717 | } | |
25718 | { | |
25719 | wxTreeItemId * resultptr; | |
25720 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25722 | } | |
25723 | return resultobj; | |
25724 | fail: | |
25725 | return NULL; | |
25726 | } | |
25727 | ||
25728 | ||
25729 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25730 | PyObject *resultobj; | |
25731 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25732 | wxTreeItemId result; | |
25733 | PyObject * obj0 = 0 ; | |
25734 | char *kwnames[] = { | |
25735 | (char *) "self", NULL | |
25736 | }; | |
25737 | ||
25738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
25739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25744 | ||
25745 | wxPyEndAllowThreads(__tstate); | |
25746 | if (PyErr_Occurred()) SWIG_fail; | |
25747 | } | |
25748 | { | |
25749 | wxTreeItemId * resultptr; | |
25750 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25752 | } | |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
25759 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25760 | PyObject *resultobj; | |
25761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25762 | PyObject *result; | |
25763 | PyObject * obj0 = 0 ; | |
25764 | char *kwnames[] = { | |
25765 | (char *) "self", NULL | |
25766 | }; | |
25767 | ||
25768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
25769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25771 | { | |
25772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25773 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25774 | ||
25775 | wxPyEndAllowThreads(__tstate); | |
25776 | if (PyErr_Occurred()) SWIG_fail; | |
25777 | } | |
25778 | resultobj = result; | |
25779 | return resultobj; | |
25780 | fail: | |
25781 | return NULL; | |
25782 | } | |
25783 | ||
25784 | ||
25785 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25786 | PyObject *resultobj; | |
25787 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25788 | wxTreeItemId *arg2 = 0 ; | |
25789 | wxTreeItemId result; | |
25790 | PyObject * obj0 = 0 ; | |
25791 | PyObject * obj1 = 0 ; | |
25792 | char *kwnames[] = { | |
25793 | (char *) "self",(char *) "item", NULL | |
25794 | }; | |
25795 | ||
25796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
25797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25800 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25801 | SWIG_fail; | |
25802 | if (arg2 == NULL) { | |
25803 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25804 | SWIG_fail; | |
25805 | } | |
25806 | { | |
25807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25808 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25809 | ||
25810 | wxPyEndAllowThreads(__tstate); | |
25811 | if (PyErr_Occurred()) SWIG_fail; | |
25812 | } | |
25813 | { | |
25814 | wxTreeItemId * resultptr; | |
25815 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25816 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25817 | } | |
25818 | return resultobj; | |
25819 | fail: | |
25820 | return NULL; | |
25821 | } | |
25822 | ||
25823 | ||
25824 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25825 | PyObject *resultobj; | |
25826 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25827 | wxTreeItemId *arg2 = 0 ; | |
25828 | PyObject *result; | |
25829 | PyObject * obj0 = 0 ; | |
25830 | PyObject * obj1 = 0 ; | |
25831 | char *kwnames[] = { | |
25832 | (char *) "self",(char *) "item", NULL | |
25833 | }; | |
25834 | ||
25835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
25836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25838 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25840 | SWIG_fail; | |
25841 | if (arg2 == NULL) { | |
25842 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25843 | SWIG_fail; | |
25844 | } | |
25845 | { | |
25846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25847 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25848 | ||
25849 | wxPyEndAllowThreads(__tstate); | |
25850 | if (PyErr_Occurred()) SWIG_fail; | |
25851 | } | |
25852 | resultobj = result; | |
25853 | return resultobj; | |
25854 | fail: | |
25855 | return NULL; | |
25856 | } | |
25857 | ||
25858 | ||
25859 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25860 | PyObject *resultobj; | |
25861 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25862 | wxTreeItemId *arg2 = 0 ; | |
25863 | void *arg3 = (void *) 0 ; | |
25864 | PyObject *result; | |
25865 | PyObject * obj0 = 0 ; | |
25866 | PyObject * obj1 = 0 ; | |
25867 | PyObject * obj2 = 0 ; | |
25868 | char *kwnames[] = { | |
25869 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25870 | }; | |
25871 | ||
25872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25876 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25877 | SWIG_fail; | |
25878 | if (arg2 == NULL) { | |
25879 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25880 | SWIG_fail; | |
25881 | } | |
25882 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25883 | { | |
25884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25885 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25886 | ||
25887 | wxPyEndAllowThreads(__tstate); | |
25888 | if (PyErr_Occurred()) SWIG_fail; | |
25889 | } | |
25890 | resultobj = result; | |
25891 | return resultobj; | |
25892 | fail: | |
25893 | return NULL; | |
25894 | } | |
25895 | ||
25896 | ||
25897 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25898 | PyObject *resultobj; | |
25899 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25900 | wxTreeItemId *arg2 = 0 ; | |
25901 | wxTreeItemId result; | |
25902 | PyObject * obj0 = 0 ; | |
25903 | PyObject * obj1 = 0 ; | |
25904 | char *kwnames[] = { | |
25905 | (char *) "self",(char *) "item", NULL | |
25906 | }; | |
25907 | ||
25908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
25909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25911 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25912 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25913 | SWIG_fail; | |
25914 | if (arg2 == NULL) { | |
25915 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25916 | SWIG_fail; | |
25917 | } | |
25918 | { | |
25919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25920 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25921 | ||
25922 | wxPyEndAllowThreads(__tstate); | |
25923 | if (PyErr_Occurred()) SWIG_fail; | |
25924 | } | |
25925 | { | |
25926 | wxTreeItemId * resultptr; | |
25927 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25928 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25929 | } | |
25930 | return resultobj; | |
25931 | fail: | |
25932 | return NULL; | |
25933 | } | |
25934 | ||
25935 | ||
25936 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25937 | PyObject *resultobj; | |
25938 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25939 | wxTreeItemId *arg2 = 0 ; | |
25940 | wxTreeItemId result; | |
25941 | PyObject * obj0 = 0 ; | |
25942 | PyObject * obj1 = 0 ; | |
25943 | char *kwnames[] = { | |
25944 | (char *) "self",(char *) "item", NULL | |
25945 | }; | |
25946 | ||
25947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
25948 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25952 | SWIG_fail; | |
25953 | if (arg2 == NULL) { | |
25954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25955 | SWIG_fail; | |
25956 | } | |
25957 | { | |
25958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25959 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25960 | ||
25961 | wxPyEndAllowThreads(__tstate); | |
25962 | if (PyErr_Occurred()) SWIG_fail; | |
25963 | } | |
25964 | { | |
25965 | wxTreeItemId * resultptr; | |
25966 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
25967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
25968 | } | |
25969 | return resultobj; | |
25970 | fail: | |
25971 | return NULL; | |
25972 | } | |
25973 | ||
25974 | ||
25975 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25976 | PyObject *resultobj; | |
25977 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25978 | wxTreeItemId *arg2 = 0 ; | |
25979 | wxTreeItemId result; | |
25980 | PyObject * obj0 = 0 ; | |
25981 | PyObject * obj1 = 0 ; | |
25982 | char *kwnames[] = { | |
25983 | (char *) "self",(char *) "item", NULL | |
25984 | }; | |
25985 | ||
25986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
25987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25991 | SWIG_fail; | |
25992 | if (arg2 == NULL) { | |
25993 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25994 | SWIG_fail; | |
25995 | } | |
25996 | { | |
25997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25998 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25999 | ||
26000 | wxPyEndAllowThreads(__tstate); | |
26001 | if (PyErr_Occurred()) SWIG_fail; | |
26002 | } | |
26003 | { | |
26004 | wxTreeItemId * resultptr; | |
26005 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26006 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26007 | } | |
26008 | return resultobj; | |
26009 | fail: | |
26010 | return NULL; | |
26011 | } | |
26012 | ||
26013 | ||
26014 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26015 | PyObject *resultobj; | |
26016 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26017 | wxTreeItemId result; | |
26018 | PyObject * obj0 = 0 ; | |
26019 | char *kwnames[] = { | |
26020 | (char *) "self", NULL | |
26021 | }; | |
26022 | ||
26023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
26024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26026 | { | |
26027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26028 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26029 | ||
26030 | wxPyEndAllowThreads(__tstate); | |
26031 | if (PyErr_Occurred()) SWIG_fail; | |
26032 | } | |
26033 | { | |
26034 | wxTreeItemId * resultptr; | |
26035 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26036 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26037 | } | |
26038 | return resultobj; | |
26039 | fail: | |
26040 | return NULL; | |
26041 | } | |
26042 | ||
26043 | ||
26044 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26045 | PyObject *resultobj; | |
26046 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26047 | wxTreeItemId *arg2 = 0 ; | |
26048 | wxTreeItemId result; | |
26049 | PyObject * obj0 = 0 ; | |
26050 | PyObject * obj1 = 0 ; | |
26051 | char *kwnames[] = { | |
26052 | (char *) "self",(char *) "item", NULL | |
26053 | }; | |
26054 | ||
26055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
26056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26058 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26059 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26060 | SWIG_fail; | |
26061 | if (arg2 == NULL) { | |
26062 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26063 | SWIG_fail; | |
26064 | } | |
26065 | { | |
26066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26067 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26068 | ||
26069 | wxPyEndAllowThreads(__tstate); | |
26070 | if (PyErr_Occurred()) SWIG_fail; | |
26071 | } | |
26072 | { | |
26073 | wxTreeItemId * resultptr; | |
26074 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26075 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26076 | } | |
26077 | return resultobj; | |
26078 | fail: | |
26079 | return NULL; | |
26080 | } | |
26081 | ||
26082 | ||
26083 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26084 | PyObject *resultobj; | |
26085 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26086 | wxTreeItemId *arg2 = 0 ; | |
26087 | wxTreeItemId result; | |
26088 | PyObject * obj0 = 0 ; | |
26089 | PyObject * obj1 = 0 ; | |
26090 | char *kwnames[] = { | |
26091 | (char *) "self",(char *) "item", NULL | |
26092 | }; | |
26093 | ||
26094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
26095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26099 | SWIG_fail; | |
26100 | if (arg2 == NULL) { | |
26101 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26102 | SWIG_fail; | |
26103 | } | |
26104 | { | |
26105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26106 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26107 | ||
26108 | wxPyEndAllowThreads(__tstate); | |
26109 | if (PyErr_Occurred()) SWIG_fail; | |
26110 | } | |
26111 | { | |
26112 | wxTreeItemId * resultptr; | |
26113 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26115 | } | |
26116 | return resultobj; | |
26117 | fail: | |
26118 | return NULL; | |
26119 | } | |
26120 | ||
26121 | ||
26122 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26123 | PyObject *resultobj; | |
26124 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26125 | wxString *arg2 = 0 ; | |
26126 | int arg3 = (int) -1 ; | |
26127 | int arg4 = (int) -1 ; | |
26128 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26129 | wxTreeItemId result; | |
26130 | bool temp2 = False ; | |
26131 | PyObject * obj0 = 0 ; | |
26132 | PyObject * obj1 = 0 ; | |
26133 | PyObject * obj2 = 0 ; | |
26134 | PyObject * obj3 = 0 ; | |
26135 | PyObject * obj4 = 0 ; | |
26136 | char *kwnames[] = { | |
26137 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26138 | }; | |
26139 | ||
26140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26143 | { | |
26144 | arg2 = wxString_in_helper(obj1); | |
26145 | if (arg2 == NULL) SWIG_fail; | |
26146 | temp2 = True; | |
26147 | } | |
26148 | if (obj2) { | |
26149 | arg3 = (int) SWIG_AsInt(obj2); | |
26150 | if (PyErr_Occurred()) SWIG_fail; | |
26151 | } | |
26152 | if (obj3) { | |
26153 | arg4 = (int) SWIG_AsInt(obj3); | |
26154 | if (PyErr_Occurred()) SWIG_fail; | |
26155 | } | |
26156 | if (obj4) { | |
26157 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
26158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26159 | } | |
26160 | { | |
26161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26162 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26163 | ||
26164 | wxPyEndAllowThreads(__tstate); | |
26165 | if (PyErr_Occurred()) SWIG_fail; | |
26166 | } | |
26167 | { | |
26168 | wxTreeItemId * resultptr; | |
26169 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26170 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26171 | } | |
26172 | { | |
26173 | if (temp2) | |
26174 | delete arg2; | |
26175 | } | |
26176 | return resultobj; | |
26177 | fail: | |
26178 | { | |
26179 | if (temp2) | |
26180 | delete arg2; | |
26181 | } | |
26182 | return NULL; | |
26183 | } | |
26184 | ||
26185 | ||
26186 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26187 | PyObject *resultobj; | |
26188 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26189 | wxTreeItemId *arg2 = 0 ; | |
26190 | wxString *arg3 = 0 ; | |
26191 | int arg4 = (int) -1 ; | |
26192 | int arg5 = (int) -1 ; | |
26193 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26194 | wxTreeItemId result; | |
26195 | bool temp3 = False ; | |
26196 | PyObject * obj0 = 0 ; | |
26197 | PyObject * obj1 = 0 ; | |
26198 | PyObject * obj2 = 0 ; | |
26199 | PyObject * obj3 = 0 ; | |
26200 | PyObject * obj4 = 0 ; | |
26201 | PyObject * obj5 = 0 ; | |
26202 | char *kwnames[] = { | |
26203 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26204 | }; | |
26205 | ||
26206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26210 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26211 | SWIG_fail; | |
26212 | if (arg2 == NULL) { | |
26213 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26214 | SWIG_fail; | |
26215 | } | |
26216 | { | |
26217 | arg3 = wxString_in_helper(obj2); | |
26218 | if (arg3 == NULL) SWIG_fail; | |
26219 | temp3 = True; | |
26220 | } | |
26221 | if (obj3) { | |
26222 | arg4 = (int) SWIG_AsInt(obj3); | |
26223 | if (PyErr_Occurred()) SWIG_fail; | |
26224 | } | |
26225 | if (obj4) { | |
26226 | arg5 = (int) SWIG_AsInt(obj4); | |
26227 | if (PyErr_Occurred()) SWIG_fail; | |
26228 | } | |
26229 | if (obj5) { | |
26230 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
26231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26232 | } | |
26233 | { | |
26234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26235 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26236 | ||
26237 | wxPyEndAllowThreads(__tstate); | |
26238 | if (PyErr_Occurred()) SWIG_fail; | |
26239 | } | |
26240 | { | |
26241 | wxTreeItemId * resultptr; | |
26242 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26243 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26244 | } | |
26245 | { | |
26246 | if (temp3) | |
26247 | delete arg3; | |
26248 | } | |
26249 | return resultobj; | |
26250 | fail: | |
26251 | { | |
26252 | if (temp3) | |
26253 | delete arg3; | |
26254 | } | |
26255 | return NULL; | |
26256 | } | |
26257 | ||
26258 | ||
26259 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26260 | PyObject *resultobj; | |
26261 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26262 | wxTreeItemId *arg2 = 0 ; | |
26263 | wxTreeItemId *arg3 = 0 ; | |
26264 | wxString *arg4 = 0 ; | |
26265 | int arg5 = (int) -1 ; | |
26266 | int arg6 = (int) -1 ; | |
26267 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26268 | wxTreeItemId result; | |
26269 | bool temp4 = False ; | |
26270 | PyObject * obj0 = 0 ; | |
26271 | PyObject * obj1 = 0 ; | |
26272 | PyObject * obj2 = 0 ; | |
26273 | PyObject * obj3 = 0 ; | |
26274 | PyObject * obj4 = 0 ; | |
26275 | PyObject * obj5 = 0 ; | |
26276 | PyObject * obj6 = 0 ; | |
26277 | char *kwnames[] = { | |
26278 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26279 | }; | |
26280 | ||
26281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26285 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26286 | SWIG_fail; | |
26287 | if (arg2 == NULL) { | |
26288 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26289 | SWIG_fail; | |
26290 | } | |
26291 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
26292 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26293 | SWIG_fail; | |
26294 | if (arg3 == NULL) { | |
26295 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26296 | SWIG_fail; | |
26297 | } | |
26298 | { | |
26299 | arg4 = wxString_in_helper(obj3); | |
26300 | if (arg4 == NULL) SWIG_fail; | |
26301 | temp4 = True; | |
26302 | } | |
26303 | if (obj4) { | |
26304 | arg5 = (int) SWIG_AsInt(obj4); | |
26305 | if (PyErr_Occurred()) SWIG_fail; | |
26306 | } | |
26307 | if (obj5) { | |
26308 | arg6 = (int) SWIG_AsInt(obj5); | |
26309 | if (PyErr_Occurred()) SWIG_fail; | |
26310 | } | |
26311 | if (obj6) { | |
26312 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
26313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26314 | } | |
26315 | { | |
26316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26317 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26318 | ||
26319 | wxPyEndAllowThreads(__tstate); | |
26320 | if (PyErr_Occurred()) SWIG_fail; | |
26321 | } | |
26322 | { | |
26323 | wxTreeItemId * resultptr; | |
26324 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26325 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26326 | } | |
26327 | { | |
26328 | if (temp4) | |
26329 | delete arg4; | |
26330 | } | |
26331 | return resultobj; | |
26332 | fail: | |
26333 | { | |
26334 | if (temp4) | |
26335 | delete arg4; | |
26336 | } | |
26337 | return NULL; | |
26338 | } | |
26339 | ||
26340 | ||
26341 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26342 | PyObject *resultobj; | |
26343 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26344 | wxTreeItemId *arg2 = 0 ; | |
26345 | size_t arg3 ; | |
26346 | wxString *arg4 = 0 ; | |
26347 | int arg5 = (int) -1 ; | |
26348 | int arg6 = (int) -1 ; | |
26349 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26350 | wxTreeItemId result; | |
26351 | bool temp4 = False ; | |
26352 | PyObject * obj0 = 0 ; | |
26353 | PyObject * obj1 = 0 ; | |
26354 | PyObject * obj2 = 0 ; | |
26355 | PyObject * obj3 = 0 ; | |
26356 | PyObject * obj4 = 0 ; | |
26357 | PyObject * obj5 = 0 ; | |
26358 | PyObject * obj6 = 0 ; | |
26359 | char *kwnames[] = { | |
26360 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26361 | }; | |
26362 | ||
26363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
26364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26366 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26367 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26368 | SWIG_fail; | |
26369 | if (arg2 == NULL) { | |
26370 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26371 | SWIG_fail; | |
26372 | } | |
26373 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
26374 | if (PyErr_Occurred()) SWIG_fail; | |
26375 | { | |
26376 | arg4 = wxString_in_helper(obj3); | |
26377 | if (arg4 == NULL) SWIG_fail; | |
26378 | temp4 = True; | |
26379 | } | |
26380 | if (obj4) { | |
26381 | arg5 = (int) SWIG_AsInt(obj4); | |
26382 | if (PyErr_Occurred()) SWIG_fail; | |
26383 | } | |
26384 | if (obj5) { | |
26385 | arg6 = (int) SWIG_AsInt(obj5); | |
26386 | if (PyErr_Occurred()) SWIG_fail; | |
26387 | } | |
26388 | if (obj6) { | |
26389 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26391 | } | |
26392 | { | |
26393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26394 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26395 | ||
26396 | wxPyEndAllowThreads(__tstate); | |
26397 | if (PyErr_Occurred()) SWIG_fail; | |
26398 | } | |
26399 | { | |
26400 | wxTreeItemId * resultptr; | |
26401 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26402 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26403 | } | |
26404 | { | |
26405 | if (temp4) | |
26406 | delete arg4; | |
26407 | } | |
26408 | return resultobj; | |
26409 | fail: | |
26410 | { | |
26411 | if (temp4) | |
26412 | delete arg4; | |
26413 | } | |
26414 | return NULL; | |
26415 | } | |
26416 | ||
26417 | ||
26418 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26419 | PyObject *resultobj; | |
26420 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26421 | wxTreeItemId *arg2 = 0 ; | |
26422 | wxString *arg3 = 0 ; | |
26423 | int arg4 = (int) -1 ; | |
26424 | int arg5 = (int) -1 ; | |
26425 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26426 | wxTreeItemId result; | |
26427 | bool temp3 = False ; | |
26428 | PyObject * obj0 = 0 ; | |
26429 | PyObject * obj1 = 0 ; | |
26430 | PyObject * obj2 = 0 ; | |
26431 | PyObject * obj3 = 0 ; | |
26432 | PyObject * obj4 = 0 ; | |
26433 | PyObject * obj5 = 0 ; | |
26434 | char *kwnames[] = { | |
26435 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26436 | }; | |
26437 | ||
26438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26441 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26443 | SWIG_fail; | |
26444 | if (arg2 == NULL) { | |
26445 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26446 | SWIG_fail; | |
26447 | } | |
26448 | { | |
26449 | arg3 = wxString_in_helper(obj2); | |
26450 | if (arg3 == NULL) SWIG_fail; | |
26451 | temp3 = True; | |
26452 | } | |
26453 | if (obj3) { | |
26454 | arg4 = (int) SWIG_AsInt(obj3); | |
26455 | if (PyErr_Occurred()) SWIG_fail; | |
26456 | } | |
26457 | if (obj4) { | |
26458 | arg5 = (int) SWIG_AsInt(obj4); | |
26459 | if (PyErr_Occurred()) SWIG_fail; | |
26460 | } | |
26461 | if (obj5) { | |
26462 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
26463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26464 | } | |
26465 | { | |
26466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26467 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26468 | ||
26469 | wxPyEndAllowThreads(__tstate); | |
26470 | if (PyErr_Occurred()) SWIG_fail; | |
26471 | } | |
26472 | { | |
26473 | wxTreeItemId * resultptr; | |
26474 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26475 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26476 | } | |
26477 | { | |
26478 | if (temp3) | |
26479 | delete arg3; | |
26480 | } | |
26481 | return resultobj; | |
26482 | fail: | |
26483 | { | |
26484 | if (temp3) | |
26485 | delete arg3; | |
26486 | } | |
26487 | return NULL; | |
26488 | } | |
26489 | ||
26490 | ||
26491 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26492 | PyObject *resultobj; | |
26493 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26494 | wxTreeItemId *arg2 = 0 ; | |
26495 | PyObject * obj0 = 0 ; | |
26496 | PyObject * obj1 = 0 ; | |
26497 | char *kwnames[] = { | |
26498 | (char *) "self",(char *) "item", NULL | |
26499 | }; | |
26500 | ||
26501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
26502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26504 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26506 | SWIG_fail; | |
26507 | if (arg2 == NULL) { | |
26508 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26509 | SWIG_fail; | |
26510 | } | |
26511 | { | |
26512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26513 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26514 | ||
26515 | wxPyEndAllowThreads(__tstate); | |
26516 | if (PyErr_Occurred()) SWIG_fail; | |
26517 | } | |
26518 | Py_INCREF(Py_None); resultobj = Py_None; | |
26519 | return resultobj; | |
26520 | fail: | |
26521 | return NULL; | |
26522 | } | |
26523 | ||
26524 | ||
26525 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26526 | PyObject *resultobj; | |
26527 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26528 | wxTreeItemId *arg2 = 0 ; | |
26529 | PyObject * obj0 = 0 ; | |
26530 | PyObject * obj1 = 0 ; | |
26531 | char *kwnames[] = { | |
26532 | (char *) "self",(char *) "item", NULL | |
26533 | }; | |
26534 | ||
26535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
26536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26539 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26540 | SWIG_fail; | |
26541 | if (arg2 == NULL) { | |
26542 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26543 | SWIG_fail; | |
26544 | } | |
26545 | { | |
26546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26547 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
26548 | ||
26549 | wxPyEndAllowThreads(__tstate); | |
26550 | if (PyErr_Occurred()) SWIG_fail; | |
26551 | } | |
26552 | Py_INCREF(Py_None); resultobj = Py_None; | |
26553 | return resultobj; | |
26554 | fail: | |
26555 | return NULL; | |
26556 | } | |
26557 | ||
26558 | ||
26559 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26560 | PyObject *resultobj; | |
26561 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26562 | PyObject * obj0 = 0 ; | |
26563 | char *kwnames[] = { | |
26564 | (char *) "self", NULL | |
26565 | }; | |
26566 | ||
26567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
26568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26570 | { | |
26571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26572 | (arg1)->DeleteAllItems(); | |
26573 | ||
26574 | wxPyEndAllowThreads(__tstate); | |
26575 | if (PyErr_Occurred()) SWIG_fail; | |
26576 | } | |
26577 | Py_INCREF(Py_None); resultobj = Py_None; | |
26578 | return resultobj; | |
26579 | fail: | |
26580 | return NULL; | |
26581 | } | |
26582 | ||
26583 | ||
26584 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26585 | PyObject *resultobj; | |
26586 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26587 | wxTreeItemId *arg2 = 0 ; | |
26588 | PyObject * obj0 = 0 ; | |
26589 | PyObject * obj1 = 0 ; | |
26590 | char *kwnames[] = { | |
26591 | (char *) "self",(char *) "item", NULL | |
26592 | }; | |
26593 | ||
26594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
26595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26598 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26599 | SWIG_fail; | |
26600 | if (arg2 == NULL) { | |
26601 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26602 | SWIG_fail; | |
26603 | } | |
26604 | { | |
26605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26606 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
26607 | ||
26608 | wxPyEndAllowThreads(__tstate); | |
26609 | if (PyErr_Occurred()) SWIG_fail; | |
26610 | } | |
26611 | Py_INCREF(Py_None); resultobj = Py_None; | |
26612 | return resultobj; | |
26613 | fail: | |
26614 | return NULL; | |
26615 | } | |
26616 | ||
26617 | ||
26618 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26619 | PyObject *resultobj; | |
26620 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26621 | wxTreeItemId *arg2 = 0 ; | |
26622 | PyObject * obj0 = 0 ; | |
26623 | PyObject * obj1 = 0 ; | |
26624 | char *kwnames[] = { | |
26625 | (char *) "self",(char *) "item", NULL | |
26626 | }; | |
26627 | ||
26628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
26629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26631 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26632 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26633 | SWIG_fail; | |
26634 | if (arg2 == NULL) { | |
26635 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26636 | SWIG_fail; | |
26637 | } | |
26638 | { | |
26639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26640 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26641 | ||
26642 | wxPyEndAllowThreads(__tstate); | |
26643 | if (PyErr_Occurred()) SWIG_fail; | |
26644 | } | |
26645 | Py_INCREF(Py_None); resultobj = Py_None; | |
26646 | return resultobj; | |
26647 | fail: | |
26648 | return NULL; | |
26649 | } | |
26650 | ||
26651 | ||
26652 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26653 | PyObject *resultobj; | |
26654 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26655 | wxTreeItemId *arg2 = 0 ; | |
26656 | PyObject * obj0 = 0 ; | |
26657 | PyObject * obj1 = 0 ; | |
26658 | char *kwnames[] = { | |
26659 | (char *) "self",(char *) "item", NULL | |
26660 | }; | |
26661 | ||
26662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
26663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26667 | SWIG_fail; | |
26668 | if (arg2 == NULL) { | |
26669 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26670 | SWIG_fail; | |
26671 | } | |
26672 | { | |
26673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26674 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26675 | ||
26676 | wxPyEndAllowThreads(__tstate); | |
26677 | if (PyErr_Occurred()) SWIG_fail; | |
26678 | } | |
26679 | Py_INCREF(Py_None); resultobj = Py_None; | |
26680 | return resultobj; | |
26681 | fail: | |
26682 | return NULL; | |
26683 | } | |
26684 | ||
26685 | ||
26686 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26687 | PyObject *resultobj; | |
26688 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26689 | wxTreeItemId *arg2 = 0 ; | |
26690 | PyObject * obj0 = 0 ; | |
26691 | PyObject * obj1 = 0 ; | |
26692 | char *kwnames[] = { | |
26693 | (char *) "self",(char *) "item", NULL | |
26694 | }; | |
26695 | ||
26696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
26697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26701 | SWIG_fail; | |
26702 | if (arg2 == NULL) { | |
26703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26704 | SWIG_fail; | |
26705 | } | |
26706 | { | |
26707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26708 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26709 | ||
26710 | wxPyEndAllowThreads(__tstate); | |
26711 | if (PyErr_Occurred()) SWIG_fail; | |
26712 | } | |
26713 | Py_INCREF(Py_None); resultobj = Py_None; | |
26714 | return resultobj; | |
26715 | fail: | |
26716 | return NULL; | |
26717 | } | |
26718 | ||
26719 | ||
26720 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26721 | PyObject *resultobj; | |
26722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26723 | PyObject * obj0 = 0 ; | |
26724 | char *kwnames[] = { | |
26725 | (char *) "self", NULL | |
26726 | }; | |
26727 | ||
26728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
26729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26731 | { | |
26732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26733 | (arg1)->Unselect(); | |
26734 | ||
26735 | wxPyEndAllowThreads(__tstate); | |
26736 | if (PyErr_Occurred()) SWIG_fail; | |
26737 | } | |
26738 | Py_INCREF(Py_None); resultobj = Py_None; | |
26739 | return resultobj; | |
26740 | fail: | |
26741 | return NULL; | |
26742 | } | |
26743 | ||
26744 | ||
26745 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26746 | PyObject *resultobj; | |
26747 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26748 | wxTreeItemId *arg2 = 0 ; | |
26749 | PyObject * obj0 = 0 ; | |
26750 | PyObject * obj1 = 0 ; | |
26751 | char *kwnames[] = { | |
26752 | (char *) "self",(char *) "item", NULL | |
26753 | }; | |
26754 | ||
26755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
26756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26760 | SWIG_fail; | |
26761 | if (arg2 == NULL) { | |
26762 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26763 | SWIG_fail; | |
26764 | } | |
26765 | { | |
26766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26767 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26768 | ||
26769 | wxPyEndAllowThreads(__tstate); | |
26770 | if (PyErr_Occurred()) SWIG_fail; | |
26771 | } | |
26772 | Py_INCREF(Py_None); resultobj = Py_None; | |
26773 | return resultobj; | |
26774 | fail: | |
26775 | return NULL; | |
26776 | } | |
26777 | ||
26778 | ||
26779 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26780 | PyObject *resultobj; | |
26781 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26782 | PyObject * obj0 = 0 ; | |
26783 | char *kwnames[] = { | |
26784 | (char *) "self", NULL | |
26785 | }; | |
26786 | ||
26787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
26788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26790 | { | |
26791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26792 | (arg1)->UnselectAll(); | |
26793 | ||
26794 | wxPyEndAllowThreads(__tstate); | |
26795 | if (PyErr_Occurred()) SWIG_fail; | |
26796 | } | |
26797 | Py_INCREF(Py_None); resultobj = Py_None; | |
26798 | return resultobj; | |
26799 | fail: | |
26800 | return NULL; | |
26801 | } | |
26802 | ||
26803 | ||
26804 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26805 | PyObject *resultobj; | |
26806 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26807 | wxTreeItemId *arg2 = 0 ; | |
26808 | bool arg3 = (bool) True ; | |
26809 | PyObject * obj0 = 0 ; | |
26810 | PyObject * obj1 = 0 ; | |
26811 | PyObject * obj2 = 0 ; | |
26812 | char *kwnames[] = { | |
26813 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26814 | }; | |
26815 | ||
26816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26819 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26820 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26821 | SWIG_fail; | |
26822 | if (arg2 == NULL) { | |
26823 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26824 | SWIG_fail; | |
26825 | } | |
26826 | if (obj2) { | |
26827 | arg3 = (bool) SWIG_AsBool(obj2); | |
26828 | if (PyErr_Occurred()) SWIG_fail; | |
26829 | } | |
26830 | { | |
26831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26832 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26833 | ||
26834 | wxPyEndAllowThreads(__tstate); | |
26835 | if (PyErr_Occurred()) SWIG_fail; | |
26836 | } | |
26837 | Py_INCREF(Py_None); resultobj = Py_None; | |
26838 | return resultobj; | |
26839 | fail: | |
26840 | return NULL; | |
26841 | } | |
26842 | ||
26843 | ||
26844 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26845 | PyObject *resultobj; | |
26846 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26847 | wxTreeItemId *arg2 = 0 ; | |
26848 | PyObject * obj0 = 0 ; | |
26849 | PyObject * obj1 = 0 ; | |
26850 | char *kwnames[] = { | |
26851 | (char *) "self",(char *) "item", NULL | |
26852 | }; | |
26853 | ||
26854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
26855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26859 | SWIG_fail; | |
26860 | if (arg2 == NULL) { | |
26861 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26862 | SWIG_fail; | |
26863 | } | |
26864 | { | |
26865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26866 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
26867 | ||
26868 | wxPyEndAllowThreads(__tstate); | |
26869 | if (PyErr_Occurred()) SWIG_fail; | |
26870 | } | |
26871 | Py_INCREF(Py_None); resultobj = Py_None; | |
26872 | return resultobj; | |
26873 | fail: | |
26874 | return NULL; | |
26875 | } | |
26876 | ||
26877 | ||
26878 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26879 | PyObject *resultobj; | |
26880 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26881 | wxTreeItemId *arg2 = 0 ; | |
26882 | PyObject * obj0 = 0 ; | |
26883 | PyObject * obj1 = 0 ; | |
26884 | char *kwnames[] = { | |
26885 | (char *) "self",(char *) "item", NULL | |
26886 | }; | |
26887 | ||
26888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
26889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26892 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26893 | SWIG_fail; | |
26894 | if (arg2 == NULL) { | |
26895 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26896 | SWIG_fail; | |
26897 | } | |
26898 | { | |
26899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26900 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26901 | ||
26902 | wxPyEndAllowThreads(__tstate); | |
26903 | if (PyErr_Occurred()) SWIG_fail; | |
26904 | } | |
26905 | Py_INCREF(Py_None); resultobj = Py_None; | |
26906 | return resultobj; | |
26907 | fail: | |
26908 | return NULL; | |
26909 | } | |
26910 | ||
26911 | ||
26912 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26913 | PyObject *resultobj; | |
26914 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26915 | wxTreeItemId *arg2 = 0 ; | |
26916 | PyObject * obj0 = 0 ; | |
26917 | PyObject * obj1 = 0 ; | |
26918 | char *kwnames[] = { | |
26919 | (char *) "self",(char *) "item", NULL | |
26920 | }; | |
26921 | ||
26922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
26923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26925 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26927 | SWIG_fail; | |
26928 | if (arg2 == NULL) { | |
26929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26930 | SWIG_fail; | |
26931 | } | |
26932 | { | |
26933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26934 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26935 | ||
26936 | wxPyEndAllowThreads(__tstate); | |
26937 | if (PyErr_Occurred()) SWIG_fail; | |
26938 | } | |
26939 | Py_INCREF(Py_None); resultobj = Py_None; | |
26940 | return resultobj; | |
26941 | fail: | |
26942 | return NULL; | |
26943 | } | |
26944 | ||
26945 | ||
26946 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26947 | PyObject *resultobj; | |
26948 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26949 | wxTreeItemId *arg2 = 0 ; | |
26950 | PyObject * obj0 = 0 ; | |
26951 | PyObject * obj1 = 0 ; | |
26952 | char *kwnames[] = { | |
26953 | (char *) "self",(char *) "item", NULL | |
26954 | }; | |
26955 | ||
26956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
26957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26961 | SWIG_fail; | |
26962 | if (arg2 == NULL) { | |
26963 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26964 | SWIG_fail; | |
26965 | } | |
26966 | { | |
26967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26968 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26969 | ||
26970 | wxPyEndAllowThreads(__tstate); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
26973 | Py_INCREF(Py_None); resultobj = Py_None; | |
26974 | return resultobj; | |
26975 | fail: | |
26976 | return NULL; | |
26977 | } | |
26978 | ||
26979 | ||
26980 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26981 | PyObject *resultobj; | |
26982 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26983 | wxTextCtrl *result; | |
26984 | PyObject * obj0 = 0 ; | |
26985 | char *kwnames[] = { | |
26986 | (char *) "self", NULL | |
26987 | }; | |
26988 | ||
26989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
26990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26992 | { | |
26993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26994 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26995 | ||
26996 | wxPyEndAllowThreads(__tstate); | |
26997 | if (PyErr_Occurred()) SWIG_fail; | |
26998 | } | |
26999 | { | |
27000 | resultobj = wxPyMake_wxObject(result); | |
27001 | } | |
27002 | return resultobj; | |
27003 | fail: | |
27004 | return NULL; | |
27005 | } | |
27006 | ||
27007 | ||
27008 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27009 | PyObject *resultobj; | |
27010 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27011 | wxTreeItemId *arg2 = 0 ; | |
27012 | bool arg3 = (bool) False ; | |
27013 | PyObject * obj0 = 0 ; | |
27014 | PyObject * obj1 = 0 ; | |
27015 | PyObject * obj2 = 0 ; | |
27016 | char *kwnames[] = { | |
27017 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
27018 | }; | |
27019 | ||
27020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27025 | SWIG_fail; | |
27026 | if (arg2 == NULL) { | |
27027 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27028 | SWIG_fail; | |
27029 | } | |
27030 | if (obj2) { | |
27031 | arg3 = (bool) SWIG_AsBool(obj2); | |
27032 | if (PyErr_Occurred()) SWIG_fail; | |
27033 | } | |
27034 | { | |
27035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27036 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
27037 | ||
27038 | wxPyEndAllowThreads(__tstate); | |
27039 | if (PyErr_Occurred()) SWIG_fail; | |
27040 | } | |
27041 | Py_INCREF(Py_None); resultobj = Py_None; | |
27042 | return resultobj; | |
27043 | fail: | |
27044 | return NULL; | |
27045 | } | |
27046 | ||
27047 | ||
27048 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27049 | PyObject *resultobj; | |
27050 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27051 | wxTreeItemId *arg2 = 0 ; | |
27052 | PyObject * obj0 = 0 ; | |
27053 | PyObject * obj1 = 0 ; | |
27054 | char *kwnames[] = { | |
27055 | (char *) "self",(char *) "item", NULL | |
27056 | }; | |
27057 | ||
27058 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
27059 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27060 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27061 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27062 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27063 | SWIG_fail; | |
27064 | if (arg2 == NULL) { | |
27065 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27066 | SWIG_fail; | |
27067 | } | |
27068 | { | |
27069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27070 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27071 | ||
27072 | wxPyEndAllowThreads(__tstate); | |
27073 | if (PyErr_Occurred()) SWIG_fail; | |
27074 | } | |
27075 | Py_INCREF(Py_None); resultobj = Py_None; | |
27076 | return resultobj; | |
27077 | fail: | |
27078 | return NULL; | |
27079 | } | |
27080 | ||
27081 | ||
27082 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27083 | PyObject *resultobj; | |
27084 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27085 | wxPoint *arg2 = 0 ; | |
27086 | int *arg3 = 0 ; | |
27087 | wxTreeItemId result; | |
27088 | wxPoint temp2 ; | |
27089 | int temp3 ; | |
27090 | PyObject * obj0 = 0 ; | |
27091 | PyObject * obj1 = 0 ; | |
27092 | char *kwnames[] = { | |
27093 | (char *) "self",(char *) "point", NULL | |
27094 | }; | |
27095 | ||
27096 | arg3 = &temp3; | |
27097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27100 | { | |
27101 | arg2 = &temp2; | |
27102 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27103 | } | |
27104 | { | |
27105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27106 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27107 | ||
27108 | wxPyEndAllowThreads(__tstate); | |
27109 | if (PyErr_Occurred()) SWIG_fail; | |
27110 | } | |
27111 | { | |
27112 | wxTreeItemId * resultptr; | |
27113 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27114 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27115 | } | |
27116 | { | |
27117 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27118 | resultobj = t_output_helper(resultobj,o); | |
27119 | } | |
27120 | return resultobj; | |
27121 | fail: | |
27122 | return NULL; | |
27123 | } | |
27124 | ||
27125 | ||
27126 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27127 | PyObject *resultobj; | |
27128 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27129 | wxTreeItemId *arg2 = 0 ; | |
27130 | bool arg3 = (bool) False ; | |
27131 | PyObject *result; | |
27132 | PyObject * obj0 = 0 ; | |
27133 | PyObject * obj1 = 0 ; | |
27134 | PyObject * obj2 = 0 ; | |
27135 | char *kwnames[] = { | |
27136 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27137 | }; | |
27138 | ||
27139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27142 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27144 | SWIG_fail; | |
27145 | if (arg2 == NULL) { | |
27146 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27147 | SWIG_fail; | |
27148 | } | |
27149 | if (obj2) { | |
27150 | arg3 = (bool) SWIG_AsBool(obj2); | |
27151 | if (PyErr_Occurred()) SWIG_fail; | |
27152 | } | |
27153 | { | |
27154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27155 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27156 | ||
27157 | wxPyEndAllowThreads(__tstate); | |
27158 | if (PyErr_Occurred()) SWIG_fail; | |
27159 | } | |
27160 | resultobj = result; | |
27161 | return resultobj; | |
27162 | fail: | |
27163 | return NULL; | |
27164 | } | |
27165 | ||
27166 | ||
27167 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27168 | PyObject *resultobj; | |
27169 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27170 | wxVisualAttributes result; | |
27171 | PyObject * obj0 = 0 ; | |
27172 | char *kwnames[] = { | |
27173 | (char *) "variant", NULL | |
27174 | }; | |
27175 | ||
27176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27177 | if (obj0) { | |
27178 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27179 | if (PyErr_Occurred()) SWIG_fail; | |
27180 | } | |
27181 | { | |
27182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27183 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27184 | ||
27185 | wxPyEndAllowThreads(__tstate); | |
27186 | if (PyErr_Occurred()) SWIG_fail; | |
27187 | } | |
27188 | { | |
27189 | wxVisualAttributes * resultptr; | |
27190 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27191 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27192 | } | |
27193 | return resultobj; | |
27194 | fail: | |
27195 | return NULL; | |
27196 | } | |
27197 | ||
27198 | ||
27199 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
27200 | PyObject *obj; | |
27201 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27202 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27203 | Py_INCREF(obj); | |
27204 | return Py_BuildValue((char *)""); | |
27205 | } | |
27206 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { | |
27207 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27208 | return 1; | |
27209 | } | |
27210 | ||
27211 | ||
27212 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27213 | PyObject *pyobj; | |
27214 | ||
27215 | { | |
27216 | #if wxUSE_UNICODE | |
27217 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27218 | #else | |
27219 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27220 | #endif | |
27221 | } | |
27222 | return pyobj; | |
27223 | } | |
27224 | ||
27225 | ||
27226 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27227 | PyObject *resultobj; | |
27228 | wxWindow *arg1 = (wxWindow *) 0 ; | |
27229 | int arg2 = (int) (int)-1 ; | |
27230 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
27231 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27232 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27233 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27234 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27235 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27236 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27237 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27238 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27239 | int arg8 = (int) 0 ; | |
27240 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
27241 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
27242 | wxGenericDirCtrl *result; | |
27243 | bool temp3 = False ; | |
27244 | wxPoint temp4 ; | |
27245 | wxSize temp5 ; | |
27246 | bool temp7 = False ; | |
27247 | bool temp9 = False ; | |
27248 | PyObject * obj0 = 0 ; | |
27249 | PyObject * obj1 = 0 ; | |
27250 | PyObject * obj2 = 0 ; | |
27251 | PyObject * obj3 = 0 ; | |
27252 | PyObject * obj4 = 0 ; | |
27253 | PyObject * obj5 = 0 ; | |
27254 | PyObject * obj6 = 0 ; | |
27255 | PyObject * obj7 = 0 ; | |
27256 | PyObject * obj8 = 0 ; | |
27257 | char *kwnames[] = { | |
27258 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27259 | }; | |
27260 | ||
27261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
27262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
27263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27264 | if (obj1) { | |
27265 | arg2 = (int const) SWIG_AsInt(obj1); | |
27266 | if (PyErr_Occurred()) SWIG_fail; | |
27267 | } | |
27268 | if (obj2) { | |
27269 | { | |
27270 | arg3 = wxString_in_helper(obj2); | |
27271 | if (arg3 == NULL) SWIG_fail; | |
27272 | temp3 = True; | |
27273 | } | |
27274 | } | |
27275 | if (obj3) { | |
27276 | { | |
27277 | arg4 = &temp4; | |
27278 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27279 | } | |
27280 | } | |
27281 | if (obj4) { | |
27282 | { | |
27283 | arg5 = &temp5; | |
27284 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27285 | } | |
27286 | } | |
27287 | if (obj5) { | |
27288 | arg6 = (long) SWIG_AsLong(obj5); | |
27289 | if (PyErr_Occurred()) SWIG_fail; | |
27290 | } | |
27291 | if (obj6) { | |
27292 | { | |
27293 | arg7 = wxString_in_helper(obj6); | |
27294 | if (arg7 == NULL) SWIG_fail; | |
27295 | temp7 = True; | |
27296 | } | |
27297 | } | |
27298 | if (obj7) { | |
27299 | arg8 = (int) SWIG_AsInt(obj7); | |
27300 | if (PyErr_Occurred()) SWIG_fail; | |
27301 | } | |
27302 | if (obj8) { | |
27303 | { | |
27304 | arg9 = wxString_in_helper(obj8); | |
27305 | if (arg9 == NULL) SWIG_fail; | |
27306 | temp9 = True; | |
27307 | } | |
27308 | } | |
27309 | { | |
27310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27311 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27312 | ||
27313 | wxPyEndAllowThreads(__tstate); | |
27314 | if (PyErr_Occurred()) SWIG_fail; | |
27315 | } | |
27316 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
27317 | { | |
27318 | if (temp3) | |
27319 | delete arg3; | |
27320 | } | |
27321 | { | |
27322 | if (temp7) | |
27323 | delete arg7; | |
27324 | } | |
27325 | { | |
27326 | if (temp9) | |
27327 | delete arg9; | |
27328 | } | |
27329 | return resultobj; | |
27330 | fail: | |
27331 | { | |
27332 | if (temp3) | |
27333 | delete arg3; | |
27334 | } | |
27335 | { | |
27336 | if (temp7) | |
27337 | delete arg7; | |
27338 | } | |
27339 | { | |
27340 | if (temp9) | |
27341 | delete arg9; | |
27342 | } | |
27343 | return NULL; | |
27344 | } | |
27345 | ||
27346 | ||
27347 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27348 | PyObject *resultobj; | |
27349 | wxGenericDirCtrl *result; | |
27350 | char *kwnames[] = { | |
27351 | NULL | |
27352 | }; | |
27353 | ||
27354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27355 | { | |
27356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27357 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27358 | ||
27359 | wxPyEndAllowThreads(__tstate); | |
27360 | if (PyErr_Occurred()) SWIG_fail; | |
27361 | } | |
27362 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
27363 | return resultobj; | |
27364 | fail: | |
27365 | return NULL; | |
27366 | } | |
27367 | ||
27368 | ||
27369 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27370 | PyObject *resultobj; | |
27371 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27372 | wxWindow *arg2 = (wxWindow *) 0 ; | |
27373 | int arg3 = (int) (int)-1 ; | |
27374 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
27375 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27376 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27377 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27378 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27379 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27380 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27381 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27382 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27383 | int arg9 = (int) 0 ; | |
27384 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
27385 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
27386 | bool result; | |
27387 | bool temp4 = False ; | |
27388 | wxPoint temp5 ; | |
27389 | wxSize temp6 ; | |
27390 | bool temp8 = False ; | |
27391 | bool temp10 = False ; | |
27392 | PyObject * obj0 = 0 ; | |
27393 | PyObject * obj1 = 0 ; | |
27394 | PyObject * obj2 = 0 ; | |
27395 | PyObject * obj3 = 0 ; | |
27396 | PyObject * obj4 = 0 ; | |
27397 | PyObject * obj5 = 0 ; | |
27398 | PyObject * obj6 = 0 ; | |
27399 | PyObject * obj7 = 0 ; | |
27400 | PyObject * obj8 = 0 ; | |
27401 | PyObject * obj9 = 0 ; | |
27402 | char *kwnames[] = { | |
27403 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27404 | }; | |
27405 | ||
27406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
27407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27409 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27411 | if (obj2) { | |
27412 | arg3 = (int const) SWIG_AsInt(obj2); | |
27413 | if (PyErr_Occurred()) SWIG_fail; | |
27414 | } | |
27415 | if (obj3) { | |
27416 | { | |
27417 | arg4 = wxString_in_helper(obj3); | |
27418 | if (arg4 == NULL) SWIG_fail; | |
27419 | temp4 = True; | |
27420 | } | |
27421 | } | |
27422 | if (obj4) { | |
27423 | { | |
27424 | arg5 = &temp5; | |
27425 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27426 | } | |
27427 | } | |
27428 | if (obj5) { | |
27429 | { | |
27430 | arg6 = &temp6; | |
27431 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27432 | } | |
27433 | } | |
27434 | if (obj6) { | |
27435 | arg7 = (long) SWIG_AsLong(obj6); | |
27436 | if (PyErr_Occurred()) SWIG_fail; | |
27437 | } | |
27438 | if (obj7) { | |
27439 | { | |
27440 | arg8 = wxString_in_helper(obj7); | |
27441 | if (arg8 == NULL) SWIG_fail; | |
27442 | temp8 = True; | |
27443 | } | |
27444 | } | |
27445 | if (obj8) { | |
27446 | arg9 = (int) SWIG_AsInt(obj8); | |
27447 | if (PyErr_Occurred()) SWIG_fail; | |
27448 | } | |
27449 | if (obj9) { | |
27450 | { | |
27451 | arg10 = wxString_in_helper(obj9); | |
27452 | if (arg10 == NULL) SWIG_fail; | |
27453 | temp10 = True; | |
27454 | } | |
27455 | } | |
27456 | { | |
27457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27458 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27459 | ||
27460 | wxPyEndAllowThreads(__tstate); | |
27461 | if (PyErr_Occurred()) SWIG_fail; | |
27462 | } | |
27463 | { | |
27464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27465 | } | |
27466 | { | |
27467 | if (temp4) | |
27468 | delete arg4; | |
27469 | } | |
27470 | { | |
27471 | if (temp8) | |
27472 | delete arg8; | |
27473 | } | |
27474 | { | |
27475 | if (temp10) | |
27476 | delete arg10; | |
27477 | } | |
27478 | return resultobj; | |
27479 | fail: | |
27480 | { | |
27481 | if (temp4) | |
27482 | delete arg4; | |
27483 | } | |
27484 | { | |
27485 | if (temp8) | |
27486 | delete arg8; | |
27487 | } | |
27488 | { | |
27489 | if (temp10) | |
27490 | delete arg10; | |
27491 | } | |
27492 | return NULL; | |
27493 | } | |
27494 | ||
27495 | ||
27496 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27497 | PyObject *resultobj; | |
27498 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27499 | wxString *arg2 = 0 ; | |
27500 | bool result; | |
27501 | bool temp2 = False ; | |
27502 | PyObject * obj0 = 0 ; | |
27503 | PyObject * obj1 = 0 ; | |
27504 | char *kwnames[] = { | |
27505 | (char *) "self",(char *) "path", NULL | |
27506 | }; | |
27507 | ||
27508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
27509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27511 | { | |
27512 | arg2 = wxString_in_helper(obj1); | |
27513 | if (arg2 == NULL) SWIG_fail; | |
27514 | temp2 = True; | |
27515 | } | |
27516 | { | |
27517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27518 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27519 | ||
27520 | wxPyEndAllowThreads(__tstate); | |
27521 | if (PyErr_Occurred()) SWIG_fail; | |
27522 | } | |
27523 | { | |
27524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27525 | } | |
27526 | { | |
27527 | if (temp2) | |
27528 | delete arg2; | |
27529 | } | |
27530 | return resultobj; | |
27531 | fail: | |
27532 | { | |
27533 | if (temp2) | |
27534 | delete arg2; | |
27535 | } | |
27536 | return NULL; | |
27537 | } | |
27538 | ||
27539 | ||
27540 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27541 | PyObject *resultobj; | |
27542 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27543 | wxString result; | |
27544 | PyObject * obj0 = 0 ; | |
27545 | char *kwnames[] = { | |
27546 | (char *) "self", NULL | |
27547 | }; | |
27548 | ||
27549 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
27550 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27551 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27552 | { | |
27553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27554 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27555 | ||
27556 | wxPyEndAllowThreads(__tstate); | |
27557 | if (PyErr_Occurred()) SWIG_fail; | |
27558 | } | |
27559 | { | |
27560 | #if wxUSE_UNICODE | |
27561 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27562 | #else | |
27563 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27564 | #endif | |
27565 | } | |
27566 | return resultobj; | |
27567 | fail: | |
27568 | return NULL; | |
27569 | } | |
27570 | ||
27571 | ||
27572 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27573 | PyObject *resultobj; | |
27574 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27575 | wxString *arg2 = 0 ; | |
27576 | bool temp2 = False ; | |
27577 | PyObject * obj0 = 0 ; | |
27578 | PyObject * obj1 = 0 ; | |
27579 | char *kwnames[] = { | |
27580 | (char *) "self",(char *) "path", NULL | |
27581 | }; | |
27582 | ||
27583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
27584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27586 | { | |
27587 | arg2 = wxString_in_helper(obj1); | |
27588 | if (arg2 == NULL) SWIG_fail; | |
27589 | temp2 = True; | |
27590 | } | |
27591 | { | |
27592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27593 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
27594 | ||
27595 | wxPyEndAllowThreads(__tstate); | |
27596 | if (PyErr_Occurred()) SWIG_fail; | |
27597 | } | |
27598 | Py_INCREF(Py_None); resultobj = Py_None; | |
27599 | { | |
27600 | if (temp2) | |
27601 | delete arg2; | |
27602 | } | |
27603 | return resultobj; | |
27604 | fail: | |
27605 | { | |
27606 | if (temp2) | |
27607 | delete arg2; | |
27608 | } | |
27609 | return NULL; | |
27610 | } | |
27611 | ||
27612 | ||
27613 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27614 | PyObject *resultobj; | |
27615 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27616 | wxString result; | |
27617 | PyObject * obj0 = 0 ; | |
27618 | char *kwnames[] = { | |
27619 | (char *) "self", NULL | |
27620 | }; | |
27621 | ||
27622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
27623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27625 | { | |
27626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27627 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
27628 | ||
27629 | wxPyEndAllowThreads(__tstate); | |
27630 | if (PyErr_Occurred()) SWIG_fail; | |
27631 | } | |
27632 | { | |
27633 | #if wxUSE_UNICODE | |
27634 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27635 | #else | |
27636 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27637 | #endif | |
27638 | } | |
27639 | return resultobj; | |
27640 | fail: | |
27641 | return NULL; | |
27642 | } | |
27643 | ||
27644 | ||
27645 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27646 | PyObject *resultobj; | |
27647 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27648 | wxString result; | |
27649 | PyObject * obj0 = 0 ; | |
27650 | char *kwnames[] = { | |
27651 | (char *) "self", NULL | |
27652 | }; | |
27653 | ||
27654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
27655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27657 | { | |
27658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27659 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
27660 | ||
27661 | wxPyEndAllowThreads(__tstate); | |
27662 | if (PyErr_Occurred()) SWIG_fail; | |
27663 | } | |
27664 | { | |
27665 | #if wxUSE_UNICODE | |
27666 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27667 | #else | |
27668 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27669 | #endif | |
27670 | } | |
27671 | return resultobj; | |
27672 | fail: | |
27673 | return NULL; | |
27674 | } | |
27675 | ||
27676 | ||
27677 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27678 | PyObject *resultobj; | |
27679 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27680 | wxString *arg2 = 0 ; | |
27681 | bool temp2 = False ; | |
27682 | PyObject * obj0 = 0 ; | |
27683 | PyObject * obj1 = 0 ; | |
27684 | char *kwnames[] = { | |
27685 | (char *) "self",(char *) "path", NULL | |
27686 | }; | |
27687 | ||
27688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
27689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27691 | { | |
27692 | arg2 = wxString_in_helper(obj1); | |
27693 | if (arg2 == NULL) SWIG_fail; | |
27694 | temp2 = True; | |
27695 | } | |
27696 | { | |
27697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27698 | (arg1)->SetPath((wxString const &)*arg2); | |
27699 | ||
27700 | wxPyEndAllowThreads(__tstate); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | Py_INCREF(Py_None); resultobj = Py_None; | |
27704 | { | |
27705 | if (temp2) | |
27706 | delete arg2; | |
27707 | } | |
27708 | return resultobj; | |
27709 | fail: | |
27710 | { | |
27711 | if (temp2) | |
27712 | delete arg2; | |
27713 | } | |
27714 | return NULL; | |
27715 | } | |
27716 | ||
27717 | ||
27718 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27719 | PyObject *resultobj; | |
27720 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27721 | bool arg2 ; | |
27722 | PyObject * obj0 = 0 ; | |
27723 | PyObject * obj1 = 0 ; | |
27724 | char *kwnames[] = { | |
27725 | (char *) "self",(char *) "show", NULL | |
27726 | }; | |
27727 | ||
27728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
27729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27731 | arg2 = (bool) SWIG_AsBool(obj1); | |
27732 | if (PyErr_Occurred()) SWIG_fail; | |
27733 | { | |
27734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27735 | (arg1)->ShowHidden(arg2); | |
27736 | ||
27737 | wxPyEndAllowThreads(__tstate); | |
27738 | if (PyErr_Occurred()) SWIG_fail; | |
27739 | } | |
27740 | Py_INCREF(Py_None); resultobj = Py_None; | |
27741 | return resultobj; | |
27742 | fail: | |
27743 | return NULL; | |
27744 | } | |
27745 | ||
27746 | ||
27747 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27748 | PyObject *resultobj; | |
27749 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27750 | bool result; | |
27751 | PyObject * obj0 = 0 ; | |
27752 | char *kwnames[] = { | |
27753 | (char *) "self", NULL | |
27754 | }; | |
27755 | ||
27756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
27757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27759 | { | |
27760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27761 | result = (bool)(arg1)->GetShowHidden(); | |
27762 | ||
27763 | wxPyEndAllowThreads(__tstate); | |
27764 | if (PyErr_Occurred()) SWIG_fail; | |
27765 | } | |
27766 | { | |
27767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27768 | } | |
27769 | return resultobj; | |
27770 | fail: | |
27771 | return NULL; | |
27772 | } | |
27773 | ||
27774 | ||
27775 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27776 | PyObject *resultobj; | |
27777 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27778 | wxString result; | |
27779 | PyObject * obj0 = 0 ; | |
27780 | char *kwnames[] = { | |
27781 | (char *) "self", NULL | |
27782 | }; | |
27783 | ||
27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
27785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27787 | { | |
27788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27789 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27790 | ||
27791 | wxPyEndAllowThreads(__tstate); | |
27792 | if (PyErr_Occurred()) SWIG_fail; | |
27793 | } | |
27794 | { | |
27795 | #if wxUSE_UNICODE | |
27796 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27797 | #else | |
27798 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27799 | #endif | |
27800 | } | |
27801 | return resultobj; | |
27802 | fail: | |
27803 | return NULL; | |
27804 | } | |
27805 | ||
27806 | ||
27807 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27808 | PyObject *resultobj; | |
27809 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27810 | wxString *arg2 = 0 ; | |
27811 | bool temp2 = False ; | |
27812 | PyObject * obj0 = 0 ; | |
27813 | PyObject * obj1 = 0 ; | |
27814 | char *kwnames[] = { | |
27815 | (char *) "self",(char *) "filter", NULL | |
27816 | }; | |
27817 | ||
27818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
27819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27821 | { | |
27822 | arg2 = wxString_in_helper(obj1); | |
27823 | if (arg2 == NULL) SWIG_fail; | |
27824 | temp2 = True; | |
27825 | } | |
27826 | { | |
27827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27828 | (arg1)->SetFilter((wxString const &)*arg2); | |
27829 | ||
27830 | wxPyEndAllowThreads(__tstate); | |
27831 | if (PyErr_Occurred()) SWIG_fail; | |
27832 | } | |
27833 | Py_INCREF(Py_None); resultobj = Py_None; | |
27834 | { | |
27835 | if (temp2) | |
27836 | delete arg2; | |
27837 | } | |
27838 | return resultobj; | |
27839 | fail: | |
27840 | { | |
27841 | if (temp2) | |
27842 | delete arg2; | |
27843 | } | |
27844 | return NULL; | |
27845 | } | |
27846 | ||
27847 | ||
27848 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27849 | PyObject *resultobj; | |
27850 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27851 | int result; | |
27852 | PyObject * obj0 = 0 ; | |
27853 | char *kwnames[] = { | |
27854 | (char *) "self", NULL | |
27855 | }; | |
27856 | ||
27857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
27858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27860 | { | |
27861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27862 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27863 | ||
27864 | wxPyEndAllowThreads(__tstate); | |
27865 | if (PyErr_Occurred()) SWIG_fail; | |
27866 | } | |
27867 | resultobj = SWIG_FromInt((int)result); | |
27868 | return resultobj; | |
27869 | fail: | |
27870 | return NULL; | |
27871 | } | |
27872 | ||
27873 | ||
27874 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27875 | PyObject *resultobj; | |
27876 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27877 | int arg2 ; | |
27878 | PyObject * obj0 = 0 ; | |
27879 | PyObject * obj1 = 0 ; | |
27880 | char *kwnames[] = { | |
27881 | (char *) "self",(char *) "n", NULL | |
27882 | }; | |
27883 | ||
27884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
27885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27887 | arg2 = (int) SWIG_AsInt(obj1); | |
27888 | if (PyErr_Occurred()) SWIG_fail; | |
27889 | { | |
27890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27891 | (arg1)->SetFilterIndex(arg2); | |
27892 | ||
27893 | wxPyEndAllowThreads(__tstate); | |
27894 | if (PyErr_Occurred()) SWIG_fail; | |
27895 | } | |
27896 | Py_INCREF(Py_None); resultobj = Py_None; | |
27897 | return resultobj; | |
27898 | fail: | |
27899 | return NULL; | |
27900 | } | |
27901 | ||
27902 | ||
27903 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27904 | PyObject *resultobj; | |
27905 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27906 | wxTreeItemId result; | |
27907 | PyObject * obj0 = 0 ; | |
27908 | char *kwnames[] = { | |
27909 | (char *) "self", NULL | |
27910 | }; | |
27911 | ||
27912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
27913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27915 | { | |
27916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27917 | result = (arg1)->GetRootId(); | |
27918 | ||
27919 | wxPyEndAllowThreads(__tstate); | |
27920 | if (PyErr_Occurred()) SWIG_fail; | |
27921 | } | |
27922 | { | |
27923 | wxTreeItemId * resultptr; | |
27924 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27925 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27926 | } | |
27927 | return resultobj; | |
27928 | fail: | |
27929 | return NULL; | |
27930 | } | |
27931 | ||
27932 | ||
27933 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27934 | PyObject *resultobj; | |
27935 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27936 | wxPyTreeCtrl *result; | |
27937 | PyObject * obj0 = 0 ; | |
27938 | char *kwnames[] = { | |
27939 | (char *) "self", NULL | |
27940 | }; | |
27941 | ||
27942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
27943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27945 | { | |
27946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27947 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
27948 | ||
27949 | wxPyEndAllowThreads(__tstate); | |
27950 | if (PyErr_Occurred()) SWIG_fail; | |
27951 | } | |
27952 | { | |
27953 | resultobj = wxPyMake_wxObject(result); | |
27954 | } | |
27955 | return resultobj; | |
27956 | fail: | |
27957 | return NULL; | |
27958 | } | |
27959 | ||
27960 | ||
27961 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27962 | PyObject *resultobj; | |
27963 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27964 | wxDirFilterListCtrl *result; | |
27965 | PyObject * obj0 = 0 ; | |
27966 | char *kwnames[] = { | |
27967 | (char *) "self", NULL | |
27968 | }; | |
27969 | ||
27970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
27971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
27972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27973 | { | |
27974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27975 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27976 | ||
27977 | wxPyEndAllowThreads(__tstate); | |
27978 | if (PyErr_Occurred()) SWIG_fail; | |
27979 | } | |
27980 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
27981 | return resultobj; | |
27982 | fail: | |
27983 | return NULL; | |
27984 | } | |
27985 | ||
27986 | ||
27987 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27988 | PyObject *resultobj; | |
27989 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27990 | wxTreeItemId arg2 ; | |
27991 | wxString *arg3 = 0 ; | |
27992 | bool *arg4 = 0 ; | |
27993 | wxTreeItemId result; | |
27994 | wxTreeItemId *argp2 ; | |
27995 | bool temp3 = False ; | |
27996 | bool temp4 ; | |
27997 | PyObject * obj0 = 0 ; | |
27998 | PyObject * obj1 = 0 ; | |
27999 | PyObject * obj2 = 0 ; | |
28000 | char *kwnames[] = { | |
28001 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28002 | }; | |
28003 | ||
28004 | arg4 = &temp4; | |
28005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28008 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28009 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28010 | arg2 = *argp2; | |
28011 | { | |
28012 | arg3 = wxString_in_helper(obj2); | |
28013 | if (arg3 == NULL) SWIG_fail; | |
28014 | temp3 = True; | |
28015 | } | |
28016 | { | |
28017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28018 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28019 | ||
28020 | wxPyEndAllowThreads(__tstate); | |
28021 | if (PyErr_Occurred()) SWIG_fail; | |
28022 | } | |
28023 | { | |
28024 | wxTreeItemId * resultptr; | |
28025 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28026 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28027 | } | |
28028 | { | |
28029 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28030 | resultobj = t_output_helper(resultobj,o); | |
28031 | } | |
28032 | { | |
28033 | if (temp3) | |
28034 | delete arg3; | |
28035 | } | |
28036 | return resultobj; | |
28037 | fail: | |
28038 | { | |
28039 | if (temp3) | |
28040 | delete arg3; | |
28041 | } | |
28042 | return NULL; | |
28043 | } | |
28044 | ||
28045 | ||
28046 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28047 | PyObject *resultobj; | |
28048 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28049 | PyObject * obj0 = 0 ; | |
28050 | char *kwnames[] = { | |
28051 | (char *) "self", NULL | |
28052 | }; | |
28053 | ||
28054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
28055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28057 | { | |
28058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28059 | (arg1)->DoResize(); | |
28060 | ||
28061 | wxPyEndAllowThreads(__tstate); | |
28062 | if (PyErr_Occurred()) SWIG_fail; | |
28063 | } | |
28064 | Py_INCREF(Py_None); resultobj = Py_None; | |
28065 | return resultobj; | |
28066 | fail: | |
28067 | return NULL; | |
28068 | } | |
28069 | ||
28070 | ||
28071 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28072 | PyObject *resultobj; | |
28073 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28074 | PyObject * obj0 = 0 ; | |
28075 | char *kwnames[] = { | |
28076 | (char *) "self", NULL | |
28077 | }; | |
28078 | ||
28079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
28080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28082 | { | |
28083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28084 | (arg1)->ReCreateTree(); | |
28085 | ||
28086 | wxPyEndAllowThreads(__tstate); | |
28087 | if (PyErr_Occurred()) SWIG_fail; | |
28088 | } | |
28089 | Py_INCREF(Py_None); resultobj = Py_None; | |
28090 | return resultobj; | |
28091 | fail: | |
28092 | return NULL; | |
28093 | } | |
28094 | ||
28095 | ||
28096 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28097 | PyObject *obj; | |
28098 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28099 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28100 | Py_INCREF(obj); | |
28101 | return Py_BuildValue((char *)""); | |
28102 | } | |
28103 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28104 | PyObject *resultobj; | |
28105 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28106 | int arg2 = (int) (int)-1 ; | |
28107 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28108 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28109 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28110 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28111 | long arg5 = (long) 0 ; | |
28112 | wxDirFilterListCtrl *result; | |
28113 | wxPoint temp3 ; | |
28114 | wxSize temp4 ; | |
28115 | PyObject * obj0 = 0 ; | |
28116 | PyObject * obj1 = 0 ; | |
28117 | PyObject * obj2 = 0 ; | |
28118 | PyObject * obj3 = 0 ; | |
28119 | PyObject * obj4 = 0 ; | |
28120 | char *kwnames[] = { | |
28121 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28122 | }; | |
28123 | ||
28124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28127 | if (obj1) { | |
28128 | arg2 = (int const) SWIG_AsInt(obj1); | |
28129 | if (PyErr_Occurred()) SWIG_fail; | |
28130 | } | |
28131 | if (obj2) { | |
28132 | { | |
28133 | arg3 = &temp3; | |
28134 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28135 | } | |
28136 | } | |
28137 | if (obj3) { | |
28138 | { | |
28139 | arg4 = &temp4; | |
28140 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28141 | } | |
28142 | } | |
28143 | if (obj4) { | |
28144 | arg5 = (long) SWIG_AsLong(obj4); | |
28145 | if (PyErr_Occurred()) SWIG_fail; | |
28146 | } | |
28147 | { | |
28148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28149 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28150 | ||
28151 | wxPyEndAllowThreads(__tstate); | |
28152 | if (PyErr_Occurred()) SWIG_fail; | |
28153 | } | |
28154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28155 | return resultobj; | |
28156 | fail: | |
28157 | return NULL; | |
28158 | } | |
28159 | ||
28160 | ||
28161 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28162 | PyObject *resultobj; | |
28163 | wxDirFilterListCtrl *result; | |
28164 | char *kwnames[] = { | |
28165 | NULL | |
28166 | }; | |
28167 | ||
28168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28169 | { | |
28170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28171 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28172 | ||
28173 | wxPyEndAllowThreads(__tstate); | |
28174 | if (PyErr_Occurred()) SWIG_fail; | |
28175 | } | |
28176 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
28177 | return resultobj; | |
28178 | fail: | |
28179 | return NULL; | |
28180 | } | |
28181 | ||
28182 | ||
28183 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28184 | PyObject *resultobj; | |
28185 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28186 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
28187 | int arg3 = (int) (int)-1 ; | |
28188 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28189 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28190 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28191 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28192 | long arg6 = (long) 0 ; | |
28193 | bool result; | |
28194 | wxPoint temp4 ; | |
28195 | wxSize temp5 ; | |
28196 | PyObject * obj0 = 0 ; | |
28197 | PyObject * obj1 = 0 ; | |
28198 | PyObject * obj2 = 0 ; | |
28199 | PyObject * obj3 = 0 ; | |
28200 | PyObject * obj4 = 0 ; | |
28201 | PyObject * obj5 = 0 ; | |
28202 | char *kwnames[] = { | |
28203 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28204 | }; | |
28205 | ||
28206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
28208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28211 | if (obj2) { | |
28212 | arg3 = (int const) SWIG_AsInt(obj2); | |
28213 | if (PyErr_Occurred()) SWIG_fail; | |
28214 | } | |
28215 | if (obj3) { | |
28216 | { | |
28217 | arg4 = &temp4; | |
28218 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28219 | } | |
28220 | } | |
28221 | if (obj4) { | |
28222 | { | |
28223 | arg5 = &temp5; | |
28224 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28225 | } | |
28226 | } | |
28227 | if (obj5) { | |
28228 | arg6 = (long) SWIG_AsLong(obj5); | |
28229 | if (PyErr_Occurred()) SWIG_fail; | |
28230 | } | |
28231 | { | |
28232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28233 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28234 | ||
28235 | wxPyEndAllowThreads(__tstate); | |
28236 | if (PyErr_Occurred()) SWIG_fail; | |
28237 | } | |
28238 | { | |
28239 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28240 | } | |
28241 | return resultobj; | |
28242 | fail: | |
28243 | return NULL; | |
28244 | } | |
28245 | ||
28246 | ||
28247 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28248 | PyObject *resultobj; | |
28249 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28250 | wxString *arg2 = 0 ; | |
28251 | int arg3 ; | |
28252 | bool temp2 = False ; | |
28253 | PyObject * obj0 = 0 ; | |
28254 | PyObject * obj1 = 0 ; | |
28255 | PyObject * obj2 = 0 ; | |
28256 | char *kwnames[] = { | |
28257 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28258 | }; | |
28259 | ||
28260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
28262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28263 | { | |
28264 | arg2 = wxString_in_helper(obj1); | |
28265 | if (arg2 == NULL) SWIG_fail; | |
28266 | temp2 = True; | |
28267 | } | |
28268 | arg3 = (int) SWIG_AsInt(obj2); | |
28269 | if (PyErr_Occurred()) SWIG_fail; | |
28270 | { | |
28271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28272 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28273 | ||
28274 | wxPyEndAllowThreads(__tstate); | |
28275 | if (PyErr_Occurred()) SWIG_fail; | |
28276 | } | |
28277 | Py_INCREF(Py_None); resultobj = Py_None; | |
28278 | { | |
28279 | if (temp2) | |
28280 | delete arg2; | |
28281 | } | |
28282 | return resultobj; | |
28283 | fail: | |
28284 | { | |
28285 | if (temp2) | |
28286 | delete arg2; | |
28287 | } | |
28288 | return NULL; | |
28289 | } | |
28290 | ||
28291 | ||
28292 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28293 | PyObject *obj; | |
28294 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28295 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28296 | Py_INCREF(obj); | |
28297 | return Py_BuildValue((char *)""); | |
28298 | } | |
28299 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28300 | PyObject *resultobj; | |
28301 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28302 | int arg2 ; | |
28303 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28304 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28305 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28306 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28307 | long arg5 = (long) 0 ; | |
28308 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28309 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28310 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28311 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28312 | wxPyControl *result; | |
28313 | wxPoint temp3 ; | |
28314 | wxSize temp4 ; | |
28315 | bool temp7 = False ; | |
28316 | PyObject * obj0 = 0 ; | |
28317 | PyObject * obj1 = 0 ; | |
28318 | PyObject * obj2 = 0 ; | |
28319 | PyObject * obj3 = 0 ; | |
28320 | PyObject * obj4 = 0 ; | |
28321 | PyObject * obj5 = 0 ; | |
28322 | PyObject * obj6 = 0 ; | |
28323 | char *kwnames[] = { | |
28324 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28325 | }; | |
28326 | ||
28327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
28328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28330 | arg2 = (int const) SWIG_AsInt(obj1); | |
28331 | if (PyErr_Occurred()) SWIG_fail; | |
28332 | if (obj2) { | |
28333 | { | |
28334 | arg3 = &temp3; | |
28335 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28336 | } | |
28337 | } | |
28338 | if (obj3) { | |
28339 | { | |
28340 | arg4 = &temp4; | |
28341 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28342 | } | |
28343 | } | |
28344 | if (obj4) { | |
28345 | arg5 = (long) SWIG_AsLong(obj4); | |
28346 | if (PyErr_Occurred()) SWIG_fail; | |
28347 | } | |
28348 | if (obj5) { | |
28349 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
28350 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28351 | SWIG_fail; | |
28352 | if (arg6 == NULL) { | |
28353 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28354 | SWIG_fail; | |
28355 | } | |
28356 | } | |
28357 | if (obj6) { | |
28358 | { | |
28359 | arg7 = wxString_in_helper(obj6); | |
28360 | if (arg7 == NULL) SWIG_fail; | |
28361 | temp7 = True; | |
28362 | } | |
28363 | } | |
28364 | { | |
28365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28366 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
28371 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28372 | { | |
28373 | if (temp7) | |
28374 | delete arg7; | |
28375 | } | |
28376 | return resultobj; | |
28377 | fail: | |
28378 | { | |
28379 | if (temp7) | |
28380 | delete arg7; | |
28381 | } | |
28382 | return NULL; | |
28383 | } | |
28384 | ||
28385 | ||
28386 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28387 | PyObject *resultobj; | |
28388 | wxPyControl *result; | |
28389 | char *kwnames[] = { | |
28390 | NULL | |
28391 | }; | |
28392 | ||
28393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28394 | { | |
28395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28396 | result = (wxPyControl *)new wxPyControl(); | |
28397 | ||
28398 | wxPyEndAllowThreads(__tstate); | |
28399 | if (PyErr_Occurred()) SWIG_fail; | |
28400 | } | |
28401 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28402 | return resultobj; | |
28403 | fail: | |
28404 | return NULL; | |
28405 | } | |
28406 | ||
28407 | ||
28408 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28409 | PyObject *resultobj; | |
28410 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28411 | PyObject *arg2 = (PyObject *) 0 ; | |
28412 | PyObject *arg3 = (PyObject *) 0 ; | |
28413 | PyObject * obj0 = 0 ; | |
28414 | PyObject * obj1 = 0 ; | |
28415 | PyObject * obj2 = 0 ; | |
28416 | char *kwnames[] = { | |
28417 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28418 | }; | |
28419 | ||
28420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28423 | arg2 = obj1; | |
28424 | arg3 = obj2; | |
28425 | { | |
28426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28427 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28428 | ||
28429 | wxPyEndAllowThreads(__tstate); | |
28430 | if (PyErr_Occurred()) SWIG_fail; | |
28431 | } | |
28432 | Py_INCREF(Py_None); resultobj = Py_None; | |
28433 | return resultobj; | |
28434 | fail: | |
28435 | return NULL; | |
28436 | } | |
28437 | ||
28438 | ||
28439 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28440 | PyObject *resultobj; | |
28441 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28442 | int arg2 ; | |
28443 | int arg3 ; | |
28444 | int arg4 ; | |
28445 | int arg5 ; | |
28446 | PyObject * obj0 = 0 ; | |
28447 | PyObject * obj1 = 0 ; | |
28448 | PyObject * obj2 = 0 ; | |
28449 | PyObject * obj3 = 0 ; | |
28450 | PyObject * obj4 = 0 ; | |
28451 | char *kwnames[] = { | |
28452 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28453 | }; | |
28454 | ||
28455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28458 | arg2 = (int) SWIG_AsInt(obj1); | |
28459 | if (PyErr_Occurred()) SWIG_fail; | |
28460 | arg3 = (int) SWIG_AsInt(obj2); | |
28461 | if (PyErr_Occurred()) SWIG_fail; | |
28462 | arg4 = (int) SWIG_AsInt(obj3); | |
28463 | if (PyErr_Occurred()) SWIG_fail; | |
28464 | arg5 = (int) SWIG_AsInt(obj4); | |
28465 | if (PyErr_Occurred()) SWIG_fail; | |
28466 | { | |
28467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28468 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28469 | ||
28470 | wxPyEndAllowThreads(__tstate); | |
28471 | if (PyErr_Occurred()) SWIG_fail; | |
28472 | } | |
28473 | Py_INCREF(Py_None); resultobj = Py_None; | |
28474 | return resultobj; | |
28475 | fail: | |
28476 | return NULL; | |
28477 | } | |
28478 | ||
28479 | ||
28480 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28481 | PyObject *resultobj; | |
28482 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28483 | int arg2 ; | |
28484 | int arg3 ; | |
28485 | int arg4 ; | |
28486 | int arg5 ; | |
28487 | int arg6 = (int) wxSIZE_AUTO ; | |
28488 | PyObject * obj0 = 0 ; | |
28489 | PyObject * obj1 = 0 ; | |
28490 | PyObject * obj2 = 0 ; | |
28491 | PyObject * obj3 = 0 ; | |
28492 | PyObject * obj4 = 0 ; | |
28493 | PyObject * obj5 = 0 ; | |
28494 | char *kwnames[] = { | |
28495 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28496 | }; | |
28497 | ||
28498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
28499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28501 | arg2 = (int) SWIG_AsInt(obj1); | |
28502 | if (PyErr_Occurred()) SWIG_fail; | |
28503 | arg3 = (int) SWIG_AsInt(obj2); | |
28504 | if (PyErr_Occurred()) SWIG_fail; | |
28505 | arg4 = (int) SWIG_AsInt(obj3); | |
28506 | if (PyErr_Occurred()) SWIG_fail; | |
28507 | arg5 = (int) SWIG_AsInt(obj4); | |
28508 | if (PyErr_Occurred()) SWIG_fail; | |
28509 | if (obj5) { | |
28510 | arg6 = (int) SWIG_AsInt(obj5); | |
28511 | if (PyErr_Occurred()) SWIG_fail; | |
28512 | } | |
28513 | { | |
28514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28515 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28516 | ||
28517 | wxPyEndAllowThreads(__tstate); | |
28518 | if (PyErr_Occurred()) SWIG_fail; | |
28519 | } | |
28520 | Py_INCREF(Py_None); resultobj = Py_None; | |
28521 | return resultobj; | |
28522 | fail: | |
28523 | return NULL; | |
28524 | } | |
28525 | ||
28526 | ||
28527 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28528 | PyObject *resultobj; | |
28529 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28530 | int arg2 ; | |
28531 | int arg3 ; | |
28532 | PyObject * obj0 = 0 ; | |
28533 | PyObject * obj1 = 0 ; | |
28534 | PyObject * obj2 = 0 ; | |
28535 | char *kwnames[] = { | |
28536 | (char *) "self",(char *) "width",(char *) "height", NULL | |
28537 | }; | |
28538 | ||
28539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28540 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28541 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28542 | arg2 = (int) SWIG_AsInt(obj1); | |
28543 | if (PyErr_Occurred()) SWIG_fail; | |
28544 | arg3 = (int) SWIG_AsInt(obj2); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | { | |
28547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28548 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
28549 | ||
28550 | wxPyEndAllowThreads(__tstate); | |
28551 | if (PyErr_Occurred()) SWIG_fail; | |
28552 | } | |
28553 | Py_INCREF(Py_None); resultobj = Py_None; | |
28554 | return resultobj; | |
28555 | fail: | |
28556 | return NULL; | |
28557 | } | |
28558 | ||
28559 | ||
28560 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28561 | PyObject *resultobj; | |
28562 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28563 | int arg2 ; | |
28564 | int arg3 ; | |
28565 | PyObject * obj0 = 0 ; | |
28566 | PyObject * obj1 = 0 ; | |
28567 | PyObject * obj2 = 0 ; | |
28568 | char *kwnames[] = { | |
28569 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28570 | }; | |
28571 | ||
28572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28575 | arg2 = (int) SWIG_AsInt(obj1); | |
28576 | if (PyErr_Occurred()) SWIG_fail; | |
28577 | arg3 = (int) SWIG_AsInt(obj2); | |
28578 | if (PyErr_Occurred()) SWIG_fail; | |
28579 | { | |
28580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28581 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
28582 | ||
28583 | wxPyEndAllowThreads(__tstate); | |
28584 | if (PyErr_Occurred()) SWIG_fail; | |
28585 | } | |
28586 | Py_INCREF(Py_None); resultobj = Py_None; | |
28587 | return resultobj; | |
28588 | fail: | |
28589 | return NULL; | |
28590 | } | |
28591 | ||
28592 | ||
28593 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28594 | PyObject *resultobj; | |
28595 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28596 | int *arg2 = (int *) 0 ; | |
28597 | int *arg3 = (int *) 0 ; | |
28598 | int temp2 ; | |
28599 | int temp3 ; | |
28600 | PyObject * obj0 = 0 ; | |
28601 | char *kwnames[] = { | |
28602 | (char *) "self", NULL | |
28603 | }; | |
28604 | ||
28605 | arg2 = &temp2; | |
28606 | arg3 = &temp3; | |
28607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
28608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28610 | { | |
28611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28612 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
28613 | ||
28614 | wxPyEndAllowThreads(__tstate); | |
28615 | if (PyErr_Occurred()) SWIG_fail; | |
28616 | } | |
28617 | Py_INCREF(Py_None); resultobj = Py_None; | |
28618 | { | |
28619 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28620 | resultobj = t_output_helper(resultobj,o); | |
28621 | } | |
28622 | { | |
28623 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28624 | resultobj = t_output_helper(resultobj,o); | |
28625 | } | |
28626 | return resultobj; | |
28627 | fail: | |
28628 | return NULL; | |
28629 | } | |
28630 | ||
28631 | ||
28632 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28633 | PyObject *resultobj; | |
28634 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28635 | int *arg2 = (int *) 0 ; | |
28636 | int *arg3 = (int *) 0 ; | |
28637 | int temp2 ; | |
28638 | int temp3 ; | |
28639 | PyObject * obj0 = 0 ; | |
28640 | char *kwnames[] = { | |
28641 | (char *) "self", NULL | |
28642 | }; | |
28643 | ||
28644 | arg2 = &temp2; | |
28645 | arg3 = &temp3; | |
28646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
28647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28649 | { | |
28650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28651 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
28652 | ||
28653 | wxPyEndAllowThreads(__tstate); | |
28654 | if (PyErr_Occurred()) SWIG_fail; | |
28655 | } | |
28656 | Py_INCREF(Py_None); resultobj = Py_None; | |
28657 | { | |
28658 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28659 | resultobj = t_output_helper(resultobj,o); | |
28660 | } | |
28661 | { | |
28662 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28663 | resultobj = t_output_helper(resultobj,o); | |
28664 | } | |
28665 | return resultobj; | |
28666 | fail: | |
28667 | return NULL; | |
28668 | } | |
28669 | ||
28670 | ||
28671 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28672 | PyObject *resultobj; | |
28673 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28674 | int *arg2 = (int *) 0 ; | |
28675 | int *arg3 = (int *) 0 ; | |
28676 | int temp2 ; | |
28677 | int temp3 ; | |
28678 | PyObject * obj0 = 0 ; | |
28679 | char *kwnames[] = { | |
28680 | (char *) "self", NULL | |
28681 | }; | |
28682 | ||
28683 | arg2 = &temp2; | |
28684 | arg3 = &temp3; | |
28685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
28686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28688 | { | |
28689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28690 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
28691 | ||
28692 | wxPyEndAllowThreads(__tstate); | |
28693 | if (PyErr_Occurred()) SWIG_fail; | |
28694 | } | |
28695 | Py_INCREF(Py_None); resultobj = Py_None; | |
28696 | { | |
28697 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28698 | resultobj = t_output_helper(resultobj,o); | |
28699 | } | |
28700 | { | |
28701 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28702 | resultobj = t_output_helper(resultobj,o); | |
28703 | } | |
28704 | return resultobj; | |
28705 | fail: | |
28706 | return NULL; | |
28707 | } | |
28708 | ||
28709 | ||
28710 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28711 | PyObject *resultobj; | |
28712 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28713 | wxSize result; | |
28714 | PyObject * obj0 = 0 ; | |
28715 | char *kwnames[] = { | |
28716 | (char *) "self", NULL | |
28717 | }; | |
28718 | ||
28719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
28720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28722 | { | |
28723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28724 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28725 | ||
28726 | wxPyEndAllowThreads(__tstate); | |
28727 | if (PyErr_Occurred()) SWIG_fail; | |
28728 | } | |
28729 | { | |
28730 | wxSize * resultptr; | |
28731 | resultptr = new wxSize((wxSize &) result); | |
28732 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28733 | } | |
28734 | return resultobj; | |
28735 | fail: | |
28736 | return NULL; | |
28737 | } | |
28738 | ||
28739 | ||
28740 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28741 | PyObject *resultobj; | |
28742 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28743 | wxSize result; | |
28744 | PyObject * obj0 = 0 ; | |
28745 | char *kwnames[] = { | |
28746 | (char *) "self", NULL | |
28747 | }; | |
28748 | ||
28749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
28750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28752 | { | |
28753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28754 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28755 | ||
28756 | wxPyEndAllowThreads(__tstate); | |
28757 | if (PyErr_Occurred()) SWIG_fail; | |
28758 | } | |
28759 | { | |
28760 | wxSize * resultptr; | |
28761 | resultptr = new wxSize((wxSize &) result); | |
28762 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28763 | } | |
28764 | return resultobj; | |
28765 | fail: | |
28766 | return NULL; | |
28767 | } | |
28768 | ||
28769 | ||
28770 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28771 | PyObject *resultobj; | |
28772 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28773 | PyObject * obj0 = 0 ; | |
28774 | char *kwnames[] = { | |
28775 | (char *) "self", NULL | |
28776 | }; | |
28777 | ||
28778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
28779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28781 | { | |
28782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28783 | (arg1)->base_InitDialog(); | |
28784 | ||
28785 | wxPyEndAllowThreads(__tstate); | |
28786 | if (PyErr_Occurred()) SWIG_fail; | |
28787 | } | |
28788 | Py_INCREF(Py_None); resultobj = Py_None; | |
28789 | return resultobj; | |
28790 | fail: | |
28791 | return NULL; | |
28792 | } | |
28793 | ||
28794 | ||
28795 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28796 | PyObject *resultobj; | |
28797 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28798 | bool result; | |
28799 | PyObject * obj0 = 0 ; | |
28800 | char *kwnames[] = { | |
28801 | (char *) "self", NULL | |
28802 | }; | |
28803 | ||
28804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
28805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28807 | { | |
28808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28809 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28810 | ||
28811 | wxPyEndAllowThreads(__tstate); | |
28812 | if (PyErr_Occurred()) SWIG_fail; | |
28813 | } | |
28814 | { | |
28815 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28816 | } | |
28817 | return resultobj; | |
28818 | fail: | |
28819 | return NULL; | |
28820 | } | |
28821 | ||
28822 | ||
28823 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28824 | PyObject *resultobj; | |
28825 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28826 | bool result; | |
28827 | PyObject * obj0 = 0 ; | |
28828 | char *kwnames[] = { | |
28829 | (char *) "self", NULL | |
28830 | }; | |
28831 | ||
28832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
28833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28835 | { | |
28836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28837 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28838 | ||
28839 | wxPyEndAllowThreads(__tstate); | |
28840 | if (PyErr_Occurred()) SWIG_fail; | |
28841 | } | |
28842 | { | |
28843 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28844 | } | |
28845 | return resultobj; | |
28846 | fail: | |
28847 | return NULL; | |
28848 | } | |
28849 | ||
28850 | ||
28851 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28852 | PyObject *resultobj; | |
28853 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28854 | bool result; | |
28855 | PyObject * obj0 = 0 ; | |
28856 | char *kwnames[] = { | |
28857 | (char *) "self", NULL | |
28858 | }; | |
28859 | ||
28860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
28861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28863 | { | |
28864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28865 | result = (bool)(arg1)->base_Validate(); | |
28866 | ||
28867 | wxPyEndAllowThreads(__tstate); | |
28868 | if (PyErr_Occurred()) SWIG_fail; | |
28869 | } | |
28870 | { | |
28871 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28872 | } | |
28873 | return resultobj; | |
28874 | fail: | |
28875 | return NULL; | |
28876 | } | |
28877 | ||
28878 | ||
28879 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28880 | PyObject *resultobj; | |
28881 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28882 | bool result; | |
28883 | PyObject * obj0 = 0 ; | |
28884 | char *kwnames[] = { | |
28885 | (char *) "self", NULL | |
28886 | }; | |
28887 | ||
28888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
28889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28891 | { | |
28892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28893 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28894 | ||
28895 | wxPyEndAllowThreads(__tstate); | |
28896 | if (PyErr_Occurred()) SWIG_fail; | |
28897 | } | |
28898 | { | |
28899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28900 | } | |
28901 | return resultobj; | |
28902 | fail: | |
28903 | return NULL; | |
28904 | } | |
28905 | ||
28906 | ||
28907 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28908 | PyObject *resultobj; | |
28909 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28910 | bool result; | |
28911 | PyObject * obj0 = 0 ; | |
28912 | char *kwnames[] = { | |
28913 | (char *) "self", NULL | |
28914 | }; | |
28915 | ||
28916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
28917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28919 | { | |
28920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28921 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28922 | ||
28923 | wxPyEndAllowThreads(__tstate); | |
28924 | if (PyErr_Occurred()) SWIG_fail; | |
28925 | } | |
28926 | { | |
28927 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28928 | } | |
28929 | return resultobj; | |
28930 | fail: | |
28931 | return NULL; | |
28932 | } | |
28933 | ||
28934 | ||
28935 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28936 | PyObject *resultobj; | |
28937 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28938 | wxSize result; | |
28939 | PyObject * obj0 = 0 ; | |
28940 | char *kwnames[] = { | |
28941 | (char *) "self", NULL | |
28942 | }; | |
28943 | ||
28944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
28945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28947 | { | |
28948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28949 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28950 | ||
28951 | wxPyEndAllowThreads(__tstate); | |
28952 | if (PyErr_Occurred()) SWIG_fail; | |
28953 | } | |
28954 | { | |
28955 | wxSize * resultptr; | |
28956 | resultptr = new wxSize((wxSize &) result); | |
28957 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
28958 | } | |
28959 | return resultobj; | |
28960 | fail: | |
28961 | return NULL; | |
28962 | } | |
28963 | ||
28964 | ||
28965 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28966 | PyObject *resultobj; | |
28967 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28968 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28969 | PyObject * obj0 = 0 ; | |
28970 | PyObject * obj1 = 0 ; | |
28971 | char *kwnames[] = { | |
28972 | (char *) "self",(char *) "child", NULL | |
28973 | }; | |
28974 | ||
28975 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
28976 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28978 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28980 | { | |
28981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28982 | (arg1)->base_AddChild(arg2); | |
28983 | ||
28984 | wxPyEndAllowThreads(__tstate); | |
28985 | if (PyErr_Occurred()) SWIG_fail; | |
28986 | } | |
28987 | Py_INCREF(Py_None); resultobj = Py_None; | |
28988 | return resultobj; | |
28989 | fail: | |
28990 | return NULL; | |
28991 | } | |
28992 | ||
28993 | ||
28994 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28995 | PyObject *resultobj; | |
28996 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28997 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28998 | PyObject * obj0 = 0 ; | |
28999 | PyObject * obj1 = 0 ; | |
29000 | char *kwnames[] = { | |
29001 | (char *) "self",(char *) "child", NULL | |
29002 | }; | |
29003 | ||
29004 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
29005 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29006 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29007 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29009 | { | |
29010 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29011 | (arg1)->base_RemoveChild(arg2); | |
29012 | ||
29013 | wxPyEndAllowThreads(__tstate); | |
29014 | if (PyErr_Occurred()) SWIG_fail; | |
29015 | } | |
29016 | Py_INCREF(Py_None); resultobj = Py_None; | |
29017 | return resultobj; | |
29018 | fail: | |
29019 | return NULL; | |
29020 | } | |
29021 | ||
29022 | ||
29023 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29024 | PyObject *resultobj; | |
29025 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29026 | bool result; | |
29027 | PyObject * obj0 = 0 ; | |
29028 | char *kwnames[] = { | |
29029 | (char *) "self", NULL | |
29030 | }; | |
29031 | ||
29032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29035 | { | |
29036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29037 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
29038 | ||
29039 | wxPyEndAllowThreads(__tstate); | |
29040 | if (PyErr_Occurred()) SWIG_fail; | |
29041 | } | |
29042 | { | |
29043 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29044 | } | |
29045 | return resultobj; | |
29046 | fail: | |
29047 | return NULL; | |
29048 | } | |
29049 | ||
29050 | ||
29051 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29052 | PyObject *resultobj; | |
29053 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29054 | wxColour *arg2 = 0 ; | |
29055 | wxColour temp2 ; | |
29056 | PyObject * obj0 = 0 ; | |
29057 | PyObject * obj1 = 0 ; | |
29058 | char *kwnames[] = { | |
29059 | (char *) "self",(char *) "c", NULL | |
29060 | }; | |
29061 | ||
29062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29065 | { | |
29066 | arg2 = &temp2; | |
29067 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29068 | } | |
29069 | { | |
29070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29071 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29072 | ||
29073 | wxPyEndAllowThreads(__tstate); | |
29074 | if (PyErr_Occurred()) SWIG_fail; | |
29075 | } | |
29076 | Py_INCREF(Py_None); resultobj = Py_None; | |
29077 | return resultobj; | |
29078 | fail: | |
29079 | return NULL; | |
29080 | } | |
29081 | ||
29082 | ||
29083 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
29084 | PyObject *obj; | |
29085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29086 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29087 | Py_INCREF(obj); | |
29088 | return Py_BuildValue((char *)""); | |
29089 | } | |
29090 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29091 | PyObject *resultobj; | |
29092 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
29093 | int arg2 = (int) 0 ; | |
29094 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29095 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29096 | wxHelpEvent *result; | |
29097 | wxPoint temp3 ; | |
29098 | PyObject * obj0 = 0 ; | |
29099 | PyObject * obj1 = 0 ; | |
29100 | PyObject * obj2 = 0 ; | |
29101 | char *kwnames[] = { | |
29102 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29103 | }; | |
29104 | ||
29105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29106 | if (obj0) { | |
29107 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
29108 | if (PyErr_Occurred()) SWIG_fail; | |
29109 | } | |
29110 | if (obj1) { | |
29111 | arg2 = (int) SWIG_AsInt(obj1); | |
29112 | if (PyErr_Occurred()) SWIG_fail; | |
29113 | } | |
29114 | if (obj2) { | |
29115 | { | |
29116 | arg3 = &temp3; | |
29117 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29118 | } | |
29119 | } | |
29120 | { | |
29121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29122 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29123 | ||
29124 | wxPyEndAllowThreads(__tstate); | |
29125 | if (PyErr_Occurred()) SWIG_fail; | |
29126 | } | |
29127 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
29128 | return resultobj; | |
29129 | fail: | |
29130 | return NULL; | |
29131 | } | |
29132 | ||
29133 | ||
29134 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29135 | PyObject *resultobj; | |
29136 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29137 | wxPoint result; | |
29138 | PyObject * obj0 = 0 ; | |
29139 | char *kwnames[] = { | |
29140 | (char *) "self", NULL | |
29141 | }; | |
29142 | ||
29143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
29144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29146 | { | |
29147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29148 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
29149 | ||
29150 | wxPyEndAllowThreads(__tstate); | |
29151 | if (PyErr_Occurred()) SWIG_fail; | |
29152 | } | |
29153 | { | |
29154 | wxPoint * resultptr; | |
29155 | resultptr = new wxPoint((wxPoint &) result); | |
29156 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29157 | } | |
29158 | return resultobj; | |
29159 | fail: | |
29160 | return NULL; | |
29161 | } | |
29162 | ||
29163 | ||
29164 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29165 | PyObject *resultobj; | |
29166 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29167 | wxPoint *arg2 = 0 ; | |
29168 | wxPoint temp2 ; | |
29169 | PyObject * obj0 = 0 ; | |
29170 | PyObject * obj1 = 0 ; | |
29171 | char *kwnames[] = { | |
29172 | (char *) "self",(char *) "pos", NULL | |
29173 | }; | |
29174 | ||
29175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
29176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29178 | { | |
29179 | arg2 = &temp2; | |
29180 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29181 | } | |
29182 | { | |
29183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29184 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29185 | ||
29186 | wxPyEndAllowThreads(__tstate); | |
29187 | if (PyErr_Occurred()) SWIG_fail; | |
29188 | } | |
29189 | Py_INCREF(Py_None); resultobj = Py_None; | |
29190 | return resultobj; | |
29191 | fail: | |
29192 | return NULL; | |
29193 | } | |
29194 | ||
29195 | ||
29196 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29197 | PyObject *resultobj; | |
29198 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29199 | wxString *result; | |
29200 | PyObject * obj0 = 0 ; | |
29201 | char *kwnames[] = { | |
29202 | (char *) "self", NULL | |
29203 | }; | |
29204 | ||
29205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
29206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29208 | { | |
29209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29210 | { | |
29211 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29212 | result = (wxString *) &_result_ref; | |
29213 | } | |
29214 | ||
29215 | wxPyEndAllowThreads(__tstate); | |
29216 | if (PyErr_Occurred()) SWIG_fail; | |
29217 | } | |
29218 | { | |
29219 | #if wxUSE_UNICODE | |
29220 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29221 | #else | |
29222 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29223 | #endif | |
29224 | } | |
29225 | return resultobj; | |
29226 | fail: | |
29227 | return NULL; | |
29228 | } | |
29229 | ||
29230 | ||
29231 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29232 | PyObject *resultobj; | |
29233 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29234 | wxString *arg2 = 0 ; | |
29235 | bool temp2 = False ; | |
29236 | PyObject * obj0 = 0 ; | |
29237 | PyObject * obj1 = 0 ; | |
29238 | char *kwnames[] = { | |
29239 | (char *) "self",(char *) "link", NULL | |
29240 | }; | |
29241 | ||
29242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
29243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29245 | { | |
29246 | arg2 = wxString_in_helper(obj1); | |
29247 | if (arg2 == NULL) SWIG_fail; | |
29248 | temp2 = True; | |
29249 | } | |
29250 | { | |
29251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29252 | (arg1)->SetLink((wxString const &)*arg2); | |
29253 | ||
29254 | wxPyEndAllowThreads(__tstate); | |
29255 | if (PyErr_Occurred()) SWIG_fail; | |
29256 | } | |
29257 | Py_INCREF(Py_None); resultobj = Py_None; | |
29258 | { | |
29259 | if (temp2) | |
29260 | delete arg2; | |
29261 | } | |
29262 | return resultobj; | |
29263 | fail: | |
29264 | { | |
29265 | if (temp2) | |
29266 | delete arg2; | |
29267 | } | |
29268 | return NULL; | |
29269 | } | |
29270 | ||
29271 | ||
29272 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29273 | PyObject *resultobj; | |
29274 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29275 | wxString *result; | |
29276 | PyObject * obj0 = 0 ; | |
29277 | char *kwnames[] = { | |
29278 | (char *) "self", NULL | |
29279 | }; | |
29280 | ||
29281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
29282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29284 | { | |
29285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29286 | { | |
29287 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29288 | result = (wxString *) &_result_ref; | |
29289 | } | |
29290 | ||
29291 | wxPyEndAllowThreads(__tstate); | |
29292 | if (PyErr_Occurred()) SWIG_fail; | |
29293 | } | |
29294 | { | |
29295 | #if wxUSE_UNICODE | |
29296 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29297 | #else | |
29298 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29299 | #endif | |
29300 | } | |
29301 | return resultobj; | |
29302 | fail: | |
29303 | return NULL; | |
29304 | } | |
29305 | ||
29306 | ||
29307 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29308 | PyObject *resultobj; | |
29309 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29310 | wxString *arg2 = 0 ; | |
29311 | bool temp2 = False ; | |
29312 | PyObject * obj0 = 0 ; | |
29313 | PyObject * obj1 = 0 ; | |
29314 | char *kwnames[] = { | |
29315 | (char *) "self",(char *) "target", NULL | |
29316 | }; | |
29317 | ||
29318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
29319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
29320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29321 | { | |
29322 | arg2 = wxString_in_helper(obj1); | |
29323 | if (arg2 == NULL) SWIG_fail; | |
29324 | temp2 = True; | |
29325 | } | |
29326 | { | |
29327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29328 | (arg1)->SetTarget((wxString const &)*arg2); | |
29329 | ||
29330 | wxPyEndAllowThreads(__tstate); | |
29331 | if (PyErr_Occurred()) SWIG_fail; | |
29332 | } | |
29333 | Py_INCREF(Py_None); resultobj = Py_None; | |
29334 | { | |
29335 | if (temp2) | |
29336 | delete arg2; | |
29337 | } | |
29338 | return resultobj; | |
29339 | fail: | |
29340 | { | |
29341 | if (temp2) | |
29342 | delete arg2; | |
29343 | } | |
29344 | return NULL; | |
29345 | } | |
29346 | ||
29347 | ||
29348 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29349 | PyObject *obj; | |
29350 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29351 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29352 | Py_INCREF(obj); | |
29353 | return Py_BuildValue((char *)""); | |
29354 | } | |
29355 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29356 | PyObject *resultobj; | |
29357 | wxWindow *arg1 = (wxWindow *) NULL ; | |
29358 | bool arg2 = (bool) True ; | |
29359 | wxContextHelp *result; | |
29360 | PyObject * obj0 = 0 ; | |
29361 | PyObject * obj1 = 0 ; | |
29362 | char *kwnames[] = { | |
29363 | (char *) "window",(char *) "doNow", NULL | |
29364 | }; | |
29365 | ||
29366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29367 | if (obj0) { | |
29368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29370 | } | |
29371 | if (obj1) { | |
29372 | arg2 = (bool) SWIG_AsBool(obj1); | |
29373 | if (PyErr_Occurred()) SWIG_fail; | |
29374 | } | |
29375 | { | |
29376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29377 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29378 | ||
29379 | wxPyEndAllowThreads(__tstate); | |
29380 | if (PyErr_Occurred()) SWIG_fail; | |
29381 | } | |
29382 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
29383 | return resultobj; | |
29384 | fail: | |
29385 | return NULL; | |
29386 | } | |
29387 | ||
29388 | ||
29389 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29390 | PyObject *resultobj; | |
29391 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29392 | PyObject * obj0 = 0 ; | |
29393 | char *kwnames[] = { | |
29394 | (char *) "self", NULL | |
29395 | }; | |
29396 | ||
29397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
29398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
29399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29400 | { | |
29401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29402 | delete arg1; | |
29403 | ||
29404 | wxPyEndAllowThreads(__tstate); | |
29405 | if (PyErr_Occurred()) SWIG_fail; | |
29406 | } | |
29407 | Py_INCREF(Py_None); resultobj = Py_None; | |
29408 | return resultobj; | |
29409 | fail: | |
29410 | return NULL; | |
29411 | } | |
29412 | ||
29413 | ||
29414 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29415 | PyObject *resultobj; | |
29416 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29417 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29418 | bool result; | |
29419 | PyObject * obj0 = 0 ; | |
29420 | PyObject * obj1 = 0 ; | |
29421 | char *kwnames[] = { | |
29422 | (char *) "self",(char *) "window", NULL | |
29423 | }; | |
29424 | ||
29425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
29427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29428 | if (obj1) { | |
29429 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29431 | } | |
29432 | { | |
29433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29434 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29435 | ||
29436 | wxPyEndAllowThreads(__tstate); | |
29437 | if (PyErr_Occurred()) SWIG_fail; | |
29438 | } | |
29439 | { | |
29440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29441 | } | |
29442 | return resultobj; | |
29443 | fail: | |
29444 | return NULL; | |
29445 | } | |
29446 | ||
29447 | ||
29448 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29449 | PyObject *resultobj; | |
29450 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29451 | bool result; | |
29452 | PyObject * obj0 = 0 ; | |
29453 | char *kwnames[] = { | |
29454 | (char *) "self", NULL | |
29455 | }; | |
29456 | ||
29457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
29458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
29459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29460 | { | |
29461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29462 | result = (bool)(arg1)->EndContextHelp(); | |
29463 | ||
29464 | wxPyEndAllowThreads(__tstate); | |
29465 | if (PyErr_Occurred()) SWIG_fail; | |
29466 | } | |
29467 | { | |
29468 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29469 | } | |
29470 | return resultobj; | |
29471 | fail: | |
29472 | return NULL; | |
29473 | } | |
29474 | ||
29475 | ||
29476 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29477 | PyObject *obj; | |
29478 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29479 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29480 | Py_INCREF(obj); | |
29481 | return Py_BuildValue((char *)""); | |
29482 | } | |
29483 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29484 | PyObject *resultobj; | |
29485 | wxWindow *arg1 = (wxWindow *) 0 ; | |
29486 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
29487 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
29488 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29489 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29490 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29491 | long arg5 = (long) wxBU_AUTODRAW ; | |
29492 | wxContextHelpButton *result; | |
29493 | wxPoint temp3 ; | |
29494 | wxSize temp4 ; | |
29495 | PyObject * obj0 = 0 ; | |
29496 | PyObject * obj1 = 0 ; | |
29497 | PyObject * obj2 = 0 ; | |
29498 | PyObject * obj3 = 0 ; | |
29499 | PyObject * obj4 = 0 ; | |
29500 | char *kwnames[] = { | |
29501 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29502 | }; | |
29503 | ||
29504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
29506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29507 | if (obj1) { | |
29508 | arg2 = (int) SWIG_AsInt(obj1); | |
29509 | if (PyErr_Occurred()) SWIG_fail; | |
29510 | } | |
29511 | if (obj2) { | |
29512 | { | |
29513 | arg3 = &temp3; | |
29514 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29515 | } | |
29516 | } | |
29517 | if (obj3) { | |
29518 | { | |
29519 | arg4 = &temp4; | |
29520 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29521 | } | |
29522 | } | |
29523 | if (obj4) { | |
29524 | arg5 = (long) SWIG_AsLong(obj4); | |
29525 | if (PyErr_Occurred()) SWIG_fail; | |
29526 | } | |
29527 | { | |
29528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29529 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29530 | ||
29531 | wxPyEndAllowThreads(__tstate); | |
29532 | if (PyErr_Occurred()) SWIG_fail; | |
29533 | } | |
29534 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
29535 | return resultobj; | |
29536 | fail: | |
29537 | return NULL; | |
29538 | } | |
29539 | ||
29540 | ||
29541 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
29542 | PyObject *obj; | |
29543 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29544 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
29545 | Py_INCREF(obj); | |
29546 | return Py_BuildValue((char *)""); | |
29547 | } | |
29548 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29549 | PyObject *resultobj; | |
29550 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29551 | wxHelpProvider *result; | |
29552 | PyObject * obj0 = 0 ; | |
29553 | char *kwnames[] = { | |
29554 | (char *) "helpProvider", NULL | |
29555 | }; | |
29556 | ||
29557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
29558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29560 | { | |
29561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29562 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
29563 | ||
29564 | wxPyEndAllowThreads(__tstate); | |
29565 | if (PyErr_Occurred()) SWIG_fail; | |
29566 | } | |
29567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
29568 | return resultobj; | |
29569 | fail: | |
29570 | return NULL; | |
29571 | } | |
29572 | ||
29573 | ||
29574 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29575 | PyObject *resultobj; | |
29576 | wxHelpProvider *result; | |
29577 | char *kwnames[] = { | |
29578 | NULL | |
29579 | }; | |
29580 | ||
29581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
29582 | { | |
29583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29584 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
29585 | ||
29586 | wxPyEndAllowThreads(__tstate); | |
29587 | if (PyErr_Occurred()) SWIG_fail; | |
29588 | } | |
29589 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
29590 | return resultobj; | |
29591 | fail: | |
29592 | return NULL; | |
29593 | } | |
29594 | ||
29595 | ||
29596 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29597 | PyObject *resultobj; | |
29598 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29599 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29600 | wxString result; | |
29601 | PyObject * obj0 = 0 ; | |
29602 | PyObject * obj1 = 0 ; | |
29603 | char *kwnames[] = { | |
29604 | (char *) "self",(char *) "window", NULL | |
29605 | }; | |
29606 | ||
29607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
29608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29612 | { | |
29613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29614 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
29615 | ||
29616 | wxPyEndAllowThreads(__tstate); | |
29617 | if (PyErr_Occurred()) SWIG_fail; | |
29618 | } | |
29619 | { | |
29620 | #if wxUSE_UNICODE | |
29621 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29622 | #else | |
29623 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29624 | #endif | |
29625 | } | |
29626 | return resultobj; | |
29627 | fail: | |
29628 | return NULL; | |
29629 | } | |
29630 | ||
29631 | ||
29632 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29633 | PyObject *resultobj; | |
29634 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29635 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29636 | bool result; | |
29637 | PyObject * obj0 = 0 ; | |
29638 | PyObject * obj1 = 0 ; | |
29639 | char *kwnames[] = { | |
29640 | (char *) "self",(char *) "window", NULL | |
29641 | }; | |
29642 | ||
29643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
29644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29646 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29648 | { | |
29649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29650 | result = (bool)(arg1)->ShowHelp(arg2); | |
29651 | ||
29652 | wxPyEndAllowThreads(__tstate); | |
29653 | if (PyErr_Occurred()) SWIG_fail; | |
29654 | } | |
29655 | { | |
29656 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29657 | } | |
29658 | return resultobj; | |
29659 | fail: | |
29660 | return NULL; | |
29661 | } | |
29662 | ||
29663 | ||
29664 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29665 | PyObject *resultobj; | |
29666 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29667 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29668 | wxString *arg3 = 0 ; | |
29669 | bool temp3 = False ; | |
29670 | PyObject * obj0 = 0 ; | |
29671 | PyObject * obj1 = 0 ; | |
29672 | PyObject * obj2 = 0 ; | |
29673 | char *kwnames[] = { | |
29674 | (char *) "self",(char *) "window",(char *) "text", NULL | |
29675 | }; | |
29676 | ||
29677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29682 | { | |
29683 | arg3 = wxString_in_helper(obj2); | |
29684 | if (arg3 == NULL) SWIG_fail; | |
29685 | temp3 = True; | |
29686 | } | |
29687 | { | |
29688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29689 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29690 | ||
29691 | wxPyEndAllowThreads(__tstate); | |
29692 | if (PyErr_Occurred()) SWIG_fail; | |
29693 | } | |
29694 | Py_INCREF(Py_None); resultobj = Py_None; | |
29695 | { | |
29696 | if (temp3) | |
29697 | delete arg3; | |
29698 | } | |
29699 | return resultobj; | |
29700 | fail: | |
29701 | { | |
29702 | if (temp3) | |
29703 | delete arg3; | |
29704 | } | |
29705 | return NULL; | |
29706 | } | |
29707 | ||
29708 | ||
29709 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29710 | PyObject *resultobj; | |
29711 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29712 | int arg2 ; | |
29713 | wxString *arg3 = 0 ; | |
29714 | bool temp3 = False ; | |
29715 | PyObject * obj0 = 0 ; | |
29716 | PyObject * obj1 = 0 ; | |
29717 | PyObject * obj2 = 0 ; | |
29718 | char *kwnames[] = { | |
29719 | (char *) "self",(char *) "id",(char *) "text", NULL | |
29720 | }; | |
29721 | ||
29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29725 | arg2 = (int) SWIG_AsInt(obj1); | |
29726 | if (PyErr_Occurred()) SWIG_fail; | |
29727 | { | |
29728 | arg3 = wxString_in_helper(obj2); | |
29729 | if (arg3 == NULL) SWIG_fail; | |
29730 | temp3 = True; | |
29731 | } | |
29732 | { | |
29733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29734 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29735 | ||
29736 | wxPyEndAllowThreads(__tstate); | |
29737 | if (PyErr_Occurred()) SWIG_fail; | |
29738 | } | |
29739 | Py_INCREF(Py_None); resultobj = Py_None; | |
29740 | { | |
29741 | if (temp3) | |
29742 | delete arg3; | |
29743 | } | |
29744 | return resultobj; | |
29745 | fail: | |
29746 | { | |
29747 | if (temp3) | |
29748 | delete arg3; | |
29749 | } | |
29750 | return NULL; | |
29751 | } | |
29752 | ||
29753 | ||
29754 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29755 | PyObject *resultobj; | |
29756 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29757 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29758 | PyObject * obj0 = 0 ; | |
29759 | PyObject * obj1 = 0 ; | |
29760 | char *kwnames[] = { | |
29761 | (char *) "self",(char *) "window", NULL | |
29762 | }; | |
29763 | ||
29764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
29765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29769 | { | |
29770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29771 | (arg1)->RemoveHelp(arg2); | |
29772 | ||
29773 | wxPyEndAllowThreads(__tstate); | |
29774 | if (PyErr_Occurred()) SWIG_fail; | |
29775 | } | |
29776 | Py_INCREF(Py_None); resultobj = Py_None; | |
29777 | return resultobj; | |
29778 | fail: | |
29779 | return NULL; | |
29780 | } | |
29781 | ||
29782 | ||
29783 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29784 | PyObject *resultobj; | |
29785 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29786 | PyObject * obj0 = 0 ; | |
29787 | char *kwnames[] = { | |
29788 | (char *) "self", NULL | |
29789 | }; | |
29790 | ||
29791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
29792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29794 | { | |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | wxHelpProvider_Destroy(arg1); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
29801 | Py_INCREF(Py_None); resultobj = Py_None; | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
29808 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29809 | PyObject *obj; | |
29810 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29811 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
29812 | Py_INCREF(obj); | |
29813 | return Py_BuildValue((char *)""); | |
29814 | } | |
29815 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29816 | PyObject *resultobj; | |
29817 | wxSimpleHelpProvider *result; | |
29818 | char *kwnames[] = { | |
29819 | NULL | |
29820 | }; | |
29821 | ||
29822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
29823 | { | |
29824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29825 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29826 | ||
29827 | wxPyEndAllowThreads(__tstate); | |
29828 | if (PyErr_Occurred()) SWIG_fail; | |
29829 | } | |
29830 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
29831 | return resultobj; | |
29832 | fail: | |
29833 | return NULL; | |
29834 | } | |
29835 | ||
29836 | ||
29837 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29838 | PyObject *obj; | |
29839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29840 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29841 | Py_INCREF(obj); | |
29842 | return Py_BuildValue((char *)""); | |
29843 | } | |
29844 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29845 | PyObject *resultobj; | |
29846 | wxBitmap *arg1 = 0 ; | |
29847 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29848 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29849 | wxGenericDragImage *result; | |
29850 | PyObject * obj0 = 0 ; | |
29851 | PyObject * obj1 = 0 ; | |
29852 | char *kwnames[] = { | |
29853 | (char *) "image",(char *) "cursor", NULL | |
29854 | }; | |
29855 | ||
29856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
29857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
29858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29859 | SWIG_fail; | |
29860 | if (arg1 == NULL) { | |
29861 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29862 | SWIG_fail; | |
29863 | } | |
29864 | if (obj1) { | |
29865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29867 | SWIG_fail; | |
29868 | if (arg2 == NULL) { | |
29869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29870 | SWIG_fail; | |
29871 | } | |
29872 | } | |
29873 | { | |
29874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29875 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29876 | ||
29877 | wxPyEndAllowThreads(__tstate); | |
29878 | if (PyErr_Occurred()) SWIG_fail; | |
29879 | } | |
29880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29881 | return resultobj; | |
29882 | fail: | |
29883 | return NULL; | |
29884 | } | |
29885 | ||
29886 | ||
29887 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29888 | PyObject *resultobj; | |
29889 | wxIcon *arg1 = 0 ; | |
29890 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29891 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29892 | wxGenericDragImage *result; | |
29893 | PyObject * obj0 = 0 ; | |
29894 | PyObject * obj1 = 0 ; | |
29895 | char *kwnames[] = { | |
29896 | (char *) "image",(char *) "cursor", NULL | |
29897 | }; | |
29898 | ||
29899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
29900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
29901 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29902 | SWIG_fail; | |
29903 | if (arg1 == NULL) { | |
29904 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29905 | SWIG_fail; | |
29906 | } | |
29907 | if (obj1) { | |
29908 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29909 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29910 | SWIG_fail; | |
29911 | if (arg2 == NULL) { | |
29912 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29913 | SWIG_fail; | |
29914 | } | |
29915 | } | |
29916 | { | |
29917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29918 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29919 | ||
29920 | wxPyEndAllowThreads(__tstate); | |
29921 | if (PyErr_Occurred()) SWIG_fail; | |
29922 | } | |
29923 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29924 | return resultobj; | |
29925 | fail: | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
29930 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29931 | PyObject *resultobj; | |
29932 | wxString *arg1 = 0 ; | |
29933 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29934 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29935 | wxGenericDragImage *result; | |
29936 | bool temp1 = False ; | |
29937 | PyObject * obj0 = 0 ; | |
29938 | PyObject * obj1 = 0 ; | |
29939 | char *kwnames[] = { | |
29940 | (char *) "str",(char *) "cursor", NULL | |
29941 | }; | |
29942 | ||
29943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29944 | { | |
29945 | arg1 = wxString_in_helper(obj0); | |
29946 | if (arg1 == NULL) SWIG_fail; | |
29947 | temp1 = True; | |
29948 | } | |
29949 | if (obj1) { | |
29950 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
29951 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29952 | SWIG_fail; | |
29953 | if (arg2 == NULL) { | |
29954 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29955 | SWIG_fail; | |
29956 | } | |
29957 | } | |
29958 | { | |
29959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29960 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29961 | ||
29962 | wxPyEndAllowThreads(__tstate); | |
29963 | if (PyErr_Occurred()) SWIG_fail; | |
29964 | } | |
29965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
29966 | { | |
29967 | if (temp1) | |
29968 | delete arg1; | |
29969 | } | |
29970 | return resultobj; | |
29971 | fail: | |
29972 | { | |
29973 | if (temp1) | |
29974 | delete arg1; | |
29975 | } | |
29976 | return NULL; | |
29977 | } | |
29978 | ||
29979 | ||
29980 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29981 | PyObject *resultobj; | |
29982 | wxPyTreeCtrl *arg1 = 0 ; | |
29983 | wxTreeItemId *arg2 = 0 ; | |
29984 | wxGenericDragImage *result; | |
29985 | PyObject * obj0 = 0 ; | |
29986 | PyObject * obj1 = 0 ; | |
29987 | char *kwnames[] = { | |
29988 | (char *) "treeCtrl",(char *) "id", NULL | |
29989 | }; | |
29990 | ||
29991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
29992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
29993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29994 | SWIG_fail; | |
29995 | if (arg1 == NULL) { | |
29996 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29997 | SWIG_fail; | |
29998 | } | |
29999 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
30000 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30001 | SWIG_fail; | |
30002 | if (arg2 == NULL) { | |
30003 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30004 | SWIG_fail; | |
30005 | } | |
30006 | { | |
30007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30008 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30009 | ||
30010 | wxPyEndAllowThreads(__tstate); | |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
30012 | } | |
30013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30014 | return resultobj; | |
30015 | fail: | |
30016 | return NULL; | |
30017 | } | |
30018 | ||
30019 | ||
30020 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30021 | PyObject *resultobj; | |
30022 | wxPyListCtrl *arg1 = 0 ; | |
30023 | long arg2 ; | |
30024 | wxGenericDragImage *result; | |
30025 | PyObject * obj0 = 0 ; | |
30026 | PyObject * obj1 = 0 ; | |
30027 | char *kwnames[] = { | |
30028 | (char *) "listCtrl",(char *) "id", NULL | |
30029 | }; | |
30030 | ||
30031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
30032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
30033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30034 | SWIG_fail; | |
30035 | if (arg1 == NULL) { | |
30036 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30037 | SWIG_fail; | |
30038 | } | |
30039 | arg2 = (long) SWIG_AsLong(obj1); | |
30040 | if (PyErr_Occurred()) SWIG_fail; | |
30041 | { | |
30042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30043 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30044 | ||
30045 | wxPyEndAllowThreads(__tstate); | |
30046 | if (PyErr_Occurred()) SWIG_fail; | |
30047 | } | |
30048 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30049 | return resultobj; | |
30050 | fail: | |
30051 | return NULL; | |
30052 | } | |
30053 | ||
30054 | ||
30055 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30056 | PyObject *resultobj; | |
30057 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30058 | PyObject * obj0 = 0 ; | |
30059 | char *kwnames[] = { | |
30060 | (char *) "self", NULL | |
30061 | }; | |
30062 | ||
30063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
30064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30066 | { | |
30067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30068 | delete arg1; | |
30069 | ||
30070 | wxPyEndAllowThreads(__tstate); | |
30071 | if (PyErr_Occurred()) SWIG_fail; | |
30072 | } | |
30073 | Py_INCREF(Py_None); resultobj = Py_None; | |
30074 | return resultobj; | |
30075 | fail: | |
30076 | return NULL; | |
30077 | } | |
30078 | ||
30079 | ||
30080 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30081 | PyObject *resultobj; | |
30082 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30083 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30084 | PyObject * obj0 = 0 ; | |
30085 | PyObject * obj1 = 0 ; | |
30086 | char *kwnames[] = { | |
30087 | (char *) "self",(char *) "bitmap", NULL | |
30088 | }; | |
30089 | ||
30090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
30091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30093 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30095 | { | |
30096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30097 | (arg1)->SetBackingBitmap(arg2); | |
30098 | ||
30099 | wxPyEndAllowThreads(__tstate); | |
30100 | if (PyErr_Occurred()) SWIG_fail; | |
30101 | } | |
30102 | Py_INCREF(Py_None); resultobj = Py_None; | |
30103 | return resultobj; | |
30104 | fail: | |
30105 | return NULL; | |
30106 | } | |
30107 | ||
30108 | ||
30109 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30110 | PyObject *resultobj; | |
30111 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30112 | wxPoint *arg2 = 0 ; | |
30113 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30114 | bool arg4 = (bool) False ; | |
30115 | wxRect *arg5 = (wxRect *) NULL ; | |
30116 | bool result; | |
30117 | wxPoint temp2 ; | |
30118 | PyObject * obj0 = 0 ; | |
30119 | PyObject * obj1 = 0 ; | |
30120 | PyObject * obj2 = 0 ; | |
30121 | PyObject * obj3 = 0 ; | |
30122 | PyObject * obj4 = 0 ; | |
30123 | char *kwnames[] = { | |
30124 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30125 | }; | |
30126 | ||
30127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30130 | { | |
30131 | arg2 = &temp2; | |
30132 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30133 | } | |
30134 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
30135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30136 | if (obj3) { | |
30137 | arg4 = (bool) SWIG_AsBool(obj3); | |
30138 | if (PyErr_Occurred()) SWIG_fail; | |
30139 | } | |
30140 | if (obj4) { | |
30141 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
30142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30143 | } | |
30144 | { | |
30145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30146 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30147 | ||
30148 | wxPyEndAllowThreads(__tstate); | |
30149 | if (PyErr_Occurred()) SWIG_fail; | |
30150 | } | |
30151 | { | |
30152 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30153 | } | |
30154 | return resultobj; | |
30155 | fail: | |
30156 | return NULL; | |
30157 | } | |
30158 | ||
30159 | ||
30160 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30161 | PyObject *resultobj; | |
30162 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30163 | wxPoint *arg2 = 0 ; | |
30164 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30165 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30166 | bool result; | |
30167 | wxPoint temp2 ; | |
30168 | PyObject * obj0 = 0 ; | |
30169 | PyObject * obj1 = 0 ; | |
30170 | PyObject * obj2 = 0 ; | |
30171 | PyObject * obj3 = 0 ; | |
30172 | char *kwnames[] = { | |
30173 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30174 | }; | |
30175 | ||
30176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
30177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30179 | { | |
30180 | arg2 = &temp2; | |
30181 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30182 | } | |
30183 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
30184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30185 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30187 | { | |
30188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30189 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30190 | ||
30191 | wxPyEndAllowThreads(__tstate); | |
30192 | if (PyErr_Occurred()) SWIG_fail; | |
30193 | } | |
30194 | { | |
30195 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30196 | } | |
30197 | return resultobj; | |
30198 | fail: | |
30199 | return NULL; | |
30200 | } | |
30201 | ||
30202 | ||
30203 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30204 | PyObject *resultobj; | |
30205 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30206 | bool result; | |
30207 | PyObject * obj0 = 0 ; | |
30208 | char *kwnames[] = { | |
30209 | (char *) "self", NULL | |
30210 | }; | |
30211 | ||
30212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
30213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30215 | { | |
30216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30217 | result = (bool)(arg1)->EndDrag(); | |
30218 | ||
30219 | wxPyEndAllowThreads(__tstate); | |
30220 | if (PyErr_Occurred()) SWIG_fail; | |
30221 | } | |
30222 | { | |
30223 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30224 | } | |
30225 | return resultobj; | |
30226 | fail: | |
30227 | return NULL; | |
30228 | } | |
30229 | ||
30230 | ||
30231 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30232 | PyObject *resultobj; | |
30233 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30234 | wxPoint *arg2 = 0 ; | |
30235 | bool result; | |
30236 | wxPoint temp2 ; | |
30237 | PyObject * obj0 = 0 ; | |
30238 | PyObject * obj1 = 0 ; | |
30239 | char *kwnames[] = { | |
30240 | (char *) "self",(char *) "pt", NULL | |
30241 | }; | |
30242 | ||
30243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
30244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30246 | { | |
30247 | arg2 = &temp2; | |
30248 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30249 | } | |
30250 | { | |
30251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30252 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30253 | ||
30254 | wxPyEndAllowThreads(__tstate); | |
30255 | if (PyErr_Occurred()) SWIG_fail; | |
30256 | } | |
30257 | { | |
30258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30259 | } | |
30260 | return resultobj; | |
30261 | fail: | |
30262 | return NULL; | |
30263 | } | |
30264 | ||
30265 | ||
30266 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30267 | PyObject *resultobj; | |
30268 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30269 | bool result; | |
30270 | PyObject * obj0 = 0 ; | |
30271 | char *kwnames[] = { | |
30272 | (char *) "self", NULL | |
30273 | }; | |
30274 | ||
30275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
30276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30278 | { | |
30279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30280 | result = (bool)(arg1)->Show(); | |
30281 | ||
30282 | wxPyEndAllowThreads(__tstate); | |
30283 | if (PyErr_Occurred()) SWIG_fail; | |
30284 | } | |
30285 | { | |
30286 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30287 | } | |
30288 | return resultobj; | |
30289 | fail: | |
30290 | return NULL; | |
30291 | } | |
30292 | ||
30293 | ||
30294 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30295 | PyObject *resultobj; | |
30296 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30297 | bool result; | |
30298 | PyObject * obj0 = 0 ; | |
30299 | char *kwnames[] = { | |
30300 | (char *) "self", NULL | |
30301 | }; | |
30302 | ||
30303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
30304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30306 | { | |
30307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30308 | result = (bool)(arg1)->Hide(); | |
30309 | ||
30310 | wxPyEndAllowThreads(__tstate); | |
30311 | if (PyErr_Occurred()) SWIG_fail; | |
30312 | } | |
30313 | { | |
30314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30315 | } | |
30316 | return resultobj; | |
30317 | fail: | |
30318 | return NULL; | |
30319 | } | |
30320 | ||
30321 | ||
30322 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30323 | PyObject *resultobj; | |
30324 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30325 | wxPoint *arg2 = 0 ; | |
30326 | wxRect result; | |
30327 | wxPoint temp2 ; | |
30328 | PyObject * obj0 = 0 ; | |
30329 | PyObject * obj1 = 0 ; | |
30330 | char *kwnames[] = { | |
30331 | (char *) "self",(char *) "pos", NULL | |
30332 | }; | |
30333 | ||
30334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
30335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30337 | { | |
30338 | arg2 = &temp2; | |
30339 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30340 | } | |
30341 | { | |
30342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30343 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30344 | ||
30345 | wxPyEndAllowThreads(__tstate); | |
30346 | if (PyErr_Occurred()) SWIG_fail; | |
30347 | } | |
30348 | { | |
30349 | wxRect * resultptr; | |
30350 | resultptr = new wxRect((wxRect &) result); | |
30351 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
30352 | } | |
30353 | return resultobj; | |
30354 | fail: | |
30355 | return NULL; | |
30356 | } | |
30357 | ||
30358 | ||
30359 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30360 | PyObject *resultobj; | |
30361 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30362 | wxDC *arg2 = 0 ; | |
30363 | wxPoint *arg3 = 0 ; | |
30364 | bool result; | |
30365 | wxPoint temp3 ; | |
30366 | PyObject * obj0 = 0 ; | |
30367 | PyObject * obj1 = 0 ; | |
30368 | PyObject * obj2 = 0 ; | |
30369 | char *kwnames[] = { | |
30370 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30371 | }; | |
30372 | ||
30373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30376 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30377 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30378 | SWIG_fail; | |
30379 | if (arg2 == NULL) { | |
30380 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30381 | SWIG_fail; | |
30382 | } | |
30383 | { | |
30384 | arg3 = &temp3; | |
30385 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30386 | } | |
30387 | { | |
30388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30389 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30390 | ||
30391 | wxPyEndAllowThreads(__tstate); | |
30392 | if (PyErr_Occurred()) SWIG_fail; | |
30393 | } | |
30394 | { | |
30395 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30396 | } | |
30397 | return resultobj; | |
30398 | fail: | |
30399 | return NULL; | |
30400 | } | |
30401 | ||
30402 | ||
30403 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30404 | PyObject *resultobj; | |
30405 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30406 | wxDC *arg2 = 0 ; | |
30407 | wxMemoryDC *arg3 = 0 ; | |
30408 | wxRect *arg4 = 0 ; | |
30409 | wxRect *arg5 = 0 ; | |
30410 | bool result; | |
30411 | wxRect temp4 ; | |
30412 | wxRect temp5 ; | |
30413 | PyObject * obj0 = 0 ; | |
30414 | PyObject * obj1 = 0 ; | |
30415 | PyObject * obj2 = 0 ; | |
30416 | PyObject * obj3 = 0 ; | |
30417 | PyObject * obj4 = 0 ; | |
30418 | char *kwnames[] = { | |
30419 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30420 | }; | |
30421 | ||
30422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30426 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30427 | SWIG_fail; | |
30428 | if (arg2 == NULL) { | |
30429 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30430 | SWIG_fail; | |
30431 | } | |
30432 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
30433 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30434 | SWIG_fail; | |
30435 | if (arg3 == NULL) { | |
30436 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30437 | SWIG_fail; | |
30438 | } | |
30439 | { | |
30440 | arg4 = &temp4; | |
30441 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30442 | } | |
30443 | { | |
30444 | arg5 = &temp5; | |
30445 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30446 | } | |
30447 | { | |
30448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30449 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30450 | ||
30451 | wxPyEndAllowThreads(__tstate); | |
30452 | if (PyErr_Occurred()) SWIG_fail; | |
30453 | } | |
30454 | { | |
30455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30456 | } | |
30457 | return resultobj; | |
30458 | fail: | |
30459 | return NULL; | |
30460 | } | |
30461 | ||
30462 | ||
30463 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30464 | PyObject *resultobj; | |
30465 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30466 | wxPoint *arg2 = 0 ; | |
30467 | wxPoint *arg3 = 0 ; | |
30468 | bool arg4 ; | |
30469 | bool arg5 ; | |
30470 | bool result; | |
30471 | wxPoint temp2 ; | |
30472 | wxPoint temp3 ; | |
30473 | PyObject * obj0 = 0 ; | |
30474 | PyObject * obj1 = 0 ; | |
30475 | PyObject * obj2 = 0 ; | |
30476 | PyObject * obj3 = 0 ; | |
30477 | PyObject * obj4 = 0 ; | |
30478 | char *kwnames[] = { | |
30479 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30480 | }; | |
30481 | ||
30482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
30484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30485 | { | |
30486 | arg2 = &temp2; | |
30487 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30488 | } | |
30489 | { | |
30490 | arg3 = &temp3; | |
30491 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30492 | } | |
30493 | arg4 = (bool) SWIG_AsBool(obj3); | |
30494 | if (PyErr_Occurred()) SWIG_fail; | |
30495 | arg5 = (bool) SWIG_AsBool(obj4); | |
30496 | if (PyErr_Occurred()) SWIG_fail; | |
30497 | { | |
30498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30499 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
30500 | ||
30501 | wxPyEndAllowThreads(__tstate); | |
30502 | if (PyErr_Occurred()) SWIG_fail; | |
30503 | } | |
30504 | { | |
30505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30506 | } | |
30507 | return resultobj; | |
30508 | fail: | |
30509 | return NULL; | |
30510 | } | |
30511 | ||
30512 | ||
30513 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
30514 | PyObject *obj; | |
30515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30516 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
30517 | Py_INCREF(obj); | |
30518 | return Py_BuildValue((char *)""); | |
30519 | } | |
30520 | static PyMethodDef SwigMethods[] = { | |
30521 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
30522 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
30523 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
30524 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
30525 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30526 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
30527 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30528 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30529 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30530 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30531 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30532 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30533 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30534 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30535 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30536 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30537 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30538 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30539 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
30540 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
30541 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
30542 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30543 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30544 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30545 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30546 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30547 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30548 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30549 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30550 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
30551 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
30552 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
30553 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
30554 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
30555 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
30556 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30557 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30558 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30559 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
30560 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30561 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30562 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30563 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30564 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30565 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30566 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30567 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30568 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30569 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30570 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30571 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30572 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30573 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
121b9a67 RD |
30574 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
30575 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
30576 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
30577 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30578 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30579 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
30580 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
30581 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
30582 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
30583 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30584 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30585 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30586 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30587 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30588 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30589 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30590 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30591 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30592 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
30593 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30594 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30595 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30596 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
30597 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30598 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30599 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
30600 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30601 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30602 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
30603 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
30604 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
30605 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
30606 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
30607 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30608 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30609 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
30610 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30611 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30612 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
30613 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
30614 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
30615 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
30616 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30617 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
30618 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
30619 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
30620 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30621 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30622 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
30623 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
30624 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30625 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30626 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30627 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
30628 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
30629 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30630 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30631 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
30632 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30633 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30634 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30635 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30636 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
30637 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30638 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30639 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30640 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30641 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
30642 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
30643 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30644 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
30645 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
30646 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
30647 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, | |
30648 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
30649 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30650 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30651 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30652 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30653 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30654 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30655 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30656 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30657 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30658 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30659 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30660 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30661 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
30662 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30663 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30664 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
30665 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30666 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30667 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30668 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30669 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30670 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30671 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30672 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30673 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
30674 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
30675 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
30676 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30677 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30678 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30679 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30680 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30681 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30682 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
30683 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
30684 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
30685 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
30686 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
30687 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
30688 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
30689 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30690 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30691 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30692 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30693 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30694 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
30695 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
30696 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
30697 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
30698 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
30699 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
30700 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
30701 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
30702 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30703 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30704 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30705 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30706 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
30707 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
30708 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
30709 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30710 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30711 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30712 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30713 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
30714 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
30715 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
30716 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
30717 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
30718 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
30719 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
30720 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30721 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30722 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30723 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30724 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30725 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
30726 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30727 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30728 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30729 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
30730 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30731 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
30732 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30733 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
30734 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
30735 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
30736 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
30737 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30738 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30739 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30740 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30741 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
30742 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30743 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30744 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30745 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30746 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
30747 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
30748 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30749 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30750 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30751 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30752 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30753 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30754 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30755 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30756 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30757 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30758 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30759 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
30760 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30761 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30762 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30763 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30764 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30765 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
30766 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30767 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30768 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30769 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30770 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
30771 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
30772 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30773 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30774 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
30775 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30776 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30777 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30778 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30779 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30780 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30781 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30782 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30783 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
30784 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30785 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30786 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
30787 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
30788 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30789 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30790 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30791 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
30792 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30793 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30794 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30795 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30796 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30797 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
30798 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
30799 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
30800 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
30801 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30802 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30803 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30804 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30805 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30806 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30807 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30808 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30809 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30810 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30811 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30812 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30813 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30814 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30815 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30816 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
30817 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
30818 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
30819 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
30820 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
30821 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30822 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
30823 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30824 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30825 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30826 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30827 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30828 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30829 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
30830 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
30831 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
30832 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30833 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30834 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30835 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30836 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30837 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30838 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30839 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30840 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30841 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30842 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
30843 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
30844 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
30845 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
30846 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
30847 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30848 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
30849 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
30850 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30851 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30852 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30853 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30854 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30855 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
30856 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
30857 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30858 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30859 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30860 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
30861 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
30862 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30863 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30864 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
30865 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
30866 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30867 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
30868 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
30869 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
30870 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30871 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30872 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
30873 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30874 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
30875 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
30876 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30877 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30878 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30879 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
30880 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
30881 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30882 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30883 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30884 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30885 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30886 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30887 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30888 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30889 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30890 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30891 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30892 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30893 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30894 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30895 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30896 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30897 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30898 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30899 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30900 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30901 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30902 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30903 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30904 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30905 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30906 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30907 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30908 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30909 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30910 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30911 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30912 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30913 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30914 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30915 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30916 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
30917 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
30918 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
30919 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
30920 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30921 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30922 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30923 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30924 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30925 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30926 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30927 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30928 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30929 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30930 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30931 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30932 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30933 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30934 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30935 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30936 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30937 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30938 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30939 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30940 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30941 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30942 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30943 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30944 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30945 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30946 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30947 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30948 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30949 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30950 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30951 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30952 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30953 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30954 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30955 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30956 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30957 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
30958 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30959 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30960 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30961 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30962 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30963 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30964 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30965 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30966 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30967 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30968 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30969 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30970 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30971 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30972 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30973 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30974 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30975 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30976 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30977 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30978 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30979 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30980 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30981 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30982 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30983 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30984 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30985 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30986 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30987 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30988 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30989 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30990 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30991 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30992 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30993 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30994 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30995 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30996 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30997 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30998 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30999 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31000 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31001 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31002 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31003 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31004 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31005 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31006 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31007 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31008 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31009 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31010 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31011 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31012 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31013 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31014 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31015 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31016 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31017 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31018 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31019 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31020 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31021 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31022 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31023 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31024 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31025 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31026 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31027 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31028 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31029 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31030 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31031 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31032 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31033 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31034 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31035 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31036 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31037 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31038 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31039 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31040 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31041 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31042 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31043 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31044 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31045 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31046 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31047 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31048 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31049 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31050 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31051 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31052 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31053 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31054 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31055 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31056 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31057 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31058 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31059 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31060 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31061 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31062 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31063 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31064 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31065 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31066 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31067 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31068 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31069 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31070 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31071 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31072 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31073 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31074 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31075 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31076 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31077 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31078 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31079 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31080 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31081 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31082 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31083 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31084 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31085 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31086 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31087 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31088 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31089 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31090 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31091 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31092 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31093 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31094 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31095 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, | |
31096 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
31097 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31098 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31099 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31100 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31101 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31102 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31103 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31104 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31105 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31106 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31107 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31108 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31109 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31110 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31111 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31112 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31113 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31114 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31115 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31116 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31117 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31118 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31119 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31120 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31121 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31122 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31123 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31124 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31125 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
31126 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31127 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
31128 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31129 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31130 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31131 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31132 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31133 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31134 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31135 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31136 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31137 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31138 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31139 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31140 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31141 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31142 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31143 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31144 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31145 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31146 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31147 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31148 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31149 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31150 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31151 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31152 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31153 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31154 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31155 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31156 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31157 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31158 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31159 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31160 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31161 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31162 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31163 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31164 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31165 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31166 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31167 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31168 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31169 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
31170 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
31171 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31172 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31173 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31174 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31175 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31176 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31177 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31178 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31179 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31180 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31181 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31182 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31183 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31184 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31185 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31186 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31187 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31188 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31189 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31190 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31191 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31192 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31193 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31194 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31195 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31196 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31197 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31198 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31199 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
31200 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31201 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31202 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31203 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31204 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31205 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31206 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31207 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31208 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31209 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31210 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31211 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31212 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31213 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31214 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31215 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31216 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31217 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31218 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31219 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31220 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31221 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31222 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31223 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31224 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31226 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31227 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31228 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31241 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31242 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31243 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31244 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31245 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31247 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
31248 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31249 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31252 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31253 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31254 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31255 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31256 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31257 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31258 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31259 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31260 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31261 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31262 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31263 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31264 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31265 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31266 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31267 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31268 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31269 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31270 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31271 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31272 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31273 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31274 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31275 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
31276 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, | |
31277 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31278 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
31279 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31280 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31281 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31282 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31283 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31284 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31285 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31286 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31287 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31288 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31289 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31290 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31291 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31292 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31293 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31295 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
31296 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
31297 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
31299 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31302 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31303 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31304 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31305 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31306 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31307 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31308 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31309 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31311 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31312 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31313 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31314 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31315 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31316 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31317 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31318 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31319 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
31320 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, | |
31321 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31322 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31323 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
31325 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31327 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31328 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31329 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31335 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31336 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31337 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31338 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31339 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31340 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
31343 | { NULL, NULL } | |
31344 | }; | |
31345 | ||
31346 | ||
31347 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31348 | ||
31349 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31350 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31351 | } | |
31352 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31353 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31354 | } | |
31355 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31356 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31357 | } | |
31358 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31359 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31360 | } | |
31361 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31362 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31363 | } | |
31364 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31365 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31366 | } | |
31367 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31368 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31369 | } | |
31370 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31371 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31372 | } | |
31373 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31374 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31375 | } | |
31376 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31377 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31378 | } | |
31379 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31380 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31381 | } | |
31382 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31383 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31384 | } | |
31385 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31386 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31387 | } | |
31388 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31389 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31390 | } | |
31391 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31392 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31393 | } | |
31394 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31395 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31396 | } | |
31397 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31398 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31399 | } | |
31400 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31401 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31402 | } | |
31403 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31404 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31405 | } | |
31406 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31407 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31408 | } | |
31409 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31410 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31411 | } | |
31412 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31413 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31414 | } | |
31415 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31416 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31417 | } | |
31418 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31419 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31420 | } | |
31421 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31422 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31423 | } | |
31424 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31425 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31426 | } | |
31427 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31428 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31429 | } | |
31430 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31431 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31432 | } | |
31433 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31434 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31435 | } | |
31436 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31437 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31438 | } | |
31439 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31440 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31441 | } | |
31442 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31443 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31444 | } | |
31445 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31446 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31447 | } | |
31448 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31449 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31450 | } | |
31451 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31452 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31453 | } | |
31454 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31455 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31456 | } | |
31457 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31458 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31459 | } | |
31460 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31461 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31462 | } | |
31463 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31464 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31465 | } | |
31466 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31467 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31468 | } | |
31469 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31470 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31471 | } | |
31472 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31473 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31474 | } | |
31475 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31476 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31477 | } | |
31478 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31479 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31480 | } | |
31481 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31482 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31483 | } | |
31484 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31485 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31486 | } | |
31487 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31488 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31489 | } | |
31490 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31491 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31492 | } | |
31493 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31494 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31495 | } | |
31496 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31497 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31498 | } | |
31499 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31500 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31501 | } | |
31502 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31503 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31504 | } | |
31505 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
31506 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31507 | } | |
31508 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
31509 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31510 | } | |
31511 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
31512 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31513 | } | |
31514 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
31515 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
31516 | } | |
31517 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
31518 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
31519 | } | |
31520 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
31521 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
31522 | } | |
31523 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
31524 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31525 | } | |
31526 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
31527 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
31528 | } | |
31529 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
31530 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31531 | } | |
31532 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
31533 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
31534 | } | |
31535 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
31536 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
31537 | } | |
31538 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
31539 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
31540 | } | |
31541 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
31542 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
31543 | } | |
31544 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
31545 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31546 | } | |
31547 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
31548 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
31549 | } | |
31550 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
31551 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
31552 | } | |
31553 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
31554 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
31555 | } | |
31556 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
31557 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
31558 | } | |
31559 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
31560 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31561 | } | |
31562 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
31563 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
31564 | } | |
31565 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
31566 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
31567 | } | |
31568 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
31569 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
31570 | } | |
31571 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
31572 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
31573 | } | |
31574 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
31575 | return (void *)((wxControl *) ((wxGauge *) x)); | |
31576 | } | |
31577 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
31578 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
31579 | } | |
31580 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
31581 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
31582 | } | |
31583 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
31584 | return (void *)((wxControl *) ((wxButton *) x)); | |
31585 | } | |
31586 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
31587 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
31588 | } | |
31589 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
31590 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31591 | } | |
31592 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
31593 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
31594 | } | |
31595 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
31596 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
31597 | } | |
31598 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
31599 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
31600 | } | |
31601 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
31602 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
31603 | } | |
31604 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
31605 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
31606 | } | |
31607 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
31608 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
31609 | } | |
31610 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
31611 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
31612 | } | |
31613 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
31614 | return (void *)((wxControl *) ((wxSlider *) x)); | |
31615 | } | |
31616 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
31617 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
31618 | } | |
31619 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
31620 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
31621 | } | |
31622 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
31623 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
31624 | } | |
31625 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
31626 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
31627 | } | |
31628 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
31629 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
31630 | } | |
31631 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
31632 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
31633 | } | |
31634 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
31635 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31636 | } | |
31637 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
31638 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31639 | } | |
31640 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
31641 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31642 | } | |
31643 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
31644 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
31645 | } | |
31646 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
31647 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31648 | } | |
31649 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
31650 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31651 | } | |
31652 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
31653 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31654 | } | |
31655 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
31656 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31657 | } | |
31658 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31659 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31660 | } | |
31661 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31662 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31663 | } | |
31664 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31665 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31666 | } | |
31667 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
31668 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31669 | } | |
31670 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31671 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31672 | } | |
31673 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
31674 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31675 | } | |
31676 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
31677 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31678 | } | |
31679 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31680 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31681 | } | |
31682 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31683 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31684 | } | |
31685 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
31686 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31687 | } | |
31688 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
31689 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31690 | } | |
31691 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
31692 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31693 | } | |
31694 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
31695 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31696 | } | |
31697 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
31698 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31699 | } | |
31700 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31701 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31702 | } | |
31703 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
31704 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31705 | } | |
31706 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
31707 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31708 | } | |
31709 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31711 | } | |
31712 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
31713 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31714 | } | |
31715 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
31716 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31717 | } | |
31718 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
31719 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31720 | } | |
31721 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
31722 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31723 | } | |
31724 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
31725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31726 | } | |
31727 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
31728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31729 | } | |
31730 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
31731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31732 | } | |
31733 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
31734 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31735 | } | |
31736 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
31737 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31738 | } | |
31739 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
31740 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31741 | } | |
31742 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
31743 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31744 | } | |
31745 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
31746 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31747 | } | |
31748 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
31749 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31750 | } | |
31751 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
31752 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31753 | } | |
31754 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
31755 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31756 | } | |
31757 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
31758 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31759 | } | |
31760 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
31761 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31762 | } | |
31763 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
31764 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
31765 | } | |
31766 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
31767 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31768 | } | |
31769 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
31770 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31771 | } | |
31772 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
31773 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31774 | } | |
31775 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
31776 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
31777 | } | |
31778 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
31779 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
31780 | } | |
31781 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
31782 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
31783 | } | |
31784 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
31785 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
31786 | } | |
31787 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
31788 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31789 | } | |
31790 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
31791 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31792 | } | |
31793 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
31794 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
31795 | } | |
31796 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31797 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31798 | } | |
31799 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31800 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31801 | } | |
31802 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31803 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31804 | } | |
31805 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31806 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31807 | } | |
31808 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31809 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31810 | } | |
31811 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
31812 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31813 | } | |
31814 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
31815 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31816 | } | |
31817 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31818 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31819 | } | |
31820 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31821 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31822 | } | |
31823 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31824 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31825 | } | |
31826 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31827 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31828 | } | |
31829 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
31830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31831 | } | |
31832 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
31833 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31834 | } | |
31835 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31836 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31837 | } | |
31838 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31839 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31840 | } | |
31841 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31842 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31843 | } | |
31844 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31845 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31846 | } | |
31847 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31848 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31849 | } | |
31850 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
31851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31852 | } | |
31853 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
31854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31855 | } | |
31856 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
31857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31858 | } | |
31859 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31860 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31861 | } | |
31862 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31863 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31864 | } | |
31865 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31866 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31867 | } | |
31868 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31869 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31870 | } | |
31871 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31872 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31873 | } | |
31874 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31875 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31876 | } | |
31877 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
31878 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31879 | } | |
31880 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31882 | } | |
31883 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
31884 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31885 | } | |
31886 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
31887 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31888 | } | |
31889 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
31890 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31891 | } | |
31892 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31893 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31894 | } | |
31895 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31896 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31897 | } | |
31898 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31899 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31900 | } | |
31901 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31903 | } | |
31904 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31905 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31906 | } | |
31907 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31908 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31909 | } | |
31910 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31911 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31912 | } | |
31913 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31915 | } | |
31916 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31917 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31918 | } | |
31919 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31920 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31921 | } | |
31922 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31923 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31924 | } | |
31925 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31926 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31927 | } | |
31928 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31929 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31930 | } | |
31931 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31933 | } | |
31934 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31936 | } | |
31937 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31938 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31939 | } | |
31940 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31941 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31942 | } | |
31943 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31945 | } | |
31946 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31947 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31948 | } | |
31949 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31950 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31951 | } | |
31952 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31953 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31954 | } | |
31955 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31956 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31957 | } | |
31958 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31959 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31960 | } | |
31961 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31962 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31963 | } | |
31964 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31965 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31966 | } | |
31967 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31968 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31969 | } | |
31970 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31971 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31972 | } | |
31973 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31974 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31975 | } | |
31976 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31977 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31978 | } | |
31979 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31980 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31981 | } | |
31982 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31983 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31984 | } | |
31985 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31986 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31987 | } | |
31988 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31989 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31990 | } | |
31991 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31992 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31993 | } | |
31994 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31995 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31996 | } | |
31997 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31998 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31999 | } | |
32000 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32001 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32002 | } | |
32003 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32004 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32005 | } | |
32006 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32007 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32008 | } | |
32009 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32010 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32011 | } | |
32012 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32013 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32014 | } | |
32015 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32016 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32017 | } | |
32018 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32019 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32020 | } | |
32021 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
32022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32023 | } | |
32024 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
32025 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32026 | } | |
32027 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
32028 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32029 | } | |
32030 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32031 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32032 | } | |
32033 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
32034 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32035 | } | |
32036 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
32037 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32038 | } | |
32039 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32041 | } | |
32042 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32043 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32044 | } | |
32045 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32046 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32047 | } | |
32048 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32049 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32050 | } | |
32051 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32052 | return (void *)((wxObject *) ((wxImage *) x)); | |
32053 | } | |
32054 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32055 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32056 | } | |
32057 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32058 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32059 | } | |
32060 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
32061 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32062 | } | |
32063 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
32064 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32065 | } | |
32066 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
32067 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32068 | } | |
32069 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32070 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32071 | } | |
32072 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32073 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32074 | } | |
32075 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32076 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32077 | } | |
32078 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32079 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32080 | } | |
32081 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32082 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32083 | } | |
32084 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32085 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32086 | } | |
32087 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32088 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32089 | } | |
32090 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32092 | } | |
32093 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32094 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32095 | } | |
32096 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32097 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32098 | } | |
32099 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32100 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32101 | } | |
32102 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32103 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32104 | } | |
32105 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32106 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32107 | } | |
32108 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32109 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32110 | } | |
32111 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32112 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32113 | } | |
32114 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32115 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32116 | } | |
32117 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32118 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32119 | } | |
32120 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32121 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32122 | } | |
32123 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32124 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32125 | } | |
32126 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32127 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32128 | } | |
32129 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32130 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32131 | } | |
32132 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32133 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32134 | } | |
32135 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32136 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32137 | } | |
32138 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32139 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32140 | } | |
32141 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32142 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32143 | } | |
32144 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32145 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32146 | } | |
32147 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32148 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32149 | } | |
32150 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32151 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32152 | } | |
32153 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32154 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32155 | } | |
32156 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32157 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32158 | } | |
32159 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32160 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32161 | } | |
32162 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32163 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32164 | } | |
32165 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32166 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32167 | } | |
32168 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32169 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32170 | } | |
32171 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32172 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32173 | } | |
32174 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32175 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32176 | } | |
32177 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32178 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32179 | } | |
32180 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32181 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32182 | } | |
32183 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32184 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32185 | } | |
32186 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32187 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32188 | } | |
32189 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32190 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32191 | } | |
32192 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32193 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32194 | } | |
32195 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32196 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32197 | } | |
32198 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32199 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32200 | } | |
32201 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32202 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32203 | } | |
32204 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32205 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32206 | } | |
32207 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32208 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32209 | } | |
32210 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32211 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32212 | } | |
32213 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32214 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32215 | } | |
32216 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32217 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32218 | } | |
32219 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32220 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32221 | } | |
32222 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32223 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32224 | } | |
32225 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32226 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32227 | } | |
32228 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32229 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32230 | } | |
32231 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32232 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32233 | } | |
32234 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32235 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32236 | } | |
32237 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32238 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32239 | } | |
32240 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32241 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32242 | } | |
32243 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32244 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32245 | } | |
32246 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32247 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32248 | } | |
32249 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32250 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32251 | } | |
32252 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32253 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32254 | } | |
32255 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32256 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32257 | } | |
32258 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32259 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32260 | } | |
32261 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32262 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32263 | } | |
32264 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32265 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32266 | } | |
32267 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32268 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32269 | } | |
32270 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32271 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32272 | } | |
32273 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32274 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32275 | } | |
32276 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32277 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32278 | } | |
32279 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32280 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32281 | } | |
32282 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32283 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32284 | } | |
32285 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32286 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32287 | } | |
32288 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32289 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32290 | } | |
32291 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32292 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32293 | } | |
32294 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
32295 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32296 | } | |
32297 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
32298 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32299 | } | |
32300 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32301 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32302 | } | |
32303 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32304 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32305 | } | |
32306 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
32307 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
32308 | } | |
32309 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32310 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32311 | } | |
32312 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32313 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32314 | } | |
32315 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32316 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32317 | } | |
32318 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32319 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32320 | } | |
32321 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32322 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32323 | } | |
32324 | static swig_type_info _swigt__p_wxTextUrlEvent[] = {{"_p_wxTextUrlEvent", 0, "wxTextUrlEvent *", 0, 0, 0, 0},{"_p_wxTextUrlEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32325 | static swig_type_info _swigt__p_wxBookCtrlEvent[] = {{"_p_wxBookCtrlEvent", 0, "wxBookCtrlEvent *", 0, 0, 0, 0},{"_p_wxBookCtrlEvent", 0, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxBookCtrlEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32326 | static swig_type_info _swigt__p_wxSizer[] = {{"_p_wxSizer", 0, "wxSizer *", 0, 0, 0, 0},{"_p_wxSizer", 0, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxSizer, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxSizer, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32327 | static swig_type_info _swigt__p_wxCheckBox[] = {{"_p_wxCheckBox", 0, "wxCheckBox *", 0, 0, 0, 0},{"_p_wxCheckBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32328 | static swig_type_info _swigt__p_wxPyTreeCtrl[] = {{"_p_wxPyTreeCtrl", 0, "wxPyTreeCtrl *", 0, 0, 0, 0},{"_p_wxPyTreeCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32329 | static swig_type_info _swigt__p_wxEvent[] = {{"_p_wxEvent", 0, "wxEvent *", 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxEvent", 0, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32330 | static swig_type_info _swigt__p_wxGenericDirCtrl[] = {{"_p_wxGenericDirCtrl", 0, "wxGenericDirCtrl *", 0, 0, 0, 0},{"_p_wxGenericDirCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32331 | static swig_type_info _swigt__p_bool[] = {{"_p_bool", 0, "bool *", 0, 0, 0, 0},{"_p_bool", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32332 | static swig_type_info _swigt__p_wxPyTreeItemData[] = {{"_p_wxPyTreeItemData", 0, "wxPyTreeItemData *", 0, 0, 0, 0},{"_p_wxPyTreeItemData", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32333 | static swig_type_info _swigt__p_wxItemContainer[] = {{"_p_wxItemContainer", 0, "wxItemContainer *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxItemContainer, 0, 0, 0, 0, 0},{"_p_wxItemContainer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32334 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32335 | static swig_type_info _swigt__p_wxDirFilterListCtrl[] = {{"_p_wxDirFilterListCtrl", 0, "wxDirFilterListCtrl *", 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32336 | static swig_type_info _swigt__p_wxStaticLine[] = {{"_p_wxStaticLine", 0, "wxStaticLine *", 0, 0, 0, 0},{"_p_wxStaticLine", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32337 | static swig_type_info _swigt__p_wxControl[] = {{"_p_wxControl", 0, "wxControl *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControl", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxControl, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxControl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32338 | static swig_type_info _swigt__p_wxPyControl[] = {{"_p_wxPyControl", 0, "wxPyControl *", 0, 0, 0, 0},{"_p_wxPyControl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32339 | static swig_type_info _swigt__p_wxGauge[] = {{"_p_wxGauge", 0, "wxGauge *", 0, 0, 0, 0},{"_p_wxGauge", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32340 | static swig_type_info _swigt__p_wxToolBarBase[] = {{"_p_wxToolBarBase", 0, "wxToolBarBase *", 0, 0, 0, 0},{"_p_wxToolBarBase", 0, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxToolBarBase, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32341 | static swig_type_info _swigt__p_wxFont[] = {{"_p_wxFont", 0, "wxFont *", 0, 0, 0, 0},{"_p_wxFont", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32342 | static swig_type_info _swigt__p_wxToggleButton[] = {{"_p_wxToggleButton", 0, "wxToggleButton *", 0, 0, 0, 0},{"_p_wxToggleButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32343 | static swig_type_info _swigt__p_wxRadioButton[] = {{"_p_wxRadioButton", 0, "wxRadioButton *", 0, 0, 0, 0},{"_p_wxRadioButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32344 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxChoice, 0, 0, 0, 0, 0},{"_p_wxChoice", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32345 | static swig_type_info _swigt__p_wxMemoryDC[] = {{"_p_wxMemoryDC", 0, "wxMemoryDC *", 0, 0, 0, 0},{"_p_wxMemoryDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32346 | static swig_type_info _swigt__p_wxListItemAttr[] = {{"_p_wxListItemAttr", 0, "wxListItemAttr *", 0, 0, 0, 0},{"_p_wxListItemAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32347 | static swig_type_info _swigt__p_void[] = {{"_p_void", 0, "void *", 0, 0, 0, 0},{"_p_void", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32348 | static swig_type_info _swigt__p_int[] = {{"_p_int", 0, "int *", 0, 0, 0, 0},{"_p_int", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32349 | static swig_type_info _swigt__p_wxSize[] = {{"_p_wxSize", 0, "wxSize *", 0, 0, 0, 0},{"_p_wxSize", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32350 | static swig_type_info _swigt__p_wxDC[] = {{"_p_wxDC", 0, "wxDC *", 0, 0, 0, 0},{"_p_wxDC", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32351 | static swig_type_info _swigt__p_wxListView[] = {{"_p_wxListView", 0, "wxListView *", 0, 0, 0, 0},{"_p_wxListView", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32352 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32353 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32354 | static swig_type_info _swigt__p_wxTextCtrl[] = {{"_p_wxTextCtrl", 0, "wxTextCtrl *", 0, 0, 0, 0},{"_p_wxTextCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32355 | static swig_type_info _swigt__p_wxNotebook[] = {{"_p_wxNotebook", 0, "wxNotebook *", 0, 0, 0, 0},{"_p_wxNotebook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32356 | static swig_type_info _swigt__p_wxNotifyEvent[] = {{"_p_wxNotifyEvent", 0, "wxNotifyEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxNotifyEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32357 | static swig_type_info _swigt__p_wxArrayString[] = {{"_p_wxArrayString", 0, "wxArrayString *", 0, 0, 0, 0},{"_p_wxArrayString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32358 | static swig_type_info _swigt__p_wxListbook[] = {{"_p_wxListbook", 0, "wxListbook *", 0, 0, 0, 0},{"_p_wxListbook", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32359 | static swig_type_info _swigt__p_wxStaticBitmap[] = {{"_p_wxStaticBitmap", 0, "wxStaticBitmap *", 0, 0, 0, 0},{"_p_wxStaticBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32360 | static swig_type_info _swigt__p_wxSlider[] = {{"_p_wxSlider", 0, "wxSlider *", 0, 0, 0, 0},{"_p_wxSlider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32361 | static swig_type_info _swigt__p_wxStaticBox[] = {{"_p_wxStaticBox", 0, "wxStaticBox *", 0, 0, 0, 0},{"_p_wxStaticBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32362 | static swig_type_info _swigt__p_wxArrayInt[] = {{"_p_wxArrayInt", 0, "wxArrayInt *", 0, 0, 0, 0},{"_p_wxArrayInt", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32363 | static swig_type_info _swigt__p_wxContextHelp[] = {{"_p_wxContextHelp", 0, "wxContextHelp *", 0, 0, 0, 0},{"_p_wxContextHelp", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32364 | static swig_type_info _swigt__p_long[] = {{"_p_long", 0, "long *", 0, 0, 0, 0},{"_p_long", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32365 | static swig_type_info _swigt__p_wxEvtHandler[] = {{"_p_wxEvtHandler", 0, "wxEvtHandler *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", 0, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxEvtHandler, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32366 | static swig_type_info _swigt__p_wxListEvent[] = {{"_p_wxListEvent", 0, "wxListEvent *", 0, 0, 0, 0},{"_p_wxListEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32367 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32368 | static swig_type_info _swigt__p_wxListBox[] = {{"_p_wxListBox", 0, "wxListBox *", 0, 0, 0, 0},{"_p_wxListBox", 0, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxListBox, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32369 | static swig_type_info _swigt__p_wxBookCtrl[] = {{"_p_wxBookCtrl", 0, "wxBookCtrl *", 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxBookCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32370 | static swig_type_info _swigt__p_wxSpinButton[] = {{"_p_wxSpinButton", 0, "wxSpinButton *", 0, 0, 0, 0},{"_p_wxSpinButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32371 | static swig_type_info _swigt__p_wxButton[] = {{"_p_wxButton", 0, "wxButton *", 0, 0, 0, 0},{"_p_wxButton", 0, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxButton, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32372 | static swig_type_info _swigt__p_wxBitmapButton[] = {{"_p_wxBitmapButton", 0, "wxBitmapButton *", 0, 0, 0, 0},{"_p_wxBitmapButton", 0, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxBitmapButton, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32373 | static swig_type_info _swigt__p_wxRect[] = {{"_p_wxRect", 0, "wxRect *", 0, 0, 0, 0},{"_p_wxRect", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32374 | static swig_type_info _swigt__p_wxContextHelpButton[] = {{"_p_wxContextHelpButton", 0, "wxContextHelpButton *", 0, 0, 0, 0},{"_p_wxContextHelpButton", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32375 | static swig_type_info _swigt__p_wxRadioBox[] = {{"_p_wxRadioBox", 0, "wxRadioBox *", 0, 0, 0, 0},{"_p_wxRadioBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32376 | static swig_type_info _swigt__p_wxScrollBar[] = {{"_p_wxScrollBar", 0, "wxScrollBar *", 0, 0, 0, 0},{"_p_wxScrollBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32377 | static swig_type_info _swigt__p_char[] = {{"_p_char", 0, "char *", 0, 0, 0, 0},{"_p_char", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32378 | static swig_type_info _swigt__p_wxTreeItemId[] = {{"_p_wxTreeItemId", 0, "wxTreeItemId *", 0, 0, 0, 0},{"_p_wxTreeItemId", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32379 | static swig_type_info _swigt__p_wxComboBox[] = {{"_p_wxComboBox", 0, "wxComboBox *", 0, 0, 0, 0},{"_p_wxComboBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32380 | static swig_type_info _swigt__p_wxHelpEvent[] = {{"_p_wxHelpEvent", 0, "wxHelpEvent *", 0, 0, 0, 0},{"_p_wxHelpEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32381 | static swig_type_info _swigt__p_wxListItem[] = {{"_p_wxListItem", 0, "wxListItem *", 0, 0, 0, 0},{"_p_wxListItem", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32382 | static swig_type_info _swigt__p_wxNotebookSizer[] = {{"_p_wxNotebookSizer", 0, "wxNotebookSizer *", 0, 0, 0, 0},{"_p_wxNotebookSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32383 | static swig_type_info _swigt__p_wxSpinEvent[] = {{"_p_wxSpinEvent", 0, "wxSpinEvent *", 0, 0, 0, 0},{"_p_wxSpinEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32384 | static swig_type_info _swigt__p_wxGenericDragImage[] = {{"_p_wxGenericDragImage", 0, "wxGenericDragImage *", 0, 0, 0, 0},{"_p_wxGenericDragImage", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32385 | static swig_type_info _swigt__p_wxSpinCtrl[] = {{"_p_wxSpinCtrl", 0, "wxSpinCtrl *", 0, 0, 0, 0},{"_p_wxSpinCtrl", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32386 | static swig_type_info _swigt__p_wxImageList[] = {{"_p_wxImageList", 0, "wxImageList *", 0, 0, 0, 0},{"_p_wxImageList", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32387 | static swig_type_info _swigt__p_wxHelpProvider[] = {{"_p_wxHelpProvider", 0, "wxHelpProvider *", 0, 0, 0, 0},{"_p_wxHelpProvider", 0, 0, 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", _p_wxSimpleHelpProviderTo_p_wxHelpProvider, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32388 | static swig_type_info _swigt__p_wxTextAttr[] = {{"_p_wxTextAttr", 0, "wxTextAttr *", 0, 0, 0, 0},{"_p_wxTextAttr", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32389 | static swig_type_info _swigt__p_wxSimpleHelpProvider[] = {{"_p_wxSimpleHelpProvider", 0, "wxSimpleHelpProvider *", 0, 0, 0, 0},{"_p_wxSimpleHelpProvider", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32390 | static swig_type_info _swigt__p_wxPoint[] = {{"_p_wxPoint", 0, "wxPoint *", 0, 0, 0, 0},{"_p_wxPoint", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32391 | static swig_type_info _swigt__p_wxListbookEvent[] = {{"_p_wxListbookEvent", 0, "wxListbookEvent *", 0, 0, 0, 0},{"_p_wxListbookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32392 | static swig_type_info _swigt__p_wxNotebookEvent[] = {{"_p_wxNotebookEvent", 0, "wxNotebookEvent *", 0, 0, 0, 0},{"_p_wxNotebookEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32393 | static swig_type_info _swigt__p_wxObject[] = {{"_p_wxObject", 0, "wxObject *", 0, 0, 0, 0},{"_p_wxLayoutConstraints", _p_wxLayoutConstraintsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGBSizerItem", _p_wxGBSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizerItem", _p_wxSizerItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIndividualLayoutConstraint", _p_wxIndividualLayoutConstraintTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBoxSizer", _p_wxStaticBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBoxSizer", _p_wxBoxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizer", _p_wxSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridBagSizer", _p_wxGridBagSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenu", _p_wxMenuTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvent", _p_wxEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGridSizer", _p_wxGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFlexGridSizer", _p_wxFlexGridSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxInitDialogEvent", _p_wxInitDialogEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaintEvent", _p_wxPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNcPaintEvent", _p_wxNcPaintEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPaletteChangedEvent", _p_wxPaletteChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDisplayChangedEvent", _p_wxDisplayChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseCaptureChangedEvent", _p_wxMouseCaptureChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSysColourChangedEvent", _p_wxSysColourChangedEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSetCursorEvent", _p_wxSetCursorEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFSFile", _p_wxFSFileTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPySizer", _p_wxPySizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyEvent", _p_wxPyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxShowEvent", _p_wxShowEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIdleEvent", _p_wxIdleEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxQueryNewPaletteEvent", _p_wxQueryNewPaletteEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMaximizeEvent", _p_wxMaximizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxIconizeEvent", _p_wxIconizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxActivateEvent", _p_wxActivateEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSizeEvent", _p_wxSizeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMoveEvent", _p_wxMoveEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuItem", _p_wxMenuItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelp", _p_wxContextHelpTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEvtHandler", _p_wxEvtHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTIFFHandler", _p_wxTIFFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImageHandler", _p_wxImageHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBMPHandler", _p_wxBMPHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxICOHandler", _p_wxICOHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCURHandler", _p_wxCURHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxANIHandler", _p_wxANIHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNGHandler", _p_wxPNGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGIFHandler", _p_wxGIFHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPCXHandler", _p_wxPCXHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxJPEGHandler", _p_wxJPEGHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPNMHandler", _p_wxPNMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxXPMHandler", _p_wxXPMHandlerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxAcceleratorTable", _p_wxAcceleratorTableTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListItem", _p_wxListItemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxImage", _p_wxImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookSizer", _p_wxNotebookSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxScrollWinEvent", _p_wxScrollWinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxGenericDragImage", _p_wxGenericDragImageTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxObject", 0, 0, 0, 0, 0, 0},{"_p_wxKeyEvent", _p_wxKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxNavigationKeyEvent", _p_wxNavigationKeyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxWindow", _p_wxWindowTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFileSystem", _p_wxFileSystemTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMenuEvent", _p_wxMenuEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCloseEvent", _p_wxCloseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxMouseEvent", _p_wxMouseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxEraseEvent", _p_wxEraseEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyApp", _p_wxPyAppTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", _p_wxCommandEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxFocusEvent", _p_wxFocusEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxDropFilesEvent", _p_wxDropFilesEventTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBarToolBase", _p_wxToolBarToolBaseTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxBookCtrlSizer", _p_wxBookCtrlSizerTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxValidator", _p_wxValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxObject, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32394 | static swig_type_info _swigt__p_wxCursor[] = {{"_p_wxCursor", 0, "wxCursor *", 0, 0, 0, 0},{"_p_wxCursor", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32395 | static swig_type_info _swigt__p_wxKeyEvent[] = {{"_p_wxKeyEvent", 0, "wxKeyEvent *", 0, 0, 0, 0},{"_p_wxKeyEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32396 | static swig_type_info _swigt__p_wxWindow[] = {{"_p_wxWindow", 0, "wxWindow *", 0, 0, 0, 0},{"_p_wxBookCtrl", _p_wxBookCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxMenuBar", _p_wxMenuBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBar", _p_wxToolBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToggleButton", _p_wxToggleButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioButton", _p_wxRadioButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxWindow", 0, 0, 0, 0, 0, 0},{"_p_wxPyControl", _p_wxPyControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControl", _p_wxControlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxToolBarBase", _p_wxToolBarBaseTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyListCtrl", _p_wxPyListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGenericDirCtrl", _p_wxGenericDirCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxScrollBar", _p_wxScrollBarTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", _p_wxControlWithItemsTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxGauge", _p_wxGaugeTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticLine", _p_wxStaticLineTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListbook", _p_wxListbookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxPyTreeCtrl", _p_wxPyTreeCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckBox", _p_wxCheckBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxRadioBox", _p_wxRadioBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxNotebook", _p_wxNotebookTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBitmap", _p_wxStaticBitmapTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinCtrl", _p_wxSpinCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticText", _p_wxStaticTextTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxStaticBox", _p_wxStaticBoxTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSlider", _p_wxSliderTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxButton", _p_wxButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxSpinButton", _p_wxSpinButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxContextHelpButton", _p_wxContextHelpButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxBitmapButton", _p_wxBitmapButtonTo_p_wxWindow, 0, 0, 0, 0, 0},{"_p_wxTextCtrl", _p_wxTextCtrlTo_p_wxWindow, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32397 | static swig_type_info _swigt__p_wxString[] = {{"_p_wxString", 0, "wxString *", 0, 0, 0, 0},{"_p_wxString", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32398 | static swig_type_info _swigt__p_wxBitmap[] = {{"_p_wxBitmap", 0, "wxBitmap *", 0, 0, 0, 0},{"_p_wxBitmap", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32399 | static swig_type_info _swigt__p_wxTreeEvent[] = {{"_p_wxTreeEvent", 0, "wxTreeEvent *", 0, 0, 0, 0},{"_p_wxTreeEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32400 | static swig_type_info _swigt__p_wxMouseEvent[] = {{"_p_wxMouseEvent", 0, "wxMouseEvent *", 0, 0, 0, 0},{"_p_wxMouseEvent", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32401 | static swig_type_info _swigt__p_wxCommandEvent[] = {{"_p_wxCommandEvent", 0, "wxCommandEvent *", 0, 0, 0, 0},{"_p_wxWindowDestroyEvent", _p_wxWindowDestroyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxBookCtrlEvent", _p_wxBookCtrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTextUrlEvent", _p_wxTextUrlEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxScrollEvent", _p_wxScrollEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxPyCommandEvent", _p_wxPyCommandEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxCommandEvent", 0, 0, 0, 0, 0, 0},{"_p_wxContextMenuEvent", _p_wxContextMenuEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxChildFocusEvent", _p_wxChildFocusEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListbookEvent", _p_wxListbookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotebookEvent", _p_wxNotebookEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxListEvent", _p_wxListEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxWindowCreateEvent", _p_wxWindowCreateEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxTreeEvent", _p_wxTreeEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxSpinEvent", _p_wxSpinEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxHelpEvent", _p_wxHelpEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxNotifyEvent", _p_wxNotifyEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{"_p_wxUpdateUIEvent", _p_wxUpdateUIEventTo_p_wxCommandEvent, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32402 | static swig_type_info _swigt__p_wxStaticText[] = {{"_p_wxStaticText", 0, "wxStaticText *", 0, 0, 0, 0},{"_p_wxStaticText", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32403 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 0, 0, 0, 0},{"_p_wxComboBox", _p_wxComboBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxDirFilterListCtrl", _p_wxDirFilterListCtrlTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxChoice", _p_wxChoiceTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxControlWithItems", 0, 0, 0, 0, 0, 0},{"_p_wxListBox", _p_wxListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{"_p_wxCheckListBox", _p_wxCheckListBoxTo_p_wxControlWithItems, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32404 | static swig_type_info _swigt__p_wxToolBarToolBase[] = {{"_p_wxToolBarToolBase", 0, "wxToolBarToolBase *", 0, 0, 0, 0},{"_p_wxToolBarToolBase", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32405 | static swig_type_info _swigt__p_wxColour[] = {{"_p_wxColour", 0, "wxColour *", 0, 0, 0, 0},{"_p_wxColour", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32406 | static swig_type_info _swigt__p_wxToolBar[] = {{"_p_wxToolBar", 0, "wxToolBar *", 0, 0, 0, 0},{"_p_wxToolBar", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32407 | static swig_type_info _swigt__p_wxBookCtrlSizer[] = {{"_p_wxBookCtrlSizer", 0, "wxBookCtrlSizer *", 0, 0, 0, 0},{"_p_wxBookCtrlSizer", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32408 | static swig_type_info _swigt__p_wxValidator[] = {{"_p_wxValidator", 0, "wxValidator *", 0, 0, 0, 0},{"_p_wxValidator", 0, 0, 0, 0, 0, 0},{"_p_wxPyValidator", _p_wxPyValidatorTo_p_wxValidator, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
32409 | ||
32410 | static swig_type_info *swig_types_initial[] = { | |
32411 | _swigt__p_wxTextUrlEvent, | |
32412 | _swigt__p_wxBookCtrlEvent, | |
32413 | _swigt__p_wxSizer, | |
32414 | _swigt__p_wxCheckBox, | |
32415 | _swigt__p_wxPyTreeCtrl, | |
32416 | _swigt__p_wxEvent, | |
32417 | _swigt__p_wxGenericDirCtrl, | |
32418 | _swigt__p_bool, | |
32419 | _swigt__p_wxPyTreeItemData, | |
32420 | _swigt__p_wxItemContainer, | |
32421 | _swigt__p_wxPyListCtrl, | |
32422 | _swigt__p_wxDirFilterListCtrl, | |
32423 | _swigt__p_wxStaticLine, | |
32424 | _swigt__p_wxControl, | |
32425 | _swigt__p_wxPyControl, | |
32426 | _swigt__p_wxGauge, | |
32427 | _swigt__p_wxToolBarBase, | |
32428 | _swigt__p_wxFont, | |
32429 | _swigt__p_wxToggleButton, | |
32430 | _swigt__p_wxRadioButton, | |
32431 | _swigt__p_wxChoice, | |
32432 | _swigt__p_wxMemoryDC, | |
32433 | _swigt__p_wxListItemAttr, | |
32434 | _swigt__p_void, | |
32435 | _swigt__p_int, | |
32436 | _swigt__p_wxSize, | |
32437 | _swigt__p_wxDC, | |
32438 | _swigt__p_wxListView, | |
32439 | _swigt__p_wxIcon, | |
32440 | _swigt__p_wxVisualAttributes, | |
32441 | _swigt__p_wxTextCtrl, | |
32442 | _swigt__p_wxNotebook, | |
32443 | _swigt__p_wxNotifyEvent, | |
32444 | _swigt__p_wxArrayString, | |
32445 | _swigt__p_wxListbook, | |
32446 | _swigt__p_wxStaticBitmap, | |
32447 | _swigt__p_wxSlider, | |
32448 | _swigt__p_wxStaticBox, | |
32449 | _swigt__p_wxArrayInt, | |
32450 | _swigt__p_wxContextHelp, | |
32451 | _swigt__p_long, | |
32452 | _swigt__p_wxEvtHandler, | |
32453 | _swigt__p_wxListEvent, | |
32454 | _swigt__p_wxCheckListBox, | |
32455 | _swigt__p_wxListBox, | |
32456 | _swigt__p_wxBookCtrl, | |
32457 | _swigt__p_wxSpinButton, | |
32458 | _swigt__p_wxButton, | |
32459 | _swigt__p_wxBitmapButton, | |
32460 | _swigt__p_wxRect, | |
32461 | _swigt__p_wxContextHelpButton, | |
32462 | _swigt__p_wxRadioBox, | |
32463 | _swigt__p_wxScrollBar, | |
32464 | _swigt__p_char, | |
32465 | _swigt__p_wxTreeItemId, | |
32466 | _swigt__p_wxComboBox, | |
32467 | _swigt__p_wxHelpEvent, | |
32468 | _swigt__p_wxListItem, | |
32469 | _swigt__p_wxNotebookSizer, | |
32470 | _swigt__p_wxSpinEvent, | |
32471 | _swigt__p_wxGenericDragImage, | |
32472 | _swigt__p_wxSpinCtrl, | |
32473 | _swigt__p_wxImageList, | |
32474 | _swigt__p_wxHelpProvider, | |
32475 | _swigt__p_wxTextAttr, | |
32476 | _swigt__p_wxSimpleHelpProvider, | |
32477 | _swigt__p_wxPoint, | |
32478 | _swigt__p_wxListbookEvent, | |
32479 | _swigt__p_wxNotebookEvent, | |
32480 | _swigt__p_wxObject, | |
32481 | _swigt__p_wxCursor, | |
32482 | _swigt__p_wxKeyEvent, | |
32483 | _swigt__p_wxWindow, | |
32484 | _swigt__p_wxString, | |
32485 | _swigt__p_wxBitmap, | |
32486 | _swigt__p_wxTreeEvent, | |
32487 | _swigt__p_wxMouseEvent, | |
32488 | _swigt__p_wxCommandEvent, | |
32489 | _swigt__p_wxStaticText, | |
32490 | _swigt__p_wxControlWithItems, | |
32491 | _swigt__p_wxToolBarToolBase, | |
32492 | _swigt__p_wxColour, | |
32493 | _swigt__p_wxToolBar, | |
32494 | _swigt__p_wxBookCtrlSizer, | |
32495 | _swigt__p_wxValidator, | |
32496 | 0 | |
32497 | }; | |
32498 | ||
32499 | ||
32500 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32501 | ||
32502 | static swig_const_info swig_const_table[] = { | |
32503 | {0}}; | |
32504 | ||
32505 | #ifdef __cplusplus | |
32506 | } | |
32507 | #endif | |
32508 | ||
32509 | #ifdef __cplusplus | |
32510 | extern "C" | |
32511 | #endif | |
32512 | SWIGEXPORT(void) SWIG_init(void) { | |
32513 | static PyObject *SWIG_globals = 0; | |
32514 | static int typeinit = 0; | |
32515 | PyObject *m, *d; | |
32516 | int i; | |
32517 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
32518 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
32519 | d = PyModule_GetDict(m); | |
32520 | ||
32521 | if (!typeinit) { | |
32522 | for (i = 0; swig_types_initial[i]; i++) { | |
32523 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
32524 | } | |
32525 | typeinit = 1; | |
32526 | } | |
32527 | SWIG_InstallConstants(d,swig_const_table); | |
32528 | ||
32529 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
32530 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
32531 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); | |
32532 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
32533 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
32534 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
32535 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
32536 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
32537 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
32538 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); | |
32539 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
32540 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
32541 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
32542 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
32543 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
32544 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
32545 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
32546 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
32547 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); | |
32548 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
32549 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
32550 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
32551 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
32552 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
32553 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
32554 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
32555 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
32556 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); | |
32557 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
32558 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
32559 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
32560 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
32561 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
32562 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
32563 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
32564 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
32565 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
32566 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
32567 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
32568 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
32569 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
32570 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
32571 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
32572 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
32573 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
32574 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
32575 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
32576 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
32577 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
32578 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
32579 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
32580 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
32581 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
32582 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
32583 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
32584 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
32585 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
32586 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
32587 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
32588 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
32589 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
32590 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
32591 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
32592 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
32593 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
32594 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
32595 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
32596 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
32597 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
32598 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
32599 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
32600 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
32601 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
32602 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
32603 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
32604 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); | |
32605 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
32606 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
32607 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
32608 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
32609 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
32610 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
32611 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
32612 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
32613 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
32614 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
32615 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); | |
32616 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
32617 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
32618 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
32619 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
32620 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
32621 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
32622 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
32623 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
32624 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
32625 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
32626 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
32627 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); | |
32628 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
32629 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
32630 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
32631 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
32632 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
32633 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
32634 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
32635 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
32636 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
32637 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
32638 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
32639 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
32640 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
32641 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
32642 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
32643 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
32644 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
32645 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
32646 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
32647 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
32648 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
32649 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
32650 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); | |
32651 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
32652 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
32653 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
32654 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
32655 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
32656 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
32657 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
32658 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
32659 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
32660 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
32661 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
32662 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
32663 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
32664 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
32665 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
32666 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
32667 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
32668 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
32669 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
32670 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
32671 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
32672 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
32673 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
32674 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
32675 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
32676 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
32677 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
32678 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
32679 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
32680 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
32681 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
32682 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
32683 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
32684 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
32685 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
32686 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
32687 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
32688 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
32689 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
32690 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
32691 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
32692 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
32693 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
32694 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
32695 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
32696 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
32697 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
32698 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
32699 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
32700 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
32701 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
32702 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
32703 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
32704 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
32705 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
32706 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
32707 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
32708 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
32709 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
32710 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
32711 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
32712 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
32713 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
32714 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
32715 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
32716 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
32717 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
32718 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
32719 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
32720 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
32721 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
32722 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
32723 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
32724 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
32725 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
32726 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
32727 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
32728 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
32729 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
32730 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
32731 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
32732 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
32733 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
32734 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
32735 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
32736 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
32737 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
32738 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
32739 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
32740 | ||
32741 | // Map renamed classes back to their common name for OOR | |
32742 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
32743 | ||
32744 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
32745 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); | |
32746 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
32747 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
32748 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
32749 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
32750 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
32751 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
32752 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
32753 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
32754 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
32755 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
32756 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
32757 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
32758 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
32759 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
32760 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
32761 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
32762 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
32763 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
32764 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
32765 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
32766 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
32767 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
32768 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
32769 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
32770 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
32771 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
32772 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
32773 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
32774 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
32775 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
32776 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
32777 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
32778 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
32779 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
32780 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
32781 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
32782 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
32783 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
32784 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
32785 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
32786 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
32787 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
32788 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
32789 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
32790 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
32791 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
32792 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
32793 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
32794 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
32795 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
32796 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
32797 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
32798 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
32799 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
32800 | ||
32801 | // Map renamed classes back to their common name for OOR | |
32802 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
32803 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
32804 | ||
32805 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
32806 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
32807 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
32808 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
32809 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
32810 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
32811 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
32812 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
32813 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
32814 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
32815 | ||
32816 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
32817 | ||
32818 | } | |
32819 |