]>
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 | ||
d55e5bfc RD |
652 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
653 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } | |
654 | // Python aware sorting function for wxPyListCtrl | |
655 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
656 | int retval = 0; | |
657 | PyObject* func = (PyObject*)funcPtr; | |
658 | bool blocked = wxPyBeginBlockThreads(); | |
659 | ||
660 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
661 | PyObject* result = PyEval_CallObject(func, args); | |
662 | Py_DECREF(args); | |
663 | if (result) { | |
664 | retval = PyInt_AsLong(result); | |
665 | Py_DECREF(result); | |
666 | } | |
667 | ||
668 | wxPyEndBlockThreads(blocked); | |
669 | return retval; | |
670 | } | |
671 | ||
672 | // C++ Version of a Python aware class | |
673 | class wxPyListCtrl : public wxListCtrl { | |
674 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
675 | public: | |
676 | wxPyListCtrl() : wxListCtrl() {} | |
677 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
678 | const wxPoint& pos, | |
679 | const wxSize& size, | |
680 | long style, | |
681 | const wxValidator& validator, | |
682 | const wxString& name) : | |
683 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
684 | ||
685 | bool Create(wxWindow* parent, wxWindowID id, | |
686 | const wxPoint& pos, | |
687 | const wxSize& size, | |
688 | long style, | |
689 | const wxValidator& validator, | |
690 | const wxString& name) { | |
691 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
692 | } | |
693 | ||
694 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
695 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
696 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
697 | ||
698 | PYPRIVATE; | |
699 | }; | |
700 | ||
701 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
702 | ||
703 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
704 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
705 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
706 | ||
707 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
708 | wxListItem item; | |
709 | item.SetMask( wxLIST_MASK_STATE | | |
710 | wxLIST_MASK_TEXT | | |
711 | wxLIST_MASK_IMAGE | | |
712 | wxLIST_MASK_DATA | | |
713 | wxLIST_SET_ITEM | | |
714 | wxLIST_MASK_WIDTH | | |
715 | wxLIST_MASK_FORMAT | |
716 | ); | |
717 | if (self->GetColumn(col, item)) | |
718 | return new wxListItem(item); | |
719 | else | |
720 | return NULL; | |
721 | } | |
722 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
723 | wxListItem* info = new wxListItem; | |
724 | info->m_itemId = itemId; | |
725 | info->m_col = col; | |
726 | info->m_mask = 0xFFFF; | |
727 | self->GetItem(*info); | |
728 | return info; | |
729 | } | |
730 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
731 | wxPoint pos; | |
732 | self->GetItemPosition(item, pos); | |
733 | return pos; | |
734 | } | |
735 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
736 | wxRect rect; | |
737 | self->GetItemRect(item, rect, code); | |
738 | return rect; | |
739 | } | |
740 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
741 | if (!PyCallable_Check(func)) | |
742 | return False; | |
743 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); | |
744 | } | |
745 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
746 | ||
747 | return self; | |
748 | ||
749 | ||
750 | ||
751 | } | |
752 | ||
753 | #include <wx/treectrl.h> | |
754 | #include "wx/wxPython/pytree.h" | |
755 | ||
756 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); | |
757 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } | |
758 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
759 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } | |
760 | // C++ version of Python aware wxTreeCtrl | |
761 | class wxPyTreeCtrl : public wxTreeCtrl { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
763 | public: | |
764 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
765 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
766 | const wxPoint& pos, | |
767 | const wxSize& size, | |
768 | long style, | |
769 | const wxValidator& validator, | |
770 | const wxString& name) : | |
771 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
772 | ||
773 | bool Create(wxWindow *parent, wxWindowID id, | |
774 | const wxPoint& pos, | |
775 | const wxSize& size, | |
776 | long style, | |
777 | const wxValidator& validator, | |
778 | const wxString& name) { | |
779 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
780 | } | |
781 | ||
782 | ||
783 | int OnCompareItems(const wxTreeItemId& item1, | |
784 | const wxTreeItemId& item2) { | |
785 | int rval = 0; | |
786 | bool found; | |
787 | bool blocked = wxPyBeginBlockThreads(); | |
788 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { | |
789 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); | |
790 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
791 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); | |
792 | Py_DECREF(o1); | |
793 | Py_DECREF(o2); | |
794 | } | |
795 | wxPyEndBlockThreads(blocked); | |
796 | if (! found) | |
797 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
798 | return rval; | |
799 | } | |
800 | PYPRIVATE; | |
801 | }; | |
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
804 | ||
805 | ||
806 | ||
807 | #if UINT_MAX < LONG_MAX | |
808 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
809 | #else | |
810 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
811 | #endif | |
812 | ||
813 | ||
814 | SWIGSTATICINLINE(unsigned long) | |
815 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
816 | unsigned long max_value) | |
817 | { | |
818 | if (!PyErr_Occurred()) { | |
819 | if (value > max_value) { | |
820 | PyObject *err = | |
821 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
822 | value, type, max_value); | |
823 | PyErr_SetObject(PyExc_OverflowError, err); | |
824 | Py_DECREF(err); | |
825 | } | |
826 | } | |
827 | return value; | |
828 | } | |
829 | ||
830 | ||
831 | #if UINT_MAX != ULONG_MAX | |
832 | SWIGSTATICINLINE(unsigned int) | |
833 | SWIG_AsUnsignedInt(PyObject *obj) | |
834 | { | |
835 | return swig_numeric_cast(unsigned int, | |
836 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
837 | "unsigned int", UINT_MAX)); | |
838 | } | |
839 | #else | |
840 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
841 | #endif | |
842 | ||
843 | ||
844 | SWIGSTATICINLINE(int) | |
845 | SWIG_CheckUnsignedInt(PyObject* obj) | |
846 | { | |
847 | SWIG_AsUnsignedInt(obj); | |
848 | if (PyErr_Occurred()) { | |
849 | PyErr_Clear(); | |
850 | return 0; | |
851 | } else { | |
852 | return 1; | |
853 | } | |
854 | } | |
855 | ||
856 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
857 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
858 | if (data == NULL) { | |
859 | data = new wxPyTreeItemData(); | |
860 | data->SetId(item); // set the id | |
861 | self->SetItemData(item, data); | |
862 | } | |
863 | return data; | |
864 | } | |
865 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
866 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
867 | if (data == NULL) { | |
868 | data = new wxPyTreeItemData(); | |
869 | data->SetId(item); // set the id | |
870 | self->SetItemData(item, data); | |
871 | } | |
872 | return data->GetData(); | |
873 | } | |
874 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
875 | data->SetId(item); // set the id | |
876 | self->SetItemData(item, data); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
879 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
880 | if (data == NULL) { | |
881 | data = new wxPyTreeItemData(obj); | |
882 | data->SetId(item); // set the id | |
883 | self->SetItemData(item, data); | |
884 | } else | |
885 | data->SetData(obj); | |
886 | } | |
887 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
888 | bool blocked = wxPyBeginBlockThreads(); | |
889 | PyObject* rval = PyList_New(0); | |
890 | wxArrayTreeItemIds array; | |
891 | size_t num, x; | |
892 | num = self->GetSelections(array); | |
893 | for (x=0; x < num; x++) { | |
894 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
895 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); | |
896 | PyList_Append(rval, item); | |
a07a67e6 | 897 | Py_DECREF(item); |
d55e5bfc RD |
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 | ||
caef1a4d | 948 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d55e5bfc RD |
949 | |
950 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
951 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
952 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
953 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
954 | ||
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
957 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
958 | ||
959 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
960 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
961 | ||
962 | DEC_PYCALLBACK__(InitDialog); | |
963 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
964 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
965 | DEC_PYCALLBACK_BOOL_(Validate); | |
966 | ||
967 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
968 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
969 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
970 | ||
971 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
972 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
973 | ||
caef1a4d | 974 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
d55e5bfc | 975 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
caef1a4d | 976 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
d55e5bfc RD |
977 | |
978 | PYPRIVATE; | |
979 | }; | |
980 | ||
981 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
982 | ||
983 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
984 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
985 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
986 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
987 | ||
988 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
989 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
990 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
991 | ||
992 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
993 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
994 | ||
995 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
996 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
997 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
998 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
999 | ||
1000 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1001 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1002 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1003 | ||
1004 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1005 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1006 | ||
caef1a4d | 1007 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
d55e5bfc | 1008 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
caef1a4d | 1009 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d55e5bfc RD |
1010 | |
1011 | ||
1012 | ||
1013 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
1014 | ||
1015 | #include <wx/generic/dragimgg.h> | |
1016 | ||
1017 | #ifdef __cplusplus | |
1018 | extern "C" { | |
1019 | #endif | |
1020 | static int _wrap_ButtonNameStr_set(PyObject *_val) { | |
1021 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1022 | return 1; | |
1023 | } | |
1024 | ||
1025 | ||
1026 | static PyObject *_wrap_ButtonNameStr_get() { | |
1027 | PyObject *pyobj; | |
1028 | ||
1029 | { | |
1030 | #if wxUSE_UNICODE | |
1031 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1032 | #else | |
1033 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1034 | #endif | |
1035 | } | |
1036 | return pyobj; | |
1037 | } | |
1038 | ||
1039 | ||
1040 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1041 | PyObject *resultobj; | |
1042 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1043 | int arg2 = (int) -1 ; |
1044 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1045 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1046 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1047 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1048 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1049 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1050 | long arg6 = (long) 0 ; | |
1051 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1052 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1053 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1054 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1055 | wxButton *result; | |
1056 | bool temp3 = False ; | |
1057 | wxPoint temp4 ; | |
1058 | wxSize temp5 ; | |
1059 | bool temp8 = False ; | |
1060 | PyObject * obj0 = 0 ; | |
1061 | PyObject * obj1 = 0 ; | |
1062 | PyObject * obj2 = 0 ; | |
1063 | PyObject * obj3 = 0 ; | |
1064 | PyObject * obj4 = 0 ; | |
1065 | PyObject * obj5 = 0 ; | |
1066 | PyObject * obj6 = 0 ; | |
1067 | PyObject * obj7 = 0 ; | |
1068 | char *kwnames[] = { | |
1069 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1070 | }; | |
1071 | ||
248ed943 | 1072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1075 | if (obj1) { |
1076 | arg2 = (int) SWIG_AsInt(obj1); | |
1077 | if (PyErr_Occurred()) SWIG_fail; | |
1078 | } | |
1079 | if (obj2) { | |
1080 | { | |
1081 | arg3 = wxString_in_helper(obj2); | |
1082 | if (arg3 == NULL) SWIG_fail; | |
1083 | temp3 = True; | |
1084 | } | |
d55e5bfc RD |
1085 | } |
1086 | if (obj3) { | |
1087 | { | |
1088 | arg4 = &temp4; | |
1089 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1090 | } | |
1091 | } | |
1092 | if (obj4) { | |
1093 | { | |
1094 | arg5 = &temp5; | |
1095 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1096 | } | |
1097 | } | |
1098 | if (obj5) { | |
1099 | arg6 = (long) SWIG_AsLong(obj5); | |
1100 | if (PyErr_Occurred()) SWIG_fail; | |
1101 | } | |
1102 | if (obj6) { | |
1103 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1104 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1105 | SWIG_fail; | |
1106 | if (arg7 == NULL) { | |
1107 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1108 | SWIG_fail; | |
1109 | } | |
1110 | } | |
1111 | if (obj7) { | |
1112 | { | |
1113 | arg8 = wxString_in_helper(obj7); | |
1114 | if (arg8 == NULL) SWIG_fail; | |
1115 | temp8 = True; | |
1116 | } | |
1117 | } | |
1118 | { | |
0439c23b | 1119 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1121 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1122 | ||
1123 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1124 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1125 | } |
b0f7404b | 1126 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1127 | { |
1128 | if (temp3) | |
1129 | delete arg3; | |
1130 | } | |
1131 | { | |
1132 | if (temp8) | |
1133 | delete arg8; | |
1134 | } | |
1135 | return resultobj; | |
1136 | fail: | |
1137 | { | |
1138 | if (temp3) | |
1139 | delete arg3; | |
1140 | } | |
1141 | { | |
1142 | if (temp8) | |
1143 | delete arg8; | |
1144 | } | |
1145 | return NULL; | |
1146 | } | |
1147 | ||
1148 | ||
1149 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1150 | PyObject *resultobj; | |
1151 | wxButton *result; | |
1152 | char *kwnames[] = { | |
1153 | NULL | |
1154 | }; | |
1155 | ||
1156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1157 | { | |
0439c23b | 1158 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1160 | result = (wxButton *)new wxButton(); | |
1161 | ||
1162 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1163 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1164 | } |
b0f7404b | 1165 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d55e5bfc RD |
1166 | return resultobj; |
1167 | fail: | |
1168 | return NULL; | |
1169 | } | |
1170 | ||
1171 | ||
1172 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1173 | PyObject *resultobj; | |
1174 | wxButton *arg1 = (wxButton *) 0 ; | |
1175 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1176 | int arg3 = (int) -1 ; |
1177 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1178 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
1179 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1180 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1181 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1182 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1183 | long arg7 = (long) 0 ; | |
1184 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1185 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1186 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1187 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1188 | bool result; | |
1189 | bool temp4 = False ; | |
1190 | wxPoint temp5 ; | |
1191 | wxSize temp6 ; | |
1192 | bool temp9 = False ; | |
1193 | PyObject * obj0 = 0 ; | |
1194 | PyObject * obj1 = 0 ; | |
1195 | PyObject * obj2 = 0 ; | |
1196 | PyObject * obj3 = 0 ; | |
1197 | PyObject * obj4 = 0 ; | |
1198 | PyObject * obj5 = 0 ; | |
1199 | PyObject * obj6 = 0 ; | |
1200 | PyObject * obj7 = 0 ; | |
1201 | PyObject * obj8 = 0 ; | |
1202 | char *kwnames[] = { | |
1203 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1204 | }; | |
1205 | ||
248ed943 | 1206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1209 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1211 | if (obj2) { |
1212 | arg3 = (int) SWIG_AsInt(obj2); | |
1213 | if (PyErr_Occurred()) SWIG_fail; | |
1214 | } | |
1215 | if (obj3) { | |
1216 | { | |
1217 | arg4 = wxString_in_helper(obj3); | |
1218 | if (arg4 == NULL) SWIG_fail; | |
1219 | temp4 = True; | |
1220 | } | |
d55e5bfc RD |
1221 | } |
1222 | if (obj4) { | |
1223 | { | |
1224 | arg5 = &temp5; | |
1225 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1226 | } | |
1227 | } | |
1228 | if (obj5) { | |
1229 | { | |
1230 | arg6 = &temp6; | |
1231 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1232 | } | |
1233 | } | |
1234 | if (obj6) { | |
1235 | arg7 = (long) SWIG_AsLong(obj6); | |
1236 | if (PyErr_Occurred()) SWIG_fail; | |
1237 | } | |
1238 | if (obj7) { | |
1239 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1240 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1241 | SWIG_fail; | |
1242 | if (arg8 == NULL) { | |
1243 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1244 | SWIG_fail; | |
1245 | } | |
1246 | } | |
1247 | if (obj8) { | |
1248 | { | |
1249 | arg9 = wxString_in_helper(obj8); | |
1250 | if (arg9 == NULL) SWIG_fail; | |
1251 | temp9 = True; | |
1252 | } | |
1253 | } | |
1254 | { | |
1255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1256 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1257 | ||
1258 | wxPyEndAllowThreads(__tstate); | |
1259 | if (PyErr_Occurred()) SWIG_fail; | |
1260 | } | |
1261 | { | |
1262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1263 | } | |
1264 | { | |
1265 | if (temp4) | |
1266 | delete arg4; | |
1267 | } | |
1268 | { | |
1269 | if (temp9) | |
1270 | delete arg9; | |
1271 | } | |
1272 | return resultobj; | |
1273 | fail: | |
1274 | { | |
1275 | if (temp4) | |
1276 | delete arg4; | |
1277 | } | |
1278 | { | |
1279 | if (temp9) | |
1280 | delete arg9; | |
1281 | } | |
1282 | return NULL; | |
1283 | } | |
1284 | ||
1285 | ||
1286 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1287 | PyObject *resultobj; | |
1288 | wxButton *arg1 = (wxButton *) 0 ; | |
1289 | PyObject * obj0 = 0 ; | |
1290 | char *kwnames[] = { | |
1291 | (char *) "self", NULL | |
1292 | }; | |
1293 | ||
1294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
1295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, | |
1296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1297 | { | |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1299 | (arg1)->SetDefault(); | |
1300 | ||
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
1304 | Py_INCREF(Py_None); resultobj = Py_None; | |
1305 | return resultobj; | |
1306 | fail: | |
1307 | return NULL; | |
1308 | } | |
1309 | ||
1310 | ||
1311 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1312 | PyObject *resultobj; | |
1313 | wxSize result; | |
1314 | char *kwnames[] = { | |
1315 | NULL | |
1316 | }; | |
1317 | ||
1318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1319 | { | |
1320 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1321 | result = wxButton::GetDefaultSize(); | |
1322 | ||
1323 | wxPyEndAllowThreads(__tstate); | |
1324 | if (PyErr_Occurred()) SWIG_fail; | |
1325 | } | |
1326 | { | |
1327 | wxSize * resultptr; | |
1328 | resultptr = new wxSize((wxSize &) result); | |
1329 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
1330 | } | |
1331 | return resultobj; | |
1332 | fail: | |
1333 | return NULL; | |
1334 | } | |
1335 | ||
1336 | ||
f20a2e1f RD |
1337 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1338 | PyObject *resultobj; | |
1339 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1340 | wxVisualAttributes result; | |
1341 | PyObject * obj0 = 0 ; | |
1342 | char *kwnames[] = { | |
1343 | (char *) "variant", NULL | |
1344 | }; | |
1345 | ||
1346 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1347 | if (obj0) { | |
1348 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1349 | if (PyErr_Occurred()) SWIG_fail; | |
1350 | } | |
1351 | { | |
19272049 | 1352 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
1353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1354 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1355 | ||
1356 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1357 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
1358 | } |
1359 | { | |
1360 | wxVisualAttributes * resultptr; | |
1361 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1362 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1363 | } | |
1364 | return resultobj; | |
1365 | fail: | |
1366 | return NULL; | |
1367 | } | |
1368 | ||
1369 | ||
d55e5bfc RD |
1370 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1371 | PyObject *obj; | |
1372 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1373 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1374 | Py_INCREF(obj); | |
1375 | return Py_BuildValue((char *)""); | |
1376 | } | |
1377 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1378 | PyObject *resultobj; | |
1379 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1380 | int arg2 = (int) -1 ; |
1381 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1382 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
1383 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1384 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1385 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1386 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1387 | long arg6 = (long) wxBU_AUTODRAW ; | |
1388 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1389 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1390 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1391 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1392 | wxBitmapButton *result; | |
1393 | wxPoint temp4 ; | |
1394 | wxSize temp5 ; | |
1395 | bool temp8 = False ; | |
1396 | PyObject * obj0 = 0 ; | |
1397 | PyObject * obj1 = 0 ; | |
1398 | PyObject * obj2 = 0 ; | |
1399 | PyObject * obj3 = 0 ; | |
1400 | PyObject * obj4 = 0 ; | |
1401 | PyObject * obj5 = 0 ; | |
1402 | PyObject * obj6 = 0 ; | |
1403 | PyObject * obj7 = 0 ; | |
1404 | char *kwnames[] = { | |
1405 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1406 | }; | |
1407 | ||
248ed943 | 1408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
1409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1411 | if (obj1) { |
1412 | arg2 = (int) SWIG_AsInt(obj1); | |
1413 | if (PyErr_Occurred()) SWIG_fail; | |
1414 | } | |
1415 | if (obj2) { | |
1416 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1417 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1418 | SWIG_fail; |
248ed943 RD |
1419 | if (arg3 == NULL) { |
1420 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1421 | SWIG_fail; | |
1422 | } | |
d55e5bfc RD |
1423 | } |
1424 | if (obj3) { | |
1425 | { | |
1426 | arg4 = &temp4; | |
1427 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1428 | } | |
1429 | } | |
1430 | if (obj4) { | |
1431 | { | |
1432 | arg5 = &temp5; | |
1433 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1434 | } | |
1435 | } | |
1436 | if (obj5) { | |
1437 | arg6 = (long) SWIG_AsLong(obj5); | |
1438 | if (PyErr_Occurred()) SWIG_fail; | |
1439 | } | |
1440 | if (obj6) { | |
1441 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
1442 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1443 | SWIG_fail; | |
1444 | if (arg7 == NULL) { | |
1445 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1446 | SWIG_fail; | |
1447 | } | |
1448 | } | |
1449 | if (obj7) { | |
1450 | { | |
1451 | arg8 = wxString_in_helper(obj7); | |
1452 | if (arg8 == NULL) SWIG_fail; | |
1453 | temp8 = True; | |
1454 | } | |
1455 | } | |
1456 | { | |
0439c23b | 1457 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1459 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1460 | ||
1461 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1462 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1463 | } |
b0f7404b | 1464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1465 | { |
1466 | if (temp8) | |
1467 | delete arg8; | |
1468 | } | |
1469 | return resultobj; | |
1470 | fail: | |
1471 | { | |
1472 | if (temp8) | |
1473 | delete arg8; | |
1474 | } | |
1475 | return NULL; | |
1476 | } | |
1477 | ||
1478 | ||
1479 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1480 | PyObject *resultobj; | |
1481 | wxBitmapButton *result; | |
1482 | char *kwnames[] = { | |
1483 | NULL | |
1484 | }; | |
1485 | ||
1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1487 | { | |
0439c23b | 1488 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
1489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1490 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1491 | ||
1492 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1493 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 1494 | } |
b0f7404b | 1495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d55e5bfc RD |
1496 | return resultobj; |
1497 | fail: | |
1498 | return NULL; | |
1499 | } | |
1500 | ||
1501 | ||
1502 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1503 | PyObject *resultobj; | |
1504 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1505 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1506 | int arg3 = (int) -1 ; |
1507 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1508 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
1509 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1510 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1511 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1512 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1513 | long arg7 = (long) wxBU_AUTODRAW ; | |
1514 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1515 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1516 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1517 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1518 | bool result; | |
1519 | wxPoint temp5 ; | |
1520 | wxSize temp6 ; | |
1521 | bool temp9 = False ; | |
1522 | PyObject * obj0 = 0 ; | |
1523 | PyObject * obj1 = 0 ; | |
1524 | PyObject * obj2 = 0 ; | |
1525 | PyObject * obj3 = 0 ; | |
1526 | PyObject * obj4 = 0 ; | |
1527 | PyObject * obj5 = 0 ; | |
1528 | PyObject * obj6 = 0 ; | |
1529 | PyObject * obj7 = 0 ; | |
1530 | PyObject * obj8 = 0 ; | |
1531 | char *kwnames[] = { | |
1532 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1533 | }; | |
1534 | ||
248ed943 | 1535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
1536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1538 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1540 | if (obj2) { |
1541 | arg3 = (int) SWIG_AsInt(obj2); | |
1542 | if (PyErr_Occurred()) SWIG_fail; | |
1543 | } | |
1544 | if (obj3) { | |
1545 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1546 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 1547 | SWIG_fail; |
248ed943 RD |
1548 | if (arg4 == NULL) { |
1549 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1550 | SWIG_fail; | |
1551 | } | |
d55e5bfc RD |
1552 | } |
1553 | if (obj4) { | |
1554 | { | |
1555 | arg5 = &temp5; | |
1556 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1557 | } | |
1558 | } | |
1559 | if (obj5) { | |
1560 | { | |
1561 | arg6 = &temp6; | |
1562 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1563 | } | |
1564 | } | |
1565 | if (obj6) { | |
1566 | arg7 = (long) SWIG_AsLong(obj6); | |
1567 | if (PyErr_Occurred()) SWIG_fail; | |
1568 | } | |
1569 | if (obj7) { | |
1570 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
1571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1572 | SWIG_fail; | |
1573 | if (arg8 == NULL) { | |
1574 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1575 | SWIG_fail; | |
1576 | } | |
1577 | } | |
1578 | if (obj8) { | |
1579 | { | |
1580 | arg9 = wxString_in_helper(obj8); | |
1581 | if (arg9 == NULL) SWIG_fail; | |
1582 | temp9 = True; | |
1583 | } | |
1584 | } | |
1585 | { | |
1586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1587 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1588 | ||
1589 | wxPyEndAllowThreads(__tstate); | |
1590 | if (PyErr_Occurred()) SWIG_fail; | |
1591 | } | |
1592 | { | |
1593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1594 | } | |
1595 | { | |
1596 | if (temp9) | |
1597 | delete arg9; | |
1598 | } | |
1599 | return resultobj; | |
1600 | fail: | |
1601 | { | |
1602 | if (temp9) | |
1603 | delete arg9; | |
1604 | } | |
1605 | return NULL; | |
1606 | } | |
1607 | ||
1608 | ||
1609 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1610 | PyObject *resultobj; | |
1611 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1612 | wxBitmap result; | |
1613 | PyObject * obj0 = 0 ; | |
1614 | char *kwnames[] = { | |
1615 | (char *) "self", NULL | |
1616 | }; | |
1617 | ||
1618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
1619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1621 | { | |
1622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1623 | result = (arg1)->GetBitmapLabel(); | |
1624 | ||
1625 | wxPyEndAllowThreads(__tstate); | |
1626 | if (PyErr_Occurred()) SWIG_fail; | |
1627 | } | |
1628 | { | |
1629 | wxBitmap * resultptr; | |
1630 | resultptr = new wxBitmap((wxBitmap &) result); | |
1631 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1632 | } | |
1633 | return resultobj; | |
1634 | fail: | |
1635 | return NULL; | |
1636 | } | |
1637 | ||
1638 | ||
1639 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1640 | PyObject *resultobj; | |
1641 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1642 | wxBitmap result; | |
1643 | PyObject * obj0 = 0 ; | |
1644 | char *kwnames[] = { | |
1645 | (char *) "self", NULL | |
1646 | }; | |
1647 | ||
1648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
1649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1651 | { | |
1652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1653 | result = (arg1)->GetBitmapDisabled(); | |
1654 | ||
1655 | wxPyEndAllowThreads(__tstate); | |
1656 | if (PyErr_Occurred()) SWIG_fail; | |
1657 | } | |
1658 | { | |
1659 | wxBitmap * resultptr; | |
1660 | resultptr = new wxBitmap((wxBitmap &) result); | |
1661 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1662 | } | |
1663 | return resultobj; | |
1664 | fail: | |
1665 | return NULL; | |
1666 | } | |
1667 | ||
1668 | ||
1669 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1670 | PyObject *resultobj; | |
1671 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1672 | wxBitmap result; | |
1673 | PyObject * obj0 = 0 ; | |
1674 | char *kwnames[] = { | |
1675 | (char *) "self", NULL | |
1676 | }; | |
1677 | ||
1678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
1679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1681 | { | |
1682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1683 | result = (arg1)->GetBitmapFocus(); | |
1684 | ||
1685 | wxPyEndAllowThreads(__tstate); | |
1686 | if (PyErr_Occurred()) SWIG_fail; | |
1687 | } | |
1688 | { | |
1689 | wxBitmap * resultptr; | |
1690 | resultptr = new wxBitmap((wxBitmap &) result); | |
1691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1692 | } | |
1693 | return resultobj; | |
1694 | fail: | |
1695 | return NULL; | |
1696 | } | |
1697 | ||
1698 | ||
1699 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1700 | PyObject *resultobj; | |
1701 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1702 | wxBitmap result; | |
1703 | PyObject * obj0 = 0 ; | |
1704 | char *kwnames[] = { | |
1705 | (char *) "self", NULL | |
1706 | }; | |
1707 | ||
1708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
1709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1711 | { | |
1712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1713 | result = (arg1)->GetBitmapSelected(); | |
1714 | ||
1715 | wxPyEndAllowThreads(__tstate); | |
1716 | if (PyErr_Occurred()) SWIG_fail; | |
1717 | } | |
1718 | { | |
1719 | wxBitmap * resultptr; | |
1720 | resultptr = new wxBitmap((wxBitmap &) result); | |
1721 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
1722 | } | |
1723 | return resultobj; | |
1724 | fail: | |
1725 | return NULL; | |
1726 | } | |
1727 | ||
1728 | ||
1729 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1730 | PyObject *resultobj; | |
1731 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1732 | wxBitmap *arg2 = 0 ; | |
1733 | PyObject * obj0 = 0 ; | |
1734 | PyObject * obj1 = 0 ; | |
1735 | char *kwnames[] = { | |
1736 | (char *) "self",(char *) "bitmap", NULL | |
1737 | }; | |
1738 | ||
1739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
1740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1744 | SWIG_fail; | |
1745 | if (arg2 == NULL) { | |
1746 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1747 | SWIG_fail; | |
1748 | } | |
1749 | { | |
1750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1751 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1752 | ||
1753 | wxPyEndAllowThreads(__tstate); | |
1754 | if (PyErr_Occurred()) SWIG_fail; | |
1755 | } | |
1756 | Py_INCREF(Py_None); resultobj = Py_None; | |
1757 | return resultobj; | |
1758 | fail: | |
1759 | return NULL; | |
1760 | } | |
1761 | ||
1762 | ||
1763 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1764 | PyObject *resultobj; | |
1765 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1766 | wxBitmap *arg2 = 0 ; | |
1767 | PyObject * obj0 = 0 ; | |
1768 | PyObject * obj1 = 0 ; | |
1769 | char *kwnames[] = { | |
1770 | (char *) "self",(char *) "bitmap", NULL | |
1771 | }; | |
1772 | ||
1773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
1774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1776 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1777 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1778 | SWIG_fail; | |
1779 | if (arg2 == NULL) { | |
1780 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1781 | SWIG_fail; | |
1782 | } | |
1783 | { | |
1784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1785 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1786 | ||
1787 | wxPyEndAllowThreads(__tstate); | |
1788 | if (PyErr_Occurred()) SWIG_fail; | |
1789 | } | |
1790 | Py_INCREF(Py_None); resultobj = Py_None; | |
1791 | return resultobj; | |
1792 | fail: | |
1793 | return NULL; | |
1794 | } | |
1795 | ||
1796 | ||
1797 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1798 | PyObject *resultobj; | |
1799 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1800 | wxBitmap *arg2 = 0 ; | |
1801 | PyObject * obj0 = 0 ; | |
1802 | PyObject * obj1 = 0 ; | |
1803 | char *kwnames[] = { | |
1804 | (char *) "self",(char *) "bitmap", NULL | |
1805 | }; | |
1806 | ||
1807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
1808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1812 | SWIG_fail; | |
1813 | if (arg2 == NULL) { | |
1814 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1815 | SWIG_fail; | |
1816 | } | |
1817 | { | |
1818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1819 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1820 | ||
1821 | wxPyEndAllowThreads(__tstate); | |
1822 | if (PyErr_Occurred()) SWIG_fail; | |
1823 | } | |
1824 | Py_INCREF(Py_None); resultobj = Py_None; | |
1825 | return resultobj; | |
1826 | fail: | |
1827 | return NULL; | |
1828 | } | |
1829 | ||
1830 | ||
1831 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1832 | PyObject *resultobj; | |
1833 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1834 | wxBitmap *arg2 = 0 ; | |
1835 | PyObject * obj0 = 0 ; | |
1836 | PyObject * obj1 = 0 ; | |
1837 | char *kwnames[] = { | |
1838 | (char *) "self",(char *) "bitmap", NULL | |
1839 | }; | |
1840 | ||
1841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
1842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1844 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1845 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1846 | SWIG_fail; | |
1847 | if (arg2 == NULL) { | |
1848 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1849 | SWIG_fail; | |
1850 | } | |
1851 | { | |
1852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1853 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1854 | ||
1855 | wxPyEndAllowThreads(__tstate); | |
1856 | if (PyErr_Occurred()) SWIG_fail; | |
1857 | } | |
1858 | Py_INCREF(Py_None); resultobj = Py_None; | |
1859 | return resultobj; | |
1860 | fail: | |
1861 | return NULL; | |
1862 | } | |
1863 | ||
1864 | ||
1865 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1866 | PyObject *resultobj; | |
1867 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1868 | int arg2 ; | |
1869 | int arg3 ; | |
1870 | PyObject * obj0 = 0 ; | |
1871 | PyObject * obj1 = 0 ; | |
1872 | PyObject * obj2 = 0 ; | |
1873 | char *kwnames[] = { | |
1874 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1875 | }; | |
1876 | ||
1877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
1878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1880 | arg2 = (int) SWIG_AsInt(obj1); | |
1881 | if (PyErr_Occurred()) SWIG_fail; | |
1882 | arg3 = (int) SWIG_AsInt(obj2); | |
1883 | if (PyErr_Occurred()) SWIG_fail; | |
1884 | { | |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | (arg1)->SetMargins(arg2,arg3); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
1891 | Py_INCREF(Py_None); resultobj = Py_None; | |
1892 | return resultobj; | |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1899 | PyObject *resultobj; | |
1900 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1901 | int result; | |
1902 | PyObject * obj0 = 0 ; | |
1903 | char *kwnames[] = { | |
1904 | (char *) "self", NULL | |
1905 | }; | |
1906 | ||
1907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
1908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1910 | { | |
1911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1912 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1913 | ||
1914 | wxPyEndAllowThreads(__tstate); | |
1915 | if (PyErr_Occurred()) SWIG_fail; | |
1916 | } | |
1917 | resultobj = SWIG_FromInt((int)result); | |
1918 | return resultobj; | |
1919 | fail: | |
1920 | return NULL; | |
1921 | } | |
1922 | ||
1923 | ||
1924 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1925 | PyObject *resultobj; | |
1926 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1927 | int result; | |
1928 | PyObject * obj0 = 0 ; | |
1929 | char *kwnames[] = { | |
1930 | (char *) "self", NULL | |
1931 | }; | |
1932 | ||
1933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
1934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, | |
1935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1936 | { | |
1937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1938 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1939 | ||
1940 | wxPyEndAllowThreads(__tstate); | |
1941 | if (PyErr_Occurred()) SWIG_fail; | |
1942 | } | |
1943 | resultobj = SWIG_FromInt((int)result); | |
1944 | return resultobj; | |
1945 | fail: | |
1946 | return NULL; | |
1947 | } | |
1948 | ||
1949 | ||
1950 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1951 | PyObject *obj; | |
1952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1953 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1954 | Py_INCREF(obj); | |
1955 | return Py_BuildValue((char *)""); | |
1956 | } | |
1957 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { | |
1958 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1959 | return 1; | |
1960 | } | |
1961 | ||
1962 | ||
1963 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1964 | PyObject *pyobj; | |
1965 | ||
1966 | { | |
1967 | #if wxUSE_UNICODE | |
1968 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1969 | #else | |
1970 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1971 | #endif | |
1972 | } | |
1973 | return pyobj; | |
1974 | } | |
1975 | ||
1976 | ||
1977 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1978 | PyObject *resultobj; | |
1979 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1980 | int arg2 = (int) -1 ; |
1981 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1982 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
1983 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1984 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1985 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1986 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1987 | long arg6 = (long) 0 ; | |
1988 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1989 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1990 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1991 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1992 | wxCheckBox *result; | |
1993 | bool temp3 = False ; | |
1994 | wxPoint temp4 ; | |
1995 | wxSize temp5 ; | |
1996 | bool temp8 = False ; | |
1997 | PyObject * obj0 = 0 ; | |
1998 | PyObject * obj1 = 0 ; | |
1999 | PyObject * obj2 = 0 ; | |
2000 | PyObject * obj3 = 0 ; | |
2001 | PyObject * obj4 = 0 ; | |
2002 | PyObject * obj5 = 0 ; | |
2003 | PyObject * obj6 = 0 ; | |
2004 | PyObject * obj7 = 0 ; | |
2005 | char *kwnames[] = { | |
2006 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2007 | }; | |
2008 | ||
248ed943 | 2009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
2010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2012 | if (obj1) { |
2013 | arg2 = (int) SWIG_AsInt(obj1); | |
2014 | if (PyErr_Occurred()) SWIG_fail; | |
2015 | } | |
2016 | if (obj2) { | |
2017 | { | |
2018 | arg3 = wxString_in_helper(obj2); | |
2019 | if (arg3 == NULL) SWIG_fail; | |
2020 | temp3 = True; | |
2021 | } | |
d55e5bfc RD |
2022 | } |
2023 | if (obj3) { | |
2024 | { | |
2025 | arg4 = &temp4; | |
2026 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2027 | } | |
2028 | } | |
2029 | if (obj4) { | |
2030 | { | |
2031 | arg5 = &temp5; | |
2032 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2033 | } | |
2034 | } | |
2035 | if (obj5) { | |
2036 | arg6 = (long) SWIG_AsLong(obj5); | |
2037 | if (PyErr_Occurred()) SWIG_fail; | |
2038 | } | |
2039 | if (obj6) { | |
2040 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2042 | SWIG_fail; | |
2043 | if (arg7 == NULL) { | |
2044 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2045 | SWIG_fail; | |
2046 | } | |
2047 | } | |
2048 | if (obj7) { | |
2049 | { | |
2050 | arg8 = wxString_in_helper(obj7); | |
2051 | if (arg8 == NULL) SWIG_fail; | |
2052 | temp8 = True; | |
2053 | } | |
2054 | } | |
2055 | { | |
0439c23b | 2056 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2058 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2059 | ||
2060 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2061 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2062 | } |
2063 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2064 | { | |
2065 | if (temp3) | |
2066 | delete arg3; | |
2067 | } | |
2068 | { | |
2069 | if (temp8) | |
2070 | delete arg8; | |
2071 | } | |
2072 | return resultobj; | |
2073 | fail: | |
2074 | { | |
2075 | if (temp3) | |
2076 | delete arg3; | |
2077 | } | |
2078 | { | |
2079 | if (temp8) | |
2080 | delete arg8; | |
2081 | } | |
2082 | return NULL; | |
2083 | } | |
2084 | ||
2085 | ||
2086 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2087 | PyObject *resultobj; | |
2088 | wxCheckBox *result; | |
2089 | char *kwnames[] = { | |
2090 | NULL | |
2091 | }; | |
2092 | ||
2093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2094 | { | |
0439c23b | 2095 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2097 | result = (wxCheckBox *)new wxCheckBox(); | |
2098 | ||
2099 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2100 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2101 | } |
2102 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); | |
2103 | return resultobj; | |
2104 | fail: | |
2105 | return NULL; | |
2106 | } | |
2107 | ||
2108 | ||
2109 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2110 | PyObject *resultobj; | |
2111 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2112 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2113 | int arg3 = (int) -1 ; |
2114 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2115 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
2116 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2117 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2118 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2119 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2120 | long arg7 = (long) 0 ; | |
2121 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2122 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2123 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2124 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2125 | bool result; | |
2126 | bool temp4 = False ; | |
2127 | wxPoint temp5 ; | |
2128 | wxSize temp6 ; | |
2129 | bool temp9 = False ; | |
2130 | PyObject * obj0 = 0 ; | |
2131 | PyObject * obj1 = 0 ; | |
2132 | PyObject * obj2 = 0 ; | |
2133 | PyObject * obj3 = 0 ; | |
2134 | PyObject * obj4 = 0 ; | |
2135 | PyObject * obj5 = 0 ; | |
2136 | PyObject * obj6 = 0 ; | |
2137 | PyObject * obj7 = 0 ; | |
2138 | PyObject * obj8 = 0 ; | |
2139 | char *kwnames[] = { | |
2140 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2141 | }; | |
2142 | ||
248ed943 | 2143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
2144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2148 | if (obj2) { |
2149 | arg3 = (int) SWIG_AsInt(obj2); | |
2150 | if (PyErr_Occurred()) SWIG_fail; | |
2151 | } | |
2152 | if (obj3) { | |
2153 | { | |
2154 | arg4 = wxString_in_helper(obj3); | |
2155 | if (arg4 == NULL) SWIG_fail; | |
2156 | temp4 = True; | |
2157 | } | |
d55e5bfc RD |
2158 | } |
2159 | if (obj4) { | |
2160 | { | |
2161 | arg5 = &temp5; | |
2162 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2163 | } | |
2164 | } | |
2165 | if (obj5) { | |
2166 | { | |
2167 | arg6 = &temp6; | |
2168 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2169 | } | |
2170 | } | |
2171 | if (obj6) { | |
2172 | arg7 = (long) SWIG_AsLong(obj6); | |
2173 | if (PyErr_Occurred()) SWIG_fail; | |
2174 | } | |
2175 | if (obj7) { | |
2176 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2177 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2178 | SWIG_fail; | |
2179 | if (arg8 == NULL) { | |
2180 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2181 | SWIG_fail; | |
2182 | } | |
2183 | } | |
2184 | if (obj8) { | |
2185 | { | |
2186 | arg9 = wxString_in_helper(obj8); | |
2187 | if (arg9 == NULL) SWIG_fail; | |
2188 | temp9 = True; | |
2189 | } | |
2190 | } | |
2191 | { | |
2192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2193 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2194 | ||
2195 | wxPyEndAllowThreads(__tstate); | |
2196 | if (PyErr_Occurred()) SWIG_fail; | |
2197 | } | |
2198 | { | |
2199 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2200 | } | |
2201 | { | |
2202 | if (temp4) | |
2203 | delete arg4; | |
2204 | } | |
2205 | { | |
2206 | if (temp9) | |
2207 | delete arg9; | |
2208 | } | |
2209 | return resultobj; | |
2210 | fail: | |
2211 | { | |
2212 | if (temp4) | |
2213 | delete arg4; | |
2214 | } | |
2215 | { | |
2216 | if (temp9) | |
2217 | delete arg9; | |
2218 | } | |
2219 | return NULL; | |
2220 | } | |
2221 | ||
2222 | ||
2223 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2224 | PyObject *resultobj; | |
2225 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2226 | bool result; | |
2227 | PyObject * obj0 = 0 ; | |
2228 | char *kwnames[] = { | |
2229 | (char *) "self", NULL | |
2230 | }; | |
2231 | ||
2232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2233 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2234 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2235 | { | |
2236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2237 | result = (bool)(arg1)->GetValue(); | |
2238 | ||
2239 | wxPyEndAllowThreads(__tstate); | |
2240 | if (PyErr_Occurred()) SWIG_fail; | |
2241 | } | |
2242 | { | |
2243 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2244 | } | |
2245 | return resultobj; | |
2246 | fail: | |
2247 | return NULL; | |
2248 | } | |
2249 | ||
2250 | ||
2251 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2252 | PyObject *resultobj; | |
2253 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2254 | bool result; | |
2255 | PyObject * obj0 = 0 ; | |
2256 | char *kwnames[] = { | |
2257 | (char *) "self", NULL | |
2258 | }; | |
2259 | ||
2260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2263 | { | |
2264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2265 | result = (bool)(arg1)->IsChecked(); | |
2266 | ||
2267 | wxPyEndAllowThreads(__tstate); | |
2268 | if (PyErr_Occurred()) SWIG_fail; | |
2269 | } | |
2270 | { | |
2271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2272 | } | |
2273 | return resultobj; | |
2274 | fail: | |
2275 | return NULL; | |
2276 | } | |
2277 | ||
2278 | ||
2279 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2280 | PyObject *resultobj; | |
2281 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2282 | bool arg2 ; | |
2283 | PyObject * obj0 = 0 ; | |
2284 | PyObject * obj1 = 0 ; | |
2285 | char *kwnames[] = { | |
2286 | (char *) "self",(char *) "state", NULL | |
2287 | }; | |
2288 | ||
2289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2292 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2293 | if (PyErr_Occurred()) SWIG_fail; | |
2294 | { | |
2295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2296 | (arg1)->SetValue(arg2); | |
2297 | ||
2298 | wxPyEndAllowThreads(__tstate); | |
2299 | if (PyErr_Occurred()) SWIG_fail; | |
2300 | } | |
2301 | Py_INCREF(Py_None); resultobj = Py_None; | |
2302 | return resultobj; | |
2303 | fail: | |
2304 | return NULL; | |
2305 | } | |
2306 | ||
2307 | ||
2308 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2309 | PyObject *resultobj; | |
2310 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2311 | int result; | |
2312 | PyObject * obj0 = 0 ; | |
2313 | char *kwnames[] = { | |
2314 | (char *) "self", NULL | |
2315 | }; | |
2316 | ||
2317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2320 | { | |
2321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2322 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2323 | ||
2324 | wxPyEndAllowThreads(__tstate); | |
2325 | if (PyErr_Occurred()) SWIG_fail; | |
2326 | } | |
2327 | resultobj = SWIG_FromInt((int)result); | |
2328 | return resultobj; | |
2329 | fail: | |
2330 | return NULL; | |
2331 | } | |
2332 | ||
2333 | ||
2334 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2335 | PyObject *resultobj; | |
2336 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2337 | int arg2 ; | |
2338 | PyObject * obj0 = 0 ; | |
2339 | PyObject * obj1 = 0 ; | |
2340 | char *kwnames[] = { | |
2341 | (char *) "self",(char *) "state", NULL | |
2342 | }; | |
2343 | ||
2344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; | |
2345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2347 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2348 | if (PyErr_Occurred()) SWIG_fail; | |
2349 | { | |
2350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2351 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2352 | ||
2353 | wxPyEndAllowThreads(__tstate); | |
2354 | if (PyErr_Occurred()) SWIG_fail; | |
2355 | } | |
2356 | Py_INCREF(Py_None); resultobj = Py_None; | |
2357 | return resultobj; | |
2358 | fail: | |
2359 | return NULL; | |
2360 | } | |
2361 | ||
2362 | ||
2363 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2364 | PyObject *resultobj; | |
2365 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2366 | bool result; | |
2367 | PyObject * obj0 = 0 ; | |
2368 | char *kwnames[] = { | |
2369 | (char *) "self", NULL | |
2370 | }; | |
2371 | ||
2372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2375 | { | |
2376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2377 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2378 | ||
2379 | wxPyEndAllowThreads(__tstate); | |
2380 | if (PyErr_Occurred()) SWIG_fail; | |
2381 | } | |
2382 | { | |
2383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2384 | } | |
2385 | return resultobj; | |
2386 | fail: | |
2387 | return NULL; | |
2388 | } | |
2389 | ||
2390 | ||
2391 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2392 | PyObject *resultobj; | |
2393 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2394 | bool result; | |
2395 | PyObject * obj0 = 0 ; | |
2396 | char *kwnames[] = { | |
2397 | (char *) "self", NULL | |
2398 | }; | |
2399 | ||
2400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, | |
2402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2403 | { | |
2404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2405 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2406 | ||
2407 | wxPyEndAllowThreads(__tstate); | |
2408 | if (PyErr_Occurred()) SWIG_fail; | |
2409 | } | |
2410 | { | |
2411 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2412 | } | |
2413 | return resultobj; | |
2414 | fail: | |
2415 | return NULL; | |
2416 | } | |
2417 | ||
2418 | ||
f20a2e1f RD |
2419 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2420 | PyObject *resultobj; | |
2421 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2422 | wxVisualAttributes result; | |
2423 | PyObject * obj0 = 0 ; | |
2424 | char *kwnames[] = { | |
2425 | (char *) "variant", NULL | |
2426 | }; | |
2427 | ||
2428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2429 | if (obj0) { | |
2430 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2431 | if (PyErr_Occurred()) SWIG_fail; | |
2432 | } | |
2433 | { | |
19272049 | 2434 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2436 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2437 | ||
2438 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2439 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2440 | } |
2441 | { | |
2442 | wxVisualAttributes * resultptr; | |
2443 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2444 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2445 | } | |
2446 | return resultobj; | |
2447 | fail: | |
2448 | return NULL; | |
2449 | } | |
2450 | ||
2451 | ||
d55e5bfc RD |
2452 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2453 | PyObject *obj; | |
2454 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2455 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2456 | Py_INCREF(obj); | |
2457 | return Py_BuildValue((char *)""); | |
2458 | } | |
2459 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { | |
2460 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2461 | return 1; | |
2462 | } | |
2463 | ||
2464 | ||
2465 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2466 | PyObject *pyobj; | |
2467 | ||
2468 | { | |
2469 | #if wxUSE_UNICODE | |
2470 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2471 | #else | |
2472 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2473 | #endif | |
2474 | } | |
2475 | return pyobj; | |
2476 | } | |
2477 | ||
2478 | ||
2479 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2480 | PyObject *resultobj; | |
2481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2482 | int arg2 = (int) -1 ; | |
2483 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
2484 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2485 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2486 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
2487 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
2488 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2489 | long arg6 = (long) 0 ; | |
2490 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2491 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2492 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2493 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
2494 | wxChoice *result; | |
2495 | wxPoint temp3 ; | |
2496 | wxSize temp4 ; | |
2497 | bool temp5 = False ; | |
2498 | bool temp8 = False ; | |
2499 | PyObject * obj0 = 0 ; | |
2500 | PyObject * obj1 = 0 ; | |
2501 | PyObject * obj2 = 0 ; | |
2502 | PyObject * obj3 = 0 ; | |
2503 | PyObject * obj4 = 0 ; | |
2504 | PyObject * obj5 = 0 ; | |
2505 | PyObject * obj6 = 0 ; | |
2506 | PyObject * obj7 = 0 ; | |
2507 | char *kwnames[] = { | |
2508 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2509 | }; | |
2510 | ||
2511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
2512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2514 | if (obj1) { | |
2515 | arg2 = (int) SWIG_AsInt(obj1); | |
2516 | if (PyErr_Occurred()) SWIG_fail; | |
2517 | } | |
2518 | if (obj2) { | |
2519 | { | |
2520 | arg3 = &temp3; | |
2521 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2522 | } | |
2523 | } | |
2524 | if (obj3) { | |
2525 | { | |
2526 | arg4 = &temp4; | |
2527 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2528 | } | |
2529 | } | |
2530 | if (obj4) { | |
2531 | { | |
2532 | if (! PySequence_Check(obj4)) { | |
2533 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2534 | SWIG_fail; | |
2535 | } | |
2536 | arg5 = new wxArrayString; | |
2537 | temp5 = True; | |
2538 | int i, len=PySequence_Length(obj4); | |
2539 | for (i=0; i<len; i++) { | |
2540 | PyObject* item = PySequence_GetItem(obj4, i); | |
2541 | #if wxUSE_UNICODE | |
2542 | PyObject* str = PyObject_Unicode(item); | |
2543 | #else | |
2544 | PyObject* str = PyObject_Str(item); | |
2545 | #endif | |
2546 | if (PyErr_Occurred()) SWIG_fail; | |
2547 | arg5->Add(Py2wxString(str)); | |
2548 | Py_DECREF(item); | |
2549 | Py_DECREF(str); | |
2550 | } | |
2551 | } | |
2552 | } | |
2553 | if (obj5) { | |
2554 | arg6 = (long) SWIG_AsLong(obj5); | |
2555 | if (PyErr_Occurred()) SWIG_fail; | |
2556 | } | |
2557 | if (obj6) { | |
2558 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
2559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2560 | SWIG_fail; | |
2561 | if (arg7 == NULL) { | |
2562 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2563 | SWIG_fail; | |
2564 | } | |
2565 | } | |
2566 | if (obj7) { | |
2567 | { | |
2568 | arg8 = wxString_in_helper(obj7); | |
2569 | if (arg8 == NULL) SWIG_fail; | |
2570 | temp8 = True; | |
2571 | } | |
2572 | } | |
2573 | { | |
0439c23b | 2574 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2576 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2577 | ||
2578 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2579 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2580 | } |
2581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2582 | { | |
2583 | if (temp5) delete arg5; | |
2584 | } | |
2585 | { | |
2586 | if (temp8) | |
2587 | delete arg8; | |
2588 | } | |
2589 | return resultobj; | |
2590 | fail: | |
2591 | { | |
2592 | if (temp5) delete arg5; | |
2593 | } | |
2594 | { | |
2595 | if (temp8) | |
2596 | delete arg8; | |
2597 | } | |
2598 | return NULL; | |
2599 | } | |
2600 | ||
2601 | ||
2602 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2603 | PyObject *resultobj; | |
2604 | wxChoice *result; | |
2605 | char *kwnames[] = { | |
2606 | NULL | |
2607 | }; | |
2608 | ||
2609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2610 | { | |
0439c23b | 2611 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
2612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2613 | result = (wxChoice *)new wxChoice(); | |
2614 | ||
2615 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2616 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
2617 | } |
2618 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); | |
2619 | return resultobj; | |
2620 | fail: | |
2621 | return NULL; | |
2622 | } | |
2623 | ||
2624 | ||
2625 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2626 | PyObject *resultobj; | |
2627 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2628 | wxWindow *arg2 = (wxWindow *) 0 ; | |
2629 | int arg3 = (int) -1 ; | |
2630 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2631 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2632 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2633 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2634 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2635 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2636 | long arg7 = (long) 0 ; | |
2637 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2638 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2639 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2640 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2641 | bool result; | |
2642 | wxPoint temp4 ; | |
2643 | wxSize temp5 ; | |
2644 | bool temp6 = False ; | |
2645 | bool temp9 = False ; | |
2646 | PyObject * obj0 = 0 ; | |
2647 | PyObject * obj1 = 0 ; | |
2648 | PyObject * obj2 = 0 ; | |
2649 | PyObject * obj3 = 0 ; | |
2650 | PyObject * obj4 = 0 ; | |
2651 | PyObject * obj5 = 0 ; | |
2652 | PyObject * obj6 = 0 ; | |
2653 | PyObject * obj7 = 0 ; | |
2654 | PyObject * obj8 = 0 ; | |
2655 | char *kwnames[] = { | |
2656 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2657 | }; | |
2658 | ||
2659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2662 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2664 | if (obj2) { | |
2665 | arg3 = (int) SWIG_AsInt(obj2); | |
2666 | if (PyErr_Occurred()) SWIG_fail; | |
2667 | } | |
2668 | if (obj3) { | |
2669 | { | |
2670 | arg4 = &temp4; | |
2671 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2672 | } | |
2673 | } | |
2674 | if (obj4) { | |
2675 | { | |
2676 | arg5 = &temp5; | |
2677 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2678 | } | |
2679 | } | |
2680 | if (obj5) { | |
2681 | { | |
2682 | if (! PySequence_Check(obj5)) { | |
2683 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2684 | SWIG_fail; | |
2685 | } | |
2686 | arg6 = new wxArrayString; | |
2687 | temp6 = True; | |
2688 | int i, len=PySequence_Length(obj5); | |
2689 | for (i=0; i<len; i++) { | |
2690 | PyObject* item = PySequence_GetItem(obj5, i); | |
2691 | #if wxUSE_UNICODE | |
2692 | PyObject* str = PyObject_Unicode(item); | |
2693 | #else | |
2694 | PyObject* str = PyObject_Str(item); | |
2695 | #endif | |
2696 | if (PyErr_Occurred()) SWIG_fail; | |
2697 | arg6->Add(Py2wxString(str)); | |
2698 | Py_DECREF(item); | |
2699 | Py_DECREF(str); | |
2700 | } | |
2701 | } | |
2702 | } | |
2703 | if (obj6) { | |
2704 | arg7 = (long) SWIG_AsLong(obj6); | |
2705 | if (PyErr_Occurred()) SWIG_fail; | |
2706 | } | |
2707 | if (obj7) { | |
2708 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
2709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2710 | SWIG_fail; | |
2711 | if (arg8 == NULL) { | |
2712 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
2713 | SWIG_fail; | |
2714 | } | |
2715 | } | |
2716 | if (obj8) { | |
2717 | { | |
2718 | arg9 = wxString_in_helper(obj8); | |
2719 | if (arg9 == NULL) SWIG_fail; | |
2720 | temp9 = True; | |
2721 | } | |
2722 | } | |
2723 | { | |
2724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2725 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2726 | ||
2727 | wxPyEndAllowThreads(__tstate); | |
2728 | if (PyErr_Occurred()) SWIG_fail; | |
2729 | } | |
2730 | { | |
2731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2732 | } | |
2733 | { | |
2734 | if (temp6) delete arg6; | |
2735 | } | |
2736 | { | |
2737 | if (temp9) | |
2738 | delete arg9; | |
2739 | } | |
2740 | return resultobj; | |
2741 | fail: | |
2742 | { | |
2743 | if (temp6) delete arg6; | |
2744 | } | |
2745 | { | |
2746 | if (temp9) | |
2747 | delete arg9; | |
2748 | } | |
2749 | return NULL; | |
2750 | } | |
2751 | ||
2752 | ||
2753 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2754 | PyObject *resultobj; | |
2755 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2756 | int arg2 ; | |
2757 | PyObject * obj0 = 0 ; | |
2758 | PyObject * obj1 = 0 ; | |
2759 | char *kwnames[] = { | |
2760 | (char *) "self",(char *) "n", NULL | |
2761 | }; | |
2762 | ||
2763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2766 | arg2 = (int const) SWIG_AsInt(obj1); | |
2767 | if (PyErr_Occurred()) SWIG_fail; | |
2768 | { | |
2769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2770 | (arg1)->SetSelection(arg2); | |
2771 | ||
2772 | wxPyEndAllowThreads(__tstate); | |
2773 | if (PyErr_Occurred()) SWIG_fail; | |
2774 | } | |
2775 | Py_INCREF(Py_None); resultobj = Py_None; | |
2776 | return resultobj; | |
2777 | fail: | |
2778 | return NULL; | |
2779 | } | |
2780 | ||
2781 | ||
2782 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2783 | PyObject *resultobj; | |
2784 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2785 | wxString *arg2 = 0 ; | |
121b9a67 | 2786 | bool result; |
d55e5bfc RD |
2787 | bool temp2 = False ; |
2788 | PyObject * obj0 = 0 ; | |
2789 | PyObject * obj1 = 0 ; | |
2790 | char *kwnames[] = { | |
2791 | (char *) "self",(char *) "string", NULL | |
2792 | }; | |
2793 | ||
2794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2797 | { | |
2798 | arg2 = wxString_in_helper(obj1); | |
2799 | if (arg2 == NULL) SWIG_fail; | |
2800 | temp2 = True; | |
2801 | } | |
2802 | { | |
2803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2804 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d55e5bfc RD |
2805 | |
2806 | wxPyEndAllowThreads(__tstate); | |
2807 | if (PyErr_Occurred()) SWIG_fail; | |
2808 | } | |
121b9a67 RD |
2809 | { |
2810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2811 | } | |
d55e5bfc RD |
2812 | { |
2813 | if (temp2) | |
2814 | delete arg2; | |
2815 | } | |
2816 | return resultobj; | |
2817 | fail: | |
2818 | { | |
2819 | if (temp2) | |
2820 | delete arg2; | |
2821 | } | |
2822 | return NULL; | |
2823 | } | |
2824 | ||
2825 | ||
2826 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2827 | PyObject *resultobj; | |
2828 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2829 | int arg2 ; | |
2830 | wxString *arg3 = 0 ; | |
2831 | bool temp3 = False ; | |
2832 | PyObject * obj0 = 0 ; | |
2833 | PyObject * obj1 = 0 ; | |
2834 | PyObject * obj2 = 0 ; | |
2835 | char *kwnames[] = { | |
2836 | (char *) "self",(char *) "n",(char *) "string", NULL | |
2837 | }; | |
2838 | ||
2839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, | |
2841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2842 | arg2 = (int) SWIG_AsInt(obj1); | |
2843 | if (PyErr_Occurred()) SWIG_fail; | |
2844 | { | |
2845 | arg3 = wxString_in_helper(obj2); | |
2846 | if (arg3 == NULL) SWIG_fail; | |
2847 | temp3 = True; | |
2848 | } | |
2849 | { | |
2850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2851 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2852 | ||
2853 | wxPyEndAllowThreads(__tstate); | |
2854 | if (PyErr_Occurred()) SWIG_fail; | |
2855 | } | |
2856 | Py_INCREF(Py_None); resultobj = Py_None; | |
2857 | { | |
2858 | if (temp3) | |
2859 | delete arg3; | |
2860 | } | |
2861 | return resultobj; | |
2862 | fail: | |
2863 | { | |
2864 | if (temp3) | |
2865 | delete arg3; | |
2866 | } | |
2867 | return NULL; | |
2868 | } | |
2869 | ||
2870 | ||
f20a2e1f RD |
2871 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2872 | PyObject *resultobj; | |
2873 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2874 | wxVisualAttributes result; | |
2875 | PyObject * obj0 = 0 ; | |
2876 | char *kwnames[] = { | |
2877 | (char *) "variant", NULL | |
2878 | }; | |
2879 | ||
2880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2881 | if (obj0) { | |
2882 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2883 | if (PyErr_Occurred()) SWIG_fail; | |
2884 | } | |
2885 | { | |
19272049 | 2886 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
2887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2888 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2889 | ||
2890 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2891 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
2892 | } |
2893 | { | |
2894 | wxVisualAttributes * resultptr; | |
2895 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2897 | } | |
2898 | return resultobj; | |
2899 | fail: | |
2900 | return NULL; | |
2901 | } | |
2902 | ||
2903 | ||
d55e5bfc RD |
2904 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2905 | PyObject *obj; | |
2906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2907 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2908 | Py_INCREF(obj); | |
2909 | return Py_BuildValue((char *)""); | |
2910 | } | |
2911 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { | |
2912 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2913 | return 1; | |
2914 | } | |
2915 | ||
2916 | ||
2917 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2918 | PyObject *pyobj; | |
2919 | ||
2920 | { | |
2921 | #if wxUSE_UNICODE | |
2922 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2923 | #else | |
2924 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2925 | #endif | |
2926 | } | |
2927 | return pyobj; | |
2928 | } | |
2929 | ||
2930 | ||
2931 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2932 | PyObject *resultobj; | |
2933 | wxWindow *arg1 = (wxWindow *) 0 ; | |
2934 | int arg2 = (int) -1 ; | |
2935 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
2936 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2937 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2938 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2939 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2940 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
2941 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
2942 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2943 | long arg7 = (long) 0 ; | |
2944 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2945 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2946 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2947 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2948 | wxComboBox *result; | |
2949 | bool temp3 = False ; | |
2950 | wxPoint temp4 ; | |
2951 | wxSize temp5 ; | |
2952 | bool temp6 = False ; | |
2953 | bool temp9 = False ; | |
2954 | PyObject * obj0 = 0 ; | |
2955 | PyObject * obj1 = 0 ; | |
2956 | PyObject * obj2 = 0 ; | |
2957 | PyObject * obj3 = 0 ; | |
2958 | PyObject * obj4 = 0 ; | |
2959 | PyObject * obj5 = 0 ; | |
2960 | PyObject * obj6 = 0 ; | |
2961 | PyObject * obj7 = 0 ; | |
2962 | PyObject * obj8 = 0 ; | |
2963 | char *kwnames[] = { | |
2964 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2965 | }; | |
2966 | ||
2967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
2968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
2969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2970 | if (obj1) { | |
2971 | arg2 = (int) SWIG_AsInt(obj1); | |
2972 | if (PyErr_Occurred()) SWIG_fail; | |
2973 | } | |
2974 | if (obj2) { | |
2975 | { | |
2976 | arg3 = wxString_in_helper(obj2); | |
2977 | if (arg3 == NULL) SWIG_fail; | |
2978 | temp3 = True; | |
2979 | } | |
2980 | } | |
2981 | if (obj3) { | |
2982 | { | |
2983 | arg4 = &temp4; | |
2984 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2985 | } | |
2986 | } | |
2987 | if (obj4) { | |
2988 | { | |
2989 | arg5 = &temp5; | |
2990 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2991 | } | |
2992 | } | |
2993 | if (obj5) { | |
2994 | { | |
2995 | if (! PySequence_Check(obj5)) { | |
2996 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2997 | SWIG_fail; | |
2998 | } | |
2999 | arg6 = new wxArrayString; | |
3000 | temp6 = True; | |
3001 | int i, len=PySequence_Length(obj5); | |
3002 | for (i=0; i<len; i++) { | |
3003 | PyObject* item = PySequence_GetItem(obj5, i); | |
3004 | #if wxUSE_UNICODE | |
3005 | PyObject* str = PyObject_Unicode(item); | |
3006 | #else | |
3007 | PyObject* str = PyObject_Str(item); | |
3008 | #endif | |
3009 | if (PyErr_Occurred()) SWIG_fail; | |
3010 | arg6->Add(Py2wxString(str)); | |
3011 | Py_DECREF(item); | |
3012 | Py_DECREF(str); | |
3013 | } | |
3014 | } | |
3015 | } | |
3016 | if (obj6) { | |
3017 | arg7 = (long) SWIG_AsLong(obj6); | |
3018 | if (PyErr_Occurred()) SWIG_fail; | |
3019 | } | |
3020 | if (obj7) { | |
3021 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
3022 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3023 | SWIG_fail; | |
3024 | if (arg8 == NULL) { | |
3025 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3026 | SWIG_fail; | |
3027 | } | |
3028 | } | |
3029 | if (obj8) { | |
3030 | { | |
3031 | arg9 = wxString_in_helper(obj8); | |
3032 | if (arg9 == NULL) SWIG_fail; | |
3033 | temp9 = True; | |
3034 | } | |
3035 | } | |
3036 | { | |
0439c23b | 3037 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3039 | 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); | |
3040 | ||
3041 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3042 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3043 | } |
3044 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3045 | { | |
3046 | if (temp3) | |
3047 | delete arg3; | |
3048 | } | |
3049 | { | |
3050 | if (temp6) delete arg6; | |
3051 | } | |
3052 | { | |
3053 | if (temp9) | |
3054 | delete arg9; | |
3055 | } | |
3056 | return resultobj; | |
3057 | fail: | |
3058 | { | |
3059 | if (temp3) | |
3060 | delete arg3; | |
3061 | } | |
3062 | { | |
3063 | if (temp6) delete arg6; | |
3064 | } | |
3065 | { | |
3066 | if (temp9) | |
3067 | delete arg9; | |
3068 | } | |
3069 | return NULL; | |
3070 | } | |
3071 | ||
3072 | ||
3073 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3074 | PyObject *resultobj; | |
3075 | wxComboBox *result; | |
3076 | char *kwnames[] = { | |
3077 | NULL | |
3078 | }; | |
3079 | ||
3080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3081 | { | |
0439c23b | 3082 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3084 | result = (wxComboBox *)new wxComboBox(); | |
3085 | ||
3086 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3087 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3088 | } |
3089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); | |
3090 | return resultobj; | |
3091 | fail: | |
3092 | return NULL; | |
3093 | } | |
3094 | ||
3095 | ||
3096 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3097 | PyObject *resultobj; | |
3098 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
3100 | int arg3 = (int) -1 ; | |
3101 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
3102 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3103 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3104 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3105 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3106 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3107 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
3108 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3109 | long arg8 = (long) 0 ; | |
3110 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3111 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
3112 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; | |
3113 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
3114 | bool result; | |
3115 | bool temp4 = False ; | |
3116 | wxPoint temp5 ; | |
3117 | wxSize temp6 ; | |
3118 | bool temp7 = False ; | |
3119 | bool temp10 = False ; | |
3120 | PyObject * obj0 = 0 ; | |
3121 | PyObject * obj1 = 0 ; | |
3122 | PyObject * obj2 = 0 ; | |
3123 | PyObject * obj3 = 0 ; | |
3124 | PyObject * obj4 = 0 ; | |
3125 | PyObject * obj5 = 0 ; | |
3126 | PyObject * obj6 = 0 ; | |
3127 | PyObject * obj7 = 0 ; | |
3128 | PyObject * obj8 = 0 ; | |
3129 | PyObject * obj9 = 0 ; | |
3130 | char *kwnames[] = { | |
3131 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3132 | }; | |
3133 | ||
3134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
3135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3137 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3139 | if (obj2) { | |
3140 | arg3 = (int) SWIG_AsInt(obj2); | |
3141 | if (PyErr_Occurred()) SWIG_fail; | |
3142 | } | |
3143 | if (obj3) { | |
3144 | { | |
3145 | arg4 = wxString_in_helper(obj3); | |
3146 | if (arg4 == NULL) SWIG_fail; | |
3147 | temp4 = True; | |
3148 | } | |
3149 | } | |
3150 | if (obj4) { | |
3151 | { | |
3152 | arg5 = &temp5; | |
3153 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3154 | } | |
3155 | } | |
3156 | if (obj5) { | |
3157 | { | |
3158 | arg6 = &temp6; | |
3159 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3160 | } | |
3161 | } | |
3162 | if (obj6) { | |
3163 | { | |
3164 | if (! PySequence_Check(obj6)) { | |
3165 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3166 | SWIG_fail; | |
3167 | } | |
3168 | arg7 = new wxArrayString; | |
3169 | temp7 = True; | |
3170 | int i, len=PySequence_Length(obj6); | |
3171 | for (i=0; i<len; i++) { | |
3172 | PyObject* item = PySequence_GetItem(obj6, i); | |
3173 | #if wxUSE_UNICODE | |
3174 | PyObject* str = PyObject_Unicode(item); | |
3175 | #else | |
3176 | PyObject* str = PyObject_Str(item); | |
3177 | #endif | |
3178 | if (PyErr_Occurred()) SWIG_fail; | |
3179 | arg7->Add(Py2wxString(str)); | |
3180 | Py_DECREF(item); | |
3181 | Py_DECREF(str); | |
3182 | } | |
3183 | } | |
3184 | } | |
3185 | if (obj7) { | |
3186 | arg8 = (long) SWIG_AsLong(obj7); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
3189 | if (obj8) { | |
3190 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
3191 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3192 | SWIG_fail; | |
3193 | if (arg9 == NULL) { | |
3194 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3195 | SWIG_fail; | |
3196 | } | |
3197 | } | |
3198 | if (obj9) { | |
3199 | { | |
3200 | arg10 = wxString_in_helper(obj9); | |
3201 | if (arg10 == NULL) SWIG_fail; | |
3202 | temp10 = True; | |
3203 | } | |
3204 | } | |
3205 | { | |
3206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3207 | 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); | |
3208 | ||
3209 | wxPyEndAllowThreads(__tstate); | |
3210 | if (PyErr_Occurred()) SWIG_fail; | |
3211 | } | |
3212 | { | |
3213 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3214 | } | |
3215 | { | |
3216 | if (temp4) | |
3217 | delete arg4; | |
3218 | } | |
3219 | { | |
3220 | if (temp7) delete arg7; | |
3221 | } | |
3222 | { | |
3223 | if (temp10) | |
3224 | delete arg10; | |
3225 | } | |
3226 | return resultobj; | |
3227 | fail: | |
3228 | { | |
3229 | if (temp4) | |
3230 | delete arg4; | |
3231 | } | |
3232 | { | |
3233 | if (temp7) delete arg7; | |
3234 | } | |
3235 | { | |
3236 | if (temp10) | |
3237 | delete arg10; | |
3238 | } | |
3239 | return NULL; | |
3240 | } | |
3241 | ||
3242 | ||
3243 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3244 | PyObject *resultobj; | |
3245 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3246 | wxString result; | |
3247 | PyObject * obj0 = 0 ; | |
3248 | char *kwnames[] = { | |
3249 | (char *) "self", NULL | |
3250 | }; | |
3251 | ||
3252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
3253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3255 | { | |
3256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3257 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3258 | ||
3259 | wxPyEndAllowThreads(__tstate); | |
3260 | if (PyErr_Occurred()) SWIG_fail; | |
3261 | } | |
3262 | { | |
3263 | #if wxUSE_UNICODE | |
3264 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3265 | #else | |
3266 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3267 | #endif | |
3268 | } | |
3269 | return resultobj; | |
3270 | fail: | |
3271 | return NULL; | |
3272 | } | |
3273 | ||
3274 | ||
3275 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject *resultobj; | |
3277 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3278 | wxString *arg2 = 0 ; | |
3279 | bool temp2 = False ; | |
3280 | PyObject * obj0 = 0 ; | |
3281 | PyObject * obj1 = 0 ; | |
3282 | char *kwnames[] = { | |
3283 | (char *) "self",(char *) "value", NULL | |
3284 | }; | |
3285 | ||
3286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
3287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3289 | { | |
3290 | arg2 = wxString_in_helper(obj1); | |
3291 | if (arg2 == NULL) SWIG_fail; | |
3292 | temp2 = True; | |
3293 | } | |
3294 | { | |
3295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3296 | (arg1)->SetValue((wxString const &)*arg2); | |
3297 | ||
3298 | wxPyEndAllowThreads(__tstate); | |
3299 | if (PyErr_Occurred()) SWIG_fail; | |
3300 | } | |
3301 | Py_INCREF(Py_None); resultobj = Py_None; | |
3302 | { | |
3303 | if (temp2) | |
3304 | delete arg2; | |
3305 | } | |
3306 | return resultobj; | |
3307 | fail: | |
3308 | { | |
3309 | if (temp2) | |
3310 | delete arg2; | |
3311 | } | |
3312 | return NULL; | |
3313 | } | |
3314 | ||
3315 | ||
3316 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3317 | PyObject *resultobj; | |
3318 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3319 | PyObject * obj0 = 0 ; | |
3320 | char *kwnames[] = { | |
3321 | (char *) "self", NULL | |
3322 | }; | |
3323 | ||
3324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
3325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3327 | { | |
3328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3329 | (arg1)->Copy(); | |
3330 | ||
3331 | wxPyEndAllowThreads(__tstate); | |
3332 | if (PyErr_Occurred()) SWIG_fail; | |
3333 | } | |
3334 | Py_INCREF(Py_None); resultobj = Py_None; | |
3335 | return resultobj; | |
3336 | fail: | |
3337 | return NULL; | |
3338 | } | |
3339 | ||
3340 | ||
3341 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3342 | PyObject *resultobj; | |
3343 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3344 | PyObject * obj0 = 0 ; | |
3345 | char *kwnames[] = { | |
3346 | (char *) "self", NULL | |
3347 | }; | |
3348 | ||
3349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
3350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3352 | { | |
3353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3354 | (arg1)->Cut(); | |
3355 | ||
3356 | wxPyEndAllowThreads(__tstate); | |
3357 | if (PyErr_Occurred()) SWIG_fail; | |
3358 | } | |
3359 | Py_INCREF(Py_None); resultobj = Py_None; | |
3360 | return resultobj; | |
3361 | fail: | |
3362 | return NULL; | |
3363 | } | |
3364 | ||
3365 | ||
3366 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3367 | PyObject *resultobj; | |
3368 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3369 | PyObject * obj0 = 0 ; | |
3370 | char *kwnames[] = { | |
3371 | (char *) "self", NULL | |
3372 | }; | |
3373 | ||
3374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
3375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3377 | { | |
3378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3379 | (arg1)->Paste(); | |
3380 | ||
3381 | wxPyEndAllowThreads(__tstate); | |
3382 | if (PyErr_Occurred()) SWIG_fail; | |
3383 | } | |
3384 | Py_INCREF(Py_None); resultobj = Py_None; | |
3385 | return resultobj; | |
3386 | fail: | |
3387 | return NULL; | |
3388 | } | |
3389 | ||
3390 | ||
3391 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3392 | PyObject *resultobj; | |
3393 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3394 | long arg2 ; | |
3395 | PyObject * obj0 = 0 ; | |
3396 | PyObject * obj1 = 0 ; | |
3397 | char *kwnames[] = { | |
3398 | (char *) "self",(char *) "pos", NULL | |
3399 | }; | |
3400 | ||
3401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
3402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3404 | arg2 = (long) SWIG_AsLong(obj1); | |
3405 | if (PyErr_Occurred()) SWIG_fail; | |
3406 | { | |
3407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3408 | (arg1)->SetInsertionPoint(arg2); | |
3409 | ||
3410 | wxPyEndAllowThreads(__tstate); | |
3411 | if (PyErr_Occurred()) SWIG_fail; | |
3412 | } | |
3413 | Py_INCREF(Py_None); resultobj = Py_None; | |
3414 | return resultobj; | |
3415 | fail: | |
3416 | return NULL; | |
3417 | } | |
3418 | ||
3419 | ||
3420 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3421 | PyObject *resultobj; | |
3422 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3423 | long result; | |
3424 | PyObject * obj0 = 0 ; | |
3425 | char *kwnames[] = { | |
3426 | (char *) "self", NULL | |
3427 | }; | |
3428 | ||
3429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
3430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3432 | { | |
3433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3434 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3435 | ||
3436 | wxPyEndAllowThreads(__tstate); | |
3437 | if (PyErr_Occurred()) SWIG_fail; | |
3438 | } | |
3439 | resultobj = SWIG_FromLong((long)result); | |
3440 | return resultobj; | |
3441 | fail: | |
3442 | return NULL; | |
3443 | } | |
3444 | ||
3445 | ||
3446 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3447 | PyObject *resultobj; | |
3448 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3449 | long result; | |
3450 | PyObject * obj0 = 0 ; | |
3451 | char *kwnames[] = { | |
3452 | (char *) "self", NULL | |
3453 | }; | |
3454 | ||
3455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
3456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3458 | { | |
3459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3460 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3461 | ||
3462 | wxPyEndAllowThreads(__tstate); | |
3463 | if (PyErr_Occurred()) SWIG_fail; | |
3464 | } | |
3465 | resultobj = SWIG_FromLong((long)result); | |
3466 | return resultobj; | |
3467 | fail: | |
3468 | return NULL; | |
3469 | } | |
3470 | ||
3471 | ||
3472 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3473 | PyObject *resultobj; | |
3474 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3475 | long arg2 ; | |
3476 | long arg3 ; | |
3477 | wxString *arg4 = 0 ; | |
3478 | bool temp4 = False ; | |
3479 | PyObject * obj0 = 0 ; | |
3480 | PyObject * obj1 = 0 ; | |
3481 | PyObject * obj2 = 0 ; | |
3482 | PyObject * obj3 = 0 ; | |
3483 | char *kwnames[] = { | |
3484 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3485 | }; | |
3486 | ||
3487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
3488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3490 | arg2 = (long) SWIG_AsLong(obj1); | |
3491 | if (PyErr_Occurred()) SWIG_fail; | |
3492 | arg3 = (long) SWIG_AsLong(obj2); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | { | |
3495 | arg4 = wxString_in_helper(obj3); | |
3496 | if (arg4 == NULL) SWIG_fail; | |
3497 | temp4 = True; | |
3498 | } | |
3499 | { | |
3500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3501 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3502 | ||
3503 | wxPyEndAllowThreads(__tstate); | |
3504 | if (PyErr_Occurred()) SWIG_fail; | |
3505 | } | |
3506 | Py_INCREF(Py_None); resultobj = Py_None; | |
3507 | { | |
3508 | if (temp4) | |
3509 | delete arg4; | |
3510 | } | |
3511 | return resultobj; | |
3512 | fail: | |
3513 | { | |
3514 | if (temp4) | |
3515 | delete arg4; | |
3516 | } | |
3517 | return NULL; | |
3518 | } | |
3519 | ||
3520 | ||
3521 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3522 | PyObject *resultobj; | |
3523 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3524 | int arg2 ; | |
3525 | PyObject * obj0 = 0 ; | |
3526 | PyObject * obj1 = 0 ; | |
3527 | char *kwnames[] = { | |
3528 | (char *) "self",(char *) "n", NULL | |
3529 | }; | |
3530 | ||
3531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
3532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3534 | arg2 = (int) SWIG_AsInt(obj1); | |
3535 | if (PyErr_Occurred()) SWIG_fail; | |
3536 | { | |
3537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3538 | (arg1)->SetSelection(arg2); | |
3539 | ||
3540 | wxPyEndAllowThreads(__tstate); | |
3541 | if (PyErr_Occurred()) SWIG_fail; | |
3542 | } | |
3543 | Py_INCREF(Py_None); resultobj = Py_None; | |
3544 | return resultobj; | |
3545 | fail: | |
3546 | return NULL; | |
3547 | } | |
3548 | ||
3549 | ||
3550 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3551 | PyObject *resultobj; | |
3552 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3553 | long arg2 ; | |
3554 | long arg3 ; | |
3555 | PyObject * obj0 = 0 ; | |
3556 | PyObject * obj1 = 0 ; | |
3557 | PyObject * obj2 = 0 ; | |
3558 | char *kwnames[] = { | |
3559 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3560 | }; | |
3561 | ||
3562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3565 | arg2 = (long) SWIG_AsLong(obj1); | |
3566 | if (PyErr_Occurred()) SWIG_fail; | |
3567 | arg3 = (long) SWIG_AsLong(obj2); | |
3568 | if (PyErr_Occurred()) SWIG_fail; | |
3569 | { | |
3570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3571 | (arg1)->SetSelection(arg2,arg3); | |
3572 | ||
3573 | wxPyEndAllowThreads(__tstate); | |
3574 | if (PyErr_Occurred()) SWIG_fail; | |
3575 | } | |
3576 | Py_INCREF(Py_None); resultobj = Py_None; | |
3577 | return resultobj; | |
3578 | fail: | |
3579 | return NULL; | |
3580 | } | |
3581 | ||
3582 | ||
121b9a67 RD |
3583 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3584 | PyObject *resultobj; | |
3585 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3586 | wxString *arg2 = 0 ; | |
3587 | bool result; | |
3588 | bool temp2 = False ; | |
3589 | PyObject * obj0 = 0 ; | |
3590 | PyObject * obj1 = 0 ; | |
3591 | char *kwnames[] = { | |
3592 | (char *) "self",(char *) "string", NULL | |
3593 | }; | |
3594 | ||
3595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3598 | { | |
3599 | arg2 = wxString_in_helper(obj1); | |
3600 | if (arg2 == NULL) SWIG_fail; | |
3601 | temp2 = True; | |
3602 | } | |
3603 | { | |
3604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3605 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3606 | ||
3607 | wxPyEndAllowThreads(__tstate); | |
3608 | if (PyErr_Occurred()) SWIG_fail; | |
3609 | } | |
3610 | { | |
3611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3612 | } | |
3613 | { | |
3614 | if (temp2) | |
3615 | delete arg2; | |
3616 | } | |
3617 | return resultobj; | |
3618 | fail: | |
3619 | { | |
3620 | if (temp2) | |
3621 | delete arg2; | |
3622 | } | |
3623 | return NULL; | |
3624 | } | |
3625 | ||
3626 | ||
3627 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3628 | PyObject *resultobj; | |
3629 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3630 | int arg2 ; | |
3631 | wxString *arg3 = 0 ; | |
3632 | bool temp3 = False ; | |
3633 | PyObject * obj0 = 0 ; | |
3634 | PyObject * obj1 = 0 ; | |
3635 | PyObject * obj2 = 0 ; | |
3636 | char *kwnames[] = { | |
3637 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3638 | }; | |
3639 | ||
3640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3643 | arg2 = (int) SWIG_AsInt(obj1); | |
3644 | if (PyErr_Occurred()) SWIG_fail; | |
3645 | { | |
3646 | arg3 = wxString_in_helper(obj2); | |
3647 | if (arg3 == NULL) SWIG_fail; | |
3648 | temp3 = True; | |
3649 | } | |
3650 | { | |
3651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3652 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3653 | ||
3654 | wxPyEndAllowThreads(__tstate); | |
3655 | if (PyErr_Occurred()) SWIG_fail; | |
3656 | } | |
3657 | Py_INCREF(Py_None); resultobj = Py_None; | |
3658 | { | |
3659 | if (temp3) | |
3660 | delete arg3; | |
3661 | } | |
3662 | return resultobj; | |
3663 | fail: | |
3664 | { | |
3665 | if (temp3) | |
3666 | delete arg3; | |
3667 | } | |
3668 | return NULL; | |
3669 | } | |
3670 | ||
3671 | ||
d55e5bfc RD |
3672 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3673 | PyObject *resultobj; | |
3674 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3675 | bool arg2 ; | |
3676 | PyObject * obj0 = 0 ; | |
3677 | PyObject * obj1 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "self",(char *) "editable", NULL | |
3680 | }; | |
3681 | ||
3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
3683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3685 | arg2 = (bool) SWIG_AsBool(obj1); | |
3686 | if (PyErr_Occurred()) SWIG_fail; | |
3687 | { | |
3688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3689 | (arg1)->SetEditable(arg2); | |
3690 | ||
3691 | wxPyEndAllowThreads(__tstate); | |
3692 | if (PyErr_Occurred()) SWIG_fail; | |
3693 | } | |
3694 | Py_INCREF(Py_None); resultobj = Py_None; | |
3695 | return resultobj; | |
3696 | fail: | |
3697 | return NULL; | |
3698 | } | |
3699 | ||
3700 | ||
3701 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3702 | PyObject *resultobj; | |
3703 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3704 | PyObject * obj0 = 0 ; | |
3705 | char *kwnames[] = { | |
3706 | (char *) "self", NULL | |
3707 | }; | |
3708 | ||
3709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
3710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3712 | { | |
3713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3714 | (arg1)->SetInsertionPointEnd(); | |
3715 | ||
3716 | wxPyEndAllowThreads(__tstate); | |
3717 | if (PyErr_Occurred()) SWIG_fail; | |
3718 | } | |
3719 | Py_INCREF(Py_None); resultobj = Py_None; | |
3720 | return resultobj; | |
3721 | fail: | |
3722 | return NULL; | |
3723 | } | |
3724 | ||
3725 | ||
3726 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3727 | PyObject *resultobj; | |
3728 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3729 | long arg2 ; | |
3730 | long arg3 ; | |
3731 | PyObject * obj0 = 0 ; | |
3732 | PyObject * obj1 = 0 ; | |
3733 | PyObject * obj2 = 0 ; | |
3734 | char *kwnames[] = { | |
3735 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3736 | }; | |
3737 | ||
3738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3741 | arg2 = (long) SWIG_AsLong(obj1); | |
3742 | if (PyErr_Occurred()) SWIG_fail; | |
3743 | arg3 = (long) SWIG_AsLong(obj2); | |
3744 | if (PyErr_Occurred()) SWIG_fail; | |
3745 | { | |
3746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3747 | (arg1)->Remove(arg2,arg3); | |
3748 | ||
3749 | wxPyEndAllowThreads(__tstate); | |
3750 | if (PyErr_Occurred()) SWIG_fail; | |
3751 | } | |
3752 | Py_INCREF(Py_None); resultobj = Py_None; | |
3753 | return resultobj; | |
3754 | fail: | |
3755 | return NULL; | |
3756 | } | |
3757 | ||
3758 | ||
f20a2e1f RD |
3759 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3760 | PyObject *resultobj; | |
3761 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3762 | wxVisualAttributes result; | |
3763 | PyObject * obj0 = 0 ; | |
3764 | char *kwnames[] = { | |
3765 | (char *) "variant", NULL | |
3766 | }; | |
3767 | ||
3768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3769 | if (obj0) { | |
3770 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
3772 | } | |
3773 | { | |
19272049 | 3774 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
3775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3776 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3777 | ||
3778 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3779 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
3780 | } |
3781 | { | |
3782 | wxVisualAttributes * resultptr; | |
3783 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3784 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3785 | } | |
3786 | return resultobj; | |
3787 | fail: | |
3788 | return NULL; | |
3789 | } | |
3790 | ||
3791 | ||
d55e5bfc RD |
3792 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3793 | PyObject *obj; | |
3794 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3795 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3796 | Py_INCREF(obj); | |
3797 | return Py_BuildValue((char *)""); | |
3798 | } | |
3799 | static int _wrap_GaugeNameStr_set(PyObject *_val) { | |
3800 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3801 | return 1; | |
3802 | } | |
3803 | ||
3804 | ||
3805 | static PyObject *_wrap_GaugeNameStr_get() { | |
3806 | PyObject *pyobj; | |
3807 | ||
3808 | { | |
3809 | #if wxUSE_UNICODE | |
3810 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3811 | #else | |
3812 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3813 | #endif | |
3814 | } | |
3815 | return pyobj; | |
3816 | } | |
3817 | ||
3818 | ||
3819 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3820 | PyObject *resultobj; | |
3821 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3822 | int arg2 = (int) -1 ; |
3823 | int arg3 = (int) 100 ; | |
d55e5bfc RD |
3824 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3825 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3826 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3827 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3828 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3829 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3830 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3831 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3832 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3833 | wxGauge *result; | |
3834 | wxPoint temp4 ; | |
3835 | wxSize temp5 ; | |
3836 | bool temp8 = False ; | |
3837 | PyObject * obj0 = 0 ; | |
3838 | PyObject * obj1 = 0 ; | |
3839 | PyObject * obj2 = 0 ; | |
3840 | PyObject * obj3 = 0 ; | |
3841 | PyObject * obj4 = 0 ; | |
3842 | PyObject * obj5 = 0 ; | |
3843 | PyObject * obj6 = 0 ; | |
3844 | PyObject * obj7 = 0 ; | |
3845 | char *kwnames[] = { | |
3846 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3847 | }; | |
3848 | ||
248ed943 | 3849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
3850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3852 | if (obj1) { |
3853 | arg2 = (int) SWIG_AsInt(obj1); | |
3854 | if (PyErr_Occurred()) SWIG_fail; | |
3855 | } | |
3856 | if (obj2) { | |
3857 | arg3 = (int) SWIG_AsInt(obj2); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
d55e5bfc RD |
3860 | if (obj3) { |
3861 | { | |
3862 | arg4 = &temp4; | |
3863 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3864 | } | |
3865 | } | |
3866 | if (obj4) { | |
3867 | { | |
3868 | arg5 = &temp5; | |
3869 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3870 | } | |
3871 | } | |
3872 | if (obj5) { | |
3873 | arg6 = (long) SWIG_AsLong(obj5); | |
3874 | if (PyErr_Occurred()) SWIG_fail; | |
3875 | } | |
3876 | if (obj6) { | |
3877 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
3878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3879 | SWIG_fail; | |
3880 | if (arg7 == NULL) { | |
3881 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
3882 | SWIG_fail; | |
3883 | } | |
3884 | } | |
3885 | if (obj7) { | |
3886 | { | |
3887 | arg8 = wxString_in_helper(obj7); | |
3888 | if (arg8 == NULL) SWIG_fail; | |
3889 | temp8 = True; | |
3890 | } | |
3891 | } | |
3892 | { | |
0439c23b | 3893 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3895 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3896 | ||
3897 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3898 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3899 | } |
3900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3901 | { | |
3902 | if (temp8) | |
3903 | delete arg8; | |
3904 | } | |
3905 | return resultobj; | |
3906 | fail: | |
3907 | { | |
3908 | if (temp8) | |
3909 | delete arg8; | |
3910 | } | |
3911 | return NULL; | |
3912 | } | |
3913 | ||
3914 | ||
3915 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3916 | PyObject *resultobj; | |
3917 | wxGauge *result; | |
3918 | char *kwnames[] = { | |
3919 | NULL | |
3920 | }; | |
3921 | ||
3922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3923 | { | |
0439c23b | 3924 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
3925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3926 | result = (wxGauge *)new wxGauge(); | |
3927 | ||
3928 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3929 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
3930 | } |
3931 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); | |
3932 | return resultobj; | |
3933 | fail: | |
3934 | return NULL; | |
3935 | } | |
3936 | ||
3937 | ||
3938 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3939 | PyObject *resultobj; | |
3940 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3941 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3942 | int arg3 = (int) -1 ; |
3943 | int arg4 = (int) 100 ; | |
d55e5bfc RD |
3944 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3945 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3946 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3947 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3948 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3949 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3950 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3951 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3952 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3953 | bool result; | |
3954 | wxPoint temp5 ; | |
3955 | wxSize temp6 ; | |
3956 | bool temp9 = False ; | |
3957 | PyObject * obj0 = 0 ; | |
3958 | PyObject * obj1 = 0 ; | |
3959 | PyObject * obj2 = 0 ; | |
3960 | PyObject * obj3 = 0 ; | |
3961 | PyObject * obj4 = 0 ; | |
3962 | PyObject * obj5 = 0 ; | |
3963 | PyObject * obj6 = 0 ; | |
3964 | PyObject * obj7 = 0 ; | |
3965 | PyObject * obj8 = 0 ; | |
3966 | char *kwnames[] = { | |
3967 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3968 | }; | |
3969 | ||
248ed943 | 3970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
3971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3973 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3975 | if (obj2) { |
3976 | arg3 = (int) SWIG_AsInt(obj2); | |
3977 | if (PyErr_Occurred()) SWIG_fail; | |
3978 | } | |
3979 | if (obj3) { | |
3980 | arg4 = (int) SWIG_AsInt(obj3); | |
3981 | if (PyErr_Occurred()) SWIG_fail; | |
3982 | } | |
d55e5bfc RD |
3983 | if (obj4) { |
3984 | { | |
3985 | arg5 = &temp5; | |
3986 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3987 | } | |
3988 | } | |
3989 | if (obj5) { | |
3990 | { | |
3991 | arg6 = &temp6; | |
3992 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3993 | } | |
3994 | } | |
3995 | if (obj6) { | |
3996 | arg7 = (long) SWIG_AsLong(obj6); | |
3997 | if (PyErr_Occurred()) SWIG_fail; | |
3998 | } | |
3999 | if (obj7) { | |
4000 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
4001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4002 | SWIG_fail; | |
4003 | if (arg8 == NULL) { | |
4004 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
4005 | SWIG_fail; | |
4006 | } | |
4007 | } | |
4008 | if (obj8) { | |
4009 | { | |
4010 | arg9 = wxString_in_helper(obj8); | |
4011 | if (arg9 == NULL) SWIG_fail; | |
4012 | temp9 = True; | |
4013 | } | |
4014 | } | |
4015 | { | |
4016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4017 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4018 | ||
4019 | wxPyEndAllowThreads(__tstate); | |
4020 | if (PyErr_Occurred()) SWIG_fail; | |
4021 | } | |
4022 | { | |
4023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4024 | } | |
4025 | { | |
4026 | if (temp9) | |
4027 | delete arg9; | |
4028 | } | |
4029 | return resultobj; | |
4030 | fail: | |
4031 | { | |
4032 | if (temp9) | |
4033 | delete arg9; | |
4034 | } | |
4035 | return NULL; | |
4036 | } | |
4037 | ||
4038 | ||
4039 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4040 | PyObject *resultobj; | |
4041 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4042 | int arg2 ; | |
4043 | PyObject * obj0 = 0 ; | |
4044 | PyObject * obj1 = 0 ; | |
4045 | char *kwnames[] = { | |
4046 | (char *) "self",(char *) "range", NULL | |
4047 | }; | |
4048 | ||
4049 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; | |
4050 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4051 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4052 | arg2 = (int) SWIG_AsInt(obj1); | |
4053 | if (PyErr_Occurred()) SWIG_fail; | |
4054 | { | |
4055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4056 | (arg1)->SetRange(arg2); | |
4057 | ||
4058 | wxPyEndAllowThreads(__tstate); | |
4059 | if (PyErr_Occurred()) SWIG_fail; | |
4060 | } | |
4061 | Py_INCREF(Py_None); resultobj = Py_None; | |
4062 | return resultobj; | |
4063 | fail: | |
4064 | return NULL; | |
4065 | } | |
4066 | ||
4067 | ||
4068 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4069 | PyObject *resultobj; | |
4070 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4071 | int result; | |
4072 | PyObject * obj0 = 0 ; | |
4073 | char *kwnames[] = { | |
4074 | (char *) "self", NULL | |
4075 | }; | |
4076 | ||
4077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
4078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4080 | { | |
4081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4082 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4083 | ||
4084 | wxPyEndAllowThreads(__tstate); | |
4085 | if (PyErr_Occurred()) SWIG_fail; | |
4086 | } | |
4087 | resultobj = SWIG_FromInt((int)result); | |
4088 | return resultobj; | |
4089 | fail: | |
4090 | return NULL; | |
4091 | } | |
4092 | ||
4093 | ||
4094 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4095 | PyObject *resultobj; | |
4096 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4097 | int arg2 ; | |
4098 | PyObject * obj0 = 0 ; | |
4099 | PyObject * obj1 = 0 ; | |
4100 | char *kwnames[] = { | |
4101 | (char *) "self",(char *) "pos", NULL | |
4102 | }; | |
4103 | ||
4104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
4105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4107 | arg2 = (int) SWIG_AsInt(obj1); | |
4108 | if (PyErr_Occurred()) SWIG_fail; | |
4109 | { | |
4110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4111 | (arg1)->SetValue(arg2); | |
4112 | ||
4113 | wxPyEndAllowThreads(__tstate); | |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
4115 | } | |
4116 | Py_INCREF(Py_None); resultobj = Py_None; | |
4117 | return resultobj; | |
4118 | fail: | |
4119 | return NULL; | |
4120 | } | |
4121 | ||
4122 | ||
4123 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4124 | PyObject *resultobj; | |
4125 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4126 | int result; | |
4127 | PyObject * obj0 = 0 ; | |
4128 | char *kwnames[] = { | |
4129 | (char *) "self", NULL | |
4130 | }; | |
4131 | ||
4132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
4133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4135 | { | |
4136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4137 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4138 | ||
4139 | wxPyEndAllowThreads(__tstate); | |
4140 | if (PyErr_Occurred()) SWIG_fail; | |
4141 | } | |
4142 | resultobj = SWIG_FromInt((int)result); | |
4143 | return resultobj; | |
4144 | fail: | |
4145 | return NULL; | |
4146 | } | |
4147 | ||
4148 | ||
4149 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4150 | PyObject *resultobj; | |
4151 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4152 | bool result; | |
4153 | PyObject * obj0 = 0 ; | |
4154 | char *kwnames[] = { | |
4155 | (char *) "self", NULL | |
4156 | }; | |
4157 | ||
4158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
4159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4161 | { | |
4162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4163 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4164 | ||
4165 | wxPyEndAllowThreads(__tstate); | |
4166 | if (PyErr_Occurred()) SWIG_fail; | |
4167 | } | |
4168 | { | |
4169 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4170 | } | |
4171 | return resultobj; | |
4172 | fail: | |
4173 | return NULL; | |
4174 | } | |
4175 | ||
4176 | ||
4177 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4178 | PyObject *resultobj; | |
4179 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4180 | int arg2 ; | |
4181 | PyObject * obj0 = 0 ; | |
4182 | PyObject * obj1 = 0 ; | |
4183 | char *kwnames[] = { | |
4184 | (char *) "self",(char *) "w", NULL | |
4185 | }; | |
4186 | ||
4187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; | |
4188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4190 | arg2 = (int) SWIG_AsInt(obj1); | |
4191 | if (PyErr_Occurred()) SWIG_fail; | |
4192 | { | |
4193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4194 | (arg1)->SetShadowWidth(arg2); | |
4195 | ||
4196 | wxPyEndAllowThreads(__tstate); | |
4197 | if (PyErr_Occurred()) SWIG_fail; | |
4198 | } | |
4199 | Py_INCREF(Py_None); resultobj = Py_None; | |
4200 | return resultobj; | |
4201 | fail: | |
4202 | return NULL; | |
4203 | } | |
4204 | ||
4205 | ||
4206 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4207 | PyObject *resultobj; | |
4208 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4209 | int result; | |
4210 | PyObject * obj0 = 0 ; | |
4211 | char *kwnames[] = { | |
4212 | (char *) "self", NULL | |
4213 | }; | |
4214 | ||
4215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
4216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4218 | { | |
4219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4220 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4221 | ||
4222 | wxPyEndAllowThreads(__tstate); | |
4223 | if (PyErr_Occurred()) SWIG_fail; | |
4224 | } | |
4225 | resultobj = SWIG_FromInt((int)result); | |
4226 | return resultobj; | |
4227 | fail: | |
4228 | return NULL; | |
4229 | } | |
4230 | ||
4231 | ||
4232 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4233 | PyObject *resultobj; | |
4234 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4235 | int arg2 ; | |
4236 | PyObject * obj0 = 0 ; | |
4237 | PyObject * obj1 = 0 ; | |
4238 | char *kwnames[] = { | |
4239 | (char *) "self",(char *) "w", NULL | |
4240 | }; | |
4241 | ||
4242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; | |
4243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4245 | arg2 = (int) SWIG_AsInt(obj1); | |
4246 | if (PyErr_Occurred()) SWIG_fail; | |
4247 | { | |
4248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4249 | (arg1)->SetBezelFace(arg2); | |
4250 | ||
4251 | wxPyEndAllowThreads(__tstate); | |
4252 | if (PyErr_Occurred()) SWIG_fail; | |
4253 | } | |
4254 | Py_INCREF(Py_None); resultobj = Py_None; | |
4255 | return resultobj; | |
4256 | fail: | |
4257 | return NULL; | |
4258 | } | |
4259 | ||
4260 | ||
4261 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4262 | PyObject *resultobj; | |
4263 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4264 | int result; | |
4265 | PyObject * obj0 = 0 ; | |
4266 | char *kwnames[] = { | |
4267 | (char *) "self", NULL | |
4268 | }; | |
4269 | ||
4270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
4271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, | |
4272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4273 | { | |
4274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4275 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4276 | ||
4277 | wxPyEndAllowThreads(__tstate); | |
4278 | if (PyErr_Occurred()) SWIG_fail; | |
4279 | } | |
4280 | resultobj = SWIG_FromInt((int)result); | |
4281 | return resultobj; | |
4282 | fail: | |
4283 | return NULL; | |
4284 | } | |
4285 | ||
4286 | ||
f20a2e1f RD |
4287 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4288 | PyObject *resultobj; | |
4289 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4290 | wxVisualAttributes result; | |
4291 | PyObject * obj0 = 0 ; | |
4292 | char *kwnames[] = { | |
4293 | (char *) "variant", NULL | |
4294 | }; | |
4295 | ||
4296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4297 | if (obj0) { | |
4298 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4299 | if (PyErr_Occurred()) SWIG_fail; | |
4300 | } | |
4301 | { | |
19272049 | 4302 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4304 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4305 | ||
4306 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4307 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4308 | } |
4309 | { | |
4310 | wxVisualAttributes * resultptr; | |
4311 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4312 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4313 | } | |
4314 | return resultobj; | |
4315 | fail: | |
4316 | return NULL; | |
4317 | } | |
4318 | ||
4319 | ||
d55e5bfc RD |
4320 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4321 | PyObject *obj; | |
4322 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4323 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4324 | Py_INCREF(obj); | |
4325 | return Py_BuildValue((char *)""); | |
4326 | } | |
4327 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { | |
4328 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4329 | return 1; | |
4330 | } | |
4331 | ||
4332 | ||
4333 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4334 | PyObject *pyobj; | |
4335 | ||
4336 | { | |
4337 | #if wxUSE_UNICODE | |
4338 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4339 | #else | |
4340 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4341 | #endif | |
4342 | } | |
4343 | return pyobj; | |
4344 | } | |
4345 | ||
4346 | ||
4347 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4348 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4349 | return 1; | |
4350 | } | |
4351 | ||
4352 | ||
4353 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4354 | PyObject *pyobj; | |
4355 | ||
4356 | { | |
4357 | #if wxUSE_UNICODE | |
4358 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4359 | #else | |
4360 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4361 | #endif | |
4362 | } | |
4363 | return pyobj; | |
4364 | } | |
4365 | ||
4366 | ||
4367 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4368 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4369 | return 1; | |
4370 | } | |
4371 | ||
4372 | ||
4373 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4374 | PyObject *pyobj; | |
4375 | ||
4376 | { | |
4377 | #if wxUSE_UNICODE | |
4378 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4379 | #else | |
4380 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4381 | #endif | |
4382 | } | |
4383 | return pyobj; | |
4384 | } | |
4385 | ||
4386 | ||
4387 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4388 | PyObject *resultobj; | |
4389 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4390 | int arg2 = (int) -1 ; |
4391 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4392 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4393 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4394 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4395 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4396 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4397 | long arg6 = (long) 0 ; | |
4398 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4399 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4400 | wxStaticBox *result; | |
4401 | bool temp3 = False ; | |
4402 | wxPoint temp4 ; | |
4403 | wxSize temp5 ; | |
4404 | bool temp7 = False ; | |
4405 | PyObject * obj0 = 0 ; | |
4406 | PyObject * obj1 = 0 ; | |
4407 | PyObject * obj2 = 0 ; | |
4408 | PyObject * obj3 = 0 ; | |
4409 | PyObject * obj4 = 0 ; | |
4410 | PyObject * obj5 = 0 ; | |
4411 | PyObject * obj6 = 0 ; | |
4412 | char *kwnames[] = { | |
4413 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4414 | }; | |
4415 | ||
248ed943 | 4416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4419 | if (obj1) { |
4420 | arg2 = (int) SWIG_AsInt(obj1); | |
4421 | if (PyErr_Occurred()) SWIG_fail; | |
4422 | } | |
4423 | if (obj2) { | |
4424 | { | |
4425 | arg3 = wxString_in_helper(obj2); | |
4426 | if (arg3 == NULL) SWIG_fail; | |
4427 | temp3 = True; | |
4428 | } | |
d55e5bfc RD |
4429 | } |
4430 | if (obj3) { | |
4431 | { | |
4432 | arg4 = &temp4; | |
4433 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4434 | } | |
4435 | } | |
4436 | if (obj4) { | |
4437 | { | |
4438 | arg5 = &temp5; | |
4439 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4440 | } | |
4441 | } | |
4442 | if (obj5) { | |
4443 | arg6 = (long) SWIG_AsLong(obj5); | |
4444 | if (PyErr_Occurred()) SWIG_fail; | |
4445 | } | |
4446 | if (obj6) { | |
4447 | { | |
4448 | arg7 = wxString_in_helper(obj6); | |
4449 | if (arg7 == NULL) SWIG_fail; | |
4450 | temp7 = True; | |
4451 | } | |
4452 | } | |
4453 | { | |
0439c23b | 4454 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4456 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4457 | ||
4458 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4459 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4460 | } |
b0f7404b | 4461 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4462 | { |
4463 | if (temp3) | |
4464 | delete arg3; | |
4465 | } | |
4466 | { | |
4467 | if (temp7) | |
4468 | delete arg7; | |
4469 | } | |
4470 | return resultobj; | |
4471 | fail: | |
4472 | { | |
4473 | if (temp3) | |
4474 | delete arg3; | |
4475 | } | |
4476 | { | |
4477 | if (temp7) | |
4478 | delete arg7; | |
4479 | } | |
4480 | return NULL; | |
4481 | } | |
4482 | ||
4483 | ||
4484 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4485 | PyObject *resultobj; | |
4486 | wxStaticBox *result; | |
4487 | char *kwnames[] = { | |
4488 | NULL | |
4489 | }; | |
4490 | ||
4491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4492 | { | |
0439c23b | 4493 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4495 | result = (wxStaticBox *)new wxStaticBox(); | |
4496 | ||
4497 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4498 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 4499 | } |
b0f7404b | 4500 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d55e5bfc RD |
4501 | return resultobj; |
4502 | fail: | |
4503 | return NULL; | |
4504 | } | |
4505 | ||
4506 | ||
4507 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4508 | PyObject *resultobj; | |
4509 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4510 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4511 | int arg3 = (int) -1 ; |
4512 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4513 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
4514 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4515 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4516 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4517 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4518 | long arg7 = (long) 0 ; | |
4519 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4520 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4521 | bool result; | |
4522 | bool temp4 = False ; | |
4523 | wxPoint temp5 ; | |
4524 | wxSize temp6 ; | |
4525 | bool temp8 = False ; | |
4526 | PyObject * obj0 = 0 ; | |
4527 | PyObject * obj1 = 0 ; | |
4528 | PyObject * obj2 = 0 ; | |
4529 | PyObject * obj3 = 0 ; | |
4530 | PyObject * obj4 = 0 ; | |
4531 | PyObject * obj5 = 0 ; | |
4532 | PyObject * obj6 = 0 ; | |
4533 | PyObject * obj7 = 0 ; | |
4534 | char *kwnames[] = { | |
4535 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4536 | }; | |
4537 | ||
248ed943 | 4538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
4539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4543 | if (obj2) { |
4544 | arg3 = (int) SWIG_AsInt(obj2); | |
4545 | if (PyErr_Occurred()) SWIG_fail; | |
4546 | } | |
4547 | if (obj3) { | |
4548 | { | |
4549 | arg4 = wxString_in_helper(obj3); | |
4550 | if (arg4 == NULL) SWIG_fail; | |
4551 | temp4 = True; | |
4552 | } | |
d55e5bfc RD |
4553 | } |
4554 | if (obj4) { | |
4555 | { | |
4556 | arg5 = &temp5; | |
4557 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4558 | } | |
4559 | } | |
4560 | if (obj5) { | |
4561 | { | |
4562 | arg6 = &temp6; | |
4563 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4564 | } | |
4565 | } | |
4566 | if (obj6) { | |
4567 | arg7 = (long) SWIG_AsLong(obj6); | |
4568 | if (PyErr_Occurred()) SWIG_fail; | |
4569 | } | |
4570 | if (obj7) { | |
4571 | { | |
4572 | arg8 = wxString_in_helper(obj7); | |
4573 | if (arg8 == NULL) SWIG_fail; | |
4574 | temp8 = True; | |
4575 | } | |
4576 | } | |
4577 | { | |
4578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4579 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4580 | ||
4581 | wxPyEndAllowThreads(__tstate); | |
4582 | if (PyErr_Occurred()) SWIG_fail; | |
4583 | } | |
4584 | { | |
4585 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4586 | } | |
4587 | { | |
4588 | if (temp4) | |
4589 | delete arg4; | |
4590 | } | |
4591 | { | |
4592 | if (temp8) | |
4593 | delete arg8; | |
4594 | } | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | { | |
4598 | if (temp4) | |
4599 | delete arg4; | |
4600 | } | |
4601 | { | |
4602 | if (temp8) | |
4603 | delete arg8; | |
4604 | } | |
4605 | return NULL; | |
4606 | } | |
4607 | ||
4608 | ||
f20a2e1f RD |
4609 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4610 | PyObject *resultobj; | |
4611 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4612 | wxVisualAttributes result; | |
4613 | PyObject * obj0 = 0 ; | |
4614 | char *kwnames[] = { | |
4615 | (char *) "variant", NULL | |
4616 | }; | |
4617 | ||
4618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4619 | if (obj0) { | |
4620 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4621 | if (PyErr_Occurred()) SWIG_fail; | |
4622 | } | |
4623 | { | |
19272049 | 4624 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4626 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4627 | ||
4628 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4629 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4630 | } |
4631 | { | |
4632 | wxVisualAttributes * resultptr; | |
4633 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4635 | } | |
4636 | return resultobj; | |
4637 | fail: | |
4638 | return NULL; | |
4639 | } | |
4640 | ||
4641 | ||
d55e5bfc RD |
4642 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4643 | PyObject *obj; | |
4644 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4645 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4646 | Py_INCREF(obj); | |
4647 | return Py_BuildValue((char *)""); | |
4648 | } | |
4649 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4650 | PyObject *resultobj; | |
4651 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4652 | int arg2 = (int) -1 ; |
d55e5bfc RD |
4653 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4654 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4655 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4656 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4657 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4658 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4659 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4660 | wxStaticLine *result; | |
4661 | wxPoint temp3 ; | |
4662 | wxSize temp4 ; | |
4663 | bool temp6 = False ; | |
4664 | PyObject * obj0 = 0 ; | |
4665 | PyObject * obj1 = 0 ; | |
4666 | PyObject * obj2 = 0 ; | |
4667 | PyObject * obj3 = 0 ; | |
4668 | PyObject * obj4 = 0 ; | |
4669 | PyObject * obj5 = 0 ; | |
4670 | char *kwnames[] = { | |
4671 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4672 | }; | |
4673 | ||
248ed943 | 4674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
4675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4677 | if (obj1) { |
4678 | arg2 = (int) SWIG_AsInt(obj1); | |
4679 | if (PyErr_Occurred()) SWIG_fail; | |
4680 | } | |
d55e5bfc RD |
4681 | if (obj2) { |
4682 | { | |
4683 | arg3 = &temp3; | |
4684 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4685 | } | |
4686 | } | |
4687 | if (obj3) { | |
4688 | { | |
4689 | arg4 = &temp4; | |
4690 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4691 | } | |
4692 | } | |
4693 | if (obj4) { | |
4694 | arg5 = (long) SWIG_AsLong(obj4); | |
4695 | if (PyErr_Occurred()) SWIG_fail; | |
4696 | } | |
4697 | if (obj5) { | |
4698 | { | |
4699 | arg6 = wxString_in_helper(obj5); | |
4700 | if (arg6 == NULL) SWIG_fail; | |
4701 | temp6 = True; | |
4702 | } | |
4703 | } | |
4704 | { | |
0439c23b | 4705 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4707 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4708 | ||
4709 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4710 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4711 | } |
4712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4713 | { | |
4714 | if (temp6) | |
4715 | delete arg6; | |
4716 | } | |
4717 | return resultobj; | |
4718 | fail: | |
4719 | { | |
4720 | if (temp6) | |
4721 | delete arg6; | |
4722 | } | |
4723 | return NULL; | |
4724 | } | |
4725 | ||
4726 | ||
4727 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4728 | PyObject *resultobj; | |
4729 | wxStaticLine *result; | |
4730 | char *kwnames[] = { | |
4731 | NULL | |
4732 | }; | |
4733 | ||
4734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4735 | { | |
0439c23b | 4736 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4738 | result = (wxStaticLine *)new wxStaticLine(); | |
4739 | ||
4740 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4741 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4742 | } |
4743 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); | |
4744 | return resultobj; | |
4745 | fail: | |
4746 | return NULL; | |
4747 | } | |
4748 | ||
4749 | ||
4750 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4753 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4754 | int arg3 = (int) -1 ; |
d55e5bfc RD |
4755 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4756 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4757 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4758 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4759 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4760 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4761 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4762 | bool result; | |
4763 | wxPoint temp4 ; | |
4764 | wxSize temp5 ; | |
4765 | bool temp7 = False ; | |
4766 | PyObject * obj0 = 0 ; | |
4767 | PyObject * obj1 = 0 ; | |
4768 | PyObject * obj2 = 0 ; | |
4769 | PyObject * obj3 = 0 ; | |
4770 | PyObject * obj4 = 0 ; | |
4771 | PyObject * obj5 = 0 ; | |
4772 | PyObject * obj6 = 0 ; | |
4773 | char *kwnames[] = { | |
4774 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4775 | }; | |
4776 | ||
248ed943 | 4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4782 | if (obj2) { |
4783 | arg3 = (int) SWIG_AsInt(obj2); | |
4784 | if (PyErr_Occurred()) SWIG_fail; | |
4785 | } | |
d55e5bfc RD |
4786 | if (obj3) { |
4787 | { | |
4788 | arg4 = &temp4; | |
4789 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4790 | } | |
4791 | } | |
4792 | if (obj4) { | |
4793 | { | |
4794 | arg5 = &temp5; | |
4795 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4796 | } | |
4797 | } | |
4798 | if (obj5) { | |
4799 | arg6 = (long) SWIG_AsLong(obj5); | |
4800 | if (PyErr_Occurred()) SWIG_fail; | |
4801 | } | |
4802 | if (obj6) { | |
4803 | { | |
4804 | arg7 = wxString_in_helper(obj6); | |
4805 | if (arg7 == NULL) SWIG_fail; | |
4806 | temp7 = True; | |
4807 | } | |
4808 | } | |
4809 | { | |
4810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4811 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4812 | ||
4813 | wxPyEndAllowThreads(__tstate); | |
4814 | if (PyErr_Occurred()) SWIG_fail; | |
4815 | } | |
4816 | { | |
4817 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4818 | } | |
4819 | { | |
4820 | if (temp7) | |
4821 | delete arg7; | |
4822 | } | |
4823 | return resultobj; | |
4824 | fail: | |
4825 | { | |
4826 | if (temp7) | |
4827 | delete arg7; | |
4828 | } | |
4829 | return NULL; | |
4830 | } | |
4831 | ||
4832 | ||
4833 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4834 | PyObject *resultobj; | |
4835 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4836 | bool result; | |
4837 | PyObject * obj0 = 0 ; | |
4838 | char *kwnames[] = { | |
4839 | (char *) "self", NULL | |
4840 | }; | |
4841 | ||
4842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
4843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, | |
4844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4845 | { | |
4846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4847 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4848 | ||
4849 | wxPyEndAllowThreads(__tstate); | |
4850 | if (PyErr_Occurred()) SWIG_fail; | |
4851 | } | |
4852 | { | |
4853 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4854 | } | |
4855 | return resultobj; | |
4856 | fail: | |
4857 | return NULL; | |
4858 | } | |
4859 | ||
4860 | ||
4861 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4862 | PyObject *resultobj; | |
4863 | int result; | |
4864 | char *kwnames[] = { | |
4865 | NULL | |
4866 | }; | |
4867 | ||
4868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4869 | { | |
4870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4871 | result = (int)wxStaticLine::GetDefaultSize(); | |
4872 | ||
4873 | wxPyEndAllowThreads(__tstate); | |
4874 | if (PyErr_Occurred()) SWIG_fail; | |
4875 | } | |
4876 | resultobj = SWIG_FromInt((int)result); | |
4877 | return resultobj; | |
4878 | fail: | |
4879 | return NULL; | |
4880 | } | |
4881 | ||
4882 | ||
f20a2e1f RD |
4883 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4884 | PyObject *resultobj; | |
4885 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4886 | wxVisualAttributes result; | |
4887 | PyObject * obj0 = 0 ; | |
4888 | char *kwnames[] = { | |
4889 | (char *) "variant", NULL | |
4890 | }; | |
4891 | ||
4892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4893 | if (obj0) { | |
4894 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4895 | if (PyErr_Occurred()) SWIG_fail; | |
4896 | } | |
4897 | { | |
19272049 | 4898 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
4899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4900 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4901 | ||
4902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4903 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
4904 | } |
4905 | { | |
4906 | wxVisualAttributes * resultptr; | |
4907 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4908 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4909 | } | |
4910 | return resultobj; | |
4911 | fail: | |
4912 | return NULL; | |
4913 | } | |
4914 | ||
4915 | ||
d55e5bfc RD |
4916 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4917 | PyObject *obj; | |
4918 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4919 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4920 | Py_INCREF(obj); | |
4921 | return Py_BuildValue((char *)""); | |
4922 | } | |
4923 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4924 | PyObject *resultobj; | |
4925 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4926 | int arg2 = (int) -1 ; |
4927 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4928 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
4929 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4930 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4931 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4932 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4933 | long arg6 = (long) 0 ; | |
4934 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4935 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4936 | wxStaticText *result; | |
4937 | bool temp3 = False ; | |
4938 | wxPoint temp4 ; | |
4939 | wxSize temp5 ; | |
4940 | bool temp7 = False ; | |
4941 | PyObject * obj0 = 0 ; | |
4942 | PyObject * obj1 = 0 ; | |
4943 | PyObject * obj2 = 0 ; | |
4944 | PyObject * obj3 = 0 ; | |
4945 | PyObject * obj4 = 0 ; | |
4946 | PyObject * obj5 = 0 ; | |
4947 | PyObject * obj6 = 0 ; | |
4948 | char *kwnames[] = { | |
4949 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4950 | }; | |
4951 | ||
248ed943 | 4952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
4953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4955 | if (obj1) { |
4956 | arg2 = (int) SWIG_AsInt(obj1); | |
4957 | if (PyErr_Occurred()) SWIG_fail; | |
4958 | } | |
4959 | if (obj2) { | |
4960 | { | |
4961 | arg3 = wxString_in_helper(obj2); | |
4962 | if (arg3 == NULL) SWIG_fail; | |
4963 | temp3 = True; | |
4964 | } | |
d55e5bfc RD |
4965 | } |
4966 | if (obj3) { | |
4967 | { | |
4968 | arg4 = &temp4; | |
4969 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4970 | } | |
4971 | } | |
4972 | if (obj4) { | |
4973 | { | |
4974 | arg5 = &temp5; | |
4975 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4976 | } | |
4977 | } | |
4978 | if (obj5) { | |
4979 | arg6 = (long) SWIG_AsLong(obj5); | |
4980 | if (PyErr_Occurred()) SWIG_fail; | |
4981 | } | |
4982 | if (obj6) { | |
4983 | { | |
4984 | arg7 = wxString_in_helper(obj6); | |
4985 | if (arg7 == NULL) SWIG_fail; | |
4986 | temp7 = True; | |
4987 | } | |
4988 | } | |
4989 | { | |
0439c23b | 4990 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
4991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4992 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4993 | ||
4994 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4995 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
4996 | } |
4997 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
4998 | { | |
4999 | if (temp3) | |
5000 | delete arg3; | |
5001 | } | |
5002 | { | |
5003 | if (temp7) | |
5004 | delete arg7; | |
5005 | } | |
5006 | return resultobj; | |
5007 | fail: | |
5008 | { | |
5009 | if (temp3) | |
5010 | delete arg3; | |
5011 | } | |
5012 | { | |
5013 | if (temp7) | |
5014 | delete arg7; | |
5015 | } | |
5016 | return NULL; | |
5017 | } | |
5018 | ||
5019 | ||
5020 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5021 | PyObject *resultobj; | |
5022 | wxStaticText *result; | |
5023 | char *kwnames[] = { | |
5024 | NULL | |
5025 | }; | |
5026 | ||
5027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5028 | { | |
0439c23b | 5029 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5031 | result = (wxStaticText *)new wxStaticText(); | |
5032 | ||
5033 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5034 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5035 | } |
5036 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); | |
5037 | return resultobj; | |
5038 | fail: | |
5039 | return NULL; | |
5040 | } | |
5041 | ||
5042 | ||
5043 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5044 | PyObject *resultobj; | |
5045 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5046 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5047 | int arg3 = (int) -1 ; |
5048 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5049 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
5050 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5051 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5052 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5053 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5054 | long arg7 = (long) 0 ; | |
5055 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5056 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5057 | bool result; | |
5058 | bool temp4 = False ; | |
5059 | wxPoint temp5 ; | |
5060 | wxSize temp6 ; | |
5061 | bool temp8 = False ; | |
5062 | PyObject * obj0 = 0 ; | |
5063 | PyObject * obj1 = 0 ; | |
5064 | PyObject * obj2 = 0 ; | |
5065 | PyObject * obj3 = 0 ; | |
5066 | PyObject * obj4 = 0 ; | |
5067 | PyObject * obj5 = 0 ; | |
5068 | PyObject * obj6 = 0 ; | |
5069 | PyObject * obj7 = 0 ; | |
5070 | char *kwnames[] = { | |
5071 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5072 | }; | |
5073 | ||
248ed943 | 5074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5077 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5079 | if (obj2) { |
5080 | arg3 = (int) SWIG_AsInt(obj2); | |
5081 | if (PyErr_Occurred()) SWIG_fail; | |
5082 | } | |
5083 | if (obj3) { | |
5084 | { | |
5085 | arg4 = wxString_in_helper(obj3); | |
5086 | if (arg4 == NULL) SWIG_fail; | |
5087 | temp4 = True; | |
5088 | } | |
d55e5bfc RD |
5089 | } |
5090 | if (obj4) { | |
5091 | { | |
5092 | arg5 = &temp5; | |
5093 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5094 | } | |
5095 | } | |
5096 | if (obj5) { | |
5097 | { | |
5098 | arg6 = &temp6; | |
5099 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5100 | } | |
5101 | } | |
5102 | if (obj6) { | |
5103 | arg7 = (long) SWIG_AsLong(obj6); | |
5104 | if (PyErr_Occurred()) SWIG_fail; | |
5105 | } | |
5106 | if (obj7) { | |
5107 | { | |
5108 | arg8 = wxString_in_helper(obj7); | |
5109 | if (arg8 == NULL) SWIG_fail; | |
5110 | temp8 = True; | |
5111 | } | |
5112 | } | |
5113 | { | |
5114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5115 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5116 | ||
5117 | wxPyEndAllowThreads(__tstate); | |
5118 | if (PyErr_Occurred()) SWIG_fail; | |
5119 | } | |
5120 | { | |
5121 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5122 | } | |
5123 | { | |
5124 | if (temp4) | |
5125 | delete arg4; | |
5126 | } | |
5127 | { | |
5128 | if (temp8) | |
5129 | delete arg8; | |
5130 | } | |
5131 | return resultobj; | |
5132 | fail: | |
5133 | { | |
5134 | if (temp4) | |
5135 | delete arg4; | |
5136 | } | |
5137 | { | |
5138 | if (temp8) | |
5139 | delete arg8; | |
5140 | } | |
5141 | return NULL; | |
5142 | } | |
5143 | ||
5144 | ||
f20a2e1f RD |
5145 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5146 | PyObject *resultobj; | |
5147 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5148 | wxVisualAttributes result; | |
5149 | PyObject * obj0 = 0 ; | |
5150 | char *kwnames[] = { | |
5151 | (char *) "variant", NULL | |
5152 | }; | |
5153 | ||
5154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5155 | if (obj0) { | |
5156 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5157 | if (PyErr_Occurred()) SWIG_fail; | |
5158 | } | |
5159 | { | |
19272049 | 5160 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5162 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5163 | ||
5164 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5165 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5166 | } |
5167 | { | |
5168 | wxVisualAttributes * resultptr; | |
5169 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5170 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5171 | } | |
5172 | return resultobj; | |
5173 | fail: | |
5174 | return NULL; | |
5175 | } | |
5176 | ||
5177 | ||
d55e5bfc RD |
5178 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5179 | PyObject *obj; | |
5180 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5181 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5182 | Py_INCREF(obj); | |
5183 | return Py_BuildValue((char *)""); | |
5184 | } | |
5185 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject *resultobj; | |
5187 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5188 | int arg2 = (int) -1 ; |
5189 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5190 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d55e5bfc RD |
5191 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5192 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5193 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5194 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5195 | long arg6 = (long) 0 ; | |
5196 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5197 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5198 | wxStaticBitmap *result; | |
5199 | wxPoint temp4 ; | |
5200 | wxSize temp5 ; | |
5201 | bool temp7 = False ; | |
5202 | PyObject * obj0 = 0 ; | |
5203 | PyObject * obj1 = 0 ; | |
5204 | PyObject * obj2 = 0 ; | |
5205 | PyObject * obj3 = 0 ; | |
5206 | PyObject * obj4 = 0 ; | |
5207 | PyObject * obj5 = 0 ; | |
5208 | PyObject * obj6 = 0 ; | |
5209 | char *kwnames[] = { | |
5210 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5211 | }; | |
5212 | ||
248ed943 | 5213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
5214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5216 | if (obj1) { |
5217 | arg2 = (int) SWIG_AsInt(obj1); | |
5218 | if (PyErr_Occurred()) SWIG_fail; | |
5219 | } | |
5220 | if (obj2) { | |
5221 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5222 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5223 | SWIG_fail; |
248ed943 RD |
5224 | if (arg3 == NULL) { |
5225 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5226 | SWIG_fail; | |
5227 | } | |
d55e5bfc RD |
5228 | } |
5229 | if (obj3) { | |
5230 | { | |
5231 | arg4 = &temp4; | |
5232 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5233 | } | |
5234 | } | |
5235 | if (obj4) { | |
5236 | { | |
5237 | arg5 = &temp5; | |
5238 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5239 | } | |
5240 | } | |
5241 | if (obj5) { | |
5242 | arg6 = (long) SWIG_AsLong(obj5); | |
5243 | if (PyErr_Occurred()) SWIG_fail; | |
5244 | } | |
5245 | if (obj6) { | |
5246 | { | |
5247 | arg7 = wxString_in_helper(obj6); | |
5248 | if (arg7 == NULL) SWIG_fail; | |
5249 | temp7 = True; | |
5250 | } | |
5251 | } | |
5252 | { | |
0439c23b | 5253 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5255 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5256 | ||
5257 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5258 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5259 | } |
5260 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5261 | { | |
5262 | if (temp7) | |
5263 | delete arg7; | |
5264 | } | |
5265 | return resultobj; | |
5266 | fail: | |
5267 | { | |
5268 | if (temp7) | |
5269 | delete arg7; | |
5270 | } | |
5271 | return NULL; | |
5272 | } | |
5273 | ||
5274 | ||
5275 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5276 | PyObject *resultobj; | |
5277 | wxStaticBitmap *result; | |
5278 | char *kwnames[] = { | |
5279 | NULL | |
5280 | }; | |
5281 | ||
5282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5283 | { | |
0439c23b | 5284 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5286 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5287 | ||
5288 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5289 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5290 | } |
5291 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); | |
5292 | return resultobj; | |
5293 | fail: | |
5294 | return NULL; | |
5295 | } | |
5296 | ||
5297 | ||
5298 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5299 | PyObject *resultobj; | |
5300 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5301 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5302 | int arg3 = (int) -1 ; |
5303 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5304 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d55e5bfc RD |
5305 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5306 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5307 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5308 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5309 | long arg7 = (long) 0 ; | |
5310 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5311 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5312 | bool result; | |
5313 | wxPoint temp5 ; | |
5314 | wxSize temp6 ; | |
5315 | bool temp8 = False ; | |
5316 | PyObject * obj0 = 0 ; | |
5317 | PyObject * obj1 = 0 ; | |
5318 | PyObject * obj2 = 0 ; | |
5319 | PyObject * obj3 = 0 ; | |
5320 | PyObject * obj4 = 0 ; | |
5321 | PyObject * obj5 = 0 ; | |
5322 | PyObject * obj6 = 0 ; | |
5323 | PyObject * obj7 = 0 ; | |
5324 | char *kwnames[] = { | |
5325 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5326 | }; | |
5327 | ||
248ed943 | 5328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5331 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5333 | if (obj2) { |
5334 | arg3 = (int) SWIG_AsInt(obj2); | |
5335 | if (PyErr_Occurred()) SWIG_fail; | |
5336 | } | |
5337 | if (obj3) { | |
5338 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5339 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
d55e5bfc | 5340 | SWIG_fail; |
248ed943 RD |
5341 | if (arg4 == NULL) { |
5342 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5343 | SWIG_fail; | |
5344 | } | |
d55e5bfc RD |
5345 | } |
5346 | if (obj4) { | |
5347 | { | |
5348 | arg5 = &temp5; | |
5349 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5350 | } | |
5351 | } | |
5352 | if (obj5) { | |
5353 | { | |
5354 | arg6 = &temp6; | |
5355 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5356 | } | |
5357 | } | |
5358 | if (obj6) { | |
5359 | arg7 = (long) SWIG_AsLong(obj6); | |
5360 | if (PyErr_Occurred()) SWIG_fail; | |
5361 | } | |
5362 | if (obj7) { | |
5363 | { | |
5364 | arg8 = wxString_in_helper(obj7); | |
5365 | if (arg8 == NULL) SWIG_fail; | |
5366 | temp8 = True; | |
5367 | } | |
5368 | } | |
5369 | { | |
5370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5371 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5372 | ||
5373 | wxPyEndAllowThreads(__tstate); | |
5374 | if (PyErr_Occurred()) SWIG_fail; | |
5375 | } | |
5376 | { | |
5377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5378 | } | |
5379 | { | |
5380 | if (temp8) | |
5381 | delete arg8; | |
5382 | } | |
5383 | return resultobj; | |
5384 | fail: | |
5385 | { | |
5386 | if (temp8) | |
5387 | delete arg8; | |
5388 | } | |
5389 | return NULL; | |
5390 | } | |
5391 | ||
5392 | ||
5393 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5394 | PyObject *resultobj; | |
5395 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5396 | wxBitmap result; | |
5397 | PyObject * obj0 = 0 ; | |
5398 | char *kwnames[] = { | |
5399 | (char *) "self", NULL | |
5400 | }; | |
5401 | ||
5402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
5403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5405 | { | |
5406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5407 | result = (arg1)->GetBitmap(); | |
5408 | ||
5409 | wxPyEndAllowThreads(__tstate); | |
5410 | if (PyErr_Occurred()) SWIG_fail; | |
5411 | } | |
5412 | { | |
5413 | wxBitmap * resultptr; | |
5414 | resultptr = new wxBitmap((wxBitmap &) result); | |
5415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
5416 | } | |
5417 | return resultobj; | |
5418 | fail: | |
5419 | return NULL; | |
5420 | } | |
5421 | ||
5422 | ||
5423 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5424 | PyObject *resultobj; | |
5425 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5426 | wxBitmap *arg2 = 0 ; | |
5427 | PyObject * obj0 = 0 ; | |
5428 | PyObject * obj1 = 0 ; | |
5429 | char *kwnames[] = { | |
5430 | (char *) "self",(char *) "bitmap", NULL | |
5431 | }; | |
5432 | ||
5433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
5434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5436 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5437 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5438 | SWIG_fail; | |
5439 | if (arg2 == NULL) { | |
5440 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5441 | SWIG_fail; | |
5442 | } | |
5443 | { | |
5444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5445 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5446 | ||
5447 | wxPyEndAllowThreads(__tstate); | |
5448 | if (PyErr_Occurred()) SWIG_fail; | |
5449 | } | |
5450 | Py_INCREF(Py_None); resultobj = Py_None; | |
5451 | return resultobj; | |
5452 | fail: | |
5453 | return NULL; | |
5454 | } | |
5455 | ||
5456 | ||
5457 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5458 | PyObject *resultobj; | |
5459 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5460 | wxIcon *arg2 = 0 ; | |
5461 | PyObject * obj0 = 0 ; | |
5462 | PyObject * obj1 = 0 ; | |
5463 | char *kwnames[] = { | |
5464 | (char *) "self",(char *) "icon", NULL | |
5465 | }; | |
5466 | ||
5467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
5468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, | |
5469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5470 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5471 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5472 | SWIG_fail; | |
5473 | if (arg2 == NULL) { | |
5474 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5475 | SWIG_fail; | |
5476 | } | |
5477 | { | |
5478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5479 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5480 | ||
5481 | wxPyEndAllowThreads(__tstate); | |
5482 | if (PyErr_Occurred()) SWIG_fail; | |
5483 | } | |
5484 | Py_INCREF(Py_None); resultobj = Py_None; | |
5485 | return resultobj; | |
5486 | fail: | |
5487 | return NULL; | |
5488 | } | |
5489 | ||
5490 | ||
f20a2e1f RD |
5491 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5492 | PyObject *resultobj; | |
5493 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5494 | wxVisualAttributes result; | |
5495 | PyObject * obj0 = 0 ; | |
5496 | char *kwnames[] = { | |
5497 | (char *) "variant", NULL | |
5498 | }; | |
5499 | ||
5500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5501 | if (obj0) { | |
5502 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5503 | if (PyErr_Occurred()) SWIG_fail; | |
5504 | } | |
5505 | { | |
19272049 | 5506 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
5507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5508 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5509 | ||
5510 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5511 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
5512 | } |
5513 | { | |
5514 | wxVisualAttributes * resultptr; | |
5515 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5516 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5517 | } | |
5518 | return resultobj; | |
5519 | fail: | |
5520 | return NULL; | |
5521 | } | |
5522 | ||
5523 | ||
d55e5bfc RD |
5524 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5525 | PyObject *obj; | |
5526 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5527 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5528 | Py_INCREF(obj); | |
5529 | return Py_BuildValue((char *)""); | |
5530 | } | |
5531 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { | |
5532 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5533 | return 1; | |
5534 | } | |
5535 | ||
5536 | ||
5537 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5538 | PyObject *pyobj; | |
5539 | ||
5540 | { | |
5541 | #if wxUSE_UNICODE | |
5542 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5543 | #else | |
5544 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5545 | #endif | |
5546 | } | |
5547 | return pyobj; | |
5548 | } | |
5549 | ||
5550 | ||
5551 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5552 | PyObject *resultobj; | |
5553 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5554 | int arg2 = (int) -1 ; |
d55e5bfc RD |
5555 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5556 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5557 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5558 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
5559 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
5560 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5561 | long arg6 = (long) 0 ; | |
5562 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5563 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5564 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5565 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5566 | wxListBox *result; | |
5567 | wxPoint temp3 ; | |
5568 | wxSize temp4 ; | |
5569 | bool temp5 = False ; | |
5570 | bool temp8 = False ; | |
5571 | PyObject * obj0 = 0 ; | |
5572 | PyObject * obj1 = 0 ; | |
5573 | PyObject * obj2 = 0 ; | |
5574 | PyObject * obj3 = 0 ; | |
5575 | PyObject * obj4 = 0 ; | |
5576 | PyObject * obj5 = 0 ; | |
5577 | PyObject * obj6 = 0 ; | |
5578 | PyObject * obj7 = 0 ; | |
5579 | char *kwnames[] = { | |
5580 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5581 | }; | |
5582 | ||
248ed943 | 5583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
5584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5586 | if (obj1) { |
5587 | arg2 = (int) SWIG_AsInt(obj1); | |
5588 | if (PyErr_Occurred()) SWIG_fail; | |
5589 | } | |
d55e5bfc RD |
5590 | if (obj2) { |
5591 | { | |
5592 | arg3 = &temp3; | |
5593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5594 | } | |
5595 | } | |
5596 | if (obj3) { | |
5597 | { | |
5598 | arg4 = &temp4; | |
5599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5600 | } | |
5601 | } | |
5602 | if (obj4) { | |
5603 | { | |
5604 | if (! PySequence_Check(obj4)) { | |
5605 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5606 | SWIG_fail; | |
5607 | } | |
5608 | arg5 = new wxArrayString; | |
5609 | temp5 = True; | |
5610 | int i, len=PySequence_Length(obj4); | |
5611 | for (i=0; i<len; i++) { | |
5612 | PyObject* item = PySequence_GetItem(obj4, i); | |
5613 | #if wxUSE_UNICODE | |
5614 | PyObject* str = PyObject_Unicode(item); | |
5615 | #else | |
5616 | PyObject* str = PyObject_Str(item); | |
5617 | #endif | |
5618 | if (PyErr_Occurred()) SWIG_fail; | |
5619 | arg5->Add(Py2wxString(str)); | |
5620 | Py_DECREF(item); | |
5621 | Py_DECREF(str); | |
5622 | } | |
5623 | } | |
5624 | } | |
5625 | if (obj5) { | |
5626 | arg6 = (long) SWIG_AsLong(obj5); | |
5627 | if (PyErr_Occurred()) SWIG_fail; | |
5628 | } | |
5629 | if (obj6) { | |
5630 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
5631 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5632 | SWIG_fail; | |
5633 | if (arg7 == NULL) { | |
5634 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5635 | SWIG_fail; | |
5636 | } | |
5637 | } | |
5638 | if (obj7) { | |
5639 | { | |
5640 | arg8 = wxString_in_helper(obj7); | |
5641 | if (arg8 == NULL) SWIG_fail; | |
5642 | temp8 = True; | |
5643 | } | |
5644 | } | |
5645 | { | |
0439c23b | 5646 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5648 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
5649 | ||
5650 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5651 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5652 | } |
5653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5654 | { | |
5655 | if (temp5) delete arg5; | |
5656 | } | |
5657 | { | |
5658 | if (temp8) | |
5659 | delete arg8; | |
5660 | } | |
5661 | return resultobj; | |
5662 | fail: | |
5663 | { | |
5664 | if (temp5) delete arg5; | |
5665 | } | |
5666 | { | |
5667 | if (temp8) | |
5668 | delete arg8; | |
5669 | } | |
5670 | return NULL; | |
5671 | } | |
5672 | ||
5673 | ||
5674 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5675 | PyObject *resultobj; | |
5676 | wxListBox *result; | |
5677 | char *kwnames[] = { | |
5678 | NULL | |
5679 | }; | |
5680 | ||
5681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5682 | { | |
0439c23b | 5683 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
5684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5685 | result = (wxListBox *)new wxListBox(); | |
5686 | ||
5687 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5688 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
5689 | } |
5690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); | |
5691 | return resultobj; | |
5692 | fail: | |
5693 | return NULL; | |
5694 | } | |
5695 | ||
5696 | ||
5697 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5698 | PyObject *resultobj; | |
5699 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5700 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5701 | int arg3 = (int) -1 ; |
d55e5bfc RD |
5702 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5703 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5704 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5705 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5706 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
5707 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5708 | long arg7 = (long) 0 ; | |
5709 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5710 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5711 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5712 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
5713 | bool result; | |
5714 | wxPoint temp4 ; | |
5715 | wxSize temp5 ; | |
5716 | bool temp6 = False ; | |
5717 | bool temp9 = False ; | |
5718 | PyObject * obj0 = 0 ; | |
5719 | PyObject * obj1 = 0 ; | |
5720 | PyObject * obj2 = 0 ; | |
5721 | PyObject * obj3 = 0 ; | |
5722 | PyObject * obj4 = 0 ; | |
5723 | PyObject * obj5 = 0 ; | |
5724 | PyObject * obj6 = 0 ; | |
5725 | PyObject * obj7 = 0 ; | |
5726 | PyObject * obj8 = 0 ; | |
5727 | char *kwnames[] = { | |
5728 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5729 | }; | |
5730 | ||
248ed943 | 5731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
5732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5736 | if (obj2) { |
5737 | arg3 = (int) SWIG_AsInt(obj2); | |
5738 | if (PyErr_Occurred()) SWIG_fail; | |
5739 | } | |
d55e5bfc RD |
5740 | if (obj3) { |
5741 | { | |
5742 | arg4 = &temp4; | |
5743 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5744 | } | |
5745 | } | |
5746 | if (obj4) { | |
5747 | { | |
5748 | arg5 = &temp5; | |
5749 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5750 | } | |
5751 | } | |
5752 | if (obj5) { | |
5753 | { | |
5754 | if (! PySequence_Check(obj5)) { | |
5755 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5756 | SWIG_fail; | |
5757 | } | |
5758 | arg6 = new wxArrayString; | |
5759 | temp6 = True; | |
5760 | int i, len=PySequence_Length(obj5); | |
5761 | for (i=0; i<len; i++) { | |
5762 | PyObject* item = PySequence_GetItem(obj5, i); | |
5763 | #if wxUSE_UNICODE | |
5764 | PyObject* str = PyObject_Unicode(item); | |
5765 | #else | |
5766 | PyObject* str = PyObject_Str(item); | |
5767 | #endif | |
5768 | if (PyErr_Occurred()) SWIG_fail; | |
5769 | arg6->Add(Py2wxString(str)); | |
5770 | Py_DECREF(item); | |
5771 | Py_DECREF(str); | |
5772 | } | |
5773 | } | |
5774 | } | |
5775 | if (obj6) { | |
5776 | arg7 = (long) SWIG_AsLong(obj6); | |
5777 | if (PyErr_Occurred()) SWIG_fail; | |
5778 | } | |
5779 | if (obj7) { | |
5780 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
5781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5782 | SWIG_fail; | |
5783 | if (arg8 == NULL) { | |
5784 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5785 | SWIG_fail; | |
5786 | } | |
5787 | } | |
5788 | if (obj8) { | |
5789 | { | |
5790 | arg9 = wxString_in_helper(obj8); | |
5791 | if (arg9 == NULL) SWIG_fail; | |
5792 | temp9 = True; | |
5793 | } | |
5794 | } | |
5795 | { | |
5796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5797 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
5798 | ||
5799 | wxPyEndAllowThreads(__tstate); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
5801 | } | |
5802 | { | |
5803 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5804 | } | |
5805 | { | |
5806 | if (temp6) delete arg6; | |
5807 | } | |
5808 | { | |
5809 | if (temp9) | |
5810 | delete arg9; | |
5811 | } | |
5812 | return resultobj; | |
5813 | fail: | |
5814 | { | |
5815 | if (temp6) delete arg6; | |
5816 | } | |
5817 | { | |
5818 | if (temp9) | |
5819 | delete arg9; | |
5820 | } | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5828 | wxString *arg2 = 0 ; | |
5829 | int arg3 ; | |
5830 | PyObject *arg4 = (PyObject *) NULL ; | |
5831 | bool temp2 = False ; | |
5832 | PyObject * obj0 = 0 ; | |
5833 | PyObject * obj1 = 0 ; | |
5834 | PyObject * obj2 = 0 ; | |
5835 | PyObject * obj3 = 0 ; | |
5836 | char *kwnames[] = { | |
5837 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5838 | }; | |
5839 | ||
5840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
5841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5843 | { | |
5844 | arg2 = wxString_in_helper(obj1); | |
5845 | if (arg2 == NULL) SWIG_fail; | |
5846 | temp2 = True; | |
5847 | } | |
5848 | arg3 = (int) SWIG_AsInt(obj2); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | if (obj3) { | |
5851 | arg4 = obj3; | |
5852 | } | |
5853 | { | |
5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5855 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5856 | ||
5857 | wxPyEndAllowThreads(__tstate); | |
5858 | if (PyErr_Occurred()) SWIG_fail; | |
5859 | } | |
5860 | Py_INCREF(Py_None); resultobj = Py_None; | |
5861 | { | |
5862 | if (temp2) | |
5863 | delete arg2; | |
5864 | } | |
5865 | return resultobj; | |
5866 | fail: | |
5867 | { | |
5868 | if (temp2) | |
5869 | delete arg2; | |
5870 | } | |
5871 | return NULL; | |
5872 | } | |
5873 | ||
5874 | ||
5875 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject *resultobj; | |
5877 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5878 | wxArrayString *arg2 = 0 ; | |
5879 | int arg3 ; | |
5880 | bool temp2 = False ; | |
5881 | PyObject * obj0 = 0 ; | |
5882 | PyObject * obj1 = 0 ; | |
5883 | PyObject * obj2 = 0 ; | |
5884 | char *kwnames[] = { | |
5885 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5886 | }; | |
5887 | ||
5888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
5889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
5890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5891 | { | |
5892 | if (! PySequence_Check(obj1)) { | |
5893 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5894 | SWIG_fail; | |
5895 | } | |
5896 | arg2 = new wxArrayString; | |
5897 | temp2 = True; | |
5898 | int i, len=PySequence_Length(obj1); | |
5899 | for (i=0; i<len; i++) { | |
5900 | PyObject* item = PySequence_GetItem(obj1, i); | |
5901 | #if wxUSE_UNICODE | |
5902 | PyObject* str = PyObject_Unicode(item); | |
5903 | #else | |
5904 | PyObject* str = PyObject_Str(item); | |
5905 | #endif | |
5906 | if (PyErr_Occurred()) SWIG_fail; | |
5907 | arg2->Add(Py2wxString(str)); | |
5908 | Py_DECREF(item); | |
5909 | Py_DECREF(str); | |
5910 | } | |
5911 | } | |
5912 | arg3 = (int) SWIG_AsInt(obj2); | |
5913 | if (PyErr_Occurred()) SWIG_fail; | |
5914 | { | |
5915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5916 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5917 | ||
5918 | wxPyEndAllowThreads(__tstate); | |
5919 | if (PyErr_Occurred()) SWIG_fail; | |
5920 | } | |
5921 | Py_INCREF(Py_None); resultobj = Py_None; | |
5922 | { | |
5923 | if (temp2) delete arg2; | |
5924 | } | |
5925 | return resultobj; | |
5926 | fail: | |
5927 | { | |
5928 | if (temp2) delete arg2; | |
5929 | } | |
5930 | return NULL; | |
5931 | } | |
5932 | ||
5933 | ||
5934 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5935 | PyObject *resultobj; | |
5936 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5937 | wxArrayString *arg2 = 0 ; | |
5938 | bool temp2 = False ; | |
5939 | PyObject * obj0 = 0 ; | |
5940 | PyObject * obj1 = 0 ; | |
5941 | char *kwnames[] = { | |
5942 | (char *) "self",(char *) "items", NULL | |
5943 | }; | |
5944 | ||
5945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",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 | if (! PySequence_Check(obj1)) { | |
5950 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5951 | SWIG_fail; | |
5952 | } | |
5953 | arg2 = new wxArrayString; | |
5954 | temp2 = True; | |
5955 | int i, len=PySequence_Length(obj1); | |
5956 | for (i=0; i<len; i++) { | |
5957 | PyObject* item = PySequence_GetItem(obj1, i); | |
5958 | #if wxUSE_UNICODE | |
5959 | PyObject* str = PyObject_Unicode(item); | |
5960 | #else | |
5961 | PyObject* str = PyObject_Str(item); | |
5962 | #endif | |
5963 | if (PyErr_Occurred()) SWIG_fail; | |
5964 | arg2->Add(Py2wxString(str)); | |
5965 | Py_DECREF(item); | |
5966 | Py_DECREF(str); | |
5967 | } | |
5968 | } | |
5969 | { | |
5970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5971 | (arg1)->Set((wxArrayString const &)*arg2); | |
5972 | ||
5973 | wxPyEndAllowThreads(__tstate); | |
5974 | if (PyErr_Occurred()) SWIG_fail; | |
5975 | } | |
5976 | Py_INCREF(Py_None); resultobj = Py_None; | |
5977 | { | |
5978 | if (temp2) delete arg2; | |
5979 | } | |
5980 | return resultobj; | |
5981 | fail: | |
5982 | { | |
5983 | if (temp2) delete arg2; | |
5984 | } | |
5985 | return NULL; | |
5986 | } | |
5987 | ||
5988 | ||
5989 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5990 | PyObject *resultobj; | |
5991 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5992 | int arg2 ; | |
5993 | bool result; | |
5994 | PyObject * obj0 = 0 ; | |
5995 | PyObject * obj1 = 0 ; | |
5996 | char *kwnames[] = { | |
5997 | (char *) "self",(char *) "n", NULL | |
5998 | }; | |
5999 | ||
6000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
6001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6003 | arg2 = (int) SWIG_AsInt(obj1); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | { | |
6006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6007 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6008 | ||
6009 | wxPyEndAllowThreads(__tstate); | |
6010 | if (PyErr_Occurred()) SWIG_fail; | |
6011 | } | |
6012 | { | |
6013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6014 | } | |
6015 | return resultobj; | |
6016 | fail: | |
6017 | return NULL; | |
6018 | } | |
6019 | ||
6020 | ||
6021 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6022 | PyObject *resultobj; | |
6023 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6024 | int arg2 ; | |
6025 | bool arg3 = (bool) True ; | |
6026 | PyObject * obj0 = 0 ; | |
6027 | PyObject * obj1 = 0 ; | |
6028 | PyObject * obj2 = 0 ; | |
6029 | char *kwnames[] = { | |
6030 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6031 | }; | |
6032 | ||
6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6036 | arg2 = (int) SWIG_AsInt(obj1); | |
6037 | if (PyErr_Occurred()) SWIG_fail; | |
6038 | if (obj2) { | |
6039 | arg3 = (bool) SWIG_AsBool(obj2); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
6041 | } | |
6042 | { | |
6043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6044 | (arg1)->SetSelection(arg2,arg3); | |
6045 | ||
6046 | wxPyEndAllowThreads(__tstate); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
6048 | } | |
6049 | Py_INCREF(Py_None); resultobj = Py_None; | |
6050 | return resultobj; | |
6051 | fail: | |
6052 | return NULL; | |
6053 | } | |
6054 | ||
6055 | ||
6056 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6057 | PyObject *resultobj; | |
6058 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6059 | int arg2 ; | |
6060 | PyObject * obj0 = 0 ; | |
6061 | PyObject * obj1 = 0 ; | |
6062 | char *kwnames[] = { | |
6063 | (char *) "self",(char *) "n", NULL | |
6064 | }; | |
6065 | ||
6066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; | |
6067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6069 | arg2 = (int) SWIG_AsInt(obj1); | |
6070 | if (PyErr_Occurred()) SWIG_fail; | |
6071 | { | |
6072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6073 | (arg1)->Select(arg2); | |
6074 | ||
6075 | wxPyEndAllowThreads(__tstate); | |
6076 | if (PyErr_Occurred()) SWIG_fail; | |
6077 | } | |
6078 | Py_INCREF(Py_None); resultobj = Py_None; | |
6079 | return resultobj; | |
6080 | fail: | |
6081 | return NULL; | |
6082 | } | |
6083 | ||
6084 | ||
6085 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6086 | PyObject *resultobj; | |
6087 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6088 | int arg2 ; | |
6089 | PyObject * obj0 = 0 ; | |
6090 | PyObject * obj1 = 0 ; | |
6091 | char *kwnames[] = { | |
6092 | (char *) "self",(char *) "n", NULL | |
6093 | }; | |
6094 | ||
6095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; | |
6096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6098 | arg2 = (int) SWIG_AsInt(obj1); | |
6099 | if (PyErr_Occurred()) SWIG_fail; | |
6100 | { | |
6101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6102 | (arg1)->Deselect(arg2); | |
6103 | ||
6104 | wxPyEndAllowThreads(__tstate); | |
6105 | if (PyErr_Occurred()) SWIG_fail; | |
6106 | } | |
6107 | Py_INCREF(Py_None); resultobj = Py_None; | |
6108 | return resultobj; | |
6109 | fail: | |
6110 | return NULL; | |
6111 | } | |
6112 | ||
6113 | ||
6114 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6115 | PyObject *resultobj; | |
6116 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6117 | int arg2 = (int) -1 ; | |
6118 | PyObject * obj0 = 0 ; | |
6119 | PyObject * obj1 = 0 ; | |
6120 | char *kwnames[] = { | |
6121 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6122 | }; | |
6123 | ||
6124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; | |
6125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6127 | if (obj1) { | |
6128 | arg2 = (int) SWIG_AsInt(obj1); | |
6129 | if (PyErr_Occurred()) SWIG_fail; | |
6130 | } | |
6131 | { | |
6132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6133 | (arg1)->DeselectAll(arg2); | |
6134 | ||
6135 | wxPyEndAllowThreads(__tstate); | |
6136 | if (PyErr_Occurred()) SWIG_fail; | |
6137 | } | |
6138 | Py_INCREF(Py_None); resultobj = Py_None; | |
6139 | return resultobj; | |
6140 | fail: | |
6141 | return NULL; | |
6142 | } | |
6143 | ||
6144 | ||
6145 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6146 | PyObject *resultobj; | |
6147 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6148 | wxString *arg2 = 0 ; | |
6149 | bool arg3 = (bool) True ; | |
6150 | bool result; | |
6151 | bool temp2 = False ; | |
6152 | PyObject * obj0 = 0 ; | |
6153 | PyObject * obj1 = 0 ; | |
6154 | PyObject * obj2 = 0 ; | |
6155 | char *kwnames[] = { | |
6156 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6157 | }; | |
6158 | ||
6159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6162 | { | |
6163 | arg2 = wxString_in_helper(obj1); | |
6164 | if (arg2 == NULL) SWIG_fail; | |
6165 | temp2 = True; | |
6166 | } | |
6167 | if (obj2) { | |
6168 | arg3 = (bool) SWIG_AsBool(obj2); | |
6169 | if (PyErr_Occurred()) SWIG_fail; | |
6170 | } | |
6171 | { | |
6172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6173 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6174 | ||
6175 | wxPyEndAllowThreads(__tstate); | |
6176 | if (PyErr_Occurred()) SWIG_fail; | |
6177 | } | |
6178 | { | |
6179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6180 | } | |
6181 | { | |
6182 | if (temp2) | |
6183 | delete arg2; | |
6184 | } | |
6185 | return resultobj; | |
6186 | fail: | |
6187 | { | |
6188 | if (temp2) | |
6189 | delete arg2; | |
6190 | } | |
6191 | return NULL; | |
6192 | } | |
6193 | ||
6194 | ||
6195 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6196 | PyObject *resultobj; | |
6197 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6198 | PyObject *result; | |
6199 | PyObject * obj0 = 0 ; | |
6200 | char *kwnames[] = { | |
6201 | (char *) "self", NULL | |
6202 | }; | |
6203 | ||
6204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
6205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6207 | { | |
6208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6209 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6210 | ||
6211 | wxPyEndAllowThreads(__tstate); | |
6212 | if (PyErr_Occurred()) SWIG_fail; | |
6213 | } | |
6214 | resultobj = result; | |
6215 | return resultobj; | |
6216 | fail: | |
6217 | return NULL; | |
6218 | } | |
6219 | ||
6220 | ||
6221 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6222 | PyObject *resultobj; | |
6223 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6224 | int arg2 ; | |
6225 | PyObject * obj0 = 0 ; | |
6226 | PyObject * obj1 = 0 ; | |
6227 | char *kwnames[] = { | |
6228 | (char *) "self",(char *) "n", NULL | |
6229 | }; | |
6230 | ||
6231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; | |
6232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6234 | arg2 = (int) SWIG_AsInt(obj1); | |
6235 | if (PyErr_Occurred()) SWIG_fail; | |
6236 | { | |
6237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6238 | (arg1)->SetFirstItem(arg2); | |
6239 | ||
6240 | wxPyEndAllowThreads(__tstate); | |
6241 | if (PyErr_Occurred()) SWIG_fail; | |
6242 | } | |
6243 | Py_INCREF(Py_None); resultobj = Py_None; | |
6244 | return resultobj; | |
6245 | fail: | |
6246 | return NULL; | |
6247 | } | |
6248 | ||
6249 | ||
6250 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6251 | PyObject *resultobj; | |
6252 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6253 | wxString *arg2 = 0 ; | |
6254 | bool temp2 = False ; | |
6255 | PyObject * obj0 = 0 ; | |
6256 | PyObject * obj1 = 0 ; | |
6257 | char *kwnames[] = { | |
6258 | (char *) "self",(char *) "s", NULL | |
6259 | }; | |
6260 | ||
6261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
6262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6264 | { | |
6265 | arg2 = wxString_in_helper(obj1); | |
6266 | if (arg2 == NULL) SWIG_fail; | |
6267 | temp2 = True; | |
6268 | } | |
6269 | { | |
6270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6271 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6272 | ||
6273 | wxPyEndAllowThreads(__tstate); | |
6274 | if (PyErr_Occurred()) SWIG_fail; | |
6275 | } | |
6276 | Py_INCREF(Py_None); resultobj = Py_None; | |
6277 | { | |
6278 | if (temp2) | |
6279 | delete arg2; | |
6280 | } | |
6281 | return resultobj; | |
6282 | fail: | |
6283 | { | |
6284 | if (temp2) | |
6285 | delete arg2; | |
6286 | } | |
6287 | return NULL; | |
6288 | } | |
6289 | ||
6290 | ||
6291 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6292 | PyObject *resultobj; | |
6293 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6294 | int arg2 ; | |
6295 | PyObject * obj0 = 0 ; | |
6296 | PyObject * obj1 = 0 ; | |
6297 | char *kwnames[] = { | |
6298 | (char *) "self",(char *) "n", NULL | |
6299 | }; | |
6300 | ||
6301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6304 | arg2 = (int) SWIG_AsInt(obj1); | |
6305 | if (PyErr_Occurred()) SWIG_fail; | |
6306 | { | |
6307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6308 | (arg1)->EnsureVisible(arg2); | |
6309 | ||
6310 | wxPyEndAllowThreads(__tstate); | |
6311 | if (PyErr_Occurred()) SWIG_fail; | |
6312 | } | |
6313 | Py_INCREF(Py_None); resultobj = Py_None; | |
6314 | return resultobj; | |
6315 | fail: | |
6316 | return NULL; | |
6317 | } | |
6318 | ||
6319 | ||
6320 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6321 | PyObject *resultobj; | |
6322 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6323 | wxString *arg2 = 0 ; | |
6324 | bool temp2 = False ; | |
6325 | PyObject * obj0 = 0 ; | |
6326 | PyObject * obj1 = 0 ; | |
6327 | char *kwnames[] = { | |
6328 | (char *) "self",(char *) "s", NULL | |
6329 | }; | |
6330 | ||
6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
6332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6334 | { | |
6335 | arg2 = wxString_in_helper(obj1); | |
6336 | if (arg2 == NULL) SWIG_fail; | |
6337 | temp2 = True; | |
6338 | } | |
6339 | { | |
6340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6341 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6342 | ||
6343 | wxPyEndAllowThreads(__tstate); | |
6344 | if (PyErr_Occurred()) SWIG_fail; | |
6345 | } | |
6346 | Py_INCREF(Py_None); resultobj = Py_None; | |
6347 | { | |
6348 | if (temp2) | |
6349 | delete arg2; | |
6350 | } | |
6351 | return resultobj; | |
6352 | fail: | |
6353 | { | |
6354 | if (temp2) | |
6355 | delete arg2; | |
6356 | } | |
6357 | return NULL; | |
6358 | } | |
6359 | ||
6360 | ||
6361 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6362 | PyObject *resultobj; | |
6363 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6364 | bool result; | |
6365 | PyObject * obj0 = 0 ; | |
6366 | char *kwnames[] = { | |
6367 | (char *) "self", NULL | |
6368 | }; | |
6369 | ||
6370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
6371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6373 | { | |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6376 | ||
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | { | |
6381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6382 | } | |
6383 | return resultobj; | |
6384 | fail: | |
6385 | return NULL; | |
6386 | } | |
6387 | ||
6388 | ||
6389 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6390 | PyObject *resultobj; | |
6391 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6392 | int arg2 ; | |
6393 | wxColour *arg3 = 0 ; | |
6394 | wxColour temp3 ; | |
6395 | PyObject * obj0 = 0 ; | |
6396 | PyObject * obj1 = 0 ; | |
6397 | PyObject * obj2 = 0 ; | |
6398 | char *kwnames[] = { | |
6399 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6400 | }; | |
6401 | ||
6402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6405 | arg2 = (int) SWIG_AsInt(obj1); | |
6406 | if (PyErr_Occurred()) SWIG_fail; | |
6407 | { | |
6408 | arg3 = &temp3; | |
6409 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6410 | } | |
6411 | { | |
6412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6413 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6414 | ||
6415 | wxPyEndAllowThreads(__tstate); | |
6416 | if (PyErr_Occurred()) SWIG_fail; | |
6417 | } | |
6418 | Py_INCREF(Py_None); resultobj = Py_None; | |
6419 | return resultobj; | |
6420 | fail: | |
6421 | return NULL; | |
6422 | } | |
6423 | ||
6424 | ||
6425 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6426 | PyObject *resultobj; | |
6427 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6428 | int arg2 ; | |
6429 | wxColour *arg3 = 0 ; | |
6430 | wxColour temp3 ; | |
6431 | PyObject * obj0 = 0 ; | |
6432 | PyObject * obj1 = 0 ; | |
6433 | PyObject * obj2 = 0 ; | |
6434 | char *kwnames[] = { | |
6435 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6436 | }; | |
6437 | ||
6438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6441 | arg2 = (int) SWIG_AsInt(obj1); | |
6442 | if (PyErr_Occurred()) SWIG_fail; | |
6443 | { | |
6444 | arg3 = &temp3; | |
6445 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6446 | } | |
6447 | { | |
6448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6449 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6450 | ||
6451 | wxPyEndAllowThreads(__tstate); | |
6452 | if (PyErr_Occurred()) SWIG_fail; | |
6453 | } | |
6454 | Py_INCREF(Py_None); resultobj = Py_None; | |
6455 | return resultobj; | |
6456 | fail: | |
6457 | return NULL; | |
6458 | } | |
6459 | ||
6460 | ||
6461 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6462 | PyObject *resultobj; | |
6463 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6464 | int arg2 ; | |
6465 | wxFont *arg3 = 0 ; | |
6466 | PyObject * obj0 = 0 ; | |
6467 | PyObject * obj1 = 0 ; | |
6468 | PyObject * obj2 = 0 ; | |
6469 | char *kwnames[] = { | |
6470 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6471 | }; | |
6472 | ||
6473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, | |
6475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6476 | arg2 = (int) SWIG_AsInt(obj1); | |
6477 | if (PyErr_Occurred()) SWIG_fail; | |
6478 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6479 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6480 | SWIG_fail; | |
6481 | if (arg3 == NULL) { | |
6482 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6483 | SWIG_fail; | |
6484 | } | |
6485 | { | |
6486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6487 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6488 | ||
6489 | wxPyEndAllowThreads(__tstate); | |
6490 | if (PyErr_Occurred()) SWIG_fail; | |
6491 | } | |
6492 | Py_INCREF(Py_None); resultobj = Py_None; | |
6493 | return resultobj; | |
6494 | fail: | |
6495 | return NULL; | |
6496 | } | |
6497 | ||
6498 | ||
6499 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6500 | PyObject *resultobj; | |
6501 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6502 | wxVisualAttributes result; | |
6503 | PyObject * obj0 = 0 ; | |
6504 | char *kwnames[] = { | |
6505 | (char *) "variant", NULL | |
6506 | }; | |
6507 | ||
6508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6509 | if (obj0) { | |
6510 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
6512 | } | |
6513 | { | |
19272049 | 6514 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6516 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6517 | ||
6518 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6519 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6520 | } |
6521 | { | |
6522 | wxVisualAttributes * resultptr; | |
6523 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6525 | } | |
6526 | return resultobj; | |
6527 | fail: | |
6528 | return NULL; | |
6529 | } | |
6530 | ||
6531 | ||
6532 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { | |
6533 | PyObject *obj; | |
6534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6535 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6536 | Py_INCREF(obj); | |
6537 | return Py_BuildValue((char *)""); | |
6538 | } | |
6539 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6540 | PyObject *resultobj; | |
6541 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6542 | int arg2 = (int) -1 ; |
d55e5bfc RD |
6543 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6544 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6545 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6546 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
6547 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; | |
6548 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6549 | long arg6 = (long) 0 ; | |
6550 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6551 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6552 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6553 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
6554 | wxCheckListBox *result; | |
6555 | wxPoint temp3 ; | |
6556 | wxSize temp4 ; | |
6557 | bool temp5 = False ; | |
6558 | bool temp8 = False ; | |
6559 | PyObject * obj0 = 0 ; | |
6560 | PyObject * obj1 = 0 ; | |
6561 | PyObject * obj2 = 0 ; | |
6562 | PyObject * obj3 = 0 ; | |
6563 | PyObject * obj4 = 0 ; | |
6564 | PyObject * obj5 = 0 ; | |
6565 | PyObject * obj6 = 0 ; | |
6566 | PyObject * obj7 = 0 ; | |
6567 | char *kwnames[] = { | |
6568 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6569 | }; | |
6570 | ||
248ed943 | 6571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
6572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6574 | if (obj1) { |
6575 | arg2 = (int) SWIG_AsInt(obj1); | |
6576 | if (PyErr_Occurred()) SWIG_fail; | |
6577 | } | |
d55e5bfc RD |
6578 | if (obj2) { |
6579 | { | |
6580 | arg3 = &temp3; | |
6581 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6582 | } | |
6583 | } | |
6584 | if (obj3) { | |
6585 | { | |
6586 | arg4 = &temp4; | |
6587 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6588 | } | |
6589 | } | |
6590 | if (obj4) { | |
6591 | { | |
6592 | if (! PySequence_Check(obj4)) { | |
6593 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6594 | SWIG_fail; | |
6595 | } | |
6596 | arg5 = new wxArrayString; | |
6597 | temp5 = True; | |
6598 | int i, len=PySequence_Length(obj4); | |
6599 | for (i=0; i<len; i++) { | |
6600 | PyObject* item = PySequence_GetItem(obj4, i); | |
6601 | #if wxUSE_UNICODE | |
6602 | PyObject* str = PyObject_Unicode(item); | |
6603 | #else | |
6604 | PyObject* str = PyObject_Str(item); | |
6605 | #endif | |
6606 | if (PyErr_Occurred()) SWIG_fail; | |
6607 | arg5->Add(Py2wxString(str)); | |
6608 | Py_DECREF(item); | |
6609 | Py_DECREF(str); | |
6610 | } | |
6611 | } | |
6612 | } | |
6613 | if (obj5) { | |
6614 | arg6 = (long) SWIG_AsLong(obj5); | |
6615 | if (PyErr_Occurred()) SWIG_fail; | |
6616 | } | |
6617 | if (obj6) { | |
6618 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
6619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6620 | SWIG_fail; | |
6621 | if (arg7 == NULL) { | |
6622 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6623 | SWIG_fail; | |
6624 | } | |
6625 | } | |
6626 | if (obj7) { | |
6627 | { | |
6628 | arg8 = wxString_in_helper(obj7); | |
6629 | if (arg8 == NULL) SWIG_fail; | |
6630 | temp8 = True; | |
6631 | } | |
6632 | } | |
6633 | { | |
0439c23b | 6634 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6636 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
6637 | ||
6638 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6639 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6640 | } |
6641 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6642 | { | |
6643 | if (temp5) delete arg5; | |
6644 | } | |
6645 | { | |
6646 | if (temp8) | |
6647 | delete arg8; | |
6648 | } | |
6649 | return resultobj; | |
6650 | fail: | |
6651 | { | |
6652 | if (temp5) delete arg5; | |
6653 | } | |
6654 | { | |
6655 | if (temp8) | |
6656 | delete arg8; | |
6657 | } | |
6658 | return NULL; | |
6659 | } | |
6660 | ||
6661 | ||
6662 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6663 | PyObject *resultobj; | |
6664 | wxCheckListBox *result; | |
6665 | char *kwnames[] = { | |
6666 | NULL | |
6667 | }; | |
6668 | ||
6669 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6670 | { | |
0439c23b | 6671 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6673 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6674 | ||
6675 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6676 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
6677 | } |
6678 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); | |
6679 | return resultobj; | |
6680 | fail: | |
6681 | return NULL; | |
6682 | } | |
6683 | ||
6684 | ||
6685 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6686 | PyObject *resultobj; | |
6687 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6688 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6689 | int arg3 = (int) -1 ; |
d55e5bfc RD |
6690 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6691 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6692 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6693 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
6694 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
6695 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6696 | long arg7 = (long) 0 ; | |
6697 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6698 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6699 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6700 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
6701 | bool result; | |
6702 | wxPoint temp4 ; | |
6703 | wxSize temp5 ; | |
6704 | bool temp6 = False ; | |
6705 | bool temp9 = False ; | |
6706 | PyObject * obj0 = 0 ; | |
6707 | PyObject * obj1 = 0 ; | |
6708 | PyObject * obj2 = 0 ; | |
6709 | PyObject * obj3 = 0 ; | |
6710 | PyObject * obj4 = 0 ; | |
6711 | PyObject * obj5 = 0 ; | |
6712 | PyObject * obj6 = 0 ; | |
6713 | PyObject * obj7 = 0 ; | |
6714 | PyObject * obj8 = 0 ; | |
6715 | char *kwnames[] = { | |
6716 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6717 | }; | |
6718 | ||
248ed943 | 6719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
6720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6724 | if (obj2) { |
6725 | arg3 = (int) SWIG_AsInt(obj2); | |
6726 | if (PyErr_Occurred()) SWIG_fail; | |
6727 | } | |
d55e5bfc RD |
6728 | if (obj3) { |
6729 | { | |
6730 | arg4 = &temp4; | |
6731 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6732 | } | |
6733 | } | |
6734 | if (obj4) { | |
6735 | { | |
6736 | arg5 = &temp5; | |
6737 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6738 | } | |
6739 | } | |
6740 | if (obj5) { | |
6741 | { | |
6742 | if (! PySequence_Check(obj5)) { | |
6743 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6744 | SWIG_fail; | |
6745 | } | |
6746 | arg6 = new wxArrayString; | |
6747 | temp6 = True; | |
6748 | int i, len=PySequence_Length(obj5); | |
6749 | for (i=0; i<len; i++) { | |
6750 | PyObject* item = PySequence_GetItem(obj5, i); | |
6751 | #if wxUSE_UNICODE | |
6752 | PyObject* str = PyObject_Unicode(item); | |
6753 | #else | |
6754 | PyObject* str = PyObject_Str(item); | |
6755 | #endif | |
6756 | if (PyErr_Occurred()) SWIG_fail; | |
6757 | arg6->Add(Py2wxString(str)); | |
6758 | Py_DECREF(item); | |
6759 | Py_DECREF(str); | |
6760 | } | |
6761 | } | |
6762 | } | |
6763 | if (obj6) { | |
6764 | arg7 = (long) SWIG_AsLong(obj6); | |
6765 | if (PyErr_Occurred()) SWIG_fail; | |
6766 | } | |
6767 | if (obj7) { | |
6768 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
6769 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6770 | SWIG_fail; | |
6771 | if (arg8 == NULL) { | |
6772 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
6773 | SWIG_fail; | |
6774 | } | |
6775 | } | |
6776 | if (obj8) { | |
6777 | { | |
6778 | arg9 = wxString_in_helper(obj8); | |
6779 | if (arg9 == NULL) SWIG_fail; | |
6780 | temp9 = True; | |
6781 | } | |
6782 | } | |
6783 | { | |
6784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6785 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
6786 | ||
6787 | wxPyEndAllowThreads(__tstate); | |
6788 | if (PyErr_Occurred()) SWIG_fail; | |
6789 | } | |
6790 | { | |
6791 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6792 | } | |
6793 | { | |
6794 | if (temp6) delete arg6; | |
6795 | } | |
6796 | { | |
6797 | if (temp9) | |
6798 | delete arg9; | |
6799 | } | |
6800 | return resultobj; | |
6801 | fail: | |
6802 | { | |
6803 | if (temp6) delete arg6; | |
6804 | } | |
6805 | { | |
6806 | if (temp9) | |
6807 | delete arg9; | |
6808 | } | |
6809 | return NULL; | |
6810 | } | |
6811 | ||
6812 | ||
6813 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6814 | PyObject *resultobj; | |
6815 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6816 | int arg2 ; | |
6817 | bool result; | |
6818 | PyObject * obj0 = 0 ; | |
6819 | PyObject * obj1 = 0 ; | |
6820 | char *kwnames[] = { | |
6821 | (char *) "self",(char *) "index", NULL | |
6822 | }; | |
6823 | ||
6824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; | |
6825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6827 | arg2 = (int) SWIG_AsInt(obj1); | |
6828 | if (PyErr_Occurred()) SWIG_fail; | |
6829 | { | |
6830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6831 | result = (bool)(arg1)->IsChecked(arg2); | |
6832 | ||
6833 | wxPyEndAllowThreads(__tstate); | |
6834 | if (PyErr_Occurred()) SWIG_fail; | |
6835 | } | |
6836 | { | |
6837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6838 | } | |
6839 | return resultobj; | |
6840 | fail: | |
6841 | return NULL; | |
6842 | } | |
6843 | ||
6844 | ||
6845 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6846 | PyObject *resultobj; | |
6847 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6848 | int arg2 ; | |
6849 | int arg3 = (int) True ; | |
6850 | PyObject * obj0 = 0 ; | |
6851 | PyObject * obj1 = 0 ; | |
6852 | PyObject * obj2 = 0 ; | |
6853 | char *kwnames[] = { | |
6854 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6855 | }; | |
6856 | ||
6857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6860 | arg2 = (int) SWIG_AsInt(obj1); | |
6861 | if (PyErr_Occurred()) SWIG_fail; | |
6862 | if (obj2) { | |
6863 | arg3 = (int) SWIG_AsInt(obj2); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
6865 | } | |
6866 | { | |
6867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6868 | (arg1)->Check(arg2,arg3); | |
6869 | ||
6870 | wxPyEndAllowThreads(__tstate); | |
6871 | if (PyErr_Occurred()) SWIG_fail; | |
6872 | } | |
6873 | Py_INCREF(Py_None); resultobj = Py_None; | |
6874 | return resultobj; | |
6875 | fail: | |
6876 | return NULL; | |
6877 | } | |
6878 | ||
6879 | ||
6880 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6881 | PyObject *resultobj; | |
6882 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6883 | int result; | |
6884 | PyObject * obj0 = 0 ; | |
6885 | char *kwnames[] = { | |
6886 | (char *) "self", NULL | |
6887 | }; | |
6888 | ||
6889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
6890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6892 | { | |
6893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6894 | result = (int)(arg1)->GetItemHeight(); | |
6895 | ||
6896 | wxPyEndAllowThreads(__tstate); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
6898 | } | |
6899 | resultobj = SWIG_FromInt((int)result); | |
6900 | return resultobj; | |
6901 | fail: | |
6902 | return NULL; | |
6903 | } | |
6904 | ||
6905 | ||
6906 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6907 | PyObject *resultobj; | |
6908 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6909 | wxPoint *arg2 = 0 ; | |
6910 | int result; | |
6911 | wxPoint temp2 ; | |
6912 | PyObject * obj0 = 0 ; | |
6913 | PyObject * obj1 = 0 ; | |
6914 | char *kwnames[] = { | |
6915 | (char *) "self",(char *) "pt", NULL | |
6916 | }; | |
6917 | ||
6918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
6919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6921 | { | |
6922 | arg2 = &temp2; | |
6923 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6924 | } | |
6925 | { | |
6926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6927 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6928 | ||
6929 | wxPyEndAllowThreads(__tstate); | |
6930 | if (PyErr_Occurred()) SWIG_fail; | |
6931 | } | |
6932 | resultobj = SWIG_FromInt((int)result); | |
6933 | return resultobj; | |
6934 | fail: | |
6935 | return NULL; | |
6936 | } | |
6937 | ||
6938 | ||
6939 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6940 | PyObject *resultobj; | |
6941 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6942 | int arg2 ; | |
6943 | int arg3 ; | |
6944 | int result; | |
6945 | PyObject * obj0 = 0 ; | |
6946 | PyObject * obj1 = 0 ; | |
6947 | PyObject * obj2 = 0 ; | |
6948 | char *kwnames[] = { | |
6949 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6950 | }; | |
6951 | ||
6952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
6953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, | |
6954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6955 | arg2 = (int) SWIG_AsInt(obj1); | |
6956 | if (PyErr_Occurred()) SWIG_fail; | |
6957 | arg3 = (int) SWIG_AsInt(obj2); | |
6958 | if (PyErr_Occurred()) SWIG_fail; | |
6959 | { | |
6960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6961 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6962 | ||
6963 | wxPyEndAllowThreads(__tstate); | |
6964 | if (PyErr_Occurred()) SWIG_fail; | |
6965 | } | |
6966 | resultobj = SWIG_FromInt((int)result); | |
6967 | return resultobj; | |
6968 | fail: | |
6969 | return NULL; | |
6970 | } | |
6971 | ||
6972 | ||
6973 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6974 | PyObject *obj; | |
6975 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6976 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6977 | Py_INCREF(obj); | |
6978 | return Py_BuildValue((char *)""); | |
6979 | } | |
6980 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { | |
6981 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6982 | return 1; | |
6983 | } | |
6984 | ||
6985 | ||
6986 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6987 | PyObject *pyobj; | |
6988 | ||
6989 | { | |
6990 | #if wxUSE_UNICODE | |
6991 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6992 | #else | |
6993 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6994 | #endif | |
6995 | } | |
6996 | return pyobj; | |
6997 | } | |
6998 | ||
6999 | ||
908b74cd | 7000 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 7001 | PyObject *resultobj; |
908b74cd RD |
7002 | wxColour const &arg1_defvalue = wxNullColour ; |
7003 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d55e5bfc RD |
7004 | wxColour const &arg2_defvalue = wxNullColour ; |
7005 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7006 | wxFont const &arg3_defvalue = wxNullFont ; | |
7007 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7008 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7009 | wxTextAttr *result; | |
7010 | wxColour temp1 ; | |
7011 | wxColour temp2 ; | |
7012 | PyObject * obj0 = 0 ; | |
7013 | PyObject * obj1 = 0 ; | |
7014 | PyObject * obj2 = 0 ; | |
7015 | PyObject * obj3 = 0 ; | |
908b74cd RD |
7016 | char *kwnames[] = { |
7017 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7018 | }; | |
d55e5bfc | 7019 | |
908b74cd RD |
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7021 | if (obj0) { | |
7022 | { | |
7023 | arg1 = &temp1; | |
7024 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7025 | } | |
d55e5bfc RD |
7026 | } |
7027 | if (obj1) { | |
7028 | { | |
7029 | arg2 = &temp2; | |
7030 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7031 | } | |
7032 | } | |
7033 | if (obj2) { | |
7034 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
7035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7036 | SWIG_fail; | |
7037 | if (arg3 == NULL) { | |
7038 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7039 | SWIG_fail; | |
7040 | } | |
7041 | } | |
7042 | if (obj3) { | |
7043 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); | |
7044 | if (PyErr_Occurred()) SWIG_fail; | |
7045 | } | |
7046 | { | |
7047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7048 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7049 | ||
7050 | wxPyEndAllowThreads(__tstate); | |
7051 | if (PyErr_Occurred()) SWIG_fail; | |
7052 | } | |
7053 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); | |
7054 | return resultobj; | |
7055 | fail: | |
7056 | return NULL; | |
7057 | } | |
7058 | ||
7059 | ||
d55e5bfc RD |
7060 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
7061 | PyObject *resultobj; | |
7062 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7063 | PyObject * obj0 = 0 ; | |
7064 | char *kwnames[] = { | |
7065 | (char *) "self", NULL | |
7066 | }; | |
7067 | ||
7068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
7069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7071 | { | |
7072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7073 | delete arg1; | |
7074 | ||
7075 | wxPyEndAllowThreads(__tstate); | |
7076 | if (PyErr_Occurred()) SWIG_fail; | |
7077 | } | |
7078 | Py_INCREF(Py_None); resultobj = Py_None; | |
7079 | return resultobj; | |
7080 | fail: | |
7081 | return NULL; | |
7082 | } | |
7083 | ||
7084 | ||
7085 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7086 | PyObject *resultobj; | |
7087 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7088 | PyObject * obj0 = 0 ; | |
7089 | char *kwnames[] = { | |
7090 | (char *) "self", NULL | |
7091 | }; | |
7092 | ||
7093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
7094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7096 | { | |
7097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7098 | (arg1)->Init(); | |
7099 | ||
7100 | wxPyEndAllowThreads(__tstate); | |
7101 | if (PyErr_Occurred()) SWIG_fail; | |
7102 | } | |
7103 | Py_INCREF(Py_None); resultobj = Py_None; | |
7104 | return resultobj; | |
7105 | fail: | |
7106 | return NULL; | |
7107 | } | |
7108 | ||
7109 | ||
7110 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7111 | PyObject *resultobj; | |
7112 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7113 | wxColour *arg2 = 0 ; | |
7114 | wxColour temp2 ; | |
7115 | PyObject * obj0 = 0 ; | |
7116 | PyObject * obj1 = 0 ; | |
7117 | char *kwnames[] = { | |
7118 | (char *) "self",(char *) "colText", NULL | |
7119 | }; | |
7120 | ||
7121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
7122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7124 | { | |
7125 | arg2 = &temp2; | |
7126 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7127 | } | |
7128 | { | |
7129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7130 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7131 | ||
7132 | wxPyEndAllowThreads(__tstate); | |
7133 | if (PyErr_Occurred()) SWIG_fail; | |
7134 | } | |
7135 | Py_INCREF(Py_None); resultobj = Py_None; | |
7136 | return resultobj; | |
7137 | fail: | |
7138 | return NULL; | |
7139 | } | |
7140 | ||
7141 | ||
7142 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7143 | PyObject *resultobj; | |
7144 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7145 | wxColour *arg2 = 0 ; | |
7146 | wxColour temp2 ; | |
7147 | PyObject * obj0 = 0 ; | |
7148 | PyObject * obj1 = 0 ; | |
7149 | char *kwnames[] = { | |
7150 | (char *) "self",(char *) "colBack", NULL | |
7151 | }; | |
7152 | ||
7153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
7154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7156 | { | |
7157 | arg2 = &temp2; | |
7158 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7159 | } | |
7160 | { | |
7161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7162 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7163 | ||
7164 | wxPyEndAllowThreads(__tstate); | |
7165 | if (PyErr_Occurred()) SWIG_fail; | |
7166 | } | |
7167 | Py_INCREF(Py_None); resultobj = Py_None; | |
7168 | return resultobj; | |
7169 | fail: | |
7170 | return NULL; | |
7171 | } | |
7172 | ||
7173 | ||
7174 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7175 | PyObject *resultobj; | |
7176 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7177 | wxFont *arg2 = 0 ; | |
7178 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7179 | PyObject * obj0 = 0 ; | |
7180 | PyObject * obj1 = 0 ; | |
7181 | PyObject * obj2 = 0 ; | |
7182 | char *kwnames[] = { | |
7183 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7184 | }; | |
7185 | ||
7186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7191 | SWIG_fail; | |
7192 | if (arg2 == NULL) { | |
7193 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7194 | SWIG_fail; | |
7195 | } | |
7196 | if (obj2) { | |
7197 | arg3 = (long) SWIG_AsLong(obj2); | |
7198 | if (PyErr_Occurred()) SWIG_fail; | |
7199 | } | |
7200 | { | |
7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7202 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7203 | ||
7204 | wxPyEndAllowThreads(__tstate); | |
7205 | if (PyErr_Occurred()) SWIG_fail; | |
7206 | } | |
7207 | Py_INCREF(Py_None); resultobj = Py_None; | |
7208 | return resultobj; | |
7209 | fail: | |
7210 | return NULL; | |
7211 | } | |
7212 | ||
7213 | ||
7214 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7215 | PyObject *resultobj; | |
7216 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7217 | int arg2 ; | |
7218 | PyObject * obj0 = 0 ; | |
7219 | PyObject * obj1 = 0 ; | |
7220 | char *kwnames[] = { | |
7221 | (char *) "self",(char *) "alignment", NULL | |
7222 | }; | |
7223 | ||
7224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; | |
7225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7227 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7228 | if (PyErr_Occurred()) SWIG_fail; | |
7229 | { | |
7230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7231 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7232 | ||
7233 | wxPyEndAllowThreads(__tstate); | |
7234 | if (PyErr_Occurred()) SWIG_fail; | |
7235 | } | |
7236 | Py_INCREF(Py_None); resultobj = Py_None; | |
7237 | return resultobj; | |
7238 | fail: | |
7239 | return NULL; | |
7240 | } | |
7241 | ||
7242 | ||
7243 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7244 | PyObject *resultobj; | |
7245 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7246 | wxArrayInt *arg2 = 0 ; | |
7247 | bool temp2 = False ; | |
7248 | PyObject * obj0 = 0 ; | |
7249 | PyObject * obj1 = 0 ; | |
7250 | char *kwnames[] = { | |
7251 | (char *) "self",(char *) "tabs", NULL | |
7252 | }; | |
7253 | ||
7254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
7255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7257 | { | |
7258 | if (! PySequence_Check(obj1)) { | |
7259 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7260 | SWIG_fail; | |
7261 | } | |
7262 | arg2 = new wxArrayInt; | |
7263 | temp2 = True; | |
7264 | int i, len=PySequence_Length(obj1); | |
7265 | for (i=0; i<len; i++) { | |
7266 | PyObject* item = PySequence_GetItem(obj1, i); | |
7267 | PyObject* number = PyNumber_Int(item); | |
7268 | arg2->Add(PyInt_AS_LONG(number)); | |
7269 | Py_DECREF(item); | |
7270 | Py_DECREF(number); | |
7271 | } | |
7272 | } | |
7273 | { | |
7274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7275 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7276 | ||
7277 | wxPyEndAllowThreads(__tstate); | |
7278 | if (PyErr_Occurred()) SWIG_fail; | |
7279 | } | |
7280 | Py_INCREF(Py_None); resultobj = Py_None; | |
7281 | { | |
7282 | if (temp2) delete arg2; | |
7283 | } | |
7284 | return resultobj; | |
7285 | fail: | |
7286 | { | |
7287 | if (temp2) delete arg2; | |
7288 | } | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7296 | int arg2 ; | |
a07a67e6 | 7297 | int arg3 = (int) 0 ; |
d55e5bfc RD |
7298 | PyObject * obj0 = 0 ; |
7299 | PyObject * obj1 = 0 ; | |
a07a67e6 | 7300 | PyObject * obj2 = 0 ; |
d55e5bfc | 7301 | char *kwnames[] = { |
a07a67e6 | 7302 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d55e5bfc RD |
7303 | }; |
7304 | ||
a07a67e6 | 7305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
d55e5bfc RD |
7306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7308 | arg2 = (int) SWIG_AsInt(obj1); | |
7309 | if (PyErr_Occurred()) SWIG_fail; | |
a07a67e6 RD |
7310 | if (obj2) { |
7311 | arg3 = (int) SWIG_AsInt(obj2); | |
7312 | if (PyErr_Occurred()) SWIG_fail; | |
7313 | } | |
d55e5bfc RD |
7314 | { |
7315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a07a67e6 | 7316 | (arg1)->SetLeftIndent(arg2,arg3); |
d55e5bfc RD |
7317 | |
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | Py_INCREF(Py_None); resultobj = Py_None; | |
7322 | return resultobj; | |
7323 | fail: | |
7324 | return NULL; | |
7325 | } | |
7326 | ||
7327 | ||
7328 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7329 | PyObject *resultobj; | |
7330 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7331 | int arg2 ; | |
7332 | PyObject * obj0 = 0 ; | |
7333 | PyObject * obj1 = 0 ; | |
7334 | char *kwnames[] = { | |
7335 | (char *) "self",(char *) "indent", NULL | |
7336 | }; | |
7337 | ||
7338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; | |
7339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7341 | arg2 = (int) SWIG_AsInt(obj1); | |
7342 | if (PyErr_Occurred()) SWIG_fail; | |
7343 | { | |
7344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7345 | (arg1)->SetRightIndent(arg2); | |
7346 | ||
7347 | wxPyEndAllowThreads(__tstate); | |
7348 | if (PyErr_Occurred()) SWIG_fail; | |
7349 | } | |
7350 | Py_INCREF(Py_None); resultobj = Py_None; | |
7351 | return resultobj; | |
7352 | fail: | |
7353 | return NULL; | |
7354 | } | |
7355 | ||
7356 | ||
7357 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7358 | PyObject *resultobj; | |
7359 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7360 | long arg2 ; | |
7361 | PyObject * obj0 = 0 ; | |
7362 | PyObject * obj1 = 0 ; | |
7363 | char *kwnames[] = { | |
7364 | (char *) "self",(char *) "flags", NULL | |
7365 | }; | |
7366 | ||
7367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; | |
7368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7370 | arg2 = (long) SWIG_AsLong(obj1); | |
7371 | if (PyErr_Occurred()) SWIG_fail; | |
7372 | { | |
7373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7374 | (arg1)->SetFlags(arg2); | |
7375 | ||
7376 | wxPyEndAllowThreads(__tstate); | |
7377 | if (PyErr_Occurred()) SWIG_fail; | |
7378 | } | |
7379 | Py_INCREF(Py_None); resultobj = Py_None; | |
7380 | return resultobj; | |
7381 | fail: | |
7382 | return NULL; | |
7383 | } | |
7384 | ||
7385 | ||
7386 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7387 | PyObject *resultobj; | |
7388 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7389 | bool result; | |
7390 | PyObject * obj0 = 0 ; | |
7391 | char *kwnames[] = { | |
7392 | (char *) "self", NULL | |
7393 | }; | |
7394 | ||
7395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
7396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7398 | { | |
7399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7400 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7401 | ||
7402 | wxPyEndAllowThreads(__tstate); | |
7403 | if (PyErr_Occurred()) SWIG_fail; | |
7404 | } | |
7405 | { | |
7406 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7407 | } | |
7408 | return resultobj; | |
7409 | fail: | |
7410 | return NULL; | |
7411 | } | |
7412 | ||
7413 | ||
7414 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7415 | PyObject *resultobj; | |
7416 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7417 | bool result; | |
7418 | PyObject * obj0 = 0 ; | |
7419 | char *kwnames[] = { | |
7420 | (char *) "self", NULL | |
7421 | }; | |
7422 | ||
7423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
7424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7426 | { | |
7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7428 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7429 | ||
7430 | wxPyEndAllowThreads(__tstate); | |
7431 | if (PyErr_Occurred()) SWIG_fail; | |
7432 | } | |
7433 | { | |
7434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7435 | } | |
7436 | return resultobj; | |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7445 | bool result; | |
7446 | PyObject * obj0 = 0 ; | |
7447 | char *kwnames[] = { | |
7448 | (char *) "self", NULL | |
7449 | }; | |
7450 | ||
7451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
7452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7454 | { | |
7455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7456 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7457 | ||
7458 | wxPyEndAllowThreads(__tstate); | |
7459 | if (PyErr_Occurred()) SWIG_fail; | |
7460 | } | |
7461 | { | |
7462 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7463 | } | |
7464 | return resultobj; | |
7465 | fail: | |
7466 | return NULL; | |
7467 | } | |
7468 | ||
7469 | ||
7470 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7471 | PyObject *resultobj; | |
7472 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7473 | bool result; | |
7474 | PyObject * obj0 = 0 ; | |
7475 | char *kwnames[] = { | |
7476 | (char *) "self", NULL | |
7477 | }; | |
7478 | ||
7479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
7480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7482 | { | |
7483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7484 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7485 | ||
7486 | wxPyEndAllowThreads(__tstate); | |
7487 | if (PyErr_Occurred()) SWIG_fail; | |
7488 | } | |
7489 | { | |
7490 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7491 | } | |
7492 | return resultobj; | |
7493 | fail: | |
7494 | return NULL; | |
7495 | } | |
7496 | ||
7497 | ||
7498 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7499 | PyObject *resultobj; | |
7500 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7501 | bool result; | |
7502 | PyObject * obj0 = 0 ; | |
7503 | char *kwnames[] = { | |
7504 | (char *) "self", NULL | |
7505 | }; | |
7506 | ||
7507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
7508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7510 | { | |
7511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7512 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7513 | ||
7514 | wxPyEndAllowThreads(__tstate); | |
7515 | if (PyErr_Occurred()) SWIG_fail; | |
7516 | } | |
7517 | { | |
7518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7519 | } | |
7520 | return resultobj; | |
7521 | fail: | |
7522 | return NULL; | |
7523 | } | |
7524 | ||
7525 | ||
7526 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7527 | PyObject *resultobj; | |
7528 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7529 | bool result; | |
7530 | PyObject * obj0 = 0 ; | |
7531 | char *kwnames[] = { | |
7532 | (char *) "self", NULL | |
7533 | }; | |
7534 | ||
7535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
7536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7538 | { | |
7539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7540 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7541 | ||
7542 | wxPyEndAllowThreads(__tstate); | |
7543 | if (PyErr_Occurred()) SWIG_fail; | |
7544 | } | |
7545 | { | |
7546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7547 | } | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | return NULL; | |
7551 | } | |
7552 | ||
7553 | ||
7554 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7555 | PyObject *resultobj; | |
7556 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7557 | bool result; | |
7558 | PyObject * obj0 = 0 ; | |
7559 | char *kwnames[] = { | |
7560 | (char *) "self", NULL | |
7561 | }; | |
7562 | ||
7563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
7564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7566 | { | |
7567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7568 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7569 | ||
7570 | wxPyEndAllowThreads(__tstate); | |
7571 | if (PyErr_Occurred()) SWIG_fail; | |
7572 | } | |
7573 | { | |
7574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7575 | } | |
7576 | return resultobj; | |
7577 | fail: | |
7578 | return NULL; | |
7579 | } | |
7580 | ||
7581 | ||
7582 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7583 | PyObject *resultobj; | |
7584 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7585 | long arg2 ; | |
7586 | bool result; | |
7587 | PyObject * obj0 = 0 ; | |
7588 | PyObject * obj1 = 0 ; | |
7589 | char *kwnames[] = { | |
7590 | (char *) "self",(char *) "flag", NULL | |
7591 | }; | |
7592 | ||
7593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; | |
7594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7596 | arg2 = (long) SWIG_AsLong(obj1); | |
7597 | if (PyErr_Occurred()) SWIG_fail; | |
7598 | { | |
7599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7600 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7601 | ||
7602 | wxPyEndAllowThreads(__tstate); | |
7603 | if (PyErr_Occurred()) SWIG_fail; | |
7604 | } | |
7605 | { | |
7606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7607 | } | |
7608 | return resultobj; | |
7609 | fail: | |
7610 | return NULL; | |
7611 | } | |
7612 | ||
7613 | ||
7614 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7615 | PyObject *resultobj; | |
7616 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7617 | wxColour *result; | |
7618 | PyObject * obj0 = 0 ; | |
7619 | char *kwnames[] = { | |
7620 | (char *) "self", NULL | |
7621 | }; | |
7622 | ||
7623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
7624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7626 | { | |
7627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7628 | { | |
7629 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7630 | result = (wxColour *) &_result_ref; | |
7631 | } | |
7632 | ||
7633 | wxPyEndAllowThreads(__tstate); | |
7634 | if (PyErr_Occurred()) SWIG_fail; | |
7635 | } | |
7636 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7637 | return resultobj; | |
7638 | fail: | |
7639 | return NULL; | |
7640 | } | |
7641 | ||
7642 | ||
7643 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7644 | PyObject *resultobj; | |
7645 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7646 | wxColour *result; | |
7647 | PyObject * obj0 = 0 ; | |
7648 | char *kwnames[] = { | |
7649 | (char *) "self", NULL | |
7650 | }; | |
7651 | ||
7652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
7653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7655 | { | |
7656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7657 | { | |
7658 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7659 | result = (wxColour *) &_result_ref; | |
7660 | } | |
7661 | ||
7662 | wxPyEndAllowThreads(__tstate); | |
7663 | if (PyErr_Occurred()) SWIG_fail; | |
7664 | } | |
7665 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); | |
7666 | return resultobj; | |
7667 | fail: | |
7668 | return NULL; | |
7669 | } | |
7670 | ||
7671 | ||
7672 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7673 | PyObject *resultobj; | |
7674 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7675 | wxFont *result; | |
7676 | PyObject * obj0 = 0 ; | |
7677 | char *kwnames[] = { | |
7678 | (char *) "self", NULL | |
7679 | }; | |
7680 | ||
7681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
7682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7684 | { | |
7685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7686 | { | |
7687 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7688 | result = (wxFont *) &_result_ref; | |
7689 | } | |
7690 | ||
7691 | wxPyEndAllowThreads(__tstate); | |
7692 | if (PyErr_Occurred()) SWIG_fail; | |
7693 | } | |
7694 | { | |
7695 | wxFont* resultptr = new wxFont(*result); | |
7696 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7697 | } | |
7698 | return resultobj; | |
7699 | fail: | |
7700 | return NULL; | |
7701 | } | |
7702 | ||
7703 | ||
7704 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7705 | PyObject *resultobj; | |
7706 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7707 | int result; | |
7708 | PyObject * obj0 = 0 ; | |
7709 | char *kwnames[] = { | |
7710 | (char *) "self", NULL | |
7711 | }; | |
7712 | ||
7713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
7714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7716 | { | |
7717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7718 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7719 | ||
7720 | wxPyEndAllowThreads(__tstate); | |
7721 | if (PyErr_Occurred()) SWIG_fail; | |
7722 | } | |
7723 | resultobj = SWIG_FromInt((int)result); | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj; | |
7732 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7733 | wxArrayInt *result; | |
7734 | PyObject * obj0 = 0 ; | |
7735 | char *kwnames[] = { | |
7736 | (char *) "self", NULL | |
7737 | }; | |
7738 | ||
7739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
7740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7742 | { | |
7743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7744 | { | |
7745 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7746 | result = (wxArrayInt *) &_result_ref; | |
7747 | } | |
7748 | ||
7749 | wxPyEndAllowThreads(__tstate); | |
7750 | if (PyErr_Occurred()) SWIG_fail; | |
7751 | } | |
7752 | { | |
7753 | resultobj = PyList_New(0); | |
7754 | size_t idx; | |
7755 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7756 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7757 | PyList_Append(resultobj, val); | |
7758 | Py_DECREF(val); | |
7759 | } | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | return NULL; | |
7764 | } | |
7765 | ||
7766 | ||
7767 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7768 | PyObject *resultobj; | |
7769 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7770 | long result; | |
7771 | PyObject * obj0 = 0 ; | |
7772 | char *kwnames[] = { | |
7773 | (char *) "self", NULL | |
7774 | }; | |
7775 | ||
7776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
7777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7779 | { | |
7780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7781 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7782 | ||
7783 | wxPyEndAllowThreads(__tstate); | |
7784 | if (PyErr_Occurred()) SWIG_fail; | |
7785 | } | |
7786 | resultobj = SWIG_FromLong((long)result); | |
7787 | return resultobj; | |
7788 | fail: | |
7789 | return NULL; | |
7790 | } | |
7791 | ||
7792 | ||
a07a67e6 RD |
7793 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7794 | PyObject *resultobj; | |
7795 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7796 | long result; | |
7797 | PyObject * obj0 = 0 ; | |
7798 | char *kwnames[] = { | |
7799 | (char *) "self", NULL | |
7800 | }; | |
7801 | ||
7802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7805 | { | |
7806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7807 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7808 | ||
7809 | wxPyEndAllowThreads(__tstate); | |
7810 | if (PyErr_Occurred()) SWIG_fail; | |
7811 | } | |
7812 | resultobj = SWIG_FromLong((long)result); | |
7813 | return resultobj; | |
7814 | fail: | |
7815 | return NULL; | |
7816 | } | |
7817 | ||
7818 | ||
d55e5bfc RD |
7819 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7820 | PyObject *resultobj; | |
7821 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7822 | long result; | |
7823 | PyObject * obj0 = 0 ; | |
7824 | char *kwnames[] = { | |
7825 | (char *) "self", NULL | |
7826 | }; | |
7827 | ||
7828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
7829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7831 | { | |
7832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7833 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7834 | ||
7835 | wxPyEndAllowThreads(__tstate); | |
7836 | if (PyErr_Occurred()) SWIG_fail; | |
7837 | } | |
7838 | resultobj = SWIG_FromLong((long)result); | |
7839 | return resultobj; | |
7840 | fail: | |
7841 | return NULL; | |
7842 | } | |
7843 | ||
7844 | ||
7845 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7846 | PyObject *resultobj; | |
7847 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7848 | long result; | |
7849 | PyObject * obj0 = 0 ; | |
7850 | char *kwnames[] = { | |
7851 | (char *) "self", NULL | |
7852 | }; | |
7853 | ||
7854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
7855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7857 | { | |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | } | |
7864 | resultobj = SWIG_FromLong((long)result); | |
7865 | return resultobj; | |
7866 | fail: | |
7867 | return NULL; | |
7868 | } | |
7869 | ||
7870 | ||
7871 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7872 | PyObject *resultobj; | |
7873 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7874 | bool result; | |
7875 | PyObject * obj0 = 0 ; | |
7876 | char *kwnames[] = { | |
7877 | (char *) "self", NULL | |
7878 | }; | |
7879 | ||
7880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
7881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7883 | { | |
7884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7885 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7886 | ||
7887 | wxPyEndAllowThreads(__tstate); | |
7888 | if (PyErr_Occurred()) SWIG_fail; | |
7889 | } | |
7890 | { | |
7891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7892 | } | |
7893 | return resultobj; | |
7894 | fail: | |
7895 | return NULL; | |
7896 | } | |
7897 | ||
7898 | ||
7899 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7900 | PyObject *resultobj; | |
7901 | wxTextAttr *arg1 = 0 ; | |
7902 | wxTextAttr *arg2 = 0 ; | |
7903 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7904 | wxTextAttr result; | |
7905 | PyObject * obj0 = 0 ; | |
7906 | PyObject * obj1 = 0 ; | |
7907 | PyObject * obj2 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
7913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7915 | SWIG_fail; | |
7916 | if (arg1 == NULL) { | |
7917 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7918 | SWIG_fail; | |
7919 | } | |
7920 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
7921 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7922 | SWIG_fail; | |
7923 | if (arg2 == NULL) { | |
7924 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
7925 | SWIG_fail; | |
7926 | } | |
7927 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, | |
7928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7929 | { | |
7930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7931 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7932 | ||
7933 | wxPyEndAllowThreads(__tstate); | |
7934 | if (PyErr_Occurred()) SWIG_fail; | |
7935 | } | |
7936 | { | |
7937 | wxTextAttr * resultptr; | |
7938 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
7939 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); | |
7940 | } | |
7941 | return resultobj; | |
7942 | fail: | |
7943 | return NULL; | |
7944 | } | |
7945 | ||
7946 | ||
7947 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7948 | PyObject *obj; | |
7949 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7950 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7951 | Py_INCREF(obj); | |
7952 | return Py_BuildValue((char *)""); | |
7953 | } | |
7954 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7955 | PyObject *resultobj; | |
7956 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7957 | int arg2 = (int) -1 ; |
d55e5bfc RD |
7958 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7959 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7960 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7961 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7962 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7963 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7964 | long arg6 = (long) 0 ; | |
7965 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7966 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7967 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7968 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7969 | wxTextCtrl *result; | |
7970 | bool temp3 = False ; | |
7971 | wxPoint temp4 ; | |
7972 | wxSize temp5 ; | |
7973 | bool temp8 = False ; | |
7974 | PyObject * obj0 = 0 ; | |
7975 | PyObject * obj1 = 0 ; | |
7976 | PyObject * obj2 = 0 ; | |
7977 | PyObject * obj3 = 0 ; | |
7978 | PyObject * obj4 = 0 ; | |
7979 | PyObject * obj5 = 0 ; | |
7980 | PyObject * obj6 = 0 ; | |
7981 | PyObject * obj7 = 0 ; | |
7982 | char *kwnames[] = { | |
7983 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7984 | }; | |
7985 | ||
248ed943 | 7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
7987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
7989 | if (obj1) { |
7990 | arg2 = (int) SWIG_AsInt(obj1); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
d55e5bfc RD |
7993 | if (obj2) { |
7994 | { | |
7995 | arg3 = wxString_in_helper(obj2); | |
7996 | if (arg3 == NULL) SWIG_fail; | |
7997 | temp3 = True; | |
7998 | } | |
7999 | } | |
8000 | if (obj3) { | |
8001 | { | |
8002 | arg4 = &temp4; | |
8003 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8004 | } | |
8005 | } | |
8006 | if (obj4) { | |
8007 | { | |
8008 | arg5 = &temp5; | |
8009 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8010 | } | |
8011 | } | |
8012 | if (obj5) { | |
8013 | arg6 = (long) SWIG_AsLong(obj5); | |
8014 | if (PyErr_Occurred()) SWIG_fail; | |
8015 | } | |
8016 | if (obj6) { | |
8017 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
8018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8019 | SWIG_fail; | |
8020 | if (arg7 == NULL) { | |
8021 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8022 | SWIG_fail; | |
8023 | } | |
8024 | } | |
8025 | if (obj7) { | |
8026 | { | |
8027 | arg8 = wxString_in_helper(obj7); | |
8028 | if (arg8 == NULL) SWIG_fail; | |
8029 | temp8 = True; | |
8030 | } | |
8031 | } | |
8032 | { | |
0439c23b | 8033 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8035 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8036 | ||
8037 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8038 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8039 | } |
b0f7404b | 8040 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8041 | { |
8042 | if (temp3) | |
8043 | delete arg3; | |
8044 | } | |
8045 | { | |
8046 | if (temp8) | |
8047 | delete arg8; | |
8048 | } | |
8049 | return resultobj; | |
8050 | fail: | |
8051 | { | |
8052 | if (temp3) | |
8053 | delete arg3; | |
8054 | } | |
8055 | { | |
8056 | if (temp8) | |
8057 | delete arg8; | |
8058 | } | |
8059 | return NULL; | |
8060 | } | |
8061 | ||
8062 | ||
8063 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8064 | PyObject *resultobj; | |
8065 | wxTextCtrl *result; | |
8066 | char *kwnames[] = { | |
8067 | NULL | |
8068 | }; | |
8069 | ||
8070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8071 | { | |
0439c23b | 8072 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
8073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8074 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8075 | ||
8076 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8077 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 8078 | } |
b0f7404b | 8079 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d55e5bfc RD |
8080 | return resultobj; |
8081 | fail: | |
8082 | return NULL; | |
8083 | } | |
8084 | ||
8085 | ||
8086 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8087 | PyObject *resultobj; | |
8088 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8089 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8090 | int arg3 = (int) -1 ; |
d55e5bfc RD |
8091 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8092 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8093 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8094 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8095 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8096 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8097 | long arg7 = (long) 0 ; | |
8098 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8099 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8100 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8101 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8102 | bool result; | |
8103 | bool temp4 = False ; | |
8104 | wxPoint temp5 ; | |
8105 | wxSize temp6 ; | |
8106 | bool temp9 = False ; | |
8107 | PyObject * obj0 = 0 ; | |
8108 | PyObject * obj1 = 0 ; | |
8109 | PyObject * obj2 = 0 ; | |
8110 | PyObject * obj3 = 0 ; | |
8111 | PyObject * obj4 = 0 ; | |
8112 | PyObject * obj5 = 0 ; | |
8113 | PyObject * obj6 = 0 ; | |
8114 | PyObject * obj7 = 0 ; | |
8115 | PyObject * obj8 = 0 ; | |
8116 | char *kwnames[] = { | |
8117 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8118 | }; | |
8119 | ||
248ed943 | 8120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
8121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8123 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8125 | if (obj2) { |
8126 | arg3 = (int) SWIG_AsInt(obj2); | |
8127 | if (PyErr_Occurred()) SWIG_fail; | |
8128 | } | |
d55e5bfc RD |
8129 | if (obj3) { |
8130 | { | |
8131 | arg4 = wxString_in_helper(obj3); | |
8132 | if (arg4 == NULL) SWIG_fail; | |
8133 | temp4 = True; | |
8134 | } | |
8135 | } | |
8136 | if (obj4) { | |
8137 | { | |
8138 | arg5 = &temp5; | |
8139 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8140 | } | |
8141 | } | |
8142 | if (obj5) { | |
8143 | { | |
8144 | arg6 = &temp6; | |
8145 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8146 | } | |
8147 | } | |
8148 | if (obj6) { | |
8149 | arg7 = (long) SWIG_AsLong(obj6); | |
8150 | if (PyErr_Occurred()) SWIG_fail; | |
8151 | } | |
8152 | if (obj7) { | |
8153 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
8154 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8155 | SWIG_fail; | |
8156 | if (arg8 == NULL) { | |
8157 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8158 | SWIG_fail; | |
8159 | } | |
8160 | } | |
8161 | if (obj8) { | |
8162 | { | |
8163 | arg9 = wxString_in_helper(obj8); | |
8164 | if (arg9 == NULL) SWIG_fail; | |
8165 | temp9 = True; | |
8166 | } | |
8167 | } | |
8168 | { | |
8169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8170 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8171 | ||
8172 | wxPyEndAllowThreads(__tstate); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | } | |
8175 | { | |
8176 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8177 | } | |
8178 | { | |
8179 | if (temp4) | |
8180 | delete arg4; | |
8181 | } | |
8182 | { | |
8183 | if (temp9) | |
8184 | delete arg9; | |
8185 | } | |
8186 | return resultobj; | |
8187 | fail: | |
8188 | { | |
8189 | if (temp4) | |
8190 | delete arg4; | |
8191 | } | |
8192 | { | |
8193 | if (temp9) | |
8194 | delete arg9; | |
8195 | } | |
8196 | return NULL; | |
8197 | } | |
8198 | ||
8199 | ||
8200 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8201 | PyObject *resultobj; | |
8202 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8203 | wxString result; | |
8204 | PyObject * obj0 = 0 ; | |
8205 | char *kwnames[] = { | |
8206 | (char *) "self", NULL | |
8207 | }; | |
8208 | ||
8209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
8210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8212 | { | |
8213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8214 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8215 | ||
8216 | wxPyEndAllowThreads(__tstate); | |
8217 | if (PyErr_Occurred()) SWIG_fail; | |
8218 | } | |
8219 | { | |
8220 | #if wxUSE_UNICODE | |
8221 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8222 | #else | |
8223 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8224 | #endif | |
8225 | } | |
8226 | return resultobj; | |
8227 | fail: | |
8228 | return NULL; | |
8229 | } | |
8230 | ||
8231 | ||
8232 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8233 | PyObject *resultobj; | |
8234 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8235 | wxString *arg2 = 0 ; | |
8236 | bool temp2 = False ; | |
8237 | PyObject * obj0 = 0 ; | |
8238 | PyObject * obj1 = 0 ; | |
8239 | char *kwnames[] = { | |
8240 | (char *) "self",(char *) "value", NULL | |
8241 | }; | |
8242 | ||
8243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
8244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8246 | { | |
8247 | arg2 = wxString_in_helper(obj1); | |
8248 | if (arg2 == NULL) SWIG_fail; | |
8249 | temp2 = True; | |
8250 | } | |
8251 | { | |
8252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8253 | (arg1)->SetValue((wxString const &)*arg2); | |
8254 | ||
8255 | wxPyEndAllowThreads(__tstate); | |
8256 | if (PyErr_Occurred()) SWIG_fail; | |
8257 | } | |
8258 | Py_INCREF(Py_None); resultobj = Py_None; | |
8259 | { | |
8260 | if (temp2) | |
8261 | delete arg2; | |
8262 | } | |
8263 | return resultobj; | |
8264 | fail: | |
8265 | { | |
8266 | if (temp2) | |
8267 | delete arg2; | |
8268 | } | |
8269 | return NULL; | |
8270 | } | |
8271 | ||
8272 | ||
8273 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8274 | PyObject *resultobj; | |
8275 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8276 | long arg2 ; | |
8277 | long arg3 ; | |
8278 | wxString result; | |
8279 | PyObject * obj0 = 0 ; | |
8280 | PyObject * obj1 = 0 ; | |
8281 | PyObject * obj2 = 0 ; | |
8282 | char *kwnames[] = { | |
8283 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8284 | }; | |
8285 | ||
8286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8289 | arg2 = (long) SWIG_AsLong(obj1); | |
8290 | if (PyErr_Occurred()) SWIG_fail; | |
8291 | arg3 = (long) SWIG_AsLong(obj2); | |
8292 | if (PyErr_Occurred()) SWIG_fail; | |
8293 | { | |
8294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8295 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8296 | ||
8297 | wxPyEndAllowThreads(__tstate); | |
8298 | if (PyErr_Occurred()) SWIG_fail; | |
8299 | } | |
8300 | { | |
8301 | #if wxUSE_UNICODE | |
8302 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8303 | #else | |
8304 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8305 | #endif | |
8306 | } | |
8307 | return resultobj; | |
8308 | fail: | |
8309 | return NULL; | |
8310 | } | |
8311 | ||
8312 | ||
8313 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8314 | PyObject *resultobj; | |
8315 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8316 | long arg2 ; | |
8317 | int result; | |
8318 | PyObject * obj0 = 0 ; | |
8319 | PyObject * obj1 = 0 ; | |
8320 | char *kwnames[] = { | |
8321 | (char *) "self",(char *) "lineNo", NULL | |
8322 | }; | |
8323 | ||
8324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; | |
8325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8327 | arg2 = (long) SWIG_AsLong(obj1); | |
8328 | if (PyErr_Occurred()) SWIG_fail; | |
8329 | { | |
8330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8331 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8332 | ||
8333 | wxPyEndAllowThreads(__tstate); | |
8334 | if (PyErr_Occurred()) SWIG_fail; | |
8335 | } | |
8336 | resultobj = SWIG_FromInt((int)result); | |
8337 | return resultobj; | |
8338 | fail: | |
8339 | return NULL; | |
8340 | } | |
8341 | ||
8342 | ||
8343 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8344 | PyObject *resultobj; | |
8345 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8346 | long arg2 ; | |
8347 | wxString result; | |
8348 | PyObject * obj0 = 0 ; | |
8349 | PyObject * obj1 = 0 ; | |
8350 | char *kwnames[] = { | |
8351 | (char *) "self",(char *) "lineNo", NULL | |
8352 | }; | |
8353 | ||
8354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; | |
8355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8357 | arg2 = (long) SWIG_AsLong(obj1); | |
8358 | if (PyErr_Occurred()) SWIG_fail; | |
8359 | { | |
8360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8361 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8362 | ||
8363 | wxPyEndAllowThreads(__tstate); | |
8364 | if (PyErr_Occurred()) SWIG_fail; | |
8365 | } | |
8366 | { | |
8367 | #if wxUSE_UNICODE | |
8368 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8369 | #else | |
8370 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8371 | #endif | |
8372 | } | |
8373 | return resultobj; | |
8374 | fail: | |
8375 | return NULL; | |
8376 | } | |
8377 | ||
8378 | ||
8379 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8380 | PyObject *resultobj; | |
8381 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8382 | int result; | |
8383 | PyObject * obj0 = 0 ; | |
8384 | char *kwnames[] = { | |
8385 | (char *) "self", NULL | |
8386 | }; | |
8387 | ||
8388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
8389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8391 | { | |
8392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8393 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8394 | ||
8395 | wxPyEndAllowThreads(__tstate); | |
8396 | if (PyErr_Occurred()) SWIG_fail; | |
8397 | } | |
8398 | resultobj = SWIG_FromInt((int)result); | |
8399 | return resultobj; | |
8400 | fail: | |
8401 | return NULL; | |
8402 | } | |
8403 | ||
8404 | ||
8405 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8406 | PyObject *resultobj; | |
8407 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8408 | bool result; | |
8409 | PyObject * obj0 = 0 ; | |
8410 | char *kwnames[] = { | |
8411 | (char *) "self", NULL | |
8412 | }; | |
8413 | ||
8414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
8415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8417 | { | |
8418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8419 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8420 | ||
8421 | wxPyEndAllowThreads(__tstate); | |
8422 | if (PyErr_Occurred()) SWIG_fail; | |
8423 | } | |
8424 | { | |
8425 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8426 | } | |
8427 | return resultobj; | |
8428 | fail: | |
8429 | return NULL; | |
8430 | } | |
8431 | ||
8432 | ||
8433 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8434 | PyObject *resultobj; | |
8435 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8436 | bool result; | |
8437 | PyObject * obj0 = 0 ; | |
8438 | char *kwnames[] = { | |
8439 | (char *) "self", NULL | |
8440 | }; | |
8441 | ||
8442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
8443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8445 | { | |
8446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8447 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8448 | ||
8449 | wxPyEndAllowThreads(__tstate); | |
8450 | if (PyErr_Occurred()) SWIG_fail; | |
8451 | } | |
8452 | { | |
8453 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8454 | } | |
8455 | return resultobj; | |
8456 | fail: | |
8457 | return NULL; | |
8458 | } | |
8459 | ||
8460 | ||
8461 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8462 | PyObject *resultobj; | |
8463 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8464 | bool result; | |
8465 | PyObject * obj0 = 0 ; | |
8466 | char *kwnames[] = { | |
8467 | (char *) "self", NULL | |
8468 | }; | |
8469 | ||
8470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
8471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8473 | { | |
8474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8475 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8476 | ||
8477 | wxPyEndAllowThreads(__tstate); | |
8478 | if (PyErr_Occurred()) SWIG_fail; | |
8479 | } | |
8480 | { | |
8481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8482 | } | |
8483 | return resultobj; | |
8484 | fail: | |
8485 | return NULL; | |
8486 | } | |
8487 | ||
8488 | ||
8489 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8490 | PyObject *resultobj; | |
8491 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8492 | bool result; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | char *kwnames[] = { | |
8495 | (char *) "self", NULL | |
8496 | }; | |
8497 | ||
8498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
8499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
8508 | { | |
8509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8510 | } | |
8511 | return resultobj; | |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
8517 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8518 | PyObject *resultobj; | |
8519 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8520 | long *arg2 = (long *) 0 ; | |
8521 | long *arg3 = (long *) 0 ; | |
8522 | long temp2 ; | |
8523 | long temp3 ; | |
8524 | PyObject * obj0 = 0 ; | |
8525 | char *kwnames[] = { | |
8526 | (char *) "self", NULL | |
8527 | }; | |
8528 | ||
8529 | arg2 = &temp2; | |
8530 | arg3 = &temp3; | |
8531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
8532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8534 | { | |
8535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8536 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8537 | ||
8538 | wxPyEndAllowThreads(__tstate); | |
8539 | if (PyErr_Occurred()) SWIG_fail; | |
8540 | } | |
8541 | Py_INCREF(Py_None); resultobj = Py_None; | |
8542 | { | |
8543 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8544 | resultobj = t_output_helper(resultobj,o); | |
8545 | } | |
8546 | { | |
8547 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8548 | resultobj = t_output_helper(resultobj,o); | |
8549 | } | |
8550 | return resultobj; | |
8551 | fail: | |
8552 | return NULL; | |
8553 | } | |
8554 | ||
8555 | ||
8556 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8557 | PyObject *resultobj; | |
8558 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8559 | wxString result; | |
8560 | PyObject * obj0 = 0 ; | |
8561 | char *kwnames[] = { | |
8562 | (char *) "self", NULL | |
8563 | }; | |
8564 | ||
8565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
8566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8568 | { | |
8569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8570 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8571 | ||
8572 | wxPyEndAllowThreads(__tstate); | |
8573 | if (PyErr_Occurred()) SWIG_fail; | |
8574 | } | |
8575 | { | |
8576 | #if wxUSE_UNICODE | |
8577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8578 | #else | |
8579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8580 | #endif | |
8581 | } | |
8582 | return resultobj; | |
8583 | fail: | |
8584 | return NULL; | |
8585 | } | |
8586 | ||
8587 | ||
8588 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8589 | PyObject *resultobj; | |
8590 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8591 | PyObject * obj0 = 0 ; | |
8592 | char *kwnames[] = { | |
8593 | (char *) "self", NULL | |
8594 | }; | |
8595 | ||
8596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
8597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8599 | { | |
8600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8601 | (arg1)->Clear(); | |
8602 | ||
8603 | wxPyEndAllowThreads(__tstate); | |
8604 | if (PyErr_Occurred()) SWIG_fail; | |
8605 | } | |
8606 | Py_INCREF(Py_None); resultobj = Py_None; | |
8607 | return resultobj; | |
8608 | fail: | |
8609 | return NULL; | |
8610 | } | |
8611 | ||
8612 | ||
8613 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8614 | PyObject *resultobj; | |
8615 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8616 | long arg2 ; | |
8617 | long arg3 ; | |
8618 | wxString *arg4 = 0 ; | |
8619 | bool temp4 = False ; | |
8620 | PyObject * obj0 = 0 ; | |
8621 | PyObject * obj1 = 0 ; | |
8622 | PyObject * obj2 = 0 ; | |
8623 | PyObject * obj3 = 0 ; | |
8624 | char *kwnames[] = { | |
8625 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8626 | }; | |
8627 | ||
8628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
8629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8631 | arg2 = (long) SWIG_AsLong(obj1); | |
8632 | if (PyErr_Occurred()) SWIG_fail; | |
8633 | arg3 = (long) SWIG_AsLong(obj2); | |
8634 | if (PyErr_Occurred()) SWIG_fail; | |
8635 | { | |
8636 | arg4 = wxString_in_helper(obj3); | |
8637 | if (arg4 == NULL) SWIG_fail; | |
8638 | temp4 = True; | |
8639 | } | |
8640 | { | |
8641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8642 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8643 | ||
8644 | wxPyEndAllowThreads(__tstate); | |
8645 | if (PyErr_Occurred()) SWIG_fail; | |
8646 | } | |
8647 | Py_INCREF(Py_None); resultobj = Py_None; | |
8648 | { | |
8649 | if (temp4) | |
8650 | delete arg4; | |
8651 | } | |
8652 | return resultobj; | |
8653 | fail: | |
8654 | { | |
8655 | if (temp4) | |
8656 | delete arg4; | |
8657 | } | |
8658 | return NULL; | |
8659 | } | |
8660 | ||
8661 | ||
8662 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8663 | PyObject *resultobj; | |
8664 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8665 | long arg2 ; | |
8666 | long arg3 ; | |
8667 | PyObject * obj0 = 0 ; | |
8668 | PyObject * obj1 = 0 ; | |
8669 | PyObject * obj2 = 0 ; | |
8670 | char *kwnames[] = { | |
8671 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8672 | }; | |
8673 | ||
8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
8675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8677 | arg2 = (long) SWIG_AsLong(obj1); | |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
8679 | arg3 = (long) SWIG_AsLong(obj2); | |
8680 | if (PyErr_Occurred()) SWIG_fail; | |
8681 | { | |
8682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8683 | (arg1)->Remove(arg2,arg3); | |
8684 | ||
8685 | wxPyEndAllowThreads(__tstate); | |
8686 | if (PyErr_Occurred()) SWIG_fail; | |
8687 | } | |
8688 | Py_INCREF(Py_None); resultobj = Py_None; | |
8689 | return resultobj; | |
8690 | fail: | |
8691 | return NULL; | |
8692 | } | |
8693 | ||
8694 | ||
8695 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8696 | PyObject *resultobj; | |
8697 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8698 | wxString *arg2 = 0 ; | |
8699 | bool result; | |
8700 | bool temp2 = False ; | |
8701 | PyObject * obj0 = 0 ; | |
8702 | PyObject * obj1 = 0 ; | |
8703 | char *kwnames[] = { | |
8704 | (char *) "self",(char *) "file", NULL | |
8705 | }; | |
8706 | ||
8707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
8708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8710 | { | |
8711 | arg2 = wxString_in_helper(obj1); | |
8712 | if (arg2 == NULL) SWIG_fail; | |
8713 | temp2 = True; | |
8714 | } | |
8715 | { | |
8716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8717 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8718 | ||
8719 | wxPyEndAllowThreads(__tstate); | |
8720 | if (PyErr_Occurred()) SWIG_fail; | |
8721 | } | |
8722 | { | |
8723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8724 | } | |
8725 | { | |
8726 | if (temp2) | |
8727 | delete arg2; | |
8728 | } | |
8729 | return resultobj; | |
8730 | fail: | |
8731 | { | |
8732 | if (temp2) | |
8733 | delete arg2; | |
8734 | } | |
8735 | return NULL; | |
8736 | } | |
8737 | ||
8738 | ||
8739 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8740 | PyObject *resultobj; | |
8741 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8742 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8743 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8744 | bool result; | |
8745 | bool temp2 = False ; | |
8746 | PyObject * obj0 = 0 ; | |
8747 | PyObject * obj1 = 0 ; | |
8748 | char *kwnames[] = { | |
8749 | (char *) "self",(char *) "file", NULL | |
8750 | }; | |
8751 | ||
8752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
8753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8755 | if (obj1) { | |
8756 | { | |
8757 | arg2 = wxString_in_helper(obj1); | |
8758 | if (arg2 == NULL) SWIG_fail; | |
8759 | temp2 = True; | |
8760 | } | |
8761 | } | |
8762 | { | |
8763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8764 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8765 | ||
8766 | wxPyEndAllowThreads(__tstate); | |
8767 | if (PyErr_Occurred()) SWIG_fail; | |
8768 | } | |
8769 | { | |
8770 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8771 | } | |
8772 | { | |
8773 | if (temp2) | |
8774 | delete arg2; | |
8775 | } | |
8776 | return resultobj; | |
8777 | fail: | |
8778 | { | |
8779 | if (temp2) | |
8780 | delete arg2; | |
8781 | } | |
8782 | return NULL; | |
8783 | } | |
8784 | ||
8785 | ||
8786 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8787 | PyObject *resultobj; | |
8788 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8789 | PyObject * obj0 = 0 ; | |
8790 | char *kwnames[] = { | |
8791 | (char *) "self", NULL | |
8792 | }; | |
8793 | ||
8794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
8795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8797 | { | |
8798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8799 | (arg1)->MarkDirty(); | |
8800 | ||
8801 | wxPyEndAllowThreads(__tstate); | |
8802 | if (PyErr_Occurred()) SWIG_fail; | |
8803 | } | |
8804 | Py_INCREF(Py_None); resultobj = Py_None; | |
8805 | return resultobj; | |
8806 | fail: | |
8807 | return NULL; | |
8808 | } | |
8809 | ||
8810 | ||
8811 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8812 | PyObject *resultobj; | |
8813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8814 | PyObject * obj0 = 0 ; | |
8815 | char *kwnames[] = { | |
8816 | (char *) "self", NULL | |
8817 | }; | |
8818 | ||
8819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
8820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8822 | { | |
8823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8824 | (arg1)->DiscardEdits(); | |
8825 | ||
8826 | wxPyEndAllowThreads(__tstate); | |
8827 | if (PyErr_Occurred()) SWIG_fail; | |
8828 | } | |
8829 | Py_INCREF(Py_None); resultobj = Py_None; | |
8830 | return resultobj; | |
8831 | fail: | |
8832 | return NULL; | |
8833 | } | |
8834 | ||
8835 | ||
8836 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8837 | PyObject *resultobj; | |
8838 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8839 | unsigned long arg2 ; | |
8840 | PyObject * obj0 = 0 ; | |
8841 | PyObject * obj1 = 0 ; | |
8842 | char *kwnames[] = { | |
8843 | (char *) "self",(char *) "len", NULL | |
8844 | }; | |
8845 | ||
8846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
8847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8849 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8850 | if (PyErr_Occurred()) SWIG_fail; | |
8851 | { | |
8852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8853 | (arg1)->SetMaxLength(arg2); | |
8854 | ||
8855 | wxPyEndAllowThreads(__tstate); | |
8856 | if (PyErr_Occurred()) SWIG_fail; | |
8857 | } | |
8858 | Py_INCREF(Py_None); resultobj = Py_None; | |
8859 | return resultobj; | |
8860 | fail: | |
8861 | return NULL; | |
8862 | } | |
8863 | ||
8864 | ||
8865 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8866 | PyObject *resultobj; | |
8867 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8868 | wxString *arg2 = 0 ; | |
8869 | bool temp2 = False ; | |
8870 | PyObject * obj0 = 0 ; | |
8871 | PyObject * obj1 = 0 ; | |
8872 | char *kwnames[] = { | |
8873 | (char *) "self",(char *) "text", NULL | |
8874 | }; | |
8875 | ||
8876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
8877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8879 | { | |
8880 | arg2 = wxString_in_helper(obj1); | |
8881 | if (arg2 == NULL) SWIG_fail; | |
8882 | temp2 = True; | |
8883 | } | |
8884 | { | |
8885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8886 | (arg1)->WriteText((wxString const &)*arg2); | |
8887 | ||
8888 | wxPyEndAllowThreads(__tstate); | |
8889 | if (PyErr_Occurred()) SWIG_fail; | |
8890 | } | |
8891 | Py_INCREF(Py_None); resultobj = Py_None; | |
8892 | { | |
8893 | if (temp2) | |
8894 | delete arg2; | |
8895 | } | |
8896 | return resultobj; | |
8897 | fail: | |
8898 | { | |
8899 | if (temp2) | |
8900 | delete arg2; | |
8901 | } | |
8902 | return NULL; | |
8903 | } | |
8904 | ||
8905 | ||
8906 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8907 | PyObject *resultobj; | |
8908 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8909 | wxString *arg2 = 0 ; | |
8910 | bool temp2 = False ; | |
8911 | PyObject * obj0 = 0 ; | |
8912 | PyObject * obj1 = 0 ; | |
8913 | char *kwnames[] = { | |
8914 | (char *) "self",(char *) "text", NULL | |
8915 | }; | |
8916 | ||
8917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
8918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8920 | { | |
8921 | arg2 = wxString_in_helper(obj1); | |
8922 | if (arg2 == NULL) SWIG_fail; | |
8923 | temp2 = True; | |
8924 | } | |
8925 | { | |
8926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8927 | (arg1)->AppendText((wxString const &)*arg2); | |
8928 | ||
8929 | wxPyEndAllowThreads(__tstate); | |
8930 | if (PyErr_Occurred()) SWIG_fail; | |
8931 | } | |
8932 | Py_INCREF(Py_None); resultobj = Py_None; | |
8933 | { | |
8934 | if (temp2) | |
8935 | delete arg2; | |
8936 | } | |
8937 | return resultobj; | |
8938 | fail: | |
8939 | { | |
8940 | if (temp2) | |
8941 | delete arg2; | |
8942 | } | |
8943 | return NULL; | |
8944 | } | |
8945 | ||
8946 | ||
8947 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8948 | PyObject *resultobj; | |
8949 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8950 | wxKeyEvent *arg2 = 0 ; | |
8951 | bool result; | |
8952 | PyObject * obj0 = 0 ; | |
8953 | PyObject * obj1 = 0 ; | |
8954 | char *kwnames[] = { | |
8955 | (char *) "self",(char *) "event", NULL | |
8956 | }; | |
8957 | ||
8958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
8959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
8960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8962 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8963 | SWIG_fail; | |
8964 | if (arg2 == NULL) { | |
8965 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
8966 | SWIG_fail; | |
8967 | } | |
8968 | { | |
8969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8970 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8971 | ||
8972 | wxPyEndAllowThreads(__tstate); | |
8973 | if (PyErr_Occurred()) SWIG_fail; | |
8974 | } | |
8975 | { | |
8976 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8977 | } | |
8978 | return resultobj; | |
8979 | fail: | |
8980 | return NULL; | |
8981 | } | |
8982 | ||
8983 | ||
8984 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8985 | PyObject *resultobj; | |
8986 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8987 | long arg2 ; | |
8988 | long arg3 ; | |
8989 | wxTextAttr *arg4 = 0 ; | |
8990 | bool result; | |
8991 | PyObject * obj0 = 0 ; | |
8992 | PyObject * obj1 = 0 ; | |
8993 | PyObject * obj2 = 0 ; | |
8994 | PyObject * obj3 = 0 ; | |
8995 | char *kwnames[] = { | |
8996 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8997 | }; | |
8998 | ||
8999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9002 | arg2 = (long) SWIG_AsLong(obj1); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | arg3 = (long) SWIG_AsLong(obj2); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9007 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9008 | SWIG_fail; | |
9009 | if (arg4 == NULL) { | |
9010 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9011 | SWIG_fail; | |
9012 | } | |
9013 | { | |
9014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9015 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9016 | ||
9017 | wxPyEndAllowThreads(__tstate); | |
9018 | if (PyErr_Occurred()) SWIG_fail; | |
9019 | } | |
9020 | { | |
9021 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9022 | } | |
9023 | return resultobj; | |
9024 | fail: | |
9025 | return NULL; | |
9026 | } | |
9027 | ||
9028 | ||
9029 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9030 | PyObject *resultobj; | |
9031 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9032 | long arg2 ; | |
9033 | wxTextAttr *arg3 = 0 ; | |
9034 | bool result; | |
9035 | PyObject * obj0 = 0 ; | |
9036 | PyObject * obj1 = 0 ; | |
9037 | PyObject * obj2 = 0 ; | |
9038 | char *kwnames[] = { | |
9039 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9040 | }; | |
9041 | ||
9042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9045 | arg2 = (long) SWIG_AsLong(obj1); | |
9046 | if (PyErr_Occurred()) SWIG_fail; | |
9047 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9049 | SWIG_fail; | |
9050 | if (arg3 == NULL) { | |
9051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9052 | SWIG_fail; | |
9053 | } | |
9054 | { | |
9055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9056 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9057 | ||
9058 | wxPyEndAllowThreads(__tstate); | |
9059 | if (PyErr_Occurred()) SWIG_fail; | |
9060 | } | |
9061 | { | |
9062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9063 | } | |
9064 | return resultobj; | |
9065 | fail: | |
9066 | return NULL; | |
9067 | } | |
9068 | ||
9069 | ||
9070 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9071 | PyObject *resultobj; | |
9072 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9073 | wxTextAttr *arg2 = 0 ; | |
9074 | bool result; | |
9075 | PyObject * obj0 = 0 ; | |
9076 | PyObject * obj1 = 0 ; | |
9077 | char *kwnames[] = { | |
9078 | (char *) "self",(char *) "style", NULL | |
9079 | }; | |
9080 | ||
9081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
9082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9084 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9086 | SWIG_fail; | |
9087 | if (arg2 == NULL) { | |
9088 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9089 | SWIG_fail; | |
9090 | } | |
9091 | { | |
9092 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9093 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9094 | ||
9095 | wxPyEndAllowThreads(__tstate); | |
9096 | if (PyErr_Occurred()) SWIG_fail; | |
9097 | } | |
9098 | { | |
9099 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9100 | } | |
9101 | return resultobj; | |
9102 | fail: | |
9103 | return NULL; | |
9104 | } | |
9105 | ||
9106 | ||
9107 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9108 | PyObject *resultobj; | |
9109 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9110 | wxTextAttr *result; | |
9111 | PyObject * obj0 = 0 ; | |
9112 | char *kwnames[] = { | |
9113 | (char *) "self", NULL | |
9114 | }; | |
9115 | ||
9116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
9117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9119 | { | |
9120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9121 | { | |
9122 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9123 | result = (wxTextAttr *) &_result_ref; | |
9124 | } | |
9125 | ||
9126 | wxPyEndAllowThreads(__tstate); | |
9127 | if (PyErr_Occurred()) SWIG_fail; | |
9128 | } | |
9129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); | |
9130 | return resultobj; | |
9131 | fail: | |
9132 | return NULL; | |
9133 | } | |
9134 | ||
9135 | ||
9136 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9137 | PyObject *resultobj; | |
9138 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9139 | long arg2 ; | |
9140 | long arg3 ; | |
9141 | long result; | |
9142 | PyObject * obj0 = 0 ; | |
9143 | PyObject * obj1 = 0 ; | |
9144 | PyObject * obj2 = 0 ; | |
9145 | char *kwnames[] = { | |
9146 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9147 | }; | |
9148 | ||
9149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9152 | arg2 = (long) SWIG_AsLong(obj1); | |
9153 | if (PyErr_Occurred()) SWIG_fail; | |
9154 | arg3 = (long) SWIG_AsLong(obj2); | |
9155 | if (PyErr_Occurred()) SWIG_fail; | |
9156 | { | |
9157 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9158 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9159 | ||
9160 | wxPyEndAllowThreads(__tstate); | |
9161 | if (PyErr_Occurred()) SWIG_fail; | |
9162 | } | |
9163 | resultobj = SWIG_FromLong((long)result); | |
9164 | return resultobj; | |
9165 | fail: | |
9166 | return NULL; | |
9167 | } | |
9168 | ||
9169 | ||
9170 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9171 | PyObject *resultobj; | |
9172 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9173 | long arg2 ; | |
9174 | long *arg3 = (long *) 0 ; | |
9175 | long *arg4 = (long *) 0 ; | |
9176 | long temp3 ; | |
9177 | long temp4 ; | |
9178 | PyObject * obj0 = 0 ; | |
9179 | PyObject * obj1 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self",(char *) "pos", NULL | |
9182 | }; | |
9183 | ||
9184 | arg3 = &temp3; | |
9185 | arg4 = &temp4; | |
9186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; | |
9187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9189 | arg2 = (long) SWIG_AsLong(obj1); | |
9190 | if (PyErr_Occurred()) SWIG_fail; | |
9191 | { | |
9192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9193 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9194 | ||
9195 | wxPyEndAllowThreads(__tstate); | |
9196 | if (PyErr_Occurred()) SWIG_fail; | |
9197 | } | |
9198 | Py_INCREF(Py_None); resultobj = Py_None; | |
9199 | { | |
9200 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9201 | resultobj = t_output_helper(resultobj,o); | |
9202 | } | |
9203 | { | |
9204 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9205 | resultobj = t_output_helper(resultobj,o); | |
9206 | } | |
9207 | return resultobj; | |
9208 | fail: | |
9209 | return NULL; | |
9210 | } | |
9211 | ||
9212 | ||
9213 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9214 | PyObject *resultobj; | |
9215 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9216 | long arg2 ; | |
9217 | PyObject * obj0 = 0 ; | |
9218 | PyObject * obj1 = 0 ; | |
9219 | char *kwnames[] = { | |
9220 | (char *) "self",(char *) "pos", NULL | |
9221 | }; | |
9222 | ||
9223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; | |
9224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9226 | arg2 = (long) SWIG_AsLong(obj1); | |
9227 | if (PyErr_Occurred()) SWIG_fail; | |
9228 | { | |
9229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9230 | (arg1)->ShowPosition(arg2); | |
9231 | ||
9232 | wxPyEndAllowThreads(__tstate); | |
9233 | if (PyErr_Occurred()) SWIG_fail; | |
9234 | } | |
9235 | Py_INCREF(Py_None); resultobj = Py_None; | |
9236 | return resultobj; | |
9237 | fail: | |
9238 | return NULL; | |
9239 | } | |
9240 | ||
9241 | ||
9242 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9243 | PyObject *resultobj; | |
9244 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9245 | wxPoint *arg2 = 0 ; | |
9246 | long *arg3 = (long *) 0 ; | |
9247 | long *arg4 = (long *) 0 ; | |
9248 | int result; | |
9249 | wxPoint temp2 ; | |
9250 | long temp3 ; | |
9251 | long temp4 ; | |
9252 | PyObject * obj0 = 0 ; | |
9253 | PyObject * obj1 = 0 ; | |
9254 | char *kwnames[] = { | |
9255 | (char *) "self",(char *) "pt", NULL | |
9256 | }; | |
9257 | ||
9258 | arg3 = &temp3; | |
9259 | arg4 = &temp4; | |
9260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
9261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9263 | { | |
9264 | arg2 = &temp2; | |
9265 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9266 | } | |
9267 | { | |
9268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9269 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9270 | ||
9271 | wxPyEndAllowThreads(__tstate); | |
9272 | if (PyErr_Occurred()) SWIG_fail; | |
9273 | } | |
9274 | resultobj = SWIG_FromInt((int)result); | |
9275 | { | |
9276 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9277 | resultobj = t_output_helper(resultobj,o); | |
9278 | } | |
9279 | { | |
9280 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9281 | resultobj = t_output_helper(resultobj,o); | |
9282 | } | |
9283 | return resultobj; | |
9284 | fail: | |
9285 | return NULL; | |
9286 | } | |
9287 | ||
9288 | ||
9289 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9290 | PyObject *resultobj; | |
9291 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9292 | PyObject * obj0 = 0 ; | |
9293 | char *kwnames[] = { | |
9294 | (char *) "self", NULL | |
9295 | }; | |
9296 | ||
9297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
9298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9300 | { | |
9301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9302 | (arg1)->Copy(); | |
9303 | ||
9304 | wxPyEndAllowThreads(__tstate); | |
9305 | if (PyErr_Occurred()) SWIG_fail; | |
9306 | } | |
9307 | Py_INCREF(Py_None); resultobj = Py_None; | |
9308 | return resultobj; | |
9309 | fail: | |
9310 | return NULL; | |
9311 | } | |
9312 | ||
9313 | ||
9314 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9315 | PyObject *resultobj; | |
9316 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9317 | PyObject * obj0 = 0 ; | |
9318 | char *kwnames[] = { | |
9319 | (char *) "self", NULL | |
9320 | }; | |
9321 | ||
9322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
9323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9325 | { | |
9326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9327 | (arg1)->Cut(); | |
9328 | ||
9329 | wxPyEndAllowThreads(__tstate); | |
9330 | if (PyErr_Occurred()) SWIG_fail; | |
9331 | } | |
9332 | Py_INCREF(Py_None); resultobj = Py_None; | |
9333 | return resultobj; | |
9334 | fail: | |
9335 | return NULL; | |
9336 | } | |
9337 | ||
9338 | ||
9339 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9340 | PyObject *resultobj; | |
9341 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9342 | PyObject * obj0 = 0 ; | |
9343 | char *kwnames[] = { | |
9344 | (char *) "self", NULL | |
9345 | }; | |
9346 | ||
9347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
9348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9350 | { | |
9351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9352 | (arg1)->Paste(); | |
9353 | ||
9354 | wxPyEndAllowThreads(__tstate); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
9356 | } | |
9357 | Py_INCREF(Py_None); resultobj = Py_None; | |
9358 | return resultobj; | |
9359 | fail: | |
9360 | return NULL; | |
9361 | } | |
9362 | ||
9363 | ||
9364 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9365 | PyObject *resultobj; | |
9366 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9367 | bool result; | |
9368 | PyObject * obj0 = 0 ; | |
9369 | char *kwnames[] = { | |
9370 | (char *) "self", NULL | |
9371 | }; | |
9372 | ||
9373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
9374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9376 | { | |
9377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9378 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9379 | ||
9380 | wxPyEndAllowThreads(__tstate); | |
9381 | if (PyErr_Occurred()) SWIG_fail; | |
9382 | } | |
9383 | { | |
9384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9385 | } | |
9386 | return resultobj; | |
9387 | fail: | |
9388 | return NULL; | |
9389 | } | |
9390 | ||
9391 | ||
9392 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9393 | PyObject *resultobj; | |
9394 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9395 | bool result; | |
9396 | PyObject * obj0 = 0 ; | |
9397 | char *kwnames[] = { | |
9398 | (char *) "self", NULL | |
9399 | }; | |
9400 | ||
9401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
9402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9404 | { | |
9405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9406 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9407 | ||
9408 | wxPyEndAllowThreads(__tstate); | |
9409 | if (PyErr_Occurred()) SWIG_fail; | |
9410 | } | |
9411 | { | |
9412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9413 | } | |
9414 | return resultobj; | |
9415 | fail: | |
9416 | return NULL; | |
9417 | } | |
9418 | ||
9419 | ||
9420 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9421 | PyObject *resultobj; | |
9422 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9423 | bool result; | |
9424 | PyObject * obj0 = 0 ; | |
9425 | char *kwnames[] = { | |
9426 | (char *) "self", NULL | |
9427 | }; | |
9428 | ||
9429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
9430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9432 | { | |
9433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9434 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9435 | ||
9436 | wxPyEndAllowThreads(__tstate); | |
9437 | if (PyErr_Occurred()) SWIG_fail; | |
9438 | } | |
9439 | { | |
9440 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9441 | } | |
9442 | return resultobj; | |
9443 | fail: | |
9444 | return NULL; | |
9445 | } | |
9446 | ||
9447 | ||
9448 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9449 | PyObject *resultobj; | |
9450 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9451 | PyObject * obj0 = 0 ; | |
9452 | char *kwnames[] = { | |
9453 | (char *) "self", NULL | |
9454 | }; | |
9455 | ||
9456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
9457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9459 | { | |
9460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9461 | (arg1)->Undo(); | |
9462 | ||
9463 | wxPyEndAllowThreads(__tstate); | |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | } | |
9466 | Py_INCREF(Py_None); resultobj = Py_None; | |
9467 | return resultobj; | |
9468 | fail: | |
9469 | return NULL; | |
9470 | } | |
9471 | ||
9472 | ||
9473 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9474 | PyObject *resultobj; | |
9475 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9476 | PyObject * obj0 = 0 ; | |
9477 | char *kwnames[] = { | |
9478 | (char *) "self", NULL | |
9479 | }; | |
9480 | ||
9481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
9482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9484 | { | |
9485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9486 | (arg1)->Redo(); | |
9487 | ||
9488 | wxPyEndAllowThreads(__tstate); | |
9489 | if (PyErr_Occurred()) SWIG_fail; | |
9490 | } | |
9491 | Py_INCREF(Py_None); resultobj = Py_None; | |
9492 | return resultobj; | |
9493 | fail: | |
9494 | return NULL; | |
9495 | } | |
9496 | ||
9497 | ||
9498 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9499 | PyObject *resultobj; | |
9500 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9501 | bool result; | |
9502 | PyObject * obj0 = 0 ; | |
9503 | char *kwnames[] = { | |
9504 | (char *) "self", NULL | |
9505 | }; | |
9506 | ||
9507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
9508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9510 | { | |
9511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9512 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9513 | ||
9514 | wxPyEndAllowThreads(__tstate); | |
9515 | if (PyErr_Occurred()) SWIG_fail; | |
9516 | } | |
9517 | { | |
9518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9519 | } | |
9520 | return resultobj; | |
9521 | fail: | |
9522 | return NULL; | |
9523 | } | |
9524 | ||
9525 | ||
9526 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9527 | PyObject *resultobj; | |
9528 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9529 | bool result; | |
9530 | PyObject * obj0 = 0 ; | |
9531 | char *kwnames[] = { | |
9532 | (char *) "self", NULL | |
9533 | }; | |
9534 | ||
9535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
9536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9538 | { | |
9539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9540 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9541 | ||
9542 | wxPyEndAllowThreads(__tstate); | |
9543 | if (PyErr_Occurred()) SWIG_fail; | |
9544 | } | |
9545 | { | |
9546 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9547 | } | |
9548 | return resultobj; | |
9549 | fail: | |
9550 | return NULL; | |
9551 | } | |
9552 | ||
9553 | ||
9554 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9555 | PyObject *resultobj; | |
9556 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9557 | long arg2 ; | |
9558 | PyObject * obj0 = 0 ; | |
9559 | PyObject * obj1 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "self",(char *) "pos", NULL | |
9562 | }; | |
9563 | ||
9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; | |
9565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9567 | arg2 = (long) SWIG_AsLong(obj1); | |
9568 | if (PyErr_Occurred()) SWIG_fail; | |
9569 | { | |
9570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9571 | (arg1)->SetInsertionPoint(arg2); | |
9572 | ||
9573 | wxPyEndAllowThreads(__tstate); | |
9574 | if (PyErr_Occurred()) SWIG_fail; | |
9575 | } | |
9576 | Py_INCREF(Py_None); resultobj = Py_None; | |
9577 | return resultobj; | |
9578 | fail: | |
9579 | return NULL; | |
9580 | } | |
9581 | ||
9582 | ||
9583 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9584 | PyObject *resultobj; | |
9585 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9586 | PyObject * obj0 = 0 ; | |
9587 | char *kwnames[] = { | |
9588 | (char *) "self", NULL | |
9589 | }; | |
9590 | ||
9591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
9592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9594 | { | |
9595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9596 | (arg1)->SetInsertionPointEnd(); | |
9597 | ||
9598 | wxPyEndAllowThreads(__tstate); | |
9599 | if (PyErr_Occurred()) SWIG_fail; | |
9600 | } | |
9601 | Py_INCREF(Py_None); resultobj = Py_None; | |
9602 | return resultobj; | |
9603 | fail: | |
9604 | return NULL; | |
9605 | } | |
9606 | ||
9607 | ||
9608 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9609 | PyObject *resultobj; | |
9610 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9611 | long result; | |
9612 | PyObject * obj0 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "self", NULL | |
9615 | }; | |
9616 | ||
9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
9618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9620 | { | |
9621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9622 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9623 | ||
9624 | wxPyEndAllowThreads(__tstate); | |
9625 | if (PyErr_Occurred()) SWIG_fail; | |
9626 | } | |
9627 | resultobj = SWIG_FromLong((long)result); | |
9628 | return resultobj; | |
9629 | fail: | |
9630 | return NULL; | |
9631 | } | |
9632 | ||
9633 | ||
9634 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9635 | PyObject *resultobj; | |
9636 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9637 | long result; | |
9638 | PyObject * obj0 = 0 ; | |
9639 | char *kwnames[] = { | |
9640 | (char *) "self", NULL | |
9641 | }; | |
9642 | ||
9643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
9644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9646 | { | |
9647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9648 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9649 | ||
9650 | wxPyEndAllowThreads(__tstate); | |
9651 | if (PyErr_Occurred()) SWIG_fail; | |
9652 | } | |
9653 | resultobj = SWIG_FromLong((long)result); | |
9654 | return resultobj; | |
9655 | fail: | |
9656 | return NULL; | |
9657 | } | |
9658 | ||
9659 | ||
9660 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9661 | PyObject *resultobj; | |
9662 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9663 | long arg2 ; | |
9664 | long arg3 ; | |
9665 | PyObject * obj0 = 0 ; | |
9666 | PyObject * obj1 = 0 ; | |
9667 | PyObject * obj2 = 0 ; | |
9668 | char *kwnames[] = { | |
9669 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9670 | }; | |
9671 | ||
9672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9675 | arg2 = (long) SWIG_AsLong(obj1); | |
9676 | if (PyErr_Occurred()) SWIG_fail; | |
9677 | arg3 = (long) SWIG_AsLong(obj2); | |
9678 | if (PyErr_Occurred()) SWIG_fail; | |
9679 | { | |
9680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9681 | (arg1)->SetSelection(arg2,arg3); | |
9682 | ||
9683 | wxPyEndAllowThreads(__tstate); | |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
9685 | } | |
9686 | Py_INCREF(Py_None); resultobj = Py_None; | |
9687 | return resultobj; | |
9688 | fail: | |
9689 | return NULL; | |
9690 | } | |
9691 | ||
9692 | ||
9693 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9694 | PyObject *resultobj; | |
9695 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9696 | PyObject * obj0 = 0 ; | |
9697 | char *kwnames[] = { | |
9698 | (char *) "self", NULL | |
9699 | }; | |
9700 | ||
9701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
9702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9704 | { | |
9705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9706 | (arg1)->SelectAll(); | |
9707 | ||
9708 | wxPyEndAllowThreads(__tstate); | |
9709 | if (PyErr_Occurred()) SWIG_fail; | |
9710 | } | |
9711 | Py_INCREF(Py_None); resultobj = Py_None; | |
9712 | return resultobj; | |
9713 | fail: | |
9714 | return NULL; | |
9715 | } | |
9716 | ||
9717 | ||
9718 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9719 | PyObject *resultobj; | |
9720 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9721 | bool arg2 ; | |
9722 | PyObject * obj0 = 0 ; | |
9723 | PyObject * obj1 = 0 ; | |
9724 | char *kwnames[] = { | |
9725 | (char *) "self",(char *) "editable", NULL | |
9726 | }; | |
9727 | ||
9728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
9729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9731 | arg2 = (bool) SWIG_AsBool(obj1); | |
9732 | if (PyErr_Occurred()) SWIG_fail; | |
9733 | { | |
9734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9735 | (arg1)->SetEditable(arg2); | |
9736 | ||
9737 | wxPyEndAllowThreads(__tstate); | |
9738 | if (PyErr_Occurred()) SWIG_fail; | |
9739 | } | |
9740 | Py_INCREF(Py_None); resultobj = Py_None; | |
9741 | return resultobj; | |
9742 | fail: | |
9743 | return NULL; | |
9744 | } | |
9745 | ||
9746 | ||
9747 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9748 | PyObject *resultobj; | |
9749 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9750 | bool arg2 = (bool) True ; | |
9751 | bool result; | |
9752 | PyObject * obj0 = 0 ; | |
9753 | PyObject * obj1 = 0 ; | |
9754 | char *kwnames[] = { | |
9755 | (char *) "self",(char *) "show", NULL | |
9756 | }; | |
9757 | ||
9758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
9759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9761 | if (obj1) { | |
9762 | arg2 = (bool) SWIG_AsBool(obj1); | |
9763 | if (PyErr_Occurred()) SWIG_fail; | |
9764 | } | |
9765 | { | |
9766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9767 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9768 | ||
9769 | wxPyEndAllowThreads(__tstate); | |
9770 | if (PyErr_Occurred()) SWIG_fail; | |
9771 | } | |
9772 | { | |
9773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9774 | } | |
9775 | return resultobj; | |
9776 | fail: | |
9777 | return NULL; | |
9778 | } | |
9779 | ||
9780 | ||
9781 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9782 | PyObject *resultobj; | |
9783 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9784 | bool result; | |
9785 | PyObject * obj0 = 0 ; | |
9786 | char *kwnames[] = { | |
9787 | (char *) "self", NULL | |
9788 | }; | |
9789 | ||
9790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
9791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9793 | { | |
9794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9795 | result = (bool)(arg1)->HideNativeCaret(); | |
9796 | ||
9797 | wxPyEndAllowThreads(__tstate); | |
9798 | if (PyErr_Occurred()) SWIG_fail; | |
9799 | } | |
9800 | { | |
9801 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9802 | } | |
9803 | return resultobj; | |
9804 | fail: | |
9805 | return NULL; | |
9806 | } | |
9807 | ||
9808 | ||
9809 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9810 | PyObject *resultobj; | |
9811 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9812 | wxString *arg2 = 0 ; | |
9813 | bool temp2 = False ; | |
9814 | PyObject * obj0 = 0 ; | |
9815 | PyObject * obj1 = 0 ; | |
9816 | char *kwnames[] = { | |
9817 | (char *) "self",(char *) "text", NULL | |
9818 | }; | |
9819 | ||
9820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
9821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9823 | { | |
9824 | arg2 = wxString_in_helper(obj1); | |
9825 | if (arg2 == NULL) SWIG_fail; | |
9826 | temp2 = True; | |
9827 | } | |
9828 | { | |
9829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9830 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9831 | ||
9832 | wxPyEndAllowThreads(__tstate); | |
9833 | if (PyErr_Occurred()) SWIG_fail; | |
9834 | } | |
9835 | Py_INCREF(Py_None); resultobj = Py_None; | |
9836 | { | |
9837 | if (temp2) | |
9838 | delete arg2; | |
9839 | } | |
9840 | return resultobj; | |
9841 | fail: | |
9842 | { | |
9843 | if (temp2) | |
9844 | delete arg2; | |
9845 | } | |
9846 | return NULL; | |
9847 | } | |
9848 | ||
9849 | ||
9850 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9851 | PyObject *resultobj; | |
9852 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9853 | long arg2 ; | |
9854 | long arg3 ; | |
9855 | wxString result; | |
9856 | PyObject * obj0 = 0 ; | |
9857 | PyObject * obj1 = 0 ; | |
9858 | PyObject * obj2 = 0 ; | |
9859 | char *kwnames[] = { | |
9860 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9861 | }; | |
9862 | ||
9863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
9864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9866 | arg2 = (long) SWIG_AsLong(obj1); | |
9867 | if (PyErr_Occurred()) SWIG_fail; | |
9868 | arg3 = (long) SWIG_AsLong(obj2); | |
9869 | if (PyErr_Occurred()) SWIG_fail; | |
9870 | { | |
9871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9872 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9873 | ||
9874 | wxPyEndAllowThreads(__tstate); | |
9875 | if (PyErr_Occurred()) SWIG_fail; | |
9876 | } | |
9877 | { | |
9878 | #if wxUSE_UNICODE | |
9879 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9880 | #else | |
9881 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9882 | #endif | |
9883 | } | |
9884 | return resultobj; | |
9885 | fail: | |
9886 | return NULL; | |
9887 | } | |
9888 | ||
9889 | ||
f20a2e1f RD |
9890 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9891 | PyObject *resultobj; | |
9892 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9893 | wxVisualAttributes result; | |
9894 | PyObject * obj0 = 0 ; | |
9895 | char *kwnames[] = { | |
9896 | (char *) "variant", NULL | |
9897 | }; | |
9898 | ||
9899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9900 | if (obj0) { | |
9901 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9902 | if (PyErr_Occurred()) SWIG_fail; | |
9903 | } | |
9904 | { | |
19272049 | 9905 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
9906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9907 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9908 | ||
9909 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 9910 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
9911 | } |
9912 | { | |
9913 | wxVisualAttributes * resultptr; | |
9914 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9916 | } | |
9917 | return resultobj; | |
9918 | fail: | |
9919 | return NULL; | |
9920 | } | |
9921 | ||
9922 | ||
d55e5bfc RD |
9923 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9924 | PyObject *obj; | |
9925 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9926 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9927 | Py_INCREF(obj); | |
9928 | return Py_BuildValue((char *)""); | |
9929 | } | |
9930 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9931 | PyObject *resultobj; | |
9932 | int arg1 ; | |
9933 | wxMouseEvent *arg2 = 0 ; | |
9934 | long arg3 ; | |
9935 | long arg4 ; | |
9936 | wxTextUrlEvent *result; | |
9937 | PyObject * obj0 = 0 ; | |
9938 | PyObject * obj1 = 0 ; | |
9939 | PyObject * obj2 = 0 ; | |
9940 | PyObject * obj3 = 0 ; | |
9941 | char *kwnames[] = { | |
9942 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9943 | }; | |
9944 | ||
9945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
9946 | arg1 = (int) SWIG_AsInt(obj0); | |
9947 | if (PyErr_Occurred()) SWIG_fail; | |
9948 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9949 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9950 | SWIG_fail; | |
9951 | if (arg2 == NULL) { | |
9952 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
9953 | SWIG_fail; | |
9954 | } | |
9955 | arg3 = (long) SWIG_AsLong(obj2); | |
9956 | if (PyErr_Occurred()) SWIG_fail; | |
9957 | arg4 = (long) SWIG_AsLong(obj3); | |
9958 | if (PyErr_Occurred()) SWIG_fail; | |
9959 | { | |
9960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9961 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9962 | ||
9963 | wxPyEndAllowThreads(__tstate); | |
9964 | if (PyErr_Occurred()) SWIG_fail; | |
9965 | } | |
9966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); | |
9967 | return resultobj; | |
9968 | fail: | |
9969 | return NULL; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9974 | PyObject *resultobj; | |
9975 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9976 | wxMouseEvent *result; | |
9977 | PyObject * obj0 = 0 ; | |
9978 | char *kwnames[] = { | |
9979 | (char *) "self", NULL | |
9980 | }; | |
9981 | ||
9982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
9983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
9984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9985 | { | |
9986 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9987 | { | |
9988 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9989 | result = (wxMouseEvent *) &_result_ref; | |
9990 | } | |
9991 | ||
9992 | wxPyEndAllowThreads(__tstate); | |
9993 | if (PyErr_Occurred()) SWIG_fail; | |
9994 | } | |
9995 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); | |
9996 | return resultobj; | |
9997 | fail: | |
9998 | return NULL; | |
9999 | } | |
10000 | ||
10001 | ||
10002 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10003 | PyObject *resultobj; | |
10004 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10005 | long result; | |
10006 | PyObject * obj0 = 0 ; | |
10007 | char *kwnames[] = { | |
10008 | (char *) "self", NULL | |
10009 | }; | |
10010 | ||
10011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
10012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10014 | { | |
10015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10016 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
10017 | ||
10018 | wxPyEndAllowThreads(__tstate); | |
10019 | if (PyErr_Occurred()) SWIG_fail; | |
10020 | } | |
10021 | resultobj = SWIG_FromLong((long)result); | |
10022 | return resultobj; | |
10023 | fail: | |
10024 | return NULL; | |
10025 | } | |
10026 | ||
10027 | ||
10028 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10029 | PyObject *resultobj; | |
10030 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10031 | long result; | |
10032 | PyObject * obj0 = 0 ; | |
10033 | char *kwnames[] = { | |
10034 | (char *) "self", NULL | |
10035 | }; | |
10036 | ||
10037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
10038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, | |
10039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10040 | { | |
10041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10042 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10043 | ||
10044 | wxPyEndAllowThreads(__tstate); | |
10045 | if (PyErr_Occurred()) SWIG_fail; | |
10046 | } | |
10047 | resultobj = SWIG_FromLong((long)result); | |
10048 | return resultobj; | |
10049 | fail: | |
10050 | return NULL; | |
10051 | } | |
10052 | ||
10053 | ||
10054 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
10055 | PyObject *obj; | |
10056 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10057 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10058 | Py_INCREF(obj); | |
10059 | return Py_BuildValue((char *)""); | |
10060 | } | |
10061 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { | |
10062 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
10063 | return 1; | |
10064 | } | |
10065 | ||
10066 | ||
10067 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10068 | PyObject *pyobj; | |
10069 | ||
10070 | { | |
10071 | #if wxUSE_UNICODE | |
10072 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10073 | #else | |
10074 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10075 | #endif | |
10076 | } | |
10077 | return pyobj; | |
10078 | } | |
10079 | ||
10080 | ||
10081 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10082 | PyObject *resultobj; | |
10083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10084 | int arg2 = (int) -1 ; | |
10085 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10086 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10087 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10088 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10089 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10090 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10091 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10092 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10093 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10094 | wxScrollBar *result; | |
10095 | wxPoint temp3 ; | |
10096 | wxSize temp4 ; | |
10097 | bool temp7 = False ; | |
10098 | PyObject * obj0 = 0 ; | |
10099 | PyObject * obj1 = 0 ; | |
10100 | PyObject * obj2 = 0 ; | |
10101 | PyObject * obj3 = 0 ; | |
10102 | PyObject * obj4 = 0 ; | |
10103 | PyObject * obj5 = 0 ; | |
10104 | PyObject * obj6 = 0 ; | |
10105 | char *kwnames[] = { | |
10106 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10107 | }; | |
10108 | ||
10109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10112 | if (obj1) { | |
10113 | arg2 = (int) SWIG_AsInt(obj1); | |
10114 | if (PyErr_Occurred()) SWIG_fail; | |
10115 | } | |
10116 | if (obj2) { | |
10117 | { | |
10118 | arg3 = &temp3; | |
10119 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10120 | } | |
10121 | } | |
10122 | if (obj3) { | |
10123 | { | |
10124 | arg4 = &temp4; | |
10125 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10126 | } | |
10127 | } | |
10128 | if (obj4) { | |
10129 | arg5 = (long) SWIG_AsLong(obj4); | |
10130 | if (PyErr_Occurred()) SWIG_fail; | |
10131 | } | |
10132 | if (obj5) { | |
10133 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
10134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10135 | SWIG_fail; | |
10136 | if (arg6 == NULL) { | |
10137 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10138 | SWIG_fail; | |
10139 | } | |
10140 | } | |
10141 | if (obj6) { | |
10142 | { | |
10143 | arg7 = wxString_in_helper(obj6); | |
10144 | if (arg7 == NULL) SWIG_fail; | |
10145 | temp7 = True; | |
10146 | } | |
10147 | } | |
10148 | { | |
0439c23b | 10149 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10151 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10152 | ||
10153 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10154 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10155 | } |
10156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10157 | { | |
10158 | if (temp7) | |
10159 | delete arg7; | |
10160 | } | |
10161 | return resultobj; | |
10162 | fail: | |
10163 | { | |
10164 | if (temp7) | |
10165 | delete arg7; | |
10166 | } | |
10167 | return NULL; | |
10168 | } | |
10169 | ||
10170 | ||
10171 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10172 | PyObject *resultobj; | |
10173 | wxScrollBar *result; | |
10174 | char *kwnames[] = { | |
10175 | NULL | |
10176 | }; | |
10177 | ||
10178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10179 | { | |
0439c23b | 10180 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10182 | result = (wxScrollBar *)new wxScrollBar(); | |
10183 | ||
10184 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10185 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10186 | } |
10187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); | |
10188 | return resultobj; | |
10189 | fail: | |
10190 | return NULL; | |
10191 | } | |
10192 | ||
10193 | ||
10194 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10195 | PyObject *resultobj; | |
10196 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10198 | int arg3 = (int) -1 ; | |
10199 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10200 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10201 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10202 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10203 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10204 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10205 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10206 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10207 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10208 | bool result; | |
10209 | wxPoint temp4 ; | |
10210 | wxSize temp5 ; | |
10211 | bool temp8 = False ; | |
10212 | PyObject * obj0 = 0 ; | |
10213 | PyObject * obj1 = 0 ; | |
10214 | PyObject * obj2 = 0 ; | |
10215 | PyObject * obj3 = 0 ; | |
10216 | PyObject * obj4 = 0 ; | |
10217 | PyObject * obj5 = 0 ; | |
10218 | PyObject * obj6 = 0 ; | |
10219 | PyObject * obj7 = 0 ; | |
10220 | char *kwnames[] = { | |
10221 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10222 | }; | |
10223 | ||
10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
10225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10229 | if (obj2) { | |
10230 | arg3 = (int) SWIG_AsInt(obj2); | |
10231 | if (PyErr_Occurred()) SWIG_fail; | |
10232 | } | |
10233 | if (obj3) { | |
10234 | { | |
10235 | arg4 = &temp4; | |
10236 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10237 | } | |
10238 | } | |
10239 | if (obj4) { | |
10240 | { | |
10241 | arg5 = &temp5; | |
10242 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10243 | } | |
10244 | } | |
10245 | if (obj5) { | |
10246 | arg6 = (long) SWIG_AsLong(obj5); | |
10247 | if (PyErr_Occurred()) SWIG_fail; | |
10248 | } | |
10249 | if (obj6) { | |
10250 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
10251 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10252 | SWIG_fail; | |
10253 | if (arg7 == NULL) { | |
10254 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
10255 | SWIG_fail; | |
10256 | } | |
10257 | } | |
10258 | if (obj7) { | |
10259 | { | |
10260 | arg8 = wxString_in_helper(obj7); | |
10261 | if (arg8 == NULL) SWIG_fail; | |
10262 | temp8 = True; | |
10263 | } | |
10264 | } | |
10265 | { | |
10266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10267 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10268 | ||
10269 | wxPyEndAllowThreads(__tstate); | |
10270 | if (PyErr_Occurred()) SWIG_fail; | |
10271 | } | |
10272 | { | |
10273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10274 | } | |
10275 | { | |
10276 | if (temp8) | |
10277 | delete arg8; | |
10278 | } | |
10279 | return resultobj; | |
10280 | fail: | |
10281 | { | |
10282 | if (temp8) | |
10283 | delete arg8; | |
10284 | } | |
10285 | return NULL; | |
10286 | } | |
10287 | ||
10288 | ||
10289 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10290 | PyObject *resultobj; | |
10291 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10292 | int result; | |
10293 | PyObject * obj0 = 0 ; | |
10294 | char *kwnames[] = { | |
10295 | (char *) "self", NULL | |
10296 | }; | |
10297 | ||
10298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
10299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10301 | { | |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10304 | ||
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | resultobj = SWIG_FromInt((int)result); | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
10315 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10316 | PyObject *resultobj; | |
10317 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10318 | int result; | |
10319 | PyObject * obj0 = 0 ; | |
10320 | char *kwnames[] = { | |
10321 | (char *) "self", NULL | |
10322 | }; | |
10323 | ||
10324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
10325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10327 | { | |
10328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10329 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10330 | ||
10331 | wxPyEndAllowThreads(__tstate); | |
10332 | if (PyErr_Occurred()) SWIG_fail; | |
10333 | } | |
10334 | resultobj = SWIG_FromInt((int)result); | |
10335 | return resultobj; | |
10336 | fail: | |
10337 | return NULL; | |
10338 | } | |
10339 | ||
10340 | ||
10341 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10342 | PyObject *resultobj; | |
10343 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10344 | int result; | |
10345 | PyObject * obj0 = 0 ; | |
10346 | char *kwnames[] = { | |
10347 | (char *) "self", NULL | |
10348 | }; | |
10349 | ||
10350 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
10351 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10352 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10353 | { | |
10354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10355 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10356 | ||
10357 | wxPyEndAllowThreads(__tstate); | |
10358 | if (PyErr_Occurred()) SWIG_fail; | |
10359 | } | |
10360 | resultobj = SWIG_FromInt((int)result); | |
10361 | return resultobj; | |
10362 | fail: | |
10363 | return NULL; | |
10364 | } | |
10365 | ||
10366 | ||
10367 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10368 | PyObject *resultobj; | |
10369 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10370 | int result; | |
10371 | PyObject * obj0 = 0 ; | |
10372 | char *kwnames[] = { | |
10373 | (char *) "self", NULL | |
10374 | }; | |
10375 | ||
10376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
10377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10379 | { | |
10380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10381 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10382 | ||
10383 | wxPyEndAllowThreads(__tstate); | |
10384 | if (PyErr_Occurred()) SWIG_fail; | |
10385 | } | |
10386 | resultobj = SWIG_FromInt((int)result); | |
10387 | return resultobj; | |
10388 | fail: | |
10389 | return NULL; | |
10390 | } | |
10391 | ||
10392 | ||
10393 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10394 | PyObject *resultobj; | |
10395 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10396 | bool result; | |
10397 | PyObject * obj0 = 0 ; | |
10398 | char *kwnames[] = { | |
10399 | (char *) "self", NULL | |
10400 | }; | |
10401 | ||
10402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
10403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10405 | { | |
10406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10407 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10408 | ||
10409 | wxPyEndAllowThreads(__tstate); | |
10410 | if (PyErr_Occurred()) SWIG_fail; | |
10411 | } | |
10412 | { | |
10413 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10414 | } | |
10415 | return resultobj; | |
10416 | fail: | |
10417 | return NULL; | |
10418 | } | |
10419 | ||
10420 | ||
10421 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10422 | PyObject *resultobj; | |
10423 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10424 | int arg2 ; | |
10425 | PyObject * obj0 = 0 ; | |
10426 | PyObject * obj1 = 0 ; | |
10427 | char *kwnames[] = { | |
10428 | (char *) "self",(char *) "viewStart", NULL | |
10429 | }; | |
10430 | ||
10431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; | |
10432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10434 | arg2 = (int) SWIG_AsInt(obj1); | |
10435 | if (PyErr_Occurred()) SWIG_fail; | |
10436 | { | |
10437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10438 | (arg1)->SetThumbPosition(arg2); | |
10439 | ||
10440 | wxPyEndAllowThreads(__tstate); | |
10441 | if (PyErr_Occurred()) SWIG_fail; | |
10442 | } | |
10443 | Py_INCREF(Py_None); resultobj = Py_None; | |
10444 | return resultobj; | |
10445 | fail: | |
10446 | return NULL; | |
10447 | } | |
10448 | ||
10449 | ||
10450 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10451 | PyObject *resultobj; | |
10452 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10453 | int arg2 ; | |
10454 | int arg3 ; | |
10455 | int arg4 ; | |
10456 | int arg5 ; | |
10457 | bool arg6 = (bool) True ; | |
10458 | PyObject * obj0 = 0 ; | |
10459 | PyObject * obj1 = 0 ; | |
10460 | PyObject * obj2 = 0 ; | |
10461 | PyObject * obj3 = 0 ; | |
10462 | PyObject * obj4 = 0 ; | |
10463 | PyObject * obj5 = 0 ; | |
10464 | char *kwnames[] = { | |
10465 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10466 | }; | |
10467 | ||
10468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, | |
10470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10471 | arg2 = (int) SWIG_AsInt(obj1); | |
10472 | if (PyErr_Occurred()) SWIG_fail; | |
10473 | arg3 = (int) SWIG_AsInt(obj2); | |
10474 | if (PyErr_Occurred()) SWIG_fail; | |
10475 | arg4 = (int) SWIG_AsInt(obj3); | |
10476 | if (PyErr_Occurred()) SWIG_fail; | |
10477 | arg5 = (int) SWIG_AsInt(obj4); | |
10478 | if (PyErr_Occurred()) SWIG_fail; | |
10479 | if (obj5) { | |
10480 | arg6 = (bool) SWIG_AsBool(obj5); | |
10481 | if (PyErr_Occurred()) SWIG_fail; | |
10482 | } | |
10483 | { | |
10484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10485 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
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 | ||
f20a2e1f RD |
10497 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10498 | PyObject *resultobj; | |
10499 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10500 | wxVisualAttributes result; | |
10501 | PyObject * obj0 = 0 ; | |
10502 | char *kwnames[] = { | |
10503 | (char *) "variant", NULL | |
10504 | }; | |
10505 | ||
10506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10507 | if (obj0) { | |
10508 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10509 | if (PyErr_Occurred()) SWIG_fail; | |
10510 | } | |
10511 | { | |
19272049 | 10512 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
10513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10514 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10515 | ||
10516 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10517 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
10518 | } |
10519 | { | |
10520 | wxVisualAttributes * resultptr; | |
10521 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10522 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10523 | } | |
10524 | return resultobj; | |
10525 | fail: | |
10526 | return NULL; | |
10527 | } | |
10528 | ||
10529 | ||
d55e5bfc RD |
10530 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10531 | PyObject *obj; | |
10532 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10533 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10534 | Py_INCREF(obj); | |
10535 | return Py_BuildValue((char *)""); | |
10536 | } | |
10537 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { | |
10538 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10539 | return 1; | |
10540 | } | |
10541 | ||
10542 | ||
10543 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10544 | PyObject *pyobj; | |
10545 | ||
10546 | { | |
10547 | #if wxUSE_UNICODE | |
10548 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10549 | #else | |
10550 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10551 | #endif | |
10552 | } | |
10553 | return pyobj; | |
10554 | } | |
10555 | ||
10556 | ||
10557 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10558 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10559 | return 1; | |
10560 | } | |
10561 | ||
10562 | ||
10563 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10564 | PyObject *pyobj; | |
10565 | ||
10566 | { | |
10567 | #if wxUSE_UNICODE | |
10568 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10569 | #else | |
10570 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10571 | #endif | |
10572 | } | |
10573 | return pyobj; | |
10574 | } | |
10575 | ||
10576 | ||
10577 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10578 | PyObject *resultobj; | |
10579 | wxWindow *arg1 = (wxWindow *) 0 ; | |
10580 | int arg2 = (int) -1 ; | |
10581 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
10582 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10583 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10584 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10585 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10586 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10587 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10588 | wxSpinButton *result; | |
10589 | wxPoint temp3 ; | |
10590 | wxSize temp4 ; | |
10591 | bool temp6 = False ; | |
10592 | PyObject * obj0 = 0 ; | |
10593 | PyObject * obj1 = 0 ; | |
10594 | PyObject * obj2 = 0 ; | |
10595 | PyObject * obj3 = 0 ; | |
10596 | PyObject * obj4 = 0 ; | |
10597 | PyObject * obj5 = 0 ; | |
10598 | char *kwnames[] = { | |
10599 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10600 | }; | |
10601 | ||
10602 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
10603 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
10604 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10605 | if (obj1) { | |
10606 | arg2 = (int) SWIG_AsInt(obj1); | |
10607 | if (PyErr_Occurred()) SWIG_fail; | |
10608 | } | |
10609 | if (obj2) { | |
10610 | { | |
10611 | arg3 = &temp3; | |
10612 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10613 | } | |
10614 | } | |
10615 | if (obj3) { | |
10616 | { | |
10617 | arg4 = &temp4; | |
10618 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10619 | } | |
10620 | } | |
10621 | if (obj4) { | |
10622 | arg5 = (long) SWIG_AsLong(obj4); | |
10623 | if (PyErr_Occurred()) SWIG_fail; | |
10624 | } | |
10625 | if (obj5) { | |
10626 | { | |
10627 | arg6 = wxString_in_helper(obj5); | |
10628 | if (arg6 == NULL) SWIG_fail; | |
10629 | temp6 = True; | |
10630 | } | |
10631 | } | |
10632 | { | |
0439c23b | 10633 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10635 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10636 | ||
10637 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10638 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10639 | } |
10640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10641 | { | |
10642 | if (temp6) | |
10643 | delete arg6; | |
10644 | } | |
10645 | return resultobj; | |
10646 | fail: | |
10647 | { | |
10648 | if (temp6) | |
10649 | delete arg6; | |
10650 | } | |
10651 | return NULL; | |
10652 | } | |
10653 | ||
10654 | ||
10655 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10656 | PyObject *resultobj; | |
10657 | wxSpinButton *result; | |
10658 | char *kwnames[] = { | |
10659 | NULL | |
10660 | }; | |
10661 | ||
10662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10663 | { | |
0439c23b | 10664 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
10665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10666 | result = (wxSpinButton *)new wxSpinButton(); | |
10667 | ||
10668 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10669 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
10670 | } |
10671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); | |
10672 | return resultobj; | |
10673 | fail: | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
10678 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10679 | PyObject *resultobj; | |
10680 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10681 | wxWindow *arg2 = (wxWindow *) 0 ; | |
10682 | int arg3 = (int) -1 ; | |
10683 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10684 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10685 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10686 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10687 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10688 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10689 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10690 | bool result; | |
10691 | wxPoint temp4 ; | |
10692 | wxSize temp5 ; | |
10693 | bool temp7 = False ; | |
10694 | PyObject * obj0 = 0 ; | |
10695 | PyObject * obj1 = 0 ; | |
10696 | PyObject * obj2 = 0 ; | |
10697 | PyObject * obj3 = 0 ; | |
10698 | PyObject * obj4 = 0 ; | |
10699 | PyObject * obj5 = 0 ; | |
10700 | PyObject * obj6 = 0 ; | |
10701 | char *kwnames[] = { | |
10702 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10703 | }; | |
10704 | ||
10705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
10706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10708 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10710 | if (obj2) { | |
10711 | arg3 = (int) SWIG_AsInt(obj2); | |
10712 | if (PyErr_Occurred()) SWIG_fail; | |
10713 | } | |
10714 | if (obj3) { | |
10715 | { | |
10716 | arg4 = &temp4; | |
10717 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10718 | } | |
10719 | } | |
10720 | if (obj4) { | |
10721 | { | |
10722 | arg5 = &temp5; | |
10723 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10724 | } | |
10725 | } | |
10726 | if (obj5) { | |
10727 | arg6 = (long) SWIG_AsLong(obj5); | |
10728 | if (PyErr_Occurred()) SWIG_fail; | |
10729 | } | |
10730 | if (obj6) { | |
10731 | { | |
10732 | arg7 = wxString_in_helper(obj6); | |
10733 | if (arg7 == NULL) SWIG_fail; | |
10734 | temp7 = True; | |
10735 | } | |
10736 | } | |
10737 | { | |
10738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10739 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10740 | ||
10741 | wxPyEndAllowThreads(__tstate); | |
10742 | if (PyErr_Occurred()) SWIG_fail; | |
10743 | } | |
10744 | { | |
10745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10746 | } | |
10747 | { | |
10748 | if (temp7) | |
10749 | delete arg7; | |
10750 | } | |
10751 | return resultobj; | |
10752 | fail: | |
10753 | { | |
10754 | if (temp7) | |
10755 | delete arg7; | |
10756 | } | |
10757 | return NULL; | |
10758 | } | |
10759 | ||
10760 | ||
10761 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10762 | PyObject *resultobj; | |
10763 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10764 | int result; | |
10765 | PyObject * obj0 = 0 ; | |
10766 | char *kwnames[] = { | |
10767 | (char *) "self", NULL | |
10768 | }; | |
10769 | ||
10770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
10771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10773 | { | |
10774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10775 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10776 | ||
10777 | wxPyEndAllowThreads(__tstate); | |
10778 | if (PyErr_Occurred()) SWIG_fail; | |
10779 | } | |
10780 | resultobj = SWIG_FromInt((int)result); | |
10781 | return resultobj; | |
10782 | fail: | |
10783 | return NULL; | |
10784 | } | |
10785 | ||
10786 | ||
10787 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10788 | PyObject *resultobj; | |
10789 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10790 | int result; | |
10791 | PyObject * obj0 = 0 ; | |
10792 | char *kwnames[] = { | |
10793 | (char *) "self", NULL | |
10794 | }; | |
10795 | ||
10796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
10797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10799 | { | |
10800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10801 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10802 | ||
10803 | wxPyEndAllowThreads(__tstate); | |
10804 | if (PyErr_Occurred()) SWIG_fail; | |
10805 | } | |
10806 | resultobj = SWIG_FromInt((int)result); | |
10807 | return resultobj; | |
10808 | fail: | |
10809 | return NULL; | |
10810 | } | |
10811 | ||
10812 | ||
10813 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10814 | PyObject *resultobj; | |
10815 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10816 | int result; | |
10817 | PyObject * obj0 = 0 ; | |
10818 | char *kwnames[] = { | |
10819 | (char *) "self", NULL | |
10820 | }; | |
10821 | ||
10822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
10823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10825 | { | |
10826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10827 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10828 | ||
10829 | wxPyEndAllowThreads(__tstate); | |
10830 | if (PyErr_Occurred()) SWIG_fail; | |
10831 | } | |
10832 | resultobj = SWIG_FromInt((int)result); | |
10833 | return resultobj; | |
10834 | fail: | |
10835 | return NULL; | |
10836 | } | |
10837 | ||
10838 | ||
10839 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10840 | PyObject *resultobj; | |
10841 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10842 | int arg2 ; | |
10843 | PyObject * obj0 = 0 ; | |
10844 | PyObject * obj1 = 0 ; | |
10845 | char *kwnames[] = { | |
10846 | (char *) "self",(char *) "val", NULL | |
10847 | }; | |
10848 | ||
10849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
10850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10852 | arg2 = (int) SWIG_AsInt(obj1); | |
10853 | if (PyErr_Occurred()) SWIG_fail; | |
10854 | { | |
10855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10856 | (arg1)->SetValue(arg2); | |
10857 | ||
10858 | wxPyEndAllowThreads(__tstate); | |
10859 | if (PyErr_Occurred()) SWIG_fail; | |
10860 | } | |
10861 | Py_INCREF(Py_None); resultobj = Py_None; | |
10862 | return resultobj; | |
10863 | fail: | |
10864 | return NULL; | |
10865 | } | |
10866 | ||
10867 | ||
10868 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10869 | PyObject *resultobj; | |
10870 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10871 | int arg2 ; | |
10872 | PyObject * obj0 = 0 ; | |
10873 | PyObject * obj1 = 0 ; | |
10874 | char *kwnames[] = { | |
10875 | (char *) "self",(char *) "minVal", NULL | |
10876 | }; | |
10877 | ||
10878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
10879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10881 | arg2 = (int) SWIG_AsInt(obj1); | |
10882 | if (PyErr_Occurred()) SWIG_fail; | |
10883 | { | |
10884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10885 | (arg1)->SetMin(arg2); | |
10886 | ||
10887 | wxPyEndAllowThreads(__tstate); | |
10888 | if (PyErr_Occurred()) SWIG_fail; | |
10889 | } | |
10890 | Py_INCREF(Py_None); resultobj = Py_None; | |
10891 | return resultobj; | |
10892 | fail: | |
10893 | return NULL; | |
10894 | } | |
10895 | ||
10896 | ||
10897 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10898 | PyObject *resultobj; | |
10899 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10900 | int arg2 ; | |
10901 | PyObject * obj0 = 0 ; | |
10902 | PyObject * obj1 = 0 ; | |
10903 | char *kwnames[] = { | |
10904 | (char *) "self",(char *) "maxVal", NULL | |
10905 | }; | |
10906 | ||
10907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
10908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10910 | arg2 = (int) SWIG_AsInt(obj1); | |
10911 | if (PyErr_Occurred()) SWIG_fail; | |
10912 | { | |
10913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10914 | (arg1)->SetMax(arg2); | |
10915 | ||
10916 | wxPyEndAllowThreads(__tstate); | |
10917 | if (PyErr_Occurred()) SWIG_fail; | |
10918 | } | |
10919 | Py_INCREF(Py_None); resultobj = Py_None; | |
10920 | return resultobj; | |
10921 | fail: | |
10922 | return NULL; | |
10923 | } | |
10924 | ||
10925 | ||
10926 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10927 | PyObject *resultobj; | |
10928 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10929 | int arg2 ; | |
10930 | int arg3 ; | |
10931 | PyObject * obj0 = 0 ; | |
10932 | PyObject * obj1 = 0 ; | |
10933 | PyObject * obj2 = 0 ; | |
10934 | char *kwnames[] = { | |
10935 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10936 | }; | |
10937 | ||
10938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
10939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10941 | arg2 = (int) SWIG_AsInt(obj1); | |
10942 | if (PyErr_Occurred()) SWIG_fail; | |
10943 | arg3 = (int) SWIG_AsInt(obj2); | |
10944 | if (PyErr_Occurred()) SWIG_fail; | |
10945 | { | |
10946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10947 | (arg1)->SetRange(arg2,arg3); | |
10948 | ||
10949 | wxPyEndAllowThreads(__tstate); | |
10950 | if (PyErr_Occurred()) SWIG_fail; | |
10951 | } | |
f20a2e1f RD |
10952 | Py_INCREF(Py_None); resultobj = Py_None; |
10953 | return resultobj; | |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
10959 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject *resultobj; | |
10961 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10962 | bool result; | |
10963 | PyObject * obj0 = 0 ; | |
10964 | char *kwnames[] = { | |
10965 | (char *) "self", NULL | |
10966 | }; | |
10967 | ||
10968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10971 | { | |
10972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10973 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10974 | ||
10975 | wxPyEndAllowThreads(__tstate); | |
10976 | if (PyErr_Occurred()) SWIG_fail; | |
10977 | } | |
10978 | { | |
10979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10980 | } | |
d55e5bfc RD |
10981 | return resultobj; |
10982 | fail: | |
10983 | return NULL; | |
10984 | } | |
10985 | ||
10986 | ||
f20a2e1f | 10987 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d55e5bfc | 10988 | PyObject *resultobj; |
f20a2e1f RD |
10989 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10990 | wxVisualAttributes result; | |
d55e5bfc RD |
10991 | PyObject * obj0 = 0 ; |
10992 | char *kwnames[] = { | |
f20a2e1f | 10993 | (char *) "variant", NULL |
d55e5bfc RD |
10994 | }; |
10995 | ||
f20a2e1f RD |
10996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10997 | if (obj0) { | |
10998 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10999 | if (PyErr_Occurred()) SWIG_fail; | |
11000 | } | |
d55e5bfc | 11001 | { |
19272049 | 11002 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc | 11003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
f20a2e1f | 11004 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d55e5bfc RD |
11005 | |
11006 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11007 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11008 | } |
11009 | { | |
f20a2e1f RD |
11010 | wxVisualAttributes * resultptr; |
11011 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11012 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
d55e5bfc RD |
11013 | } |
11014 | return resultobj; | |
11015 | fail: | |
11016 | return NULL; | |
11017 | } | |
11018 | ||
11019 | ||
11020 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
11021 | PyObject *obj; | |
11022 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11023 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11024 | Py_INCREF(obj); | |
11025 | return Py_BuildValue((char *)""); | |
11026 | } | |
11027 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11028 | PyObject *resultobj; | |
11029 | wxWindow *arg1 = (wxWindow *) 0 ; | |
11030 | int arg2 = (int) -1 ; | |
11031 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11032 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11033 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11034 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11035 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11036 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11037 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11038 | int arg7 = (int) 0 ; | |
11039 | int arg8 = (int) 100 ; | |
11040 | int arg9 = (int) 0 ; | |
11041 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11042 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11043 | wxSpinCtrl *result; | |
11044 | bool temp3 = False ; | |
11045 | wxPoint temp4 ; | |
11046 | wxSize temp5 ; | |
11047 | bool temp10 = False ; | |
11048 | PyObject * obj0 = 0 ; | |
11049 | PyObject * obj1 = 0 ; | |
11050 | PyObject * obj2 = 0 ; | |
11051 | PyObject * obj3 = 0 ; | |
11052 | PyObject * obj4 = 0 ; | |
11053 | PyObject * obj5 = 0 ; | |
11054 | PyObject * obj6 = 0 ; | |
11055 | PyObject * obj7 = 0 ; | |
11056 | PyObject * obj8 = 0 ; | |
11057 | PyObject * obj9 = 0 ; | |
11058 | char *kwnames[] = { | |
11059 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11060 | }; | |
11061 | ||
11062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
11063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
11064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11065 | if (obj1) { | |
11066 | arg2 = (int) SWIG_AsInt(obj1); | |
11067 | if (PyErr_Occurred()) SWIG_fail; | |
11068 | } | |
11069 | if (obj2) { | |
11070 | { | |
11071 | arg3 = wxString_in_helper(obj2); | |
11072 | if (arg3 == NULL) SWIG_fail; | |
11073 | temp3 = True; | |
11074 | } | |
11075 | } | |
11076 | if (obj3) { | |
11077 | { | |
11078 | arg4 = &temp4; | |
11079 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11080 | } | |
11081 | } | |
11082 | if (obj4) { | |
11083 | { | |
11084 | arg5 = &temp5; | |
11085 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11086 | } | |
11087 | } | |
11088 | if (obj5) { | |
11089 | arg6 = (long) SWIG_AsLong(obj5); | |
11090 | if (PyErr_Occurred()) SWIG_fail; | |
11091 | } | |
11092 | if (obj6) { | |
11093 | arg7 = (int) SWIG_AsInt(obj6); | |
11094 | if (PyErr_Occurred()) SWIG_fail; | |
11095 | } | |
11096 | if (obj7) { | |
11097 | arg8 = (int) SWIG_AsInt(obj7); | |
11098 | if (PyErr_Occurred()) SWIG_fail; | |
11099 | } | |
11100 | if (obj8) { | |
11101 | arg9 = (int) SWIG_AsInt(obj8); | |
11102 | if (PyErr_Occurred()) SWIG_fail; | |
11103 | } | |
11104 | if (obj9) { | |
11105 | { | |
11106 | arg10 = wxString_in_helper(obj9); | |
11107 | if (arg10 == NULL) SWIG_fail; | |
11108 | temp10 = True; | |
11109 | } | |
11110 | } | |
11111 | { | |
0439c23b | 11112 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11114 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11115 | ||
11116 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11117 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11118 | } |
11119 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11120 | { | |
11121 | if (temp3) | |
11122 | delete arg3; | |
11123 | } | |
11124 | { | |
11125 | if (temp10) | |
11126 | delete arg10; | |
11127 | } | |
11128 | return resultobj; | |
11129 | fail: | |
11130 | { | |
11131 | if (temp3) | |
11132 | delete arg3; | |
11133 | } | |
11134 | { | |
11135 | if (temp10) | |
11136 | delete arg10; | |
11137 | } | |
11138 | return NULL; | |
11139 | } | |
11140 | ||
11141 | ||
11142 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11143 | PyObject *resultobj; | |
11144 | wxSpinCtrl *result; | |
11145 | char *kwnames[] = { | |
11146 | NULL | |
11147 | }; | |
11148 | ||
11149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11150 | { | |
0439c23b | 11151 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11153 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11154 | ||
11155 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11156 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11157 | } |
11158 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); | |
11159 | return resultobj; | |
11160 | fail: | |
11161 | return NULL; | |
11162 | } | |
11163 | ||
11164 | ||
11165 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11166 | PyObject *resultobj; | |
11167 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
11169 | int arg3 = (int) -1 ; | |
11170 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11171 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11172 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11173 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11174 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11175 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11176 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11177 | int arg8 = (int) 0 ; | |
11178 | int arg9 = (int) 100 ; | |
11179 | int arg10 = (int) 0 ; | |
11180 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11181 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11182 | bool result; | |
11183 | bool temp4 = False ; | |
11184 | wxPoint temp5 ; | |
11185 | wxSize temp6 ; | |
11186 | bool temp11 = False ; | |
11187 | PyObject * obj0 = 0 ; | |
11188 | PyObject * obj1 = 0 ; | |
11189 | PyObject * obj2 = 0 ; | |
11190 | PyObject * obj3 = 0 ; | |
11191 | PyObject * obj4 = 0 ; | |
11192 | PyObject * obj5 = 0 ; | |
11193 | PyObject * obj6 = 0 ; | |
11194 | PyObject * obj7 = 0 ; | |
11195 | PyObject * obj8 = 0 ; | |
11196 | PyObject * obj9 = 0 ; | |
11197 | PyObject * obj10 = 0 ; | |
11198 | char *kwnames[] = { | |
11199 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11200 | }; | |
11201 | ||
11202 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; | |
11203 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11204 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11205 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11207 | if (obj2) { | |
11208 | arg3 = (int) SWIG_AsInt(obj2); | |
11209 | if (PyErr_Occurred()) SWIG_fail; | |
11210 | } | |
11211 | if (obj3) { | |
11212 | { | |
11213 | arg4 = wxString_in_helper(obj3); | |
11214 | if (arg4 == NULL) SWIG_fail; | |
11215 | temp4 = True; | |
11216 | } | |
11217 | } | |
11218 | if (obj4) { | |
11219 | { | |
11220 | arg5 = &temp5; | |
11221 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11222 | } | |
11223 | } | |
11224 | if (obj5) { | |
11225 | { | |
11226 | arg6 = &temp6; | |
11227 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11228 | } | |
11229 | } | |
11230 | if (obj6) { | |
11231 | arg7 = (long) SWIG_AsLong(obj6); | |
11232 | if (PyErr_Occurred()) SWIG_fail; | |
11233 | } | |
11234 | if (obj7) { | |
11235 | arg8 = (int) SWIG_AsInt(obj7); | |
11236 | if (PyErr_Occurred()) SWIG_fail; | |
11237 | } | |
11238 | if (obj8) { | |
11239 | arg9 = (int) SWIG_AsInt(obj8); | |
11240 | if (PyErr_Occurred()) SWIG_fail; | |
11241 | } | |
11242 | if (obj9) { | |
11243 | arg10 = (int) SWIG_AsInt(obj9); | |
11244 | if (PyErr_Occurred()) SWIG_fail; | |
11245 | } | |
11246 | if (obj10) { | |
11247 | { | |
11248 | arg11 = wxString_in_helper(obj10); | |
11249 | if (arg11 == NULL) SWIG_fail; | |
11250 | temp11 = True; | |
11251 | } | |
11252 | } | |
11253 | { | |
11254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11255 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11256 | ||
11257 | wxPyEndAllowThreads(__tstate); | |
11258 | if (PyErr_Occurred()) SWIG_fail; | |
11259 | } | |
11260 | { | |
11261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11262 | } | |
11263 | { | |
11264 | if (temp4) | |
11265 | delete arg4; | |
11266 | } | |
11267 | { | |
11268 | if (temp11) | |
11269 | delete arg11; | |
11270 | } | |
11271 | return resultobj; | |
11272 | fail: | |
11273 | { | |
11274 | if (temp4) | |
11275 | delete arg4; | |
11276 | } | |
11277 | { | |
11278 | if (temp11) | |
11279 | delete arg11; | |
11280 | } | |
11281 | return NULL; | |
11282 | } | |
11283 | ||
11284 | ||
11285 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11286 | PyObject *resultobj; | |
11287 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11288 | int result; | |
11289 | PyObject * obj0 = 0 ; | |
11290 | char *kwnames[] = { | |
11291 | (char *) "self", NULL | |
11292 | }; | |
11293 | ||
11294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
11295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11299 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11300 | ||
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
11304 | resultobj = SWIG_FromInt((int)result); | |
11305 | return resultobj; | |
11306 | fail: | |
11307 | return NULL; | |
11308 | } | |
11309 | ||
11310 | ||
11311 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11312 | PyObject *resultobj; | |
11313 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11314 | int arg2 ; | |
11315 | PyObject * obj0 = 0 ; | |
11316 | PyObject * obj1 = 0 ; | |
11317 | char *kwnames[] = { | |
11318 | (char *) "self",(char *) "value", NULL | |
11319 | }; | |
11320 | ||
11321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
11322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11324 | arg2 = (int) SWIG_AsInt(obj1); | |
11325 | if (PyErr_Occurred()) SWIG_fail; | |
11326 | { | |
11327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11328 | (arg1)->SetValue(arg2); | |
11329 | ||
11330 | wxPyEndAllowThreads(__tstate); | |
11331 | if (PyErr_Occurred()) SWIG_fail; | |
11332 | } | |
11333 | Py_INCREF(Py_None); resultobj = Py_None; | |
11334 | return resultobj; | |
11335 | fail: | |
11336 | return NULL; | |
11337 | } | |
11338 | ||
11339 | ||
11340 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11341 | PyObject *resultobj; | |
11342 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11343 | wxString *arg2 = 0 ; | |
11344 | bool temp2 = False ; | |
11345 | PyObject * obj0 = 0 ; | |
11346 | PyObject * obj1 = 0 ; | |
11347 | char *kwnames[] = { | |
11348 | (char *) "self",(char *) "text", NULL | |
11349 | }; | |
11350 | ||
11351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
11352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11354 | { | |
11355 | arg2 = wxString_in_helper(obj1); | |
11356 | if (arg2 == NULL) SWIG_fail; | |
11357 | temp2 = True; | |
11358 | } | |
11359 | { | |
11360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11361 | (arg1)->SetValue((wxString const &)*arg2); | |
11362 | ||
11363 | wxPyEndAllowThreads(__tstate); | |
11364 | if (PyErr_Occurred()) SWIG_fail; | |
11365 | } | |
11366 | Py_INCREF(Py_None); resultobj = Py_None; | |
11367 | { | |
11368 | if (temp2) | |
11369 | delete arg2; | |
11370 | } | |
11371 | return resultobj; | |
11372 | fail: | |
11373 | { | |
11374 | if (temp2) | |
11375 | delete arg2; | |
11376 | } | |
11377 | return NULL; | |
11378 | } | |
11379 | ||
11380 | ||
11381 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11382 | PyObject *resultobj; | |
11383 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11384 | int arg2 ; | |
11385 | int arg3 ; | |
11386 | PyObject * obj0 = 0 ; | |
11387 | PyObject * obj1 = 0 ; | |
11388 | PyObject * obj2 = 0 ; | |
11389 | char *kwnames[] = { | |
11390 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11391 | }; | |
11392 | ||
11393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11396 | arg2 = (int) SWIG_AsInt(obj1); | |
11397 | if (PyErr_Occurred()) SWIG_fail; | |
11398 | arg3 = (int) SWIG_AsInt(obj2); | |
11399 | if (PyErr_Occurred()) SWIG_fail; | |
11400 | { | |
11401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11402 | (arg1)->SetRange(arg2,arg3); | |
11403 | ||
11404 | wxPyEndAllowThreads(__tstate); | |
11405 | if (PyErr_Occurred()) SWIG_fail; | |
11406 | } | |
11407 | Py_INCREF(Py_None); resultobj = Py_None; | |
11408 | return resultobj; | |
11409 | fail: | |
11410 | return NULL; | |
11411 | } | |
11412 | ||
11413 | ||
11414 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11415 | PyObject *resultobj; | |
11416 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11417 | int result; | |
11418 | PyObject * obj0 = 0 ; | |
11419 | char *kwnames[] = { | |
11420 | (char *) "self", NULL | |
11421 | }; | |
11422 | ||
11423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
11424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11426 | { | |
11427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11428 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11429 | ||
11430 | wxPyEndAllowThreads(__tstate); | |
11431 | if (PyErr_Occurred()) SWIG_fail; | |
11432 | } | |
11433 | resultobj = SWIG_FromInt((int)result); | |
11434 | return resultobj; | |
11435 | fail: | |
11436 | return NULL; | |
11437 | } | |
11438 | ||
11439 | ||
11440 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11441 | PyObject *resultobj; | |
11442 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11443 | int result; | |
11444 | PyObject * obj0 = 0 ; | |
11445 | char *kwnames[] = { | |
11446 | (char *) "self", NULL | |
11447 | }; | |
11448 | ||
11449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
11450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11452 | { | |
11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11454 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11455 | ||
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
11459 | resultobj = SWIG_FromInt((int)result); | |
11460 | return resultobj; | |
11461 | fail: | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj; | |
11468 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11469 | long arg2 ; | |
11470 | long arg3 ; | |
11471 | PyObject * obj0 = 0 ; | |
11472 | PyObject * obj1 = 0 ; | |
11473 | PyObject * obj2 = 0 ; | |
11474 | char *kwnames[] = { | |
11475 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11476 | }; | |
11477 | ||
11478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
11479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, | |
11480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11481 | arg2 = (long) SWIG_AsLong(obj1); | |
11482 | if (PyErr_Occurred()) SWIG_fail; | |
11483 | arg3 = (long) SWIG_AsLong(obj2); | |
11484 | if (PyErr_Occurred()) SWIG_fail; | |
11485 | { | |
11486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11487 | (arg1)->SetSelection(arg2,arg3); | |
11488 | ||
11489 | wxPyEndAllowThreads(__tstate); | |
11490 | if (PyErr_Occurred()) SWIG_fail; | |
11491 | } | |
11492 | Py_INCREF(Py_None); resultobj = Py_None; | |
11493 | return resultobj; | |
11494 | fail: | |
11495 | return NULL; | |
11496 | } | |
11497 | ||
11498 | ||
f20a2e1f RD |
11499 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11500 | PyObject *resultobj; | |
11501 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11502 | wxVisualAttributes result; | |
11503 | PyObject * obj0 = 0 ; | |
11504 | char *kwnames[] = { | |
11505 | (char *) "variant", NULL | |
11506 | }; | |
11507 | ||
11508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11509 | if (obj0) { | |
11510 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11511 | if (PyErr_Occurred()) SWIG_fail; | |
11512 | } | |
11513 | { | |
19272049 | 11514 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
11515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11516 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11517 | ||
11518 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11519 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
11520 | } |
11521 | { | |
11522 | wxVisualAttributes * resultptr; | |
11523 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11524 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11525 | } | |
11526 | return resultobj; | |
11527 | fail: | |
11528 | return NULL; | |
11529 | } | |
11530 | ||
11531 | ||
d55e5bfc RD |
11532 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11533 | PyObject *obj; | |
11534 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11535 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11536 | Py_INCREF(obj); | |
11537 | return Py_BuildValue((char *)""); | |
11538 | } | |
11539 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11540 | PyObject *resultobj; | |
11541 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11542 | int arg2 = (int) 0 ; | |
11543 | wxSpinEvent *result; | |
11544 | PyObject * obj0 = 0 ; | |
11545 | PyObject * obj1 = 0 ; | |
11546 | char *kwnames[] = { | |
11547 | (char *) "commandType",(char *) "winid", NULL | |
11548 | }; | |
11549 | ||
11550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; | |
11551 | if (obj0) { | |
11552 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
11553 | if (PyErr_Occurred()) SWIG_fail; | |
11554 | } | |
11555 | if (obj1) { | |
11556 | arg2 = (int) SWIG_AsInt(obj1); | |
11557 | if (PyErr_Occurred()) SWIG_fail; | |
11558 | } | |
11559 | { | |
11560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11561 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11562 | ||
11563 | wxPyEndAllowThreads(__tstate); | |
11564 | if (PyErr_Occurred()) SWIG_fail; | |
11565 | } | |
11566 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); | |
11567 | return resultobj; | |
11568 | fail: | |
11569 | return NULL; | |
11570 | } | |
11571 | ||
11572 | ||
11573 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11574 | PyObject *resultobj; | |
11575 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11576 | int result; | |
11577 | PyObject * obj0 = 0 ; | |
11578 | char *kwnames[] = { | |
11579 | (char *) "self", NULL | |
11580 | }; | |
11581 | ||
11582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
11583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11585 | { | |
11586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11587 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11588 | ||
11589 | wxPyEndAllowThreads(__tstate); | |
11590 | if (PyErr_Occurred()) SWIG_fail; | |
11591 | } | |
11592 | resultobj = SWIG_FromInt((int)result); | |
11593 | return resultobj; | |
11594 | fail: | |
11595 | return NULL; | |
11596 | } | |
11597 | ||
11598 | ||
11599 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11600 | PyObject *resultobj; | |
11601 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11602 | int arg2 ; | |
11603 | PyObject * obj0 = 0 ; | |
11604 | PyObject * obj1 = 0 ; | |
11605 | char *kwnames[] = { | |
11606 | (char *) "self",(char *) "pos", NULL | |
11607 | }; | |
11608 | ||
11609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
11610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, | |
11611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11612 | arg2 = (int) SWIG_AsInt(obj1); | |
11613 | if (PyErr_Occurred()) SWIG_fail; | |
11614 | { | |
11615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11616 | (arg1)->SetPosition(arg2); | |
11617 | ||
11618 | wxPyEndAllowThreads(__tstate); | |
11619 | if (PyErr_Occurred()) SWIG_fail; | |
11620 | } | |
11621 | Py_INCREF(Py_None); resultobj = Py_None; | |
11622 | return resultobj; | |
11623 | fail: | |
11624 | return NULL; | |
11625 | } | |
11626 | ||
11627 | ||
11628 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11629 | PyObject *obj; | |
11630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11631 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11632 | Py_INCREF(obj); | |
11633 | return Py_BuildValue((char *)""); | |
11634 | } | |
11635 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { | |
11636 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11637 | return 1; | |
11638 | } | |
11639 | ||
11640 | ||
11641 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11642 | PyObject *pyobj; | |
11643 | ||
11644 | { | |
11645 | #if wxUSE_UNICODE | |
11646 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11647 | #else | |
11648 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11649 | #endif | |
11650 | } | |
11651 | return pyobj; | |
11652 | } | |
11653 | ||
11654 | ||
11655 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11656 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11657 | return 1; | |
11658 | } | |
11659 | ||
11660 | ||
11661 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11662 | PyObject *pyobj; | |
11663 | ||
11664 | { | |
11665 | #if wxUSE_UNICODE | |
11666 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11667 | #else | |
11668 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11669 | #endif | |
11670 | } | |
11671 | return pyobj; | |
11672 | } | |
11673 | ||
11674 | ||
11675 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11676 | PyObject *resultobj; | |
11677 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11678 | int arg2 = (int) -1 ; |
11679 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11680 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
11681 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11682 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11683 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11684 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11685 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; | |
11686 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11687 | int arg7 = (int) 0 ; | |
11688 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11689 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11690 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11691 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11692 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11693 | wxRadioBox *result; | |
11694 | bool temp3 = False ; | |
11695 | wxPoint temp4 ; | |
11696 | wxSize temp5 ; | |
11697 | bool temp6 = False ; | |
11698 | bool temp10 = False ; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | PyObject * obj1 = 0 ; | |
11701 | PyObject * obj2 = 0 ; | |
11702 | PyObject * obj3 = 0 ; | |
11703 | PyObject * obj4 = 0 ; | |
11704 | PyObject * obj5 = 0 ; | |
11705 | PyObject * obj6 = 0 ; | |
11706 | PyObject * obj7 = 0 ; | |
11707 | PyObject * obj8 = 0 ; | |
11708 | PyObject * obj9 = 0 ; | |
11709 | char *kwnames[] = { | |
11710 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11711 | }; | |
11712 | ||
248ed943 | 11713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
11714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11716 | if (obj1) { |
11717 | arg2 = (int) SWIG_AsInt(obj1); | |
11718 | if (PyErr_Occurred()) SWIG_fail; | |
11719 | } | |
11720 | if (obj2) { | |
11721 | { | |
11722 | arg3 = wxString_in_helper(obj2); | |
11723 | if (arg3 == NULL) SWIG_fail; | |
11724 | temp3 = True; | |
11725 | } | |
d55e5bfc RD |
11726 | } |
11727 | if (obj3) { | |
11728 | { | |
11729 | arg4 = &temp4; | |
11730 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11731 | } | |
11732 | } | |
11733 | if (obj4) { | |
11734 | { | |
11735 | arg5 = &temp5; | |
11736 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11737 | } | |
11738 | } | |
11739 | if (obj5) { | |
11740 | { | |
11741 | if (! PySequence_Check(obj5)) { | |
11742 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11743 | SWIG_fail; | |
11744 | } | |
11745 | arg6 = new wxArrayString; | |
11746 | temp6 = True; | |
11747 | int i, len=PySequence_Length(obj5); | |
11748 | for (i=0; i<len; i++) { | |
11749 | PyObject* item = PySequence_GetItem(obj5, i); | |
11750 | #if wxUSE_UNICODE | |
11751 | PyObject* str = PyObject_Unicode(item); | |
11752 | #else | |
11753 | PyObject* str = PyObject_Str(item); | |
11754 | #endif | |
11755 | if (PyErr_Occurred()) SWIG_fail; | |
11756 | arg6->Add(Py2wxString(str)); | |
11757 | Py_DECREF(item); | |
11758 | Py_DECREF(str); | |
11759 | } | |
11760 | } | |
11761 | } | |
11762 | if (obj6) { | |
11763 | arg7 = (int) SWIG_AsInt(obj6); | |
11764 | if (PyErr_Occurred()) SWIG_fail; | |
11765 | } | |
11766 | if (obj7) { | |
11767 | arg8 = (long) SWIG_AsLong(obj7); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | } | |
11770 | if (obj8) { | |
11771 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
11772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11773 | SWIG_fail; | |
11774 | if (arg9 == NULL) { | |
11775 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11776 | SWIG_fail; | |
11777 | } | |
11778 | } | |
11779 | if (obj9) { | |
11780 | { | |
11781 | arg10 = wxString_in_helper(obj9); | |
11782 | if (arg10 == NULL) SWIG_fail; | |
11783 | temp10 = True; | |
11784 | } | |
11785 | } | |
11786 | { | |
0439c23b | 11787 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11789 | 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); | |
11790 | ||
11791 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11792 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11793 | } |
11794 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11795 | { | |
11796 | if (temp3) | |
11797 | delete arg3; | |
11798 | } | |
11799 | { | |
11800 | if (temp6) delete arg6; | |
11801 | } | |
11802 | { | |
11803 | if (temp10) | |
11804 | delete arg10; | |
11805 | } | |
11806 | return resultobj; | |
11807 | fail: | |
11808 | { | |
11809 | if (temp3) | |
11810 | delete arg3; | |
11811 | } | |
11812 | { | |
11813 | if (temp6) delete arg6; | |
11814 | } | |
11815 | { | |
11816 | if (temp10) | |
11817 | delete arg10; | |
11818 | } | |
11819 | return NULL; | |
11820 | } | |
11821 | ||
11822 | ||
11823 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11824 | PyObject *resultobj; | |
11825 | wxRadioBox *result; | |
11826 | char *kwnames[] = { | |
11827 | NULL | |
11828 | }; | |
11829 | ||
11830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11831 | { | |
0439c23b | 11832 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
11833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11834 | result = (wxRadioBox *)new wxRadioBox(); | |
11835 | ||
11836 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11837 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
11838 | } |
11839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); | |
11840 | return resultobj; | |
11841 | fail: | |
11842 | return NULL; | |
11843 | } | |
11844 | ||
11845 | ||
11846 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11847 | PyObject *resultobj; | |
11848 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11849 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11850 | int arg3 = (int) -1 ; |
11851 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11852 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
11853 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11854 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11855 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11856 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11857 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; | |
11858 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11859 | int arg8 = (int) 0 ; | |
11860 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11861 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11862 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11863 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11864 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11865 | bool result; | |
11866 | bool temp4 = False ; | |
11867 | wxPoint temp5 ; | |
11868 | wxSize temp6 ; | |
11869 | bool temp7 = False ; | |
11870 | bool temp11 = False ; | |
11871 | PyObject * obj0 = 0 ; | |
11872 | PyObject * obj1 = 0 ; | |
11873 | PyObject * obj2 = 0 ; | |
11874 | PyObject * obj3 = 0 ; | |
11875 | PyObject * obj4 = 0 ; | |
11876 | PyObject * obj5 = 0 ; | |
11877 | PyObject * obj6 = 0 ; | |
11878 | PyObject * obj7 = 0 ; | |
11879 | PyObject * obj8 = 0 ; | |
11880 | PyObject * obj9 = 0 ; | |
11881 | PyObject * obj10 = 0 ; | |
11882 | char *kwnames[] = { | |
11883 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11884 | }; | |
11885 | ||
248ed943 | 11886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
11887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11891 | if (obj2) { |
11892 | arg3 = (int) SWIG_AsInt(obj2); | |
11893 | if (PyErr_Occurred()) SWIG_fail; | |
11894 | } | |
11895 | if (obj3) { | |
11896 | { | |
11897 | arg4 = wxString_in_helper(obj3); | |
11898 | if (arg4 == NULL) SWIG_fail; | |
11899 | temp4 = True; | |
11900 | } | |
d55e5bfc RD |
11901 | } |
11902 | if (obj4) { | |
11903 | { | |
11904 | arg5 = &temp5; | |
11905 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11906 | } | |
11907 | } | |
11908 | if (obj5) { | |
11909 | { | |
11910 | arg6 = &temp6; | |
11911 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11912 | } | |
11913 | } | |
11914 | if (obj6) { | |
11915 | { | |
11916 | if (! PySequence_Check(obj6)) { | |
11917 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11918 | SWIG_fail; | |
11919 | } | |
11920 | arg7 = new wxArrayString; | |
11921 | temp7 = True; | |
11922 | int i, len=PySequence_Length(obj6); | |
11923 | for (i=0; i<len; i++) { | |
11924 | PyObject* item = PySequence_GetItem(obj6, i); | |
11925 | #if wxUSE_UNICODE | |
11926 | PyObject* str = PyObject_Unicode(item); | |
11927 | #else | |
11928 | PyObject* str = PyObject_Str(item); | |
11929 | #endif | |
11930 | if (PyErr_Occurred()) SWIG_fail; | |
11931 | arg7->Add(Py2wxString(str)); | |
11932 | Py_DECREF(item); | |
11933 | Py_DECREF(str); | |
11934 | } | |
11935 | } | |
11936 | } | |
11937 | if (obj7) { | |
11938 | arg8 = (int) SWIG_AsInt(obj7); | |
11939 | if (PyErr_Occurred()) SWIG_fail; | |
11940 | } | |
11941 | if (obj8) { | |
11942 | arg9 = (long) SWIG_AsLong(obj8); | |
11943 | if (PyErr_Occurred()) SWIG_fail; | |
11944 | } | |
11945 | if (obj9) { | |
11946 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
11947 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11948 | SWIG_fail; | |
11949 | if (arg10 == NULL) { | |
11950 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
11951 | SWIG_fail; | |
11952 | } | |
11953 | } | |
11954 | if (obj10) { | |
11955 | { | |
11956 | arg11 = wxString_in_helper(obj10); | |
11957 | if (arg11 == NULL) SWIG_fail; | |
11958 | temp11 = True; | |
11959 | } | |
11960 | } | |
11961 | { | |
11962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11963 | 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); | |
11964 | ||
11965 | wxPyEndAllowThreads(__tstate); | |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
11967 | } | |
11968 | { | |
11969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11970 | } | |
11971 | { | |
11972 | if (temp4) | |
11973 | delete arg4; | |
11974 | } | |
11975 | { | |
11976 | if (temp7) delete arg7; | |
11977 | } | |
11978 | { | |
11979 | if (temp11) | |
11980 | delete arg11; | |
11981 | } | |
11982 | return resultobj; | |
11983 | fail: | |
11984 | { | |
11985 | if (temp4) | |
11986 | delete arg4; | |
11987 | } | |
11988 | { | |
11989 | if (temp7) delete arg7; | |
11990 | } | |
11991 | { | |
11992 | if (temp11) | |
11993 | delete arg11; | |
11994 | } | |
11995 | return NULL; | |
11996 | } | |
11997 | ||
11998 | ||
11999 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12000 | PyObject *resultobj; | |
12001 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12002 | int arg2 ; | |
12003 | PyObject * obj0 = 0 ; | |
12004 | PyObject * obj1 = 0 ; | |
12005 | char *kwnames[] = { | |
12006 | (char *) "self",(char *) "n", NULL | |
12007 | }; | |
12008 | ||
12009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
12010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12012 | arg2 = (int) SWIG_AsInt(obj1); | |
12013 | if (PyErr_Occurred()) SWIG_fail; | |
12014 | { | |
12015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12016 | (arg1)->SetSelection(arg2); | |
12017 | ||
12018 | wxPyEndAllowThreads(__tstate); | |
12019 | if (PyErr_Occurred()) SWIG_fail; | |
12020 | } | |
12021 | Py_INCREF(Py_None); resultobj = Py_None; | |
12022 | return resultobj; | |
12023 | fail: | |
12024 | return NULL; | |
12025 | } | |
12026 | ||
12027 | ||
12028 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12029 | PyObject *resultobj; | |
12030 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12031 | int result; | |
12032 | PyObject * obj0 = 0 ; | |
12033 | char *kwnames[] = { | |
12034 | (char *) "self", NULL | |
12035 | }; | |
12036 | ||
12037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
12038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12040 | { | |
12041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12042 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12043 | ||
12044 | wxPyEndAllowThreads(__tstate); | |
12045 | if (PyErr_Occurred()) SWIG_fail; | |
12046 | } | |
12047 | resultobj = SWIG_FromInt((int)result); | |
12048 | return resultobj; | |
12049 | fail: | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
12054 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12055 | PyObject *resultobj; | |
12056 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12057 | wxString result; | |
12058 | PyObject * obj0 = 0 ; | |
12059 | char *kwnames[] = { | |
12060 | (char *) "self", NULL | |
12061 | }; | |
12062 | ||
12063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
12064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12066 | { | |
12067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12068 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12069 | ||
12070 | wxPyEndAllowThreads(__tstate); | |
12071 | if (PyErr_Occurred()) SWIG_fail; | |
12072 | } | |
12073 | { | |
12074 | #if wxUSE_UNICODE | |
12075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12076 | #else | |
12077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12078 | #endif | |
12079 | } | |
12080 | return resultobj; | |
12081 | fail: | |
12082 | return NULL; | |
12083 | } | |
12084 | ||
12085 | ||
12086 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12087 | PyObject *resultobj; | |
12088 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12089 | wxString *arg2 = 0 ; | |
12090 | bool result; | |
12091 | bool temp2 = False ; | |
12092 | PyObject * obj0 = 0 ; | |
12093 | PyObject * obj1 = 0 ; | |
12094 | char *kwnames[] = { | |
12095 | (char *) "self",(char *) "s", NULL | |
12096 | }; | |
12097 | ||
12098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
12099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12101 | { | |
12102 | arg2 = wxString_in_helper(obj1); | |
12103 | if (arg2 == NULL) SWIG_fail; | |
12104 | temp2 = True; | |
12105 | } | |
12106 | { | |
12107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12108 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12109 | ||
12110 | wxPyEndAllowThreads(__tstate); | |
12111 | if (PyErr_Occurred()) SWIG_fail; | |
12112 | } | |
12113 | { | |
12114 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12115 | } | |
12116 | { | |
12117 | if (temp2) | |
12118 | delete arg2; | |
12119 | } | |
12120 | return resultobj; | |
12121 | fail: | |
12122 | { | |
12123 | if (temp2) | |
12124 | delete arg2; | |
12125 | } | |
12126 | return NULL; | |
12127 | } | |
12128 | ||
12129 | ||
12130 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12131 | PyObject *resultobj; | |
12132 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12133 | int result; | |
12134 | PyObject * obj0 = 0 ; | |
12135 | char *kwnames[] = { | |
12136 | (char *) "self", NULL | |
12137 | }; | |
12138 | ||
12139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
12140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12142 | { | |
12143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12144 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12145 | ||
12146 | wxPyEndAllowThreads(__tstate); | |
12147 | if (PyErr_Occurred()) SWIG_fail; | |
12148 | } | |
12149 | resultobj = SWIG_FromInt((int)result); | |
12150 | return resultobj; | |
12151 | fail: | |
12152 | return NULL; | |
12153 | } | |
12154 | ||
12155 | ||
12156 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12157 | PyObject *resultobj; | |
12158 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12159 | wxString *arg2 = 0 ; | |
12160 | int result; | |
12161 | bool temp2 = False ; | |
12162 | PyObject * obj0 = 0 ; | |
12163 | PyObject * obj1 = 0 ; | |
12164 | char *kwnames[] = { | |
12165 | (char *) "self",(char *) "s", NULL | |
12166 | }; | |
12167 | ||
12168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
12169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12171 | { | |
12172 | arg2 = wxString_in_helper(obj1); | |
12173 | if (arg2 == NULL) SWIG_fail; | |
12174 | temp2 = True; | |
12175 | } | |
12176 | { | |
12177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12178 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12179 | ||
12180 | wxPyEndAllowThreads(__tstate); | |
12181 | if (PyErr_Occurred()) SWIG_fail; | |
12182 | } | |
12183 | resultobj = SWIG_FromInt((int)result); | |
12184 | { | |
12185 | if (temp2) | |
12186 | delete arg2; | |
12187 | } | |
12188 | return resultobj; | |
12189 | fail: | |
12190 | { | |
12191 | if (temp2) | |
12192 | delete arg2; | |
12193 | } | |
12194 | return NULL; | |
12195 | } | |
12196 | ||
12197 | ||
12198 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12199 | PyObject *resultobj; | |
12200 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12201 | int arg2 ; | |
12202 | wxString result; | |
12203 | PyObject * obj0 = 0 ; | |
12204 | PyObject * obj1 = 0 ; | |
12205 | char *kwnames[] = { | |
12206 | (char *) "self",(char *) "n", NULL | |
12207 | }; | |
12208 | ||
12209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; | |
12210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12212 | arg2 = (int) SWIG_AsInt(obj1); | |
12213 | if (PyErr_Occurred()) SWIG_fail; | |
12214 | { | |
12215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12216 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12217 | ||
12218 | wxPyEndAllowThreads(__tstate); | |
12219 | if (PyErr_Occurred()) SWIG_fail; | |
12220 | } | |
12221 | { | |
12222 | #if wxUSE_UNICODE | |
12223 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12224 | #else | |
12225 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12226 | #endif | |
12227 | } | |
12228 | return resultobj; | |
12229 | fail: | |
12230 | return NULL; | |
12231 | } | |
12232 | ||
12233 | ||
12234 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12235 | PyObject *resultobj; | |
12236 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12237 | int arg2 ; | |
12238 | wxString *arg3 = 0 ; | |
12239 | bool temp3 = False ; | |
12240 | PyObject * obj0 = 0 ; | |
12241 | PyObject * obj1 = 0 ; | |
12242 | PyObject * obj2 = 0 ; | |
12243 | char *kwnames[] = { | |
12244 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12245 | }; | |
12246 | ||
12247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12250 | arg2 = (int) SWIG_AsInt(obj1); | |
12251 | if (PyErr_Occurred()) SWIG_fail; | |
12252 | { | |
12253 | arg3 = wxString_in_helper(obj2); | |
12254 | if (arg3 == NULL) SWIG_fail; | |
12255 | temp3 = True; | |
12256 | } | |
12257 | { | |
12258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12259 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12260 | ||
12261 | wxPyEndAllowThreads(__tstate); | |
12262 | if (PyErr_Occurred()) SWIG_fail; | |
12263 | } | |
12264 | Py_INCREF(Py_None); resultobj = Py_None; | |
12265 | { | |
12266 | if (temp3) | |
12267 | delete arg3; | |
12268 | } | |
12269 | return resultobj; | |
12270 | fail: | |
12271 | { | |
12272 | if (temp3) | |
12273 | delete arg3; | |
12274 | } | |
12275 | return NULL; | |
12276 | } | |
12277 | ||
12278 | ||
12279 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12280 | PyObject *resultobj; | |
12281 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12282 | int arg2 ; | |
12283 | bool arg3 = (bool) True ; | |
12284 | PyObject * obj0 = 0 ; | |
12285 | PyObject * obj1 = 0 ; | |
12286 | PyObject * obj2 = 0 ; | |
12287 | char *kwnames[] = { | |
12288 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12289 | }; | |
12290 | ||
12291 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12292 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12293 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12294 | arg2 = (int) SWIG_AsInt(obj1); | |
12295 | if (PyErr_Occurred()) SWIG_fail; | |
12296 | if (obj2) { | |
12297 | arg3 = (bool) SWIG_AsBool(obj2); | |
12298 | if (PyErr_Occurred()) SWIG_fail; | |
12299 | } | |
12300 | { | |
12301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12302 | (arg1)->Enable(arg2,arg3); | |
12303 | ||
12304 | wxPyEndAllowThreads(__tstate); | |
12305 | if (PyErr_Occurred()) SWIG_fail; | |
12306 | } | |
12307 | Py_INCREF(Py_None); resultobj = Py_None; | |
12308 | return resultobj; | |
12309 | fail: | |
12310 | return NULL; | |
12311 | } | |
12312 | ||
12313 | ||
12314 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12315 | PyObject *resultobj; | |
12316 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12317 | int arg2 ; | |
12318 | bool arg3 = (bool) True ; | |
12319 | PyObject * obj0 = 0 ; | |
12320 | PyObject * obj1 = 0 ; | |
12321 | PyObject * obj2 = 0 ; | |
12322 | char *kwnames[] = { | |
12323 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12324 | }; | |
12325 | ||
12326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
12327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12329 | arg2 = (int) SWIG_AsInt(obj1); | |
12330 | if (PyErr_Occurred()) SWIG_fail; | |
12331 | if (obj2) { | |
12332 | arg3 = (bool) SWIG_AsBool(obj2); | |
12333 | if (PyErr_Occurred()) SWIG_fail; | |
12334 | } | |
12335 | { | |
12336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12337 | (arg1)->Show(arg2,arg3); | |
12338 | ||
12339 | wxPyEndAllowThreads(__tstate); | |
12340 | if (PyErr_Occurred()) SWIG_fail; | |
12341 | } | |
12342 | Py_INCREF(Py_None); resultobj = Py_None; | |
12343 | return resultobj; | |
12344 | fail: | |
12345 | return NULL; | |
12346 | } | |
12347 | ||
12348 | ||
12349 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12350 | PyObject *resultobj; | |
12351 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12352 | int result; | |
12353 | PyObject * obj0 = 0 ; | |
12354 | char *kwnames[] = { | |
12355 | (char *) "self", NULL | |
12356 | }; | |
12357 | ||
12358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
12359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12361 | { | |
12362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12363 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
12364 | ||
12365 | wxPyEndAllowThreads(__tstate); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
12367 | } | |
12368 | resultobj = SWIG_FromInt((int)result); | |
12369 | return resultobj; | |
12370 | fail: | |
12371 | return NULL; | |
12372 | } | |
12373 | ||
12374 | ||
12375 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12376 | PyObject *resultobj; | |
12377 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12378 | int result; | |
12379 | PyObject * obj0 = 0 ; | |
12380 | char *kwnames[] = { | |
12381 | (char *) "self", NULL | |
12382 | }; | |
12383 | ||
12384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
12385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12387 | { | |
12388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12389 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
12390 | ||
12391 | wxPyEndAllowThreads(__tstate); | |
12392 | if (PyErr_Occurred()) SWIG_fail; | |
12393 | } | |
12394 | resultobj = SWIG_FromInt((int)result); | |
12395 | return resultobj; | |
12396 | fail: | |
12397 | return NULL; | |
12398 | } | |
12399 | ||
12400 | ||
12401 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12402 | PyObject *resultobj; | |
12403 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12404 | int arg2 ; | |
12405 | int arg3 ; | |
12406 | long arg4 ; | |
12407 | int result; | |
12408 | PyObject * obj0 = 0 ; | |
12409 | PyObject * obj1 = 0 ; | |
12410 | PyObject * obj2 = 0 ; | |
12411 | PyObject * obj3 = 0 ; | |
12412 | char *kwnames[] = { | |
12413 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12414 | }; | |
12415 | ||
12416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
12417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, | |
12418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12419 | arg2 = (int) SWIG_AsInt(obj1); | |
12420 | if (PyErr_Occurred()) SWIG_fail; | |
12421 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12422 | if (PyErr_Occurred()) SWIG_fail; | |
12423 | arg4 = (long) SWIG_AsLong(obj3); | |
12424 | if (PyErr_Occurred()) SWIG_fail; | |
12425 | { | |
12426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12427 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
12428 | ||
12429 | wxPyEndAllowThreads(__tstate); | |
12430 | if (PyErr_Occurred()) SWIG_fail; | |
12431 | } | |
12432 | resultobj = SWIG_FromInt((int)result); | |
12433 | return resultobj; | |
12434 | fail: | |
12435 | return NULL; | |
12436 | } | |
12437 | ||
12438 | ||
f20a2e1f RD |
12439 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12440 | PyObject *resultobj; | |
12441 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12442 | wxVisualAttributes result; | |
12443 | PyObject * obj0 = 0 ; | |
12444 | char *kwnames[] = { | |
12445 | (char *) "variant", NULL | |
12446 | }; | |
12447 | ||
12448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12449 | if (obj0) { | |
12450 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12451 | if (PyErr_Occurred()) SWIG_fail; | |
12452 | } | |
12453 | { | |
19272049 | 12454 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12455 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12456 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12457 | ||
12458 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12459 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12460 | } |
12461 | { | |
12462 | wxVisualAttributes * resultptr; | |
12463 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12464 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12465 | } | |
12466 | return resultobj; | |
12467 | fail: | |
12468 | return NULL; | |
12469 | } | |
12470 | ||
12471 | ||
d55e5bfc RD |
12472 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12473 | PyObject *obj; | |
12474 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12475 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12476 | Py_INCREF(obj); | |
12477 | return Py_BuildValue((char *)""); | |
12478 | } | |
12479 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12480 | PyObject *resultobj; | |
12481 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12482 | int arg2 = (int) -1 ; |
12483 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12484 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
12485 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12486 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12487 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12488 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12489 | long arg6 = (long) 0 ; | |
12490 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12491 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12492 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12493 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12494 | wxRadioButton *result; | |
12495 | bool temp3 = False ; | |
12496 | wxPoint temp4 ; | |
12497 | wxSize temp5 ; | |
12498 | bool temp8 = False ; | |
12499 | PyObject * obj0 = 0 ; | |
12500 | PyObject * obj1 = 0 ; | |
12501 | PyObject * obj2 = 0 ; | |
12502 | PyObject * obj3 = 0 ; | |
12503 | PyObject * obj4 = 0 ; | |
12504 | PyObject * obj5 = 0 ; | |
12505 | PyObject * obj6 = 0 ; | |
12506 | PyObject * obj7 = 0 ; | |
12507 | char *kwnames[] = { | |
12508 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12509 | }; | |
12510 | ||
248ed943 | 12511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
12512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12514 | if (obj1) { |
12515 | arg2 = (int) SWIG_AsInt(obj1); | |
12516 | if (PyErr_Occurred()) SWIG_fail; | |
12517 | } | |
12518 | if (obj2) { | |
12519 | { | |
12520 | arg3 = wxString_in_helper(obj2); | |
12521 | if (arg3 == NULL) SWIG_fail; | |
12522 | temp3 = True; | |
12523 | } | |
d55e5bfc RD |
12524 | } |
12525 | if (obj3) { | |
12526 | { | |
12527 | arg4 = &temp4; | |
12528 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12529 | } | |
12530 | } | |
12531 | if (obj4) { | |
12532 | { | |
12533 | arg5 = &temp5; | |
12534 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12535 | } | |
12536 | } | |
12537 | if (obj5) { | |
12538 | arg6 = (long) SWIG_AsLong(obj5); | |
12539 | if (PyErr_Occurred()) SWIG_fail; | |
12540 | } | |
12541 | if (obj6) { | |
12542 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
12543 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12544 | SWIG_fail; | |
12545 | if (arg7 == NULL) { | |
12546 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12547 | SWIG_fail; | |
12548 | } | |
12549 | } | |
12550 | if (obj7) { | |
12551 | { | |
12552 | arg8 = wxString_in_helper(obj7); | |
12553 | if (arg8 == NULL) SWIG_fail; | |
12554 | temp8 = True; | |
12555 | } | |
12556 | } | |
12557 | { | |
0439c23b | 12558 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12560 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12561 | ||
12562 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12563 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12564 | } |
12565 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12566 | { | |
12567 | if (temp3) | |
12568 | delete arg3; | |
12569 | } | |
12570 | { | |
12571 | if (temp8) | |
12572 | delete arg8; | |
12573 | } | |
12574 | return resultobj; | |
12575 | fail: | |
12576 | { | |
12577 | if (temp3) | |
12578 | delete arg3; | |
12579 | } | |
12580 | { | |
12581 | if (temp8) | |
12582 | delete arg8; | |
12583 | } | |
12584 | return NULL; | |
12585 | } | |
12586 | ||
12587 | ||
12588 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12589 | PyObject *resultobj; | |
12590 | wxRadioButton *result; | |
12591 | char *kwnames[] = { | |
12592 | NULL | |
12593 | }; | |
12594 | ||
12595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12596 | { | |
0439c23b | 12597 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12599 | result = (wxRadioButton *)new wxRadioButton(); | |
12600 | ||
12601 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12602 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12603 | } |
12604 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); | |
12605 | return resultobj; | |
12606 | fail: | |
12607 | return NULL; | |
12608 | } | |
12609 | ||
12610 | ||
12611 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12612 | PyObject *resultobj; | |
12613 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12614 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12615 | int arg3 = (int) -1 ; |
12616 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12617 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
12618 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12619 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12620 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12621 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12622 | long arg7 = (long) 0 ; | |
12623 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12624 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12625 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12626 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12627 | bool result; | |
12628 | bool temp4 = False ; | |
12629 | wxPoint temp5 ; | |
12630 | wxSize temp6 ; | |
12631 | bool temp9 = False ; | |
12632 | PyObject * obj0 = 0 ; | |
12633 | PyObject * obj1 = 0 ; | |
12634 | PyObject * obj2 = 0 ; | |
12635 | PyObject * obj3 = 0 ; | |
12636 | PyObject * obj4 = 0 ; | |
12637 | PyObject * obj5 = 0 ; | |
12638 | PyObject * obj6 = 0 ; | |
12639 | PyObject * obj7 = 0 ; | |
12640 | PyObject * obj8 = 0 ; | |
12641 | char *kwnames[] = { | |
12642 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12643 | }; | |
12644 | ||
248ed943 | 12645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
12646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12650 | if (obj2) { |
12651 | arg3 = (int) SWIG_AsInt(obj2); | |
12652 | if (PyErr_Occurred()) SWIG_fail; | |
12653 | } | |
12654 | if (obj3) { | |
12655 | { | |
12656 | arg4 = wxString_in_helper(obj3); | |
12657 | if (arg4 == NULL) SWIG_fail; | |
12658 | temp4 = True; | |
12659 | } | |
d55e5bfc RD |
12660 | } |
12661 | if (obj4) { | |
12662 | { | |
12663 | arg5 = &temp5; | |
12664 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12665 | } | |
12666 | } | |
12667 | if (obj5) { | |
12668 | { | |
12669 | arg6 = &temp6; | |
12670 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12671 | } | |
12672 | } | |
12673 | if (obj6) { | |
12674 | arg7 = (long) SWIG_AsLong(obj6); | |
12675 | if (PyErr_Occurred()) SWIG_fail; | |
12676 | } | |
12677 | if (obj7) { | |
12678 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
12679 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12680 | SWIG_fail; | |
12681 | if (arg8 == NULL) { | |
12682 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12683 | SWIG_fail; | |
12684 | } | |
12685 | } | |
12686 | if (obj8) { | |
12687 | { | |
12688 | arg9 = wxString_in_helper(obj8); | |
12689 | if (arg9 == NULL) SWIG_fail; | |
12690 | temp9 = True; | |
12691 | } | |
12692 | } | |
12693 | { | |
12694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12695 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12696 | ||
12697 | wxPyEndAllowThreads(__tstate); | |
12698 | if (PyErr_Occurred()) SWIG_fail; | |
12699 | } | |
12700 | { | |
12701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12702 | } | |
12703 | { | |
12704 | if (temp4) | |
12705 | delete arg4; | |
12706 | } | |
12707 | { | |
12708 | if (temp9) | |
12709 | delete arg9; | |
12710 | } | |
12711 | return resultobj; | |
12712 | fail: | |
12713 | { | |
12714 | if (temp4) | |
12715 | delete arg4; | |
12716 | } | |
12717 | { | |
12718 | if (temp9) | |
12719 | delete arg9; | |
12720 | } | |
12721 | return NULL; | |
12722 | } | |
12723 | ||
12724 | ||
12725 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12726 | PyObject *resultobj; | |
12727 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12728 | bool result; | |
12729 | PyObject * obj0 = 0 ; | |
12730 | char *kwnames[] = { | |
12731 | (char *) "self", NULL | |
12732 | }; | |
12733 | ||
12734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
12735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12737 | { | |
12738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12739 | result = (bool)(arg1)->GetValue(); | |
12740 | ||
12741 | wxPyEndAllowThreads(__tstate); | |
12742 | if (PyErr_Occurred()) SWIG_fail; | |
12743 | } | |
12744 | { | |
12745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12746 | } | |
12747 | return resultobj; | |
12748 | fail: | |
12749 | return NULL; | |
12750 | } | |
12751 | ||
12752 | ||
12753 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12754 | PyObject *resultobj; | |
12755 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12756 | bool arg2 ; | |
12757 | PyObject * obj0 = 0 ; | |
12758 | PyObject * obj1 = 0 ; | |
12759 | char *kwnames[] = { | |
12760 | (char *) "self",(char *) "value", NULL | |
12761 | }; | |
12762 | ||
12763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
12764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, | |
12765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12766 | arg2 = (bool) SWIG_AsBool(obj1); | |
12767 | if (PyErr_Occurred()) SWIG_fail; | |
12768 | { | |
12769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12770 | (arg1)->SetValue(arg2); | |
12771 | ||
12772 | wxPyEndAllowThreads(__tstate); | |
12773 | if (PyErr_Occurred()) SWIG_fail; | |
12774 | } | |
12775 | Py_INCREF(Py_None); resultobj = Py_None; | |
12776 | return resultobj; | |
12777 | fail: | |
12778 | return NULL; | |
12779 | } | |
12780 | ||
12781 | ||
f20a2e1f RD |
12782 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12783 | PyObject *resultobj; | |
12784 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12785 | wxVisualAttributes result; | |
12786 | PyObject * obj0 = 0 ; | |
12787 | char *kwnames[] = { | |
12788 | (char *) "variant", NULL | |
12789 | }; | |
12790 | ||
12791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12792 | if (obj0) { | |
12793 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12794 | if (PyErr_Occurred()) SWIG_fail; | |
12795 | } | |
12796 | { | |
19272049 | 12797 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
12798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12799 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12800 | ||
12801 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12802 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
12803 | } |
12804 | { | |
12805 | wxVisualAttributes * resultptr; | |
12806 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12808 | } | |
12809 | return resultobj; | |
12810 | fail: | |
12811 | return NULL; | |
12812 | } | |
12813 | ||
12814 | ||
d55e5bfc RD |
12815 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12816 | PyObject *obj; | |
12817 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12818 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12819 | Py_INCREF(obj); | |
12820 | return Py_BuildValue((char *)""); | |
12821 | } | |
12822 | static int _wrap_SliderNameStr_set(PyObject *_val) { | |
12823 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12824 | return 1; | |
12825 | } | |
12826 | ||
12827 | ||
12828 | static PyObject *_wrap_SliderNameStr_get() { | |
12829 | PyObject *pyobj; | |
12830 | ||
12831 | { | |
12832 | #if wxUSE_UNICODE | |
12833 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12834 | #else | |
12835 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12836 | #endif | |
12837 | } | |
12838 | return pyobj; | |
12839 | } | |
12840 | ||
12841 | ||
12842 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12843 | PyObject *resultobj; | |
12844 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12845 | int arg2 = (int) -1 ; |
12846 | int arg3 = (int) 0 ; | |
12847 | int arg4 = (int) 0 ; | |
12848 | int arg5 = (int) 100 ; | |
d55e5bfc RD |
12849 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12850 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12851 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12852 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12853 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12854 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12855 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12856 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12857 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12858 | wxSlider *result; | |
12859 | wxPoint temp6 ; | |
12860 | wxSize temp7 ; | |
12861 | bool temp10 = False ; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | PyObject * obj1 = 0 ; | |
12864 | PyObject * obj2 = 0 ; | |
12865 | PyObject * obj3 = 0 ; | |
12866 | PyObject * obj4 = 0 ; | |
12867 | PyObject * obj5 = 0 ; | |
12868 | PyObject * obj6 = 0 ; | |
12869 | PyObject * obj7 = 0 ; | |
12870 | PyObject * obj8 = 0 ; | |
12871 | PyObject * obj9 = 0 ; | |
12872 | char *kwnames[] = { | |
12873 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12874 | }; | |
12875 | ||
248ed943 | 12876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
d55e5bfc RD |
12877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12879 | if (obj1) { |
12880 | arg2 = (int) SWIG_AsInt(obj1); | |
12881 | if (PyErr_Occurred()) SWIG_fail; | |
12882 | } | |
12883 | if (obj2) { | |
12884 | arg3 = (int) SWIG_AsInt(obj2); | |
12885 | if (PyErr_Occurred()) SWIG_fail; | |
12886 | } | |
12887 | if (obj3) { | |
12888 | arg4 = (int) SWIG_AsInt(obj3); | |
12889 | if (PyErr_Occurred()) SWIG_fail; | |
12890 | } | |
12891 | if (obj4) { | |
12892 | arg5 = (int) SWIG_AsInt(obj4); | |
12893 | if (PyErr_Occurred()) SWIG_fail; | |
12894 | } | |
d55e5bfc RD |
12895 | if (obj5) { |
12896 | { | |
12897 | arg6 = &temp6; | |
12898 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12899 | } | |
12900 | } | |
12901 | if (obj6) { | |
12902 | { | |
12903 | arg7 = &temp7; | |
12904 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12905 | } | |
12906 | } | |
12907 | if (obj7) { | |
12908 | arg8 = (long) SWIG_AsLong(obj7); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
12910 | } | |
12911 | if (obj8) { | |
12912 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, | |
12913 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12914 | SWIG_fail; | |
12915 | if (arg9 == NULL) { | |
12916 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
12917 | SWIG_fail; | |
12918 | } | |
12919 | } | |
12920 | if (obj9) { | |
12921 | { | |
12922 | arg10 = wxString_in_helper(obj9); | |
12923 | if (arg10 == NULL) SWIG_fail; | |
12924 | temp10 = True; | |
12925 | } | |
12926 | } | |
12927 | { | |
0439c23b | 12928 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12930 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12931 | ||
12932 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12933 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12934 | } |
12935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12936 | { | |
12937 | if (temp10) | |
12938 | delete arg10; | |
12939 | } | |
12940 | return resultobj; | |
12941 | fail: | |
12942 | { | |
12943 | if (temp10) | |
12944 | delete arg10; | |
12945 | } | |
12946 | return NULL; | |
12947 | } | |
12948 | ||
12949 | ||
12950 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12951 | PyObject *resultobj; | |
12952 | wxSlider *result; | |
12953 | char *kwnames[] = { | |
12954 | NULL | |
12955 | }; | |
12956 | ||
12957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12958 | { | |
0439c23b | 12959 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
12960 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12961 | result = (wxSlider *)new wxSlider(); | |
12962 | ||
12963 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12964 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
12965 | } |
12966 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); | |
12967 | return resultobj; | |
12968 | fail: | |
12969 | return NULL; | |
12970 | } | |
12971 | ||
12972 | ||
12973 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12974 | PyObject *resultobj; | |
12975 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12976 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12977 | int arg3 = (int) -1 ; |
12978 | int arg4 = (int) 0 ; | |
12979 | int arg5 = (int) 0 ; | |
12980 | int arg6 = (int) 100 ; | |
d55e5bfc RD |
12981 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
12982 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12983 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12984 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12985 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12986 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12987 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12988 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12989 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12990 | bool result; | |
12991 | wxPoint temp7 ; | |
12992 | wxSize temp8 ; | |
12993 | bool temp11 = False ; | |
12994 | PyObject * obj0 = 0 ; | |
12995 | PyObject * obj1 = 0 ; | |
12996 | PyObject * obj2 = 0 ; | |
12997 | PyObject * obj3 = 0 ; | |
12998 | PyObject * obj4 = 0 ; | |
12999 | PyObject * obj5 = 0 ; | |
13000 | PyObject * obj6 = 0 ; | |
13001 | PyObject * obj7 = 0 ; | |
13002 | PyObject * obj8 = 0 ; | |
13003 | PyObject * obj9 = 0 ; | |
13004 | PyObject * obj10 = 0 ; | |
13005 | char *kwnames[] = { | |
13006 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13007 | }; | |
13008 | ||
248ed943 | 13009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
d55e5bfc RD |
13010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13012 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13014 | if (obj2) { |
13015 | arg3 = (int) SWIG_AsInt(obj2); | |
13016 | if (PyErr_Occurred()) SWIG_fail; | |
13017 | } | |
13018 | if (obj3) { | |
13019 | arg4 = (int) SWIG_AsInt(obj3); | |
13020 | if (PyErr_Occurred()) SWIG_fail; | |
13021 | } | |
13022 | if (obj4) { | |
13023 | arg5 = (int) SWIG_AsInt(obj4); | |
13024 | if (PyErr_Occurred()) SWIG_fail; | |
13025 | } | |
13026 | if (obj5) { | |
13027 | arg6 = (int) SWIG_AsInt(obj5); | |
13028 | if (PyErr_Occurred()) SWIG_fail; | |
13029 | } | |
d55e5bfc RD |
13030 | if (obj6) { |
13031 | { | |
13032 | arg7 = &temp7; | |
13033 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13034 | } | |
13035 | } | |
13036 | if (obj7) { | |
13037 | { | |
13038 | arg8 = &temp8; | |
13039 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13040 | } | |
13041 | } | |
13042 | if (obj8) { | |
13043 | arg9 = (long) SWIG_AsLong(obj8); | |
13044 | if (PyErr_Occurred()) SWIG_fail; | |
13045 | } | |
13046 | if (obj9) { | |
13047 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, | |
13048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13049 | SWIG_fail; | |
13050 | if (arg10 == NULL) { | |
13051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13052 | SWIG_fail; | |
13053 | } | |
13054 | } | |
13055 | if (obj10) { | |
13056 | { | |
13057 | arg11 = wxString_in_helper(obj10); | |
13058 | if (arg11 == NULL) SWIG_fail; | |
13059 | temp11 = True; | |
13060 | } | |
13061 | } | |
13062 | { | |
13063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13064 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13065 | ||
13066 | wxPyEndAllowThreads(__tstate); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | } | |
13069 | { | |
13070 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13071 | } | |
13072 | { | |
13073 | if (temp11) | |
13074 | delete arg11; | |
13075 | } | |
13076 | return resultobj; | |
13077 | fail: | |
13078 | { | |
13079 | if (temp11) | |
13080 | delete arg11; | |
13081 | } | |
13082 | return NULL; | |
13083 | } | |
13084 | ||
13085 | ||
13086 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13087 | PyObject *resultobj; | |
13088 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13089 | int result; | |
13090 | PyObject * obj0 = 0 ; | |
13091 | char *kwnames[] = { | |
13092 | (char *) "self", NULL | |
13093 | }; | |
13094 | ||
13095 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
13096 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13097 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13098 | { | |
13099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13100 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13101 | ||
13102 | wxPyEndAllowThreads(__tstate); | |
13103 | if (PyErr_Occurred()) SWIG_fail; | |
13104 | } | |
13105 | resultobj = SWIG_FromInt((int)result); | |
13106 | return resultobj; | |
13107 | fail: | |
13108 | return NULL; | |
13109 | } | |
13110 | ||
13111 | ||
13112 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13113 | PyObject *resultobj; | |
13114 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13115 | int arg2 ; | |
13116 | PyObject * obj0 = 0 ; | |
13117 | PyObject * obj1 = 0 ; | |
13118 | char *kwnames[] = { | |
13119 | (char *) "self",(char *) "value", NULL | |
13120 | }; | |
13121 | ||
13122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13125 | arg2 = (int) SWIG_AsInt(obj1); | |
13126 | if (PyErr_Occurred()) SWIG_fail; | |
13127 | { | |
13128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13129 | (arg1)->SetValue(arg2); | |
13130 | ||
13131 | wxPyEndAllowThreads(__tstate); | |
13132 | if (PyErr_Occurred()) SWIG_fail; | |
13133 | } | |
13134 | Py_INCREF(Py_None); resultobj = Py_None; | |
13135 | return resultobj; | |
13136 | fail: | |
13137 | return NULL; | |
13138 | } | |
13139 | ||
13140 | ||
13141 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13142 | PyObject *resultobj; | |
13143 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13144 | int arg2 ; | |
13145 | int arg3 ; | |
13146 | PyObject * obj0 = 0 ; | |
13147 | PyObject * obj1 = 0 ; | |
13148 | PyObject * obj2 = 0 ; | |
13149 | char *kwnames[] = { | |
13150 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13151 | }; | |
13152 | ||
13153 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13154 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13155 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13156 | arg2 = (int) SWIG_AsInt(obj1); | |
13157 | if (PyErr_Occurred()) SWIG_fail; | |
13158 | arg3 = (int) SWIG_AsInt(obj2); | |
13159 | if (PyErr_Occurred()) SWIG_fail; | |
13160 | { | |
13161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13162 | (arg1)->SetRange(arg2,arg3); | |
13163 | ||
13164 | wxPyEndAllowThreads(__tstate); | |
13165 | if (PyErr_Occurred()) SWIG_fail; | |
13166 | } | |
13167 | Py_INCREF(Py_None); resultobj = Py_None; | |
13168 | return resultobj; | |
13169 | fail: | |
13170 | return NULL; | |
13171 | } | |
13172 | ||
13173 | ||
13174 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13175 | PyObject *resultobj; | |
13176 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13177 | int result; | |
13178 | PyObject * obj0 = 0 ; | |
13179 | char *kwnames[] = { | |
13180 | (char *) "self", NULL | |
13181 | }; | |
13182 | ||
13183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
13184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13186 | { | |
13187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13188 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13189 | ||
13190 | wxPyEndAllowThreads(__tstate); | |
13191 | if (PyErr_Occurred()) SWIG_fail; | |
13192 | } | |
13193 | resultobj = SWIG_FromInt((int)result); | |
13194 | return resultobj; | |
13195 | fail: | |
13196 | return NULL; | |
13197 | } | |
13198 | ||
13199 | ||
13200 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13201 | PyObject *resultobj; | |
13202 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13203 | int result; | |
13204 | PyObject * obj0 = 0 ; | |
13205 | char *kwnames[] = { | |
13206 | (char *) "self", NULL | |
13207 | }; | |
13208 | ||
13209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
13210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13212 | { | |
13213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13214 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13215 | ||
13216 | wxPyEndAllowThreads(__tstate); | |
13217 | if (PyErr_Occurred()) SWIG_fail; | |
13218 | } | |
13219 | resultobj = SWIG_FromInt((int)result); | |
13220 | return resultobj; | |
13221 | fail: | |
13222 | return NULL; | |
13223 | } | |
13224 | ||
13225 | ||
13226 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13227 | PyObject *resultobj; | |
13228 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13229 | int arg2 ; | |
13230 | PyObject * obj0 = 0 ; | |
13231 | PyObject * obj1 = 0 ; | |
13232 | char *kwnames[] = { | |
13233 | (char *) "self",(char *) "minValue", NULL | |
13234 | }; | |
13235 | ||
13236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; | |
13237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13239 | arg2 = (int) SWIG_AsInt(obj1); | |
13240 | if (PyErr_Occurred()) SWIG_fail; | |
13241 | { | |
13242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13243 | (arg1)->SetMin(arg2); | |
13244 | ||
13245 | wxPyEndAllowThreads(__tstate); | |
13246 | if (PyErr_Occurred()) SWIG_fail; | |
13247 | } | |
13248 | Py_INCREF(Py_None); resultobj = Py_None; | |
13249 | return resultobj; | |
13250 | fail: | |
13251 | return NULL; | |
13252 | } | |
13253 | ||
13254 | ||
13255 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13256 | PyObject *resultobj; | |
13257 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13258 | int arg2 ; | |
13259 | PyObject * obj0 = 0 ; | |
13260 | PyObject * obj1 = 0 ; | |
13261 | char *kwnames[] = { | |
13262 | (char *) "self",(char *) "maxValue", NULL | |
13263 | }; | |
13264 | ||
13265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; | |
13266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13268 | arg2 = (int) SWIG_AsInt(obj1); | |
13269 | if (PyErr_Occurred()) SWIG_fail; | |
13270 | { | |
13271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13272 | (arg1)->SetMax(arg2); | |
13273 | ||
13274 | wxPyEndAllowThreads(__tstate); | |
13275 | if (PyErr_Occurred()) SWIG_fail; | |
13276 | } | |
13277 | Py_INCREF(Py_None); resultobj = Py_None; | |
13278 | return resultobj; | |
13279 | fail: | |
13280 | return NULL; | |
13281 | } | |
13282 | ||
13283 | ||
13284 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13285 | PyObject *resultobj; | |
13286 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13287 | int arg2 ; | |
13288 | PyObject * obj0 = 0 ; | |
13289 | PyObject * obj1 = 0 ; | |
13290 | char *kwnames[] = { | |
13291 | (char *) "self",(char *) "lineSize", NULL | |
13292 | }; | |
13293 | ||
13294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; | |
13295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13297 | arg2 = (int) SWIG_AsInt(obj1); | |
13298 | if (PyErr_Occurred()) SWIG_fail; | |
13299 | { | |
13300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13301 | (arg1)->SetLineSize(arg2); | |
13302 | ||
13303 | wxPyEndAllowThreads(__tstate); | |
13304 | if (PyErr_Occurred()) SWIG_fail; | |
13305 | } | |
13306 | Py_INCREF(Py_None); resultobj = Py_None; | |
13307 | return resultobj; | |
13308 | fail: | |
13309 | return NULL; | |
13310 | } | |
13311 | ||
13312 | ||
13313 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13314 | PyObject *resultobj; | |
13315 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13316 | int arg2 ; | |
13317 | PyObject * obj0 = 0 ; | |
13318 | PyObject * obj1 = 0 ; | |
13319 | char *kwnames[] = { | |
13320 | (char *) "self",(char *) "pageSize", NULL | |
13321 | }; | |
13322 | ||
13323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
13324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13326 | arg2 = (int) SWIG_AsInt(obj1); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | { | |
13329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13330 | (arg1)->SetPageSize(arg2); | |
13331 | ||
13332 | wxPyEndAllowThreads(__tstate); | |
13333 | if (PyErr_Occurred()) SWIG_fail; | |
13334 | } | |
13335 | Py_INCREF(Py_None); resultobj = Py_None; | |
13336 | return resultobj; | |
13337 | fail: | |
13338 | return NULL; | |
13339 | } | |
13340 | ||
13341 | ||
13342 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13343 | PyObject *resultobj; | |
13344 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13345 | int result; | |
13346 | PyObject * obj0 = 0 ; | |
13347 | char *kwnames[] = { | |
13348 | (char *) "self", NULL | |
13349 | }; | |
13350 | ||
13351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
13352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13354 | { | |
13355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13356 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13357 | ||
13358 | wxPyEndAllowThreads(__tstate); | |
13359 | if (PyErr_Occurred()) SWIG_fail; | |
13360 | } | |
13361 | resultobj = SWIG_FromInt((int)result); | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13369 | PyObject *resultobj; | |
13370 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13371 | int result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | char *kwnames[] = { | |
13374 | (char *) "self", NULL | |
13375 | }; | |
13376 | ||
13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
13378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13380 | { | |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
13387 | resultobj = SWIG_FromInt((int)result); | |
13388 | return resultobj; | |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13397 | int arg2 ; | |
13398 | PyObject * obj0 = 0 ; | |
13399 | PyObject * obj1 = 0 ; | |
13400 | char *kwnames[] = { | |
13401 | (char *) "self",(char *) "lenPixels", NULL | |
13402 | }; | |
13403 | ||
13404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; | |
13405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13407 | arg2 = (int) SWIG_AsInt(obj1); | |
13408 | if (PyErr_Occurred()) SWIG_fail; | |
13409 | { | |
13410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13411 | (arg1)->SetThumbLength(arg2); | |
13412 | ||
13413 | wxPyEndAllowThreads(__tstate); | |
13414 | if (PyErr_Occurred()) SWIG_fail; | |
13415 | } | |
13416 | Py_INCREF(Py_None); resultobj = Py_None; | |
13417 | return resultobj; | |
13418 | fail: | |
13419 | return NULL; | |
13420 | } | |
13421 | ||
13422 | ||
13423 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13424 | PyObject *resultobj; | |
13425 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13426 | int result; | |
13427 | PyObject * obj0 = 0 ; | |
13428 | char *kwnames[] = { | |
13429 | (char *) "self", NULL | |
13430 | }; | |
13431 | ||
13432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
13433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13435 | { | |
13436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13437 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13438 | ||
13439 | wxPyEndAllowThreads(__tstate); | |
13440 | if (PyErr_Occurred()) SWIG_fail; | |
13441 | } | |
13442 | resultobj = SWIG_FromInt((int)result); | |
13443 | return resultobj; | |
13444 | fail: | |
13445 | return NULL; | |
13446 | } | |
13447 | ||
13448 | ||
13449 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13450 | PyObject *resultobj; | |
13451 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13452 | int arg2 ; | |
13453 | int arg3 = (int) 1 ; | |
13454 | PyObject * obj0 = 0 ; | |
13455 | PyObject * obj1 = 0 ; | |
13456 | PyObject * obj2 = 0 ; | |
13457 | char *kwnames[] = { | |
13458 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13459 | }; | |
13460 | ||
13461 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13462 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13463 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13464 | arg2 = (int) SWIG_AsInt(obj1); | |
13465 | if (PyErr_Occurred()) SWIG_fail; | |
13466 | if (obj2) { | |
13467 | arg3 = (int) SWIG_AsInt(obj2); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
13470 | { | |
13471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13472 | (arg1)->SetTickFreq(arg2,arg3); | |
13473 | ||
13474 | wxPyEndAllowThreads(__tstate); | |
13475 | if (PyErr_Occurred()) SWIG_fail; | |
13476 | } | |
13477 | Py_INCREF(Py_None); resultobj = Py_None; | |
13478 | return resultobj; | |
13479 | fail: | |
13480 | return NULL; | |
13481 | } | |
13482 | ||
13483 | ||
13484 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13485 | PyObject *resultobj; | |
13486 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13487 | int result; | |
13488 | PyObject * obj0 = 0 ; | |
13489 | char *kwnames[] = { | |
13490 | (char *) "self", NULL | |
13491 | }; | |
13492 | ||
13493 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
13494 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13495 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13496 | { | |
13497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13498 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13499 | ||
13500 | wxPyEndAllowThreads(__tstate); | |
13501 | if (PyErr_Occurred()) SWIG_fail; | |
13502 | } | |
13503 | resultobj = SWIG_FromInt((int)result); | |
13504 | return resultobj; | |
13505 | fail: | |
13506 | return NULL; | |
13507 | } | |
13508 | ||
13509 | ||
13510 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13511 | PyObject *resultobj; | |
13512 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13513 | PyObject * obj0 = 0 ; | |
13514 | char *kwnames[] = { | |
13515 | (char *) "self", NULL | |
13516 | }; | |
13517 | ||
13518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
13519 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13520 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13521 | { | |
13522 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13523 | (arg1)->ClearTicks(); | |
13524 | ||
13525 | wxPyEndAllowThreads(__tstate); | |
13526 | if (PyErr_Occurred()) SWIG_fail; | |
13527 | } | |
13528 | Py_INCREF(Py_None); resultobj = Py_None; | |
13529 | return resultobj; | |
13530 | fail: | |
13531 | return NULL; | |
13532 | } | |
13533 | ||
13534 | ||
13535 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13536 | PyObject *resultobj; | |
13537 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13538 | int arg2 ; | |
13539 | PyObject * obj0 = 0 ; | |
13540 | PyObject * obj1 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self",(char *) "tickPos", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; | |
13546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13548 | arg2 = (int) SWIG_AsInt(obj1); | |
13549 | if (PyErr_Occurred()) SWIG_fail; | |
13550 | { | |
13551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13552 | (arg1)->SetTick(arg2); | |
13553 | ||
13554 | wxPyEndAllowThreads(__tstate); | |
13555 | if (PyErr_Occurred()) SWIG_fail; | |
13556 | } | |
13557 | Py_INCREF(Py_None); resultobj = Py_None; | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13567 | PyObject * obj0 = 0 ; | |
13568 | char *kwnames[] = { | |
13569 | (char *) "self", NULL | |
13570 | }; | |
13571 | ||
13572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
13573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13575 | { | |
13576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13577 | (arg1)->ClearSel(); | |
13578 | ||
13579 | wxPyEndAllowThreads(__tstate); | |
13580 | if (PyErr_Occurred()) SWIG_fail; | |
13581 | } | |
13582 | Py_INCREF(Py_None); resultobj = Py_None; | |
13583 | return resultobj; | |
13584 | fail: | |
13585 | return NULL; | |
13586 | } | |
13587 | ||
13588 | ||
13589 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13590 | PyObject *resultobj; | |
13591 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13592 | int result; | |
13593 | PyObject * obj0 = 0 ; | |
13594 | char *kwnames[] = { | |
13595 | (char *) "self", NULL | |
13596 | }; | |
13597 | ||
13598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
13599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13601 | { | |
13602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13603 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13604 | ||
13605 | wxPyEndAllowThreads(__tstate); | |
13606 | if (PyErr_Occurred()) SWIG_fail; | |
13607 | } | |
13608 | resultobj = SWIG_FromInt((int)result); | |
13609 | return resultobj; | |
13610 | fail: | |
13611 | return NULL; | |
13612 | } | |
13613 | ||
13614 | ||
13615 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13616 | PyObject *resultobj; | |
13617 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13618 | int result; | |
13619 | PyObject * obj0 = 0 ; | |
13620 | char *kwnames[] = { | |
13621 | (char *) "self", NULL | |
13622 | }; | |
13623 | ||
13624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
13625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13627 | { | |
13628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13629 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13630 | ||
13631 | wxPyEndAllowThreads(__tstate); | |
13632 | if (PyErr_Occurred()) SWIG_fail; | |
13633 | } | |
13634 | resultobj = SWIG_FromInt((int)result); | |
13635 | return resultobj; | |
13636 | fail: | |
13637 | return NULL; | |
13638 | } | |
13639 | ||
13640 | ||
13641 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13642 | PyObject *resultobj; | |
13643 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13644 | int arg2 ; | |
13645 | int arg3 ; | |
13646 | PyObject * obj0 = 0 ; | |
13647 | PyObject * obj1 = 0 ; | |
13648 | PyObject * obj2 = 0 ; | |
13649 | char *kwnames[] = { | |
13650 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13651 | }; | |
13652 | ||
13653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
13654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, | |
13655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13656 | arg2 = (int) SWIG_AsInt(obj1); | |
13657 | if (PyErr_Occurred()) SWIG_fail; | |
13658 | arg3 = (int) SWIG_AsInt(obj2); | |
13659 | if (PyErr_Occurred()) SWIG_fail; | |
13660 | { | |
13661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13662 | (arg1)->SetSelection(arg2,arg3); | |
13663 | ||
13664 | wxPyEndAllowThreads(__tstate); | |
13665 | if (PyErr_Occurred()) SWIG_fail; | |
13666 | } | |
13667 | Py_INCREF(Py_None); resultobj = Py_None; | |
13668 | return resultobj; | |
13669 | fail: | |
13670 | return NULL; | |
13671 | } | |
13672 | ||
13673 | ||
f20a2e1f RD |
13674 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13675 | PyObject *resultobj; | |
13676 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13677 | wxVisualAttributes result; | |
13678 | PyObject * obj0 = 0 ; | |
13679 | char *kwnames[] = { | |
13680 | (char *) "variant", NULL | |
13681 | }; | |
13682 | ||
13683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13684 | if (obj0) { | |
13685 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | } | |
13688 | { | |
19272049 | 13689 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
13690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13691 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13692 | ||
13693 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13694 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
13695 | } |
13696 | { | |
13697 | wxVisualAttributes * resultptr; | |
13698 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13700 | } | |
13701 | return resultobj; | |
13702 | fail: | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
d55e5bfc RD |
13707 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13708 | PyObject *obj; | |
13709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13710 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13711 | Py_INCREF(obj); | |
13712 | return Py_BuildValue((char *)""); | |
13713 | } | |
13714 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { | |
13715 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13716 | return 1; | |
13717 | } | |
13718 | ||
13719 | ||
13720 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13721 | PyObject *pyobj; | |
13722 | ||
13723 | { | |
13724 | #if wxUSE_UNICODE | |
13725 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13726 | #else | |
13727 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13728 | #endif | |
13729 | } | |
13730 | return pyobj; | |
13731 | } | |
13732 | ||
13733 | ||
13734 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13735 | PyObject *resultobj; | |
13736 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13737 | int arg2 = (int) -1 ; |
13738 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13739 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d55e5bfc RD |
13740 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13741 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13742 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13743 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13744 | long arg6 = (long) 0 ; | |
13745 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13746 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13747 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13748 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13749 | wxToggleButton *result; | |
13750 | bool temp3 = False ; | |
13751 | wxPoint temp4 ; | |
13752 | wxSize temp5 ; | |
13753 | bool temp8 = False ; | |
13754 | PyObject * obj0 = 0 ; | |
13755 | PyObject * obj1 = 0 ; | |
13756 | PyObject * obj2 = 0 ; | |
13757 | PyObject * obj3 = 0 ; | |
13758 | PyObject * obj4 = 0 ; | |
13759 | PyObject * obj5 = 0 ; | |
13760 | PyObject * obj6 = 0 ; | |
13761 | PyObject * obj7 = 0 ; | |
13762 | char *kwnames[] = { | |
13763 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13764 | }; | |
13765 | ||
248ed943 | 13766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
d55e5bfc RD |
13767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13769 | if (obj1) { |
13770 | arg2 = (int) SWIG_AsInt(obj1); | |
13771 | if (PyErr_Occurred()) SWIG_fail; | |
13772 | } | |
13773 | if (obj2) { | |
13774 | { | |
13775 | arg3 = wxString_in_helper(obj2); | |
13776 | if (arg3 == NULL) SWIG_fail; | |
13777 | temp3 = True; | |
13778 | } | |
d55e5bfc RD |
13779 | } |
13780 | if (obj3) { | |
13781 | { | |
13782 | arg4 = &temp4; | |
13783 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13784 | } | |
13785 | } | |
13786 | if (obj4) { | |
13787 | { | |
13788 | arg5 = &temp5; | |
13789 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13790 | } | |
13791 | } | |
13792 | if (obj5) { | |
13793 | arg6 = (long) SWIG_AsLong(obj5); | |
13794 | if (PyErr_Occurred()) SWIG_fail; | |
13795 | } | |
13796 | if (obj6) { | |
13797 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
13798 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13799 | SWIG_fail; | |
13800 | if (arg7 == NULL) { | |
13801 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13802 | SWIG_fail; | |
13803 | } | |
13804 | } | |
13805 | if (obj7) { | |
13806 | { | |
13807 | arg8 = wxString_in_helper(obj7); | |
13808 | if (arg8 == NULL) SWIG_fail; | |
13809 | temp8 = True; | |
13810 | } | |
13811 | } | |
13812 | { | |
0439c23b | 13813 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13815 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13816 | ||
13817 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13818 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13819 | } |
13820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13821 | { | |
13822 | if (temp3) | |
13823 | delete arg3; | |
13824 | } | |
13825 | { | |
13826 | if (temp8) | |
13827 | delete arg8; | |
13828 | } | |
13829 | return resultobj; | |
13830 | fail: | |
13831 | { | |
13832 | if (temp3) | |
13833 | delete arg3; | |
13834 | } | |
13835 | { | |
13836 | if (temp8) | |
13837 | delete arg8; | |
13838 | } | |
13839 | return NULL; | |
13840 | } | |
13841 | ||
13842 | ||
13843 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13844 | PyObject *resultobj; | |
13845 | wxToggleButton *result; | |
13846 | char *kwnames[] = { | |
13847 | NULL | |
13848 | }; | |
13849 | ||
13850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13851 | { | |
0439c23b | 13852 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
13853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13854 | result = (wxToggleButton *)new wxToggleButton(); | |
13855 | ||
13856 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13857 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
13858 | } |
13859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); | |
13860 | return resultobj; | |
13861 | fail: | |
13862 | return NULL; | |
13863 | } | |
13864 | ||
13865 | ||
13866 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13867 | PyObject *resultobj; | |
13868 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13869 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13870 | int arg3 = (int) -1 ; |
13871 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13872 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d55e5bfc RD |
13873 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13874 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13875 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13876 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13877 | long arg7 = (long) 0 ; | |
13878 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13879 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13880 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13881 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13882 | bool result; | |
13883 | bool temp4 = False ; | |
13884 | wxPoint temp5 ; | |
13885 | wxSize temp6 ; | |
13886 | bool temp9 = False ; | |
13887 | PyObject * obj0 = 0 ; | |
13888 | PyObject * obj1 = 0 ; | |
13889 | PyObject * obj2 = 0 ; | |
13890 | PyObject * obj3 = 0 ; | |
13891 | PyObject * obj4 = 0 ; | |
13892 | PyObject * obj5 = 0 ; | |
13893 | PyObject * obj6 = 0 ; | |
13894 | PyObject * obj7 = 0 ; | |
13895 | PyObject * obj8 = 0 ; | |
13896 | char *kwnames[] = { | |
13897 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13898 | }; | |
13899 | ||
248ed943 | 13900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
d55e5bfc RD |
13901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13903 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13905 | if (obj2) { |
13906 | arg3 = (int) SWIG_AsInt(obj2); | |
13907 | if (PyErr_Occurred()) SWIG_fail; | |
13908 | } | |
13909 | if (obj3) { | |
13910 | { | |
13911 | arg4 = wxString_in_helper(obj3); | |
13912 | if (arg4 == NULL) SWIG_fail; | |
13913 | temp4 = True; | |
13914 | } | |
d55e5bfc RD |
13915 | } |
13916 | if (obj4) { | |
13917 | { | |
13918 | arg5 = &temp5; | |
13919 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13920 | } | |
13921 | } | |
13922 | if (obj5) { | |
13923 | { | |
13924 | arg6 = &temp6; | |
13925 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13926 | } | |
13927 | } | |
13928 | if (obj6) { | |
13929 | arg7 = (long) SWIG_AsLong(obj6); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
13931 | } | |
13932 | if (obj7) { | |
13933 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, | |
13934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13935 | SWIG_fail; | |
13936 | if (arg8 == NULL) { | |
13937 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
13938 | SWIG_fail; | |
13939 | } | |
13940 | } | |
13941 | if (obj8) { | |
13942 | { | |
13943 | arg9 = wxString_in_helper(obj8); | |
13944 | if (arg9 == NULL) SWIG_fail; | |
13945 | temp9 = True; | |
13946 | } | |
13947 | } | |
13948 | { | |
13949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13950 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13951 | ||
13952 | wxPyEndAllowThreads(__tstate); | |
13953 | if (PyErr_Occurred()) SWIG_fail; | |
13954 | } | |
13955 | { | |
13956 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13957 | } | |
13958 | { | |
13959 | if (temp4) | |
13960 | delete arg4; | |
13961 | } | |
13962 | { | |
13963 | if (temp9) | |
13964 | delete arg9; | |
13965 | } | |
13966 | return resultobj; | |
13967 | fail: | |
13968 | { | |
13969 | if (temp4) | |
13970 | delete arg4; | |
13971 | } | |
13972 | { | |
13973 | if (temp9) | |
13974 | delete arg9; | |
13975 | } | |
13976 | return NULL; | |
13977 | } | |
13978 | ||
13979 | ||
13980 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13981 | PyObject *resultobj; | |
13982 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13983 | bool arg2 ; | |
13984 | PyObject * obj0 = 0 ; | |
13985 | PyObject * obj1 = 0 ; | |
13986 | char *kwnames[] = { | |
13987 | (char *) "self",(char *) "value", NULL | |
13988 | }; | |
13989 | ||
13990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
13991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
13992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13993 | arg2 = (bool) SWIG_AsBool(obj1); | |
13994 | if (PyErr_Occurred()) SWIG_fail; | |
13995 | { | |
13996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13997 | (arg1)->SetValue(arg2); | |
13998 | ||
13999 | wxPyEndAllowThreads(__tstate); | |
14000 | if (PyErr_Occurred()) SWIG_fail; | |
14001 | } | |
14002 | Py_INCREF(Py_None); resultobj = Py_None; | |
14003 | return resultobj; | |
14004 | fail: | |
14005 | return NULL; | |
14006 | } | |
14007 | ||
14008 | ||
14009 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14010 | PyObject *resultobj; | |
14011 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14012 | bool result; | |
14013 | PyObject * obj0 = 0 ; | |
14014 | char *kwnames[] = { | |
14015 | (char *) "self", NULL | |
14016 | }; | |
14017 | ||
14018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
14019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14021 | { | |
14022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14023 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14024 | ||
14025 | wxPyEndAllowThreads(__tstate); | |
14026 | if (PyErr_Occurred()) SWIG_fail; | |
14027 | } | |
14028 | { | |
14029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14030 | } | |
14031 | return resultobj; | |
14032 | fail: | |
14033 | return NULL; | |
14034 | } | |
14035 | ||
14036 | ||
14037 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14038 | PyObject *resultobj; | |
14039 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14040 | wxString *arg2 = 0 ; | |
14041 | bool temp2 = False ; | |
14042 | PyObject * obj0 = 0 ; | |
14043 | PyObject * obj1 = 0 ; | |
14044 | char *kwnames[] = { | |
14045 | (char *) "self",(char *) "label", NULL | |
14046 | }; | |
14047 | ||
14048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
14049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, | |
14050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14051 | { | |
14052 | arg2 = wxString_in_helper(obj1); | |
14053 | if (arg2 == NULL) SWIG_fail; | |
14054 | temp2 = True; | |
14055 | } | |
14056 | { | |
14057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14058 | (arg1)->SetLabel((wxString const &)*arg2); | |
14059 | ||
14060 | wxPyEndAllowThreads(__tstate); | |
14061 | if (PyErr_Occurred()) SWIG_fail; | |
14062 | } | |
14063 | Py_INCREF(Py_None); resultobj = Py_None; | |
14064 | { | |
14065 | if (temp2) | |
14066 | delete arg2; | |
14067 | } | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | { | |
14071 | if (temp2) | |
14072 | delete arg2; | |
14073 | } | |
14074 | return NULL; | |
14075 | } | |
14076 | ||
14077 | ||
f20a2e1f RD |
14078 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14079 | PyObject *resultobj; | |
14080 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14081 | wxVisualAttributes result; | |
14082 | PyObject * obj0 = 0 ; | |
14083 | char *kwnames[] = { | |
14084 | (char *) "variant", NULL | |
14085 | }; | |
14086 | ||
14087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14088 | if (obj0) { | |
14089 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14090 | if (PyErr_Occurred()) SWIG_fail; | |
14091 | } | |
14092 | { | |
19272049 | 14093 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14095 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14096 | ||
14097 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14098 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14099 | } |
14100 | { | |
14101 | wxVisualAttributes * resultptr; | |
14102 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14103 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14104 | } | |
14105 | return resultobj; | |
14106 | fail: | |
14107 | return NULL; | |
14108 | } | |
14109 | ||
14110 | ||
d55e5bfc RD |
14111 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
14112 | PyObject *obj; | |
14113 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14114 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14115 | Py_INCREF(obj); | |
14116 | return Py_BuildValue((char *)""); | |
14117 | } | |
14118 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { | |
14119 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
14120 | return 1; | |
14121 | } | |
14122 | ||
14123 | ||
14124 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14125 | PyObject *pyobj; | |
14126 | ||
14127 | { | |
14128 | #if wxUSE_UNICODE | |
14129 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14130 | #else | |
14131 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14132 | #endif | |
14133 | } | |
14134 | return pyobj; | |
14135 | } | |
14136 | ||
14137 | ||
14138 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14139 | PyObject *resultobj; | |
14140 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14141 | size_t result; | |
14142 | PyObject * obj0 = 0 ; | |
14143 | char *kwnames[] = { | |
14144 | (char *) "self", NULL | |
14145 | }; | |
14146 | ||
14147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
14148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14150 | { | |
14151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14152 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14153 | ||
14154 | wxPyEndAllowThreads(__tstate); | |
14155 | if (PyErr_Occurred()) SWIG_fail; | |
14156 | } | |
14157 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
14158 | return resultobj; | |
14159 | fail: | |
14160 | return NULL; | |
14161 | } | |
14162 | ||
14163 | ||
14164 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14165 | PyObject *resultobj; | |
14166 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14167 | size_t arg2 ; | |
14168 | wxWindow *result; | |
14169 | PyObject * obj0 = 0 ; | |
14170 | PyObject * obj1 = 0 ; | |
14171 | char *kwnames[] = { | |
14172 | (char *) "self",(char *) "n", NULL | |
14173 | }; | |
14174 | ||
14175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
14176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14178 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14179 | if (PyErr_Occurred()) SWIG_fail; | |
14180 | { | |
14181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14182 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14183 | ||
14184 | wxPyEndAllowThreads(__tstate); | |
14185 | if (PyErr_Occurred()) SWIG_fail; | |
14186 | } | |
14187 | { | |
412d302d | 14188 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14189 | } |
14190 | return resultobj; | |
14191 | fail: | |
14192 | return NULL; | |
14193 | } | |
14194 | ||
14195 | ||
14196 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14197 | PyObject *resultobj; | |
14198 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14199 | int result; | |
14200 | PyObject * obj0 = 0 ; | |
14201 | char *kwnames[] = { | |
14202 | (char *) "self", NULL | |
14203 | }; | |
14204 | ||
14205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
14206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14208 | { | |
14209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14210 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14211 | ||
14212 | wxPyEndAllowThreads(__tstate); | |
14213 | if (PyErr_Occurred()) SWIG_fail; | |
14214 | } | |
14215 | resultobj = SWIG_FromInt((int)result); | |
14216 | return resultobj; | |
14217 | fail: | |
14218 | return NULL; | |
14219 | } | |
14220 | ||
14221 | ||
14222 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14223 | PyObject *resultobj; | |
14224 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14225 | size_t arg2 ; | |
14226 | wxString *arg3 = 0 ; | |
14227 | bool result; | |
14228 | bool temp3 = False ; | |
14229 | PyObject * obj0 = 0 ; | |
14230 | PyObject * obj1 = 0 ; | |
14231 | PyObject * obj2 = 0 ; | |
14232 | char *kwnames[] = { | |
14233 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14234 | }; | |
14235 | ||
14236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14239 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14240 | if (PyErr_Occurred()) SWIG_fail; | |
14241 | { | |
14242 | arg3 = wxString_in_helper(obj2); | |
14243 | if (arg3 == NULL) SWIG_fail; | |
14244 | temp3 = True; | |
14245 | } | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | { | |
14254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14255 | } | |
14256 | { | |
14257 | if (temp3) | |
14258 | delete arg3; | |
14259 | } | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | { | |
14263 | if (temp3) | |
14264 | delete arg3; | |
14265 | } | |
14266 | return NULL; | |
14267 | } | |
14268 | ||
14269 | ||
14270 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14271 | PyObject *resultobj; | |
14272 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14273 | size_t arg2 ; | |
14274 | wxString result; | |
14275 | PyObject * obj0 = 0 ; | |
14276 | PyObject * obj1 = 0 ; | |
14277 | char *kwnames[] = { | |
14278 | (char *) "self",(char *) "n", NULL | |
14279 | }; | |
14280 | ||
14281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
14282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14284 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14285 | if (PyErr_Occurred()) SWIG_fail; | |
14286 | { | |
14287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14288 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14289 | ||
14290 | wxPyEndAllowThreads(__tstate); | |
14291 | if (PyErr_Occurred()) SWIG_fail; | |
14292 | } | |
14293 | { | |
14294 | #if wxUSE_UNICODE | |
14295 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14296 | #else | |
14297 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14298 | #endif | |
14299 | } | |
14300 | return resultobj; | |
14301 | fail: | |
14302 | return NULL; | |
14303 | } | |
14304 | ||
14305 | ||
14306 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14307 | PyObject *resultobj; | |
14308 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14309 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14310 | PyObject * obj0 = 0 ; | |
14311 | PyObject * obj1 = 0 ; | |
14312 | char *kwnames[] = { | |
14313 | (char *) "self",(char *) "imageList", NULL | |
14314 | }; | |
14315 | ||
14316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
14317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14319 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14321 | { | |
14322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14323 | (arg1)->SetImageList(arg2); | |
14324 | ||
14325 | wxPyEndAllowThreads(__tstate); | |
14326 | if (PyErr_Occurred()) SWIG_fail; | |
14327 | } | |
14328 | Py_INCREF(Py_None); resultobj = Py_None; | |
14329 | return resultobj; | |
14330 | fail: | |
14331 | return NULL; | |
14332 | } | |
14333 | ||
14334 | ||
14335 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14336 | PyObject *resultobj; | |
14337 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14338 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14339 | PyObject * obj0 = 0 ; | |
14340 | PyObject * obj1 = 0 ; | |
14341 | char *kwnames[] = { | |
14342 | (char *) "self",(char *) "imageList", NULL | |
14343 | }; | |
14344 | ||
14345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
14346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14348 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14349 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
14350 | { | |
14351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14352 | (arg1)->AssignImageList(arg2); | |
14353 | ||
14354 | wxPyEndAllowThreads(__tstate); | |
14355 | if (PyErr_Occurred()) SWIG_fail; | |
14356 | } | |
14357 | Py_INCREF(Py_None); resultobj = Py_None; | |
14358 | return resultobj; | |
14359 | fail: | |
14360 | return NULL; | |
14361 | } | |
14362 | ||
14363 | ||
14364 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14365 | PyObject *resultobj; | |
14366 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14367 | wxImageList *result; | |
14368 | PyObject * obj0 = 0 ; | |
14369 | char *kwnames[] = { | |
14370 | (char *) "self", NULL | |
14371 | }; | |
14372 | ||
14373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
14374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14376 | { | |
14377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14378 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14379 | ||
14380 | wxPyEndAllowThreads(__tstate); | |
14381 | if (PyErr_Occurred()) SWIG_fail; | |
14382 | } | |
14383 | { | |
412d302d | 14384 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
14385 | } |
14386 | return resultobj; | |
14387 | fail: | |
14388 | return NULL; | |
14389 | } | |
14390 | ||
14391 | ||
14392 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14393 | PyObject *resultobj; | |
14394 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14395 | size_t arg2 ; | |
14396 | int result; | |
14397 | PyObject * obj0 = 0 ; | |
14398 | PyObject * obj1 = 0 ; | |
14399 | char *kwnames[] = { | |
14400 | (char *) "self",(char *) "n", NULL | |
14401 | }; | |
14402 | ||
14403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
14404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14406 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14407 | if (PyErr_Occurred()) SWIG_fail; | |
14408 | { | |
14409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14410 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14411 | ||
14412 | wxPyEndAllowThreads(__tstate); | |
14413 | if (PyErr_Occurred()) SWIG_fail; | |
14414 | } | |
14415 | resultobj = SWIG_FromInt((int)result); | |
14416 | return resultobj; | |
14417 | fail: | |
14418 | return NULL; | |
14419 | } | |
14420 | ||
14421 | ||
14422 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14423 | PyObject *resultobj; | |
14424 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14425 | size_t arg2 ; | |
14426 | int arg3 ; | |
14427 | bool result; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | PyObject * obj1 = 0 ; | |
14430 | PyObject * obj2 = 0 ; | |
14431 | char *kwnames[] = { | |
14432 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14433 | }; | |
14434 | ||
14435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
14436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14438 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14439 | if (PyErr_Occurred()) SWIG_fail; | |
14440 | arg3 = (int) SWIG_AsInt(obj2); | |
14441 | if (PyErr_Occurred()) SWIG_fail; | |
14442 | { | |
14443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14444 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14445 | ||
14446 | wxPyEndAllowThreads(__tstate); | |
14447 | if (PyErr_Occurred()) SWIG_fail; | |
14448 | } | |
14449 | { | |
14450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14451 | } | |
14452 | return resultobj; | |
14453 | fail: | |
14454 | return NULL; | |
14455 | } | |
14456 | ||
14457 | ||
14458 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14459 | PyObject *resultobj; | |
14460 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14461 | wxSize *arg2 = 0 ; | |
14462 | wxSize temp2 ; | |
14463 | PyObject * obj0 = 0 ; | |
14464 | PyObject * obj1 = 0 ; | |
14465 | char *kwnames[] = { | |
14466 | (char *) "self",(char *) "size", NULL | |
14467 | }; | |
14468 | ||
14469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
14470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14472 | { | |
14473 | arg2 = &temp2; | |
14474 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14475 | } | |
14476 | { | |
14477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14478 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14479 | ||
14480 | wxPyEndAllowThreads(__tstate); | |
14481 | if (PyErr_Occurred()) SWIG_fail; | |
14482 | } | |
14483 | Py_INCREF(Py_None); resultobj = Py_None; | |
14484 | return resultobj; | |
14485 | fail: | |
14486 | return NULL; | |
14487 | } | |
14488 | ||
14489 | ||
14490 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14491 | PyObject *resultobj; | |
14492 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14493 | wxSize *arg2 = 0 ; | |
14494 | wxSize result; | |
14495 | wxSize temp2 ; | |
14496 | PyObject * obj0 = 0 ; | |
14497 | PyObject * obj1 = 0 ; | |
14498 | char *kwnames[] = { | |
14499 | (char *) "self",(char *) "sizePage", NULL | |
14500 | }; | |
14501 | ||
14502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
14503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14505 | { | |
14506 | arg2 = &temp2; | |
14507 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14508 | } | |
14509 | { | |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14511 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14512 | ||
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
14516 | { | |
14517 | wxSize * resultptr; | |
14518 | resultptr = new wxSize((wxSize &) result); | |
14519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
14520 | } | |
14521 | return resultobj; | |
14522 | fail: | |
14523 | return NULL; | |
14524 | } | |
14525 | ||
14526 | ||
14527 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14528 | PyObject *resultobj; | |
14529 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14530 | size_t arg2 ; | |
14531 | bool result; | |
14532 | PyObject * obj0 = 0 ; | |
14533 | PyObject * obj1 = 0 ; | |
14534 | char *kwnames[] = { | |
14535 | (char *) "self",(char *) "n", NULL | |
14536 | }; | |
14537 | ||
14538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
14539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14541 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14542 | if (PyErr_Occurred()) SWIG_fail; | |
14543 | { | |
14544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14545 | result = (bool)(arg1)->DeletePage(arg2); | |
14546 | ||
14547 | wxPyEndAllowThreads(__tstate); | |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
14549 | } | |
14550 | { | |
14551 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14552 | } | |
14553 | return resultobj; | |
14554 | fail: | |
14555 | return NULL; | |
14556 | } | |
14557 | ||
14558 | ||
14559 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14560 | PyObject *resultobj; | |
14561 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14562 | size_t arg2 ; | |
14563 | bool result; | |
14564 | PyObject * obj0 = 0 ; | |
14565 | PyObject * obj1 = 0 ; | |
14566 | char *kwnames[] = { | |
14567 | (char *) "self",(char *) "n", NULL | |
14568 | }; | |
14569 | ||
14570 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
14571 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14572 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14573 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14574 | if (PyErr_Occurred()) SWIG_fail; | |
14575 | { | |
14576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14577 | result = (bool)(arg1)->RemovePage(arg2); | |
14578 | ||
14579 | wxPyEndAllowThreads(__tstate); | |
14580 | if (PyErr_Occurred()) SWIG_fail; | |
14581 | } | |
14582 | { | |
14583 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14584 | } | |
14585 | return resultobj; | |
14586 | fail: | |
14587 | return NULL; | |
14588 | } | |
14589 | ||
14590 | ||
14591 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14592 | PyObject *resultobj; | |
14593 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14594 | bool result; | |
14595 | PyObject * obj0 = 0 ; | |
14596 | char *kwnames[] = { | |
14597 | (char *) "self", NULL | |
14598 | }; | |
14599 | ||
14600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
14601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14603 | { | |
14604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14605 | result = (bool)(arg1)->DeleteAllPages(); | |
14606 | ||
14607 | wxPyEndAllowThreads(__tstate); | |
14608 | if (PyErr_Occurred()) SWIG_fail; | |
14609 | } | |
14610 | { | |
14611 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14612 | } | |
14613 | return resultobj; | |
14614 | fail: | |
14615 | return NULL; | |
14616 | } | |
14617 | ||
14618 | ||
14619 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14620 | PyObject *resultobj; | |
14621 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14622 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14623 | wxString *arg3 = 0 ; | |
14624 | bool arg4 = (bool) False ; | |
14625 | int arg5 = (int) -1 ; | |
14626 | bool result; | |
14627 | bool temp3 = False ; | |
14628 | PyObject * obj0 = 0 ; | |
14629 | PyObject * obj1 = 0 ; | |
14630 | PyObject * obj2 = 0 ; | |
14631 | PyObject * obj3 = 0 ; | |
14632 | PyObject * obj4 = 0 ; | |
14633 | char *kwnames[] = { | |
14634 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14635 | }; | |
14636 | ||
14637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
14638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14640 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14642 | { | |
14643 | arg3 = wxString_in_helper(obj2); | |
14644 | if (arg3 == NULL) SWIG_fail; | |
14645 | temp3 = True; | |
14646 | } | |
14647 | if (obj3) { | |
14648 | arg4 = (bool) SWIG_AsBool(obj3); | |
14649 | if (PyErr_Occurred()) SWIG_fail; | |
14650 | } | |
14651 | if (obj4) { | |
14652 | arg5 = (int) SWIG_AsInt(obj4); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
14655 | { | |
14656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14657 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14658 | ||
14659 | wxPyEndAllowThreads(__tstate); | |
14660 | if (PyErr_Occurred()) SWIG_fail; | |
14661 | } | |
14662 | { | |
14663 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14664 | } | |
14665 | { | |
14666 | if (temp3) | |
14667 | delete arg3; | |
14668 | } | |
14669 | return resultobj; | |
14670 | fail: | |
14671 | { | |
14672 | if (temp3) | |
14673 | delete arg3; | |
14674 | } | |
14675 | return NULL; | |
14676 | } | |
14677 | ||
14678 | ||
14679 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14680 | PyObject *resultobj; | |
14681 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14682 | size_t arg2 ; | |
14683 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14684 | wxString *arg4 = 0 ; | |
14685 | bool arg5 = (bool) False ; | |
14686 | int arg6 = (int) -1 ; | |
14687 | bool result; | |
14688 | bool temp4 = False ; | |
14689 | PyObject * obj0 = 0 ; | |
14690 | PyObject * obj1 = 0 ; | |
14691 | PyObject * obj2 = 0 ; | |
14692 | PyObject * obj3 = 0 ; | |
14693 | PyObject * obj4 = 0 ; | |
14694 | PyObject * obj5 = 0 ; | |
14695 | char *kwnames[] = { | |
14696 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14697 | }; | |
14698 | ||
14699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
14700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14702 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14703 | if (PyErr_Occurred()) SWIG_fail; | |
14704 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14706 | { | |
14707 | arg4 = wxString_in_helper(obj3); | |
14708 | if (arg4 == NULL) SWIG_fail; | |
14709 | temp4 = True; | |
14710 | } | |
14711 | if (obj4) { | |
14712 | arg5 = (bool) SWIG_AsBool(obj4); | |
14713 | if (PyErr_Occurred()) SWIG_fail; | |
14714 | } | |
14715 | if (obj5) { | |
14716 | arg6 = (int) SWIG_AsInt(obj5); | |
14717 | if (PyErr_Occurred()) SWIG_fail; | |
14718 | } | |
14719 | { | |
14720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14721 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14722 | ||
14723 | wxPyEndAllowThreads(__tstate); | |
14724 | if (PyErr_Occurred()) SWIG_fail; | |
14725 | } | |
14726 | { | |
14727 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14728 | } | |
14729 | { | |
14730 | if (temp4) | |
14731 | delete arg4; | |
14732 | } | |
14733 | return resultobj; | |
14734 | fail: | |
14735 | { | |
14736 | if (temp4) | |
14737 | delete arg4; | |
14738 | } | |
14739 | return NULL; | |
14740 | } | |
14741 | ||
14742 | ||
14743 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14744 | PyObject *resultobj; | |
14745 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14746 | size_t arg2 ; | |
14747 | int result; | |
14748 | PyObject * obj0 = 0 ; | |
14749 | PyObject * obj1 = 0 ; | |
14750 | char *kwnames[] = { | |
14751 | (char *) "self",(char *) "n", NULL | |
14752 | }; | |
14753 | ||
14754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14757 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14758 | if (PyErr_Occurred()) SWIG_fail; | |
14759 | { | |
14760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14761 | result = (int)(arg1)->SetSelection(arg2); | |
14762 | ||
14763 | wxPyEndAllowThreads(__tstate); | |
14764 | if (PyErr_Occurred()) SWIG_fail; | |
14765 | } | |
14766 | resultobj = SWIG_FromInt((int)result); | |
14767 | return resultobj; | |
14768 | fail: | |
14769 | return NULL; | |
14770 | } | |
14771 | ||
14772 | ||
14773 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14774 | PyObject *resultobj; | |
14775 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14776 | bool arg2 = (bool) True ; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | PyObject * obj1 = 0 ; | |
14779 | char *kwnames[] = { | |
14780 | (char *) "self",(char *) "forward", NULL | |
14781 | }; | |
14782 | ||
14783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
14784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
14785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14786 | if (obj1) { | |
14787 | arg2 = (bool) SWIG_AsBool(obj1); | |
14788 | if (PyErr_Occurred()) SWIG_fail; | |
14789 | } | |
14790 | { | |
14791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14792 | (arg1)->AdvanceSelection(arg2); | |
14793 | ||
14794 | wxPyEndAllowThreads(__tstate); | |
14795 | if (PyErr_Occurred()) SWIG_fail; | |
14796 | } | |
14797 | Py_INCREF(Py_None); resultobj = Py_None; | |
14798 | return resultobj; | |
14799 | fail: | |
14800 | return NULL; | |
14801 | } | |
14802 | ||
14803 | ||
f20a2e1f RD |
14804 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14805 | PyObject *resultobj; | |
14806 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14807 | wxVisualAttributes result; | |
14808 | PyObject * obj0 = 0 ; | |
14809 | char *kwnames[] = { | |
14810 | (char *) "variant", NULL | |
14811 | }; | |
14812 | ||
14813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14814 | if (obj0) { | |
14815 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14816 | if (PyErr_Occurred()) SWIG_fail; | |
14817 | } | |
14818 | { | |
19272049 | 14819 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
14820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14821 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14822 | ||
14823 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 14824 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
14825 | } |
14826 | { | |
14827 | wxVisualAttributes * resultptr; | |
14828 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14830 | } | |
14831 | return resultobj; | |
14832 | fail: | |
14833 | return NULL; | |
14834 | } | |
14835 | ||
14836 | ||
d55e5bfc RD |
14837 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14838 | PyObject *obj; | |
14839 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14840 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14841 | Py_INCREF(obj); | |
14842 | return Py_BuildValue((char *)""); | |
14843 | } | |
14844 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14845 | PyObject *resultobj; | |
14846 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14847 | int arg2 = (int) 0 ; | |
14848 | int arg3 = (int) -1 ; | |
14849 | int arg4 = (int) -1 ; | |
14850 | wxBookCtrlEvent *result; | |
14851 | PyObject * obj0 = 0 ; | |
14852 | PyObject * obj1 = 0 ; | |
14853 | PyObject * obj2 = 0 ; | |
14854 | PyObject * obj3 = 0 ; | |
14855 | char *kwnames[] = { | |
14856 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14857 | }; | |
14858 | ||
14859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
14860 | if (obj0) { | |
14861 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
14864 | if (obj1) { | |
14865 | arg2 = (int) SWIG_AsInt(obj1); | |
14866 | if (PyErr_Occurred()) SWIG_fail; | |
14867 | } | |
14868 | if (obj2) { | |
14869 | arg3 = (int) SWIG_AsInt(obj2); | |
14870 | if (PyErr_Occurred()) SWIG_fail; | |
14871 | } | |
14872 | if (obj3) { | |
14873 | arg4 = (int) SWIG_AsInt(obj3); | |
14874 | if (PyErr_Occurred()) SWIG_fail; | |
14875 | } | |
14876 | { | |
14877 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14878 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14879 | ||
14880 | wxPyEndAllowThreads(__tstate); | |
14881 | if (PyErr_Occurred()) SWIG_fail; | |
14882 | } | |
14883 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); | |
14884 | return resultobj; | |
14885 | fail: | |
14886 | return NULL; | |
14887 | } | |
14888 | ||
14889 | ||
14890 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14891 | PyObject *resultobj; | |
14892 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14893 | int result; | |
14894 | PyObject * obj0 = 0 ; | |
14895 | char *kwnames[] = { | |
14896 | (char *) "self", NULL | |
14897 | }; | |
14898 | ||
14899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
14900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14902 | { | |
14903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14904 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14905 | ||
14906 | wxPyEndAllowThreads(__tstate); | |
14907 | if (PyErr_Occurred()) SWIG_fail; | |
14908 | } | |
14909 | resultobj = SWIG_FromInt((int)result); | |
14910 | return resultobj; | |
14911 | fail: | |
14912 | return NULL; | |
14913 | } | |
14914 | ||
14915 | ||
14916 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14917 | PyObject *resultobj; | |
14918 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14919 | int arg2 ; | |
14920 | PyObject * obj0 = 0 ; | |
14921 | PyObject * obj1 = 0 ; | |
14922 | char *kwnames[] = { | |
14923 | (char *) "self",(char *) "nSel", NULL | |
14924 | }; | |
14925 | ||
14926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
14927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14929 | arg2 = (int) SWIG_AsInt(obj1); | |
14930 | if (PyErr_Occurred()) SWIG_fail; | |
14931 | { | |
14932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14933 | (arg1)->SetSelection(arg2); | |
14934 | ||
14935 | wxPyEndAllowThreads(__tstate); | |
14936 | if (PyErr_Occurred()) SWIG_fail; | |
14937 | } | |
14938 | Py_INCREF(Py_None); resultobj = Py_None; | |
14939 | return resultobj; | |
14940 | fail: | |
14941 | return NULL; | |
14942 | } | |
14943 | ||
14944 | ||
14945 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14946 | PyObject *resultobj; | |
14947 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14948 | int result; | |
14949 | PyObject * obj0 = 0 ; | |
14950 | char *kwnames[] = { | |
14951 | (char *) "self", NULL | |
14952 | }; | |
14953 | ||
14954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
14955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14957 | { | |
14958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14959 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14960 | ||
14961 | wxPyEndAllowThreads(__tstate); | |
14962 | if (PyErr_Occurred()) SWIG_fail; | |
14963 | } | |
14964 | resultobj = SWIG_FromInt((int)result); | |
14965 | return resultobj; | |
14966 | fail: | |
14967 | return NULL; | |
14968 | } | |
14969 | ||
14970 | ||
14971 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14972 | PyObject *resultobj; | |
14973 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14974 | int arg2 ; | |
14975 | PyObject * obj0 = 0 ; | |
14976 | PyObject * obj1 = 0 ; | |
14977 | char *kwnames[] = { | |
14978 | (char *) "self",(char *) "nOldSel", NULL | |
14979 | }; | |
14980 | ||
14981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; | |
14982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, | |
14983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14984 | arg2 = (int) SWIG_AsInt(obj1); | |
14985 | if (PyErr_Occurred()) SWIG_fail; | |
14986 | { | |
14987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14988 | (arg1)->SetOldSelection(arg2); | |
14989 | ||
14990 | wxPyEndAllowThreads(__tstate); | |
14991 | if (PyErr_Occurred()) SWIG_fail; | |
14992 | } | |
14993 | Py_INCREF(Py_None); resultobj = Py_None; | |
14994 | return resultobj; | |
14995 | fail: | |
14996 | return NULL; | |
14997 | } | |
14998 | ||
14999 | ||
15000 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
15001 | PyObject *obj; | |
15002 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15003 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
15004 | Py_INCREF(obj); | |
15005 | return Py_BuildValue((char *)""); | |
15006 | } | |
15007 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15008 | PyObject *resultobj; | |
15009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15010 | int arg2 = (int) -1 ; | |
15011 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15012 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15013 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15014 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15015 | long arg5 = (long) 0 ; | |
15016 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
15017 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15018 | wxNotebook *result; | |
15019 | wxPoint temp3 ; | |
15020 | wxSize temp4 ; | |
15021 | bool temp6 = False ; | |
15022 | PyObject * obj0 = 0 ; | |
15023 | PyObject * obj1 = 0 ; | |
15024 | PyObject * obj2 = 0 ; | |
15025 | PyObject * obj3 = 0 ; | |
15026 | PyObject * obj4 = 0 ; | |
15027 | PyObject * obj5 = 0 ; | |
15028 | char *kwnames[] = { | |
15029 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15030 | }; | |
15031 | ||
15032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15035 | if (obj1) { | |
15036 | arg2 = (int) SWIG_AsInt(obj1); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
15039 | if (obj2) { | |
15040 | { | |
15041 | arg3 = &temp3; | |
15042 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15043 | } | |
15044 | } | |
15045 | if (obj3) { | |
15046 | { | |
15047 | arg4 = &temp4; | |
15048 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15049 | } | |
15050 | } | |
15051 | if (obj4) { | |
15052 | arg5 = (long) SWIG_AsLong(obj4); | |
15053 | if (PyErr_Occurred()) SWIG_fail; | |
15054 | } | |
15055 | if (obj5) { | |
15056 | { | |
15057 | arg6 = wxString_in_helper(obj5); | |
15058 | if (arg6 == NULL) SWIG_fail; | |
15059 | temp6 = True; | |
15060 | } | |
15061 | } | |
15062 | { | |
0439c23b | 15063 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15065 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15066 | ||
15067 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15068 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15069 | } |
b0f7404b | 15070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15071 | { |
15072 | if (temp6) | |
15073 | delete arg6; | |
15074 | } | |
15075 | return resultobj; | |
15076 | fail: | |
15077 | { | |
15078 | if (temp6) | |
15079 | delete arg6; | |
15080 | } | |
15081 | return NULL; | |
15082 | } | |
15083 | ||
15084 | ||
15085 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15086 | PyObject *resultobj; | |
15087 | wxNotebook *result; | |
15088 | char *kwnames[] = { | |
15089 | NULL | |
15090 | }; | |
15091 | ||
15092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15093 | { | |
0439c23b | 15094 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15096 | result = (wxNotebook *)new wxNotebook(); | |
15097 | ||
15098 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15099 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 15100 | } |
b0f7404b | 15101 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d55e5bfc RD |
15102 | return resultobj; |
15103 | fail: | |
15104 | return NULL; | |
15105 | } | |
15106 | ||
15107 | ||
15108 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15109 | PyObject *resultobj; | |
15110 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15111 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15112 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15113 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15114 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15115 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15116 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15117 | long arg6 = (long) 0 ; | |
15118 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15119 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15120 | bool result; | |
15121 | wxPoint temp4 ; | |
15122 | wxSize temp5 ; | |
15123 | bool temp7 = False ; | |
15124 | PyObject * obj0 = 0 ; | |
15125 | PyObject * obj1 = 0 ; | |
15126 | PyObject * obj2 = 0 ; | |
15127 | PyObject * obj3 = 0 ; | |
15128 | PyObject * obj4 = 0 ; | |
15129 | PyObject * obj5 = 0 ; | |
15130 | PyObject * obj6 = 0 ; | |
15131 | char *kwnames[] = { | |
15132 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15133 | }; | |
15134 | ||
248ed943 | 15135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15138 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15140 | if (obj2) { |
15141 | arg3 = (int) SWIG_AsInt(obj2); | |
15142 | if (PyErr_Occurred()) SWIG_fail; | |
15143 | } | |
d55e5bfc RD |
15144 | if (obj3) { |
15145 | { | |
15146 | arg4 = &temp4; | |
15147 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15148 | } | |
15149 | } | |
15150 | if (obj4) { | |
15151 | { | |
15152 | arg5 = &temp5; | |
15153 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15154 | } | |
15155 | } | |
15156 | if (obj5) { | |
15157 | arg6 = (long) SWIG_AsLong(obj5); | |
15158 | if (PyErr_Occurred()) SWIG_fail; | |
15159 | } | |
15160 | if (obj6) { | |
15161 | { | |
15162 | arg7 = wxString_in_helper(obj6); | |
15163 | if (arg7 == NULL) SWIG_fail; | |
15164 | temp7 = True; | |
15165 | } | |
15166 | } | |
15167 | { | |
15168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15169 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15170 | ||
15171 | wxPyEndAllowThreads(__tstate); | |
15172 | if (PyErr_Occurred()) SWIG_fail; | |
15173 | } | |
15174 | { | |
15175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15176 | } | |
15177 | { | |
15178 | if (temp7) | |
15179 | delete arg7; | |
15180 | } | |
15181 | return resultobj; | |
15182 | fail: | |
15183 | { | |
15184 | if (temp7) | |
15185 | delete arg7; | |
15186 | } | |
15187 | return NULL; | |
15188 | } | |
15189 | ||
15190 | ||
15191 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15192 | PyObject *resultobj; | |
15193 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15194 | int result; | |
15195 | PyObject * obj0 = 0 ; | |
15196 | char *kwnames[] = { | |
15197 | (char *) "self", NULL | |
15198 | }; | |
15199 | ||
15200 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15201 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15203 | { | |
15204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15205 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15206 | ||
15207 | wxPyEndAllowThreads(__tstate); | |
15208 | if (PyErr_Occurred()) SWIG_fail; | |
15209 | } | |
15210 | resultobj = SWIG_FromInt((int)result); | |
15211 | return resultobj; | |
15212 | fail: | |
15213 | return NULL; | |
15214 | } | |
15215 | ||
15216 | ||
15217 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15218 | PyObject *resultobj; | |
15219 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15220 | wxSize *arg2 = 0 ; | |
15221 | wxSize temp2 ; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | PyObject * obj1 = 0 ; | |
15224 | char *kwnames[] = { | |
15225 | (char *) "self",(char *) "padding", NULL | |
15226 | }; | |
15227 | ||
15228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15231 | { | |
15232 | arg2 = &temp2; | |
15233 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15234 | } | |
15235 | { | |
15236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15237 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15238 | ||
15239 | wxPyEndAllowThreads(__tstate); | |
15240 | if (PyErr_Occurred()) SWIG_fail; | |
15241 | } | |
15242 | Py_INCREF(Py_None); resultobj = Py_None; | |
15243 | return resultobj; | |
15244 | fail: | |
15245 | return NULL; | |
15246 | } | |
15247 | ||
15248 | ||
15249 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15250 | PyObject *resultobj; | |
15251 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15252 | wxSize *arg2 = 0 ; | |
15253 | wxSize temp2 ; | |
15254 | PyObject * obj0 = 0 ; | |
15255 | PyObject * obj1 = 0 ; | |
15256 | char *kwnames[] = { | |
15257 | (char *) "self",(char *) "sz", NULL | |
15258 | }; | |
15259 | ||
15260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15263 | { | |
15264 | arg2 = &temp2; | |
15265 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15266 | } | |
15267 | { | |
15268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15269 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15270 | ||
15271 | wxPyEndAllowThreads(__tstate); | |
15272 | if (PyErr_Occurred()) SWIG_fail; | |
15273 | } | |
15274 | Py_INCREF(Py_None); resultobj = Py_None; | |
15275 | return resultobj; | |
15276 | fail: | |
15277 | return NULL; | |
15278 | } | |
15279 | ||
15280 | ||
15281 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15282 | PyObject *resultobj; | |
15283 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15284 | wxPoint *arg2 = 0 ; | |
15285 | long *arg3 = (long *) 0 ; | |
15286 | int result; | |
15287 | wxPoint temp2 ; | |
15288 | long temp3 ; | |
15289 | PyObject * obj0 = 0 ; | |
15290 | PyObject * obj1 = 0 ; | |
15291 | char *kwnames[] = { | |
15292 | (char *) "self",(char *) "pt", NULL | |
15293 | }; | |
15294 | ||
15295 | arg3 = &temp3; | |
15296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15299 | { | |
15300 | arg2 = &temp2; | |
15301 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15302 | } | |
15303 | { | |
15304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15305 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15306 | ||
15307 | wxPyEndAllowThreads(__tstate); | |
15308 | if (PyErr_Occurred()) SWIG_fail; | |
15309 | } | |
15310 | resultobj = SWIG_FromInt((int)result); | |
15311 | { | |
15312 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15313 | resultobj = t_output_helper(resultobj,o); | |
15314 | } | |
15315 | return resultobj; | |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
15321 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15322 | PyObject *resultobj; | |
15323 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15324 | wxSize *arg2 = 0 ; | |
15325 | wxSize result; | |
15326 | wxSize temp2 ; | |
15327 | PyObject * obj0 = 0 ; | |
15328 | PyObject * obj1 = 0 ; | |
15329 | char *kwnames[] = { | |
15330 | (char *) "self",(char *) "sizePage", NULL | |
15331 | }; | |
15332 | ||
15333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15336 | { | |
15337 | arg2 = &temp2; | |
15338 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15339 | } | |
15340 | { | |
15341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15342 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15343 | ||
15344 | wxPyEndAllowThreads(__tstate); | |
15345 | if (PyErr_Occurred()) SWIG_fail; | |
15346 | } | |
15347 | { | |
15348 | wxSize * resultptr; | |
15349 | resultptr = new wxSize((wxSize &) result); | |
15350 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15351 | } | |
15352 | return resultobj; | |
15353 | fail: | |
15354 | return NULL; | |
15355 | } | |
15356 | ||
15357 | ||
15358 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15359 | PyObject *resultobj; | |
15360 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15361 | wxWindow *arg2 = (wxWindow *) 0 ; | |
15362 | wxColour *arg3 = 0 ; | |
15363 | wxColour temp3 ; | |
15364 | PyObject * obj0 = 0 ; | |
15365 | PyObject * obj1 = 0 ; | |
15366 | PyObject * obj2 = 0 ; | |
15367 | char *kwnames[] = { | |
15368 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
15369 | }; | |
15370 | ||
15371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15374 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15376 | { | |
15377 | arg3 = &temp3; | |
15378 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
15379 | } | |
15380 | { | |
15381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15382 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
15383 | ||
15384 | wxPyEndAllowThreads(__tstate); | |
15385 | if (PyErr_Occurred()) SWIG_fail; | |
15386 | } | |
15387 | Py_INCREF(Py_None); resultobj = Py_None; | |
15388 | return resultobj; | |
15389 | fail: | |
15390 | return NULL; | |
15391 | } | |
15392 | ||
15393 | ||
f20a2e1f RD |
15394 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15395 | PyObject *resultobj; | |
15396 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15397 | wxVisualAttributes result; | |
15398 | PyObject * obj0 = 0 ; | |
15399 | char *kwnames[] = { | |
15400 | (char *) "variant", NULL | |
15401 | }; | |
15402 | ||
15403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15404 | if (obj0) { | |
15405 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15406 | if (PyErr_Occurred()) SWIG_fail; | |
15407 | } | |
15408 | { | |
19272049 | 15409 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
15410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15411 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15412 | ||
15413 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15414 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
15415 | } |
15416 | { | |
15417 | wxVisualAttributes * resultptr; | |
15418 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15420 | } | |
15421 | return resultobj; | |
15422 | fail: | |
15423 | return NULL; | |
15424 | } | |
15425 | ||
15426 | ||
d55e5bfc RD |
15427 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15428 | PyObject *obj; | |
15429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15430 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15431 | Py_INCREF(obj); | |
15432 | return Py_BuildValue((char *)""); | |
15433 | } | |
15434 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15435 | PyObject *resultobj; | |
15436 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15437 | int arg2 = (int) 0 ; | |
15438 | int arg3 = (int) -1 ; | |
15439 | int arg4 = (int) -1 ; | |
15440 | wxNotebookEvent *result; | |
15441 | PyObject * obj0 = 0 ; | |
15442 | PyObject * obj1 = 0 ; | |
15443 | PyObject * obj2 = 0 ; | |
15444 | PyObject * obj3 = 0 ; | |
15445 | char *kwnames[] = { | |
15446 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15447 | }; | |
15448 | ||
15449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15450 | if (obj0) { | |
15451 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15452 | if (PyErr_Occurred()) SWIG_fail; | |
15453 | } | |
15454 | if (obj1) { | |
15455 | arg2 = (int) SWIG_AsInt(obj1); | |
15456 | if (PyErr_Occurred()) SWIG_fail; | |
15457 | } | |
15458 | if (obj2) { | |
15459 | arg3 = (int) SWIG_AsInt(obj2); | |
15460 | if (PyErr_Occurred()) SWIG_fail; | |
15461 | } | |
15462 | if (obj3) { | |
15463 | arg4 = (int) SWIG_AsInt(obj3); | |
15464 | if (PyErr_Occurred()) SWIG_fail; | |
15465 | } | |
15466 | { | |
15467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15468 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15469 | ||
15470 | wxPyEndAllowThreads(__tstate); | |
15471 | if (PyErr_Occurred()) SWIG_fail; | |
15472 | } | |
15473 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); | |
15474 | return resultobj; | |
15475 | fail: | |
15476 | return NULL; | |
15477 | } | |
15478 | ||
15479 | ||
15480 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15481 | PyObject *obj; | |
15482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15483 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15484 | Py_INCREF(obj); | |
15485 | return Py_BuildValue((char *)""); | |
15486 | } | |
15487 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15488 | PyObject *resultobj; | |
15489 | wxWindow *arg1 = (wxWindow *) 0 ; | |
15490 | int arg2 = (int) -1 ; | |
15491 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
15492 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15493 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15494 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15495 | long arg5 = (long) 0 ; | |
15496 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15497 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15498 | wxListbook *result; | |
15499 | wxPoint temp3 ; | |
15500 | wxSize temp4 ; | |
15501 | bool temp6 = False ; | |
15502 | PyObject * obj0 = 0 ; | |
15503 | PyObject * obj1 = 0 ; | |
15504 | PyObject * obj2 = 0 ; | |
15505 | PyObject * obj3 = 0 ; | |
15506 | PyObject * obj4 = 0 ; | |
15507 | PyObject * obj5 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15515 | if (obj1) { | |
15516 | arg2 = (int) SWIG_AsInt(obj1); | |
15517 | if (PyErr_Occurred()) SWIG_fail; | |
15518 | } | |
15519 | if (obj2) { | |
15520 | { | |
15521 | arg3 = &temp3; | |
15522 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15523 | } | |
15524 | } | |
15525 | if (obj3) { | |
15526 | { | |
15527 | arg4 = &temp4; | |
15528 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15529 | } | |
15530 | } | |
15531 | if (obj4) { | |
15532 | arg5 = (long) SWIG_AsLong(obj4); | |
15533 | if (PyErr_Occurred()) SWIG_fail; | |
15534 | } | |
15535 | if (obj5) { | |
15536 | { | |
15537 | arg6 = wxString_in_helper(obj5); | |
15538 | if (arg6 == NULL) SWIG_fail; | |
15539 | temp6 = True; | |
15540 | } | |
15541 | } | |
15542 | { | |
0439c23b | 15543 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15545 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15546 | ||
15547 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15548 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15549 | } |
15550 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15551 | { | |
15552 | if (temp6) | |
15553 | delete arg6; | |
15554 | } | |
15555 | return resultobj; | |
15556 | fail: | |
15557 | { | |
15558 | if (temp6) | |
15559 | delete arg6; | |
15560 | } | |
15561 | return NULL; | |
15562 | } | |
15563 | ||
15564 | ||
15565 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15566 | PyObject *resultobj; | |
15567 | wxListbook *result; | |
15568 | char *kwnames[] = { | |
15569 | NULL | |
15570 | }; | |
15571 | ||
15572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15573 | { | |
0439c23b | 15574 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
15575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15576 | result = (wxListbook *)new wxListbook(); | |
15577 | ||
15578 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15579 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
15580 | } |
15581 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); | |
15582 | return resultobj; | |
15583 | fail: | |
15584 | return NULL; | |
15585 | } | |
15586 | ||
15587 | ||
15588 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15589 | PyObject *resultobj; | |
15590 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15591 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15592 | int arg3 = (int) -1 ; |
d55e5bfc RD |
15593 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15594 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15595 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15596 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15597 | long arg6 = (long) 0 ; | |
15598 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15599 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15600 | bool result; | |
15601 | wxPoint temp4 ; | |
15602 | wxSize temp5 ; | |
15603 | bool temp7 = False ; | |
15604 | PyObject * obj0 = 0 ; | |
15605 | PyObject * obj1 = 0 ; | |
15606 | PyObject * obj2 = 0 ; | |
15607 | PyObject * obj3 = 0 ; | |
15608 | PyObject * obj4 = 0 ; | |
15609 | PyObject * obj5 = 0 ; | |
15610 | PyObject * obj6 = 0 ; | |
15611 | char *kwnames[] = { | |
15612 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15613 | }; | |
15614 | ||
248ed943 | 15615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
15616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15620 | if (obj2) { |
15621 | arg3 = (int) SWIG_AsInt(obj2); | |
15622 | if (PyErr_Occurred()) SWIG_fail; | |
15623 | } | |
d55e5bfc RD |
15624 | if (obj3) { |
15625 | { | |
15626 | arg4 = &temp4; | |
15627 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15628 | } | |
15629 | } | |
15630 | if (obj4) { | |
15631 | { | |
15632 | arg5 = &temp5; | |
15633 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15634 | } | |
15635 | } | |
15636 | if (obj5) { | |
15637 | arg6 = (long) SWIG_AsLong(obj5); | |
15638 | if (PyErr_Occurred()) SWIG_fail; | |
15639 | } | |
15640 | if (obj6) { | |
15641 | { | |
15642 | arg7 = wxString_in_helper(obj6); | |
15643 | if (arg7 == NULL) SWIG_fail; | |
15644 | temp7 = True; | |
15645 | } | |
15646 | } | |
15647 | { | |
15648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15649 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15650 | ||
15651 | wxPyEndAllowThreads(__tstate); | |
15652 | if (PyErr_Occurred()) SWIG_fail; | |
15653 | } | |
15654 | { | |
15655 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15656 | } | |
15657 | { | |
15658 | if (temp7) | |
15659 | delete arg7; | |
15660 | } | |
15661 | return resultobj; | |
15662 | fail: | |
15663 | { | |
15664 | if (temp7) | |
15665 | delete arg7; | |
15666 | } | |
15667 | return NULL; | |
15668 | } | |
15669 | ||
15670 | ||
15671 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15672 | PyObject *resultobj; | |
15673 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15674 | bool result; | |
15675 | PyObject * obj0 = 0 ; | |
15676 | char *kwnames[] = { | |
15677 | (char *) "self", NULL | |
15678 | }; | |
15679 | ||
15680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, | |
15682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15683 | { | |
15684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15685 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15686 | ||
15687 | wxPyEndAllowThreads(__tstate); | |
15688 | if (PyErr_Occurred()) SWIG_fail; | |
15689 | } | |
15690 | { | |
15691 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15692 | } | |
15693 | return resultobj; | |
15694 | fail: | |
15695 | return NULL; | |
15696 | } | |
15697 | ||
15698 | ||
15699 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15700 | PyObject *obj; | |
15701 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15702 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15703 | Py_INCREF(obj); | |
15704 | return Py_BuildValue((char *)""); | |
15705 | } | |
15706 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15707 | PyObject *resultobj; | |
15708 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15709 | int arg2 = (int) 0 ; | |
15710 | int arg3 = (int) -1 ; | |
15711 | int arg4 = (int) -1 ; | |
15712 | wxListbookEvent *result; | |
15713 | PyObject * obj0 = 0 ; | |
15714 | PyObject * obj1 = 0 ; | |
15715 | PyObject * obj2 = 0 ; | |
15716 | PyObject * obj3 = 0 ; | |
15717 | char *kwnames[] = { | |
15718 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15719 | }; | |
15720 | ||
15721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15722 | if (obj0) { | |
15723 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
15724 | if (PyErr_Occurred()) SWIG_fail; | |
15725 | } | |
15726 | if (obj1) { | |
15727 | arg2 = (int) SWIG_AsInt(obj1); | |
15728 | if (PyErr_Occurred()) SWIG_fail; | |
15729 | } | |
15730 | if (obj2) { | |
15731 | arg3 = (int) SWIG_AsInt(obj2); | |
15732 | if (PyErr_Occurred()) SWIG_fail; | |
15733 | } | |
15734 | if (obj3) { | |
15735 | arg4 = (int) SWIG_AsInt(obj3); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
15738 | { | |
15739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15740 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15741 | ||
15742 | wxPyEndAllowThreads(__tstate); | |
15743 | if (PyErr_Occurred()) SWIG_fail; | |
15744 | } | |
15745 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); | |
15746 | return resultobj; | |
15747 | fail: | |
15748 | return NULL; | |
15749 | } | |
15750 | ||
15751 | ||
15752 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15753 | PyObject *obj; | |
15754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15755 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15756 | Py_INCREF(obj); | |
15757 | return Py_BuildValue((char *)""); | |
15758 | } | |
15759 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15760 | PyObject *resultobj; | |
15761 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15762 | wxBookCtrlSizer *result; | |
15763 | PyObject * obj0 = 0 ; | |
15764 | char *kwnames[] = { | |
15765 | (char *) "nb", NULL | |
15766 | }; | |
15767 | ||
15768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, | |
15770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15771 | { | |
15772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15773 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15774 | ||
15775 | wxPyEndAllowThreads(__tstate); | |
15776 | if (PyErr_Occurred()) SWIG_fail; | |
15777 | } | |
15778 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); | |
15779 | return resultobj; | |
15780 | fail: | |
15781 | return NULL; | |
15782 | } | |
15783 | ||
15784 | ||
15785 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15786 | PyObject *resultobj; | |
15787 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15788 | PyObject * obj0 = 0 ; | |
15789 | char *kwnames[] = { | |
15790 | (char *) "self", NULL | |
15791 | }; | |
15792 | ||
15793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15796 | { | |
15797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15798 | (arg1)->RecalcSizes(); | |
15799 | ||
15800 | wxPyEndAllowThreads(__tstate); | |
15801 | if (PyErr_Occurred()) SWIG_fail; | |
15802 | } | |
15803 | Py_INCREF(Py_None); resultobj = Py_None; | |
15804 | return resultobj; | |
15805 | fail: | |
15806 | return NULL; | |
15807 | } | |
15808 | ||
15809 | ||
15810 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15811 | PyObject *resultobj; | |
15812 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15813 | wxSize result; | |
15814 | PyObject * obj0 = 0 ; | |
15815 | char *kwnames[] = { | |
15816 | (char *) "self", NULL | |
15817 | }; | |
15818 | ||
15819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15822 | { | |
15823 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15824 | result = (arg1)->CalcMin(); | |
15825 | ||
15826 | wxPyEndAllowThreads(__tstate); | |
15827 | if (PyErr_Occurred()) SWIG_fail; | |
15828 | } | |
15829 | { | |
15830 | wxSize * resultptr; | |
15831 | resultptr = new wxSize((wxSize &) result); | |
15832 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15833 | } | |
15834 | return resultobj; | |
15835 | fail: | |
15836 | return NULL; | |
15837 | } | |
15838 | ||
15839 | ||
15840 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15841 | PyObject *resultobj; | |
15842 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15843 | wxBookCtrl *result; | |
15844 | PyObject * obj0 = 0 ; | |
15845 | char *kwnames[] = { | |
15846 | (char *) "self", NULL | |
15847 | }; | |
15848 | ||
15849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, | |
15851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15852 | { | |
15853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15854 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15855 | ||
15856 | wxPyEndAllowThreads(__tstate); | |
15857 | if (PyErr_Occurred()) SWIG_fail; | |
15858 | } | |
15859 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); | |
15860 | return resultobj; | |
15861 | fail: | |
15862 | return NULL; | |
15863 | } | |
15864 | ||
15865 | ||
15866 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15867 | PyObject *obj; | |
15868 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15869 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15870 | Py_INCREF(obj); | |
15871 | return Py_BuildValue((char *)""); | |
15872 | } | |
15873 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15874 | PyObject *resultobj; | |
15875 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15876 | wxNotebookSizer *result; | |
15877 | PyObject * obj0 = 0 ; | |
15878 | char *kwnames[] = { | |
15879 | (char *) "nb", NULL | |
15880 | }; | |
15881 | ||
15882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, | |
15884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15885 | { | |
15886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15887 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15888 | ||
15889 | wxPyEndAllowThreads(__tstate); | |
15890 | if (PyErr_Occurred()) SWIG_fail; | |
15891 | } | |
15892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); | |
15893 | return resultobj; | |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15902 | PyObject * obj0 = 0 ; | |
15903 | char *kwnames[] = { | |
15904 | (char *) "self", NULL | |
15905 | }; | |
15906 | ||
15907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15910 | { | |
15911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15912 | (arg1)->RecalcSizes(); | |
15913 | ||
15914 | wxPyEndAllowThreads(__tstate); | |
15915 | if (PyErr_Occurred()) SWIG_fail; | |
15916 | } | |
15917 | Py_INCREF(Py_None); resultobj = Py_None; | |
15918 | return resultobj; | |
15919 | fail: | |
15920 | return NULL; | |
15921 | } | |
15922 | ||
15923 | ||
15924 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15925 | PyObject *resultobj; | |
15926 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15927 | wxSize result; | |
15928 | PyObject * obj0 = 0 ; | |
15929 | char *kwnames[] = { | |
15930 | (char *) "self", NULL | |
15931 | }; | |
15932 | ||
15933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15936 | { | |
15937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15938 | result = (arg1)->CalcMin(); | |
15939 | ||
15940 | wxPyEndAllowThreads(__tstate); | |
15941 | if (PyErr_Occurred()) SWIG_fail; | |
15942 | } | |
15943 | { | |
15944 | wxSize * resultptr; | |
15945 | resultptr = new wxSize((wxSize &) result); | |
15946 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
15947 | } | |
15948 | return resultobj; | |
15949 | fail: | |
15950 | return NULL; | |
15951 | } | |
15952 | ||
15953 | ||
15954 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15955 | PyObject *resultobj; | |
15956 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15957 | wxNotebook *result; | |
15958 | PyObject * obj0 = 0 ; | |
15959 | char *kwnames[] = { | |
15960 | (char *) "self", NULL | |
15961 | }; | |
15962 | ||
15963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, | |
15965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15966 | { | |
15967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15968 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15969 | ||
15970 | wxPyEndAllowThreads(__tstate); | |
15971 | if (PyErr_Occurred()) SWIG_fail; | |
15972 | } | |
15973 | { | |
412d302d | 15974 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
15975 | } |
15976 | return resultobj; | |
15977 | fail: | |
15978 | return NULL; | |
15979 | } | |
15980 | ||
15981 | ||
15982 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15983 | PyObject *obj; | |
15984 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15985 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15986 | Py_INCREF(obj); | |
15987 | return Py_BuildValue((char *)""); | |
15988 | } | |
15989 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15990 | PyObject *resultobj; | |
15991 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15992 | int result; | |
15993 | PyObject * obj0 = 0 ; | |
15994 | char *kwnames[] = { | |
15995 | (char *) "self", NULL | |
15996 | }; | |
15997 | ||
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16001 | { | |
16002 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16003 | result = (int)(arg1)->GetId(); | |
16004 | ||
16005 | wxPyEndAllowThreads(__tstate); | |
16006 | if (PyErr_Occurred()) SWIG_fail; | |
16007 | } | |
16008 | resultobj = SWIG_FromInt((int)result); | |
16009 | return resultobj; | |
16010 | fail: | |
16011 | return NULL; | |
16012 | } | |
16013 | ||
16014 | ||
16015 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16016 | PyObject *resultobj; | |
16017 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16018 | wxControl *result; | |
16019 | PyObject * obj0 = 0 ; | |
16020 | char *kwnames[] = { | |
16021 | (char *) "self", NULL | |
16022 | }; | |
16023 | ||
16024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
16025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16027 | { | |
16028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16029 | result = (wxControl *)(arg1)->GetControl(); | |
16030 | ||
16031 | wxPyEndAllowThreads(__tstate); | |
16032 | if (PyErr_Occurred()) SWIG_fail; | |
16033 | } | |
16034 | { | |
412d302d | 16035 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16036 | } |
16037 | return resultobj; | |
16038 | fail: | |
16039 | return NULL; | |
16040 | } | |
16041 | ||
16042 | ||
16043 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16044 | PyObject *resultobj; | |
16045 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16046 | wxToolBarBase *result; | |
16047 | PyObject * obj0 = 0 ; | |
16048 | char *kwnames[] = { | |
16049 | (char *) "self", NULL | |
16050 | }; | |
16051 | ||
16052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
16053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16055 | { | |
16056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16057 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16058 | ||
16059 | wxPyEndAllowThreads(__tstate); | |
16060 | if (PyErr_Occurred()) SWIG_fail; | |
16061 | } | |
16062 | { | |
412d302d | 16063 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16064 | } |
16065 | return resultobj; | |
16066 | fail: | |
16067 | return NULL; | |
16068 | } | |
16069 | ||
16070 | ||
16071 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16072 | PyObject *resultobj; | |
16073 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16074 | int result; | |
16075 | PyObject * obj0 = 0 ; | |
16076 | char *kwnames[] = { | |
16077 | (char *) "self", NULL | |
16078 | }; | |
16079 | ||
16080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
16081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16083 | { | |
16084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16085 | result = (int)(arg1)->IsButton(); | |
16086 | ||
16087 | wxPyEndAllowThreads(__tstate); | |
16088 | if (PyErr_Occurred()) SWIG_fail; | |
16089 | } | |
16090 | resultobj = SWIG_FromInt((int)result); | |
16091 | return resultobj; | |
16092 | fail: | |
16093 | return NULL; | |
16094 | } | |
16095 | ||
16096 | ||
16097 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16098 | PyObject *resultobj; | |
16099 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16100 | int result; | |
16101 | PyObject * obj0 = 0 ; | |
16102 | char *kwnames[] = { | |
16103 | (char *) "self", NULL | |
16104 | }; | |
16105 | ||
16106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
16107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16109 | { | |
16110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16111 | result = (int)(arg1)->IsControl(); | |
16112 | ||
16113 | wxPyEndAllowThreads(__tstate); | |
16114 | if (PyErr_Occurred()) SWIG_fail; | |
16115 | } | |
16116 | resultobj = SWIG_FromInt((int)result); | |
16117 | return resultobj; | |
16118 | fail: | |
16119 | return NULL; | |
16120 | } | |
16121 | ||
16122 | ||
16123 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16124 | PyObject *resultobj; | |
16125 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16126 | int result; | |
16127 | PyObject * obj0 = 0 ; | |
16128 | char *kwnames[] = { | |
16129 | (char *) "self", NULL | |
16130 | }; | |
16131 | ||
16132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
16133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16135 | { | |
16136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16137 | result = (int)(arg1)->IsSeparator(); | |
16138 | ||
16139 | wxPyEndAllowThreads(__tstate); | |
16140 | if (PyErr_Occurred()) SWIG_fail; | |
16141 | } | |
16142 | resultobj = SWIG_FromInt((int)result); | |
16143 | return resultobj; | |
16144 | fail: | |
16145 | return NULL; | |
16146 | } | |
16147 | ||
16148 | ||
16149 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16150 | PyObject *resultobj; | |
16151 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16152 | int result; | |
16153 | PyObject * obj0 = 0 ; | |
16154 | char *kwnames[] = { | |
16155 | (char *) "self", NULL | |
16156 | }; | |
16157 | ||
16158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
16159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16161 | { | |
16162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16163 | result = (int)(arg1)->GetStyle(); | |
16164 | ||
16165 | wxPyEndAllowThreads(__tstate); | |
16166 | if (PyErr_Occurred()) SWIG_fail; | |
16167 | } | |
16168 | resultobj = SWIG_FromInt((int)result); | |
16169 | return resultobj; | |
16170 | fail: | |
16171 | return NULL; | |
16172 | } | |
16173 | ||
16174 | ||
16175 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16176 | PyObject *resultobj; | |
16177 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16178 | int result; | |
16179 | PyObject * obj0 = 0 ; | |
16180 | char *kwnames[] = { | |
16181 | (char *) "self", NULL | |
16182 | }; | |
16183 | ||
16184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
16185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16187 | { | |
16188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16189 | result = (int)(arg1)->GetKind(); | |
16190 | ||
16191 | wxPyEndAllowThreads(__tstate); | |
16192 | if (PyErr_Occurred()) SWIG_fail; | |
16193 | } | |
16194 | resultobj = SWIG_FromInt((int)result); | |
16195 | return resultobj; | |
16196 | fail: | |
16197 | return NULL; | |
16198 | } | |
16199 | ||
16200 | ||
16201 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16202 | PyObject *resultobj; | |
16203 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16204 | bool result; | |
16205 | PyObject * obj0 = 0 ; | |
16206 | char *kwnames[] = { | |
16207 | (char *) "self", NULL | |
16208 | }; | |
16209 | ||
16210 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
16211 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16212 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16213 | { | |
16214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16215 | result = (bool)(arg1)->IsEnabled(); | |
16216 | ||
16217 | wxPyEndAllowThreads(__tstate); | |
16218 | if (PyErr_Occurred()) SWIG_fail; | |
16219 | } | |
16220 | { | |
16221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16222 | } | |
16223 | return resultobj; | |
16224 | fail: | |
16225 | return NULL; | |
16226 | } | |
16227 | ||
16228 | ||
16229 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16230 | PyObject *resultobj; | |
16231 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16232 | bool result; | |
16233 | PyObject * obj0 = 0 ; | |
16234 | char *kwnames[] = { | |
16235 | (char *) "self", NULL | |
16236 | }; | |
16237 | ||
16238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
16239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16241 | { | |
16242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16243 | result = (bool)(arg1)->IsToggled(); | |
16244 | ||
16245 | wxPyEndAllowThreads(__tstate); | |
16246 | if (PyErr_Occurred()) SWIG_fail; | |
16247 | } | |
16248 | { | |
16249 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16250 | } | |
16251 | return resultobj; | |
16252 | fail: | |
16253 | return NULL; | |
16254 | } | |
16255 | ||
16256 | ||
16257 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16258 | PyObject *resultobj; | |
16259 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16260 | bool result; | |
16261 | PyObject * obj0 = 0 ; | |
16262 | char *kwnames[] = { | |
16263 | (char *) "self", NULL | |
16264 | }; | |
16265 | ||
16266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
16267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16269 | { | |
16270 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16271 | result = (bool)(arg1)->CanBeToggled(); | |
16272 | ||
16273 | wxPyEndAllowThreads(__tstate); | |
16274 | if (PyErr_Occurred()) SWIG_fail; | |
16275 | } | |
16276 | { | |
16277 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16278 | } | |
16279 | return resultobj; | |
16280 | fail: | |
16281 | return NULL; | |
16282 | } | |
16283 | ||
16284 | ||
16285 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16286 | PyObject *resultobj; | |
16287 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16288 | wxBitmap *result; | |
16289 | PyObject * obj0 = 0 ; | |
16290 | char *kwnames[] = { | |
16291 | (char *) "self", NULL | |
16292 | }; | |
16293 | ||
16294 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
16295 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16297 | { | |
16298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16299 | { | |
16300 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16301 | result = (wxBitmap *) &_result_ref; | |
16302 | } | |
16303 | ||
16304 | wxPyEndAllowThreads(__tstate); | |
16305 | if (PyErr_Occurred()) SWIG_fail; | |
16306 | } | |
16307 | { | |
16308 | wxBitmap* resultptr = new wxBitmap(*result); | |
16309 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16310 | } | |
16311 | return resultobj; | |
16312 | fail: | |
16313 | return NULL; | |
16314 | } | |
16315 | ||
16316 | ||
16317 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16318 | PyObject *resultobj; | |
16319 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16320 | wxBitmap *result; | |
16321 | PyObject * obj0 = 0 ; | |
16322 | char *kwnames[] = { | |
16323 | (char *) "self", NULL | |
16324 | }; | |
16325 | ||
16326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
16327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16329 | { | |
16330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16331 | { | |
16332 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16333 | result = (wxBitmap *) &_result_ref; | |
16334 | } | |
16335 | ||
16336 | wxPyEndAllowThreads(__tstate); | |
16337 | if (PyErr_Occurred()) SWIG_fail; | |
16338 | } | |
16339 | { | |
16340 | wxBitmap* resultptr = new wxBitmap(*result); | |
16341 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16342 | } | |
16343 | return resultobj; | |
16344 | fail: | |
16345 | return NULL; | |
16346 | } | |
16347 | ||
16348 | ||
16349 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16350 | PyObject *resultobj; | |
16351 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16352 | wxBitmap result; | |
16353 | PyObject * obj0 = 0 ; | |
16354 | char *kwnames[] = { | |
16355 | (char *) "self", NULL | |
16356 | }; | |
16357 | ||
16358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
16359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16361 | { | |
16362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16363 | result = (arg1)->GetBitmap(); | |
16364 | ||
16365 | wxPyEndAllowThreads(__tstate); | |
16366 | if (PyErr_Occurred()) SWIG_fail; | |
16367 | } | |
16368 | { | |
16369 | wxBitmap * resultptr; | |
16370 | resultptr = new wxBitmap((wxBitmap &) result); | |
16371 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16372 | } | |
16373 | return resultobj; | |
16374 | fail: | |
16375 | return NULL; | |
16376 | } | |
16377 | ||
16378 | ||
16379 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16380 | PyObject *resultobj; | |
16381 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16382 | wxString result; | |
16383 | PyObject * obj0 = 0 ; | |
16384 | char *kwnames[] = { | |
16385 | (char *) "self", NULL | |
16386 | }; | |
16387 | ||
16388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
16389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16391 | { | |
16392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16393 | result = (arg1)->GetLabel(); | |
16394 | ||
16395 | wxPyEndAllowThreads(__tstate); | |
16396 | if (PyErr_Occurred()) SWIG_fail; | |
16397 | } | |
16398 | { | |
16399 | #if wxUSE_UNICODE | |
16400 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16401 | #else | |
16402 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16403 | #endif | |
16404 | } | |
16405 | return resultobj; | |
16406 | fail: | |
16407 | return NULL; | |
16408 | } | |
16409 | ||
16410 | ||
16411 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16412 | PyObject *resultobj; | |
16413 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16414 | wxString result; | |
16415 | PyObject * obj0 = 0 ; | |
16416 | char *kwnames[] = { | |
16417 | (char *) "self", NULL | |
16418 | }; | |
16419 | ||
16420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
16421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16423 | { | |
16424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16425 | result = (arg1)->GetShortHelp(); | |
16426 | ||
16427 | wxPyEndAllowThreads(__tstate); | |
16428 | if (PyErr_Occurred()) SWIG_fail; | |
16429 | } | |
16430 | { | |
16431 | #if wxUSE_UNICODE | |
16432 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16433 | #else | |
16434 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16435 | #endif | |
16436 | } | |
16437 | return resultobj; | |
16438 | fail: | |
16439 | return NULL; | |
16440 | } | |
16441 | ||
16442 | ||
16443 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16444 | PyObject *resultobj; | |
16445 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16446 | wxString result; | |
16447 | PyObject * obj0 = 0 ; | |
16448 | char *kwnames[] = { | |
16449 | (char *) "self", NULL | |
16450 | }; | |
16451 | ||
16452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
16453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16455 | { | |
16456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16457 | result = (arg1)->GetLongHelp(); | |
16458 | ||
16459 | wxPyEndAllowThreads(__tstate); | |
16460 | if (PyErr_Occurred()) SWIG_fail; | |
16461 | } | |
16462 | { | |
16463 | #if wxUSE_UNICODE | |
16464 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16465 | #else | |
16466 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16467 | #endif | |
16468 | } | |
16469 | return resultobj; | |
16470 | fail: | |
16471 | return NULL; | |
16472 | } | |
16473 | ||
16474 | ||
16475 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16476 | PyObject *resultobj; | |
16477 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16478 | bool arg2 ; | |
16479 | bool result; | |
16480 | PyObject * obj0 = 0 ; | |
16481 | PyObject * obj1 = 0 ; | |
16482 | char *kwnames[] = { | |
16483 | (char *) "self",(char *) "enable", NULL | |
16484 | }; | |
16485 | ||
16486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
16487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16489 | arg2 = (bool) SWIG_AsBool(obj1); | |
16490 | if (PyErr_Occurred()) SWIG_fail; | |
16491 | { | |
16492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16493 | result = (bool)(arg1)->Enable(arg2); | |
16494 | ||
16495 | wxPyEndAllowThreads(__tstate); | |
16496 | if (PyErr_Occurred()) SWIG_fail; | |
16497 | } | |
16498 | { | |
16499 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16500 | } | |
16501 | return resultobj; | |
16502 | fail: | |
16503 | return NULL; | |
16504 | } | |
16505 | ||
16506 | ||
16507 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16508 | PyObject *resultobj; | |
16509 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16510 | PyObject * obj0 = 0 ; | |
16511 | char *kwnames[] = { | |
16512 | (char *) "self", NULL | |
16513 | }; | |
16514 | ||
16515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
16516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16518 | { | |
16519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16520 | (arg1)->Toggle(); | |
16521 | ||
16522 | wxPyEndAllowThreads(__tstate); | |
16523 | if (PyErr_Occurred()) SWIG_fail; | |
16524 | } | |
16525 | Py_INCREF(Py_None); resultobj = Py_None; | |
16526 | return resultobj; | |
16527 | fail: | |
16528 | return NULL; | |
16529 | } | |
16530 | ||
16531 | ||
16532 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16533 | PyObject *resultobj; | |
16534 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16535 | bool arg2 ; | |
16536 | bool result; | |
16537 | PyObject * obj0 = 0 ; | |
16538 | PyObject * obj1 = 0 ; | |
16539 | char *kwnames[] = { | |
16540 | (char *) "self",(char *) "toggle", NULL | |
16541 | }; | |
16542 | ||
16543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
16544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16546 | arg2 = (bool) SWIG_AsBool(obj1); | |
16547 | if (PyErr_Occurred()) SWIG_fail; | |
16548 | { | |
16549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16550 | result = (bool)(arg1)->SetToggle(arg2); | |
16551 | ||
16552 | wxPyEndAllowThreads(__tstate); | |
16553 | if (PyErr_Occurred()) SWIG_fail; | |
16554 | } | |
16555 | { | |
16556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16557 | } | |
16558 | return resultobj; | |
16559 | fail: | |
16560 | return NULL; | |
16561 | } | |
16562 | ||
16563 | ||
16564 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16565 | PyObject *resultobj; | |
16566 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16567 | wxString *arg2 = 0 ; | |
16568 | bool result; | |
16569 | bool temp2 = False ; | |
16570 | PyObject * obj0 = 0 ; | |
16571 | PyObject * obj1 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self",(char *) "help", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16579 | { | |
16580 | arg2 = wxString_in_helper(obj1); | |
16581 | if (arg2 == NULL) SWIG_fail; | |
16582 | temp2 = True; | |
16583 | } | |
16584 | { | |
16585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16586 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16587 | ||
16588 | wxPyEndAllowThreads(__tstate); | |
16589 | if (PyErr_Occurred()) SWIG_fail; | |
16590 | } | |
16591 | { | |
16592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16593 | } | |
16594 | { | |
16595 | if (temp2) | |
16596 | delete arg2; | |
16597 | } | |
16598 | return resultobj; | |
16599 | fail: | |
16600 | { | |
16601 | if (temp2) | |
16602 | delete arg2; | |
16603 | } | |
16604 | return NULL; | |
16605 | } | |
16606 | ||
16607 | ||
16608 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16609 | PyObject *resultobj; | |
16610 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16611 | wxString *arg2 = 0 ; | |
16612 | bool result; | |
16613 | bool temp2 = False ; | |
16614 | PyObject * obj0 = 0 ; | |
16615 | PyObject * obj1 = 0 ; | |
16616 | char *kwnames[] = { | |
16617 | (char *) "self",(char *) "help", NULL | |
16618 | }; | |
16619 | ||
16620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
16621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16623 | { | |
16624 | arg2 = wxString_in_helper(obj1); | |
16625 | if (arg2 == NULL) SWIG_fail; | |
16626 | temp2 = True; | |
16627 | } | |
16628 | { | |
16629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16630 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16631 | ||
16632 | wxPyEndAllowThreads(__tstate); | |
16633 | if (PyErr_Occurred()) SWIG_fail; | |
16634 | } | |
16635 | { | |
16636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16637 | } | |
16638 | { | |
16639 | if (temp2) | |
16640 | delete arg2; | |
16641 | } | |
16642 | return resultobj; | |
16643 | fail: | |
16644 | { | |
16645 | if (temp2) | |
16646 | delete arg2; | |
16647 | } | |
16648 | return NULL; | |
16649 | } | |
16650 | ||
16651 | ||
16652 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16653 | PyObject *resultobj; | |
16654 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16655 | wxBitmap *arg2 = 0 ; | |
16656 | PyObject * obj0 = 0 ; | |
16657 | PyObject * obj1 = 0 ; | |
16658 | char *kwnames[] = { | |
16659 | (char *) "self",(char *) "bmp", NULL | |
16660 | }; | |
16661 | ||
16662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16666 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16667 | SWIG_fail; | |
16668 | if (arg2 == NULL) { | |
16669 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16670 | SWIG_fail; | |
16671 | } | |
16672 | { | |
16673 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16674 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16675 | ||
16676 | wxPyEndAllowThreads(__tstate); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | } | |
16679 | Py_INCREF(Py_None); resultobj = Py_None; | |
16680 | return resultobj; | |
16681 | fail: | |
16682 | return NULL; | |
16683 | } | |
16684 | ||
16685 | ||
16686 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16687 | PyObject *resultobj; | |
16688 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16689 | wxBitmap *arg2 = 0 ; | |
16690 | PyObject * obj0 = 0 ; | |
16691 | PyObject * obj1 = 0 ; | |
16692 | char *kwnames[] = { | |
16693 | (char *) "self",(char *) "bmp", NULL | |
16694 | }; | |
16695 | ||
16696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
16697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16701 | SWIG_fail; | |
16702 | if (arg2 == NULL) { | |
16703 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16704 | SWIG_fail; | |
16705 | } | |
16706 | { | |
16707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16708 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16709 | ||
16710 | wxPyEndAllowThreads(__tstate); | |
16711 | if (PyErr_Occurred()) SWIG_fail; | |
16712 | } | |
16713 | Py_INCREF(Py_None); resultobj = Py_None; | |
16714 | return resultobj; | |
16715 | fail: | |
16716 | return NULL; | |
16717 | } | |
16718 | ||
16719 | ||
16720 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16721 | PyObject *resultobj; | |
16722 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16723 | wxString *arg2 = 0 ; | |
16724 | bool temp2 = False ; | |
16725 | PyObject * obj0 = 0 ; | |
16726 | PyObject * obj1 = 0 ; | |
16727 | char *kwnames[] = { | |
16728 | (char *) "self",(char *) "label", NULL | |
16729 | }; | |
16730 | ||
16731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
16732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16734 | { | |
16735 | arg2 = wxString_in_helper(obj1); | |
16736 | if (arg2 == NULL) SWIG_fail; | |
16737 | temp2 = True; | |
16738 | } | |
16739 | { | |
16740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16741 | (arg1)->SetLabel((wxString const &)*arg2); | |
16742 | ||
16743 | wxPyEndAllowThreads(__tstate); | |
16744 | if (PyErr_Occurred()) SWIG_fail; | |
16745 | } | |
16746 | Py_INCREF(Py_None); resultobj = Py_None; | |
16747 | { | |
16748 | if (temp2) | |
16749 | delete arg2; | |
16750 | } | |
16751 | return resultobj; | |
16752 | fail: | |
16753 | { | |
16754 | if (temp2) | |
16755 | delete arg2; | |
16756 | } | |
16757 | return NULL; | |
16758 | } | |
16759 | ||
16760 | ||
16761 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16762 | PyObject *resultobj; | |
16763 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16764 | PyObject * obj0 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16772 | { | |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | (arg1)->Detach(); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | Py_INCREF(Py_None); resultobj = Py_None; | |
16780 | return resultobj; | |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16787 | PyObject *resultobj; | |
16788 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16789 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16790 | PyObject * obj0 = 0 ; | |
16791 | PyObject * obj1 = 0 ; | |
16792 | char *kwnames[] = { | |
16793 | (char *) "self",(char *) "tbar", NULL | |
16794 | }; | |
16795 | ||
16796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
16797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16801 | { | |
16802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16803 | (arg1)->Attach(arg2); | |
16804 | ||
16805 | wxPyEndAllowThreads(__tstate); | |
16806 | if (PyErr_Occurred()) SWIG_fail; | |
16807 | } | |
16808 | Py_INCREF(Py_None); resultobj = Py_None; | |
16809 | return resultobj; | |
16810 | fail: | |
16811 | return NULL; | |
16812 | } | |
16813 | ||
16814 | ||
16815 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16816 | PyObject *resultobj; | |
16817 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16818 | PyObject *result; | |
16819 | PyObject * obj0 = 0 ; | |
16820 | char *kwnames[] = { | |
16821 | (char *) "self", NULL | |
16822 | }; | |
16823 | ||
16824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
16825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16827 | { | |
16828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16829 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16830 | ||
16831 | wxPyEndAllowThreads(__tstate); | |
16832 | if (PyErr_Occurred()) SWIG_fail; | |
16833 | } | |
16834 | resultobj = result; | |
16835 | return resultobj; | |
16836 | fail: | |
16837 | return NULL; | |
16838 | } | |
16839 | ||
16840 | ||
16841 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16842 | PyObject *resultobj; | |
16843 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16844 | PyObject *arg2 = (PyObject *) 0 ; | |
16845 | PyObject * obj0 = 0 ; | |
16846 | PyObject * obj1 = 0 ; | |
16847 | char *kwnames[] = { | |
16848 | (char *) "self",(char *) "clientData", NULL | |
16849 | }; | |
16850 | ||
16851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
16852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, | |
16853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16854 | arg2 = obj1; | |
16855 | { | |
16856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16857 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16858 | ||
16859 | wxPyEndAllowThreads(__tstate); | |
16860 | if (PyErr_Occurred()) SWIG_fail; | |
16861 | } | |
16862 | Py_INCREF(Py_None); resultobj = Py_None; | |
16863 | return resultobj; | |
16864 | fail: | |
16865 | return NULL; | |
16866 | } | |
16867 | ||
16868 | ||
16869 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16870 | PyObject *obj; | |
16871 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16872 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16873 | Py_INCREF(obj); | |
16874 | return Py_BuildValue((char *)""); | |
16875 | } | |
16876 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16877 | PyObject *resultobj; | |
16878 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16879 | int arg2 ; | |
16880 | wxString *arg3 = 0 ; | |
16881 | wxBitmap *arg4 = 0 ; | |
16882 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16883 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16884 | int arg6 = (int) wxITEM_NORMAL ; | |
16885 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16886 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16887 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16888 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16889 | PyObject *arg9 = (PyObject *) NULL ; | |
16890 | wxToolBarToolBase *result; | |
16891 | bool temp3 = False ; | |
16892 | bool temp7 = False ; | |
16893 | bool temp8 = False ; | |
16894 | PyObject * obj0 = 0 ; | |
16895 | PyObject * obj1 = 0 ; | |
16896 | PyObject * obj2 = 0 ; | |
16897 | PyObject * obj3 = 0 ; | |
16898 | PyObject * obj4 = 0 ; | |
16899 | PyObject * obj5 = 0 ; | |
16900 | PyObject * obj6 = 0 ; | |
16901 | PyObject * obj7 = 0 ; | |
16902 | PyObject * obj8 = 0 ; | |
16903 | char *kwnames[] = { | |
16904 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16905 | }; | |
16906 | ||
16907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
16908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
16909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16910 | arg2 = (int) SWIG_AsInt(obj1); | |
16911 | if (PyErr_Occurred()) SWIG_fail; | |
16912 | { | |
16913 | arg3 = wxString_in_helper(obj2); | |
16914 | if (arg3 == NULL) SWIG_fail; | |
16915 | temp3 = True; | |
16916 | } | |
16917 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
16918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16919 | SWIG_fail; | |
16920 | if (arg4 == NULL) { | |
16921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16922 | SWIG_fail; | |
16923 | } | |
16924 | if (obj4) { | |
16925 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
16926 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16927 | SWIG_fail; | |
16928 | if (arg5 == NULL) { | |
16929 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
16930 | SWIG_fail; | |
16931 | } | |
16932 | } | |
16933 | if (obj5) { | |
16934 | arg6 = (wxItemKind) SWIG_AsInt(obj5); | |
16935 | if (PyErr_Occurred()) SWIG_fail; | |
16936 | } | |
16937 | if (obj6) { | |
16938 | { | |
16939 | arg7 = wxString_in_helper(obj6); | |
16940 | if (arg7 == NULL) SWIG_fail; | |
16941 | temp7 = True; | |
16942 | } | |
16943 | } | |
16944 | if (obj7) { | |
16945 | { | |
16946 | arg8 = wxString_in_helper(obj7); | |
16947 | if (arg8 == NULL) SWIG_fail; | |
16948 | temp8 = True; | |
16949 | } | |
16950 | } | |
16951 | if (obj8) { | |
16952 | arg9 = obj8; | |
16953 | } | |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | { | |
412d302d | 16962 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
16963 | } |
16964 | { | |
16965 | if (temp3) | |
16966 | delete arg3; | |
16967 | } | |
16968 | { | |
16969 | if (temp7) | |
16970 | delete arg7; | |
16971 | } | |
16972 | { | |
16973 | if (temp8) | |
16974 | delete arg8; | |
16975 | } | |
16976 | return resultobj; | |
16977 | fail: | |
16978 | { | |
16979 | if (temp3) | |
16980 | delete arg3; | |
16981 | } | |
16982 | { | |
16983 | if (temp7) | |
16984 | delete arg7; | |
16985 | } | |
16986 | { | |
16987 | if (temp8) | |
16988 | delete arg8; | |
16989 | } | |
16990 | return NULL; | |
16991 | } | |
16992 | ||
16993 | ||
16994 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16995 | PyObject *resultobj; | |
16996 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16997 | size_t arg2 ; | |
16998 | int arg3 ; | |
16999 | wxString *arg4 = 0 ; | |
17000 | wxBitmap *arg5 = 0 ; | |
17001 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
17002 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
17003 | int arg7 = (int) wxITEM_NORMAL ; | |
17004 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
17005 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
17006 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
17007 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
17008 | PyObject *arg10 = (PyObject *) NULL ; | |
17009 | wxToolBarToolBase *result; | |
17010 | bool temp4 = False ; | |
17011 | bool temp8 = False ; | |
17012 | bool temp9 = False ; | |
17013 | PyObject * obj0 = 0 ; | |
17014 | PyObject * obj1 = 0 ; | |
17015 | PyObject * obj2 = 0 ; | |
17016 | PyObject * obj3 = 0 ; | |
17017 | PyObject * obj4 = 0 ; | |
17018 | PyObject * obj5 = 0 ; | |
17019 | PyObject * obj6 = 0 ; | |
17020 | PyObject * obj7 = 0 ; | |
17021 | PyObject * obj8 = 0 ; | |
17022 | PyObject * obj9 = 0 ; | |
17023 | char *kwnames[] = { | |
17024 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
17025 | }; | |
17026 | ||
17027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
17028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17030 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17031 | if (PyErr_Occurred()) SWIG_fail; | |
17032 | arg3 = (int) SWIG_AsInt(obj2); | |
17033 | if (PyErr_Occurred()) SWIG_fail; | |
17034 | { | |
17035 | arg4 = wxString_in_helper(obj3); | |
17036 | if (arg4 == NULL) SWIG_fail; | |
17037 | temp4 = True; | |
17038 | } | |
17039 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, | |
17040 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17041 | SWIG_fail; | |
17042 | if (arg5 == NULL) { | |
17043 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17044 | SWIG_fail; | |
17045 | } | |
17046 | if (obj5) { | |
17047 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, | |
17048 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17049 | SWIG_fail; | |
17050 | if (arg6 == NULL) { | |
17051 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
17052 | SWIG_fail; | |
17053 | } | |
17054 | } | |
17055 | if (obj6) { | |
17056 | arg7 = (wxItemKind) SWIG_AsInt(obj6); | |
17057 | if (PyErr_Occurred()) SWIG_fail; | |
17058 | } | |
17059 | if (obj7) { | |
17060 | { | |
17061 | arg8 = wxString_in_helper(obj7); | |
17062 | if (arg8 == NULL) SWIG_fail; | |
17063 | temp8 = True; | |
17064 | } | |
17065 | } | |
17066 | if (obj8) { | |
17067 | { | |
17068 | arg9 = wxString_in_helper(obj8); | |
17069 | if (arg9 == NULL) SWIG_fail; | |
17070 | temp9 = True; | |
17071 | } | |
17072 | } | |
17073 | if (obj9) { | |
17074 | arg10 = obj9; | |
17075 | } | |
17076 | { | |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | 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); | |
17079 | ||
17080 | wxPyEndAllowThreads(__tstate); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
17083 | { | |
412d302d | 17084 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17085 | } |
17086 | { | |
17087 | if (temp4) | |
17088 | delete arg4; | |
17089 | } | |
17090 | { | |
17091 | if (temp8) | |
17092 | delete arg8; | |
17093 | } | |
17094 | { | |
17095 | if (temp9) | |
17096 | delete arg9; | |
17097 | } | |
17098 | return resultobj; | |
17099 | fail: | |
17100 | { | |
17101 | if (temp4) | |
17102 | delete arg4; | |
17103 | } | |
17104 | { | |
17105 | if (temp8) | |
17106 | delete arg8; | |
17107 | } | |
17108 | { | |
17109 | if (temp9) | |
17110 | delete arg9; | |
17111 | } | |
17112 | return NULL; | |
17113 | } | |
17114 | ||
17115 | ||
17116 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17117 | PyObject *resultobj; | |
17118 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17119 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17120 | wxToolBarToolBase *result; | |
17121 | PyObject * obj0 = 0 ; | |
17122 | PyObject * obj1 = 0 ; | |
17123 | char *kwnames[] = { | |
17124 | (char *) "self",(char *) "tool", NULL | |
17125 | }; | |
17126 | ||
17127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
17128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17130 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17132 | { | |
17133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17134 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17135 | ||
17136 | wxPyEndAllowThreads(__tstate); | |
17137 | if (PyErr_Occurred()) SWIG_fail; | |
17138 | } | |
17139 | { | |
412d302d | 17140 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17141 | } |
17142 | return resultobj; | |
17143 | fail: | |
17144 | return NULL; | |
17145 | } | |
17146 | ||
17147 | ||
17148 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17149 | PyObject *resultobj; | |
17150 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17151 | size_t arg2 ; | |
17152 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17153 | wxToolBarToolBase *result; | |
17154 | PyObject * obj0 = 0 ; | |
17155 | PyObject * obj1 = 0 ; | |
17156 | PyObject * obj2 = 0 ; | |
17157 | char *kwnames[] = { | |
17158 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17159 | }; | |
17160 | ||
17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
17166 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17168 | { | |
17169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17170 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17171 | ||
17172 | wxPyEndAllowThreads(__tstate); | |
17173 | if (PyErr_Occurred()) SWIG_fail; | |
17174 | } | |
17175 | { | |
412d302d | 17176 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17177 | } |
17178 | return resultobj; | |
17179 | fail: | |
17180 | return NULL; | |
17181 | } | |
17182 | ||
17183 | ||
17184 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17185 | PyObject *resultobj; | |
17186 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17187 | wxControl *arg2 = (wxControl *) 0 ; | |
17188 | wxToolBarToolBase *result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | PyObject * obj1 = 0 ; | |
17191 | char *kwnames[] = { | |
17192 | (char *) "self",(char *) "control", NULL | |
17193 | }; | |
17194 | ||
17195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
17196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17198 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17200 | { | |
17201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17202 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17203 | ||
17204 | wxPyEndAllowThreads(__tstate); | |
17205 | if (PyErr_Occurred()) SWIG_fail; | |
17206 | } | |
17207 | { | |
412d302d | 17208 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17209 | } |
17210 | return resultobj; | |
17211 | fail: | |
17212 | return NULL; | |
17213 | } | |
17214 | ||
17215 | ||
17216 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17217 | PyObject *resultobj; | |
17218 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17219 | size_t arg2 ; | |
17220 | wxControl *arg3 = (wxControl *) 0 ; | |
17221 | wxToolBarToolBase *result; | |
17222 | PyObject * obj0 = 0 ; | |
17223 | PyObject * obj1 = 0 ; | |
17224 | PyObject * obj2 = 0 ; | |
17225 | char *kwnames[] = { | |
17226 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17227 | }; | |
17228 | ||
17229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17232 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17233 | if (PyErr_Occurred()) SWIG_fail; | |
17234 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17236 | { | |
17237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17238 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17239 | ||
17240 | wxPyEndAllowThreads(__tstate); | |
17241 | if (PyErr_Occurred()) SWIG_fail; | |
17242 | } | |
17243 | { | |
412d302d | 17244 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17245 | } |
17246 | return resultobj; | |
17247 | fail: | |
17248 | return NULL; | |
17249 | } | |
17250 | ||
17251 | ||
17252 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17253 | PyObject *resultobj; | |
17254 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17255 | int arg2 ; | |
17256 | wxControl *result; | |
17257 | PyObject * obj0 = 0 ; | |
17258 | PyObject * obj1 = 0 ; | |
17259 | char *kwnames[] = { | |
17260 | (char *) "self",(char *) "id", NULL | |
17261 | }; | |
17262 | ||
17263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; | |
17264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17266 | arg2 = (int) SWIG_AsInt(obj1); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | { | |
17269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17270 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17271 | ||
17272 | wxPyEndAllowThreads(__tstate); | |
17273 | if (PyErr_Occurred()) SWIG_fail; | |
17274 | } | |
17275 | { | |
412d302d | 17276 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17277 | } |
17278 | return resultobj; | |
17279 | fail: | |
17280 | return NULL; | |
17281 | } | |
17282 | ||
17283 | ||
17284 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17285 | PyObject *resultobj; | |
17286 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17287 | wxToolBarToolBase *result; | |
17288 | PyObject * obj0 = 0 ; | |
17289 | char *kwnames[] = { | |
17290 | (char *) "self", NULL | |
17291 | }; | |
17292 | ||
17293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
17294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17296 | { | |
17297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17298 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17299 | ||
17300 | wxPyEndAllowThreads(__tstate); | |
17301 | if (PyErr_Occurred()) SWIG_fail; | |
17302 | } | |
17303 | { | |
412d302d | 17304 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17305 | } |
17306 | return resultobj; | |
17307 | fail: | |
17308 | return NULL; | |
17309 | } | |
17310 | ||
17311 | ||
17312 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17313 | PyObject *resultobj; | |
17314 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17315 | size_t arg2 ; | |
17316 | wxToolBarToolBase *result; | |
17317 | PyObject * obj0 = 0 ; | |
17318 | PyObject * obj1 = 0 ; | |
17319 | char *kwnames[] = { | |
17320 | (char *) "self",(char *) "pos", NULL | |
17321 | }; | |
17322 | ||
17323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
17324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17326 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17327 | if (PyErr_Occurred()) SWIG_fail; | |
17328 | { | |
17329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17330 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17331 | ||
17332 | wxPyEndAllowThreads(__tstate); | |
17333 | if (PyErr_Occurred()) SWIG_fail; | |
17334 | } | |
17335 | { | |
412d302d | 17336 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17337 | } |
17338 | return resultobj; | |
17339 | fail: | |
17340 | return NULL; | |
17341 | } | |
17342 | ||
17343 | ||
17344 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17345 | PyObject *resultobj; | |
17346 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17347 | int arg2 ; | |
17348 | wxToolBarToolBase *result; | |
17349 | PyObject * obj0 = 0 ; | |
17350 | PyObject * obj1 = 0 ; | |
17351 | char *kwnames[] = { | |
17352 | (char *) "self",(char *) "id", NULL | |
17353 | }; | |
17354 | ||
17355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; | |
17356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17358 | arg2 = (int) SWIG_AsInt(obj1); | |
17359 | if (PyErr_Occurred()) SWIG_fail; | |
17360 | { | |
17361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17362 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17363 | ||
17364 | wxPyEndAllowThreads(__tstate); | |
17365 | if (PyErr_Occurred()) SWIG_fail; | |
17366 | } | |
17367 | { | |
412d302d | 17368 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
17369 | } |
17370 | return resultobj; | |
17371 | fail: | |
17372 | return NULL; | |
17373 | } | |
17374 | ||
17375 | ||
17376 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17377 | PyObject *resultobj; | |
17378 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17379 | size_t arg2 ; | |
17380 | bool result; | |
17381 | PyObject * obj0 = 0 ; | |
17382 | PyObject * obj1 = 0 ; | |
17383 | char *kwnames[] = { | |
17384 | (char *) "self",(char *) "pos", NULL | |
17385 | }; | |
17386 | ||
17387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
17388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17390 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17391 | if (PyErr_Occurred()) SWIG_fail; | |
17392 | { | |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
17399 | { | |
17400 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17401 | } | |
17402 | return resultobj; | |
17403 | fail: | |
17404 | return NULL; | |
17405 | } | |
17406 | ||
17407 | ||
17408 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17409 | PyObject *resultobj; | |
17410 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17411 | int arg2 ; | |
17412 | bool result; | |
17413 | PyObject * obj0 = 0 ; | |
17414 | PyObject * obj1 = 0 ; | |
17415 | char *kwnames[] = { | |
17416 | (char *) "self",(char *) "id", NULL | |
17417 | }; | |
17418 | ||
17419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; | |
17420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17422 | arg2 = (int) SWIG_AsInt(obj1); | |
17423 | if (PyErr_Occurred()) SWIG_fail; | |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | result = (bool)(arg1)->DeleteTool(arg2); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | { | |
17432 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17433 | } | |
17434 | return resultobj; | |
17435 | fail: | |
17436 | return NULL; | |
17437 | } | |
17438 | ||
17439 | ||
17440 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17441 | PyObject *resultobj; | |
17442 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17443 | PyObject * obj0 = 0 ; | |
17444 | char *kwnames[] = { | |
17445 | (char *) "self", NULL | |
17446 | }; | |
17447 | ||
17448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
17449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17451 | { | |
17452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17453 | (arg1)->ClearTools(); | |
17454 | ||
17455 | wxPyEndAllowThreads(__tstate); | |
17456 | if (PyErr_Occurred()) SWIG_fail; | |
17457 | } | |
17458 | Py_INCREF(Py_None); resultobj = Py_None; | |
17459 | return resultobj; | |
17460 | fail: | |
17461 | return NULL; | |
17462 | } | |
17463 | ||
17464 | ||
17465 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17466 | PyObject *resultobj; | |
17467 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17468 | bool result; | |
17469 | PyObject * obj0 = 0 ; | |
17470 | char *kwnames[] = { | |
17471 | (char *) "self", NULL | |
17472 | }; | |
17473 | ||
17474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
17475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17477 | { | |
17478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17479 | result = (bool)(arg1)->Realize(); | |
17480 | ||
17481 | wxPyEndAllowThreads(__tstate); | |
17482 | if (PyErr_Occurred()) SWIG_fail; | |
17483 | } | |
17484 | { | |
17485 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17486 | } | |
17487 | return resultobj; | |
17488 | fail: | |
17489 | return NULL; | |
17490 | } | |
17491 | ||
17492 | ||
17493 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17494 | PyObject *resultobj; | |
17495 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17496 | int arg2 ; | |
17497 | bool arg3 ; | |
17498 | PyObject * obj0 = 0 ; | |
17499 | PyObject * obj1 = 0 ; | |
17500 | PyObject * obj2 = 0 ; | |
17501 | char *kwnames[] = { | |
17502 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17503 | }; | |
17504 | ||
17505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17508 | arg2 = (int) SWIG_AsInt(obj1); | |
17509 | if (PyErr_Occurred()) SWIG_fail; | |
17510 | arg3 = (bool) SWIG_AsBool(obj2); | |
17511 | if (PyErr_Occurred()) SWIG_fail; | |
17512 | { | |
17513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17514 | (arg1)->EnableTool(arg2,arg3); | |
17515 | ||
17516 | wxPyEndAllowThreads(__tstate); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
17518 | } | |
17519 | Py_INCREF(Py_None); resultobj = Py_None; | |
17520 | return resultobj; | |
17521 | fail: | |
17522 | return NULL; | |
17523 | } | |
17524 | ||
17525 | ||
17526 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17527 | PyObject *resultobj; | |
17528 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17529 | int arg2 ; | |
17530 | bool arg3 ; | |
17531 | PyObject * obj0 = 0 ; | |
17532 | PyObject * obj1 = 0 ; | |
17533 | PyObject * obj2 = 0 ; | |
17534 | char *kwnames[] = { | |
17535 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17536 | }; | |
17537 | ||
17538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17541 | arg2 = (int) SWIG_AsInt(obj1); | |
17542 | if (PyErr_Occurred()) SWIG_fail; | |
17543 | arg3 = (bool) SWIG_AsBool(obj2); | |
17544 | if (PyErr_Occurred()) SWIG_fail; | |
17545 | { | |
17546 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17547 | (arg1)->ToggleTool(arg2,arg3); | |
17548 | ||
17549 | wxPyEndAllowThreads(__tstate); | |
17550 | if (PyErr_Occurred()) SWIG_fail; | |
17551 | } | |
17552 | Py_INCREF(Py_None); resultobj = Py_None; | |
17553 | return resultobj; | |
17554 | fail: | |
17555 | return NULL; | |
17556 | } | |
17557 | ||
17558 | ||
17559 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17560 | PyObject *resultobj; | |
17561 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17562 | int arg2 ; | |
17563 | bool arg3 ; | |
17564 | PyObject * obj0 = 0 ; | |
17565 | PyObject * obj1 = 0 ; | |
17566 | PyObject * obj2 = 0 ; | |
17567 | char *kwnames[] = { | |
17568 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17569 | }; | |
17570 | ||
17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17574 | arg2 = (int) SWIG_AsInt(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
17576 | arg3 = (bool) SWIG_AsBool(obj2); | |
17577 | if (PyErr_Occurred()) SWIG_fail; | |
17578 | { | |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | (arg1)->SetToggle(arg2,arg3); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
17585 | Py_INCREF(Py_None); resultobj = Py_None; | |
17586 | return resultobj; | |
17587 | fail: | |
17588 | return NULL; | |
17589 | } | |
17590 | ||
17591 | ||
17592 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17593 | PyObject *resultobj; | |
17594 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17595 | int arg2 ; | |
17596 | PyObject *result; | |
17597 | PyObject * obj0 = 0 ; | |
17598 | PyObject * obj1 = 0 ; | |
17599 | char *kwnames[] = { | |
17600 | (char *) "self",(char *) "id", NULL | |
17601 | }; | |
17602 | ||
17603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; | |
17604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17606 | arg2 = (int) SWIG_AsInt(obj1); | |
17607 | if (PyErr_Occurred()) SWIG_fail; | |
17608 | { | |
17609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17610 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17611 | ||
17612 | wxPyEndAllowThreads(__tstate); | |
17613 | if (PyErr_Occurred()) SWIG_fail; | |
17614 | } | |
17615 | resultobj = result; | |
17616 | return resultobj; | |
17617 | fail: | |
17618 | return NULL; | |
17619 | } | |
17620 | ||
17621 | ||
17622 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17623 | PyObject *resultobj; | |
17624 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17625 | int arg2 ; | |
17626 | PyObject *arg3 = (PyObject *) 0 ; | |
17627 | PyObject * obj0 = 0 ; | |
17628 | PyObject * obj1 = 0 ; | |
17629 | PyObject * obj2 = 0 ; | |
17630 | char *kwnames[] = { | |
17631 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17632 | }; | |
17633 | ||
17634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17637 | arg2 = (int) SWIG_AsInt(obj1); | |
17638 | if (PyErr_Occurred()) SWIG_fail; | |
17639 | arg3 = obj2; | |
17640 | { | |
17641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17642 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17643 | ||
17644 | wxPyEndAllowThreads(__tstate); | |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
17646 | } | |
17647 | Py_INCREF(Py_None); resultobj = Py_None; | |
17648 | return resultobj; | |
17649 | fail: | |
17650 | return NULL; | |
17651 | } | |
17652 | ||
17653 | ||
17654 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17655 | PyObject *resultobj; | |
17656 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17657 | int arg2 ; | |
17658 | int result; | |
17659 | PyObject * obj0 = 0 ; | |
17660 | PyObject * obj1 = 0 ; | |
17661 | char *kwnames[] = { | |
17662 | (char *) "self",(char *) "id", NULL | |
17663 | }; | |
17664 | ||
17665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; | |
17666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17668 | arg2 = (int) SWIG_AsInt(obj1); | |
17669 | if (PyErr_Occurred()) SWIG_fail; | |
17670 | { | |
17671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17672 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17673 | ||
17674 | wxPyEndAllowThreads(__tstate); | |
17675 | if (PyErr_Occurred()) SWIG_fail; | |
17676 | } | |
17677 | resultobj = SWIG_FromInt((int)result); | |
17678 | return resultobj; | |
17679 | fail: | |
17680 | return NULL; | |
17681 | } | |
17682 | ||
17683 | ||
17684 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17685 | PyObject *resultobj; | |
17686 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17687 | int arg2 ; | |
17688 | bool result; | |
17689 | PyObject * obj0 = 0 ; | |
17690 | PyObject * obj1 = 0 ; | |
17691 | char *kwnames[] = { | |
17692 | (char *) "self",(char *) "id", NULL | |
17693 | }; | |
17694 | ||
17695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; | |
17696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17698 | arg2 = (int) SWIG_AsInt(obj1); | |
17699 | if (PyErr_Occurred()) SWIG_fail; | |
17700 | { | |
17701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17702 | result = (bool)(arg1)->GetToolState(arg2); | |
17703 | ||
17704 | wxPyEndAllowThreads(__tstate); | |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
17706 | } | |
17707 | { | |
17708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17709 | } | |
17710 | return resultobj; | |
17711 | fail: | |
17712 | return NULL; | |
17713 | } | |
17714 | ||
17715 | ||
17716 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17717 | PyObject *resultobj; | |
17718 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17719 | int arg2 ; | |
17720 | bool result; | |
17721 | PyObject * obj0 = 0 ; | |
17722 | PyObject * obj1 = 0 ; | |
17723 | char *kwnames[] = { | |
17724 | (char *) "self",(char *) "id", NULL | |
17725 | }; | |
17726 | ||
17727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; | |
17728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17730 | arg2 = (int) SWIG_AsInt(obj1); | |
17731 | if (PyErr_Occurred()) SWIG_fail; | |
17732 | { | |
17733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17734 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17735 | ||
17736 | wxPyEndAllowThreads(__tstate); | |
17737 | if (PyErr_Occurred()) SWIG_fail; | |
17738 | } | |
17739 | { | |
17740 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17741 | } | |
17742 | return resultobj; | |
17743 | fail: | |
17744 | return NULL; | |
17745 | } | |
17746 | ||
17747 | ||
17748 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17749 | PyObject *resultobj; | |
17750 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17751 | int arg2 ; | |
17752 | wxString *arg3 = 0 ; | |
17753 | bool temp3 = False ; | |
17754 | PyObject * obj0 = 0 ; | |
17755 | PyObject * obj1 = 0 ; | |
17756 | PyObject * obj2 = 0 ; | |
17757 | char *kwnames[] = { | |
17758 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17759 | }; | |
17760 | ||
17761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17764 | arg2 = (int) SWIG_AsInt(obj1); | |
17765 | if (PyErr_Occurred()) SWIG_fail; | |
17766 | { | |
17767 | arg3 = wxString_in_helper(obj2); | |
17768 | if (arg3 == NULL) SWIG_fail; | |
17769 | temp3 = True; | |
17770 | } | |
17771 | { | |
17772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17773 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17774 | ||
17775 | wxPyEndAllowThreads(__tstate); | |
17776 | if (PyErr_Occurred()) SWIG_fail; | |
17777 | } | |
17778 | Py_INCREF(Py_None); resultobj = Py_None; | |
17779 | { | |
17780 | if (temp3) | |
17781 | delete arg3; | |
17782 | } | |
17783 | return resultobj; | |
17784 | fail: | |
17785 | { | |
17786 | if (temp3) | |
17787 | delete arg3; | |
17788 | } | |
17789 | return NULL; | |
17790 | } | |
17791 | ||
17792 | ||
17793 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17794 | PyObject *resultobj; | |
17795 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17796 | int arg2 ; | |
17797 | wxString result; | |
17798 | PyObject * obj0 = 0 ; | |
17799 | PyObject * obj1 = 0 ; | |
17800 | char *kwnames[] = { | |
17801 | (char *) "self",(char *) "id", NULL | |
17802 | }; | |
17803 | ||
17804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
17805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17807 | arg2 = (int) SWIG_AsInt(obj1); | |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
17809 | { | |
17810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17811 | result = (arg1)->GetToolShortHelp(arg2); | |
17812 | ||
17813 | wxPyEndAllowThreads(__tstate); | |
17814 | if (PyErr_Occurred()) SWIG_fail; | |
17815 | } | |
17816 | { | |
17817 | #if wxUSE_UNICODE | |
17818 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17819 | #else | |
17820 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17821 | #endif | |
17822 | } | |
17823 | return resultobj; | |
17824 | fail: | |
17825 | return NULL; | |
17826 | } | |
17827 | ||
17828 | ||
17829 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17830 | PyObject *resultobj; | |
17831 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17832 | int arg2 ; | |
17833 | wxString *arg3 = 0 ; | |
17834 | bool temp3 = False ; | |
17835 | PyObject * obj0 = 0 ; | |
17836 | PyObject * obj1 = 0 ; | |
17837 | PyObject * obj2 = 0 ; | |
17838 | char *kwnames[] = { | |
17839 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17840 | }; | |
17841 | ||
17842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17845 | arg2 = (int) SWIG_AsInt(obj1); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | { | |
17848 | arg3 = wxString_in_helper(obj2); | |
17849 | if (arg3 == NULL) SWIG_fail; | |
17850 | temp3 = True; | |
17851 | } | |
17852 | { | |
17853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17854 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17855 | ||
17856 | wxPyEndAllowThreads(__tstate); | |
17857 | if (PyErr_Occurred()) SWIG_fail; | |
17858 | } | |
17859 | Py_INCREF(Py_None); resultobj = Py_None; | |
17860 | { | |
17861 | if (temp3) | |
17862 | delete arg3; | |
17863 | } | |
17864 | return resultobj; | |
17865 | fail: | |
17866 | { | |
17867 | if (temp3) | |
17868 | delete arg3; | |
17869 | } | |
17870 | return NULL; | |
17871 | } | |
17872 | ||
17873 | ||
17874 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17875 | PyObject *resultobj; | |
17876 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17877 | int arg2 ; | |
17878 | wxString result; | |
17879 | PyObject * obj0 = 0 ; | |
17880 | PyObject * obj1 = 0 ; | |
17881 | char *kwnames[] = { | |
17882 | (char *) "self",(char *) "id", NULL | |
17883 | }; | |
17884 | ||
17885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
17886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17888 | arg2 = (int) SWIG_AsInt(obj1); | |
17889 | if (PyErr_Occurred()) SWIG_fail; | |
17890 | { | |
17891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17892 | result = (arg1)->GetToolLongHelp(arg2); | |
17893 | ||
17894 | wxPyEndAllowThreads(__tstate); | |
17895 | if (PyErr_Occurred()) SWIG_fail; | |
17896 | } | |
17897 | { | |
17898 | #if wxUSE_UNICODE | |
17899 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17900 | #else | |
17901 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17902 | #endif | |
17903 | } | |
17904 | return resultobj; | |
17905 | fail: | |
17906 | return NULL; | |
17907 | } | |
17908 | ||
17909 | ||
17910 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17911 | PyObject *resultobj; | |
17912 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17913 | int arg2 ; | |
17914 | int arg3 ; | |
17915 | PyObject * obj0 = 0 ; | |
17916 | PyObject * obj1 = 0 ; | |
17917 | PyObject * obj2 = 0 ; | |
17918 | char *kwnames[] = { | |
17919 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17920 | }; | |
17921 | ||
17922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17925 | arg2 = (int) SWIG_AsInt(obj1); | |
17926 | if (PyErr_Occurred()) SWIG_fail; | |
17927 | arg3 = (int) SWIG_AsInt(obj2); | |
17928 | if (PyErr_Occurred()) SWIG_fail; | |
17929 | { | |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | (arg1)->SetMargins(arg2,arg3); | |
17932 | ||
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | Py_INCREF(Py_None); resultobj = Py_None; | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17944 | PyObject *resultobj; | |
17945 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17946 | wxSize *arg2 = 0 ; | |
17947 | wxSize temp2 ; | |
17948 | PyObject * obj0 = 0 ; | |
17949 | PyObject * obj1 = 0 ; | |
17950 | char *kwnames[] = { | |
17951 | (char *) "self",(char *) "size", NULL | |
17952 | }; | |
17953 | ||
17954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
17955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17957 | { | |
17958 | arg2 = &temp2; | |
17959 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17960 | } | |
17961 | { | |
17962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17963 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17964 | ||
17965 | wxPyEndAllowThreads(__tstate); | |
17966 | if (PyErr_Occurred()) SWIG_fail; | |
17967 | } | |
17968 | Py_INCREF(Py_None); resultobj = Py_None; | |
17969 | return resultobj; | |
17970 | fail: | |
17971 | return NULL; | |
17972 | } | |
17973 | ||
17974 | ||
17975 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17976 | PyObject *resultobj; | |
17977 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17978 | int arg2 ; | |
17979 | PyObject * obj0 = 0 ; | |
17980 | PyObject * obj1 = 0 ; | |
17981 | char *kwnames[] = { | |
17982 | (char *) "self",(char *) "packing", NULL | |
17983 | }; | |
17984 | ||
17985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; | |
17986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
17987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17988 | arg2 = (int) SWIG_AsInt(obj1); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | { | |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | (arg1)->SetToolPacking(arg2); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | Py_INCREF(Py_None); resultobj = Py_None; | |
17998 | return resultobj; | |
17999 | fail: | |
18000 | return NULL; | |
18001 | } | |
18002 | ||
18003 | ||
18004 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18005 | PyObject *resultobj; | |
18006 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18007 | int arg2 ; | |
18008 | PyObject * obj0 = 0 ; | |
18009 | PyObject * obj1 = 0 ; | |
18010 | char *kwnames[] = { | |
18011 | (char *) "self",(char *) "separation", NULL | |
18012 | }; | |
18013 | ||
18014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; | |
18015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18017 | arg2 = (int) SWIG_AsInt(obj1); | |
18018 | if (PyErr_Occurred()) SWIG_fail; | |
18019 | { | |
18020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18021 | (arg1)->SetToolSeparation(arg2); | |
18022 | ||
18023 | wxPyEndAllowThreads(__tstate); | |
18024 | if (PyErr_Occurred()) SWIG_fail; | |
18025 | } | |
18026 | Py_INCREF(Py_None); resultobj = Py_None; | |
18027 | return resultobj; | |
18028 | fail: | |
18029 | return NULL; | |
18030 | } | |
18031 | ||
18032 | ||
18033 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18034 | PyObject *resultobj; | |
18035 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18036 | wxSize result; | |
18037 | PyObject * obj0 = 0 ; | |
18038 | char *kwnames[] = { | |
18039 | (char *) "self", NULL | |
18040 | }; | |
18041 | ||
18042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
18043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18045 | { | |
18046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18047 | result = (arg1)->GetToolMargins(); | |
18048 | ||
18049 | wxPyEndAllowThreads(__tstate); | |
18050 | if (PyErr_Occurred()) SWIG_fail; | |
18051 | } | |
18052 | { | |
18053 | wxSize * resultptr; | |
18054 | resultptr = new wxSize((wxSize &) result); | |
18055 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18056 | } | |
18057 | return resultobj; | |
18058 | fail: | |
18059 | return NULL; | |
18060 | } | |
18061 | ||
18062 | ||
18063 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18064 | PyObject *resultobj; | |
18065 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18066 | wxSize result; | |
18067 | PyObject * obj0 = 0 ; | |
18068 | char *kwnames[] = { | |
18069 | (char *) "self", NULL | |
18070 | }; | |
18071 | ||
18072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
18073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18075 | { | |
18076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18077 | result = (arg1)->GetMargins(); | |
18078 | ||
18079 | wxPyEndAllowThreads(__tstate); | |
18080 | if (PyErr_Occurred()) SWIG_fail; | |
18081 | } | |
18082 | { | |
18083 | wxSize * resultptr; | |
18084 | resultptr = new wxSize((wxSize &) result); | |
18085 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18086 | } | |
18087 | return resultobj; | |
18088 | fail: | |
18089 | return NULL; | |
18090 | } | |
18091 | ||
18092 | ||
18093 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18094 | PyObject *resultobj; | |
18095 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18096 | int result; | |
18097 | PyObject * obj0 = 0 ; | |
18098 | char *kwnames[] = { | |
18099 | (char *) "self", NULL | |
18100 | }; | |
18101 | ||
18102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
18103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18105 | { | |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | result = (int)(arg1)->GetToolPacking(); | |
18108 | ||
18109 | wxPyEndAllowThreads(__tstate); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | } | |
18112 | resultobj = SWIG_FromInt((int)result); | |
18113 | return resultobj; | |
18114 | fail: | |
18115 | return NULL; | |
18116 | } | |
18117 | ||
18118 | ||
18119 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18120 | PyObject *resultobj; | |
18121 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18122 | int result; | |
18123 | PyObject * obj0 = 0 ; | |
18124 | char *kwnames[] = { | |
18125 | (char *) "self", NULL | |
18126 | }; | |
18127 | ||
18128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
18129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18131 | { | |
18132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18133 | result = (int)(arg1)->GetToolSeparation(); | |
18134 | ||
18135 | wxPyEndAllowThreads(__tstate); | |
18136 | if (PyErr_Occurred()) SWIG_fail; | |
18137 | } | |
18138 | resultobj = SWIG_FromInt((int)result); | |
18139 | return resultobj; | |
18140 | fail: | |
18141 | return NULL; | |
18142 | } | |
18143 | ||
18144 | ||
18145 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18146 | PyObject *resultobj; | |
18147 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18148 | int arg2 ; | |
18149 | PyObject * obj0 = 0 ; | |
18150 | PyObject * obj1 = 0 ; | |
18151 | char *kwnames[] = { | |
18152 | (char *) "self",(char *) "nRows", NULL | |
18153 | }; | |
18154 | ||
18155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; | |
18156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18158 | arg2 = (int) SWIG_AsInt(obj1); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
18160 | { | |
18161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18162 | (arg1)->SetRows(arg2); | |
18163 | ||
18164 | wxPyEndAllowThreads(__tstate); | |
18165 | if (PyErr_Occurred()) SWIG_fail; | |
18166 | } | |
18167 | Py_INCREF(Py_None); resultobj = Py_None; | |
18168 | return resultobj; | |
18169 | fail: | |
18170 | return NULL; | |
18171 | } | |
18172 | ||
18173 | ||
18174 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18175 | PyObject *resultobj; | |
18176 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18177 | int arg2 ; | |
18178 | int arg3 ; | |
18179 | PyObject * obj0 = 0 ; | |
18180 | PyObject * obj1 = 0 ; | |
18181 | PyObject * obj2 = 0 ; | |
18182 | char *kwnames[] = { | |
18183 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18184 | }; | |
18185 | ||
18186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18189 | arg2 = (int) SWIG_AsInt(obj1); | |
18190 | if (PyErr_Occurred()) SWIG_fail; | |
18191 | arg3 = (int) SWIG_AsInt(obj2); | |
18192 | if (PyErr_Occurred()) SWIG_fail; | |
18193 | { | |
18194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18195 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
18196 | ||
18197 | wxPyEndAllowThreads(__tstate); | |
18198 | if (PyErr_Occurred()) SWIG_fail; | |
18199 | } | |
18200 | Py_INCREF(Py_None); resultobj = Py_None; | |
18201 | return resultobj; | |
18202 | fail: | |
18203 | return NULL; | |
18204 | } | |
18205 | ||
18206 | ||
18207 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18208 | PyObject *resultobj; | |
18209 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18210 | int result; | |
18211 | PyObject * obj0 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "self", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
18217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18219 | { | |
18220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18221 | result = (int)(arg1)->GetMaxRows(); | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | resultobj = SWIG_FromInt((int)result); | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18234 | PyObject *resultobj; | |
18235 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18236 | int result; | |
18237 | PyObject * obj0 = 0 ; | |
18238 | char *kwnames[] = { | |
18239 | (char *) "self", NULL | |
18240 | }; | |
18241 | ||
18242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
18243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18245 | { | |
18246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18247 | result = (int)(arg1)->GetMaxCols(); | |
18248 | ||
18249 | wxPyEndAllowThreads(__tstate); | |
18250 | if (PyErr_Occurred()) SWIG_fail; | |
18251 | } | |
18252 | resultobj = SWIG_FromInt((int)result); | |
18253 | return resultobj; | |
18254 | fail: | |
18255 | return NULL; | |
18256 | } | |
18257 | ||
18258 | ||
18259 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18260 | PyObject *resultobj; | |
18261 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18262 | wxSize *arg2 = 0 ; | |
18263 | wxSize temp2 ; | |
18264 | PyObject * obj0 = 0 ; | |
18265 | PyObject * obj1 = 0 ; | |
18266 | char *kwnames[] = { | |
18267 | (char *) "self",(char *) "size", NULL | |
18268 | }; | |
18269 | ||
18270 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
18271 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18272 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18273 | { | |
18274 | arg2 = &temp2; | |
18275 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18276 | } | |
18277 | { | |
18278 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18279 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18280 | ||
18281 | wxPyEndAllowThreads(__tstate); | |
18282 | if (PyErr_Occurred()) SWIG_fail; | |
18283 | } | |
18284 | Py_INCREF(Py_None); resultobj = Py_None; | |
18285 | return resultobj; | |
18286 | fail: | |
18287 | return NULL; | |
18288 | } | |
18289 | ||
18290 | ||
18291 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18292 | PyObject *resultobj; | |
18293 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18294 | wxSize result; | |
18295 | PyObject * obj0 = 0 ; | |
18296 | char *kwnames[] = { | |
18297 | (char *) "self", NULL | |
18298 | }; | |
18299 | ||
18300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
18301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18303 | { | |
18304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18305 | result = (arg1)->GetToolBitmapSize(); | |
18306 | ||
18307 | wxPyEndAllowThreads(__tstate); | |
18308 | if (PyErr_Occurred()) SWIG_fail; | |
18309 | } | |
18310 | { | |
18311 | wxSize * resultptr; | |
18312 | resultptr = new wxSize((wxSize &) result); | |
18313 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18314 | } | |
18315 | return resultobj; | |
18316 | fail: | |
18317 | return NULL; | |
18318 | } | |
18319 | ||
18320 | ||
18321 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18322 | PyObject *resultobj; | |
18323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18324 | wxSize result; | |
18325 | PyObject * obj0 = 0 ; | |
18326 | char *kwnames[] = { | |
18327 | (char *) "self", NULL | |
18328 | }; | |
18329 | ||
18330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
18331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18333 | { | |
18334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18335 | result = (arg1)->GetToolSize(); | |
18336 | ||
18337 | wxPyEndAllowThreads(__tstate); | |
18338 | if (PyErr_Occurred()) SWIG_fail; | |
18339 | } | |
18340 | { | |
18341 | wxSize * resultptr; | |
18342 | resultptr = new wxSize((wxSize &) result); | |
18343 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
18344 | } | |
18345 | return resultobj; | |
18346 | fail: | |
18347 | return NULL; | |
18348 | } | |
18349 | ||
18350 | ||
18351 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18352 | PyObject *resultobj; | |
18353 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18354 | int arg2 ; | |
18355 | int arg3 ; | |
18356 | wxToolBarToolBase *result; | |
18357 | PyObject * obj0 = 0 ; | |
18358 | PyObject * obj1 = 0 ; | |
18359 | PyObject * obj2 = 0 ; | |
18360 | char *kwnames[] = { | |
18361 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18362 | }; | |
18363 | ||
18364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18367 | arg2 = (int) SWIG_AsInt(obj1); | |
18368 | if (PyErr_Occurred()) SWIG_fail; | |
18369 | arg3 = (int) SWIG_AsInt(obj2); | |
18370 | if (PyErr_Occurred()) SWIG_fail; | |
18371 | { | |
18372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18373 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18374 | ||
18375 | wxPyEndAllowThreads(__tstate); | |
18376 | if (PyErr_Occurred()) SWIG_fail; | |
18377 | } | |
18378 | { | |
412d302d | 18379 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18380 | } |
18381 | return resultobj; | |
18382 | fail: | |
18383 | return NULL; | |
18384 | } | |
18385 | ||
18386 | ||
18387 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18388 | PyObject *resultobj; | |
18389 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18390 | int arg2 ; | |
18391 | wxToolBarToolBase *result; | |
18392 | PyObject * obj0 = 0 ; | |
18393 | PyObject * obj1 = 0 ; | |
18394 | char *kwnames[] = { | |
18395 | (char *) "self",(char *) "toolid", NULL | |
18396 | }; | |
18397 | ||
18398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; | |
18399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18401 | arg2 = (int) SWIG_AsInt(obj1); | |
18402 | if (PyErr_Occurred()) SWIG_fail; | |
18403 | { | |
18404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18405 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18406 | ||
18407 | wxPyEndAllowThreads(__tstate); | |
18408 | if (PyErr_Occurred()) SWIG_fail; | |
18409 | } | |
18410 | { | |
412d302d | 18411 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18412 | } |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj; | |
18421 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18422 | bool result; | |
18423 | PyObject * obj0 = 0 ; | |
18424 | char *kwnames[] = { | |
18425 | (char *) "self", NULL | |
18426 | }; | |
18427 | ||
18428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
18429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, | |
18430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18431 | { | |
18432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18433 | result = (bool)(arg1)->IsVertical(); | |
18434 | ||
18435 | wxPyEndAllowThreads(__tstate); | |
18436 | if (PyErr_Occurred()) SWIG_fail; | |
18437 | } | |
18438 | { | |
18439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18440 | } | |
18441 | return resultobj; | |
18442 | fail: | |
18443 | return NULL; | |
18444 | } | |
18445 | ||
18446 | ||
18447 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18448 | PyObject *obj; | |
18449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18450 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18451 | Py_INCREF(obj); | |
18452 | return Py_BuildValue((char *)""); | |
18453 | } | |
18454 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18455 | PyObject *resultobj; | |
18456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18457 | int arg2 = (int) -1 ; |
d55e5bfc RD |
18458 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18459 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18460 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18461 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18462 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18463 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18464 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18465 | wxToolBar *result; | |
18466 | wxPoint temp3 ; | |
18467 | wxSize temp4 ; | |
18468 | bool temp6 = False ; | |
18469 | PyObject * obj0 = 0 ; | |
18470 | PyObject * obj1 = 0 ; | |
18471 | PyObject * obj2 = 0 ; | |
18472 | PyObject * obj3 = 0 ; | |
18473 | PyObject * obj4 = 0 ; | |
18474 | PyObject * obj5 = 0 ; | |
18475 | char *kwnames[] = { | |
18476 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18477 | }; | |
18478 | ||
248ed943 | 18479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
d55e5bfc RD |
18480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18482 | if (obj1) { |
18483 | arg2 = (int) SWIG_AsInt(obj1); | |
18484 | if (PyErr_Occurred()) SWIG_fail; | |
18485 | } | |
d55e5bfc RD |
18486 | if (obj2) { |
18487 | { | |
18488 | arg3 = &temp3; | |
18489 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18490 | } | |
18491 | } | |
18492 | if (obj3) { | |
18493 | { | |
18494 | arg4 = &temp4; | |
18495 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18496 | } | |
18497 | } | |
18498 | if (obj4) { | |
18499 | arg5 = (long) SWIG_AsLong(obj4); | |
18500 | if (PyErr_Occurred()) SWIG_fail; | |
18501 | } | |
18502 | if (obj5) { | |
18503 | { | |
18504 | arg6 = wxString_in_helper(obj5); | |
18505 | if (arg6 == NULL) SWIG_fail; | |
18506 | temp6 = True; | |
18507 | } | |
18508 | } | |
18509 | { | |
0439c23b | 18510 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18512 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18513 | ||
18514 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18515 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 18516 | } |
b0f7404b | 18517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
18518 | { |
18519 | if (temp6) | |
18520 | delete arg6; | |
18521 | } | |
18522 | return resultobj; | |
18523 | fail: | |
18524 | { | |
18525 | if (temp6) | |
18526 | delete arg6; | |
18527 | } | |
18528 | return NULL; | |
18529 | } | |
18530 | ||
18531 | ||
18532 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18533 | PyObject *resultobj; | |
18534 | wxToolBar *result; | |
18535 | char *kwnames[] = { | |
18536 | NULL | |
18537 | }; | |
18538 | ||
18539 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18540 | { | |
0439c23b | 18541 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
18542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18543 | result = (wxToolBar *)new wxToolBar(); | |
18544 | ||
18545 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18546 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 18547 | } |
b0f7404b | 18548 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d55e5bfc RD |
18549 | return resultobj; |
18550 | fail: | |
18551 | return NULL; | |
18552 | } | |
18553 | ||
18554 | ||
18555 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18556 | PyObject *resultobj; | |
18557 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18558 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18559 | int arg3 = (int) -1 ; |
d55e5bfc RD |
18560 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18561 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18562 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18563 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18564 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18565 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18566 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18567 | bool result; | |
18568 | wxPoint temp4 ; | |
18569 | wxSize temp5 ; | |
18570 | bool temp7 = False ; | |
18571 | PyObject * obj0 = 0 ; | |
18572 | PyObject * obj1 = 0 ; | |
18573 | PyObject * obj2 = 0 ; | |
18574 | PyObject * obj3 = 0 ; | |
18575 | PyObject * obj4 = 0 ; | |
18576 | PyObject * obj5 = 0 ; | |
18577 | PyObject * obj6 = 0 ; | |
18578 | char *kwnames[] = { | |
18579 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18580 | }; | |
18581 | ||
248ed943 | 18582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
18583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18585 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18587 | if (obj2) { |
18588 | arg3 = (int) SWIG_AsInt(obj2); | |
18589 | if (PyErr_Occurred()) SWIG_fail; | |
18590 | } | |
d55e5bfc RD |
18591 | if (obj3) { |
18592 | { | |
18593 | arg4 = &temp4; | |
18594 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18595 | } | |
18596 | } | |
18597 | if (obj4) { | |
18598 | { | |
18599 | arg5 = &temp5; | |
18600 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18601 | } | |
18602 | } | |
18603 | if (obj5) { | |
18604 | arg6 = (long) SWIG_AsLong(obj5); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | if (obj6) { | |
18608 | { | |
18609 | arg7 = wxString_in_helper(obj6); | |
18610 | if (arg7 == NULL) SWIG_fail; | |
18611 | temp7 = True; | |
18612 | } | |
18613 | } | |
18614 | { | |
18615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18616 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18617 | ||
18618 | wxPyEndAllowThreads(__tstate); | |
18619 | if (PyErr_Occurred()) SWIG_fail; | |
18620 | } | |
18621 | { | |
18622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18623 | } | |
18624 | { | |
18625 | if (temp7) | |
18626 | delete arg7; | |
18627 | } | |
18628 | return resultobj; | |
18629 | fail: | |
18630 | { | |
18631 | if (temp7) | |
18632 | delete arg7; | |
18633 | } | |
18634 | return NULL; | |
18635 | } | |
18636 | ||
18637 | ||
18638 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18639 | PyObject *resultobj; | |
18640 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18641 | int arg2 ; | |
18642 | int arg3 ; | |
18643 | wxToolBarToolBase *result; | |
18644 | PyObject * obj0 = 0 ; | |
18645 | PyObject * obj1 = 0 ; | |
18646 | PyObject * obj2 = 0 ; | |
18647 | char *kwnames[] = { | |
18648 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18649 | }; | |
18650 | ||
18651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, | |
18653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18654 | arg2 = (int) SWIG_AsInt(obj1); | |
18655 | if (PyErr_Occurred()) SWIG_fail; | |
18656 | arg3 = (int) SWIG_AsInt(obj2); | |
18657 | if (PyErr_Occurred()) SWIG_fail; | |
18658 | { | |
18659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18660 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18661 | ||
18662 | wxPyEndAllowThreads(__tstate); | |
18663 | if (PyErr_Occurred()) SWIG_fail; | |
18664 | } | |
18665 | { | |
412d302d | 18666 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
18667 | } |
18668 | return resultobj; | |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
f20a2e1f RD |
18674 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18675 | PyObject *resultobj; | |
18676 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18677 | wxVisualAttributes result; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "variant", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18684 | if (obj0) { | |
18685 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18686 | if (PyErr_Occurred()) SWIG_fail; | |
18687 | } | |
18688 | { | |
19272049 | 18689 | if (!wxPyCheckForApp()) SWIG_fail; |
f20a2e1f RD |
18690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18691 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18692 | ||
18693 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18694 | if (PyErr_Occurred()) SWIG_fail; |
f20a2e1f RD |
18695 | } |
18696 | { | |
18697 | wxVisualAttributes * resultptr; | |
18698 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18699 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18700 | } | |
18701 | return resultobj; | |
18702 | fail: | |
18703 | return NULL; | |
18704 | } | |
18705 | ||
18706 | ||
d55e5bfc RD |
18707 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18708 | PyObject *obj; | |
18709 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18710 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18711 | Py_INCREF(obj); | |
18712 | return Py_BuildValue((char *)""); | |
18713 | } | |
18714 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { | |
18715 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18716 | return 1; | |
18717 | } | |
18718 | ||
18719 | ||
18720 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18721 | PyObject *pyobj; | |
18722 | ||
18723 | { | |
18724 | #if wxUSE_UNICODE | |
18725 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18726 | #else | |
18727 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18728 | #endif | |
18729 | } | |
18730 | return pyobj; | |
18731 | } | |
18732 | ||
18733 | ||
18734 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18735 | PyObject *resultobj; | |
18736 | wxColour const &arg1_defvalue = wxNullColour ; | |
18737 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18738 | wxColour const &arg2_defvalue = wxNullColour ; | |
18739 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18740 | wxFont const &arg3_defvalue = wxNullFont ; | |
18741 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18742 | wxListItemAttr *result; | |
18743 | wxColour temp1 ; | |
18744 | wxColour temp2 ; | |
18745 | PyObject * obj0 = 0 ; | |
18746 | PyObject * obj1 = 0 ; | |
18747 | PyObject * obj2 = 0 ; | |
18748 | char *kwnames[] = { | |
18749 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18750 | }; | |
18751 | ||
18752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18753 | if (obj0) { | |
18754 | { | |
18755 | arg1 = &temp1; | |
18756 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18757 | } | |
18758 | } | |
18759 | if (obj1) { | |
18760 | { | |
18761 | arg2 = &temp2; | |
18762 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18763 | } | |
18764 | } | |
18765 | if (obj2) { | |
18766 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
18767 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18768 | SWIG_fail; | |
18769 | if (arg3 == NULL) { | |
18770 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18771 | SWIG_fail; | |
18772 | } | |
18773 | } | |
18774 | { | |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18777 | ||
18778 | wxPyEndAllowThreads(__tstate); | |
18779 | if (PyErr_Occurred()) SWIG_fail; | |
18780 | } | |
18781 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); | |
18782 | return resultobj; | |
18783 | fail: | |
18784 | return NULL; | |
18785 | } | |
18786 | ||
18787 | ||
18788 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18789 | PyObject *resultobj; | |
18790 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18791 | wxColour *arg2 = 0 ; | |
18792 | wxColour temp2 ; | |
18793 | PyObject * obj0 = 0 ; | |
18794 | PyObject * obj1 = 0 ; | |
18795 | char *kwnames[] = { | |
18796 | (char *) "self",(char *) "colText", NULL | |
18797 | }; | |
18798 | ||
18799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
18800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18802 | { | |
18803 | arg2 = &temp2; | |
18804 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18805 | } | |
18806 | { | |
18807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18808 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18809 | ||
18810 | wxPyEndAllowThreads(__tstate); | |
18811 | if (PyErr_Occurred()) SWIG_fail; | |
18812 | } | |
18813 | Py_INCREF(Py_None); resultobj = Py_None; | |
18814 | return resultobj; | |
18815 | fail: | |
18816 | return NULL; | |
18817 | } | |
18818 | ||
18819 | ||
18820 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18821 | PyObject *resultobj; | |
18822 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18823 | wxColour *arg2 = 0 ; | |
18824 | wxColour temp2 ; | |
18825 | PyObject * obj0 = 0 ; | |
18826 | PyObject * obj1 = 0 ; | |
18827 | char *kwnames[] = { | |
18828 | (char *) "self",(char *) "colBack", NULL | |
18829 | }; | |
18830 | ||
18831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
18832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18834 | { | |
18835 | arg2 = &temp2; | |
18836 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18837 | } | |
18838 | { | |
18839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18840 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18841 | ||
18842 | wxPyEndAllowThreads(__tstate); | |
18843 | if (PyErr_Occurred()) SWIG_fail; | |
18844 | } | |
18845 | Py_INCREF(Py_None); resultobj = Py_None; | |
18846 | return resultobj; | |
18847 | fail: | |
18848 | return NULL; | |
18849 | } | |
18850 | ||
18851 | ||
18852 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18853 | PyObject *resultobj; | |
18854 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18855 | wxFont *arg2 = 0 ; | |
18856 | PyObject * obj0 = 0 ; | |
18857 | PyObject * obj1 = 0 ; | |
18858 | char *kwnames[] = { | |
18859 | (char *) "self",(char *) "font", NULL | |
18860 | }; | |
18861 | ||
18862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
18863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18866 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18867 | SWIG_fail; | |
18868 | if (arg2 == NULL) { | |
18869 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
18870 | SWIG_fail; | |
18871 | } | |
18872 | { | |
18873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18874 | (arg1)->SetFont((wxFont const &)*arg2); | |
18875 | ||
18876 | wxPyEndAllowThreads(__tstate); | |
18877 | if (PyErr_Occurred()) SWIG_fail; | |
18878 | } | |
18879 | Py_INCREF(Py_None); resultobj = Py_None; | |
18880 | return resultobj; | |
18881 | fail: | |
18882 | return NULL; | |
18883 | } | |
18884 | ||
18885 | ||
18886 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18887 | PyObject *resultobj; | |
18888 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18889 | bool result; | |
18890 | PyObject * obj0 = 0 ; | |
18891 | char *kwnames[] = { | |
18892 | (char *) "self", NULL | |
18893 | }; | |
18894 | ||
18895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
18896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18898 | { | |
18899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18900 | result = (bool)(arg1)->HasTextColour(); | |
18901 | ||
18902 | wxPyEndAllowThreads(__tstate); | |
18903 | if (PyErr_Occurred()) SWIG_fail; | |
18904 | } | |
18905 | { | |
18906 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18907 | } | |
18908 | return resultobj; | |
18909 | fail: | |
18910 | return NULL; | |
18911 | } | |
18912 | ||
18913 | ||
18914 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18915 | PyObject *resultobj; | |
18916 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18917 | bool result; | |
18918 | PyObject * obj0 = 0 ; | |
18919 | char *kwnames[] = { | |
18920 | (char *) "self", NULL | |
18921 | }; | |
18922 | ||
18923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
18924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18926 | { | |
18927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18928 | result = (bool)(arg1)->HasBackgroundColour(); | |
18929 | ||
18930 | wxPyEndAllowThreads(__tstate); | |
18931 | if (PyErr_Occurred()) SWIG_fail; | |
18932 | } | |
18933 | { | |
18934 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18935 | } | |
18936 | return resultobj; | |
18937 | fail: | |
18938 | return NULL; | |
18939 | } | |
18940 | ||
18941 | ||
18942 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18943 | PyObject *resultobj; | |
18944 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18945 | bool result; | |
18946 | PyObject * obj0 = 0 ; | |
18947 | char *kwnames[] = { | |
18948 | (char *) "self", NULL | |
18949 | }; | |
18950 | ||
18951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
18952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18954 | { | |
18955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18956 | result = (bool)(arg1)->HasFont(); | |
18957 | ||
18958 | wxPyEndAllowThreads(__tstate); | |
18959 | if (PyErr_Occurred()) SWIG_fail; | |
18960 | } | |
18961 | { | |
18962 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18963 | } | |
18964 | return resultobj; | |
18965 | fail: | |
18966 | return NULL; | |
18967 | } | |
18968 | ||
18969 | ||
18970 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18971 | PyObject *resultobj; | |
18972 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18973 | wxColour result; | |
18974 | PyObject * obj0 = 0 ; | |
18975 | char *kwnames[] = { | |
18976 | (char *) "self", NULL | |
18977 | }; | |
18978 | ||
18979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
18980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
18981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18982 | { | |
18983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18984 | result = (arg1)->GetTextColour(); | |
18985 | ||
18986 | wxPyEndAllowThreads(__tstate); | |
18987 | if (PyErr_Occurred()) SWIG_fail; | |
18988 | } | |
18989 | { | |
18990 | wxColour * resultptr; | |
18991 | resultptr = new wxColour((wxColour &) result); | |
18992 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
18993 | } | |
18994 | return resultobj; | |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19001 | PyObject *resultobj; | |
19002 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19003 | wxColour result; | |
19004 | PyObject * obj0 = 0 ; | |
19005 | char *kwnames[] = { | |
19006 | (char *) "self", NULL | |
19007 | }; | |
19008 | ||
19009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19012 | { | |
19013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19014 | result = (arg1)->GetBackgroundColour(); | |
19015 | ||
19016 | wxPyEndAllowThreads(__tstate); | |
19017 | if (PyErr_Occurred()) SWIG_fail; | |
19018 | } | |
19019 | { | |
19020 | wxColour * resultptr; | |
19021 | resultptr = new wxColour((wxColour &) result); | |
19022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19023 | } | |
19024 | return resultobj; | |
19025 | fail: | |
19026 | return NULL; | |
19027 | } | |
19028 | ||
19029 | ||
19030 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19031 | PyObject *resultobj; | |
19032 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19033 | wxFont result; | |
19034 | PyObject * obj0 = 0 ; | |
19035 | char *kwnames[] = { | |
19036 | (char *) "self", NULL | |
19037 | }; | |
19038 | ||
19039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
19040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19042 | { | |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | result = (arg1)->GetFont(); | |
19045 | ||
19046 | wxPyEndAllowThreads(__tstate); | |
19047 | if (PyErr_Occurred()) SWIG_fail; | |
19048 | } | |
19049 | { | |
19050 | wxFont * resultptr; | |
19051 | resultptr = new wxFont((wxFont &) result); | |
19052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19053 | } | |
19054 | return resultobj; | |
19055 | fail: | |
19056 | return NULL; | |
19057 | } | |
19058 | ||
19059 | ||
19060 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19061 | PyObject *resultobj; | |
19062 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19063 | PyObject * obj0 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, | |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19071 | { | |
19072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19073 | wxListItemAttr_Destroy(arg1); | |
19074 | ||
19075 | wxPyEndAllowThreads(__tstate); | |
19076 | if (PyErr_Occurred()) SWIG_fail; | |
19077 | } | |
19078 | Py_INCREF(Py_None); resultobj = Py_None; | |
19079 | return resultobj; | |
19080 | fail: | |
19081 | return NULL; | |
19082 | } | |
19083 | ||
19084 | ||
19085 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
19086 | PyObject *obj; | |
19087 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19088 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19089 | Py_INCREF(obj); | |
19090 | return Py_BuildValue((char *)""); | |
19091 | } | |
19092 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19093 | PyObject *resultobj; | |
19094 | wxListItem *result; | |
19095 | char *kwnames[] = { | |
19096 | NULL | |
19097 | }; | |
19098 | ||
19099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19100 | { | |
19101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19102 | result = (wxListItem *)new wxListItem(); | |
19103 | ||
19104 | wxPyEndAllowThreads(__tstate); | |
19105 | if (PyErr_Occurred()) SWIG_fail; | |
19106 | } | |
19107 | { | |
412d302d | 19108 | resultobj = wxPyMake_wxObject(result, 1); |
d55e5bfc RD |
19109 | } |
19110 | return resultobj; | |
19111 | fail: | |
19112 | return NULL; | |
19113 | } | |
19114 | ||
19115 | ||
19116 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19117 | PyObject *resultobj; | |
19118 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19119 | PyObject * obj0 = 0 ; | |
19120 | char *kwnames[] = { | |
19121 | (char *) "self", NULL | |
19122 | }; | |
19123 | ||
19124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
19125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19127 | { | |
19128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19129 | delete arg1; | |
19130 | ||
19131 | wxPyEndAllowThreads(__tstate); | |
19132 | if (PyErr_Occurred()) SWIG_fail; | |
19133 | } | |
19134 | Py_INCREF(Py_None); resultobj = Py_None; | |
19135 | return resultobj; | |
19136 | fail: | |
19137 | return NULL; | |
19138 | } | |
19139 | ||
19140 | ||
19141 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19142 | PyObject *resultobj; | |
19143 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19144 | PyObject * obj0 = 0 ; | |
19145 | char *kwnames[] = { | |
19146 | (char *) "self", NULL | |
19147 | }; | |
19148 | ||
19149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
19150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19152 | { | |
19153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19154 | (arg1)->Clear(); | |
19155 | ||
19156 | wxPyEndAllowThreads(__tstate); | |
19157 | if (PyErr_Occurred()) SWIG_fail; | |
19158 | } | |
19159 | Py_INCREF(Py_None); resultobj = Py_None; | |
19160 | return resultobj; | |
19161 | fail: | |
19162 | return NULL; | |
19163 | } | |
19164 | ||
19165 | ||
19166 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19167 | PyObject *resultobj; | |
19168 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19169 | PyObject * obj0 = 0 ; | |
19170 | char *kwnames[] = { | |
19171 | (char *) "self", NULL | |
19172 | }; | |
19173 | ||
19174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
19175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19177 | { | |
19178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19179 | (arg1)->ClearAttributes(); | |
19180 | ||
19181 | wxPyEndAllowThreads(__tstate); | |
19182 | if (PyErr_Occurred()) SWIG_fail; | |
19183 | } | |
19184 | Py_INCREF(Py_None); resultobj = Py_None; | |
19185 | return resultobj; | |
19186 | fail: | |
19187 | return NULL; | |
19188 | } | |
19189 | ||
19190 | ||
19191 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19192 | PyObject *resultobj; | |
19193 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19194 | long arg2 ; | |
19195 | PyObject * obj0 = 0 ; | |
19196 | PyObject * obj1 = 0 ; | |
19197 | char *kwnames[] = { | |
19198 | (char *) "self",(char *) "mask", NULL | |
19199 | }; | |
19200 | ||
19201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; | |
19202 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19204 | arg2 = (long) SWIG_AsLong(obj1); | |
19205 | if (PyErr_Occurred()) SWIG_fail; | |
19206 | { | |
19207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19208 | (arg1)->SetMask(arg2); | |
19209 | ||
19210 | wxPyEndAllowThreads(__tstate); | |
19211 | if (PyErr_Occurred()) SWIG_fail; | |
19212 | } | |
19213 | Py_INCREF(Py_None); resultobj = Py_None; | |
19214 | return resultobj; | |
19215 | fail: | |
19216 | return NULL; | |
19217 | } | |
19218 | ||
19219 | ||
19220 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19221 | PyObject *resultobj; | |
19222 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19223 | long arg2 ; | |
19224 | PyObject * obj0 = 0 ; | |
19225 | PyObject * obj1 = 0 ; | |
19226 | char *kwnames[] = { | |
19227 | (char *) "self",(char *) "id", NULL | |
19228 | }; | |
19229 | ||
19230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; | |
19231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19233 | arg2 = (long) SWIG_AsLong(obj1); | |
19234 | if (PyErr_Occurred()) SWIG_fail; | |
19235 | { | |
19236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19237 | (arg1)->SetId(arg2); | |
19238 | ||
19239 | wxPyEndAllowThreads(__tstate); | |
19240 | if (PyErr_Occurred()) SWIG_fail; | |
19241 | } | |
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
19249 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19252 | int arg2 ; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | PyObject * obj1 = 0 ; | |
19255 | char *kwnames[] = { | |
19256 | (char *) "self",(char *) "col", NULL | |
19257 | }; | |
19258 | ||
19259 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; | |
19260 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19262 | arg2 = (int) SWIG_AsInt(obj1); | |
19263 | if (PyErr_Occurred()) SWIG_fail; | |
19264 | { | |
19265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19266 | (arg1)->SetColumn(arg2); | |
19267 | ||
19268 | wxPyEndAllowThreads(__tstate); | |
19269 | if (PyErr_Occurred()) SWIG_fail; | |
19270 | } | |
19271 | Py_INCREF(Py_None); resultobj = Py_None; | |
19272 | return resultobj; | |
19273 | fail: | |
19274 | return NULL; | |
19275 | } | |
19276 | ||
19277 | ||
19278 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19279 | PyObject *resultobj; | |
19280 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19281 | long arg2 ; | |
19282 | PyObject * obj0 = 0 ; | |
19283 | PyObject * obj1 = 0 ; | |
19284 | char *kwnames[] = { | |
19285 | (char *) "self",(char *) "state", NULL | |
19286 | }; | |
19287 | ||
19288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; | |
19289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19291 | arg2 = (long) SWIG_AsLong(obj1); | |
19292 | if (PyErr_Occurred()) SWIG_fail; | |
19293 | { | |
19294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19295 | (arg1)->SetState(arg2); | |
19296 | ||
19297 | wxPyEndAllowThreads(__tstate); | |
19298 | if (PyErr_Occurred()) SWIG_fail; | |
19299 | } | |
19300 | Py_INCREF(Py_None); resultobj = Py_None; | |
19301 | return resultobj; | |
19302 | fail: | |
19303 | return NULL; | |
19304 | } | |
19305 | ||
19306 | ||
19307 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19308 | PyObject *resultobj; | |
19309 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19310 | long arg2 ; | |
19311 | PyObject * obj0 = 0 ; | |
19312 | PyObject * obj1 = 0 ; | |
19313 | char *kwnames[] = { | |
19314 | (char *) "self",(char *) "stateMask", NULL | |
19315 | }; | |
19316 | ||
19317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; | |
19318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19320 | arg2 = (long) SWIG_AsLong(obj1); | |
19321 | if (PyErr_Occurred()) SWIG_fail; | |
19322 | { | |
19323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19324 | (arg1)->SetStateMask(arg2); | |
19325 | ||
19326 | wxPyEndAllowThreads(__tstate); | |
19327 | if (PyErr_Occurred()) SWIG_fail; | |
19328 | } | |
19329 | Py_INCREF(Py_None); resultobj = Py_None; | |
19330 | return resultobj; | |
19331 | fail: | |
19332 | return NULL; | |
19333 | } | |
19334 | ||
19335 | ||
19336 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19337 | PyObject *resultobj; | |
19338 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19339 | wxString *arg2 = 0 ; | |
19340 | bool temp2 = False ; | |
19341 | PyObject * obj0 = 0 ; | |
19342 | PyObject * obj1 = 0 ; | |
19343 | char *kwnames[] = { | |
19344 | (char *) "self",(char *) "text", NULL | |
19345 | }; | |
19346 | ||
19347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
19348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19350 | { | |
19351 | arg2 = wxString_in_helper(obj1); | |
19352 | if (arg2 == NULL) SWIG_fail; | |
19353 | temp2 = True; | |
19354 | } | |
19355 | { | |
19356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19357 | (arg1)->SetText((wxString const &)*arg2); | |
19358 | ||
19359 | wxPyEndAllowThreads(__tstate); | |
19360 | if (PyErr_Occurred()) SWIG_fail; | |
19361 | } | |
19362 | Py_INCREF(Py_None); resultobj = Py_None; | |
19363 | { | |
19364 | if (temp2) | |
19365 | delete arg2; | |
19366 | } | |
19367 | return resultobj; | |
19368 | fail: | |
19369 | { | |
19370 | if (temp2) | |
19371 | delete arg2; | |
19372 | } | |
19373 | return NULL; | |
19374 | } | |
19375 | ||
19376 | ||
19377 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19378 | PyObject *resultobj; | |
19379 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19380 | int arg2 ; | |
19381 | PyObject * obj0 = 0 ; | |
19382 | PyObject * obj1 = 0 ; | |
19383 | char *kwnames[] = { | |
19384 | (char *) "self",(char *) "image", NULL | |
19385 | }; | |
19386 | ||
19387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; | |
19388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19390 | arg2 = (int) SWIG_AsInt(obj1); | |
19391 | if (PyErr_Occurred()) SWIG_fail; | |
19392 | { | |
19393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19394 | (arg1)->SetImage(arg2); | |
19395 | ||
19396 | wxPyEndAllowThreads(__tstate); | |
19397 | if (PyErr_Occurred()) SWIG_fail; | |
19398 | } | |
19399 | Py_INCREF(Py_None); resultobj = Py_None; | |
19400 | return resultobj; | |
19401 | fail: | |
19402 | return NULL; | |
19403 | } | |
19404 | ||
19405 | ||
19406 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19407 | PyObject *resultobj; | |
19408 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19409 | long arg2 ; | |
19410 | PyObject * obj0 = 0 ; | |
19411 | PyObject * obj1 = 0 ; | |
19412 | char *kwnames[] = { | |
19413 | (char *) "self",(char *) "data", NULL | |
19414 | }; | |
19415 | ||
19416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; | |
19417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19419 | arg2 = (long) SWIG_AsLong(obj1); | |
19420 | if (PyErr_Occurred()) SWIG_fail; | |
19421 | { | |
19422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19423 | (arg1)->SetData(arg2); | |
19424 | ||
19425 | wxPyEndAllowThreads(__tstate); | |
19426 | if (PyErr_Occurred()) SWIG_fail; | |
19427 | } | |
19428 | Py_INCREF(Py_None); resultobj = Py_None; | |
19429 | return resultobj; | |
19430 | fail: | |
19431 | return NULL; | |
19432 | } | |
19433 | ||
19434 | ||
19435 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19436 | PyObject *resultobj; | |
19437 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19438 | int arg2 ; | |
19439 | PyObject * obj0 = 0 ; | |
19440 | PyObject * obj1 = 0 ; | |
19441 | char *kwnames[] = { | |
19442 | (char *) "self",(char *) "width", NULL | |
19443 | }; | |
19444 | ||
19445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; | |
19446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19448 | arg2 = (int) SWIG_AsInt(obj1); | |
19449 | if (PyErr_Occurred()) SWIG_fail; | |
19450 | { | |
19451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19452 | (arg1)->SetWidth(arg2); | |
19453 | ||
19454 | wxPyEndAllowThreads(__tstate); | |
19455 | if (PyErr_Occurred()) SWIG_fail; | |
19456 | } | |
19457 | Py_INCREF(Py_None); resultobj = Py_None; | |
19458 | return resultobj; | |
19459 | fail: | |
19460 | return NULL; | |
19461 | } | |
19462 | ||
19463 | ||
19464 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19465 | PyObject *resultobj; | |
19466 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19467 | int arg2 ; | |
19468 | PyObject * obj0 = 0 ; | |
19469 | PyObject * obj1 = 0 ; | |
19470 | char *kwnames[] = { | |
19471 | (char *) "self",(char *) "align", NULL | |
19472 | }; | |
19473 | ||
19474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; | |
19475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19477 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19478 | if (PyErr_Occurred()) SWIG_fail; | |
19479 | { | |
19480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19481 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19482 | ||
19483 | wxPyEndAllowThreads(__tstate); | |
19484 | if (PyErr_Occurred()) SWIG_fail; | |
19485 | } | |
19486 | Py_INCREF(Py_None); resultobj = Py_None; | |
19487 | return resultobj; | |
19488 | fail: | |
19489 | return NULL; | |
19490 | } | |
19491 | ||
19492 | ||
19493 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19494 | PyObject *resultobj; | |
19495 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19496 | wxColour *arg2 = 0 ; | |
19497 | wxColour temp2 ; | |
19498 | PyObject * obj0 = 0 ; | |
19499 | PyObject * obj1 = 0 ; | |
19500 | char *kwnames[] = { | |
19501 | (char *) "self",(char *) "colText", NULL | |
19502 | }; | |
19503 | ||
19504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
19505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19507 | { | |
19508 | arg2 = &temp2; | |
19509 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19510 | } | |
19511 | { | |
19512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19513 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19514 | ||
19515 | wxPyEndAllowThreads(__tstate); | |
19516 | if (PyErr_Occurred()) SWIG_fail; | |
19517 | } | |
19518 | Py_INCREF(Py_None); resultobj = Py_None; | |
19519 | return resultobj; | |
19520 | fail: | |
19521 | return NULL; | |
19522 | } | |
19523 | ||
19524 | ||
19525 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19526 | PyObject *resultobj; | |
19527 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19528 | wxColour *arg2 = 0 ; | |
19529 | wxColour temp2 ; | |
19530 | PyObject * obj0 = 0 ; | |
19531 | PyObject * obj1 = 0 ; | |
19532 | char *kwnames[] = { | |
19533 | (char *) "self",(char *) "colBack", NULL | |
19534 | }; | |
19535 | ||
19536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
19537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19539 | { | |
19540 | arg2 = &temp2; | |
19541 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19542 | } | |
19543 | { | |
19544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19545 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19546 | ||
19547 | wxPyEndAllowThreads(__tstate); | |
19548 | if (PyErr_Occurred()) SWIG_fail; | |
19549 | } | |
19550 | Py_INCREF(Py_None); resultobj = Py_None; | |
19551 | return resultobj; | |
19552 | fail: | |
19553 | return NULL; | |
19554 | } | |
19555 | ||
19556 | ||
19557 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19558 | PyObject *resultobj; | |
19559 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19560 | wxFont *arg2 = 0 ; | |
19561 | PyObject * obj0 = 0 ; | |
19562 | PyObject * obj1 = 0 ; | |
19563 | char *kwnames[] = { | |
19564 | (char *) "self",(char *) "font", NULL | |
19565 | }; | |
19566 | ||
19567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
19568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19570 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19571 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19572 | SWIG_fail; | |
19573 | if (arg2 == NULL) { | |
19574 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
19575 | SWIG_fail; | |
19576 | } | |
19577 | { | |
19578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19579 | (arg1)->SetFont((wxFont const &)*arg2); | |
19580 | ||
19581 | wxPyEndAllowThreads(__tstate); | |
19582 | if (PyErr_Occurred()) SWIG_fail; | |
19583 | } | |
19584 | Py_INCREF(Py_None); resultobj = Py_None; | |
19585 | return resultobj; | |
19586 | fail: | |
19587 | return NULL; | |
19588 | } | |
19589 | ||
19590 | ||
19591 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19592 | PyObject *resultobj; | |
19593 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19594 | long result; | |
19595 | PyObject * obj0 = 0 ; | |
19596 | char *kwnames[] = { | |
19597 | (char *) "self", NULL | |
19598 | }; | |
19599 | ||
19600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
19601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19603 | { | |
19604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19605 | result = (long)(arg1)->GetMask(); | |
19606 | ||
19607 | wxPyEndAllowThreads(__tstate); | |
19608 | if (PyErr_Occurred()) SWIG_fail; | |
19609 | } | |
19610 | resultobj = SWIG_FromLong((long)result); | |
19611 | return resultobj; | |
19612 | fail: | |
19613 | return NULL; | |
19614 | } | |
19615 | ||
19616 | ||
19617 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19618 | PyObject *resultobj; | |
19619 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19620 | long result; | |
19621 | PyObject * obj0 = 0 ; | |
19622 | char *kwnames[] = { | |
19623 | (char *) "self", NULL | |
19624 | }; | |
19625 | ||
19626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
19627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19629 | { | |
19630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19631 | result = (long)(arg1)->GetId(); | |
19632 | ||
19633 | wxPyEndAllowThreads(__tstate); | |
19634 | if (PyErr_Occurred()) SWIG_fail; | |
19635 | } | |
19636 | resultobj = SWIG_FromLong((long)result); | |
19637 | return resultobj; | |
19638 | fail: | |
19639 | return NULL; | |
19640 | } | |
19641 | ||
19642 | ||
19643 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19644 | PyObject *resultobj; | |
19645 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19646 | int result; | |
19647 | PyObject * obj0 = 0 ; | |
19648 | char *kwnames[] = { | |
19649 | (char *) "self", NULL | |
19650 | }; | |
19651 | ||
19652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
19653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19655 | { | |
19656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19657 | result = (int)(arg1)->GetColumn(); | |
19658 | ||
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
19662 | resultobj = SWIG_FromInt((int)result); | |
19663 | return resultobj; | |
19664 | fail: | |
19665 | return NULL; | |
19666 | } | |
19667 | ||
19668 | ||
19669 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19670 | PyObject *resultobj; | |
19671 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19672 | long result; | |
19673 | PyObject * obj0 = 0 ; | |
19674 | char *kwnames[] = { | |
19675 | (char *) "self", NULL | |
19676 | }; | |
19677 | ||
19678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
19679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19681 | { | |
19682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19683 | result = (long)(arg1)->GetState(); | |
19684 | ||
19685 | wxPyEndAllowThreads(__tstate); | |
19686 | if (PyErr_Occurred()) SWIG_fail; | |
19687 | } | |
19688 | resultobj = SWIG_FromLong((long)result); | |
19689 | return resultobj; | |
19690 | fail: | |
19691 | return NULL; | |
19692 | } | |
19693 | ||
19694 | ||
19695 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19696 | PyObject *resultobj; | |
19697 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19698 | wxString *result; | |
19699 | PyObject * obj0 = 0 ; | |
19700 | char *kwnames[] = { | |
19701 | (char *) "self", NULL | |
19702 | }; | |
19703 | ||
19704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
19705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19707 | { | |
19708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19709 | { | |
19710 | wxString const &_result_ref = (arg1)->GetText(); | |
19711 | result = (wxString *) &_result_ref; | |
19712 | } | |
19713 | ||
19714 | wxPyEndAllowThreads(__tstate); | |
19715 | if (PyErr_Occurred()) SWIG_fail; | |
19716 | } | |
19717 | { | |
19718 | #if wxUSE_UNICODE | |
19719 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19720 | #else | |
19721 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19722 | #endif | |
19723 | } | |
19724 | return resultobj; | |
19725 | fail: | |
19726 | return NULL; | |
19727 | } | |
19728 | ||
19729 | ||
19730 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19731 | PyObject *resultobj; | |
19732 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19733 | int result; | |
19734 | PyObject * obj0 = 0 ; | |
19735 | char *kwnames[] = { | |
19736 | (char *) "self", NULL | |
19737 | }; | |
19738 | ||
19739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
19740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19742 | { | |
19743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19744 | result = (int)(arg1)->GetImage(); | |
19745 | ||
19746 | wxPyEndAllowThreads(__tstate); | |
19747 | if (PyErr_Occurred()) SWIG_fail; | |
19748 | } | |
19749 | resultobj = SWIG_FromInt((int)result); | |
19750 | return resultobj; | |
19751 | fail: | |
19752 | return NULL; | |
19753 | } | |
19754 | ||
19755 | ||
19756 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19757 | PyObject *resultobj; | |
19758 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19759 | long result; | |
19760 | PyObject * obj0 = 0 ; | |
19761 | char *kwnames[] = { | |
19762 | (char *) "self", NULL | |
19763 | }; | |
19764 | ||
19765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
19766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19768 | { | |
19769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19770 | result = (long)(arg1)->GetData(); | |
19771 | ||
19772 | wxPyEndAllowThreads(__tstate); | |
19773 | if (PyErr_Occurred()) SWIG_fail; | |
19774 | } | |
19775 | resultobj = SWIG_FromLong((long)result); | |
19776 | return resultobj; | |
19777 | fail: | |
19778 | return NULL; | |
19779 | } | |
19780 | ||
19781 | ||
19782 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19783 | PyObject *resultobj; | |
19784 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19785 | int result; | |
19786 | PyObject * obj0 = 0 ; | |
19787 | char *kwnames[] = { | |
19788 | (char *) "self", NULL | |
19789 | }; | |
19790 | ||
19791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
19792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19794 | { | |
19795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19796 | result = (int)(arg1)->GetWidth(); | |
19797 | ||
19798 | wxPyEndAllowThreads(__tstate); | |
19799 | if (PyErr_Occurred()) SWIG_fail; | |
19800 | } | |
19801 | resultobj = SWIG_FromInt((int)result); | |
19802 | return resultobj; | |
19803 | fail: | |
19804 | return NULL; | |
19805 | } | |
19806 | ||
19807 | ||
19808 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19809 | PyObject *resultobj; | |
19810 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19811 | int result; | |
19812 | PyObject * obj0 = 0 ; | |
19813 | char *kwnames[] = { | |
19814 | (char *) "self", NULL | |
19815 | }; | |
19816 | ||
19817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
19818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19820 | { | |
19821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19822 | result = (int)(arg1)->GetAlign(); | |
19823 | ||
19824 | wxPyEndAllowThreads(__tstate); | |
19825 | if (PyErr_Occurred()) SWIG_fail; | |
19826 | } | |
19827 | resultobj = SWIG_FromInt((int)result); | |
19828 | return resultobj; | |
19829 | fail: | |
19830 | return NULL; | |
19831 | } | |
19832 | ||
19833 | ||
19834 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19835 | PyObject *resultobj; | |
19836 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19837 | wxListItemAttr *result; | |
19838 | PyObject * obj0 = 0 ; | |
19839 | char *kwnames[] = { | |
19840 | (char *) "self", NULL | |
19841 | }; | |
19842 | ||
19843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
19844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19846 | { | |
19847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19848 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19849 | ||
19850 | wxPyEndAllowThreads(__tstate); | |
19851 | if (PyErr_Occurred()) SWIG_fail; | |
19852 | } | |
19853 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); | |
19854 | return resultobj; | |
19855 | fail: | |
19856 | return NULL; | |
19857 | } | |
19858 | ||
19859 | ||
19860 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19861 | PyObject *resultobj; | |
19862 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19863 | bool result; | |
19864 | PyObject * obj0 = 0 ; | |
19865 | char *kwnames[] = { | |
19866 | (char *) "self", NULL | |
19867 | }; | |
19868 | ||
19869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
19870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19872 | { | |
19873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19874 | result = (bool)(arg1)->HasAttributes(); | |
19875 | ||
19876 | wxPyEndAllowThreads(__tstate); | |
19877 | if (PyErr_Occurred()) SWIG_fail; | |
19878 | } | |
19879 | { | |
19880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19881 | } | |
19882 | return resultobj; | |
19883 | fail: | |
19884 | return NULL; | |
19885 | } | |
19886 | ||
19887 | ||
19888 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19889 | PyObject *resultobj; | |
19890 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19891 | wxColour result; | |
19892 | PyObject * obj0 = 0 ; | |
19893 | char *kwnames[] = { | |
19894 | (char *) "self", NULL | |
19895 | }; | |
19896 | ||
19897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
19898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19900 | { | |
19901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19902 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19903 | ||
19904 | wxPyEndAllowThreads(__tstate); | |
19905 | if (PyErr_Occurred()) SWIG_fail; | |
19906 | } | |
19907 | { | |
19908 | wxColour * resultptr; | |
19909 | resultptr = new wxColour((wxColour &) result); | |
19910 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19911 | } | |
19912 | return resultobj; | |
19913 | fail: | |
19914 | return NULL; | |
19915 | } | |
19916 | ||
19917 | ||
19918 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19919 | PyObject *resultobj; | |
19920 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19921 | wxColour result; | |
19922 | PyObject * obj0 = 0 ; | |
19923 | char *kwnames[] = { | |
19924 | (char *) "self", NULL | |
19925 | }; | |
19926 | ||
19927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
19928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19930 | { | |
19931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19932 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19933 | ||
19934 | wxPyEndAllowThreads(__tstate); | |
19935 | if (PyErr_Occurred()) SWIG_fail; | |
19936 | } | |
19937 | { | |
19938 | wxColour * resultptr; | |
19939 | resultptr = new wxColour((wxColour &) result); | |
19940 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
19941 | } | |
19942 | return resultobj; | |
19943 | fail: | |
19944 | return NULL; | |
19945 | } | |
19946 | ||
19947 | ||
19948 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19949 | PyObject *resultobj; | |
19950 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19951 | wxFont result; | |
19952 | PyObject * obj0 = 0 ; | |
19953 | char *kwnames[] = { | |
19954 | (char *) "self", NULL | |
19955 | }; | |
19956 | ||
19957 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
19958 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19959 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19960 | { | |
19961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19962 | result = ((wxListItem const *)arg1)->GetFont(); | |
19963 | ||
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
19967 | { | |
19968 | wxFont * resultptr; | |
19969 | resultptr = new wxFont((wxFont &) result); | |
19970 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
19971 | } | |
19972 | return resultobj; | |
19973 | fail: | |
19974 | return NULL; | |
19975 | } | |
19976 | ||
19977 | ||
19978 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19979 | PyObject *resultobj; | |
19980 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19981 | long arg2 ; | |
19982 | PyObject * obj0 = 0 ; | |
19983 | PyObject * obj1 = 0 ; | |
19984 | char *kwnames[] = { | |
19985 | (char *) "self",(char *) "m_mask", NULL | |
19986 | }; | |
19987 | ||
19988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; | |
19989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
19990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19991 | arg2 = (long) SWIG_AsLong(obj1); | |
19992 | if (PyErr_Occurred()) SWIG_fail; | |
19993 | if (arg1) (arg1)->m_mask = arg2; | |
19994 | ||
19995 | Py_INCREF(Py_None); resultobj = Py_None; | |
19996 | return resultobj; | |
19997 | fail: | |
19998 | return NULL; | |
19999 | } | |
20000 | ||
20001 | ||
20002 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20003 | PyObject *resultobj; | |
20004 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20005 | long result; | |
20006 | PyObject * obj0 = 0 ; | |
20007 | char *kwnames[] = { | |
20008 | (char *) "self", NULL | |
20009 | }; | |
20010 | ||
20011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
20012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20014 | result = (long) ((arg1)->m_mask); | |
20015 | ||
20016 | resultobj = SWIG_FromLong((long)result); | |
20017 | return resultobj; | |
20018 | fail: | |
20019 | return NULL; | |
20020 | } | |
20021 | ||
20022 | ||
20023 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20024 | PyObject *resultobj; | |
20025 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20026 | long arg2 ; | |
20027 | PyObject * obj0 = 0 ; | |
20028 | PyObject * obj1 = 0 ; | |
20029 | char *kwnames[] = { | |
20030 | (char *) "self",(char *) "m_itemId", NULL | |
20031 | }; | |
20032 | ||
20033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; | |
20034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20036 | arg2 = (long) SWIG_AsLong(obj1); | |
20037 | if (PyErr_Occurred()) SWIG_fail; | |
20038 | if (arg1) (arg1)->m_itemId = arg2; | |
20039 | ||
20040 | Py_INCREF(Py_None); resultobj = Py_None; | |
20041 | return resultobj; | |
20042 | fail: | |
20043 | return NULL; | |
20044 | } | |
20045 | ||
20046 | ||
20047 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20048 | PyObject *resultobj; | |
20049 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20050 | long result; | |
20051 | PyObject * obj0 = 0 ; | |
20052 | char *kwnames[] = { | |
20053 | (char *) "self", NULL | |
20054 | }; | |
20055 | ||
20056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
20057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20059 | result = (long) ((arg1)->m_itemId); | |
20060 | ||
20061 | resultobj = SWIG_FromLong((long)result); | |
20062 | return resultobj; | |
20063 | fail: | |
20064 | return NULL; | |
20065 | } | |
20066 | ||
20067 | ||
20068 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20069 | PyObject *resultobj; | |
20070 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20071 | int arg2 ; | |
20072 | PyObject * obj0 = 0 ; | |
20073 | PyObject * obj1 = 0 ; | |
20074 | char *kwnames[] = { | |
20075 | (char *) "self",(char *) "m_col", NULL | |
20076 | }; | |
20077 | ||
20078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20081 | arg2 = (int) SWIG_AsInt(obj1); | |
20082 | if (PyErr_Occurred()) SWIG_fail; | |
20083 | if (arg1) (arg1)->m_col = arg2; | |
20084 | ||
20085 | Py_INCREF(Py_None); resultobj = Py_None; | |
20086 | return resultobj; | |
20087 | fail: | |
20088 | return NULL; | |
20089 | } | |
20090 | ||
20091 | ||
20092 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20093 | PyObject *resultobj; | |
20094 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20095 | int result; | |
20096 | PyObject * obj0 = 0 ; | |
20097 | char *kwnames[] = { | |
20098 | (char *) "self", NULL | |
20099 | }; | |
20100 | ||
20101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
20102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20104 | result = (int) ((arg1)->m_col); | |
20105 | ||
20106 | resultobj = SWIG_FromInt((int)result); | |
20107 | return resultobj; | |
20108 | fail: | |
20109 | return NULL; | |
20110 | } | |
20111 | ||
20112 | ||
20113 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20114 | PyObject *resultobj; | |
20115 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20116 | long arg2 ; | |
20117 | PyObject * obj0 = 0 ; | |
20118 | PyObject * obj1 = 0 ; | |
20119 | char *kwnames[] = { | |
20120 | (char *) "self",(char *) "m_state", NULL | |
20121 | }; | |
20122 | ||
20123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; | |
20124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20126 | arg2 = (long) SWIG_AsLong(obj1); | |
20127 | if (PyErr_Occurred()) SWIG_fail; | |
20128 | if (arg1) (arg1)->m_state = arg2; | |
20129 | ||
20130 | Py_INCREF(Py_None); resultobj = Py_None; | |
20131 | return resultobj; | |
20132 | fail: | |
20133 | return NULL; | |
20134 | } | |
20135 | ||
20136 | ||
20137 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20138 | PyObject *resultobj; | |
20139 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20140 | long result; | |
20141 | PyObject * obj0 = 0 ; | |
20142 | char *kwnames[] = { | |
20143 | (char *) "self", NULL | |
20144 | }; | |
20145 | ||
20146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
20147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20149 | result = (long) ((arg1)->m_state); | |
20150 | ||
20151 | resultobj = SWIG_FromLong((long)result); | |
20152 | return resultobj; | |
20153 | fail: | |
20154 | return NULL; | |
20155 | } | |
20156 | ||
20157 | ||
20158 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20159 | PyObject *resultobj; | |
20160 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20161 | long arg2 ; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | PyObject * obj1 = 0 ; | |
20164 | char *kwnames[] = { | |
20165 | (char *) "self",(char *) "m_stateMask", NULL | |
20166 | }; | |
20167 | ||
20168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; | |
20169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20171 | arg2 = (long) SWIG_AsLong(obj1); | |
20172 | if (PyErr_Occurred()) SWIG_fail; | |
20173 | if (arg1) (arg1)->m_stateMask = arg2; | |
20174 | ||
20175 | Py_INCREF(Py_None); resultobj = Py_None; | |
20176 | return resultobj; | |
20177 | fail: | |
20178 | return NULL; | |
20179 | } | |
20180 | ||
20181 | ||
20182 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20183 | PyObject *resultobj; | |
20184 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20185 | long result; | |
20186 | PyObject * obj0 = 0 ; | |
20187 | char *kwnames[] = { | |
20188 | (char *) "self", NULL | |
20189 | }; | |
20190 | ||
20191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
20192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20194 | result = (long) ((arg1)->m_stateMask); | |
20195 | ||
20196 | resultobj = SWIG_FromLong((long)result); | |
20197 | return resultobj; | |
20198 | fail: | |
20199 | return NULL; | |
20200 | } | |
20201 | ||
20202 | ||
20203 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20204 | PyObject *resultobj; | |
20205 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20206 | wxString *arg2 = (wxString *) 0 ; | |
20207 | bool temp2 = False ; | |
20208 | PyObject * obj0 = 0 ; | |
20209 | PyObject * obj1 = 0 ; | |
20210 | char *kwnames[] = { | |
20211 | (char *) "self",(char *) "m_text", NULL | |
20212 | }; | |
20213 | ||
20214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
20215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20217 | { | |
20218 | arg2 = wxString_in_helper(obj1); | |
20219 | if (arg2 == NULL) SWIG_fail; | |
20220 | temp2 = True; | |
20221 | } | |
20222 | if (arg1) (arg1)->m_text = *arg2; | |
20223 | ||
20224 | Py_INCREF(Py_None); resultobj = Py_None; | |
20225 | { | |
20226 | if (temp2) | |
20227 | delete arg2; | |
20228 | } | |
20229 | return resultobj; | |
20230 | fail: | |
20231 | { | |
20232 | if (temp2) | |
20233 | delete arg2; | |
20234 | } | |
20235 | return NULL; | |
20236 | } | |
20237 | ||
20238 | ||
20239 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20240 | PyObject *resultobj; | |
20241 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20242 | wxString *result; | |
20243 | PyObject * obj0 = 0 ; | |
20244 | char *kwnames[] = { | |
20245 | (char *) "self", NULL | |
20246 | }; | |
20247 | ||
20248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
20249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20251 | result = (wxString *)& ((arg1)->m_text); | |
20252 | ||
20253 | { | |
20254 | #if wxUSE_UNICODE | |
20255 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20256 | #else | |
20257 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20258 | #endif | |
20259 | } | |
20260 | return resultobj; | |
20261 | fail: | |
20262 | return NULL; | |
20263 | } | |
20264 | ||
20265 | ||
20266 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20267 | PyObject *resultobj; | |
20268 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20269 | int arg2 ; | |
20270 | PyObject * obj0 = 0 ; | |
20271 | PyObject * obj1 = 0 ; | |
20272 | char *kwnames[] = { | |
20273 | (char *) "self",(char *) "m_image", NULL | |
20274 | }; | |
20275 | ||
20276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; | |
20277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20279 | arg2 = (int) SWIG_AsInt(obj1); | |
20280 | if (PyErr_Occurred()) SWIG_fail; | |
20281 | if (arg1) (arg1)->m_image = arg2; | |
20282 | ||
20283 | Py_INCREF(Py_None); resultobj = Py_None; | |
20284 | return resultobj; | |
20285 | fail: | |
20286 | return NULL; | |
20287 | } | |
20288 | ||
20289 | ||
20290 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20291 | PyObject *resultobj; | |
20292 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20293 | int result; | |
20294 | PyObject * obj0 = 0 ; | |
20295 | char *kwnames[] = { | |
20296 | (char *) "self", NULL | |
20297 | }; | |
20298 | ||
20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
20300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20302 | result = (int) ((arg1)->m_image); | |
20303 | ||
20304 | resultobj = SWIG_FromInt((int)result); | |
20305 | return resultobj; | |
20306 | fail: | |
20307 | return NULL; | |
20308 | } | |
20309 | ||
20310 | ||
20311 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20312 | PyObject *resultobj; | |
20313 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20314 | long arg2 ; | |
20315 | PyObject * obj0 = 0 ; | |
20316 | PyObject * obj1 = 0 ; | |
20317 | char *kwnames[] = { | |
20318 | (char *) "self",(char *) "m_data", NULL | |
20319 | }; | |
20320 | ||
20321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; | |
20322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20324 | arg2 = (long) SWIG_AsLong(obj1); | |
20325 | if (PyErr_Occurred()) SWIG_fail; | |
20326 | if (arg1) (arg1)->m_data = arg2; | |
20327 | ||
20328 | Py_INCREF(Py_None); resultobj = Py_None; | |
20329 | return resultobj; | |
20330 | fail: | |
20331 | return NULL; | |
20332 | } | |
20333 | ||
20334 | ||
20335 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20336 | PyObject *resultobj; | |
20337 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20338 | long result; | |
20339 | PyObject * obj0 = 0 ; | |
20340 | char *kwnames[] = { | |
20341 | (char *) "self", NULL | |
20342 | }; | |
20343 | ||
20344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
20345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20347 | result = (long) ((arg1)->m_data); | |
20348 | ||
20349 | resultobj = SWIG_FromLong((long)result); | |
20350 | return resultobj; | |
20351 | fail: | |
20352 | return NULL; | |
20353 | } | |
20354 | ||
20355 | ||
20356 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20357 | PyObject *resultobj; | |
20358 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20359 | int arg2 ; | |
20360 | PyObject * obj0 = 0 ; | |
20361 | PyObject * obj1 = 0 ; | |
20362 | char *kwnames[] = { | |
20363 | (char *) "self",(char *) "m_format", NULL | |
20364 | }; | |
20365 | ||
20366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; | |
20367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20369 | arg2 = (int) SWIG_AsInt(obj1); | |
20370 | if (PyErr_Occurred()) SWIG_fail; | |
20371 | if (arg1) (arg1)->m_format = arg2; | |
20372 | ||
20373 | Py_INCREF(Py_None); resultobj = Py_None; | |
20374 | return resultobj; | |
20375 | fail: | |
20376 | return NULL; | |
20377 | } | |
20378 | ||
20379 | ||
20380 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20381 | PyObject *resultobj; | |
20382 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20383 | int result; | |
20384 | PyObject * obj0 = 0 ; | |
20385 | char *kwnames[] = { | |
20386 | (char *) "self", NULL | |
20387 | }; | |
20388 | ||
20389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
20390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20392 | result = (int) ((arg1)->m_format); | |
20393 | ||
20394 | resultobj = SWIG_FromInt((int)result); | |
20395 | return resultobj; | |
20396 | fail: | |
20397 | return NULL; | |
20398 | } | |
20399 | ||
20400 | ||
20401 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20402 | PyObject *resultobj; | |
20403 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20404 | int arg2 ; | |
20405 | PyObject * obj0 = 0 ; | |
20406 | PyObject * obj1 = 0 ; | |
20407 | char *kwnames[] = { | |
20408 | (char *) "self",(char *) "m_width", NULL | |
20409 | }; | |
20410 | ||
20411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; | |
20412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20414 | arg2 = (int) SWIG_AsInt(obj1); | |
20415 | if (PyErr_Occurred()) SWIG_fail; | |
20416 | if (arg1) (arg1)->m_width = arg2; | |
20417 | ||
20418 | Py_INCREF(Py_None); resultobj = Py_None; | |
20419 | return resultobj; | |
20420 | fail: | |
20421 | return NULL; | |
20422 | } | |
20423 | ||
20424 | ||
20425 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20426 | PyObject *resultobj; | |
20427 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20428 | int result; | |
20429 | PyObject * obj0 = 0 ; | |
20430 | char *kwnames[] = { | |
20431 | (char *) "self", NULL | |
20432 | }; | |
20433 | ||
20434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
20435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, | |
20436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20437 | result = (int) ((arg1)->m_width); | |
20438 | ||
20439 | resultobj = SWIG_FromInt((int)result); | |
20440 | return resultobj; | |
20441 | fail: | |
20442 | return NULL; | |
20443 | } | |
20444 | ||
20445 | ||
20446 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20447 | PyObject *obj; | |
20448 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20449 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20450 | Py_INCREF(obj); | |
20451 | return Py_BuildValue((char *)""); | |
20452 | } | |
20453 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20454 | PyObject *resultobj; | |
20455 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20456 | int arg2 = (int) 0 ; | |
20457 | wxListEvent *result; | |
20458 | PyObject * obj0 = 0 ; | |
20459 | PyObject * obj1 = 0 ; | |
20460 | char *kwnames[] = { | |
20461 | (char *) "commandType",(char *) "id", NULL | |
20462 | }; | |
20463 | ||
20464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; | |
20465 | if (obj0) { | |
20466 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
20467 | if (PyErr_Occurred()) SWIG_fail; | |
20468 | } | |
20469 | if (obj1) { | |
20470 | arg2 = (int) SWIG_AsInt(obj1); | |
20471 | if (PyErr_Occurred()) SWIG_fail; | |
20472 | } | |
20473 | { | |
20474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20475 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20476 | ||
20477 | wxPyEndAllowThreads(__tstate); | |
20478 | if (PyErr_Occurred()) SWIG_fail; | |
20479 | } | |
20480 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); | |
20481 | return resultobj; | |
20482 | fail: | |
20483 | return NULL; | |
20484 | } | |
20485 | ||
20486 | ||
20487 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20488 | PyObject *resultobj; | |
20489 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20490 | int arg2 ; | |
20491 | PyObject * obj0 = 0 ; | |
20492 | PyObject * obj1 = 0 ; | |
20493 | char *kwnames[] = { | |
20494 | (char *) "self",(char *) "m_code", NULL | |
20495 | }; | |
20496 | ||
20497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; | |
20498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20500 | arg2 = (int) SWIG_AsInt(obj1); | |
20501 | if (PyErr_Occurred()) SWIG_fail; | |
20502 | if (arg1) (arg1)->m_code = arg2; | |
20503 | ||
20504 | Py_INCREF(Py_None); resultobj = Py_None; | |
20505 | return resultobj; | |
20506 | fail: | |
20507 | return NULL; | |
20508 | } | |
20509 | ||
20510 | ||
20511 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20512 | PyObject *resultobj; | |
20513 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20514 | int result; | |
20515 | PyObject * obj0 = 0 ; | |
20516 | char *kwnames[] = { | |
20517 | (char *) "self", NULL | |
20518 | }; | |
20519 | ||
20520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
20521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20523 | result = (int) ((arg1)->m_code); | |
20524 | ||
20525 | resultobj = SWIG_FromInt((int)result); | |
20526 | return resultobj; | |
20527 | fail: | |
20528 | return NULL; | |
20529 | } | |
20530 | ||
20531 | ||
20532 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20533 | PyObject *resultobj; | |
20534 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20535 | long arg2 ; | |
20536 | PyObject * obj0 = 0 ; | |
20537 | PyObject * obj1 = 0 ; | |
20538 | char *kwnames[] = { | |
20539 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20540 | }; | |
20541 | ||
20542 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20543 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20544 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20545 | arg2 = (long) SWIG_AsLong(obj1); | |
20546 | if (PyErr_Occurred()) SWIG_fail; | |
20547 | if (arg1) (arg1)->m_oldItemIndex = arg2; | |
20548 | ||
20549 | Py_INCREF(Py_None); resultobj = Py_None; | |
20550 | return resultobj; | |
20551 | fail: | |
20552 | return NULL; | |
20553 | } | |
20554 | ||
20555 | ||
20556 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20557 | PyObject *resultobj; | |
20558 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20559 | long result; | |
20560 | PyObject * obj0 = 0 ; | |
20561 | char *kwnames[] = { | |
20562 | (char *) "self", NULL | |
20563 | }; | |
20564 | ||
20565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
20566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20568 | result = (long) ((arg1)->m_oldItemIndex); | |
20569 | ||
20570 | resultobj = SWIG_FromLong((long)result); | |
20571 | return resultobj; | |
20572 | fail: | |
20573 | return NULL; | |
20574 | } | |
20575 | ||
20576 | ||
20577 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20578 | PyObject *resultobj; | |
20579 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20580 | long arg2 ; | |
20581 | PyObject * obj0 = 0 ; | |
20582 | PyObject * obj1 = 0 ; | |
20583 | char *kwnames[] = { | |
20584 | (char *) "self",(char *) "m_itemIndex", NULL | |
20585 | }; | |
20586 | ||
20587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; | |
20588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20590 | arg2 = (long) SWIG_AsLong(obj1); | |
20591 | if (PyErr_Occurred()) SWIG_fail; | |
20592 | if (arg1) (arg1)->m_itemIndex = arg2; | |
20593 | ||
20594 | Py_INCREF(Py_None); resultobj = Py_None; | |
20595 | return resultobj; | |
20596 | fail: | |
20597 | return NULL; | |
20598 | } | |
20599 | ||
20600 | ||
20601 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20602 | PyObject *resultobj; | |
20603 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20604 | long result; | |
20605 | PyObject * obj0 = 0 ; | |
20606 | char *kwnames[] = { | |
20607 | (char *) "self", NULL | |
20608 | }; | |
20609 | ||
20610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
20611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20613 | result = (long) ((arg1)->m_itemIndex); | |
20614 | ||
20615 | resultobj = SWIG_FromLong((long)result); | |
20616 | return resultobj; | |
20617 | fail: | |
20618 | return NULL; | |
20619 | } | |
20620 | ||
20621 | ||
20622 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20623 | PyObject *resultobj; | |
20624 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20625 | int arg2 ; | |
20626 | PyObject * obj0 = 0 ; | |
20627 | PyObject * obj1 = 0 ; | |
20628 | char *kwnames[] = { | |
20629 | (char *) "self",(char *) "m_col", NULL | |
20630 | }; | |
20631 | ||
20632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; | |
20633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20635 | arg2 = (int) SWIG_AsInt(obj1); | |
20636 | if (PyErr_Occurred()) SWIG_fail; | |
20637 | if (arg1) (arg1)->m_col = arg2; | |
20638 | ||
20639 | Py_INCREF(Py_None); resultobj = Py_None; | |
20640 | return resultobj; | |
20641 | fail: | |
20642 | return NULL; | |
20643 | } | |
20644 | ||
20645 | ||
20646 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20647 | PyObject *resultobj; | |
20648 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20649 | int result; | |
20650 | PyObject * obj0 = 0 ; | |
20651 | char *kwnames[] = { | |
20652 | (char *) "self", NULL | |
20653 | }; | |
20654 | ||
20655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
20656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20658 | result = (int) ((arg1)->m_col); | |
20659 | ||
20660 | resultobj = SWIG_FromInt((int)result); | |
20661 | return resultobj; | |
20662 | fail: | |
20663 | return NULL; | |
20664 | } | |
20665 | ||
20666 | ||
20667 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20668 | PyObject *resultobj; | |
20669 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20670 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20671 | PyObject * obj0 = 0 ; | |
20672 | PyObject * obj1 = 0 ; | |
20673 | char *kwnames[] = { | |
20674 | (char *) "self",(char *) "m_pointDrag", NULL | |
20675 | }; | |
20676 | ||
20677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
20678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20682 | if (arg1) (arg1)->m_pointDrag = *arg2; | |
20683 | ||
20684 | Py_INCREF(Py_None); resultobj = Py_None; | |
20685 | return resultobj; | |
20686 | fail: | |
20687 | return NULL; | |
20688 | } | |
20689 | ||
20690 | ||
20691 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20692 | PyObject *resultobj; | |
20693 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20694 | wxPoint *result; | |
20695 | PyObject * obj0 = 0 ; | |
20696 | char *kwnames[] = { | |
20697 | (char *) "self", NULL | |
20698 | }; | |
20699 | ||
20700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
20701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20703 | result = (wxPoint *)& ((arg1)->m_pointDrag); | |
20704 | ||
20705 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); | |
20706 | return resultobj; | |
20707 | fail: | |
20708 | return NULL; | |
20709 | } | |
20710 | ||
20711 | ||
20712 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20713 | PyObject *resultobj; | |
20714 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20715 | wxListItem *result; | |
20716 | PyObject * obj0 = 0 ; | |
20717 | char *kwnames[] = { | |
20718 | (char *) "self", NULL | |
20719 | }; | |
20720 | ||
20721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
20722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20724 | result = (wxListItem *)& ((arg1)->m_item); | |
20725 | ||
20726 | { | |
412d302d | 20727 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
20728 | } |
20729 | return resultobj; | |
20730 | fail: | |
20731 | return NULL; | |
20732 | } | |
20733 | ||
20734 | ||
20735 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20736 | PyObject *resultobj; | |
20737 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20738 | int result; | |
20739 | PyObject * obj0 = 0 ; | |
20740 | char *kwnames[] = { | |
20741 | (char *) "self", NULL | |
20742 | }; | |
20743 | ||
20744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
20745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20747 | { | |
20748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20749 | result = (int)(arg1)->GetKeyCode(); | |
20750 | ||
20751 | wxPyEndAllowThreads(__tstate); | |
20752 | if (PyErr_Occurred()) SWIG_fail; | |
20753 | } | |
20754 | resultobj = SWIG_FromInt((int)result); | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | return NULL; | |
20758 | } | |
20759 | ||
20760 | ||
20761 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20762 | PyObject *resultobj; | |
20763 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20764 | long result; | |
20765 | PyObject * obj0 = 0 ; | |
20766 | char *kwnames[] = { | |
20767 | (char *) "self", NULL | |
20768 | }; | |
20769 | ||
20770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
20771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20773 | { | |
20774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20775 | result = (long)(arg1)->GetIndex(); | |
20776 | ||
20777 | wxPyEndAllowThreads(__tstate); | |
20778 | if (PyErr_Occurred()) SWIG_fail; | |
20779 | } | |
20780 | resultobj = SWIG_FromLong((long)result); | |
20781 | return resultobj; | |
20782 | fail: | |
20783 | return NULL; | |
20784 | } | |
20785 | ||
20786 | ||
20787 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20788 | PyObject *resultobj; | |
20789 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20790 | int result; | |
20791 | PyObject * obj0 = 0 ; | |
20792 | char *kwnames[] = { | |
20793 | (char *) "self", NULL | |
20794 | }; | |
20795 | ||
20796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
20797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20799 | { | |
20800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20801 | result = (int)(arg1)->GetColumn(); | |
20802 | ||
20803 | wxPyEndAllowThreads(__tstate); | |
20804 | if (PyErr_Occurred()) SWIG_fail; | |
20805 | } | |
20806 | resultobj = SWIG_FromInt((int)result); | |
20807 | return resultobj; | |
20808 | fail: | |
20809 | return NULL; | |
20810 | } | |
20811 | ||
20812 | ||
20813 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20814 | PyObject *resultobj; | |
20815 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20816 | wxPoint result; | |
20817 | PyObject * obj0 = 0 ; | |
20818 | char *kwnames[] = { | |
20819 | (char *) "self", NULL | |
20820 | }; | |
20821 | ||
20822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
20823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20825 | { | |
20826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20827 | result = (arg1)->GetPoint(); | |
20828 | ||
20829 | wxPyEndAllowThreads(__tstate); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | } | |
20832 | { | |
20833 | wxPoint * resultptr; | |
20834 | resultptr = new wxPoint((wxPoint &) result); | |
20835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
20836 | } | |
20837 | return resultobj; | |
20838 | fail: | |
20839 | return NULL; | |
20840 | } | |
20841 | ||
20842 | ||
20843 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20844 | PyObject *resultobj; | |
20845 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20846 | wxString *result; | |
20847 | PyObject * obj0 = 0 ; | |
20848 | char *kwnames[] = { | |
20849 | (char *) "self", NULL | |
20850 | }; | |
20851 | ||
20852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
20853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20855 | { | |
20856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20857 | { | |
20858 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20859 | result = (wxString *) &_result_ref; | |
20860 | } | |
20861 | ||
20862 | wxPyEndAllowThreads(__tstate); | |
20863 | if (PyErr_Occurred()) SWIG_fail; | |
20864 | } | |
20865 | { | |
20866 | #if wxUSE_UNICODE | |
20867 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20868 | #else | |
20869 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20870 | #endif | |
20871 | } | |
20872 | return resultobj; | |
20873 | fail: | |
20874 | return NULL; | |
20875 | } | |
20876 | ||
20877 | ||
20878 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20879 | PyObject *resultobj; | |
20880 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20881 | wxString *result; | |
20882 | PyObject * obj0 = 0 ; | |
20883 | char *kwnames[] = { | |
20884 | (char *) "self", NULL | |
20885 | }; | |
20886 | ||
20887 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
20888 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20890 | { | |
20891 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20892 | { | |
20893 | wxString const &_result_ref = (arg1)->GetText(); | |
20894 | result = (wxString *) &_result_ref; | |
20895 | } | |
20896 | ||
20897 | wxPyEndAllowThreads(__tstate); | |
20898 | if (PyErr_Occurred()) SWIG_fail; | |
20899 | } | |
20900 | { | |
20901 | #if wxUSE_UNICODE | |
20902 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20903 | #else | |
20904 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20905 | #endif | |
20906 | } | |
20907 | return resultobj; | |
20908 | fail: | |
20909 | return NULL; | |
20910 | } | |
20911 | ||
20912 | ||
20913 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20914 | PyObject *resultobj; | |
20915 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20916 | int result; | |
20917 | PyObject * obj0 = 0 ; | |
20918 | char *kwnames[] = { | |
20919 | (char *) "self", NULL | |
20920 | }; | |
20921 | ||
20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
20923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20925 | { | |
20926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20927 | result = (int)(arg1)->GetImage(); | |
20928 | ||
20929 | wxPyEndAllowThreads(__tstate); | |
20930 | if (PyErr_Occurred()) SWIG_fail; | |
20931 | } | |
20932 | resultobj = SWIG_FromInt((int)result); | |
20933 | return resultobj; | |
20934 | fail: | |
20935 | return NULL; | |
20936 | } | |
20937 | ||
20938 | ||
20939 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20940 | PyObject *resultobj; | |
20941 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20942 | long result; | |
20943 | PyObject * obj0 = 0 ; | |
20944 | char *kwnames[] = { | |
20945 | (char *) "self", NULL | |
20946 | }; | |
20947 | ||
20948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
20949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20951 | { | |
20952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20953 | result = (long)(arg1)->GetData(); | |
20954 | ||
20955 | wxPyEndAllowThreads(__tstate); | |
20956 | if (PyErr_Occurred()) SWIG_fail; | |
20957 | } | |
20958 | resultobj = SWIG_FromLong((long)result); | |
20959 | return resultobj; | |
20960 | fail: | |
20961 | return NULL; | |
20962 | } | |
20963 | ||
20964 | ||
20965 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20966 | PyObject *resultobj; | |
20967 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20968 | long result; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | char *kwnames[] = { | |
20971 | (char *) "self", NULL | |
20972 | }; | |
20973 | ||
20974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
20975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
20976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20977 | { | |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | result = (long)(arg1)->GetMask(); | |
20980 | ||
20981 | wxPyEndAllowThreads(__tstate); | |
20982 | if (PyErr_Occurred()) SWIG_fail; | |
20983 | } | |
20984 | resultobj = SWIG_FromLong((long)result); | |
20985 | return resultobj; | |
20986 | fail: | |
20987 | return NULL; | |
20988 | } | |
20989 | ||
20990 | ||
20991 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20992 | PyObject *resultobj; | |
20993 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20994 | wxListItem *result; | |
20995 | PyObject * obj0 = 0 ; | |
20996 | char *kwnames[] = { | |
20997 | (char *) "self", NULL | |
20998 | }; | |
20999 | ||
21000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
21001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21003 | { | |
21004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21005 | { | |
21006 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
21007 | result = (wxListItem *) &_result_ref; | |
21008 | } | |
21009 | ||
21010 | wxPyEndAllowThreads(__tstate); | |
21011 | if (PyErr_Occurred()) SWIG_fail; | |
21012 | } | |
21013 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); | |
21014 | return resultobj; | |
21015 | fail: | |
21016 | return NULL; | |
21017 | } | |
21018 | ||
21019 | ||
21020 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21021 | PyObject *resultobj; | |
21022 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21023 | long result; | |
21024 | PyObject * obj0 = 0 ; | |
21025 | char *kwnames[] = { | |
21026 | (char *) "self", NULL | |
21027 | }; | |
21028 | ||
21029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
21030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21032 | { | |
21033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21034 | result = (long)(arg1)->GetCacheFrom(); | |
21035 | ||
21036 | wxPyEndAllowThreads(__tstate); | |
21037 | if (PyErr_Occurred()) SWIG_fail; | |
21038 | } | |
21039 | resultobj = SWIG_FromLong((long)result); | |
21040 | return resultobj; | |
21041 | fail: | |
21042 | return NULL; | |
21043 | } | |
21044 | ||
21045 | ||
21046 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21047 | PyObject *resultobj; | |
21048 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21049 | long result; | |
21050 | PyObject * obj0 = 0 ; | |
21051 | char *kwnames[] = { | |
21052 | (char *) "self", NULL | |
21053 | }; | |
21054 | ||
21055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
21056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21058 | { | |
21059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21060 | result = (long)(arg1)->GetCacheTo(); | |
21061 | ||
21062 | wxPyEndAllowThreads(__tstate); | |
21063 | if (PyErr_Occurred()) SWIG_fail; | |
21064 | } | |
21065 | resultobj = SWIG_FromLong((long)result); | |
21066 | return resultobj; | |
21067 | fail: | |
21068 | return NULL; | |
21069 | } | |
21070 | ||
21071 | ||
21072 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21073 | PyObject *resultobj; | |
21074 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21075 | bool result; | |
21076 | PyObject * obj0 = 0 ; | |
21077 | char *kwnames[] = { | |
21078 | (char *) "self", NULL | |
21079 | }; | |
21080 | ||
21081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
21082 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21083 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21084 | { | |
21085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21086 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21087 | ||
21088 | wxPyEndAllowThreads(__tstate); | |
21089 | if (PyErr_Occurred()) SWIG_fail; | |
21090 | } | |
21091 | { | |
21092 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21093 | } | |
21094 | return resultobj; | |
21095 | fail: | |
21096 | return NULL; | |
21097 | } | |
21098 | ||
21099 | ||
21100 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21101 | PyObject *resultobj; | |
21102 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21103 | bool arg2 ; | |
21104 | PyObject * obj0 = 0 ; | |
21105 | PyObject * obj1 = 0 ; | |
21106 | char *kwnames[] = { | |
21107 | (char *) "self",(char *) "editCancelled", NULL | |
21108 | }; | |
21109 | ||
21110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
21111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, | |
21112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21113 | arg2 = (bool) SWIG_AsBool(obj1); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | { | |
21116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21117 | (arg1)->SetEditCanceled(arg2); | |
21118 | ||
21119 | wxPyEndAllowThreads(__tstate); | |
21120 | if (PyErr_Occurred()) SWIG_fail; | |
21121 | } | |
21122 | Py_INCREF(Py_None); resultobj = Py_None; | |
21123 | return resultobj; | |
21124 | fail: | |
21125 | return NULL; | |
21126 | } | |
21127 | ||
21128 | ||
21129 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
21130 | PyObject *obj; | |
21131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21132 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21133 | Py_INCREF(obj); | |
21134 | return Py_BuildValue((char *)""); | |
21135 | } | |
21136 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21137 | PyObject *resultobj; | |
21138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
21139 | int arg2 = (int) -1 ; | |
21140 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
21141 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21142 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21143 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21144 | long arg5 = (long) wxLC_ICON ; | |
21145 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21146 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21147 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21148 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21149 | wxPyListCtrl *result; | |
21150 | wxPoint temp3 ; | |
21151 | wxSize temp4 ; | |
21152 | bool temp7 = False ; | |
21153 | PyObject * obj0 = 0 ; | |
21154 | PyObject * obj1 = 0 ; | |
21155 | PyObject * obj2 = 0 ; | |
21156 | PyObject * obj3 = 0 ; | |
21157 | PyObject * obj4 = 0 ; | |
21158 | PyObject * obj5 = 0 ; | |
21159 | PyObject * obj6 = 0 ; | |
21160 | char *kwnames[] = { | |
21161 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21162 | }; | |
21163 | ||
21164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
21165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
21166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21167 | if (obj1) { | |
21168 | arg2 = (int) SWIG_AsInt(obj1); | |
21169 | if (PyErr_Occurred()) SWIG_fail; | |
21170 | } | |
21171 | if (obj2) { | |
21172 | { | |
21173 | arg3 = &temp3; | |
21174 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21175 | } | |
21176 | } | |
21177 | if (obj3) { | |
21178 | { | |
21179 | arg4 = &temp4; | |
21180 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21181 | } | |
21182 | } | |
21183 | if (obj4) { | |
21184 | arg5 = (long) SWIG_AsLong(obj4); | |
21185 | if (PyErr_Occurred()) SWIG_fail; | |
21186 | } | |
21187 | if (obj5) { | |
21188 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
21189 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21190 | SWIG_fail; | |
21191 | if (arg6 == NULL) { | |
21192 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21193 | SWIG_fail; | |
21194 | } | |
21195 | } | |
21196 | if (obj6) { | |
21197 | { | |
21198 | arg7 = wxString_in_helper(obj6); | |
21199 | if (arg7 == NULL) SWIG_fail; | |
21200 | temp7 = True; | |
21201 | } | |
21202 | } | |
21203 | { | |
0439c23b | 21204 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21205 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21206 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21207 | ||
21208 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21209 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21210 | } |
21211 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21212 | { | |
21213 | if (temp7) | |
21214 | delete arg7; | |
21215 | } | |
21216 | return resultobj; | |
21217 | fail: | |
21218 | { | |
21219 | if (temp7) | |
21220 | delete arg7; | |
21221 | } | |
21222 | return NULL; | |
21223 | } | |
21224 | ||
21225 | ||
21226 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21227 | PyObject *resultobj; | |
21228 | wxPyListCtrl *result; | |
21229 | char *kwnames[] = { | |
21230 | NULL | |
21231 | }; | |
21232 | ||
21233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21234 | { | |
0439c23b | 21235 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
21236 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21237 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21238 | ||
21239 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21240 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
21241 | } |
21242 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); | |
21243 | return resultobj; | |
21244 | fail: | |
21245 | return NULL; | |
21246 | } | |
21247 | ||
21248 | ||
21249 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21250 | PyObject *resultobj; | |
21251 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21252 | wxWindow *arg2 = (wxWindow *) 0 ; | |
21253 | int arg3 = (int) -1 ; | |
21254 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
21255 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21256 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21257 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21258 | long arg6 = (long) wxLC_ICON ; | |
21259 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21260 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21261 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21262 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21263 | bool result; | |
21264 | wxPoint temp4 ; | |
21265 | wxSize temp5 ; | |
21266 | bool temp8 = False ; | |
21267 | PyObject * obj0 = 0 ; | |
21268 | PyObject * obj1 = 0 ; | |
21269 | PyObject * obj2 = 0 ; | |
21270 | PyObject * obj3 = 0 ; | |
21271 | PyObject * obj4 = 0 ; | |
21272 | PyObject * obj5 = 0 ; | |
21273 | PyObject * obj6 = 0 ; | |
21274 | PyObject * obj7 = 0 ; | |
21275 | char *kwnames[] = { | |
21276 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21277 | }; | |
21278 | ||
21279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
21280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21282 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21284 | if (obj2) { | |
21285 | arg3 = (int) SWIG_AsInt(obj2); | |
21286 | if (PyErr_Occurred()) SWIG_fail; | |
21287 | } | |
21288 | if (obj3) { | |
21289 | { | |
21290 | arg4 = &temp4; | |
21291 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21292 | } | |
21293 | } | |
21294 | if (obj4) { | |
21295 | { | |
21296 | arg5 = &temp5; | |
21297 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21298 | } | |
21299 | } | |
21300 | if (obj5) { | |
21301 | arg6 = (long) SWIG_AsLong(obj5); | |
21302 | if (PyErr_Occurred()) SWIG_fail; | |
21303 | } | |
21304 | if (obj6) { | |
21305 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
21306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21307 | SWIG_fail; | |
21308 | if (arg7 == NULL) { | |
21309 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21310 | SWIG_fail; | |
21311 | } | |
21312 | } | |
21313 | if (obj7) { | |
21314 | { | |
21315 | arg8 = wxString_in_helper(obj7); | |
21316 | if (arg8 == NULL) SWIG_fail; | |
21317 | temp8 = True; | |
21318 | } | |
21319 | } | |
21320 | { | |
21321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21322 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21323 | ||
21324 | wxPyEndAllowThreads(__tstate); | |
21325 | if (PyErr_Occurred()) SWIG_fail; | |
21326 | } | |
21327 | { | |
21328 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21329 | } | |
21330 | { | |
21331 | if (temp8) | |
21332 | delete arg8; | |
21333 | } | |
21334 | return resultobj; | |
21335 | fail: | |
21336 | { | |
21337 | if (temp8) | |
21338 | delete arg8; | |
21339 | } | |
21340 | return NULL; | |
21341 | } | |
21342 | ||
21343 | ||
21344 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21345 | PyObject *resultobj; | |
21346 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21347 | PyObject *arg2 = (PyObject *) 0 ; | |
21348 | PyObject *arg3 = (PyObject *) 0 ; | |
21349 | PyObject * obj0 = 0 ; | |
21350 | PyObject * obj1 = 0 ; | |
21351 | PyObject * obj2 = 0 ; | |
21352 | char *kwnames[] = { | |
21353 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21354 | }; | |
21355 | ||
21356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21359 | arg2 = obj1; | |
21360 | arg3 = obj2; | |
21361 | { | |
21362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21363 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21364 | ||
21365 | wxPyEndAllowThreads(__tstate); | |
21366 | if (PyErr_Occurred()) SWIG_fail; | |
21367 | } | |
21368 | Py_INCREF(Py_None); resultobj = Py_None; | |
21369 | return resultobj; | |
21370 | fail: | |
21371 | return NULL; | |
21372 | } | |
21373 | ||
21374 | ||
21375 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21376 | PyObject *resultobj; | |
21377 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21378 | wxColour *arg2 = 0 ; | |
21379 | bool result; | |
21380 | wxColour temp2 ; | |
21381 | PyObject * obj0 = 0 ; | |
21382 | PyObject * obj1 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "self",(char *) "col", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21390 | { | |
21391 | arg2 = &temp2; | |
21392 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21393 | } | |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21397 | ||
21398 | wxPyEndAllowThreads(__tstate); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
21401 | { | |
21402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21403 | } | |
21404 | return resultobj; | |
21405 | fail: | |
21406 | return NULL; | |
21407 | } | |
21408 | ||
21409 | ||
21410 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21411 | PyObject *resultobj; | |
21412 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21413 | wxColour *arg2 = 0 ; | |
21414 | bool result; | |
21415 | wxColour temp2 ; | |
21416 | PyObject * obj0 = 0 ; | |
21417 | PyObject * obj1 = 0 ; | |
21418 | char *kwnames[] = { | |
21419 | (char *) "self",(char *) "col", NULL | |
21420 | }; | |
21421 | ||
21422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
21423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21425 | { | |
21426 | arg2 = &temp2; | |
21427 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21428 | } | |
21429 | { | |
21430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21431 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21432 | ||
21433 | wxPyEndAllowThreads(__tstate); | |
21434 | if (PyErr_Occurred()) SWIG_fail; | |
21435 | } | |
21436 | { | |
21437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21438 | } | |
21439 | return resultobj; | |
21440 | fail: | |
21441 | return NULL; | |
21442 | } | |
21443 | ||
21444 | ||
21445 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21446 | PyObject *resultobj; | |
21447 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21448 | int arg2 ; | |
21449 | wxListItem *result; | |
21450 | PyObject * obj0 = 0 ; | |
21451 | PyObject * obj1 = 0 ; | |
21452 | char *kwnames[] = { | |
21453 | (char *) "self",(char *) "col", NULL | |
21454 | }; | |
21455 | ||
21456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; | |
21457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21459 | arg2 = (int) SWIG_AsInt(obj1); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | { | |
21462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21463 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21464 | ||
21465 | wxPyEndAllowThreads(__tstate); | |
21466 | if (PyErr_Occurred()) SWIG_fail; | |
21467 | } | |
21468 | { | |
412d302d | 21469 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21470 | } |
21471 | return resultobj; | |
21472 | fail: | |
21473 | return NULL; | |
21474 | } | |
21475 | ||
21476 | ||
21477 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21478 | PyObject *resultobj; | |
21479 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21480 | int arg2 ; | |
21481 | wxListItem *arg3 = 0 ; | |
21482 | bool result; | |
21483 | PyObject * obj0 = 0 ; | |
21484 | PyObject * obj1 = 0 ; | |
21485 | PyObject * obj2 = 0 ; | |
21486 | char *kwnames[] = { | |
21487 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21488 | }; | |
21489 | ||
21490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21493 | arg2 = (int) SWIG_AsInt(obj1); | |
21494 | if (PyErr_Occurred()) SWIG_fail; | |
21495 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21496 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21497 | SWIG_fail; | |
21498 | if (arg3 == NULL) { | |
21499 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21500 | SWIG_fail; | |
21501 | } | |
21502 | { | |
21503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21504 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21505 | ||
21506 | wxPyEndAllowThreads(__tstate); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
21508 | } | |
21509 | { | |
21510 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21511 | } | |
21512 | return resultobj; | |
21513 | fail: | |
21514 | return NULL; | |
21515 | } | |
21516 | ||
21517 | ||
21518 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21519 | PyObject *resultobj; | |
21520 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21521 | int arg2 ; | |
21522 | int result; | |
21523 | PyObject * obj0 = 0 ; | |
21524 | PyObject * obj1 = 0 ; | |
21525 | char *kwnames[] = { | |
21526 | (char *) "self",(char *) "col", NULL | |
21527 | }; | |
21528 | ||
21529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; | |
21530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21532 | arg2 = (int) SWIG_AsInt(obj1); | |
21533 | if (PyErr_Occurred()) SWIG_fail; | |
21534 | { | |
21535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21536 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21537 | ||
21538 | wxPyEndAllowThreads(__tstate); | |
21539 | if (PyErr_Occurred()) SWIG_fail; | |
21540 | } | |
21541 | resultobj = SWIG_FromInt((int)result); | |
21542 | return resultobj; | |
21543 | fail: | |
21544 | return NULL; | |
21545 | } | |
21546 | ||
21547 | ||
21548 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21549 | PyObject *resultobj; | |
21550 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21551 | int arg2 ; | |
21552 | int arg3 ; | |
21553 | bool result; | |
21554 | PyObject * obj0 = 0 ; | |
21555 | PyObject * obj1 = 0 ; | |
21556 | PyObject * obj2 = 0 ; | |
21557 | char *kwnames[] = { | |
21558 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21559 | }; | |
21560 | ||
21561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21564 | arg2 = (int) SWIG_AsInt(obj1); | |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
21566 | arg3 = (int) SWIG_AsInt(obj2); | |
21567 | if (PyErr_Occurred()) SWIG_fail; | |
21568 | { | |
21569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21570 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21571 | ||
21572 | wxPyEndAllowThreads(__tstate); | |
21573 | if (PyErr_Occurred()) SWIG_fail; | |
21574 | } | |
21575 | { | |
21576 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21577 | } | |
21578 | return resultobj; | |
21579 | fail: | |
21580 | return NULL; | |
21581 | } | |
21582 | ||
21583 | ||
21584 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21585 | PyObject *resultobj; | |
21586 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21587 | int result; | |
21588 | PyObject * obj0 = 0 ; | |
21589 | char *kwnames[] = { | |
21590 | (char *) "self", NULL | |
21591 | }; | |
21592 | ||
21593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
21594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21596 | { | |
21597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21598 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21599 | ||
21600 | wxPyEndAllowThreads(__tstate); | |
21601 | if (PyErr_Occurred()) SWIG_fail; | |
21602 | } | |
21603 | resultobj = SWIG_FromInt((int)result); | |
21604 | return resultobj; | |
21605 | fail: | |
21606 | return NULL; | |
21607 | } | |
21608 | ||
21609 | ||
21610 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21611 | PyObject *resultobj; | |
21612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21613 | wxRect result; | |
21614 | PyObject * obj0 = 0 ; | |
21615 | char *kwnames[] = { | |
21616 | (char *) "self", NULL | |
21617 | }; | |
21618 | ||
21619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
21620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21622 | { | |
21623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21624 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21625 | ||
21626 | wxPyEndAllowThreads(__tstate); | |
21627 | if (PyErr_Occurred()) SWIG_fail; | |
21628 | } | |
21629 | { | |
21630 | wxRect * resultptr; | |
21631 | resultptr = new wxRect((wxRect &) result); | |
21632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
21633 | } | |
21634 | return resultobj; | |
21635 | fail: | |
21636 | return NULL; | |
21637 | } | |
21638 | ||
21639 | ||
21640 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21641 | PyObject *resultobj; | |
21642 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21643 | wxTextCtrl *result; | |
21644 | PyObject * obj0 = 0 ; | |
21645 | char *kwnames[] = { | |
21646 | (char *) "self", NULL | |
21647 | }; | |
21648 | ||
21649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
21650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21652 | { | |
21653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21654 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
21655 | ||
21656 | wxPyEndAllowThreads(__tstate); | |
21657 | if (PyErr_Occurred()) SWIG_fail; | |
21658 | } | |
21659 | { | |
412d302d | 21660 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21661 | } |
21662 | return resultobj; | |
21663 | fail: | |
21664 | return NULL; | |
21665 | } | |
21666 | ||
21667 | ||
21668 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21669 | PyObject *resultobj; | |
21670 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21671 | long arg2 ; | |
21672 | int arg3 = (int) 0 ; | |
21673 | wxListItem *result; | |
21674 | PyObject * obj0 = 0 ; | |
21675 | PyObject * obj1 = 0 ; | |
21676 | PyObject * obj2 = 0 ; | |
21677 | char *kwnames[] = { | |
21678 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21679 | }; | |
21680 | ||
21681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21684 | arg2 = (long) SWIG_AsLong(obj1); | |
21685 | if (PyErr_Occurred()) SWIG_fail; | |
21686 | if (obj2) { | |
21687 | arg3 = (int) SWIG_AsInt(obj2); | |
21688 | if (PyErr_Occurred()) SWIG_fail; | |
21689 | } | |
21690 | { | |
21691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21692 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21693 | ||
21694 | wxPyEndAllowThreads(__tstate); | |
21695 | if (PyErr_Occurred()) SWIG_fail; | |
21696 | } | |
21697 | { | |
412d302d | 21698 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
21699 | } |
21700 | return resultobj; | |
21701 | fail: | |
21702 | return NULL; | |
21703 | } | |
21704 | ||
21705 | ||
21706 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21707 | PyObject *resultobj; | |
21708 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21709 | wxListItem *arg2 = 0 ; | |
21710 | bool result; | |
21711 | PyObject * obj0 = 0 ; | |
21712 | PyObject * obj1 = 0 ; | |
21713 | char *kwnames[] = { | |
21714 | (char *) "self",(char *) "info", NULL | |
21715 | }; | |
21716 | ||
21717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
21718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21720 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21721 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21722 | SWIG_fail; | |
21723 | if (arg2 == NULL) { | |
21724 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
21725 | SWIG_fail; | |
21726 | } | |
21727 | { | |
21728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21729 | result = (bool)(arg1)->SetItem(*arg2); | |
21730 | ||
21731 | wxPyEndAllowThreads(__tstate); | |
21732 | if (PyErr_Occurred()) SWIG_fail; | |
21733 | } | |
21734 | { | |
21735 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21736 | } | |
21737 | return resultobj; | |
21738 | fail: | |
21739 | return NULL; | |
21740 | } | |
21741 | ||
21742 | ||
21743 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21744 | PyObject *resultobj; | |
21745 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21746 | long arg2 ; | |
21747 | int arg3 ; | |
21748 | wxString *arg4 = 0 ; | |
21749 | int arg5 = (int) -1 ; | |
21750 | long result; | |
21751 | bool temp4 = False ; | |
21752 | PyObject * obj0 = 0 ; | |
21753 | PyObject * obj1 = 0 ; | |
21754 | PyObject * obj2 = 0 ; | |
21755 | PyObject * obj3 = 0 ; | |
21756 | PyObject * obj4 = 0 ; | |
21757 | char *kwnames[] = { | |
21758 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21759 | }; | |
21760 | ||
21761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
21762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21764 | arg2 = (long) SWIG_AsLong(obj1); | |
21765 | if (PyErr_Occurred()) SWIG_fail; | |
21766 | arg3 = (int) SWIG_AsInt(obj2); | |
21767 | if (PyErr_Occurred()) SWIG_fail; | |
21768 | { | |
21769 | arg4 = wxString_in_helper(obj3); | |
21770 | if (arg4 == NULL) SWIG_fail; | |
21771 | temp4 = True; | |
21772 | } | |
21773 | if (obj4) { | |
21774 | arg5 = (int) SWIG_AsInt(obj4); | |
21775 | if (PyErr_Occurred()) SWIG_fail; | |
21776 | } | |
21777 | { | |
21778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21779 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21780 | ||
21781 | wxPyEndAllowThreads(__tstate); | |
21782 | if (PyErr_Occurred()) SWIG_fail; | |
21783 | } | |
21784 | resultobj = SWIG_FromLong((long)result); | |
21785 | { | |
21786 | if (temp4) | |
21787 | delete arg4; | |
21788 | } | |
21789 | return resultobj; | |
21790 | fail: | |
21791 | { | |
21792 | if (temp4) | |
21793 | delete arg4; | |
21794 | } | |
21795 | return NULL; | |
21796 | } | |
21797 | ||
21798 | ||
21799 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21800 | PyObject *resultobj; | |
21801 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21802 | long arg2 ; | |
21803 | long arg3 ; | |
21804 | int result; | |
21805 | PyObject * obj0 = 0 ; | |
21806 | PyObject * obj1 = 0 ; | |
21807 | PyObject * obj2 = 0 ; | |
21808 | char *kwnames[] = { | |
21809 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21810 | }; | |
21811 | ||
21812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21815 | arg2 = (long) SWIG_AsLong(obj1); | |
21816 | if (PyErr_Occurred()) SWIG_fail; | |
21817 | arg3 = (long) SWIG_AsLong(obj2); | |
21818 | if (PyErr_Occurred()) SWIG_fail; | |
21819 | { | |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
21826 | resultobj = SWIG_FromInt((int)result); | |
21827 | return resultobj; | |
21828 | fail: | |
21829 | return NULL; | |
21830 | } | |
21831 | ||
21832 | ||
21833 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21834 | PyObject *resultobj; | |
21835 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21836 | long arg2 ; | |
21837 | long arg3 ; | |
21838 | long arg4 ; | |
21839 | bool result; | |
21840 | PyObject * obj0 = 0 ; | |
21841 | PyObject * obj1 = 0 ; | |
21842 | PyObject * obj2 = 0 ; | |
21843 | PyObject * obj3 = 0 ; | |
21844 | char *kwnames[] = { | |
21845 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21846 | }; | |
21847 | ||
21848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21851 | arg2 = (long) SWIG_AsLong(obj1); | |
21852 | if (PyErr_Occurred()) SWIG_fail; | |
21853 | arg3 = (long) SWIG_AsLong(obj2); | |
21854 | if (PyErr_Occurred()) SWIG_fail; | |
21855 | arg4 = (long) SWIG_AsLong(obj3); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | { | |
21858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21859 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
21860 | ||
21861 | wxPyEndAllowThreads(__tstate); | |
21862 | if (PyErr_Occurred()) SWIG_fail; | |
21863 | } | |
21864 | { | |
21865 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21866 | } | |
21867 | return resultobj; | |
21868 | fail: | |
21869 | return NULL; | |
21870 | } | |
21871 | ||
21872 | ||
21873 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21874 | PyObject *resultobj; | |
21875 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21876 | long arg2 ; | |
21877 | int arg3 ; | |
21878 | int arg4 ; | |
21879 | bool result; | |
21880 | PyObject * obj0 = 0 ; | |
21881 | PyObject * obj1 = 0 ; | |
21882 | PyObject * obj2 = 0 ; | |
21883 | PyObject * obj3 = 0 ; | |
21884 | char *kwnames[] = { | |
21885 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21886 | }; | |
21887 | ||
21888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
21889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21891 | arg2 = (long) SWIG_AsLong(obj1); | |
21892 | if (PyErr_Occurred()) SWIG_fail; | |
21893 | arg3 = (int) SWIG_AsInt(obj2); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | arg4 = (int) SWIG_AsInt(obj3); | |
21896 | if (PyErr_Occurred()) SWIG_fail; | |
21897 | { | |
21898 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21899 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21900 | ||
21901 | wxPyEndAllowThreads(__tstate); | |
21902 | if (PyErr_Occurred()) SWIG_fail; | |
21903 | } | |
21904 | { | |
21905 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21906 | } | |
21907 | return resultobj; | |
21908 | fail: | |
21909 | return NULL; | |
21910 | } | |
21911 | ||
21912 | ||
21913 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21914 | PyObject *resultobj; | |
21915 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21916 | long arg2 ; | |
21917 | wxString result; | |
21918 | PyObject * obj0 = 0 ; | |
21919 | PyObject * obj1 = 0 ; | |
21920 | char *kwnames[] = { | |
21921 | (char *) "self",(char *) "item", NULL | |
21922 | }; | |
21923 | ||
21924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
21925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21927 | arg2 = (long) SWIG_AsLong(obj1); | |
21928 | if (PyErr_Occurred()) SWIG_fail; | |
21929 | { | |
21930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21931 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21932 | ||
21933 | wxPyEndAllowThreads(__tstate); | |
21934 | if (PyErr_Occurred()) SWIG_fail; | |
21935 | } | |
21936 | { | |
21937 | #if wxUSE_UNICODE | |
21938 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21939 | #else | |
21940 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21941 | #endif | |
21942 | } | |
21943 | return resultobj; | |
21944 | fail: | |
21945 | return NULL; | |
21946 | } | |
21947 | ||
21948 | ||
21949 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21950 | PyObject *resultobj; | |
21951 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21952 | long arg2 ; | |
21953 | wxString *arg3 = 0 ; | |
21954 | bool temp3 = False ; | |
21955 | PyObject * obj0 = 0 ; | |
21956 | PyObject * obj1 = 0 ; | |
21957 | PyObject * obj2 = 0 ; | |
21958 | char *kwnames[] = { | |
21959 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21960 | }; | |
21961 | ||
21962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
21963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21965 | arg2 = (long) SWIG_AsLong(obj1); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | { | |
21968 | arg3 = wxString_in_helper(obj2); | |
21969 | if (arg3 == NULL) SWIG_fail; | |
21970 | temp3 = True; | |
21971 | } | |
21972 | { | |
21973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21974 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21975 | ||
21976 | wxPyEndAllowThreads(__tstate); | |
21977 | if (PyErr_Occurred()) SWIG_fail; | |
21978 | } | |
21979 | Py_INCREF(Py_None); resultobj = Py_None; | |
21980 | { | |
21981 | if (temp3) | |
21982 | delete arg3; | |
21983 | } | |
21984 | return resultobj; | |
21985 | fail: | |
21986 | { | |
21987 | if (temp3) | |
21988 | delete arg3; | |
21989 | } | |
21990 | return NULL; | |
21991 | } | |
21992 | ||
21993 | ||
21994 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21995 | PyObject *resultobj; | |
21996 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21997 | long arg2 ; | |
21998 | long result; | |
21999 | PyObject * obj0 = 0 ; | |
22000 | PyObject * obj1 = 0 ; | |
22001 | char *kwnames[] = { | |
22002 | (char *) "self",(char *) "item", NULL | |
22003 | }; | |
22004 | ||
22005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
22006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22008 | arg2 = (long) SWIG_AsLong(obj1); | |
22009 | if (PyErr_Occurred()) SWIG_fail; | |
22010 | { | |
22011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22012 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
22013 | ||
22014 | wxPyEndAllowThreads(__tstate); | |
22015 | if (PyErr_Occurred()) SWIG_fail; | |
22016 | } | |
22017 | resultobj = SWIG_FromLong((long)result); | |
22018 | return resultobj; | |
22019 | fail: | |
22020 | return NULL; | |
22021 | } | |
22022 | ||
22023 | ||
22024 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22025 | PyObject *resultobj; | |
22026 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22027 | long arg2 ; | |
22028 | long arg3 ; | |
22029 | bool result; | |
22030 | PyObject * obj0 = 0 ; | |
22031 | PyObject * obj1 = 0 ; | |
22032 | PyObject * obj2 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "self",(char *) "item",(char *) "data", NULL | |
22035 | }; | |
22036 | ||
22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22040 | arg2 = (long) SWIG_AsLong(obj1); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
22042 | arg3 = (long) SWIG_AsLong(obj2); | |
22043 | if (PyErr_Occurred()) SWIG_fail; | |
22044 | { | |
22045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22046 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
22047 | ||
22048 | wxPyEndAllowThreads(__tstate); | |
22049 | if (PyErr_Occurred()) SWIG_fail; | |
22050 | } | |
22051 | { | |
22052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22053 | } | |
22054 | return resultobj; | |
22055 | fail: | |
22056 | return NULL; | |
22057 | } | |
22058 | ||
22059 | ||
22060 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22061 | PyObject *resultobj; | |
22062 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22063 | long arg2 ; | |
22064 | wxPoint result; | |
22065 | PyObject * obj0 = 0 ; | |
22066 | PyObject * obj1 = 0 ; | |
22067 | char *kwnames[] = { | |
22068 | (char *) "self",(char *) "item", NULL | |
22069 | }; | |
22070 | ||
22071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; | |
22072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22074 | arg2 = (long) SWIG_AsLong(obj1); | |
22075 | if (PyErr_Occurred()) SWIG_fail; | |
22076 | { | |
22077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22078 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
22079 | ||
22080 | wxPyEndAllowThreads(__tstate); | |
22081 | if (PyErr_Occurred()) SWIG_fail; | |
22082 | } | |
22083 | { | |
22084 | wxPoint * resultptr; | |
22085 | resultptr = new wxPoint((wxPoint &) result); | |
22086 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
22087 | } | |
22088 | return resultobj; | |
22089 | fail: | |
22090 | return NULL; | |
22091 | } | |
22092 | ||
22093 | ||
22094 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22095 | PyObject *resultobj; | |
22096 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22097 | long arg2 ; | |
22098 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22099 | wxRect result; | |
22100 | PyObject * obj0 = 0 ; | |
22101 | PyObject * obj1 = 0 ; | |
22102 | PyObject * obj2 = 0 ; | |
22103 | char *kwnames[] = { | |
22104 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22105 | }; | |
22106 | ||
22107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22110 | arg2 = (long) SWIG_AsLong(obj1); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | if (obj2) { | |
22113 | arg3 = (int) SWIG_AsInt(obj2); | |
22114 | if (PyErr_Occurred()) SWIG_fail; | |
22115 | } | |
22116 | { | |
22117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22118 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22119 | ||
22120 | wxPyEndAllowThreads(__tstate); | |
22121 | if (PyErr_Occurred()) SWIG_fail; | |
22122 | } | |
22123 | { | |
22124 | wxRect * resultptr; | |
22125 | resultptr = new wxRect((wxRect &) result); | |
22126 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
22127 | } | |
22128 | return resultobj; | |
22129 | fail: | |
22130 | return NULL; | |
22131 | } | |
22132 | ||
22133 | ||
22134 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22135 | PyObject *resultobj; | |
22136 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22137 | long arg2 ; | |
22138 | wxPoint *arg3 = 0 ; | |
22139 | bool result; | |
22140 | wxPoint temp3 ; | |
22141 | PyObject * obj0 = 0 ; | |
22142 | PyObject * obj1 = 0 ; | |
22143 | PyObject * obj2 = 0 ; | |
22144 | char *kwnames[] = { | |
22145 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22146 | }; | |
22147 | ||
22148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22151 | arg2 = (long) SWIG_AsLong(obj1); | |
22152 | if (PyErr_Occurred()) SWIG_fail; | |
22153 | { | |
22154 | arg3 = &temp3; | |
22155 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22156 | } | |
22157 | { | |
22158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22159 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22160 | ||
22161 | wxPyEndAllowThreads(__tstate); | |
22162 | if (PyErr_Occurred()) SWIG_fail; | |
22163 | } | |
22164 | { | |
22165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22166 | } | |
22167 | return resultobj; | |
22168 | fail: | |
22169 | return NULL; | |
22170 | } | |
22171 | ||
22172 | ||
22173 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22174 | PyObject *resultobj; | |
22175 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22176 | int result; | |
22177 | PyObject * obj0 = 0 ; | |
22178 | char *kwnames[] = { | |
22179 | (char *) "self", NULL | |
22180 | }; | |
22181 | ||
22182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
22183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22185 | { | |
22186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22187 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22188 | ||
22189 | wxPyEndAllowThreads(__tstate); | |
22190 | if (PyErr_Occurred()) SWIG_fail; | |
22191 | } | |
22192 | resultobj = SWIG_FromInt((int)result); | |
22193 | return resultobj; | |
22194 | fail: | |
22195 | return NULL; | |
22196 | } | |
22197 | ||
22198 | ||
22199 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22200 | PyObject *resultobj; | |
22201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22202 | int result; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | char *kwnames[] = { | |
22205 | (char *) "self", NULL | |
22206 | }; | |
22207 | ||
22208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
22209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22211 | { | |
22212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22213 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22214 | ||
22215 | wxPyEndAllowThreads(__tstate); | |
22216 | if (PyErr_Occurred()) SWIG_fail; | |
22217 | } | |
22218 | resultobj = SWIG_FromInt((int)result); | |
22219 | return resultobj; | |
22220 | fail: | |
22221 | return NULL; | |
22222 | } | |
22223 | ||
22224 | ||
22225 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22226 | PyObject *resultobj; | |
22227 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22228 | wxSize result; | |
22229 | PyObject * obj0 = 0 ; | |
22230 | char *kwnames[] = { | |
22231 | (char *) "self", NULL | |
22232 | }; | |
22233 | ||
22234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
22235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22237 | { | |
22238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22239 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22240 | ||
22241 | wxPyEndAllowThreads(__tstate); | |
22242 | if (PyErr_Occurred()) SWIG_fail; | |
22243 | } | |
22244 | { | |
22245 | wxSize * resultptr; | |
22246 | resultptr = new wxSize((wxSize &) result); | |
22247 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
22248 | } | |
22249 | return resultobj; | |
22250 | fail: | |
22251 | return NULL; | |
22252 | } | |
22253 | ||
22254 | ||
22255 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22256 | PyObject *resultobj; | |
22257 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22258 | int result; | |
22259 | PyObject * obj0 = 0 ; | |
22260 | char *kwnames[] = { | |
22261 | (char *) "self", NULL | |
22262 | }; | |
22263 | ||
22264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
22265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22267 | { | |
22268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22269 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22270 | ||
22271 | wxPyEndAllowThreads(__tstate); | |
22272 | if (PyErr_Occurred()) SWIG_fail; | |
22273 | } | |
22274 | resultobj = SWIG_FromInt((int)result); | |
22275 | return resultobj; | |
22276 | fail: | |
22277 | return NULL; | |
22278 | } | |
22279 | ||
22280 | ||
22281 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22282 | PyObject *resultobj; | |
22283 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22284 | wxColour result; | |
22285 | PyObject * obj0 = 0 ; | |
22286 | char *kwnames[] = { | |
22287 | (char *) "self", NULL | |
22288 | }; | |
22289 | ||
22290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
22291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22293 | { | |
22294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22295 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22296 | ||
22297 | wxPyEndAllowThreads(__tstate); | |
22298 | if (PyErr_Occurred()) SWIG_fail; | |
22299 | } | |
22300 | { | |
22301 | wxColour * resultptr; | |
22302 | resultptr = new wxColour((wxColour &) result); | |
22303 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
22304 | } | |
22305 | return resultobj; | |
22306 | fail: | |
22307 | return NULL; | |
22308 | } | |
22309 | ||
22310 | ||
22311 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22312 | PyObject *resultobj; | |
22313 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22314 | wxColour *arg2 = 0 ; | |
22315 | wxColour temp2 ; | |
22316 | PyObject * obj0 = 0 ; | |
22317 | PyObject * obj1 = 0 ; | |
22318 | char *kwnames[] = { | |
22319 | (char *) "self",(char *) "col", NULL | |
22320 | }; | |
22321 | ||
22322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
22323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22325 | { | |
22326 | arg2 = &temp2; | |
22327 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22328 | } | |
22329 | { | |
22330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22331 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22332 | ||
22333 | wxPyEndAllowThreads(__tstate); | |
22334 | if (PyErr_Occurred()) SWIG_fail; | |
22335 | } | |
22336 | Py_INCREF(Py_None); resultobj = Py_None; | |
22337 | return resultobj; | |
22338 | fail: | |
22339 | return NULL; | |
22340 | } | |
22341 | ||
22342 | ||
22343 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22344 | PyObject *resultobj; | |
22345 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22346 | long result; | |
22347 | PyObject * obj0 = 0 ; | |
22348 | char *kwnames[] = { | |
22349 | (char *) "self", NULL | |
22350 | }; | |
22351 | ||
22352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
22353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22355 | { | |
22356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22357 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22358 | ||
22359 | wxPyEndAllowThreads(__tstate); | |
22360 | if (PyErr_Occurred()) SWIG_fail; | |
22361 | } | |
22362 | resultobj = SWIG_FromLong((long)result); | |
22363 | return resultobj; | |
22364 | fail: | |
22365 | return NULL; | |
22366 | } | |
22367 | ||
22368 | ||
22369 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22370 | PyObject *resultobj; | |
22371 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22372 | long arg2 ; | |
22373 | bool arg3 = (bool) True ; | |
22374 | PyObject * obj0 = 0 ; | |
22375 | PyObject * obj1 = 0 ; | |
22376 | PyObject * obj2 = 0 ; | |
22377 | char *kwnames[] = { | |
22378 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22379 | }; | |
22380 | ||
22381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22384 | arg2 = (long) SWIG_AsLong(obj1); | |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
22386 | if (obj2) { | |
22387 | arg3 = (bool) SWIG_AsBool(obj2); | |
22388 | if (PyErr_Occurred()) SWIG_fail; | |
22389 | } | |
22390 | { | |
22391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22392 | (arg1)->SetSingleStyle(arg2,arg3); | |
22393 | ||
22394 | wxPyEndAllowThreads(__tstate); | |
22395 | if (PyErr_Occurred()) SWIG_fail; | |
22396 | } | |
22397 | Py_INCREF(Py_None); resultobj = Py_None; | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | return NULL; | |
22401 | } | |
22402 | ||
22403 | ||
22404 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22405 | PyObject *resultobj; | |
22406 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22407 | long arg2 ; | |
22408 | PyObject * obj0 = 0 ; | |
22409 | PyObject * obj1 = 0 ; | |
22410 | char *kwnames[] = { | |
22411 | (char *) "self",(char *) "style", NULL | |
22412 | }; | |
22413 | ||
22414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; | |
22415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22417 | arg2 = (long) SWIG_AsLong(obj1); | |
22418 | if (PyErr_Occurred()) SWIG_fail; | |
22419 | { | |
22420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22421 | (arg1)->SetWindowStyleFlag(arg2); | |
22422 | ||
22423 | wxPyEndAllowThreads(__tstate); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
22425 | } | |
22426 | Py_INCREF(Py_None); resultobj = Py_None; | |
22427 | return resultobj; | |
22428 | fail: | |
22429 | return NULL; | |
22430 | } | |
22431 | ||
22432 | ||
22433 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22434 | PyObject *resultobj; | |
22435 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22436 | long arg2 ; | |
22437 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22438 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22439 | long result; | |
22440 | PyObject * obj0 = 0 ; | |
22441 | PyObject * obj1 = 0 ; | |
22442 | PyObject * obj2 = 0 ; | |
22443 | PyObject * obj3 = 0 ; | |
22444 | char *kwnames[] = { | |
22445 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22446 | }; | |
22447 | ||
22448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22451 | arg2 = (long) SWIG_AsLong(obj1); | |
22452 | if (PyErr_Occurred()) SWIG_fail; | |
22453 | if (obj2) { | |
22454 | arg3 = (int) SWIG_AsInt(obj2); | |
22455 | if (PyErr_Occurred()) SWIG_fail; | |
22456 | } | |
22457 | if (obj3) { | |
22458 | arg4 = (int) SWIG_AsInt(obj3); | |
22459 | if (PyErr_Occurred()) SWIG_fail; | |
22460 | } | |
22461 | { | |
22462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22463 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22464 | ||
22465 | wxPyEndAllowThreads(__tstate); | |
22466 | if (PyErr_Occurred()) SWIG_fail; | |
22467 | } | |
22468 | resultobj = SWIG_FromLong((long)result); | |
22469 | return resultobj; | |
22470 | fail: | |
22471 | return NULL; | |
22472 | } | |
22473 | ||
22474 | ||
22475 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22476 | PyObject *resultobj; | |
22477 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22478 | int arg2 ; | |
22479 | wxImageList *result; | |
22480 | PyObject * obj0 = 0 ; | |
22481 | PyObject * obj1 = 0 ; | |
22482 | char *kwnames[] = { | |
22483 | (char *) "self",(char *) "which", NULL | |
22484 | }; | |
22485 | ||
22486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; | |
22487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22489 | arg2 = (int) SWIG_AsInt(obj1); | |
22490 | if (PyErr_Occurred()) SWIG_fail; | |
22491 | { | |
22492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22493 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22494 | ||
22495 | wxPyEndAllowThreads(__tstate); | |
22496 | if (PyErr_Occurred()) SWIG_fail; | |
22497 | } | |
22498 | { | |
412d302d | 22499 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22500 | } |
22501 | return resultobj; | |
22502 | fail: | |
22503 | return NULL; | |
22504 | } | |
22505 | ||
22506 | ||
22507 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22508 | PyObject *resultobj; | |
22509 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22510 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22511 | int arg3 ; | |
22512 | PyObject * obj0 = 0 ; | |
22513 | PyObject * obj1 = 0 ; | |
22514 | PyObject * obj2 = 0 ; | |
22515 | char *kwnames[] = { | |
22516 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22517 | }; | |
22518 | ||
22519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22524 | arg3 = (int) SWIG_AsInt(obj2); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | { | |
22527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22528 | (arg1)->SetImageList(arg2,arg3); | |
22529 | ||
22530 | wxPyEndAllowThreads(__tstate); | |
22531 | if (PyErr_Occurred()) SWIG_fail; | |
22532 | } | |
22533 | Py_INCREF(Py_None); resultobj = Py_None; | |
22534 | return resultobj; | |
22535 | fail: | |
22536 | return NULL; | |
22537 | } | |
22538 | ||
22539 | ||
22540 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22541 | PyObject *resultobj; | |
22542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22543 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22544 | int arg3 ; | |
22545 | PyObject * obj0 = 0 ; | |
22546 | PyObject * obj1 = 0 ; | |
22547 | PyObject * obj2 = 0 ; | |
22548 | char *kwnames[] = { | |
22549 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22550 | }; | |
22551 | ||
22552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22556 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22557 | arg3 = (int) SWIG_AsInt(obj2); | |
22558 | if (PyErr_Occurred()) SWIG_fail; | |
22559 | { | |
22560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22561 | (arg1)->AssignImageList(arg2,arg3); | |
22562 | ||
22563 | wxPyEndAllowThreads(__tstate); | |
22564 | if (PyErr_Occurred()) SWIG_fail; | |
22565 | } | |
22566 | Py_INCREF(Py_None); resultobj = Py_None; | |
22567 | return resultobj; | |
22568 | fail: | |
22569 | return NULL; | |
22570 | } | |
22571 | ||
22572 | ||
22573 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22574 | PyObject *resultobj; | |
22575 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22576 | bool result; | |
22577 | PyObject * obj0 = 0 ; | |
22578 | char *kwnames[] = { | |
22579 | (char *) "self", NULL | |
22580 | }; | |
22581 | ||
22582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22585 | { | |
22586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22587 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22588 | ||
22589 | wxPyEndAllowThreads(__tstate); | |
22590 | if (PyErr_Occurred()) SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22594 | } | |
22595 | return resultobj; | |
22596 | fail: | |
22597 | return NULL; | |
22598 | } | |
22599 | ||
22600 | ||
22601 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22602 | PyObject *resultobj; | |
22603 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22604 | bool result; | |
22605 | PyObject * obj0 = 0 ; | |
22606 | char *kwnames[] = { | |
22607 | (char *) "self", NULL | |
22608 | }; | |
22609 | ||
22610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
22611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22613 | { | |
22614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22615 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22616 | ||
22617 | wxPyEndAllowThreads(__tstate); | |
22618 | if (PyErr_Occurred()) SWIG_fail; | |
22619 | } | |
22620 | { | |
22621 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22622 | } | |
22623 | return resultobj; | |
22624 | fail: | |
22625 | return NULL; | |
22626 | } | |
22627 | ||
22628 | ||
22629 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22630 | PyObject *resultobj; | |
22631 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22632 | long arg2 ; | |
22633 | PyObject * obj0 = 0 ; | |
22634 | PyObject * obj1 = 0 ; | |
22635 | char *kwnames[] = { | |
22636 | (char *) "self",(char *) "item", NULL | |
22637 | }; | |
22638 | ||
22639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; | |
22640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22642 | arg2 = (long) SWIG_AsLong(obj1); | |
22643 | if (PyErr_Occurred()) SWIG_fail; | |
22644 | { | |
22645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22646 | (arg1)->RefreshItem(arg2); | |
22647 | ||
22648 | wxPyEndAllowThreads(__tstate); | |
22649 | if (PyErr_Occurred()) SWIG_fail; | |
22650 | } | |
22651 | Py_INCREF(Py_None); resultobj = Py_None; | |
22652 | return resultobj; | |
22653 | fail: | |
22654 | return NULL; | |
22655 | } | |
22656 | ||
22657 | ||
22658 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22659 | PyObject *resultobj; | |
22660 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22661 | long arg2 ; | |
22662 | long arg3 ; | |
22663 | PyObject * obj0 = 0 ; | |
22664 | PyObject * obj1 = 0 ; | |
22665 | PyObject * obj2 = 0 ; | |
22666 | char *kwnames[] = { | |
22667 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22668 | }; | |
22669 | ||
22670 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
22671 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22672 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22673 | arg2 = (long) SWIG_AsLong(obj1); | |
22674 | if (PyErr_Occurred()) SWIG_fail; | |
22675 | arg3 = (long) SWIG_AsLong(obj2); | |
22676 | if (PyErr_Occurred()) SWIG_fail; | |
22677 | { | |
22678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22679 | (arg1)->RefreshItems(arg2,arg3); | |
22680 | ||
22681 | wxPyEndAllowThreads(__tstate); | |
22682 | if (PyErr_Occurred()) SWIG_fail; | |
22683 | } | |
22684 | Py_INCREF(Py_None); resultobj = Py_None; | |
22685 | return resultobj; | |
22686 | fail: | |
22687 | return NULL; | |
22688 | } | |
22689 | ||
22690 | ||
22691 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22692 | PyObject *resultobj; | |
22693 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22694 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22695 | bool result; | |
22696 | PyObject * obj0 = 0 ; | |
22697 | PyObject * obj1 = 0 ; | |
22698 | char *kwnames[] = { | |
22699 | (char *) "self",(char *) "flag", NULL | |
22700 | }; | |
22701 | ||
22702 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; | |
22703 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22704 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22705 | if (obj1) { | |
22706 | arg2 = (int) SWIG_AsInt(obj1); | |
22707 | if (PyErr_Occurred()) SWIG_fail; | |
22708 | } | |
22709 | { | |
22710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22711 | result = (bool)(arg1)->Arrange(arg2); | |
22712 | ||
22713 | wxPyEndAllowThreads(__tstate); | |
22714 | if (PyErr_Occurred()) SWIG_fail; | |
22715 | } | |
22716 | { | |
22717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22718 | } | |
22719 | return resultobj; | |
22720 | fail: | |
22721 | return NULL; | |
22722 | } | |
22723 | ||
22724 | ||
22725 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22726 | PyObject *resultobj; | |
22727 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22728 | long arg2 ; | |
22729 | bool result; | |
22730 | PyObject * obj0 = 0 ; | |
22731 | PyObject * obj1 = 0 ; | |
22732 | char *kwnames[] = { | |
22733 | (char *) "self",(char *) "item", NULL | |
22734 | }; | |
22735 | ||
22736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; | |
22737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22739 | arg2 = (long) SWIG_AsLong(obj1); | |
22740 | if (PyErr_Occurred()) SWIG_fail; | |
22741 | { | |
22742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22743 | result = (bool)(arg1)->DeleteItem(arg2); | |
22744 | ||
22745 | wxPyEndAllowThreads(__tstate); | |
22746 | if (PyErr_Occurred()) SWIG_fail; | |
22747 | } | |
22748 | { | |
22749 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22750 | } | |
22751 | return resultobj; | |
22752 | fail: | |
22753 | return NULL; | |
22754 | } | |
22755 | ||
22756 | ||
22757 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22758 | PyObject *resultobj; | |
22759 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22760 | bool result; | |
22761 | PyObject * obj0 = 0 ; | |
22762 | char *kwnames[] = { | |
22763 | (char *) "self", NULL | |
22764 | }; | |
22765 | ||
22766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
22767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22769 | { | |
22770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22771 | result = (bool)(arg1)->DeleteAllItems(); | |
22772 | ||
22773 | wxPyEndAllowThreads(__tstate); | |
22774 | if (PyErr_Occurred()) SWIG_fail; | |
22775 | } | |
22776 | { | |
22777 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22778 | } | |
22779 | return resultobj; | |
22780 | fail: | |
22781 | return NULL; | |
22782 | } | |
22783 | ||
22784 | ||
22785 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22786 | PyObject *resultobj; | |
22787 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22788 | int arg2 ; | |
22789 | bool result; | |
22790 | PyObject * obj0 = 0 ; | |
22791 | PyObject * obj1 = 0 ; | |
22792 | char *kwnames[] = { | |
22793 | (char *) "self",(char *) "col", NULL | |
22794 | }; | |
22795 | ||
22796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; | |
22797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22799 | arg2 = (int) SWIG_AsInt(obj1); | |
22800 | if (PyErr_Occurred()) SWIG_fail; | |
22801 | { | |
22802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22803 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22804 | ||
22805 | wxPyEndAllowThreads(__tstate); | |
22806 | if (PyErr_Occurred()) SWIG_fail; | |
22807 | } | |
22808 | { | |
22809 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22810 | } | |
22811 | return resultobj; | |
22812 | fail: | |
22813 | return NULL; | |
22814 | } | |
22815 | ||
22816 | ||
22817 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22818 | PyObject *resultobj; | |
22819 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22820 | bool result; | |
22821 | PyObject * obj0 = 0 ; | |
22822 | char *kwnames[] = { | |
22823 | (char *) "self", NULL | |
22824 | }; | |
22825 | ||
22826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
22827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22829 | { | |
22830 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22831 | result = (bool)(arg1)->DeleteAllColumns(); | |
22832 | ||
22833 | wxPyEndAllowThreads(__tstate); | |
22834 | if (PyErr_Occurred()) SWIG_fail; | |
22835 | } | |
22836 | { | |
22837 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22838 | } | |
22839 | return resultobj; | |
22840 | fail: | |
22841 | return NULL; | |
22842 | } | |
22843 | ||
22844 | ||
22845 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22846 | PyObject *resultobj; | |
22847 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22848 | PyObject * obj0 = 0 ; | |
22849 | char *kwnames[] = { | |
22850 | (char *) "self", NULL | |
22851 | }; | |
22852 | ||
22853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
22854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22856 | { | |
22857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22858 | (arg1)->ClearAll(); | |
22859 | ||
22860 | wxPyEndAllowThreads(__tstate); | |
22861 | if (PyErr_Occurred()) SWIG_fail; | |
22862 | } | |
22863 | Py_INCREF(Py_None); resultobj = Py_None; | |
22864 | return resultobj; | |
22865 | fail: | |
22866 | return NULL; | |
22867 | } | |
22868 | ||
22869 | ||
22870 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22871 | PyObject *resultobj; | |
22872 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22873 | long arg2 ; | |
22874 | wxTextCtrl *result; | |
22875 | PyObject * obj0 = 0 ; | |
22876 | PyObject * obj1 = 0 ; | |
22877 | char *kwnames[] = { | |
22878 | (char *) "self",(char *) "item", NULL | |
22879 | }; | |
22880 | ||
22881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22884 | arg2 = (long) SWIG_AsLong(obj1); | |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
22886 | { | |
22887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22888 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
22889 | ||
22890 | wxPyEndAllowThreads(__tstate); | |
22891 | if (PyErr_Occurred()) SWIG_fail; | |
22892 | } | |
22893 | { | |
412d302d | 22894 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
22895 | } |
22896 | return resultobj; | |
22897 | fail: | |
22898 | return NULL; | |
22899 | } | |
22900 | ||
22901 | ||
22902 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22903 | PyObject *resultobj; | |
22904 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22905 | bool arg2 ; | |
22906 | bool result; | |
22907 | PyObject * obj0 = 0 ; | |
22908 | PyObject * obj1 = 0 ; | |
22909 | char *kwnames[] = { | |
22910 | (char *) "self",(char *) "cancel", NULL | |
22911 | }; | |
22912 | ||
22913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
22914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22916 | arg2 = (bool) SWIG_AsBool(obj1); | |
22917 | if (PyErr_Occurred()) SWIG_fail; | |
22918 | { | |
22919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22920 | result = (bool)(arg1)->EndEditLabel(arg2); | |
22921 | ||
22922 | wxPyEndAllowThreads(__tstate); | |
22923 | if (PyErr_Occurred()) SWIG_fail; | |
22924 | } | |
22925 | { | |
22926 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22927 | } | |
22928 | return resultobj; | |
22929 | fail: | |
22930 | return NULL; | |
22931 | } | |
22932 | ||
22933 | ||
22934 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22935 | PyObject *resultobj; | |
22936 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22937 | long arg2 ; | |
22938 | bool result; | |
22939 | PyObject * obj0 = 0 ; | |
22940 | PyObject * obj1 = 0 ; | |
22941 | char *kwnames[] = { | |
22942 | (char *) "self",(char *) "item", NULL | |
22943 | }; | |
22944 | ||
22945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
22946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22948 | arg2 = (long) SWIG_AsLong(obj1); | |
22949 | if (PyErr_Occurred()) SWIG_fail; | |
22950 | { | |
22951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22952 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22953 | ||
22954 | wxPyEndAllowThreads(__tstate); | |
22955 | if (PyErr_Occurred()) SWIG_fail; | |
22956 | } | |
22957 | { | |
22958 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22959 | } | |
22960 | return resultobj; | |
22961 | fail: | |
22962 | return NULL; | |
22963 | } | |
22964 | ||
22965 | ||
22966 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22967 | PyObject *resultobj; | |
22968 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22969 | long arg2 ; | |
22970 | wxString *arg3 = 0 ; | |
22971 | bool arg4 = (bool) False ; | |
22972 | long result; | |
22973 | bool temp3 = False ; | |
22974 | PyObject * obj0 = 0 ; | |
22975 | PyObject * obj1 = 0 ; | |
22976 | PyObject * obj2 = 0 ; | |
22977 | PyObject * obj3 = 0 ; | |
22978 | char *kwnames[] = { | |
22979 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22980 | }; | |
22981 | ||
22982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
22983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22985 | arg2 = (long) SWIG_AsLong(obj1); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
22987 | { | |
22988 | arg3 = wxString_in_helper(obj2); | |
22989 | if (arg3 == NULL) SWIG_fail; | |
22990 | temp3 = True; | |
22991 | } | |
22992 | if (obj3) { | |
22993 | arg4 = (bool) SWIG_AsBool(obj3); | |
22994 | if (PyErr_Occurred()) SWIG_fail; | |
22995 | } | |
22996 | { | |
22997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22998 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22999 | ||
23000 | wxPyEndAllowThreads(__tstate); | |
23001 | if (PyErr_Occurred()) SWIG_fail; | |
23002 | } | |
23003 | resultobj = SWIG_FromLong((long)result); | |
23004 | { | |
23005 | if (temp3) | |
23006 | delete arg3; | |
23007 | } | |
23008 | return resultobj; | |
23009 | fail: | |
23010 | { | |
23011 | if (temp3) | |
23012 | delete arg3; | |
23013 | } | |
23014 | return NULL; | |
23015 | } | |
23016 | ||
23017 | ||
23018 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23019 | PyObject *resultobj; | |
23020 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23021 | long arg2 ; | |
23022 | long arg3 ; | |
23023 | long result; | |
23024 | PyObject * obj0 = 0 ; | |
23025 | PyObject * obj1 = 0 ; | |
23026 | PyObject * obj2 = 0 ; | |
23027 | char *kwnames[] = { | |
23028 | (char *) "self",(char *) "start",(char *) "data", NULL | |
23029 | }; | |
23030 | ||
23031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23034 | arg2 = (long) SWIG_AsLong(obj1); | |
23035 | if (PyErr_Occurred()) SWIG_fail; | |
23036 | arg3 = (long) SWIG_AsLong(obj2); | |
23037 | if (PyErr_Occurred()) SWIG_fail; | |
23038 | { | |
23039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23040 | result = (long)(arg1)->FindItem(arg2,arg3); | |
23041 | ||
23042 | wxPyEndAllowThreads(__tstate); | |
23043 | if (PyErr_Occurred()) SWIG_fail; | |
23044 | } | |
23045 | resultobj = SWIG_FromLong((long)result); | |
23046 | return resultobj; | |
23047 | fail: | |
23048 | return NULL; | |
23049 | } | |
23050 | ||
23051 | ||
23052 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23053 | PyObject *resultobj; | |
23054 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23055 | long arg2 ; | |
23056 | wxPoint *arg3 = 0 ; | |
23057 | int arg4 ; | |
23058 | long result; | |
23059 | wxPoint temp3 ; | |
23060 | PyObject * obj0 = 0 ; | |
23061 | PyObject * obj1 = 0 ; | |
23062 | PyObject * obj2 = 0 ; | |
23063 | PyObject * obj3 = 0 ; | |
23064 | char *kwnames[] = { | |
23065 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
23066 | }; | |
23067 | ||
23068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23071 | arg2 = (long) SWIG_AsLong(obj1); | |
23072 | if (PyErr_Occurred()) SWIG_fail; | |
23073 | { | |
23074 | arg3 = &temp3; | |
23075 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23076 | } | |
23077 | arg4 = (int) SWIG_AsInt(obj3); | |
23078 | if (PyErr_Occurred()) SWIG_fail; | |
23079 | { | |
23080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23081 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
23082 | ||
23083 | wxPyEndAllowThreads(__tstate); | |
23084 | if (PyErr_Occurred()) SWIG_fail; | |
23085 | } | |
23086 | resultobj = SWIG_FromLong((long)result); | |
23087 | return resultobj; | |
23088 | fail: | |
23089 | return NULL; | |
23090 | } | |
23091 | ||
23092 | ||
23093 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23094 | PyObject *resultobj; | |
23095 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23096 | wxPoint *arg2 = 0 ; | |
23097 | int *arg3 = 0 ; | |
23098 | long result; | |
23099 | wxPoint temp2 ; | |
23100 | int temp3 ; | |
23101 | PyObject * obj0 = 0 ; | |
23102 | PyObject * obj1 = 0 ; | |
23103 | char *kwnames[] = { | |
23104 | (char *) "self",(char *) "point", NULL | |
23105 | }; | |
23106 | ||
23107 | arg3 = &temp3; | |
23108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
23109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23111 | { | |
23112 | arg2 = &temp2; | |
23113 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23114 | } | |
23115 | { | |
23116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23117 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23118 | ||
23119 | wxPyEndAllowThreads(__tstate); | |
23120 | if (PyErr_Occurred()) SWIG_fail; | |
23121 | } | |
23122 | resultobj = SWIG_FromLong((long)result); | |
23123 | { | |
23124 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23125 | resultobj = t_output_helper(resultobj,o); | |
23126 | } | |
23127 | return resultobj; | |
23128 | fail: | |
23129 | return NULL; | |
23130 | } | |
23131 | ||
23132 | ||
23133 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23134 | PyObject *resultobj; | |
23135 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23136 | wxListItem *arg2 = 0 ; | |
23137 | long result; | |
23138 | PyObject * obj0 = 0 ; | |
23139 | PyObject * obj1 = 0 ; | |
23140 | char *kwnames[] = { | |
23141 | (char *) "self",(char *) "info", NULL | |
23142 | }; | |
23143 | ||
23144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
23145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23147 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23148 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23149 | SWIG_fail; | |
23150 | if (arg2 == NULL) { | |
23151 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23152 | SWIG_fail; | |
23153 | } | |
23154 | { | |
23155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23156 | result = (long)(arg1)->InsertItem(*arg2); | |
23157 | ||
23158 | wxPyEndAllowThreads(__tstate); | |
23159 | if (PyErr_Occurred()) SWIG_fail; | |
23160 | } | |
23161 | resultobj = SWIG_FromLong((long)result); | |
23162 | return resultobj; | |
23163 | fail: | |
23164 | return NULL; | |
23165 | } | |
23166 | ||
23167 | ||
23168 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23169 | PyObject *resultobj; | |
23170 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23171 | long arg2 ; | |
23172 | wxString *arg3 = 0 ; | |
23173 | long result; | |
23174 | bool temp3 = False ; | |
23175 | PyObject * obj0 = 0 ; | |
23176 | PyObject * obj1 = 0 ; | |
23177 | PyObject * obj2 = 0 ; | |
23178 | char *kwnames[] = { | |
23179 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23180 | }; | |
23181 | ||
23182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23185 | arg2 = (long) SWIG_AsLong(obj1); | |
23186 | if (PyErr_Occurred()) SWIG_fail; | |
23187 | { | |
23188 | arg3 = wxString_in_helper(obj2); | |
23189 | if (arg3 == NULL) SWIG_fail; | |
23190 | temp3 = True; | |
23191 | } | |
23192 | { | |
23193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23194 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23195 | ||
23196 | wxPyEndAllowThreads(__tstate); | |
23197 | if (PyErr_Occurred()) SWIG_fail; | |
23198 | } | |
23199 | resultobj = SWIG_FromLong((long)result); | |
23200 | { | |
23201 | if (temp3) | |
23202 | delete arg3; | |
23203 | } | |
23204 | return resultobj; | |
23205 | fail: | |
23206 | { | |
23207 | if (temp3) | |
23208 | delete arg3; | |
23209 | } | |
23210 | return NULL; | |
23211 | } | |
23212 | ||
23213 | ||
23214 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23215 | PyObject *resultobj; | |
23216 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23217 | long arg2 ; | |
23218 | int arg3 ; | |
23219 | long result; | |
23220 | PyObject * obj0 = 0 ; | |
23221 | PyObject * obj1 = 0 ; | |
23222 | PyObject * obj2 = 0 ; | |
23223 | char *kwnames[] = { | |
23224 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23225 | }; | |
23226 | ||
23227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23230 | arg2 = (long) SWIG_AsLong(obj1); | |
23231 | if (PyErr_Occurred()) SWIG_fail; | |
23232 | arg3 = (int) SWIG_AsInt(obj2); | |
23233 | if (PyErr_Occurred()) SWIG_fail; | |
23234 | { | |
23235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23236 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23237 | ||
23238 | wxPyEndAllowThreads(__tstate); | |
23239 | if (PyErr_Occurred()) SWIG_fail; | |
23240 | } | |
23241 | resultobj = SWIG_FromLong((long)result); | |
23242 | return resultobj; | |
23243 | fail: | |
23244 | return NULL; | |
23245 | } | |
23246 | ||
23247 | ||
23248 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23249 | PyObject *resultobj; | |
23250 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23251 | long arg2 ; | |
23252 | wxString *arg3 = 0 ; | |
23253 | int arg4 ; | |
23254 | long result; | |
23255 | bool temp3 = False ; | |
23256 | PyObject * obj0 = 0 ; | |
23257 | PyObject * obj1 = 0 ; | |
23258 | PyObject * obj2 = 0 ; | |
23259 | PyObject * obj3 = 0 ; | |
23260 | char *kwnames[] = { | |
23261 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23262 | }; | |
23263 | ||
23264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
23265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23267 | arg2 = (long) SWIG_AsLong(obj1); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | { | |
23270 | arg3 = wxString_in_helper(obj2); | |
23271 | if (arg3 == NULL) SWIG_fail; | |
23272 | temp3 = True; | |
23273 | } | |
23274 | arg4 = (int) SWIG_AsInt(obj3); | |
23275 | if (PyErr_Occurred()) SWIG_fail; | |
23276 | { | |
23277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23278 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23279 | ||
23280 | wxPyEndAllowThreads(__tstate); | |
23281 | if (PyErr_Occurred()) SWIG_fail; | |
23282 | } | |
23283 | resultobj = SWIG_FromLong((long)result); | |
23284 | { | |
23285 | if (temp3) | |
23286 | delete arg3; | |
23287 | } | |
23288 | return resultobj; | |
23289 | fail: | |
23290 | { | |
23291 | if (temp3) | |
23292 | delete arg3; | |
23293 | } | |
23294 | return NULL; | |
23295 | } | |
23296 | ||
23297 | ||
23298 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23299 | PyObject *resultobj; | |
23300 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23301 | long arg2 ; | |
23302 | wxListItem *arg3 = 0 ; | |
23303 | long result; | |
23304 | PyObject * obj0 = 0 ; | |
23305 | PyObject * obj1 = 0 ; | |
23306 | PyObject * obj2 = 0 ; | |
23307 | char *kwnames[] = { | |
23308 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23309 | }; | |
23310 | ||
23311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23314 | arg2 = (long) SWIG_AsLong(obj1); | |
23315 | if (PyErr_Occurred()) SWIG_fail; | |
23316 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23317 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23318 | SWIG_fail; | |
23319 | if (arg3 == NULL) { | |
23320 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23321 | SWIG_fail; | |
23322 | } | |
23323 | { | |
23324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23325 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23326 | ||
23327 | wxPyEndAllowThreads(__tstate); | |
23328 | if (PyErr_Occurred()) SWIG_fail; | |
23329 | } | |
23330 | resultobj = SWIG_FromLong((long)result); | |
23331 | return resultobj; | |
23332 | fail: | |
23333 | return NULL; | |
23334 | } | |
23335 | ||
23336 | ||
23337 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23338 | PyObject *resultobj; | |
23339 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23340 | long arg2 ; | |
23341 | wxString *arg3 = 0 ; | |
23342 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23343 | int arg5 = (int) -1 ; | |
23344 | long result; | |
23345 | bool temp3 = False ; | |
23346 | PyObject * obj0 = 0 ; | |
23347 | PyObject * obj1 = 0 ; | |
23348 | PyObject * obj2 = 0 ; | |
23349 | PyObject * obj3 = 0 ; | |
23350 | PyObject * obj4 = 0 ; | |
23351 | char *kwnames[] = { | |
23352 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23353 | }; | |
23354 | ||
23355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
23356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23358 | arg2 = (long) SWIG_AsLong(obj1); | |
23359 | if (PyErr_Occurred()) SWIG_fail; | |
23360 | { | |
23361 | arg3 = wxString_in_helper(obj2); | |
23362 | if (arg3 == NULL) SWIG_fail; | |
23363 | temp3 = True; | |
23364 | } | |
23365 | if (obj3) { | |
23366 | arg4 = (int) SWIG_AsInt(obj3); | |
23367 | if (PyErr_Occurred()) SWIG_fail; | |
23368 | } | |
23369 | if (obj4) { | |
23370 | arg5 = (int) SWIG_AsInt(obj4); | |
23371 | if (PyErr_Occurred()) SWIG_fail; | |
23372 | } | |
23373 | { | |
23374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23375 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23376 | ||
23377 | wxPyEndAllowThreads(__tstate); | |
23378 | if (PyErr_Occurred()) SWIG_fail; | |
23379 | } | |
23380 | resultobj = SWIG_FromLong((long)result); | |
23381 | { | |
23382 | if (temp3) | |
23383 | delete arg3; | |
23384 | } | |
23385 | return resultobj; | |
23386 | fail: | |
23387 | { | |
23388 | if (temp3) | |
23389 | delete arg3; | |
23390 | } | |
23391 | return NULL; | |
23392 | } | |
23393 | ||
23394 | ||
23395 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23396 | PyObject *resultobj; | |
23397 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23398 | long arg2 ; | |
23399 | PyObject * obj0 = 0 ; | |
23400 | PyObject * obj1 = 0 ; | |
23401 | char *kwnames[] = { | |
23402 | (char *) "self",(char *) "count", NULL | |
23403 | }; | |
23404 | ||
23405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; | |
23406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23408 | arg2 = (long) SWIG_AsLong(obj1); | |
23409 | if (PyErr_Occurred()) SWIG_fail; | |
23410 | { | |
23411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23412 | (arg1)->SetItemCount(arg2); | |
23413 | ||
23414 | wxPyEndAllowThreads(__tstate); | |
23415 | if (PyErr_Occurred()) SWIG_fail; | |
23416 | } | |
23417 | Py_INCREF(Py_None); resultobj = Py_None; | |
23418 | return resultobj; | |
23419 | fail: | |
23420 | return NULL; | |
23421 | } | |
23422 | ||
23423 | ||
23424 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23425 | PyObject *resultobj; | |
23426 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23427 | int arg2 ; | |
23428 | int arg3 ; | |
23429 | bool result; | |
23430 | PyObject * obj0 = 0 ; | |
23431 | PyObject * obj1 = 0 ; | |
23432 | PyObject * obj2 = 0 ; | |
23433 | char *kwnames[] = { | |
23434 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23435 | }; | |
23436 | ||
23437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23440 | arg2 = (int) SWIG_AsInt(obj1); | |
23441 | if (PyErr_Occurred()) SWIG_fail; | |
23442 | arg3 = (int) SWIG_AsInt(obj2); | |
23443 | if (PyErr_Occurred()) SWIG_fail; | |
23444 | { | |
23445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23446 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23447 | ||
23448 | wxPyEndAllowThreads(__tstate); | |
23449 | if (PyErr_Occurred()) SWIG_fail; | |
23450 | } | |
23451 | { | |
23452 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23453 | } | |
23454 | return resultobj; | |
23455 | fail: | |
23456 | return NULL; | |
23457 | } | |
23458 | ||
23459 | ||
23460 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23461 | PyObject *resultobj; | |
23462 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23463 | long arg2 ; | |
23464 | wxColour *arg3 = 0 ; | |
23465 | wxColour temp3 ; | |
23466 | PyObject * obj0 = 0 ; | |
23467 | PyObject * obj1 = 0 ; | |
23468 | PyObject * obj2 = 0 ; | |
23469 | char *kwnames[] = { | |
23470 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23471 | }; | |
23472 | ||
23473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23476 | arg2 = (long) SWIG_AsLong(obj1); | |
23477 | if (PyErr_Occurred()) SWIG_fail; | |
23478 | { | |
23479 | arg3 = &temp3; | |
23480 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23481 | } | |
23482 | { | |
23483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23484 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23485 | ||
23486 | wxPyEndAllowThreads(__tstate); | |
23487 | if (PyErr_Occurred()) SWIG_fail; | |
23488 | } | |
23489 | Py_INCREF(Py_None); resultobj = Py_None; | |
23490 | return resultobj; | |
23491 | fail: | |
23492 | return NULL; | |
23493 | } | |
23494 | ||
23495 | ||
23496 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23497 | PyObject *resultobj; | |
23498 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23499 | long arg2 ; | |
23500 | wxColour result; | |
23501 | PyObject * obj0 = 0 ; | |
23502 | PyObject * obj1 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self",(char *) "item", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
23508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23510 | arg2 = (long) SWIG_AsLong(obj1); | |
23511 | if (PyErr_Occurred()) SWIG_fail; | |
23512 | { | |
23513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23514 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23515 | ||
23516 | wxPyEndAllowThreads(__tstate); | |
23517 | if (PyErr_Occurred()) SWIG_fail; | |
23518 | } | |
23519 | { | |
23520 | wxColour * resultptr; | |
23521 | resultptr = new wxColour((wxColour &) result); | |
23522 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23523 | } | |
23524 | return resultobj; | |
23525 | fail: | |
23526 | return NULL; | |
23527 | } | |
23528 | ||
23529 | ||
23530 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23531 | PyObject *resultobj; | |
23532 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23533 | long arg2 ; | |
23534 | wxColour *arg3 = 0 ; | |
23535 | wxColour temp3 ; | |
23536 | PyObject * obj0 = 0 ; | |
23537 | PyObject * obj1 = 0 ; | |
23538 | PyObject * obj2 = 0 ; | |
23539 | char *kwnames[] = { | |
23540 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23541 | }; | |
23542 | ||
23543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23546 | arg2 = (long) SWIG_AsLong(obj1); | |
23547 | if (PyErr_Occurred()) SWIG_fail; | |
23548 | { | |
23549 | arg3 = &temp3; | |
23550 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23551 | } | |
23552 | { | |
23553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23554 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23555 | ||
23556 | wxPyEndAllowThreads(__tstate); | |
23557 | if (PyErr_Occurred()) SWIG_fail; | |
23558 | } | |
23559 | Py_INCREF(Py_None); resultobj = Py_None; | |
23560 | return resultobj; | |
23561 | fail: | |
23562 | return NULL; | |
23563 | } | |
23564 | ||
23565 | ||
23566 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23567 | PyObject *resultobj; | |
23568 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23569 | long arg2 ; | |
23570 | wxColour result; | |
23571 | PyObject * obj0 = 0 ; | |
23572 | PyObject * obj1 = 0 ; | |
23573 | char *kwnames[] = { | |
23574 | (char *) "self",(char *) "item", NULL | |
23575 | }; | |
23576 | ||
23577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
23578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23580 | arg2 = (long) SWIG_AsLong(obj1); | |
23581 | if (PyErr_Occurred()) SWIG_fail; | |
23582 | { | |
23583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23584 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23585 | ||
23586 | wxPyEndAllowThreads(__tstate); | |
23587 | if (PyErr_Occurred()) SWIG_fail; | |
23588 | } | |
23589 | { | |
23590 | wxColour * resultptr; | |
23591 | resultptr = new wxColour((wxColour &) result); | |
23592 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
23593 | } | |
23594 | return resultobj; | |
23595 | fail: | |
23596 | return NULL; | |
23597 | } | |
23598 | ||
23599 | ||
23600 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23601 | PyObject *resultobj; | |
23602 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23603 | PyObject *arg2 = (PyObject *) 0 ; | |
23604 | bool result; | |
23605 | PyObject * obj0 = 0 ; | |
23606 | PyObject * obj1 = 0 ; | |
23607 | char *kwnames[] = { | |
23608 | (char *) "self",(char *) "func", NULL | |
23609 | }; | |
23610 | ||
23611 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
23612 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23613 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23614 | arg2 = obj1; | |
23615 | { | |
23616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23617 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23618 | ||
23619 | wxPyEndAllowThreads(__tstate); | |
23620 | if (PyErr_Occurred()) SWIG_fail; | |
23621 | } | |
23622 | { | |
23623 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23624 | } | |
23625 | return resultobj; | |
23626 | fail: | |
23627 | return NULL; | |
23628 | } | |
23629 | ||
23630 | ||
23631 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23632 | PyObject *resultobj; | |
23633 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23634 | wxWindow *result; | |
23635 | PyObject * obj0 = 0 ; | |
23636 | char *kwnames[] = { | |
23637 | (char *) "self", NULL | |
23638 | }; | |
23639 | ||
23640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
23641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
23642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23643 | { | |
23644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23645 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23646 | ||
23647 | wxPyEndAllowThreads(__tstate); | |
23648 | if (PyErr_Occurred()) SWIG_fail; | |
23649 | } | |
23650 | { | |
412d302d | 23651 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
23652 | } |
23653 | return resultobj; | |
23654 | fail: | |
23655 | return NULL; | |
23656 | } | |
23657 | ||
23658 | ||
23659 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23660 | PyObject *resultobj; | |
23661 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23662 | wxVisualAttributes result; | |
23663 | PyObject * obj0 = 0 ; | |
23664 | char *kwnames[] = { | |
23665 | (char *) "variant", NULL | |
23666 | }; | |
23667 | ||
23668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23669 | if (obj0) { | |
23670 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23671 | if (PyErr_Occurred()) SWIG_fail; | |
23672 | } | |
23673 | { | |
19272049 | 23674 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23676 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23677 | ||
23678 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23679 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23680 | } |
23681 | { | |
23682 | wxVisualAttributes * resultptr; | |
23683 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23684 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23685 | } | |
23686 | return resultobj; | |
23687 | fail: | |
23688 | return NULL; | |
23689 | } | |
23690 | ||
23691 | ||
23692 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
23693 | PyObject *obj; | |
23694 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23695 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23696 | Py_INCREF(obj); | |
23697 | return Py_BuildValue((char *)""); | |
23698 | } | |
23699 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23700 | PyObject *resultobj; | |
23701 | wxWindow *arg1 = (wxWindow *) 0 ; | |
23702 | int arg2 = (int) -1 ; | |
23703 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
23704 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23705 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23706 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23707 | long arg5 = (long) wxLC_REPORT ; | |
23708 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23709 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23710 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23711 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23712 | wxListView *result; | |
23713 | wxPoint temp3 ; | |
23714 | wxSize temp4 ; | |
23715 | bool temp7 = False ; | |
23716 | PyObject * obj0 = 0 ; | |
23717 | PyObject * obj1 = 0 ; | |
23718 | PyObject * obj2 = 0 ; | |
23719 | PyObject * obj3 = 0 ; | |
23720 | PyObject * obj4 = 0 ; | |
23721 | PyObject * obj5 = 0 ; | |
23722 | PyObject * obj6 = 0 ; | |
23723 | char *kwnames[] = { | |
23724 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23725 | }; | |
23726 | ||
23727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
23728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
23729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23730 | if (obj1) { | |
23731 | arg2 = (int) SWIG_AsInt(obj1); | |
23732 | if (PyErr_Occurred()) SWIG_fail; | |
23733 | } | |
23734 | if (obj2) { | |
23735 | { | |
23736 | arg3 = &temp3; | |
23737 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23738 | } | |
23739 | } | |
23740 | if (obj3) { | |
23741 | { | |
23742 | arg4 = &temp4; | |
23743 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23744 | } | |
23745 | } | |
23746 | if (obj4) { | |
23747 | arg5 = (long) SWIG_AsLong(obj4); | |
23748 | if (PyErr_Occurred()) SWIG_fail; | |
23749 | } | |
23750 | if (obj5) { | |
23751 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
23752 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23753 | SWIG_fail; | |
23754 | if (arg6 == NULL) { | |
23755 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23756 | SWIG_fail; | |
23757 | } | |
23758 | } | |
23759 | if (obj6) { | |
23760 | { | |
23761 | arg7 = wxString_in_helper(obj6); | |
23762 | if (arg7 == NULL) SWIG_fail; | |
23763 | temp7 = True; | |
23764 | } | |
23765 | } | |
23766 | { | |
0439c23b | 23767 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23769 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23770 | ||
23771 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23772 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23773 | } |
23774 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23775 | { | |
23776 | if (temp7) | |
23777 | delete arg7; | |
23778 | } | |
23779 | return resultobj; | |
23780 | fail: | |
23781 | { | |
23782 | if (temp7) | |
23783 | delete arg7; | |
23784 | } | |
23785 | return NULL; | |
23786 | } | |
23787 | ||
23788 | ||
23789 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23790 | PyObject *resultobj; | |
23791 | wxListView *result; | |
23792 | char *kwnames[] = { | |
23793 | NULL | |
23794 | }; | |
23795 | ||
23796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23797 | { | |
0439c23b | 23798 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
23799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23800 | result = (wxListView *)new wxListView(); | |
23801 | ||
23802 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23803 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
23804 | } |
23805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); | |
23806 | return resultobj; | |
23807 | fail: | |
23808 | return NULL; | |
23809 | } | |
23810 | ||
23811 | ||
23812 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23813 | PyObject *resultobj; | |
23814 | wxListView *arg1 = (wxListView *) 0 ; | |
23815 | wxWindow *arg2 = (wxWindow *) 0 ; | |
23816 | int arg3 = (int) -1 ; | |
23817 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
23818 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23819 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23820 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23821 | long arg6 = (long) wxLC_REPORT ; | |
23822 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23823 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23824 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23825 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23826 | bool result; | |
23827 | wxPoint temp4 ; | |
23828 | wxSize temp5 ; | |
23829 | bool temp8 = False ; | |
23830 | PyObject * obj0 = 0 ; | |
23831 | PyObject * obj1 = 0 ; | |
23832 | PyObject * obj2 = 0 ; | |
23833 | PyObject * obj3 = 0 ; | |
23834 | PyObject * obj4 = 0 ; | |
23835 | PyObject * obj5 = 0 ; | |
23836 | PyObject * obj6 = 0 ; | |
23837 | PyObject * obj7 = 0 ; | |
23838 | char *kwnames[] = { | |
23839 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23840 | }; | |
23841 | ||
23842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
23843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23845 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23847 | if (obj2) { | |
23848 | arg3 = (int) SWIG_AsInt(obj2); | |
23849 | if (PyErr_Occurred()) SWIG_fail; | |
23850 | } | |
23851 | if (obj3) { | |
23852 | { | |
23853 | arg4 = &temp4; | |
23854 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23855 | } | |
23856 | } | |
23857 | if (obj4) { | |
23858 | { | |
23859 | arg5 = &temp5; | |
23860 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23861 | } | |
23862 | } | |
23863 | if (obj5) { | |
23864 | arg6 = (long) SWIG_AsLong(obj5); | |
23865 | if (PyErr_Occurred()) SWIG_fail; | |
23866 | } | |
23867 | if (obj6) { | |
23868 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
23869 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23870 | SWIG_fail; | |
23871 | if (arg7 == NULL) { | |
23872 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
23873 | SWIG_fail; | |
23874 | } | |
23875 | } | |
23876 | if (obj7) { | |
23877 | { | |
23878 | arg8 = wxString_in_helper(obj7); | |
23879 | if (arg8 == NULL) SWIG_fail; | |
23880 | temp8 = True; | |
23881 | } | |
23882 | } | |
23883 | { | |
23884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23885 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23886 | ||
23887 | wxPyEndAllowThreads(__tstate); | |
23888 | if (PyErr_Occurred()) SWIG_fail; | |
23889 | } | |
23890 | { | |
23891 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23892 | } | |
23893 | { | |
23894 | if (temp8) | |
23895 | delete arg8; | |
23896 | } | |
23897 | return resultobj; | |
23898 | fail: | |
23899 | { | |
23900 | if (temp8) | |
23901 | delete arg8; | |
23902 | } | |
23903 | return NULL; | |
23904 | } | |
23905 | ||
23906 | ||
23907 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23908 | PyObject *resultobj; | |
23909 | wxListView *arg1 = (wxListView *) 0 ; | |
23910 | long arg2 ; | |
23911 | bool arg3 = (bool) True ; | |
23912 | PyObject * obj0 = 0 ; | |
23913 | PyObject * obj1 = 0 ; | |
23914 | PyObject * obj2 = 0 ; | |
23915 | char *kwnames[] = { | |
23916 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23917 | }; | |
23918 | ||
23919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
23920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23922 | arg2 = (long) SWIG_AsLong(obj1); | |
23923 | if (PyErr_Occurred()) SWIG_fail; | |
23924 | if (obj2) { | |
23925 | arg3 = (bool) SWIG_AsBool(obj2); | |
23926 | if (PyErr_Occurred()) SWIG_fail; | |
23927 | } | |
23928 | { | |
23929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23930 | (arg1)->Select(arg2,arg3); | |
23931 | ||
23932 | wxPyEndAllowThreads(__tstate); | |
23933 | if (PyErr_Occurred()) SWIG_fail; | |
23934 | } | |
23935 | Py_INCREF(Py_None); resultobj = Py_None; | |
23936 | return resultobj; | |
23937 | fail: | |
23938 | return NULL; | |
23939 | } | |
23940 | ||
23941 | ||
23942 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23943 | PyObject *resultobj; | |
23944 | wxListView *arg1 = (wxListView *) 0 ; | |
23945 | long arg2 ; | |
23946 | PyObject * obj0 = 0 ; | |
23947 | PyObject * obj1 = 0 ; | |
23948 | char *kwnames[] = { | |
23949 | (char *) "self",(char *) "index", NULL | |
23950 | }; | |
23951 | ||
23952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; | |
23953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23955 | arg2 = (long) SWIG_AsLong(obj1); | |
23956 | if (PyErr_Occurred()) SWIG_fail; | |
23957 | { | |
23958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23959 | (arg1)->Focus(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_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23972 | PyObject *resultobj; | |
23973 | wxListView *arg1 = (wxListView *) 0 ; | |
23974 | long result; | |
23975 | PyObject * obj0 = 0 ; | |
23976 | char *kwnames[] = { | |
23977 | (char *) "self", NULL | |
23978 | }; | |
23979 | ||
23980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
23981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23983 | { | |
23984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23985 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23986 | ||
23987 | wxPyEndAllowThreads(__tstate); | |
23988 | if (PyErr_Occurred()) SWIG_fail; | |
23989 | } | |
23990 | resultobj = SWIG_FromLong((long)result); | |
23991 | return resultobj; | |
23992 | fail: | |
23993 | return NULL; | |
23994 | } | |
23995 | ||
23996 | ||
23997 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23998 | PyObject *resultobj; | |
23999 | wxListView *arg1 = (wxListView *) 0 ; | |
24000 | long arg2 ; | |
24001 | long result; | |
24002 | PyObject * obj0 = 0 ; | |
24003 | PyObject * obj1 = 0 ; | |
24004 | char *kwnames[] = { | |
24005 | (char *) "self",(char *) "item", NULL | |
24006 | }; | |
24007 | ||
24008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; | |
24009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24011 | arg2 = (long) SWIG_AsLong(obj1); | |
24012 | if (PyErr_Occurred()) SWIG_fail; | |
24013 | { | |
24014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24015 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
24016 | ||
24017 | wxPyEndAllowThreads(__tstate); | |
24018 | if (PyErr_Occurred()) SWIG_fail; | |
24019 | } | |
24020 | resultobj = SWIG_FromLong((long)result); | |
24021 | return resultobj; | |
24022 | fail: | |
24023 | return NULL; | |
24024 | } | |
24025 | ||
24026 | ||
24027 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24028 | PyObject *resultobj; | |
24029 | wxListView *arg1 = (wxListView *) 0 ; | |
24030 | long result; | |
24031 | PyObject * obj0 = 0 ; | |
24032 | char *kwnames[] = { | |
24033 | (char *) "self", NULL | |
24034 | }; | |
24035 | ||
24036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
24037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24039 | { | |
24040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24041 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
24042 | ||
24043 | wxPyEndAllowThreads(__tstate); | |
24044 | if (PyErr_Occurred()) SWIG_fail; | |
24045 | } | |
24046 | resultobj = SWIG_FromLong((long)result); | |
24047 | return resultobj; | |
24048 | fail: | |
24049 | return NULL; | |
24050 | } | |
24051 | ||
24052 | ||
24053 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24054 | PyObject *resultobj; | |
24055 | wxListView *arg1 = (wxListView *) 0 ; | |
24056 | long arg2 ; | |
24057 | bool result; | |
24058 | PyObject * obj0 = 0 ; | |
24059 | PyObject * obj1 = 0 ; | |
24060 | char *kwnames[] = { | |
24061 | (char *) "self",(char *) "index", NULL | |
24062 | }; | |
24063 | ||
24064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
24065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24067 | arg2 = (long) SWIG_AsLong(obj1); | |
24068 | if (PyErr_Occurred()) SWIG_fail; | |
24069 | { | |
24070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24071 | result = (bool)(arg1)->IsSelected(arg2); | |
24072 | ||
24073 | wxPyEndAllowThreads(__tstate); | |
24074 | if (PyErr_Occurred()) SWIG_fail; | |
24075 | } | |
24076 | { | |
24077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24078 | } | |
24079 | return resultobj; | |
24080 | fail: | |
24081 | return NULL; | |
24082 | } | |
24083 | ||
24084 | ||
24085 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24086 | PyObject *resultobj; | |
24087 | wxListView *arg1 = (wxListView *) 0 ; | |
24088 | int arg2 ; | |
24089 | int arg3 ; | |
24090 | PyObject * obj0 = 0 ; | |
24091 | PyObject * obj1 = 0 ; | |
24092 | PyObject * obj2 = 0 ; | |
24093 | char *kwnames[] = { | |
24094 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24095 | }; | |
24096 | ||
24097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
24098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24100 | arg2 = (int) SWIG_AsInt(obj1); | |
24101 | if (PyErr_Occurred()) SWIG_fail; | |
24102 | arg3 = (int) SWIG_AsInt(obj2); | |
24103 | if (PyErr_Occurred()) SWIG_fail; | |
24104 | { | |
24105 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24106 | (arg1)->SetColumnImage(arg2,arg3); | |
24107 | ||
24108 | wxPyEndAllowThreads(__tstate); | |
24109 | if (PyErr_Occurred()) SWIG_fail; | |
24110 | } | |
24111 | Py_INCREF(Py_None); resultobj = Py_None; | |
24112 | return resultobj; | |
24113 | fail: | |
24114 | return NULL; | |
24115 | } | |
24116 | ||
24117 | ||
24118 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24119 | PyObject *resultobj; | |
24120 | wxListView *arg1 = (wxListView *) 0 ; | |
24121 | int arg2 ; | |
24122 | PyObject * obj0 = 0 ; | |
24123 | PyObject * obj1 = 0 ; | |
24124 | char *kwnames[] = { | |
24125 | (char *) "self",(char *) "col", NULL | |
24126 | }; | |
24127 | ||
24128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; | |
24129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
24130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24131 | arg2 = (int) SWIG_AsInt(obj1); | |
24132 | if (PyErr_Occurred()) SWIG_fail; | |
24133 | { | |
24134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24135 | (arg1)->ClearColumnImage(arg2); | |
24136 | ||
24137 | wxPyEndAllowThreads(__tstate); | |
24138 | if (PyErr_Occurred()) SWIG_fail; | |
24139 | } | |
24140 | Py_INCREF(Py_None); resultobj = Py_None; | |
24141 | return resultobj; | |
24142 | fail: | |
24143 | return NULL; | |
24144 | } | |
24145 | ||
24146 | ||
24147 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
24148 | PyObject *obj; | |
24149 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24150 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24151 | Py_INCREF(obj); | |
24152 | return Py_BuildValue((char *)""); | |
24153 | } | |
24154 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { | |
24155 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
24156 | return 1; | |
24157 | } | |
24158 | ||
24159 | ||
24160 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24161 | PyObject *pyobj; | |
24162 | ||
24163 | { | |
24164 | #if wxUSE_UNICODE | |
24165 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24166 | #else | |
24167 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24168 | #endif | |
24169 | } | |
24170 | return pyobj; | |
24171 | } | |
24172 | ||
24173 | ||
24174 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24175 | PyObject *resultobj; | |
24176 | wxTreeItemId *result; | |
24177 | char *kwnames[] = { | |
24178 | NULL | |
24179 | }; | |
24180 | ||
24181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24182 | { | |
24183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24184 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24185 | ||
24186 | wxPyEndAllowThreads(__tstate); | |
24187 | if (PyErr_Occurred()) SWIG_fail; | |
24188 | } | |
24189 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); | |
24190 | return resultobj; | |
24191 | fail: | |
24192 | return NULL; | |
24193 | } | |
24194 | ||
24195 | ||
24196 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24197 | PyObject *resultobj; | |
24198 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24199 | PyObject * obj0 = 0 ; | |
24200 | char *kwnames[] = { | |
24201 | (char *) "self", NULL | |
24202 | }; | |
24203 | ||
24204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
24205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24207 | { | |
24208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24209 | delete arg1; | |
24210 | ||
24211 | wxPyEndAllowThreads(__tstate); | |
24212 | if (PyErr_Occurred()) SWIG_fail; | |
24213 | } | |
24214 | Py_INCREF(Py_None); resultobj = Py_None; | |
24215 | return resultobj; | |
24216 | fail: | |
24217 | return NULL; | |
24218 | } | |
24219 | ||
24220 | ||
24221 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24222 | PyObject *resultobj; | |
24223 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24224 | bool result; | |
24225 | PyObject * obj0 = 0 ; | |
24226 | char *kwnames[] = { | |
24227 | (char *) "self", NULL | |
24228 | }; | |
24229 | ||
24230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
24231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24233 | { | |
24234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24235 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24236 | ||
24237 | wxPyEndAllowThreads(__tstate); | |
24238 | if (PyErr_Occurred()) SWIG_fail; | |
24239 | } | |
24240 | { | |
24241 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24242 | } | |
24243 | return resultobj; | |
24244 | fail: | |
24245 | return NULL; | |
24246 | } | |
24247 | ||
24248 | ||
24249 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24250 | PyObject *resultobj; | |
24251 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24252 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24253 | bool result; | |
24254 | PyObject * obj0 = 0 ; | |
24255 | PyObject * obj1 = 0 ; | |
24256 | char *kwnames[] = { | |
24257 | (char *) "self",(char *) "other", NULL | |
24258 | }; | |
24259 | ||
24260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
24261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24263 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24265 | { | |
24266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24267 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); | |
24268 | ||
24269 | wxPyEndAllowThreads(__tstate); | |
24270 | if (PyErr_Occurred()) SWIG_fail; | |
24271 | } | |
24272 | { | |
24273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24274 | } | |
24275 | return resultobj; | |
24276 | fail: | |
24277 | return NULL; | |
24278 | } | |
24279 | ||
24280 | ||
24281 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24282 | PyObject *resultobj; | |
24283 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24284 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24285 | bool result; | |
24286 | PyObject * obj0 = 0 ; | |
24287 | PyObject * obj1 = 0 ; | |
24288 | char *kwnames[] = { | |
24289 | (char *) "self",(char *) "other", NULL | |
24290 | }; | |
24291 | ||
24292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
24293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24295 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24296 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24297 | { | |
24298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24299 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); | |
24300 | ||
24301 | wxPyEndAllowThreads(__tstate); | |
24302 | if (PyErr_Occurred()) SWIG_fail; | |
24303 | } | |
24304 | { | |
24305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24306 | } | |
24307 | return resultobj; | |
24308 | fail: | |
24309 | return NULL; | |
24310 | } | |
24311 | ||
24312 | ||
24313 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24314 | PyObject *resultobj; | |
24315 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24316 | void *arg2 = (void *) 0 ; | |
24317 | PyObject * obj0 = 0 ; | |
24318 | PyObject * obj1 = 0 ; | |
24319 | char *kwnames[] = { | |
24320 | (char *) "self",(char *) "m_pItem", NULL | |
24321 | }; | |
24322 | ||
24323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
24324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24326 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
24327 | if (arg1) (arg1)->m_pItem = arg2; | |
24328 | ||
24329 | Py_INCREF(Py_None); resultobj = Py_None; | |
24330 | return resultobj; | |
24331 | fail: | |
24332 | return NULL; | |
24333 | } | |
24334 | ||
24335 | ||
24336 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24337 | PyObject *resultobj; | |
24338 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24339 | void *result; | |
24340 | PyObject * obj0 = 0 ; | |
24341 | char *kwnames[] = { | |
24342 | (char *) "self", NULL | |
24343 | }; | |
24344 | ||
24345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
24346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, | |
24347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24348 | result = (void *) ((arg1)->m_pItem); | |
24349 | ||
24350 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); | |
24351 | return resultobj; | |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24358 | PyObject *obj; | |
24359 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24360 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24361 | Py_INCREF(obj); | |
24362 | return Py_BuildValue((char *)""); | |
24363 | } | |
24364 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24365 | PyObject *resultobj; | |
24366 | PyObject *arg1 = (PyObject *) NULL ; | |
24367 | wxPyTreeItemData *result; | |
24368 | PyObject * obj0 = 0 ; | |
24369 | char *kwnames[] = { | |
24370 | (char *) "obj", NULL | |
24371 | }; | |
24372 | ||
24373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24374 | if (obj0) { | |
24375 | arg1 = obj0; | |
24376 | } | |
24377 | { | |
24378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24379 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24380 | ||
24381 | wxPyEndAllowThreads(__tstate); | |
24382 | if (PyErr_Occurred()) SWIG_fail; | |
24383 | } | |
24384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); | |
24385 | return resultobj; | |
24386 | fail: | |
24387 | return NULL; | |
24388 | } | |
24389 | ||
24390 | ||
24391 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24392 | PyObject *resultobj; | |
24393 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24394 | PyObject *result; | |
24395 | PyObject * obj0 = 0 ; | |
24396 | char *kwnames[] = { | |
24397 | (char *) "self", NULL | |
24398 | }; | |
24399 | ||
24400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
24401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24403 | { | |
24404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24405 | result = (PyObject *)(arg1)->GetData(); | |
24406 | ||
24407 | wxPyEndAllowThreads(__tstate); | |
24408 | if (PyErr_Occurred()) SWIG_fail; | |
24409 | } | |
24410 | resultobj = result; | |
24411 | return resultobj; | |
24412 | fail: | |
24413 | return NULL; | |
24414 | } | |
24415 | ||
24416 | ||
24417 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24418 | PyObject *resultobj; | |
24419 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24420 | PyObject *arg2 = (PyObject *) 0 ; | |
24421 | PyObject * obj0 = 0 ; | |
24422 | PyObject * obj1 = 0 ; | |
24423 | char *kwnames[] = { | |
24424 | (char *) "self",(char *) "obj", NULL | |
24425 | }; | |
24426 | ||
24427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
24428 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24429 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24430 | arg2 = obj1; | |
24431 | { | |
24432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24433 | (arg1)->SetData(arg2); | |
24434 | ||
24435 | wxPyEndAllowThreads(__tstate); | |
24436 | if (PyErr_Occurred()) SWIG_fail; | |
24437 | } | |
24438 | Py_INCREF(Py_None); resultobj = Py_None; | |
24439 | return resultobj; | |
24440 | fail: | |
24441 | return NULL; | |
24442 | } | |
24443 | ||
24444 | ||
24445 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24446 | PyObject *resultobj; | |
24447 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24448 | wxTreeItemId *result; | |
24449 | PyObject * obj0 = 0 ; | |
24450 | char *kwnames[] = { | |
24451 | (char *) "self", NULL | |
24452 | }; | |
24453 | ||
24454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
24455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24457 | { | |
24458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24459 | { | |
24460 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24461 | result = (wxTreeItemId *) &_result_ref; | |
24462 | } | |
24463 | ||
24464 | wxPyEndAllowThreads(__tstate); | |
24465 | if (PyErr_Occurred()) SWIG_fail; | |
24466 | } | |
24467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); | |
24468 | return resultobj; | |
24469 | fail: | |
24470 | return NULL; | |
24471 | } | |
24472 | ||
24473 | ||
24474 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24475 | PyObject *resultobj; | |
24476 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24477 | wxTreeItemId *arg2 = 0 ; | |
24478 | PyObject * obj0 = 0 ; | |
24479 | PyObject * obj1 = 0 ; | |
24480 | char *kwnames[] = { | |
24481 | (char *) "self",(char *) "id", NULL | |
24482 | }; | |
24483 | ||
24484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
24485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24489 | SWIG_fail; | |
24490 | if (arg2 == NULL) { | |
24491 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24492 | SWIG_fail; | |
24493 | } | |
24494 | { | |
24495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24496 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24497 | ||
24498 | wxPyEndAllowThreads(__tstate); | |
24499 | if (PyErr_Occurred()) SWIG_fail; | |
24500 | } | |
24501 | Py_INCREF(Py_None); resultobj = Py_None; | |
24502 | return resultobj; | |
24503 | fail: | |
24504 | return NULL; | |
24505 | } | |
24506 | ||
24507 | ||
24508 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24509 | PyObject *resultobj; | |
24510 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24511 | PyObject * obj0 = 0 ; | |
24512 | char *kwnames[] = { | |
24513 | (char *) "self", NULL | |
24514 | }; | |
24515 | ||
24516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
24517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, | |
24518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24519 | { | |
24520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24521 | wxPyTreeItemData_Destroy(arg1); | |
24522 | ||
24523 | wxPyEndAllowThreads(__tstate); | |
24524 | if (PyErr_Occurred()) SWIG_fail; | |
24525 | } | |
24526 | Py_INCREF(Py_None); resultobj = Py_None; | |
24527 | return resultobj; | |
24528 | fail: | |
24529 | return NULL; | |
24530 | } | |
24531 | ||
24532 | ||
24533 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24534 | PyObject *obj; | |
24535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24536 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24537 | Py_INCREF(obj); | |
24538 | return Py_BuildValue((char *)""); | |
24539 | } | |
24540 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24541 | PyObject *resultobj; | |
24542 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24543 | int arg2 = (int) 0 ; | |
24544 | wxTreeEvent *result; | |
24545 | PyObject * obj0 = 0 ; | |
24546 | PyObject * obj1 = 0 ; | |
24547 | char *kwnames[] = { | |
24548 | (char *) "commandType",(char *) "id", NULL | |
24549 | }; | |
24550 | ||
24551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; | |
24552 | if (obj0) { | |
24553 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
24554 | if (PyErr_Occurred()) SWIG_fail; | |
24555 | } | |
24556 | if (obj1) { | |
24557 | arg2 = (int) SWIG_AsInt(obj1); | |
24558 | if (PyErr_Occurred()) SWIG_fail; | |
24559 | } | |
24560 | { | |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24563 | ||
24564 | wxPyEndAllowThreads(__tstate); | |
24565 | if (PyErr_Occurred()) SWIG_fail; | |
24566 | } | |
24567 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24575 | PyObject *resultobj; | |
24576 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24577 | wxTreeItemId result; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | char *kwnames[] = { | |
24580 | (char *) "self", NULL | |
24581 | }; | |
24582 | ||
24583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
24584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24586 | { | |
24587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24588 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24589 | ||
24590 | wxPyEndAllowThreads(__tstate); | |
24591 | if (PyErr_Occurred()) SWIG_fail; | |
24592 | } | |
24593 | { | |
24594 | wxTreeItemId * resultptr; | |
24595 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24597 | } | |
24598 | return resultobj; | |
24599 | fail: | |
24600 | return NULL; | |
24601 | } | |
24602 | ||
24603 | ||
24604 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24605 | PyObject *resultobj; | |
24606 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24607 | wxTreeItemId *arg2 = 0 ; | |
24608 | PyObject * obj0 = 0 ; | |
24609 | PyObject * obj1 = 0 ; | |
24610 | char *kwnames[] = { | |
24611 | (char *) "self",(char *) "item", NULL | |
24612 | }; | |
24613 | ||
24614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
24615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24619 | SWIG_fail; | |
24620 | if (arg2 == NULL) { | |
24621 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24622 | SWIG_fail; | |
24623 | } | |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | Py_INCREF(Py_None); resultobj = Py_None; | |
24632 | return resultobj; | |
24633 | fail: | |
24634 | return NULL; | |
24635 | } | |
24636 | ||
24637 | ||
24638 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24639 | PyObject *resultobj; | |
24640 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24641 | wxTreeItemId result; | |
24642 | PyObject * obj0 = 0 ; | |
24643 | char *kwnames[] = { | |
24644 | (char *) "self", NULL | |
24645 | }; | |
24646 | ||
24647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
24648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24650 | { | |
24651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24652 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24653 | ||
24654 | wxPyEndAllowThreads(__tstate); | |
24655 | if (PyErr_Occurred()) SWIG_fail; | |
24656 | } | |
24657 | { | |
24658 | wxTreeItemId * resultptr; | |
24659 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
24660 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
24661 | } | |
24662 | return resultobj; | |
24663 | fail: | |
24664 | return NULL; | |
24665 | } | |
24666 | ||
24667 | ||
24668 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24669 | PyObject *resultobj; | |
24670 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24671 | wxTreeItemId *arg2 = 0 ; | |
24672 | PyObject * obj0 = 0 ; | |
24673 | PyObject * obj1 = 0 ; | |
24674 | char *kwnames[] = { | |
24675 | (char *) "self",(char *) "item", NULL | |
24676 | }; | |
24677 | ||
24678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
24679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24681 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24682 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24683 | SWIG_fail; | |
24684 | if (arg2 == NULL) { | |
24685 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24686 | SWIG_fail; | |
24687 | } | |
24688 | { | |
24689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24690 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24691 | ||
24692 | wxPyEndAllowThreads(__tstate); | |
24693 | if (PyErr_Occurred()) SWIG_fail; | |
24694 | } | |
24695 | Py_INCREF(Py_None); resultobj = Py_None; | |
24696 | return resultobj; | |
24697 | fail: | |
24698 | return NULL; | |
24699 | } | |
24700 | ||
24701 | ||
24702 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24703 | PyObject *resultobj; | |
24704 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24705 | wxPoint result; | |
24706 | PyObject * obj0 = 0 ; | |
24707 | char *kwnames[] = { | |
24708 | (char *) "self", NULL | |
24709 | }; | |
24710 | ||
24711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
24712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24714 | { | |
24715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24716 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24717 | ||
24718 | wxPyEndAllowThreads(__tstate); | |
24719 | if (PyErr_Occurred()) SWIG_fail; | |
24720 | } | |
24721 | { | |
24722 | wxPoint * resultptr; | |
24723 | resultptr = new wxPoint((wxPoint &) result); | |
24724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
24725 | } | |
24726 | return resultobj; | |
24727 | fail: | |
24728 | return NULL; | |
24729 | } | |
24730 | ||
24731 | ||
24732 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24733 | PyObject *resultobj; | |
24734 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24735 | wxPoint *arg2 = 0 ; | |
24736 | wxPoint temp2 ; | |
24737 | PyObject * obj0 = 0 ; | |
24738 | PyObject * obj1 = 0 ; | |
24739 | char *kwnames[] = { | |
24740 | (char *) "self",(char *) "pt", NULL | |
24741 | }; | |
24742 | ||
24743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
24744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24746 | { | |
24747 | arg2 = &temp2; | |
24748 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24749 | } | |
24750 | { | |
24751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24752 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24753 | ||
24754 | wxPyEndAllowThreads(__tstate); | |
24755 | if (PyErr_Occurred()) SWIG_fail; | |
24756 | } | |
24757 | Py_INCREF(Py_None); resultobj = Py_None; | |
24758 | return resultobj; | |
24759 | fail: | |
24760 | return NULL; | |
24761 | } | |
24762 | ||
24763 | ||
24764 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24765 | PyObject *resultobj; | |
24766 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24767 | wxKeyEvent *result; | |
24768 | PyObject * obj0 = 0 ; | |
24769 | char *kwnames[] = { | |
24770 | (char *) "self", NULL | |
24771 | }; | |
24772 | ||
24773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
24774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | { | |
24779 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24780 | result = (wxKeyEvent *) &_result_ref; | |
24781 | } | |
24782 | ||
24783 | wxPyEndAllowThreads(__tstate); | |
24784 | if (PyErr_Occurred()) SWIG_fail; | |
24785 | } | |
24786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); | |
24787 | return resultobj; | |
24788 | fail: | |
24789 | return NULL; | |
24790 | } | |
24791 | ||
24792 | ||
24793 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24794 | PyObject *resultobj; | |
24795 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24796 | int result; | |
24797 | PyObject * obj0 = 0 ; | |
24798 | char *kwnames[] = { | |
24799 | (char *) "self", NULL | |
24800 | }; | |
24801 | ||
24802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
24803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24805 | { | |
24806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24807 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24808 | ||
24809 | wxPyEndAllowThreads(__tstate); | |
24810 | if (PyErr_Occurred()) SWIG_fail; | |
24811 | } | |
24812 | resultobj = SWIG_FromInt((int)result); | |
24813 | return resultobj; | |
24814 | fail: | |
24815 | return NULL; | |
24816 | } | |
24817 | ||
24818 | ||
24819 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24820 | PyObject *resultobj; | |
24821 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24822 | wxKeyEvent *arg2 = 0 ; | |
24823 | PyObject * obj0 = 0 ; | |
24824 | PyObject * obj1 = 0 ; | |
24825 | char *kwnames[] = { | |
24826 | (char *) "self",(char *) "evt", NULL | |
24827 | }; | |
24828 | ||
24829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
24830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24832 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24833 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24834 | SWIG_fail; | |
24835 | if (arg2 == NULL) { | |
24836 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
24837 | SWIG_fail; | |
24838 | } | |
24839 | { | |
24840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24841 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24842 | ||
24843 | wxPyEndAllowThreads(__tstate); | |
24844 | if (PyErr_Occurred()) SWIG_fail; | |
24845 | } | |
24846 | Py_INCREF(Py_None); resultobj = Py_None; | |
24847 | return resultobj; | |
24848 | fail: | |
24849 | return NULL; | |
24850 | } | |
24851 | ||
24852 | ||
24853 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24854 | PyObject *resultobj; | |
24855 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24856 | wxString *result; | |
24857 | PyObject * obj0 = 0 ; | |
24858 | char *kwnames[] = { | |
24859 | (char *) "self", NULL | |
24860 | }; | |
24861 | ||
24862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
24863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24865 | { | |
24866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24867 | { | |
24868 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24869 | result = (wxString *) &_result_ref; | |
24870 | } | |
24871 | ||
24872 | wxPyEndAllowThreads(__tstate); | |
24873 | if (PyErr_Occurred()) SWIG_fail; | |
24874 | } | |
24875 | { | |
24876 | #if wxUSE_UNICODE | |
24877 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24878 | #else | |
24879 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24880 | #endif | |
24881 | } | |
24882 | return resultobj; | |
24883 | fail: | |
24884 | return NULL; | |
24885 | } | |
24886 | ||
24887 | ||
24888 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24889 | PyObject *resultobj; | |
24890 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24891 | wxString *arg2 = 0 ; | |
24892 | bool temp2 = False ; | |
24893 | PyObject * obj0 = 0 ; | |
24894 | PyObject * obj1 = 0 ; | |
24895 | char *kwnames[] = { | |
24896 | (char *) "self",(char *) "label", NULL | |
24897 | }; | |
24898 | ||
24899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
24900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24902 | { | |
24903 | arg2 = wxString_in_helper(obj1); | |
24904 | if (arg2 == NULL) SWIG_fail; | |
24905 | temp2 = True; | |
24906 | } | |
24907 | { | |
24908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24909 | (arg1)->SetLabel((wxString const &)*arg2); | |
24910 | ||
24911 | wxPyEndAllowThreads(__tstate); | |
24912 | if (PyErr_Occurred()) SWIG_fail; | |
24913 | } | |
24914 | Py_INCREF(Py_None); resultobj = Py_None; | |
24915 | { | |
24916 | if (temp2) | |
24917 | delete arg2; | |
24918 | } | |
24919 | return resultobj; | |
24920 | fail: | |
24921 | { | |
24922 | if (temp2) | |
24923 | delete arg2; | |
24924 | } | |
24925 | return NULL; | |
24926 | } | |
24927 | ||
24928 | ||
24929 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24930 | PyObject *resultobj; | |
24931 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24932 | bool result; | |
24933 | PyObject * obj0 = 0 ; | |
24934 | char *kwnames[] = { | |
24935 | (char *) "self", NULL | |
24936 | }; | |
24937 | ||
24938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
24939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24941 | { | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24944 | ||
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
24948 | { | |
24949 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24950 | } | |
24951 | return resultobj; | |
24952 | fail: | |
24953 | return NULL; | |
24954 | } | |
24955 | ||
24956 | ||
24957 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24958 | PyObject *resultobj; | |
24959 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24960 | bool arg2 ; | |
24961 | PyObject * obj0 = 0 ; | |
24962 | PyObject * obj1 = 0 ; | |
24963 | char *kwnames[] = { | |
24964 | (char *) "self",(char *) "editCancelled", NULL | |
24965 | }; | |
24966 | ||
24967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
24968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24970 | arg2 = (bool) SWIG_AsBool(obj1); | |
24971 | if (PyErr_Occurred()) SWIG_fail; | |
24972 | { | |
24973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24974 | (arg1)->SetEditCanceled(arg2); | |
24975 | ||
24976 | wxPyEndAllowThreads(__tstate); | |
24977 | if (PyErr_Occurred()) SWIG_fail; | |
24978 | } | |
24979 | Py_INCREF(Py_None); resultobj = Py_None; | |
24980 | return resultobj; | |
24981 | fail: | |
24982 | return NULL; | |
24983 | } | |
24984 | ||
24985 | ||
24986 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24987 | PyObject *resultobj; | |
24988 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24989 | wxString *arg2 = 0 ; | |
24990 | bool temp2 = False ; | |
24991 | PyObject * obj0 = 0 ; | |
24992 | PyObject * obj1 = 0 ; | |
24993 | char *kwnames[] = { | |
24994 | (char *) "self",(char *) "toolTip", NULL | |
24995 | }; | |
24996 | ||
24997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
24998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, | |
24999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25000 | { | |
25001 | arg2 = wxString_in_helper(obj1); | |
25002 | if (arg2 == NULL) SWIG_fail; | |
25003 | temp2 = True; | |
25004 | } | |
25005 | { | |
25006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25007 | (arg1)->SetToolTip((wxString const &)*arg2); | |
25008 | ||
25009 | wxPyEndAllowThreads(__tstate); | |
25010 | if (PyErr_Occurred()) SWIG_fail; | |
25011 | } | |
25012 | Py_INCREF(Py_None); resultobj = Py_None; | |
25013 | { | |
25014 | if (temp2) | |
25015 | delete arg2; | |
25016 | } | |
25017 | return resultobj; | |
25018 | fail: | |
25019 | { | |
25020 | if (temp2) | |
25021 | delete arg2; | |
25022 | } | |
25023 | return NULL; | |
25024 | } | |
25025 | ||
25026 | ||
25027 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { | |
25028 | PyObject *obj; | |
25029 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
25030 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
25031 | Py_INCREF(obj); | |
25032 | return Py_BuildValue((char *)""); | |
25033 | } | |
25034 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25035 | PyObject *resultobj; | |
25036 | wxWindow *arg1 = (wxWindow *) 0 ; | |
25037 | int arg2 = (int) -1 ; | |
25038 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
25039 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
25040 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
25041 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
25042 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
25043 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
25044 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
25045 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; | |
25046 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
25047 | wxPyTreeCtrl *result; | |
25048 | wxPoint temp3 ; | |
25049 | wxSize temp4 ; | |
25050 | bool temp7 = False ; | |
25051 | PyObject * obj0 = 0 ; | |
25052 | PyObject * obj1 = 0 ; | |
25053 | PyObject * obj2 = 0 ; | |
25054 | PyObject * obj3 = 0 ; | |
25055 | PyObject * obj4 = 0 ; | |
25056 | PyObject * obj5 = 0 ; | |
25057 | PyObject * obj6 = 0 ; | |
25058 | char *kwnames[] = { | |
25059 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25060 | }; | |
25061 | ||
25062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
25063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
25064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25065 | if (obj1) { | |
25066 | arg2 = (int) SWIG_AsInt(obj1); | |
25067 | if (PyErr_Occurred()) SWIG_fail; | |
25068 | } | |
25069 | if (obj2) { | |
25070 | { | |
25071 | arg3 = &temp3; | |
25072 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
25073 | } | |
25074 | } | |
25075 | if (obj3) { | |
25076 | { | |
25077 | arg4 = &temp4; | |
25078 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
25079 | } | |
25080 | } | |
25081 | if (obj4) { | |
25082 | arg5 = (long) SWIG_AsLong(obj4); | |
25083 | if (PyErr_Occurred()) SWIG_fail; | |
25084 | } | |
25085 | if (obj5) { | |
25086 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
25087 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25088 | SWIG_fail; | |
25089 | if (arg6 == NULL) { | |
25090 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25091 | SWIG_fail; | |
25092 | } | |
25093 | } | |
25094 | if (obj6) { | |
25095 | { | |
25096 | arg7 = wxString_in_helper(obj6); | |
25097 | if (arg7 == NULL) SWIG_fail; | |
25098 | temp7 = True; | |
25099 | } | |
25100 | } | |
25101 | { | |
0439c23b | 25102 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25104 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25105 | ||
25106 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25107 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25108 | } |
b0f7404b | 25109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25110 | { |
25111 | if (temp7) | |
25112 | delete arg7; | |
25113 | } | |
25114 | return resultobj; | |
25115 | fail: | |
25116 | { | |
25117 | if (temp7) | |
25118 | delete arg7; | |
25119 | } | |
25120 | return NULL; | |
25121 | } | |
25122 | ||
25123 | ||
25124 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25125 | PyObject *resultobj; | |
25126 | wxPyTreeCtrl *result; | |
25127 | char *kwnames[] = { | |
25128 | NULL | |
25129 | }; | |
25130 | ||
25131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25132 | { | |
0439c23b | 25133 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
25134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25135 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25136 | ||
25137 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25138 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc | 25139 | } |
b0f7404b | 25140 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d55e5bfc RD |
25141 | return resultobj; |
25142 | fail: | |
25143 | return NULL; | |
25144 | } | |
25145 | ||
25146 | ||
25147 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25148 | PyObject *resultobj; | |
25149 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25150 | wxWindow *arg2 = (wxWindow *) 0 ; | |
25151 | int arg3 = (int) -1 ; | |
25152 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
25153 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25154 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25155 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25156 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25157 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25158 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
25159 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; | |
25160 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
25161 | bool result; | |
25162 | wxPoint temp4 ; | |
25163 | wxSize temp5 ; | |
25164 | bool temp8 = False ; | |
25165 | PyObject * obj0 = 0 ; | |
25166 | PyObject * obj1 = 0 ; | |
25167 | PyObject * obj2 = 0 ; | |
25168 | PyObject * obj3 = 0 ; | |
25169 | PyObject * obj4 = 0 ; | |
25170 | PyObject * obj5 = 0 ; | |
25171 | PyObject * obj6 = 0 ; | |
25172 | PyObject * obj7 = 0 ; | |
25173 | char *kwnames[] = { | |
25174 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25175 | }; | |
25176 | ||
25177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; | |
25178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25182 | if (obj2) { | |
25183 | arg3 = (int) SWIG_AsInt(obj2); | |
25184 | if (PyErr_Occurred()) SWIG_fail; | |
25185 | } | |
25186 | if (obj3) { | |
25187 | { | |
25188 | arg4 = &temp4; | |
25189 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25190 | } | |
25191 | } | |
25192 | if (obj4) { | |
25193 | { | |
25194 | arg5 = &temp5; | |
25195 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25196 | } | |
25197 | } | |
25198 | if (obj5) { | |
25199 | arg6 = (long) SWIG_AsLong(obj5); | |
25200 | if (PyErr_Occurred()) SWIG_fail; | |
25201 | } | |
25202 | if (obj6) { | |
25203 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, | |
25204 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25205 | SWIG_fail; | |
25206 | if (arg7 == NULL) { | |
25207 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25208 | SWIG_fail; | |
25209 | } | |
25210 | } | |
25211 | if (obj7) { | |
25212 | { | |
25213 | arg8 = wxString_in_helper(obj7); | |
25214 | if (arg8 == NULL) SWIG_fail; | |
25215 | temp8 = True; | |
25216 | } | |
25217 | } | |
25218 | { | |
25219 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25220 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25221 | ||
25222 | wxPyEndAllowThreads(__tstate); | |
25223 | if (PyErr_Occurred()) SWIG_fail; | |
25224 | } | |
25225 | { | |
25226 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25227 | } | |
25228 | { | |
25229 | if (temp8) | |
25230 | delete arg8; | |
25231 | } | |
25232 | return resultobj; | |
25233 | fail: | |
25234 | { | |
25235 | if (temp8) | |
25236 | delete arg8; | |
25237 | } | |
25238 | return NULL; | |
25239 | } | |
25240 | ||
25241 | ||
25242 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25243 | PyObject *resultobj; | |
25244 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25245 | PyObject *arg2 = (PyObject *) 0 ; | |
25246 | PyObject *arg3 = (PyObject *) 0 ; | |
25247 | PyObject * obj0 = 0 ; | |
25248 | PyObject * obj1 = 0 ; | |
25249 | PyObject * obj2 = 0 ; | |
25250 | char *kwnames[] = { | |
25251 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25252 | }; | |
25253 | ||
25254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25257 | arg2 = obj1; | |
25258 | arg3 = obj2; | |
25259 | { | |
25260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25261 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25262 | ||
25263 | wxPyEndAllowThreads(__tstate); | |
25264 | if (PyErr_Occurred()) SWIG_fail; | |
25265 | } | |
25266 | Py_INCREF(Py_None); resultobj = Py_None; | |
25267 | return resultobj; | |
25268 | fail: | |
25269 | return NULL; | |
25270 | } | |
25271 | ||
25272 | ||
25273 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25274 | PyObject *resultobj; | |
25275 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25276 | size_t result; | |
25277 | PyObject * obj0 = 0 ; | |
25278 | char *kwnames[] = { | |
25279 | (char *) "self", NULL | |
25280 | }; | |
25281 | ||
25282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
25283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25285 | { | |
25286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25287 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25288 | ||
25289 | wxPyEndAllowThreads(__tstate); | |
25290 | if (PyErr_Occurred()) SWIG_fail; | |
25291 | } | |
25292 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
25293 | return resultobj; | |
25294 | fail: | |
25295 | return NULL; | |
25296 | } | |
25297 | ||
25298 | ||
25299 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25300 | PyObject *resultobj; | |
25301 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25302 | unsigned int result; | |
25303 | PyObject * obj0 = 0 ; | |
25304 | char *kwnames[] = { | |
25305 | (char *) "self", NULL | |
25306 | }; | |
25307 | ||
25308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
25309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25311 | { | |
25312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25313 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25314 | ||
25315 | wxPyEndAllowThreads(__tstate); | |
25316 | if (PyErr_Occurred()) SWIG_fail; | |
25317 | } | |
25318 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25319 | return resultobj; | |
25320 | fail: | |
25321 | return NULL; | |
25322 | } | |
25323 | ||
25324 | ||
25325 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25326 | PyObject *resultobj; | |
25327 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25328 | unsigned int arg2 ; | |
25329 | PyObject * obj0 = 0 ; | |
25330 | PyObject * obj1 = 0 ; | |
25331 | char *kwnames[] = { | |
25332 | (char *) "self",(char *) "indent", NULL | |
25333 | }; | |
25334 | ||
25335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
25336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25338 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25339 | if (PyErr_Occurred()) SWIG_fail; | |
25340 | { | |
25341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25342 | (arg1)->SetIndent(arg2); | |
25343 | ||
25344 | wxPyEndAllowThreads(__tstate); | |
25345 | if (PyErr_Occurred()) SWIG_fail; | |
25346 | } | |
25347 | Py_INCREF(Py_None); resultobj = Py_None; | |
25348 | return resultobj; | |
25349 | fail: | |
25350 | return NULL; | |
25351 | } | |
25352 | ||
25353 | ||
25354 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25355 | PyObject *resultobj; | |
25356 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25357 | unsigned int result; | |
25358 | PyObject * obj0 = 0 ; | |
25359 | char *kwnames[] = { | |
25360 | (char *) "self", NULL | |
25361 | }; | |
25362 | ||
25363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
25364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25366 | { | |
25367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25368 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25369 | ||
25370 | wxPyEndAllowThreads(__tstate); | |
25371 | if (PyErr_Occurred()) SWIG_fail; | |
25372 | } | |
25373 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); | |
25374 | return resultobj; | |
25375 | fail: | |
25376 | return NULL; | |
25377 | } | |
25378 | ||
25379 | ||
25380 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25381 | PyObject *resultobj; | |
25382 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25383 | unsigned int arg2 ; | |
25384 | PyObject * obj0 = 0 ; | |
25385 | PyObject * obj1 = 0 ; | |
25386 | char *kwnames[] = { | |
25387 | (char *) "self",(char *) "spacing", NULL | |
25388 | }; | |
25389 | ||
25390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
25391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25393 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25394 | if (PyErr_Occurred()) SWIG_fail; | |
25395 | { | |
25396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25397 | (arg1)->SetSpacing(arg2); | |
25398 | ||
25399 | wxPyEndAllowThreads(__tstate); | |
25400 | if (PyErr_Occurred()) SWIG_fail; | |
25401 | } | |
25402 | Py_INCREF(Py_None); resultobj = Py_None; | |
25403 | return resultobj; | |
25404 | fail: | |
25405 | return NULL; | |
25406 | } | |
25407 | ||
25408 | ||
25409 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25410 | PyObject *resultobj; | |
25411 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25412 | wxImageList *result; | |
25413 | PyObject * obj0 = 0 ; | |
25414 | char *kwnames[] = { | |
25415 | (char *) "self", NULL | |
25416 | }; | |
25417 | ||
25418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
25419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25421 | { | |
25422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25423 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25424 | ||
25425 | wxPyEndAllowThreads(__tstate); | |
25426 | if (PyErr_Occurred()) SWIG_fail; | |
25427 | } | |
25428 | { | |
412d302d | 25429 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25430 | } |
25431 | return resultobj; | |
25432 | fail: | |
25433 | return NULL; | |
25434 | } | |
25435 | ||
25436 | ||
25437 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25438 | PyObject *resultobj; | |
25439 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25440 | wxImageList *result; | |
25441 | PyObject * obj0 = 0 ; | |
25442 | char *kwnames[] = { | |
25443 | (char *) "self", NULL | |
25444 | }; | |
25445 | ||
25446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
25447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25449 | { | |
25450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25451 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25452 | ||
25453 | wxPyEndAllowThreads(__tstate); | |
25454 | if (PyErr_Occurred()) SWIG_fail; | |
25455 | } | |
25456 | { | |
412d302d | 25457 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
25458 | } |
25459 | return resultobj; | |
25460 | fail: | |
25461 | return NULL; | |
25462 | } | |
25463 | ||
25464 | ||
25465 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25466 | PyObject *resultobj; | |
25467 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25468 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25469 | PyObject * obj0 = 0 ; | |
25470 | PyObject * obj1 = 0 ; | |
25471 | char *kwnames[] = { | |
25472 | (char *) "self",(char *) "imageList", NULL | |
25473 | }; | |
25474 | ||
25475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
25476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25480 | { | |
25481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25482 | (arg1)->SetImageList(arg2); | |
25483 | ||
25484 | wxPyEndAllowThreads(__tstate); | |
25485 | if (PyErr_Occurred()) SWIG_fail; | |
25486 | } | |
25487 | Py_INCREF(Py_None); resultobj = Py_None; | |
25488 | return resultobj; | |
25489 | fail: | |
25490 | return NULL; | |
25491 | } | |
25492 | ||
25493 | ||
25494 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25495 | PyObject *resultobj; | |
25496 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25497 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25498 | PyObject * obj0 = 0 ; | |
25499 | PyObject * obj1 = 0 ; | |
25500 | char *kwnames[] = { | |
25501 | (char *) "self",(char *) "imageList", NULL | |
25502 | }; | |
25503 | ||
25504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25507 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25509 | { | |
25510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25511 | (arg1)->SetStateImageList(arg2); | |
25512 | ||
25513 | wxPyEndAllowThreads(__tstate); | |
25514 | if (PyErr_Occurred()) SWIG_fail; | |
25515 | } | |
25516 | Py_INCREF(Py_None); resultobj = Py_None; | |
25517 | return resultobj; | |
25518 | fail: | |
25519 | return NULL; | |
25520 | } | |
25521 | ||
25522 | ||
25523 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25524 | PyObject *resultobj; | |
25525 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25526 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25527 | PyObject * obj0 = 0 ; | |
25528 | PyObject * obj1 = 0 ; | |
25529 | char *kwnames[] = { | |
25530 | (char *) "self",(char *) "imageList", NULL | |
25531 | }; | |
25532 | ||
25533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
25534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25537 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25538 | { | |
25539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25540 | (arg1)->AssignImageList(arg2); | |
25541 | ||
25542 | wxPyEndAllowThreads(__tstate); | |
25543 | if (PyErr_Occurred()) SWIG_fail; | |
25544 | } | |
25545 | Py_INCREF(Py_None); resultobj = Py_None; | |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25553 | PyObject *resultobj; | |
25554 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25555 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | PyObject * obj1 = 0 ; | |
25558 | char *kwnames[] = { | |
25559 | (char *) "self",(char *) "imageList", NULL | |
25560 | }; | |
25561 | ||
25562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
25563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25566 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
25567 | { | |
25568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25569 | (arg1)->AssignStateImageList(arg2); | |
25570 | ||
25571 | wxPyEndAllowThreads(__tstate); | |
25572 | if (PyErr_Occurred()) SWIG_fail; | |
25573 | } | |
25574 | Py_INCREF(Py_None); resultobj = Py_None; | |
25575 | return resultobj; | |
25576 | fail: | |
25577 | return NULL; | |
25578 | } | |
25579 | ||
25580 | ||
25581 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25582 | PyObject *resultobj; | |
25583 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25584 | wxTreeItemId *arg2 = 0 ; | |
25585 | wxString result; | |
25586 | PyObject * obj0 = 0 ; | |
25587 | PyObject * obj1 = 0 ; | |
25588 | char *kwnames[] = { | |
25589 | (char *) "self",(char *) "item", NULL | |
25590 | }; | |
25591 | ||
25592 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
25593 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25594 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25595 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25596 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25597 | SWIG_fail; | |
25598 | if (arg2 == NULL) { | |
25599 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25600 | SWIG_fail; | |
25601 | } | |
25602 | { | |
25603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25604 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25605 | ||
25606 | wxPyEndAllowThreads(__tstate); | |
25607 | if (PyErr_Occurred()) SWIG_fail; | |
25608 | } | |
25609 | { | |
25610 | #if wxUSE_UNICODE | |
25611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25612 | #else | |
25613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25614 | #endif | |
25615 | } | |
25616 | return resultobj; | |
25617 | fail: | |
25618 | return NULL; | |
25619 | } | |
25620 | ||
25621 | ||
25622 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25623 | PyObject *resultobj; | |
25624 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25625 | wxTreeItemId *arg2 = 0 ; | |
25626 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25627 | int result; | |
25628 | PyObject * obj0 = 0 ; | |
25629 | PyObject * obj1 = 0 ; | |
25630 | PyObject * obj2 = 0 ; | |
25631 | char *kwnames[] = { | |
25632 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25633 | }; | |
25634 | ||
25635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25638 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25639 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25640 | SWIG_fail; | |
25641 | if (arg2 == NULL) { | |
25642 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25643 | SWIG_fail; | |
25644 | } | |
25645 | if (obj2) { | |
25646 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); | |
25647 | if (PyErr_Occurred()) SWIG_fail; | |
25648 | } | |
25649 | { | |
25650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25651 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25652 | ||
25653 | wxPyEndAllowThreads(__tstate); | |
25654 | if (PyErr_Occurred()) SWIG_fail; | |
25655 | } | |
25656 | resultobj = SWIG_FromInt((int)result); | |
25657 | return resultobj; | |
25658 | fail: | |
25659 | return NULL; | |
25660 | } | |
25661 | ||
25662 | ||
25663 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25664 | PyObject *resultobj; | |
25665 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25666 | wxTreeItemId *arg2 = 0 ; | |
25667 | wxPyTreeItemData *result; | |
25668 | PyObject * obj0 = 0 ; | |
25669 | PyObject * obj1 = 0 ; | |
25670 | char *kwnames[] = { | |
25671 | (char *) "self",(char *) "item", NULL | |
25672 | }; | |
25673 | ||
25674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
25675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25678 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25679 | SWIG_fail; | |
25680 | if (arg2 == NULL) { | |
25681 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25682 | SWIG_fail; | |
25683 | } | |
25684 | { | |
25685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25686 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25687 | ||
25688 | wxPyEndAllowThreads(__tstate); | |
25689 | if (PyErr_Occurred()) SWIG_fail; | |
25690 | } | |
25691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); | |
25692 | return resultobj; | |
25693 | fail: | |
25694 | return NULL; | |
25695 | } | |
25696 | ||
25697 | ||
25698 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25699 | PyObject *resultobj; | |
25700 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25701 | wxTreeItemId *arg2 = 0 ; | |
25702 | PyObject *result; | |
25703 | PyObject * obj0 = 0 ; | |
25704 | PyObject * obj1 = 0 ; | |
25705 | char *kwnames[] = { | |
25706 | (char *) "self",(char *) "item", NULL | |
25707 | }; | |
25708 | ||
25709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
25710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25713 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25714 | SWIG_fail; | |
25715 | if (arg2 == NULL) { | |
25716 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25717 | SWIG_fail; | |
25718 | } | |
25719 | { | |
25720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25721 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25722 | ||
25723 | wxPyEndAllowThreads(__tstate); | |
25724 | if (PyErr_Occurred()) SWIG_fail; | |
25725 | } | |
25726 | resultobj = result; | |
25727 | return resultobj; | |
25728 | fail: | |
25729 | return NULL; | |
25730 | } | |
25731 | ||
25732 | ||
25733 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25734 | PyObject *resultobj; | |
25735 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25736 | wxTreeItemId *arg2 = 0 ; | |
25737 | wxColour result; | |
25738 | PyObject * obj0 = 0 ; | |
25739 | PyObject * obj1 = 0 ; | |
25740 | char *kwnames[] = { | |
25741 | (char *) "self",(char *) "item", NULL | |
25742 | }; | |
25743 | ||
25744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
25745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25749 | SWIG_fail; | |
25750 | if (arg2 == NULL) { | |
25751 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25752 | SWIG_fail; | |
25753 | } | |
25754 | { | |
25755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25756 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25757 | ||
25758 | wxPyEndAllowThreads(__tstate); | |
25759 | if (PyErr_Occurred()) SWIG_fail; | |
25760 | } | |
25761 | { | |
25762 | wxColour * resultptr; | |
25763 | resultptr = new wxColour((wxColour &) result); | |
25764 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25765 | } | |
25766 | return resultobj; | |
25767 | fail: | |
25768 | return NULL; | |
25769 | } | |
25770 | ||
25771 | ||
25772 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25773 | PyObject *resultobj; | |
25774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25775 | wxTreeItemId *arg2 = 0 ; | |
25776 | wxColour result; | |
25777 | PyObject * obj0 = 0 ; | |
25778 | PyObject * obj1 = 0 ; | |
25779 | char *kwnames[] = { | |
25780 | (char *) "self",(char *) "item", NULL | |
25781 | }; | |
25782 | ||
25783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
25784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25788 | SWIG_fail; | |
25789 | if (arg2 == NULL) { | |
25790 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25791 | SWIG_fail; | |
25792 | } | |
25793 | { | |
25794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25795 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25796 | ||
25797 | wxPyEndAllowThreads(__tstate); | |
25798 | if (PyErr_Occurred()) SWIG_fail; | |
25799 | } | |
25800 | { | |
25801 | wxColour * resultptr; | |
25802 | resultptr = new wxColour((wxColour &) result); | |
25803 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); | |
25804 | } | |
25805 | return resultobj; | |
25806 | fail: | |
25807 | return NULL; | |
25808 | } | |
25809 | ||
25810 | ||
25811 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25812 | PyObject *resultobj; | |
25813 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25814 | wxTreeItemId *arg2 = 0 ; | |
25815 | wxFont result; | |
25816 | PyObject * obj0 = 0 ; | |
25817 | PyObject * obj1 = 0 ; | |
25818 | char *kwnames[] = { | |
25819 | (char *) "self",(char *) "item", NULL | |
25820 | }; | |
25821 | ||
25822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
25823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25827 | SWIG_fail; | |
25828 | if (arg2 == NULL) { | |
25829 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25830 | SWIG_fail; | |
25831 | } | |
25832 | { | |
25833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25834 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25835 | ||
25836 | wxPyEndAllowThreads(__tstate); | |
25837 | if (PyErr_Occurred()) SWIG_fail; | |
25838 | } | |
25839 | { | |
25840 | wxFont * resultptr; | |
25841 | resultptr = new wxFont((wxFont &) result); | |
25842 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); | |
25843 | } | |
25844 | return resultobj; | |
25845 | fail: | |
25846 | return NULL; | |
25847 | } | |
25848 | ||
25849 | ||
25850 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25851 | PyObject *resultobj; | |
25852 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25853 | wxTreeItemId *arg2 = 0 ; | |
25854 | wxString *arg3 = 0 ; | |
25855 | bool temp3 = False ; | |
25856 | PyObject * obj0 = 0 ; | |
25857 | PyObject * obj1 = 0 ; | |
25858 | PyObject * obj2 = 0 ; | |
25859 | char *kwnames[] = { | |
25860 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25861 | }; | |
25862 | ||
25863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25866 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25868 | SWIG_fail; | |
25869 | if (arg2 == NULL) { | |
25870 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25871 | SWIG_fail; | |
25872 | } | |
25873 | { | |
25874 | arg3 = wxString_in_helper(obj2); | |
25875 | if (arg3 == NULL) SWIG_fail; | |
25876 | temp3 = True; | |
25877 | } | |
25878 | { | |
25879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25880 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25881 | ||
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | Py_INCREF(Py_None); resultobj = Py_None; | |
25886 | { | |
25887 | if (temp3) | |
25888 | delete arg3; | |
25889 | } | |
25890 | return resultobj; | |
25891 | fail: | |
25892 | { | |
25893 | if (temp3) | |
25894 | delete arg3; | |
25895 | } | |
25896 | return NULL; | |
25897 | } | |
25898 | ||
25899 | ||
25900 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25901 | PyObject *resultobj; | |
25902 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25903 | wxTreeItemId *arg2 = 0 ; | |
25904 | int arg3 ; | |
25905 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25906 | PyObject * obj0 = 0 ; | |
25907 | PyObject * obj1 = 0 ; | |
25908 | PyObject * obj2 = 0 ; | |
25909 | PyObject * obj3 = 0 ; | |
25910 | char *kwnames[] = { | |
25911 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25912 | }; | |
25913 | ||
25914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
25915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25917 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25918 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25919 | SWIG_fail; | |
25920 | if (arg2 == NULL) { | |
25921 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25922 | SWIG_fail; | |
25923 | } | |
25924 | arg3 = (int) SWIG_AsInt(obj2); | |
25925 | if (PyErr_Occurred()) SWIG_fail; | |
25926 | if (obj3) { | |
25927 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); | |
25928 | if (PyErr_Occurred()) SWIG_fail; | |
25929 | } | |
25930 | { | |
25931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25932 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25933 | ||
25934 | wxPyEndAllowThreads(__tstate); | |
25935 | if (PyErr_Occurred()) SWIG_fail; | |
25936 | } | |
25937 | Py_INCREF(Py_None); resultobj = Py_None; | |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25947 | wxTreeItemId *arg2 = 0 ; | |
25948 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25949 | PyObject * obj0 = 0 ; | |
25950 | PyObject * obj1 = 0 ; | |
25951 | PyObject * obj2 = 0 ; | |
25952 | char *kwnames[] = { | |
25953 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25954 | }; | |
25955 | ||
25956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25959 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25961 | SWIG_fail; | |
25962 | if (arg2 == NULL) { | |
25963 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
25964 | SWIG_fail; | |
25965 | } | |
25966 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, | |
25967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25968 | { | |
25969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25970 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25971 | ||
25972 | wxPyEndAllowThreads(__tstate); | |
25973 | if (PyErr_Occurred()) SWIG_fail; | |
25974 | } | |
25975 | Py_INCREF(Py_None); resultobj = Py_None; | |
25976 | return resultobj; | |
25977 | fail: | |
25978 | return NULL; | |
25979 | } | |
25980 | ||
25981 | ||
25982 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25983 | PyObject *resultobj; | |
25984 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25985 | wxTreeItemId *arg2 = 0 ; | |
25986 | PyObject *arg3 = (PyObject *) 0 ; | |
25987 | PyObject * obj0 = 0 ; | |
25988 | PyObject * obj1 = 0 ; | |
25989 | PyObject * obj2 = 0 ; | |
25990 | char *kwnames[] = { | |
25991 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25992 | }; | |
25993 | ||
25994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
25995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
25996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25997 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25998 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25999 | SWIG_fail; | |
26000 | if (arg2 == NULL) { | |
26001 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26002 | SWIG_fail; | |
26003 | } | |
26004 | arg3 = obj2; | |
26005 | { | |
26006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26007 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26008 | ||
26009 | wxPyEndAllowThreads(__tstate); | |
26010 | if (PyErr_Occurred()) SWIG_fail; | |
26011 | } | |
26012 | Py_INCREF(Py_None); resultobj = Py_None; | |
26013 | return resultobj; | |
26014 | fail: | |
26015 | return NULL; | |
26016 | } | |
26017 | ||
26018 | ||
26019 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26020 | PyObject *resultobj; | |
26021 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26022 | wxTreeItemId *arg2 = 0 ; | |
26023 | bool arg3 = (bool) True ; | |
26024 | PyObject * obj0 = 0 ; | |
26025 | PyObject * obj1 = 0 ; | |
26026 | PyObject * obj2 = 0 ; | |
26027 | char *kwnames[] = { | |
26028 | (char *) "self",(char *) "item",(char *) "has", NULL | |
26029 | }; | |
26030 | ||
26031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26036 | SWIG_fail; | |
26037 | if (arg2 == NULL) { | |
26038 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26039 | SWIG_fail; | |
26040 | } | |
26041 | if (obj2) { | |
26042 | arg3 = (bool) SWIG_AsBool(obj2); | |
26043 | if (PyErr_Occurred()) SWIG_fail; | |
26044 | } | |
26045 | { | |
26046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26047 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
26048 | ||
26049 | wxPyEndAllowThreads(__tstate); | |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
26051 | } | |
26052 | Py_INCREF(Py_None); resultobj = Py_None; | |
26053 | return resultobj; | |
26054 | fail: | |
26055 | return NULL; | |
26056 | } | |
26057 | ||
26058 | ||
26059 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26060 | PyObject *resultobj; | |
26061 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26062 | wxTreeItemId *arg2 = 0 ; | |
26063 | bool arg3 = (bool) True ; | |
26064 | PyObject * obj0 = 0 ; | |
26065 | PyObject * obj1 = 0 ; | |
26066 | PyObject * obj2 = 0 ; | |
26067 | char *kwnames[] = { | |
26068 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
26069 | }; | |
26070 | ||
26071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26074 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26075 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26076 | SWIG_fail; | |
26077 | if (arg2 == NULL) { | |
26078 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26079 | SWIG_fail; | |
26080 | } | |
26081 | if (obj2) { | |
26082 | arg3 = (bool) SWIG_AsBool(obj2); | |
26083 | if (PyErr_Occurred()) SWIG_fail; | |
26084 | } | |
26085 | { | |
26086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26087 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26088 | ||
26089 | wxPyEndAllowThreads(__tstate); | |
26090 | if (PyErr_Occurred()) SWIG_fail; | |
26091 | } | |
26092 | Py_INCREF(Py_None); resultobj = Py_None; | |
26093 | return resultobj; | |
26094 | fail: | |
26095 | return NULL; | |
26096 | } | |
26097 | ||
26098 | ||
26099 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26100 | PyObject *resultobj; | |
26101 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26102 | wxTreeItemId *arg2 = 0 ; | |
26103 | bool arg3 = (bool) True ; | |
26104 | PyObject * obj0 = 0 ; | |
26105 | PyObject * obj1 = 0 ; | |
26106 | PyObject * obj2 = 0 ; | |
26107 | char *kwnames[] = { | |
26108 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
26109 | }; | |
26110 | ||
26111 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26112 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26114 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26116 | SWIG_fail; | |
26117 | if (arg2 == NULL) { | |
26118 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26119 | SWIG_fail; | |
26120 | } | |
26121 | if (obj2) { | |
26122 | arg3 = (bool) SWIG_AsBool(obj2); | |
26123 | if (PyErr_Occurred()) SWIG_fail; | |
26124 | } | |
26125 | { | |
26126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26127 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
26128 | ||
26129 | wxPyEndAllowThreads(__tstate); | |
26130 | if (PyErr_Occurred()) SWIG_fail; | |
26131 | } | |
26132 | Py_INCREF(Py_None); resultobj = Py_None; | |
26133 | return resultobj; | |
26134 | fail: | |
26135 | return NULL; | |
26136 | } | |
26137 | ||
26138 | ||
26139 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26140 | PyObject *resultobj; | |
26141 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26142 | wxTreeItemId *arg2 = 0 ; | |
26143 | wxColour *arg3 = 0 ; | |
26144 | wxColour temp3 ; | |
26145 | PyObject * obj0 = 0 ; | |
26146 | PyObject * obj1 = 0 ; | |
26147 | PyObject * obj2 = 0 ; | |
26148 | char *kwnames[] = { | |
26149 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26150 | }; | |
26151 | ||
26152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26157 | SWIG_fail; | |
26158 | if (arg2 == NULL) { | |
26159 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26160 | SWIG_fail; | |
26161 | } | |
26162 | { | |
26163 | arg3 = &temp3; | |
26164 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26165 | } | |
26166 | { | |
26167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26168 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26169 | ||
26170 | wxPyEndAllowThreads(__tstate); | |
26171 | if (PyErr_Occurred()) SWIG_fail; | |
26172 | } | |
26173 | Py_INCREF(Py_None); resultobj = Py_None; | |
26174 | return resultobj; | |
26175 | fail: | |
26176 | return NULL; | |
26177 | } | |
26178 | ||
26179 | ||
26180 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26181 | PyObject *resultobj; | |
26182 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26183 | wxTreeItemId *arg2 = 0 ; | |
26184 | wxColour *arg3 = 0 ; | |
26185 | wxColour temp3 ; | |
26186 | PyObject * obj0 = 0 ; | |
26187 | PyObject * obj1 = 0 ; | |
26188 | PyObject * obj2 = 0 ; | |
26189 | char *kwnames[] = { | |
26190 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26191 | }; | |
26192 | ||
26193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26196 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26197 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26198 | SWIG_fail; | |
26199 | if (arg2 == NULL) { | |
26200 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26201 | SWIG_fail; | |
26202 | } | |
26203 | { | |
26204 | arg3 = &temp3; | |
26205 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26206 | } | |
26207 | { | |
26208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26209 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26210 | ||
26211 | wxPyEndAllowThreads(__tstate); | |
26212 | if (PyErr_Occurred()) SWIG_fail; | |
26213 | } | |
26214 | Py_INCREF(Py_None); resultobj = Py_None; | |
26215 | return resultobj; | |
26216 | fail: | |
26217 | return NULL; | |
26218 | } | |
26219 | ||
26220 | ||
26221 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26222 | PyObject *resultobj; | |
26223 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26224 | wxTreeItemId *arg2 = 0 ; | |
26225 | wxFont *arg3 = 0 ; | |
26226 | PyObject * obj0 = 0 ; | |
26227 | PyObject * obj1 = 0 ; | |
26228 | PyObject * obj2 = 0 ; | |
26229 | char *kwnames[] = { | |
26230 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26231 | }; | |
26232 | ||
26233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26236 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26237 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26238 | SWIG_fail; | |
26239 | if (arg2 == NULL) { | |
26240 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26241 | SWIG_fail; | |
26242 | } | |
26243 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
26244 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26245 | SWIG_fail; | |
26246 | if (arg3 == NULL) { | |
26247 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26248 | SWIG_fail; | |
26249 | } | |
26250 | { | |
26251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26252 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26253 | ||
26254 | wxPyEndAllowThreads(__tstate); | |
26255 | if (PyErr_Occurred()) SWIG_fail; | |
26256 | } | |
26257 | Py_INCREF(Py_None); resultobj = Py_None; | |
26258 | return resultobj; | |
26259 | fail: | |
26260 | return NULL; | |
26261 | } | |
26262 | ||
26263 | ||
26264 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26265 | PyObject *resultobj; | |
26266 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26267 | wxTreeItemId *arg2 = 0 ; | |
26268 | bool result; | |
26269 | PyObject * obj0 = 0 ; | |
26270 | PyObject * obj1 = 0 ; | |
26271 | char *kwnames[] = { | |
26272 | (char *) "self",(char *) "item", NULL | |
26273 | }; | |
26274 | ||
26275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
26276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26278 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26279 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26280 | SWIG_fail; | |
26281 | if (arg2 == NULL) { | |
26282 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26283 | SWIG_fail; | |
26284 | } | |
26285 | { | |
26286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26287 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26288 | ||
26289 | wxPyEndAllowThreads(__tstate); | |
26290 | if (PyErr_Occurred()) SWIG_fail; | |
26291 | } | |
26292 | { | |
26293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26294 | } | |
26295 | return resultobj; | |
26296 | fail: | |
26297 | return NULL; | |
26298 | } | |
26299 | ||
26300 | ||
26301 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26302 | PyObject *resultobj; | |
26303 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26304 | wxTreeItemId *arg2 = 0 ; | |
26305 | bool result; | |
26306 | PyObject * obj0 = 0 ; | |
26307 | PyObject * obj1 = 0 ; | |
26308 | char *kwnames[] = { | |
26309 | (char *) "self",(char *) "item", NULL | |
26310 | }; | |
26311 | ||
26312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
26313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26316 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26317 | SWIG_fail; | |
26318 | if (arg2 == NULL) { | |
26319 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26320 | SWIG_fail; | |
26321 | } | |
26322 | { | |
26323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26324 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26325 | ||
26326 | wxPyEndAllowThreads(__tstate); | |
26327 | if (PyErr_Occurred()) SWIG_fail; | |
26328 | } | |
26329 | { | |
26330 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26331 | } | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
26338 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26339 | PyObject *resultobj; | |
26340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26341 | wxTreeItemId *arg2 = 0 ; | |
26342 | bool result; | |
26343 | PyObject * obj0 = 0 ; | |
26344 | PyObject * obj1 = 0 ; | |
26345 | char *kwnames[] = { | |
26346 | (char *) "self",(char *) "item", NULL | |
26347 | }; | |
26348 | ||
26349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
26350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26352 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26354 | SWIG_fail; | |
26355 | if (arg2 == NULL) { | |
26356 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26357 | SWIG_fail; | |
26358 | } | |
26359 | { | |
26360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26361 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26362 | ||
26363 | wxPyEndAllowThreads(__tstate); | |
26364 | if (PyErr_Occurred()) SWIG_fail; | |
26365 | } | |
26366 | { | |
26367 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26368 | } | |
26369 | return resultobj; | |
26370 | fail: | |
26371 | return NULL; | |
26372 | } | |
26373 | ||
26374 | ||
26375 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26376 | PyObject *resultobj; | |
26377 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26378 | wxTreeItemId *arg2 = 0 ; | |
26379 | bool result; | |
26380 | PyObject * obj0 = 0 ; | |
26381 | PyObject * obj1 = 0 ; | |
26382 | char *kwnames[] = { | |
26383 | (char *) "self",(char *) "item", NULL | |
26384 | }; | |
26385 | ||
26386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
26387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26389 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26390 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26391 | SWIG_fail; | |
26392 | if (arg2 == NULL) { | |
26393 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26394 | SWIG_fail; | |
26395 | } | |
26396 | { | |
26397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26398 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26399 | ||
26400 | wxPyEndAllowThreads(__tstate); | |
26401 | if (PyErr_Occurred()) SWIG_fail; | |
26402 | } | |
26403 | { | |
26404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26405 | } | |
26406 | return resultobj; | |
26407 | fail: | |
26408 | return NULL; | |
26409 | } | |
26410 | ||
26411 | ||
26412 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26413 | PyObject *resultobj; | |
26414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26415 | wxTreeItemId *arg2 = 0 ; | |
26416 | bool result; | |
26417 | PyObject * obj0 = 0 ; | |
26418 | PyObject * obj1 = 0 ; | |
26419 | char *kwnames[] = { | |
26420 | (char *) "self",(char *) "item", NULL | |
26421 | }; | |
26422 | ||
26423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
26424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26428 | SWIG_fail; | |
26429 | if (arg2 == NULL) { | |
26430 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26431 | SWIG_fail; | |
26432 | } | |
26433 | { | |
26434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26435 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26436 | ||
26437 | wxPyEndAllowThreads(__tstate); | |
26438 | if (PyErr_Occurred()) SWIG_fail; | |
26439 | } | |
26440 | { | |
26441 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26442 | } | |
26443 | return resultobj; | |
26444 | fail: | |
26445 | return NULL; | |
26446 | } | |
26447 | ||
26448 | ||
26449 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26450 | PyObject *resultobj; | |
26451 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26452 | wxTreeItemId *arg2 = 0 ; | |
26453 | bool arg3 = (bool) True ; | |
26454 | size_t result; | |
26455 | PyObject * obj0 = 0 ; | |
26456 | PyObject * obj1 = 0 ; | |
26457 | PyObject * obj2 = 0 ; | |
26458 | char *kwnames[] = { | |
26459 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26460 | }; | |
26461 | ||
26462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26465 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26467 | SWIG_fail; | |
26468 | if (arg2 == NULL) { | |
26469 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26470 | SWIG_fail; | |
26471 | } | |
26472 | if (obj2) { | |
26473 | arg3 = (bool) SWIG_AsBool(obj2); | |
26474 | if (PyErr_Occurred()) SWIG_fail; | |
26475 | } | |
26476 | { | |
26477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26478 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26479 | ||
26480 | wxPyEndAllowThreads(__tstate); | |
26481 | if (PyErr_Occurred()) SWIG_fail; | |
26482 | } | |
26483 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); | |
26484 | return resultobj; | |
26485 | fail: | |
26486 | return NULL; | |
26487 | } | |
26488 | ||
26489 | ||
26490 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26491 | PyObject *resultobj; | |
26492 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26493 | wxTreeItemId result; | |
26494 | PyObject * obj0 = 0 ; | |
26495 | char *kwnames[] = { | |
26496 | (char *) "self", NULL | |
26497 | }; | |
26498 | ||
26499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
26500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26502 | { | |
26503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26504 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26505 | ||
26506 | wxPyEndAllowThreads(__tstate); | |
26507 | if (PyErr_Occurred()) SWIG_fail; | |
26508 | } | |
26509 | { | |
26510 | wxTreeItemId * resultptr; | |
26511 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26512 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26513 | } | |
26514 | return resultobj; | |
26515 | fail: | |
26516 | return NULL; | |
26517 | } | |
26518 | ||
26519 | ||
26520 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26521 | PyObject *resultobj; | |
26522 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26523 | wxTreeItemId result; | |
26524 | PyObject * obj0 = 0 ; | |
26525 | char *kwnames[] = { | |
26526 | (char *) "self", NULL | |
26527 | }; | |
26528 | ||
26529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
26530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26532 | { | |
26533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26534 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26535 | ||
26536 | wxPyEndAllowThreads(__tstate); | |
26537 | if (PyErr_Occurred()) SWIG_fail; | |
26538 | } | |
26539 | { | |
26540 | wxTreeItemId * resultptr; | |
26541 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26542 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26543 | } | |
26544 | return resultobj; | |
26545 | fail: | |
26546 | return NULL; | |
26547 | } | |
26548 | ||
26549 | ||
26550 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26551 | PyObject *resultobj; | |
26552 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26553 | PyObject *result; | |
26554 | PyObject * obj0 = 0 ; | |
26555 | char *kwnames[] = { | |
26556 | (char *) "self", NULL | |
26557 | }; | |
26558 | ||
26559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
26560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26562 | { | |
26563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26564 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26565 | ||
26566 | wxPyEndAllowThreads(__tstate); | |
26567 | if (PyErr_Occurred()) SWIG_fail; | |
26568 | } | |
26569 | resultobj = result; | |
26570 | return resultobj; | |
26571 | fail: | |
26572 | return NULL; | |
26573 | } | |
26574 | ||
26575 | ||
26576 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26577 | PyObject *resultobj; | |
26578 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26579 | wxTreeItemId *arg2 = 0 ; | |
26580 | wxTreeItemId result; | |
26581 | PyObject * obj0 = 0 ; | |
26582 | PyObject * obj1 = 0 ; | |
26583 | char *kwnames[] = { | |
26584 | (char *) "self",(char *) "item", NULL | |
26585 | }; | |
26586 | ||
26587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
26588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26590 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26591 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26592 | SWIG_fail; | |
26593 | if (arg2 == NULL) { | |
26594 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26595 | SWIG_fail; | |
26596 | } | |
26597 | { | |
26598 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26599 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26600 | ||
26601 | wxPyEndAllowThreads(__tstate); | |
26602 | if (PyErr_Occurred()) SWIG_fail; | |
26603 | } | |
26604 | { | |
26605 | wxTreeItemId * resultptr; | |
26606 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26607 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26608 | } | |
26609 | return resultobj; | |
26610 | fail: | |
26611 | return NULL; | |
26612 | } | |
26613 | ||
26614 | ||
26615 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26616 | PyObject *resultobj; | |
26617 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26618 | wxTreeItemId *arg2 = 0 ; | |
26619 | PyObject *result; | |
26620 | PyObject * obj0 = 0 ; | |
26621 | PyObject * obj1 = 0 ; | |
26622 | char *kwnames[] = { | |
26623 | (char *) "self",(char *) "item", NULL | |
26624 | }; | |
26625 | ||
26626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
26627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26631 | SWIG_fail; | |
26632 | if (arg2 == NULL) { | |
26633 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26634 | SWIG_fail; | |
26635 | } | |
26636 | { | |
26637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26638 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26639 | ||
26640 | wxPyEndAllowThreads(__tstate); | |
26641 | if (PyErr_Occurred()) SWIG_fail; | |
26642 | } | |
26643 | resultobj = result; | |
26644 | return resultobj; | |
26645 | fail: | |
26646 | return NULL; | |
26647 | } | |
26648 | ||
26649 | ||
26650 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26651 | PyObject *resultobj; | |
26652 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26653 | wxTreeItemId *arg2 = 0 ; | |
26654 | void *arg3 = (void *) 0 ; | |
26655 | PyObject *result; | |
26656 | PyObject * obj0 = 0 ; | |
26657 | PyObject * obj1 = 0 ; | |
26658 | PyObject * obj2 = 0 ; | |
26659 | char *kwnames[] = { | |
26660 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26661 | }; | |
26662 | ||
26663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
26664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26667 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26668 | SWIG_fail; | |
26669 | if (arg2 == NULL) { | |
26670 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26671 | SWIG_fail; | |
26672 | } | |
26673 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26674 | { | |
26675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26676 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26677 | ||
26678 | wxPyEndAllowThreads(__tstate); | |
26679 | if (PyErr_Occurred()) SWIG_fail; | |
26680 | } | |
26681 | resultobj = result; | |
26682 | return resultobj; | |
26683 | fail: | |
26684 | return NULL; | |
26685 | } | |
26686 | ||
26687 | ||
26688 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26689 | PyObject *resultobj; | |
26690 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26691 | wxTreeItemId *arg2 = 0 ; | |
26692 | wxTreeItemId result; | |
26693 | PyObject * obj0 = 0 ; | |
26694 | PyObject * obj1 = 0 ; | |
26695 | char *kwnames[] = { | |
26696 | (char *) "self",(char *) "item", NULL | |
26697 | }; | |
26698 | ||
26699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
26700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26702 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26703 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26704 | SWIG_fail; | |
26705 | if (arg2 == NULL) { | |
26706 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26707 | SWIG_fail; | |
26708 | } | |
26709 | { | |
26710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26711 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26712 | ||
26713 | wxPyEndAllowThreads(__tstate); | |
26714 | if (PyErr_Occurred()) SWIG_fail; | |
26715 | } | |
26716 | { | |
26717 | wxTreeItemId * resultptr; | |
26718 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26719 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26720 | } | |
26721 | return resultobj; | |
26722 | fail: | |
26723 | return NULL; | |
26724 | } | |
26725 | ||
26726 | ||
26727 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26728 | PyObject *resultobj; | |
26729 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26730 | wxTreeItemId *arg2 = 0 ; | |
26731 | wxTreeItemId result; | |
26732 | PyObject * obj0 = 0 ; | |
26733 | PyObject * obj1 = 0 ; | |
26734 | char *kwnames[] = { | |
26735 | (char *) "self",(char *) "item", NULL | |
26736 | }; | |
26737 | ||
26738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
26739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26743 | SWIG_fail; | |
26744 | if (arg2 == NULL) { | |
26745 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26746 | SWIG_fail; | |
26747 | } | |
26748 | { | |
26749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26750 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26751 | ||
26752 | wxPyEndAllowThreads(__tstate); | |
26753 | if (PyErr_Occurred()) SWIG_fail; | |
26754 | } | |
26755 | { | |
26756 | wxTreeItemId * resultptr; | |
26757 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26758 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26759 | } | |
26760 | return resultobj; | |
26761 | fail: | |
26762 | return NULL; | |
26763 | } | |
26764 | ||
26765 | ||
26766 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26767 | PyObject *resultobj; | |
26768 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26769 | wxTreeItemId *arg2 = 0 ; | |
26770 | wxTreeItemId result; | |
26771 | PyObject * obj0 = 0 ; | |
26772 | PyObject * obj1 = 0 ; | |
26773 | char *kwnames[] = { | |
26774 | (char *) "self",(char *) "item", NULL | |
26775 | }; | |
26776 | ||
26777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
26778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26780 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26781 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26782 | SWIG_fail; | |
26783 | if (arg2 == NULL) { | |
26784 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26785 | SWIG_fail; | |
26786 | } | |
26787 | { | |
26788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26789 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26790 | ||
26791 | wxPyEndAllowThreads(__tstate); | |
26792 | if (PyErr_Occurred()) SWIG_fail; | |
26793 | } | |
26794 | { | |
26795 | wxTreeItemId * resultptr; | |
26796 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26797 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26798 | } | |
26799 | return resultobj; | |
26800 | fail: | |
26801 | return NULL; | |
26802 | } | |
26803 | ||
26804 | ||
26805 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26806 | PyObject *resultobj; | |
26807 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26808 | wxTreeItemId result; | |
26809 | PyObject * obj0 = 0 ; | |
26810 | char *kwnames[] = { | |
26811 | (char *) "self", NULL | |
26812 | }; | |
26813 | ||
26814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
26815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26817 | { | |
26818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26819 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26820 | ||
26821 | wxPyEndAllowThreads(__tstate); | |
26822 | if (PyErr_Occurred()) SWIG_fail; | |
26823 | } | |
26824 | { | |
26825 | wxTreeItemId * resultptr; | |
26826 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26827 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26828 | } | |
26829 | return resultobj; | |
26830 | fail: | |
26831 | return NULL; | |
26832 | } | |
26833 | ||
26834 | ||
26835 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26836 | PyObject *resultobj; | |
26837 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26838 | wxTreeItemId *arg2 = 0 ; | |
26839 | wxTreeItemId result; | |
26840 | PyObject * obj0 = 0 ; | |
26841 | PyObject * obj1 = 0 ; | |
26842 | char *kwnames[] = { | |
26843 | (char *) "self",(char *) "item", NULL | |
26844 | }; | |
26845 | ||
26846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
26847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26849 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26850 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26851 | SWIG_fail; | |
26852 | if (arg2 == NULL) { | |
26853 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26854 | SWIG_fail; | |
26855 | } | |
26856 | { | |
26857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26858 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26859 | ||
26860 | wxPyEndAllowThreads(__tstate); | |
26861 | if (PyErr_Occurred()) SWIG_fail; | |
26862 | } | |
26863 | { | |
26864 | wxTreeItemId * resultptr; | |
26865 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26866 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26867 | } | |
26868 | return resultobj; | |
26869 | fail: | |
26870 | return NULL; | |
26871 | } | |
26872 | ||
26873 | ||
26874 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26875 | PyObject *resultobj; | |
26876 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26877 | wxTreeItemId *arg2 = 0 ; | |
26878 | wxTreeItemId result; | |
26879 | PyObject * obj0 = 0 ; | |
26880 | PyObject * obj1 = 0 ; | |
26881 | char *kwnames[] = { | |
26882 | (char *) "self",(char *) "item", NULL | |
26883 | }; | |
26884 | ||
26885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
26886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26890 | SWIG_fail; | |
26891 | if (arg2 == NULL) { | |
26892 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
26893 | SWIG_fail; | |
26894 | } | |
26895 | { | |
26896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26897 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26898 | ||
26899 | wxPyEndAllowThreads(__tstate); | |
26900 | if (PyErr_Occurred()) SWIG_fail; | |
26901 | } | |
26902 | { | |
26903 | wxTreeItemId * resultptr; | |
26904 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26906 | } | |
26907 | return resultobj; | |
26908 | fail: | |
26909 | return NULL; | |
26910 | } | |
26911 | ||
26912 | ||
26913 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26914 | PyObject *resultobj; | |
26915 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26916 | wxString *arg2 = 0 ; | |
26917 | int arg3 = (int) -1 ; | |
26918 | int arg4 = (int) -1 ; | |
26919 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26920 | wxTreeItemId result; | |
26921 | bool temp2 = False ; | |
26922 | PyObject * obj0 = 0 ; | |
26923 | PyObject * obj1 = 0 ; | |
26924 | PyObject * obj2 = 0 ; | |
26925 | PyObject * obj3 = 0 ; | |
26926 | PyObject * obj4 = 0 ; | |
26927 | char *kwnames[] = { | |
26928 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26929 | }; | |
26930 | ||
26931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
26932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26934 | { | |
26935 | arg2 = wxString_in_helper(obj1); | |
26936 | if (arg2 == NULL) SWIG_fail; | |
26937 | temp2 = True; | |
26938 | } | |
26939 | if (obj2) { | |
26940 | arg3 = (int) SWIG_AsInt(obj2); | |
26941 | if (PyErr_Occurred()) SWIG_fail; | |
26942 | } | |
26943 | if (obj3) { | |
26944 | arg4 = (int) SWIG_AsInt(obj3); | |
26945 | if (PyErr_Occurred()) SWIG_fail; | |
26946 | } | |
26947 | if (obj4) { | |
26948 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, | |
26949 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26950 | } | |
26951 | { | |
26952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26953 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26954 | ||
26955 | wxPyEndAllowThreads(__tstate); | |
26956 | if (PyErr_Occurred()) SWIG_fail; | |
26957 | } | |
26958 | { | |
26959 | wxTreeItemId * resultptr; | |
26960 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
26961 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
26962 | } | |
26963 | { | |
26964 | if (temp2) | |
26965 | delete arg2; | |
26966 | } | |
26967 | return resultobj; | |
26968 | fail: | |
26969 | { | |
26970 | if (temp2) | |
26971 | delete arg2; | |
26972 | } | |
26973 | return NULL; | |
26974 | } | |
26975 | ||
26976 | ||
26977 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26978 | PyObject *resultobj; | |
26979 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26980 | wxTreeItemId *arg2 = 0 ; | |
26981 | wxString *arg3 = 0 ; | |
26982 | int arg4 = (int) -1 ; | |
26983 | int arg5 = (int) -1 ; | |
26984 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26985 | wxTreeItemId result; | |
26986 | bool temp3 = False ; | |
26987 | PyObject * obj0 = 0 ; | |
26988 | PyObject * obj1 = 0 ; | |
26989 | PyObject * obj2 = 0 ; | |
26990 | PyObject * obj3 = 0 ; | |
26991 | PyObject * obj4 = 0 ; | |
26992 | PyObject * obj5 = 0 ; | |
26993 | char *kwnames[] = { | |
26994 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26995 | }; | |
26996 | ||
26997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
26998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
26999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27001 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27002 | SWIG_fail; | |
27003 | if (arg2 == NULL) { | |
27004 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27005 | SWIG_fail; | |
27006 | } | |
27007 | { | |
27008 | arg3 = wxString_in_helper(obj2); | |
27009 | if (arg3 == NULL) SWIG_fail; | |
27010 | temp3 = True; | |
27011 | } | |
27012 | if (obj3) { | |
27013 | arg4 = (int) SWIG_AsInt(obj3); | |
27014 | if (PyErr_Occurred()) SWIG_fail; | |
27015 | } | |
27016 | if (obj4) { | |
27017 | arg5 = (int) SWIG_AsInt(obj4); | |
27018 | if (PyErr_Occurred()) SWIG_fail; | |
27019 | } | |
27020 | if (obj5) { | |
27021 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27023 | } | |
27024 | { | |
27025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27026 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27027 | ||
27028 | wxPyEndAllowThreads(__tstate); | |
27029 | if (PyErr_Occurred()) SWIG_fail; | |
27030 | } | |
27031 | { | |
27032 | wxTreeItemId * resultptr; | |
27033 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27034 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27035 | } | |
27036 | { | |
27037 | if (temp3) | |
27038 | delete arg3; | |
27039 | } | |
27040 | return resultobj; | |
27041 | fail: | |
27042 | { | |
27043 | if (temp3) | |
27044 | delete arg3; | |
27045 | } | |
27046 | return NULL; | |
27047 | } | |
27048 | ||
27049 | ||
27050 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27051 | PyObject *resultobj; | |
27052 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27053 | wxTreeItemId *arg2 = 0 ; | |
27054 | wxTreeItemId *arg3 = 0 ; | |
27055 | wxString *arg4 = 0 ; | |
27056 | int arg5 = (int) -1 ; | |
27057 | int arg6 = (int) -1 ; | |
27058 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27059 | wxTreeItemId result; | |
27060 | bool temp4 = False ; | |
27061 | PyObject * obj0 = 0 ; | |
27062 | PyObject * obj1 = 0 ; | |
27063 | PyObject * obj2 = 0 ; | |
27064 | PyObject * obj3 = 0 ; | |
27065 | PyObject * obj4 = 0 ; | |
27066 | PyObject * obj5 = 0 ; | |
27067 | PyObject * obj6 = 0 ; | |
27068 | char *kwnames[] = { | |
27069 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27070 | }; | |
27071 | ||
27072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27077 | SWIG_fail; | |
27078 | if (arg2 == NULL) { | |
27079 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27080 | SWIG_fail; | |
27081 | } | |
27082 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, | |
27083 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27084 | SWIG_fail; | |
27085 | if (arg3 == NULL) { | |
27086 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27087 | SWIG_fail; | |
27088 | } | |
27089 | { | |
27090 | arg4 = wxString_in_helper(obj3); | |
27091 | if (arg4 == NULL) SWIG_fail; | |
27092 | temp4 = True; | |
27093 | } | |
27094 | if (obj4) { | |
27095 | arg5 = (int) SWIG_AsInt(obj4); | |
27096 | if (PyErr_Occurred()) SWIG_fail; | |
27097 | } | |
27098 | if (obj5) { | |
27099 | arg6 = (int) SWIG_AsInt(obj5); | |
27100 | if (PyErr_Occurred()) SWIG_fail; | |
27101 | } | |
27102 | if (obj6) { | |
27103 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27105 | } | |
27106 | { | |
27107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27108 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27109 | ||
27110 | wxPyEndAllowThreads(__tstate); | |
27111 | if (PyErr_Occurred()) SWIG_fail; | |
27112 | } | |
27113 | { | |
27114 | wxTreeItemId * resultptr; | |
27115 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27116 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27117 | } | |
27118 | { | |
27119 | if (temp4) | |
27120 | delete arg4; | |
27121 | } | |
27122 | return resultobj; | |
27123 | fail: | |
27124 | { | |
27125 | if (temp4) | |
27126 | delete arg4; | |
27127 | } | |
27128 | return NULL; | |
27129 | } | |
27130 | ||
27131 | ||
27132 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27133 | PyObject *resultobj; | |
27134 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27135 | wxTreeItemId *arg2 = 0 ; | |
27136 | size_t arg3 ; | |
27137 | wxString *arg4 = 0 ; | |
27138 | int arg5 = (int) -1 ; | |
27139 | int arg6 = (int) -1 ; | |
27140 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27141 | wxTreeItemId result; | |
27142 | bool temp4 = False ; | |
27143 | PyObject * obj0 = 0 ; | |
27144 | PyObject * obj1 = 0 ; | |
27145 | PyObject * obj2 = 0 ; | |
27146 | PyObject * obj3 = 0 ; | |
27147 | PyObject * obj4 = 0 ; | |
27148 | PyObject * obj5 = 0 ; | |
27149 | PyObject * obj6 = 0 ; | |
27150 | char *kwnames[] = { | |
27151 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27152 | }; | |
27153 | ||
27154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; | |
27155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27158 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27159 | SWIG_fail; | |
27160 | if (arg2 == NULL) { | |
27161 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27162 | SWIG_fail; | |
27163 | } | |
27164 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); | |
27165 | if (PyErr_Occurred()) SWIG_fail; | |
27166 | { | |
27167 | arg4 = wxString_in_helper(obj3); | |
27168 | if (arg4 == NULL) SWIG_fail; | |
27169 | temp4 = True; | |
27170 | } | |
27171 | if (obj4) { | |
27172 | arg5 = (int) SWIG_AsInt(obj4); | |
27173 | if (PyErr_Occurred()) SWIG_fail; | |
27174 | } | |
27175 | if (obj5) { | |
27176 | arg6 = (int) SWIG_AsInt(obj5); | |
27177 | if (PyErr_Occurred()) SWIG_fail; | |
27178 | } | |
27179 | if (obj6) { | |
27180 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, | |
27181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27182 | } | |
27183 | { | |
27184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27185 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27186 | ||
27187 | wxPyEndAllowThreads(__tstate); | |
27188 | if (PyErr_Occurred()) SWIG_fail; | |
27189 | } | |
27190 | { | |
27191 | wxTreeItemId * resultptr; | |
27192 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27193 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27194 | } | |
27195 | { | |
27196 | if (temp4) | |
27197 | delete arg4; | |
27198 | } | |
27199 | return resultobj; | |
27200 | fail: | |
27201 | { | |
27202 | if (temp4) | |
27203 | delete arg4; | |
27204 | } | |
27205 | return NULL; | |
27206 | } | |
27207 | ||
27208 | ||
27209 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27210 | PyObject *resultobj; | |
27211 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27212 | wxTreeItemId *arg2 = 0 ; | |
27213 | wxString *arg3 = 0 ; | |
27214 | int arg4 = (int) -1 ; | |
27215 | int arg5 = (int) -1 ; | |
27216 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27217 | wxTreeItemId result; | |
27218 | bool temp3 = False ; | |
27219 | PyObject * obj0 = 0 ; | |
27220 | PyObject * obj1 = 0 ; | |
27221 | PyObject * obj2 = 0 ; | |
27222 | PyObject * obj3 = 0 ; | |
27223 | PyObject * obj4 = 0 ; | |
27224 | PyObject * obj5 = 0 ; | |
27225 | char *kwnames[] = { | |
27226 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27227 | }; | |
27228 | ||
27229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
27230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27234 | SWIG_fail; | |
27235 | if (arg2 == NULL) { | |
27236 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27237 | SWIG_fail; | |
27238 | } | |
27239 | { | |
27240 | arg3 = wxString_in_helper(obj2); | |
27241 | if (arg3 == NULL) SWIG_fail; | |
27242 | temp3 = True; | |
27243 | } | |
27244 | if (obj3) { | |
27245 | arg4 = (int) SWIG_AsInt(obj3); | |
27246 | if (PyErr_Occurred()) SWIG_fail; | |
27247 | } | |
27248 | if (obj4) { | |
27249 | arg5 = (int) SWIG_AsInt(obj4); | |
27250 | if (PyErr_Occurred()) SWIG_fail; | |
27251 | } | |
27252 | if (obj5) { | |
27253 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, | |
27254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27255 | } | |
27256 | { | |
27257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27258 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27259 | ||
27260 | wxPyEndAllowThreads(__tstate); | |
27261 | if (PyErr_Occurred()) SWIG_fail; | |
27262 | } | |
27263 | { | |
27264 | wxTreeItemId * resultptr; | |
27265 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27266 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27267 | } | |
27268 | { | |
27269 | if (temp3) | |
27270 | delete arg3; | |
27271 | } | |
27272 | return resultobj; | |
27273 | fail: | |
27274 | { | |
27275 | if (temp3) | |
27276 | delete arg3; | |
27277 | } | |
27278 | return NULL; | |
27279 | } | |
27280 | ||
27281 | ||
27282 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27283 | PyObject *resultobj; | |
27284 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27285 | wxTreeItemId *arg2 = 0 ; | |
27286 | PyObject * obj0 = 0 ; | |
27287 | PyObject * obj1 = 0 ; | |
27288 | char *kwnames[] = { | |
27289 | (char *) "self",(char *) "item", NULL | |
27290 | }; | |
27291 | ||
27292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
27293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27295 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27296 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27297 | SWIG_fail; | |
27298 | if (arg2 == NULL) { | |
27299 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27300 | SWIG_fail; | |
27301 | } | |
27302 | { | |
27303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27304 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27305 | ||
27306 | wxPyEndAllowThreads(__tstate); | |
27307 | if (PyErr_Occurred()) SWIG_fail; | |
27308 | } | |
27309 | Py_INCREF(Py_None); resultobj = Py_None; | |
27310 | return resultobj; | |
27311 | fail: | |
27312 | return NULL; | |
27313 | } | |
27314 | ||
27315 | ||
27316 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27317 | PyObject *resultobj; | |
27318 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27319 | wxTreeItemId *arg2 = 0 ; | |
27320 | PyObject * obj0 = 0 ; | |
27321 | PyObject * obj1 = 0 ; | |
27322 | char *kwnames[] = { | |
27323 | (char *) "self",(char *) "item", NULL | |
27324 | }; | |
27325 | ||
27326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
27327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27330 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27331 | SWIG_fail; | |
27332 | if (arg2 == NULL) { | |
27333 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27334 | SWIG_fail; | |
27335 | } | |
27336 | { | |
27337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27338 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27339 | ||
27340 | wxPyEndAllowThreads(__tstate); | |
27341 | if (PyErr_Occurred()) SWIG_fail; | |
27342 | } | |
27343 | Py_INCREF(Py_None); resultobj = Py_None; | |
27344 | return resultobj; | |
27345 | fail: | |
27346 | return NULL; | |
27347 | } | |
27348 | ||
27349 | ||
27350 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27351 | PyObject *resultobj; | |
27352 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27353 | PyObject * obj0 = 0 ; | |
27354 | char *kwnames[] = { | |
27355 | (char *) "self", NULL | |
27356 | }; | |
27357 | ||
27358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
27359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27361 | { | |
27362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27363 | (arg1)->DeleteAllItems(); | |
27364 | ||
27365 | wxPyEndAllowThreads(__tstate); | |
27366 | if (PyErr_Occurred()) SWIG_fail; | |
27367 | } | |
27368 | Py_INCREF(Py_None); resultobj = Py_None; | |
27369 | return resultobj; | |
27370 | fail: | |
27371 | return NULL; | |
27372 | } | |
27373 | ||
27374 | ||
27375 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27376 | PyObject *resultobj; | |
27377 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27378 | wxTreeItemId *arg2 = 0 ; | |
27379 | PyObject * obj0 = 0 ; | |
27380 | PyObject * obj1 = 0 ; | |
27381 | char *kwnames[] = { | |
27382 | (char *) "self",(char *) "item", NULL | |
27383 | }; | |
27384 | ||
27385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
27386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27388 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27389 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27390 | SWIG_fail; | |
27391 | if (arg2 == NULL) { | |
27392 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27393 | SWIG_fail; | |
27394 | } | |
27395 | { | |
27396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27397 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27398 | ||
27399 | wxPyEndAllowThreads(__tstate); | |
27400 | if (PyErr_Occurred()) SWIG_fail; | |
27401 | } | |
27402 | Py_INCREF(Py_None); resultobj = Py_None; | |
27403 | return resultobj; | |
27404 | fail: | |
27405 | return NULL; | |
27406 | } | |
27407 | ||
27408 | ||
27409 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27410 | PyObject *resultobj; | |
27411 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27412 | wxTreeItemId *arg2 = 0 ; | |
27413 | PyObject * obj0 = 0 ; | |
27414 | PyObject * obj1 = 0 ; | |
27415 | char *kwnames[] = { | |
27416 | (char *) "self",(char *) "item", NULL | |
27417 | }; | |
27418 | ||
27419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
27420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27422 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27423 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27424 | SWIG_fail; | |
27425 | if (arg2 == NULL) { | |
27426 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27427 | SWIG_fail; | |
27428 | } | |
27429 | { | |
27430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27431 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27432 | ||
27433 | wxPyEndAllowThreads(__tstate); | |
27434 | if (PyErr_Occurred()) SWIG_fail; | |
27435 | } | |
27436 | Py_INCREF(Py_None); resultobj = Py_None; | |
27437 | return resultobj; | |
27438 | fail: | |
27439 | return NULL; | |
27440 | } | |
27441 | ||
27442 | ||
27443 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27444 | PyObject *resultobj; | |
27445 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27446 | wxTreeItemId *arg2 = 0 ; | |
27447 | PyObject * obj0 = 0 ; | |
27448 | PyObject * obj1 = 0 ; | |
27449 | char *kwnames[] = { | |
27450 | (char *) "self",(char *) "item", NULL | |
27451 | }; | |
27452 | ||
27453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
27454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27458 | SWIG_fail; | |
27459 | if (arg2 == NULL) { | |
27460 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27461 | SWIG_fail; | |
27462 | } | |
27463 | { | |
27464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27465 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27466 | ||
27467 | wxPyEndAllowThreads(__tstate); | |
27468 | if (PyErr_Occurred()) SWIG_fail; | |
27469 | } | |
27470 | Py_INCREF(Py_None); resultobj = Py_None; | |
27471 | return resultobj; | |
27472 | fail: | |
27473 | return NULL; | |
27474 | } | |
27475 | ||
27476 | ||
27477 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27478 | PyObject *resultobj; | |
27479 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27480 | wxTreeItemId *arg2 = 0 ; | |
27481 | PyObject * obj0 = 0 ; | |
27482 | PyObject * obj1 = 0 ; | |
27483 | char *kwnames[] = { | |
27484 | (char *) "self",(char *) "item", NULL | |
27485 | }; | |
27486 | ||
27487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
27488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27491 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27492 | SWIG_fail; | |
27493 | if (arg2 == NULL) { | |
27494 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27495 | SWIG_fail; | |
27496 | } | |
27497 | { | |
27498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27499 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27500 | ||
27501 | wxPyEndAllowThreads(__tstate); | |
27502 | if (PyErr_Occurred()) SWIG_fail; | |
27503 | } | |
27504 | Py_INCREF(Py_None); resultobj = Py_None; | |
27505 | return resultobj; | |
27506 | fail: | |
27507 | return NULL; | |
27508 | } | |
27509 | ||
27510 | ||
27511 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27512 | PyObject *resultobj; | |
27513 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27514 | PyObject * obj0 = 0 ; | |
27515 | char *kwnames[] = { | |
27516 | (char *) "self", NULL | |
27517 | }; | |
27518 | ||
27519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
27520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27522 | { | |
27523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27524 | (arg1)->Unselect(); | |
27525 | ||
27526 | wxPyEndAllowThreads(__tstate); | |
27527 | if (PyErr_Occurred()) SWIG_fail; | |
27528 | } | |
27529 | Py_INCREF(Py_None); resultobj = Py_None; | |
27530 | return resultobj; | |
27531 | fail: | |
27532 | return NULL; | |
27533 | } | |
27534 | ||
27535 | ||
27536 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27537 | PyObject *resultobj; | |
27538 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27539 | wxTreeItemId *arg2 = 0 ; | |
27540 | PyObject * obj0 = 0 ; | |
27541 | PyObject * obj1 = 0 ; | |
27542 | char *kwnames[] = { | |
27543 | (char *) "self",(char *) "item", NULL | |
27544 | }; | |
27545 | ||
27546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
27547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27550 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27551 | SWIG_fail; | |
27552 | if (arg2 == NULL) { | |
27553 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27554 | SWIG_fail; | |
27555 | } | |
27556 | { | |
27557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27558 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27559 | ||
27560 | wxPyEndAllowThreads(__tstate); | |
27561 | if (PyErr_Occurred()) SWIG_fail; | |
27562 | } | |
27563 | Py_INCREF(Py_None); resultobj = Py_None; | |
27564 | return resultobj; | |
27565 | fail: | |
27566 | return NULL; | |
27567 | } | |
27568 | ||
27569 | ||
27570 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27571 | PyObject *resultobj; | |
27572 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27573 | PyObject * obj0 = 0 ; | |
27574 | char *kwnames[] = { | |
27575 | (char *) "self", NULL | |
27576 | }; | |
27577 | ||
27578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
27579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27581 | { | |
27582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27583 | (arg1)->UnselectAll(); | |
27584 | ||
27585 | wxPyEndAllowThreads(__tstate); | |
27586 | if (PyErr_Occurred()) SWIG_fail; | |
27587 | } | |
27588 | Py_INCREF(Py_None); resultobj = Py_None; | |
27589 | return resultobj; | |
27590 | fail: | |
27591 | return NULL; | |
27592 | } | |
27593 | ||
27594 | ||
27595 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27596 | PyObject *resultobj; | |
27597 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27598 | wxTreeItemId *arg2 = 0 ; | |
27599 | bool arg3 = (bool) True ; | |
27600 | PyObject * obj0 = 0 ; | |
27601 | PyObject * obj1 = 0 ; | |
27602 | PyObject * obj2 = 0 ; | |
27603 | char *kwnames[] = { | |
27604 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27605 | }; | |
27606 | ||
27607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27612 | SWIG_fail; | |
27613 | if (arg2 == NULL) { | |
27614 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27615 | SWIG_fail; | |
27616 | } | |
27617 | if (obj2) { | |
27618 | arg3 = (bool) SWIG_AsBool(obj2); | |
27619 | if (PyErr_Occurred()) SWIG_fail; | |
27620 | } | |
27621 | { | |
27622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27623 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27624 | ||
27625 | wxPyEndAllowThreads(__tstate); | |
27626 | if (PyErr_Occurred()) SWIG_fail; | |
27627 | } | |
27628 | Py_INCREF(Py_None); resultobj = Py_None; | |
27629 | return resultobj; | |
27630 | fail: | |
27631 | return NULL; | |
27632 | } | |
27633 | ||
27634 | ||
27635 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27636 | PyObject *resultobj; | |
27637 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27638 | wxTreeItemId *arg2 = 0 ; | |
27639 | PyObject * obj0 = 0 ; | |
27640 | PyObject * obj1 = 0 ; | |
27641 | char *kwnames[] = { | |
27642 | (char *) "self",(char *) "item", NULL | |
27643 | }; | |
27644 | ||
27645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; | |
27646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27648 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27650 | SWIG_fail; | |
27651 | if (arg2 == NULL) { | |
27652 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27653 | SWIG_fail; | |
27654 | } | |
27655 | { | |
27656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27657 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); | |
27658 | ||
27659 | wxPyEndAllowThreads(__tstate); | |
27660 | if (PyErr_Occurred()) SWIG_fail; | |
27661 | } | |
27662 | Py_INCREF(Py_None); resultobj = Py_None; | |
27663 | return resultobj; | |
27664 | fail: | |
27665 | return NULL; | |
27666 | } | |
27667 | ||
27668 | ||
27669 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27670 | PyObject *resultobj; | |
27671 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27672 | wxTreeItemId *arg2 = 0 ; | |
27673 | PyObject * obj0 = 0 ; | |
27674 | PyObject * obj1 = 0 ; | |
27675 | char *kwnames[] = { | |
27676 | (char *) "self",(char *) "item", NULL | |
27677 | }; | |
27678 | ||
27679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
27680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27684 | SWIG_fail; | |
27685 | if (arg2 == NULL) { | |
27686 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27687 | SWIG_fail; | |
27688 | } | |
27689 | { | |
27690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27691 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27692 | ||
27693 | wxPyEndAllowThreads(__tstate); | |
27694 | if (PyErr_Occurred()) SWIG_fail; | |
27695 | } | |
27696 | Py_INCREF(Py_None); resultobj = Py_None; | |
27697 | return resultobj; | |
27698 | fail: | |
27699 | return NULL; | |
27700 | } | |
27701 | ||
27702 | ||
27703 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27704 | PyObject *resultobj; | |
27705 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27706 | wxTreeItemId *arg2 = 0 ; | |
27707 | PyObject * obj0 = 0 ; | |
27708 | PyObject * obj1 = 0 ; | |
27709 | char *kwnames[] = { | |
27710 | (char *) "self",(char *) "item", NULL | |
27711 | }; | |
27712 | ||
27713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
27714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27716 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27717 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27718 | SWIG_fail; | |
27719 | if (arg2 == NULL) { | |
27720 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27721 | SWIG_fail; | |
27722 | } | |
27723 | { | |
27724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27725 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27726 | ||
27727 | wxPyEndAllowThreads(__tstate); | |
27728 | if (PyErr_Occurred()) SWIG_fail; | |
27729 | } | |
27730 | Py_INCREF(Py_None); resultobj = Py_None; | |
27731 | return resultobj; | |
27732 | fail: | |
27733 | return NULL; | |
27734 | } | |
27735 | ||
27736 | ||
27737 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27738 | PyObject *resultobj; | |
27739 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27740 | wxTreeItemId *arg2 = 0 ; | |
27741 | PyObject * obj0 = 0 ; | |
27742 | PyObject * obj1 = 0 ; | |
27743 | char *kwnames[] = { | |
27744 | (char *) "self",(char *) "item", NULL | |
27745 | }; | |
27746 | ||
27747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
27748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27750 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27751 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27752 | SWIG_fail; | |
27753 | if (arg2 == NULL) { | |
27754 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27755 | SWIG_fail; | |
27756 | } | |
27757 | { | |
27758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27759 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27760 | ||
27761 | wxPyEndAllowThreads(__tstate); | |
27762 | if (PyErr_Occurred()) SWIG_fail; | |
27763 | } | |
27764 | Py_INCREF(Py_None); resultobj = Py_None; | |
27765 | return resultobj; | |
27766 | fail: | |
27767 | return NULL; | |
27768 | } | |
27769 | ||
27770 | ||
27771 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27772 | PyObject *resultobj; | |
27773 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27774 | wxTextCtrl *result; | |
27775 | PyObject * obj0 = 0 ; | |
27776 | char *kwnames[] = { | |
27777 | (char *) "self", NULL | |
27778 | }; | |
27779 | ||
27780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
27781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27783 | { | |
27784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27785 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27786 | ||
27787 | wxPyEndAllowThreads(__tstate); | |
27788 | if (PyErr_Occurred()) SWIG_fail; | |
27789 | } | |
27790 | { | |
412d302d | 27791 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
27792 | } |
27793 | return resultobj; | |
27794 | fail: | |
27795 | return NULL; | |
27796 | } | |
27797 | ||
27798 | ||
27799 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27800 | PyObject *resultobj; | |
27801 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27802 | wxTreeItemId *arg2 = 0 ; | |
27803 | bool arg3 = (bool) False ; | |
27804 | PyObject * obj0 = 0 ; | |
27805 | PyObject * obj1 = 0 ; | |
27806 | PyObject * obj2 = 0 ; | |
27807 | char *kwnames[] = { | |
27808 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
27809 | }; | |
27810 | ||
27811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27814 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27815 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27816 | SWIG_fail; | |
27817 | if (arg2 == NULL) { | |
27818 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27819 | SWIG_fail; | |
27820 | } | |
27821 | if (obj2) { | |
27822 | arg3 = (bool) SWIG_AsBool(obj2); | |
27823 | if (PyErr_Occurred()) SWIG_fail; | |
27824 | } | |
27825 | { | |
27826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27827 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
27828 | ||
27829 | wxPyEndAllowThreads(__tstate); | |
27830 | if (PyErr_Occurred()) SWIG_fail; | |
27831 | } | |
27832 | Py_INCREF(Py_None); resultobj = Py_None; | |
27833 | return resultobj; | |
27834 | fail: | |
27835 | return NULL; | |
27836 | } | |
27837 | ||
27838 | ||
27839 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27840 | PyObject *resultobj; | |
27841 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27842 | wxTreeItemId *arg2 = 0 ; | |
27843 | PyObject * obj0 = 0 ; | |
27844 | PyObject * obj1 = 0 ; | |
27845 | char *kwnames[] = { | |
27846 | (char *) "self",(char *) "item", NULL | |
27847 | }; | |
27848 | ||
27849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
27850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27854 | SWIG_fail; | |
27855 | if (arg2 == NULL) { | |
27856 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27857 | SWIG_fail; | |
27858 | } | |
27859 | { | |
27860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27861 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27862 | ||
27863 | wxPyEndAllowThreads(__tstate); | |
27864 | if (PyErr_Occurred()) SWIG_fail; | |
27865 | } | |
27866 | Py_INCREF(Py_None); resultobj = Py_None; | |
27867 | return resultobj; | |
27868 | fail: | |
27869 | return NULL; | |
27870 | } | |
27871 | ||
27872 | ||
27873 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27874 | PyObject *resultobj; | |
27875 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27876 | wxPoint *arg2 = 0 ; | |
27877 | int *arg3 = 0 ; | |
27878 | wxTreeItemId result; | |
27879 | wxPoint temp2 ; | |
27880 | int temp3 ; | |
27881 | PyObject * obj0 = 0 ; | |
27882 | PyObject * obj1 = 0 ; | |
27883 | char *kwnames[] = { | |
27884 | (char *) "self",(char *) "point", NULL | |
27885 | }; | |
27886 | ||
27887 | arg3 = &temp3; | |
27888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
27889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27891 | { | |
27892 | arg2 = &temp2; | |
27893 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27894 | } | |
27895 | { | |
27896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27897 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27898 | ||
27899 | wxPyEndAllowThreads(__tstate); | |
27900 | if (PyErr_Occurred()) SWIG_fail; | |
27901 | } | |
27902 | { | |
27903 | wxTreeItemId * resultptr; | |
27904 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
27905 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
27906 | } | |
27907 | { | |
27908 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27909 | resultobj = t_output_helper(resultobj,o); | |
27910 | } | |
27911 | return resultobj; | |
27912 | fail: | |
27913 | return NULL; | |
27914 | } | |
27915 | ||
27916 | ||
27917 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27918 | PyObject *resultobj; | |
27919 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27920 | wxTreeItemId *arg2 = 0 ; | |
27921 | bool arg3 = (bool) False ; | |
27922 | PyObject *result; | |
27923 | PyObject * obj0 = 0 ; | |
27924 | PyObject * obj1 = 0 ; | |
27925 | PyObject * obj2 = 0 ; | |
27926 | char *kwnames[] = { | |
27927 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27928 | }; | |
27929 | ||
27930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27933 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27934 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27935 | SWIG_fail; | |
27936 | if (arg2 == NULL) { | |
27937 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27938 | SWIG_fail; | |
27939 | } | |
27940 | if (obj2) { | |
27941 | arg3 = (bool) SWIG_AsBool(obj2); | |
27942 | if (PyErr_Occurred()) SWIG_fail; | |
27943 | } | |
27944 | { | |
27945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27946 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27947 | ||
27948 | wxPyEndAllowThreads(__tstate); | |
27949 | if (PyErr_Occurred()) SWIG_fail; | |
27950 | } | |
27951 | resultobj = result; | |
27952 | return resultobj; | |
27953 | fail: | |
27954 | return NULL; | |
27955 | } | |
27956 | ||
27957 | ||
110da5b0 RD |
27958 | static PyObject *_wrap_TreeCtrl_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { |
27959 | PyObject *resultobj; | |
27960 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27961 | wxTreeItemId *arg2 = 0 ; | |
27962 | int arg3 ; | |
27963 | PyObject * obj0 = 0 ; | |
27964 | PyObject * obj1 = 0 ; | |
27965 | PyObject * obj2 = 0 ; | |
27966 | char *kwnames[] = { | |
27967 | (char *) "self",(char *) "node",(char *) "state", NULL | |
27968 | }; | |
27969 | ||
27970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetState",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
27971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
27972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27973 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27975 | SWIG_fail; | |
27976 | if (arg2 == NULL) { | |
27977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
27978 | SWIG_fail; | |
27979 | } | |
27980 | arg3 = (int) SWIG_AsInt(obj2); | |
27981 | if (PyErr_Occurred()) SWIG_fail; | |
27982 | { | |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27984 | (arg1)->SetState((wxTreeItemId const &)*arg2,arg3); | |
27985 | ||
27986 | wxPyEndAllowThreads(__tstate); | |
27987 | if (PyErr_Occurred()) SWIG_fail; | |
27988 | } | |
27989 | Py_INCREF(Py_None); resultobj = Py_None; | |
27990 | return resultobj; | |
27991 | fail: | |
27992 | return NULL; | |
27993 | } | |
27994 | ||
27995 | ||
27996 | static PyObject *_wrap_TreeCtrl_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27997 | PyObject *resultobj; | |
27998 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27999 | wxTreeItemId *arg2 = 0 ; | |
28000 | int result; | |
28001 | PyObject * obj0 = 0 ; | |
28002 | PyObject * obj1 = 0 ; | |
28003 | char *kwnames[] = { | |
28004 | (char *) "self",(char *) "node", NULL | |
28005 | }; | |
28006 | ||
28007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetState",kwnames,&obj0,&obj1)) goto fail; | |
28008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
28009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28010 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
28011 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28012 | SWIG_fail; | |
28013 | if (arg2 == NULL) { | |
28014 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
28015 | SWIG_fail; | |
28016 | } | |
28017 | { | |
28018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28019 | result = (int)(arg1)->GetState((wxTreeItemId const &)*arg2); | |
28020 | ||
28021 | wxPyEndAllowThreads(__tstate); | |
28022 | if (PyErr_Occurred()) SWIG_fail; | |
28023 | } | |
28024 | resultobj = SWIG_FromInt((int)result); | |
28025 | return resultobj; | |
28026 | fail: | |
28027 | return NULL; | |
28028 | } | |
28029 | ||
28030 | ||
d55e5bfc RD |
28031 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
28032 | PyObject *resultobj; | |
28033 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
28034 | wxVisualAttributes result; | |
28035 | PyObject * obj0 = 0 ; | |
28036 | char *kwnames[] = { | |
28037 | (char *) "variant", NULL | |
28038 | }; | |
28039 | ||
28040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
28041 | if (obj0) { | |
28042 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
28043 | if (PyErr_Occurred()) SWIG_fail; | |
28044 | } | |
28045 | { | |
19272049 | 28046 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28048 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
28049 | ||
28050 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28051 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28052 | } |
28053 | { | |
28054 | wxVisualAttributes * resultptr; | |
28055 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
28056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
28057 | } | |
28058 | return resultobj; | |
28059 | fail: | |
28060 | return NULL; | |
28061 | } | |
28062 | ||
28063 | ||
28064 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
28065 | PyObject *obj; | |
28066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28067 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
28068 | Py_INCREF(obj); | |
28069 | return Py_BuildValue((char *)""); | |
28070 | } | |
28071 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { | |
28072 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
28073 | return 1; | |
28074 | } | |
28075 | ||
28076 | ||
28077 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
28078 | PyObject *pyobj; | |
28079 | ||
28080 | { | |
28081 | #if wxUSE_UNICODE | |
28082 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28083 | #else | |
28084 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
28085 | #endif | |
28086 | } | |
28087 | return pyobj; | |
28088 | } | |
28089 | ||
28090 | ||
28091 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28092 | PyObject *resultobj; | |
28093 | wxWindow *arg1 = (wxWindow *) 0 ; | |
28094 | int arg2 = (int) (int)-1 ; | |
28095 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28096 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
28097 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
28098 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28099 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28100 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28101 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28102 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
28103 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28104 | int arg8 = (int) 0 ; | |
28105 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; | |
28106 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
28107 | wxGenericDirCtrl *result; | |
28108 | bool temp3 = False ; | |
28109 | wxPoint temp4 ; | |
28110 | wxSize temp5 ; | |
28111 | bool temp7 = False ; | |
28112 | bool temp9 = False ; | |
28113 | PyObject * obj0 = 0 ; | |
28114 | PyObject * obj1 = 0 ; | |
28115 | PyObject * obj2 = 0 ; | |
28116 | PyObject * obj3 = 0 ; | |
28117 | PyObject * obj4 = 0 ; | |
28118 | PyObject * obj5 = 0 ; | |
28119 | PyObject * obj6 = 0 ; | |
28120 | PyObject * obj7 = 0 ; | |
28121 | PyObject * obj8 = 0 ; | |
28122 | char *kwnames[] = { | |
28123 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28124 | }; | |
28125 | ||
28126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; | |
28127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
28128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28129 | if (obj1) { | |
28130 | arg2 = (int const) SWIG_AsInt(obj1); | |
28131 | if (PyErr_Occurred()) SWIG_fail; | |
28132 | } | |
28133 | if (obj2) { | |
28134 | { | |
28135 | arg3 = wxString_in_helper(obj2); | |
28136 | if (arg3 == NULL) SWIG_fail; | |
28137 | temp3 = True; | |
28138 | } | |
28139 | } | |
28140 | if (obj3) { | |
28141 | { | |
28142 | arg4 = &temp4; | |
28143 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28144 | } | |
28145 | } | |
28146 | if (obj4) { | |
28147 | { | |
28148 | arg5 = &temp5; | |
28149 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28150 | } | |
28151 | } | |
28152 | if (obj5) { | |
28153 | arg6 = (long) SWIG_AsLong(obj5); | |
28154 | if (PyErr_Occurred()) SWIG_fail; | |
28155 | } | |
28156 | if (obj6) { | |
28157 | { | |
28158 | arg7 = wxString_in_helper(obj6); | |
28159 | if (arg7 == NULL) SWIG_fail; | |
28160 | temp7 = True; | |
28161 | } | |
28162 | } | |
28163 | if (obj7) { | |
28164 | arg8 = (int) SWIG_AsInt(obj7); | |
28165 | if (PyErr_Occurred()) SWIG_fail; | |
28166 | } | |
28167 | if (obj8) { | |
28168 | { | |
28169 | arg9 = wxString_in_helper(obj8); | |
28170 | if (arg9 == NULL) SWIG_fail; | |
28171 | temp9 = True; | |
28172 | } | |
28173 | } | |
28174 | { | |
0439c23b | 28175 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28177 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
28178 | ||
28179 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28180 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28181 | } |
28182 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28183 | { | |
28184 | if (temp3) | |
28185 | delete arg3; | |
28186 | } | |
28187 | { | |
28188 | if (temp7) | |
28189 | delete arg7; | |
28190 | } | |
28191 | { | |
28192 | if (temp9) | |
28193 | delete arg9; | |
28194 | } | |
28195 | return resultobj; | |
28196 | fail: | |
28197 | { | |
28198 | if (temp3) | |
28199 | delete arg3; | |
28200 | } | |
28201 | { | |
28202 | if (temp7) | |
28203 | delete arg7; | |
28204 | } | |
28205 | { | |
28206 | if (temp9) | |
28207 | delete arg9; | |
28208 | } | |
28209 | return NULL; | |
28210 | } | |
28211 | ||
28212 | ||
28213 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28214 | PyObject *resultobj; | |
28215 | wxGenericDirCtrl *result; | |
28216 | char *kwnames[] = { | |
28217 | NULL | |
28218 | }; | |
28219 | ||
28220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
28221 | { | |
0439c23b | 28222 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
28223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28224 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
28225 | ||
28226 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28227 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
28228 | } |
28229 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); | |
28230 | return resultobj; | |
28231 | fail: | |
28232 | return NULL; | |
28233 | } | |
28234 | ||
28235 | ||
28236 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28237 | PyObject *resultobj; | |
28238 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28239 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28240 | int arg3 = (int) (int)-1 ; | |
28241 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; | |
28242 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28243 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28244 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28245 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28246 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28247 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28248 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28249 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28250 | int arg9 = (int) 0 ; | |
28251 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; | |
28252 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
28253 | bool result; | |
28254 | bool temp4 = False ; | |
28255 | wxPoint temp5 ; | |
28256 | wxSize temp6 ; | |
28257 | bool temp8 = False ; | |
28258 | bool temp10 = False ; | |
28259 | PyObject * obj0 = 0 ; | |
28260 | PyObject * obj1 = 0 ; | |
28261 | PyObject * obj2 = 0 ; | |
28262 | PyObject * obj3 = 0 ; | |
28263 | PyObject * obj4 = 0 ; | |
28264 | PyObject * obj5 = 0 ; | |
28265 | PyObject * obj6 = 0 ; | |
28266 | PyObject * obj7 = 0 ; | |
28267 | PyObject * obj8 = 0 ; | |
28268 | PyObject * obj9 = 0 ; | |
28269 | char *kwnames[] = { | |
28270 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28271 | }; | |
28272 | ||
28273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; | |
28274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28278 | if (obj2) { | |
28279 | arg3 = (int const) SWIG_AsInt(obj2); | |
28280 | if (PyErr_Occurred()) SWIG_fail; | |
28281 | } | |
28282 | if (obj3) { | |
28283 | { | |
28284 | arg4 = wxString_in_helper(obj3); | |
28285 | if (arg4 == NULL) SWIG_fail; | |
28286 | temp4 = True; | |
28287 | } | |
28288 | } | |
28289 | if (obj4) { | |
28290 | { | |
28291 | arg5 = &temp5; | |
28292 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28293 | } | |
28294 | } | |
28295 | if (obj5) { | |
28296 | { | |
28297 | arg6 = &temp6; | |
28298 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28299 | } | |
28300 | } | |
28301 | if (obj6) { | |
28302 | arg7 = (long) SWIG_AsLong(obj6); | |
28303 | if (PyErr_Occurred()) SWIG_fail; | |
28304 | } | |
28305 | if (obj7) { | |
28306 | { | |
28307 | arg8 = wxString_in_helper(obj7); | |
28308 | if (arg8 == NULL) SWIG_fail; | |
28309 | temp8 = True; | |
28310 | } | |
28311 | } | |
28312 | if (obj8) { | |
28313 | arg9 = (int) SWIG_AsInt(obj8); | |
28314 | if (PyErr_Occurred()) SWIG_fail; | |
28315 | } | |
28316 | if (obj9) { | |
28317 | { | |
28318 | arg10 = wxString_in_helper(obj9); | |
28319 | if (arg10 == NULL) SWIG_fail; | |
28320 | temp10 = True; | |
28321 | } | |
28322 | } | |
28323 | { | |
28324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28325 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28326 | ||
28327 | wxPyEndAllowThreads(__tstate); | |
28328 | if (PyErr_Occurred()) SWIG_fail; | |
28329 | } | |
28330 | { | |
28331 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28332 | } | |
28333 | { | |
28334 | if (temp4) | |
28335 | delete arg4; | |
28336 | } | |
28337 | { | |
28338 | if (temp8) | |
28339 | delete arg8; | |
28340 | } | |
28341 | { | |
28342 | if (temp10) | |
28343 | delete arg10; | |
28344 | } | |
28345 | return resultobj; | |
28346 | fail: | |
28347 | { | |
28348 | if (temp4) | |
28349 | delete arg4; | |
28350 | } | |
28351 | { | |
28352 | if (temp8) | |
28353 | delete arg8; | |
28354 | } | |
28355 | { | |
28356 | if (temp10) | |
28357 | delete arg10; | |
28358 | } | |
28359 | return NULL; | |
28360 | } | |
28361 | ||
28362 | ||
28363 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28364 | PyObject *resultobj; | |
28365 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28366 | wxString *arg2 = 0 ; | |
28367 | bool result; | |
28368 | bool temp2 = False ; | |
28369 | PyObject * obj0 = 0 ; | |
28370 | PyObject * obj1 = 0 ; | |
28371 | char *kwnames[] = { | |
28372 | (char *) "self",(char *) "path", NULL | |
28373 | }; | |
28374 | ||
28375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
28376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28378 | { | |
28379 | arg2 = wxString_in_helper(obj1); | |
28380 | if (arg2 == NULL) SWIG_fail; | |
28381 | temp2 = True; | |
28382 | } | |
28383 | { | |
28384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28385 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28386 | ||
28387 | wxPyEndAllowThreads(__tstate); | |
28388 | if (PyErr_Occurred()) SWIG_fail; | |
28389 | } | |
28390 | { | |
28391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28392 | } | |
28393 | { | |
28394 | if (temp2) | |
28395 | delete arg2; | |
28396 | } | |
28397 | return resultobj; | |
28398 | fail: | |
28399 | { | |
28400 | if (temp2) | |
28401 | delete arg2; | |
28402 | } | |
28403 | return NULL; | |
28404 | } | |
28405 | ||
28406 | ||
28407 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28408 | PyObject *resultobj; | |
28409 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28410 | wxString result; | |
28411 | PyObject * obj0 = 0 ; | |
28412 | char *kwnames[] = { | |
28413 | (char *) "self", NULL | |
28414 | }; | |
28415 | ||
28416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
28417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28419 | { | |
28420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28421 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28422 | ||
28423 | wxPyEndAllowThreads(__tstate); | |
28424 | if (PyErr_Occurred()) SWIG_fail; | |
28425 | } | |
28426 | { | |
28427 | #if wxUSE_UNICODE | |
28428 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28429 | #else | |
28430 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28431 | #endif | |
28432 | } | |
28433 | return resultobj; | |
28434 | fail: | |
28435 | return NULL; | |
28436 | } | |
28437 | ||
28438 | ||
28439 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28440 | PyObject *resultobj; | |
28441 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28442 | wxString *arg2 = 0 ; | |
28443 | bool temp2 = False ; | |
28444 | PyObject * obj0 = 0 ; | |
28445 | PyObject * obj1 = 0 ; | |
28446 | char *kwnames[] = { | |
28447 | (char *) "self",(char *) "path", NULL | |
28448 | }; | |
28449 | ||
28450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
28451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28453 | { | |
28454 | arg2 = wxString_in_helper(obj1); | |
28455 | if (arg2 == NULL) SWIG_fail; | |
28456 | temp2 = True; | |
28457 | } | |
28458 | { | |
28459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28460 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28461 | ||
28462 | wxPyEndAllowThreads(__tstate); | |
28463 | if (PyErr_Occurred()) SWIG_fail; | |
28464 | } | |
28465 | Py_INCREF(Py_None); resultobj = Py_None; | |
28466 | { | |
28467 | if (temp2) | |
28468 | delete arg2; | |
28469 | } | |
28470 | return resultobj; | |
28471 | fail: | |
28472 | { | |
28473 | if (temp2) | |
28474 | delete arg2; | |
28475 | } | |
28476 | return NULL; | |
28477 | } | |
28478 | ||
28479 | ||
28480 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28481 | PyObject *resultobj; | |
28482 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28483 | wxString result; | |
28484 | PyObject * obj0 = 0 ; | |
28485 | char *kwnames[] = { | |
28486 | (char *) "self", NULL | |
28487 | }; | |
28488 | ||
28489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
28490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28492 | { | |
28493 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28494 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28495 | ||
28496 | wxPyEndAllowThreads(__tstate); | |
28497 | if (PyErr_Occurred()) SWIG_fail; | |
28498 | } | |
28499 | { | |
28500 | #if wxUSE_UNICODE | |
28501 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28502 | #else | |
28503 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28504 | #endif | |
28505 | } | |
28506 | return resultobj; | |
28507 | fail: | |
28508 | return NULL; | |
28509 | } | |
28510 | ||
28511 | ||
28512 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28513 | PyObject *resultobj; | |
28514 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28515 | wxString result; | |
28516 | PyObject * obj0 = 0 ; | |
28517 | char *kwnames[] = { | |
28518 | (char *) "self", NULL | |
28519 | }; | |
28520 | ||
28521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
28522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28524 | { | |
28525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28526 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28527 | ||
28528 | wxPyEndAllowThreads(__tstate); | |
28529 | if (PyErr_Occurred()) SWIG_fail; | |
28530 | } | |
28531 | { | |
28532 | #if wxUSE_UNICODE | |
28533 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28534 | #else | |
28535 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28536 | #endif | |
28537 | } | |
28538 | return resultobj; | |
28539 | fail: | |
28540 | return NULL; | |
28541 | } | |
28542 | ||
28543 | ||
28544 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28545 | PyObject *resultobj; | |
28546 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28547 | wxString *arg2 = 0 ; | |
28548 | bool temp2 = False ; | |
28549 | PyObject * obj0 = 0 ; | |
28550 | PyObject * obj1 = 0 ; | |
28551 | char *kwnames[] = { | |
28552 | (char *) "self",(char *) "path", NULL | |
28553 | }; | |
28554 | ||
28555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
28556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28558 | { | |
28559 | arg2 = wxString_in_helper(obj1); | |
28560 | if (arg2 == NULL) SWIG_fail; | |
28561 | temp2 = True; | |
28562 | } | |
28563 | { | |
28564 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28565 | (arg1)->SetPath((wxString const &)*arg2); | |
28566 | ||
28567 | wxPyEndAllowThreads(__tstate); | |
28568 | if (PyErr_Occurred()) SWIG_fail; | |
28569 | } | |
28570 | Py_INCREF(Py_None); resultobj = Py_None; | |
28571 | { | |
28572 | if (temp2) | |
28573 | delete arg2; | |
28574 | } | |
28575 | return resultobj; | |
28576 | fail: | |
28577 | { | |
28578 | if (temp2) | |
28579 | delete arg2; | |
28580 | } | |
28581 | return NULL; | |
28582 | } | |
28583 | ||
28584 | ||
28585 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28586 | PyObject *resultobj; | |
28587 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28588 | bool arg2 ; | |
28589 | PyObject * obj0 = 0 ; | |
28590 | PyObject * obj1 = 0 ; | |
28591 | char *kwnames[] = { | |
28592 | (char *) "self",(char *) "show", NULL | |
28593 | }; | |
28594 | ||
28595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
28596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28598 | arg2 = (bool) SWIG_AsBool(obj1); | |
28599 | if (PyErr_Occurred()) SWIG_fail; | |
28600 | { | |
28601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28602 | (arg1)->ShowHidden(arg2); | |
28603 | ||
28604 | wxPyEndAllowThreads(__tstate); | |
28605 | if (PyErr_Occurred()) SWIG_fail; | |
28606 | } | |
28607 | Py_INCREF(Py_None); resultobj = Py_None; | |
28608 | return resultobj; | |
28609 | fail: | |
28610 | return NULL; | |
28611 | } | |
28612 | ||
28613 | ||
28614 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28615 | PyObject *resultobj; | |
28616 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28617 | bool result; | |
28618 | PyObject * obj0 = 0 ; | |
28619 | char *kwnames[] = { | |
28620 | (char *) "self", NULL | |
28621 | }; | |
28622 | ||
28623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
28624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28626 | { | |
28627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28628 | result = (bool)(arg1)->GetShowHidden(); | |
28629 | ||
28630 | wxPyEndAllowThreads(__tstate); | |
28631 | if (PyErr_Occurred()) SWIG_fail; | |
28632 | } | |
28633 | { | |
28634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28635 | } | |
28636 | return resultobj; | |
28637 | fail: | |
28638 | return NULL; | |
28639 | } | |
28640 | ||
28641 | ||
28642 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28643 | PyObject *resultobj; | |
28644 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28645 | wxString result; | |
28646 | PyObject * obj0 = 0 ; | |
28647 | char *kwnames[] = { | |
28648 | (char *) "self", NULL | |
28649 | }; | |
28650 | ||
28651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
28652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28654 | { | |
28655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28656 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28657 | ||
28658 | wxPyEndAllowThreads(__tstate); | |
28659 | if (PyErr_Occurred()) SWIG_fail; | |
28660 | } | |
28661 | { | |
28662 | #if wxUSE_UNICODE | |
28663 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28664 | #else | |
28665 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28666 | #endif | |
28667 | } | |
28668 | return resultobj; | |
28669 | fail: | |
28670 | return NULL; | |
28671 | } | |
28672 | ||
28673 | ||
28674 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28675 | PyObject *resultobj; | |
28676 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28677 | wxString *arg2 = 0 ; | |
28678 | bool temp2 = False ; | |
28679 | PyObject * obj0 = 0 ; | |
28680 | PyObject * obj1 = 0 ; | |
28681 | char *kwnames[] = { | |
28682 | (char *) "self",(char *) "filter", NULL | |
28683 | }; | |
28684 | ||
28685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
28686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28688 | { | |
28689 | arg2 = wxString_in_helper(obj1); | |
28690 | if (arg2 == NULL) SWIG_fail; | |
28691 | temp2 = True; | |
28692 | } | |
28693 | { | |
28694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28695 | (arg1)->SetFilter((wxString const &)*arg2); | |
28696 | ||
28697 | wxPyEndAllowThreads(__tstate); | |
28698 | if (PyErr_Occurred()) SWIG_fail; | |
28699 | } | |
28700 | Py_INCREF(Py_None); resultobj = Py_None; | |
28701 | { | |
28702 | if (temp2) | |
28703 | delete arg2; | |
28704 | } | |
28705 | return resultobj; | |
28706 | fail: | |
28707 | { | |
28708 | if (temp2) | |
28709 | delete arg2; | |
28710 | } | |
28711 | return NULL; | |
28712 | } | |
28713 | ||
28714 | ||
28715 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28716 | PyObject *resultobj; | |
28717 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28718 | int result; | |
28719 | PyObject * obj0 = 0 ; | |
28720 | char *kwnames[] = { | |
28721 | (char *) "self", NULL | |
28722 | }; | |
28723 | ||
28724 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
28725 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28727 | { | |
28728 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28729 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28730 | ||
28731 | wxPyEndAllowThreads(__tstate); | |
28732 | if (PyErr_Occurred()) SWIG_fail; | |
28733 | } | |
28734 | resultobj = SWIG_FromInt((int)result); | |
28735 | return resultobj; | |
28736 | fail: | |
28737 | return NULL; | |
28738 | } | |
28739 | ||
28740 | ||
28741 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28742 | PyObject *resultobj; | |
28743 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28744 | int arg2 ; | |
28745 | PyObject * obj0 = 0 ; | |
28746 | PyObject * obj1 = 0 ; | |
28747 | char *kwnames[] = { | |
28748 | (char *) "self",(char *) "n", NULL | |
28749 | }; | |
28750 | ||
28751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; | |
28752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28754 | arg2 = (int) SWIG_AsInt(obj1); | |
28755 | if (PyErr_Occurred()) SWIG_fail; | |
28756 | { | |
28757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28758 | (arg1)->SetFilterIndex(arg2); | |
28759 | ||
28760 | wxPyEndAllowThreads(__tstate); | |
28761 | if (PyErr_Occurred()) SWIG_fail; | |
28762 | } | |
28763 | Py_INCREF(Py_None); resultobj = Py_None; | |
28764 | return resultobj; | |
28765 | fail: | |
28766 | return NULL; | |
28767 | } | |
28768 | ||
28769 | ||
28770 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28771 | PyObject *resultobj; | |
28772 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28773 | wxTreeItemId result; | |
28774 | PyObject * obj0 = 0 ; | |
28775 | char *kwnames[] = { | |
28776 | (char *) "self", NULL | |
28777 | }; | |
28778 | ||
28779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
28780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28782 | { | |
28783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28784 | result = (arg1)->GetRootId(); | |
28785 | ||
28786 | wxPyEndAllowThreads(__tstate); | |
28787 | if (PyErr_Occurred()) SWIG_fail; | |
28788 | } | |
28789 | { | |
28790 | wxTreeItemId * resultptr; | |
28791 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28792 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28793 | } | |
28794 | return resultobj; | |
28795 | fail: | |
28796 | return NULL; | |
28797 | } | |
28798 | ||
28799 | ||
28800 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28801 | PyObject *resultobj; | |
28802 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28803 | wxPyTreeCtrl *result; | |
28804 | PyObject * obj0 = 0 ; | |
28805 | char *kwnames[] = { | |
28806 | (char *) "self", NULL | |
28807 | }; | |
28808 | ||
28809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
28810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28812 | { | |
28813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28814 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); | |
28815 | ||
28816 | wxPyEndAllowThreads(__tstate); | |
28817 | if (PyErr_Occurred()) SWIG_fail; | |
28818 | } | |
28819 | { | |
412d302d | 28820 | resultobj = wxPyMake_wxObject(result, 0); |
d55e5bfc RD |
28821 | } |
28822 | return resultobj; | |
28823 | fail: | |
28824 | return NULL; | |
28825 | } | |
28826 | ||
28827 | ||
28828 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28829 | PyObject *resultobj; | |
28830 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28831 | wxDirFilterListCtrl *result; | |
28832 | PyObject * obj0 = 0 ; | |
28833 | char *kwnames[] = { | |
28834 | (char *) "self", NULL | |
28835 | }; | |
28836 | ||
28837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
28838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28840 | { | |
28841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28842 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28843 | ||
28844 | wxPyEndAllowThreads(__tstate); | |
28845 | if (PyErr_Occurred()) SWIG_fail; | |
28846 | } | |
28847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); | |
28848 | return resultobj; | |
28849 | fail: | |
28850 | return NULL; | |
28851 | } | |
28852 | ||
28853 | ||
28854 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28855 | PyObject *resultobj; | |
28856 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28857 | wxTreeItemId arg2 ; | |
28858 | wxString *arg3 = 0 ; | |
28859 | bool *arg4 = 0 ; | |
28860 | wxTreeItemId result; | |
28861 | wxTreeItemId *argp2 ; | |
28862 | bool temp3 = False ; | |
28863 | bool temp4 ; | |
28864 | PyObject * obj0 = 0 ; | |
28865 | PyObject * obj1 = 0 ; | |
28866 | PyObject * obj2 = 0 ; | |
28867 | char *kwnames[] = { | |
28868 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28869 | }; | |
28870 | ||
28871 | arg4 = &temp4; | |
28872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
28873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28875 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28876 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28877 | arg2 = *argp2; | |
28878 | { | |
28879 | arg3 = wxString_in_helper(obj2); | |
28880 | if (arg3 == NULL) SWIG_fail; | |
28881 | temp3 = True; | |
28882 | } | |
28883 | { | |
28884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28885 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28886 | ||
28887 | wxPyEndAllowThreads(__tstate); | |
28888 | if (PyErr_Occurred()) SWIG_fail; | |
28889 | } | |
28890 | { | |
28891 | wxTreeItemId * resultptr; | |
28892 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
28893 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); | |
28894 | } | |
28895 | { | |
28896 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28897 | resultobj = t_output_helper(resultobj,o); | |
28898 | } | |
28899 | { | |
28900 | if (temp3) | |
28901 | delete arg3; | |
28902 | } | |
28903 | return resultobj; | |
28904 | fail: | |
28905 | { | |
28906 | if (temp3) | |
28907 | delete arg3; | |
28908 | } | |
28909 | return NULL; | |
28910 | } | |
28911 | ||
28912 | ||
28913 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28914 | PyObject *resultobj; | |
28915 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28916 | PyObject * obj0 = 0 ; | |
28917 | char *kwnames[] = { | |
28918 | (char *) "self", NULL | |
28919 | }; | |
28920 | ||
28921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
28922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28924 | { | |
28925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28926 | (arg1)->DoResize(); | |
28927 | ||
28928 | wxPyEndAllowThreads(__tstate); | |
28929 | if (PyErr_Occurred()) SWIG_fail; | |
28930 | } | |
28931 | Py_INCREF(Py_None); resultobj = Py_None; | |
28932 | return resultobj; | |
28933 | fail: | |
28934 | return NULL; | |
28935 | } | |
28936 | ||
28937 | ||
28938 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28939 | PyObject *resultobj; | |
28940 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28941 | PyObject * obj0 = 0 ; | |
28942 | char *kwnames[] = { | |
28943 | (char *) "self", NULL | |
28944 | }; | |
28945 | ||
28946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
28947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28949 | { | |
28950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28951 | (arg1)->ReCreateTree(); | |
28952 | ||
28953 | wxPyEndAllowThreads(__tstate); | |
28954 | if (PyErr_Occurred()) SWIG_fail; | |
28955 | } | |
28956 | Py_INCREF(Py_None); resultobj = Py_None; | |
28957 | return resultobj; | |
28958 | fail: | |
28959 | return NULL; | |
28960 | } | |
28961 | ||
28962 | ||
28963 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28964 | PyObject *obj; | |
28965 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28966 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28967 | Py_INCREF(obj); | |
28968 | return Py_BuildValue((char *)""); | |
28969 | } | |
28970 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28971 | PyObject *resultobj; | |
28972 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28973 | int arg2 = (int) (int)-1 ; | |
28974 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
28975 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28976 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28977 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28978 | long arg5 = (long) 0 ; | |
28979 | wxDirFilterListCtrl *result; | |
28980 | wxPoint temp3 ; | |
28981 | wxSize temp4 ; | |
28982 | PyObject * obj0 = 0 ; | |
28983 | PyObject * obj1 = 0 ; | |
28984 | PyObject * obj2 = 0 ; | |
28985 | PyObject * obj3 = 0 ; | |
28986 | PyObject * obj4 = 0 ; | |
28987 | char *kwnames[] = { | |
28988 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28989 | }; | |
28990 | ||
28991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
28992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, | |
28993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28994 | if (obj1) { | |
28995 | arg2 = (int const) SWIG_AsInt(obj1); | |
28996 | if (PyErr_Occurred()) SWIG_fail; | |
28997 | } | |
28998 | if (obj2) { | |
28999 | { | |
29000 | arg3 = &temp3; | |
29001 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29002 | } | |
29003 | } | |
29004 | if (obj3) { | |
29005 | { | |
29006 | arg4 = &temp4; | |
29007 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29008 | } | |
29009 | } | |
29010 | if (obj4) { | |
29011 | arg5 = (long) SWIG_AsLong(obj4); | |
29012 | if (PyErr_Occurred()) SWIG_fail; | |
29013 | } | |
29014 | { | |
0439c23b | 29015 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29017 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29018 | ||
29019 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29020 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29021 | } |
29022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
29023 | return resultobj; | |
29024 | fail: | |
29025 | return NULL; | |
29026 | } | |
29027 | ||
29028 | ||
29029 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29030 | PyObject *resultobj; | |
29031 | wxDirFilterListCtrl *result; | |
29032 | char *kwnames[] = { | |
29033 | NULL | |
29034 | }; | |
29035 | ||
29036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
29037 | { | |
0439c23b | 29038 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29040 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
29041 | ||
29042 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29043 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29044 | } |
29045 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); | |
29046 | return resultobj; | |
29047 | fail: | |
29048 | return NULL; | |
29049 | } | |
29050 | ||
29051 | ||
29052 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29053 | PyObject *resultobj; | |
29054 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29055 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
29056 | int arg3 = (int) (int)-1 ; | |
29057 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
29058 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
29059 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
29060 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
29061 | long arg6 = (long) 0 ; | |
29062 | bool result; | |
29063 | wxPoint temp4 ; | |
29064 | wxSize temp5 ; | |
29065 | PyObject * obj0 = 0 ; | |
29066 | PyObject * obj1 = 0 ; | |
29067 | PyObject * obj2 = 0 ; | |
29068 | PyObject * obj3 = 0 ; | |
29069 | PyObject * obj4 = 0 ; | |
29070 | PyObject * obj5 = 0 ; | |
29071 | char *kwnames[] = { | |
29072 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29073 | }; | |
29074 | ||
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29078 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
29079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29080 | if (obj2) { | |
29081 | arg3 = (int const) SWIG_AsInt(obj2); | |
29082 | if (PyErr_Occurred()) SWIG_fail; | |
29083 | } | |
29084 | if (obj3) { | |
29085 | { | |
29086 | arg4 = &temp4; | |
29087 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
29088 | } | |
29089 | } | |
29090 | if (obj4) { | |
29091 | { | |
29092 | arg5 = &temp5; | |
29093 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
29094 | } | |
29095 | } | |
29096 | if (obj5) { | |
29097 | arg6 = (long) SWIG_AsLong(obj5); | |
29098 | if (PyErr_Occurred()) SWIG_fail; | |
29099 | } | |
29100 | { | |
29101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29102 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
29103 | ||
29104 | wxPyEndAllowThreads(__tstate); | |
29105 | if (PyErr_Occurred()) SWIG_fail; | |
29106 | } | |
29107 | { | |
29108 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29109 | } | |
29110 | return resultobj; | |
29111 | fail: | |
29112 | return NULL; | |
29113 | } | |
29114 | ||
29115 | ||
29116 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29117 | PyObject *resultobj; | |
29118 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
29119 | wxString *arg2 = 0 ; | |
29120 | int arg3 ; | |
29121 | bool temp2 = False ; | |
29122 | PyObject * obj0 = 0 ; | |
29123 | PyObject * obj1 = 0 ; | |
29124 | PyObject * obj2 = 0 ; | |
29125 | char *kwnames[] = { | |
29126 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
29127 | }; | |
29128 | ||
29129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, | |
29131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29132 | { | |
29133 | arg2 = wxString_in_helper(obj1); | |
29134 | if (arg2 == NULL) SWIG_fail; | |
29135 | temp2 = True; | |
29136 | } | |
29137 | arg3 = (int) SWIG_AsInt(obj2); | |
29138 | if (PyErr_Occurred()) SWIG_fail; | |
29139 | { | |
29140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29141 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
29142 | ||
29143 | wxPyEndAllowThreads(__tstate); | |
29144 | if (PyErr_Occurred()) SWIG_fail; | |
29145 | } | |
29146 | Py_INCREF(Py_None); resultobj = Py_None; | |
29147 | { | |
29148 | if (temp2) | |
29149 | delete arg2; | |
29150 | } | |
29151 | return resultobj; | |
29152 | fail: | |
29153 | { | |
29154 | if (temp2) | |
29155 | delete arg2; | |
29156 | } | |
29157 | return NULL; | |
29158 | } | |
29159 | ||
29160 | ||
29161 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
29162 | PyObject *obj; | |
29163 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29164 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
29165 | Py_INCREF(obj); | |
29166 | return Py_BuildValue((char *)""); | |
29167 | } | |
29168 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29169 | PyObject *resultobj; | |
29170 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 29171 | int arg2 = (int) (int)-1 ; |
d55e5bfc RD |
29172 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29173 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29174 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29175 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29176 | long arg5 = (long) 0 ; | |
29177 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
29178 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
29179 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
29180 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
29181 | wxPyControl *result; | |
29182 | wxPoint temp3 ; | |
29183 | wxSize temp4 ; | |
29184 | bool temp7 = False ; | |
29185 | PyObject * obj0 = 0 ; | |
29186 | PyObject * obj1 = 0 ; | |
29187 | PyObject * obj2 = 0 ; | |
29188 | PyObject * obj3 = 0 ; | |
29189 | PyObject * obj4 = 0 ; | |
29190 | PyObject * obj5 = 0 ; | |
29191 | PyObject * obj6 = 0 ; | |
29192 | char *kwnames[] = { | |
29193 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
29194 | }; | |
29195 | ||
248ed943 | 29196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
d55e5bfc RD |
29197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
29199 | if (obj1) { |
29200 | arg2 = (int const) SWIG_AsInt(obj1); | |
29201 | if (PyErr_Occurred()) SWIG_fail; | |
29202 | } | |
d55e5bfc RD |
29203 | if (obj2) { |
29204 | { | |
29205 | arg3 = &temp3; | |
29206 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29207 | } | |
29208 | } | |
29209 | if (obj3) { | |
29210 | { | |
29211 | arg4 = &temp4; | |
29212 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29213 | } | |
29214 | } | |
29215 | if (obj4) { | |
29216 | arg5 = (long) SWIG_AsLong(obj4); | |
29217 | if (PyErr_Occurred()) SWIG_fail; | |
29218 | } | |
29219 | if (obj5) { | |
29220 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, | |
29221 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29222 | SWIG_fail; | |
29223 | if (arg6 == NULL) { | |
29224 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
29225 | SWIG_fail; | |
29226 | } | |
29227 | } | |
29228 | if (obj6) { | |
29229 | { | |
29230 | arg7 = wxString_in_helper(obj6); | |
29231 | if (arg7 == NULL) SWIG_fail; | |
29232 | temp7 = True; | |
29233 | } | |
29234 | } | |
29235 | { | |
0439c23b | 29236 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29238 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29239 | ||
29240 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29241 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29242 | } |
29243 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29244 | { | |
29245 | if (temp7) | |
29246 | delete arg7; | |
29247 | } | |
29248 | return resultobj; | |
29249 | fail: | |
29250 | { | |
29251 | if (temp7) | |
29252 | delete arg7; | |
29253 | } | |
29254 | return NULL; | |
29255 | } | |
29256 | ||
29257 | ||
29258 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29259 | PyObject *resultobj; | |
29260 | wxPyControl *result; | |
29261 | char *kwnames[] = { | |
29262 | NULL | |
29263 | }; | |
29264 | ||
29265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29266 | { | |
0439c23b | 29267 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
29268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29269 | result = (wxPyControl *)new wxPyControl(); | |
29270 | ||
29271 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29272 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
29273 | } |
29274 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29275 | return resultobj; | |
29276 | fail: | |
29277 | return NULL; | |
29278 | } | |
29279 | ||
29280 | ||
29281 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29282 | PyObject *resultobj; | |
29283 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29284 | PyObject *arg2 = (PyObject *) 0 ; | |
29285 | PyObject *arg3 = (PyObject *) 0 ; | |
29286 | PyObject * obj0 = 0 ; | |
29287 | PyObject * obj1 = 0 ; | |
29288 | PyObject * obj2 = 0 ; | |
29289 | char *kwnames[] = { | |
29290 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29291 | }; | |
29292 | ||
29293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29296 | arg2 = obj1; | |
29297 | arg3 = obj2; | |
29298 | { | |
29299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29300 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29301 | ||
29302 | wxPyEndAllowThreads(__tstate); | |
29303 | if (PyErr_Occurred()) SWIG_fail; | |
29304 | } | |
29305 | Py_INCREF(Py_None); resultobj = Py_None; | |
29306 | return resultobj; | |
29307 | fail: | |
29308 | return NULL; | |
29309 | } | |
29310 | ||
29311 | ||
caef1a4d RD |
29312 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
29313 | PyObject *resultobj; | |
29314 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29315 | wxSize *arg2 = 0 ; | |
29316 | wxSize temp2 ; | |
29317 | PyObject * obj0 = 0 ; | |
29318 | PyObject * obj1 = 0 ; | |
29319 | char *kwnames[] = { | |
29320 | (char *) "self",(char *) "size", NULL | |
29321 | }; | |
29322 | ||
29323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29326 | { | |
29327 | arg2 = &temp2; | |
29328 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29329 | } | |
29330 | { | |
29331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29332 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29333 | ||
29334 | wxPyEndAllowThreads(__tstate); | |
29335 | if (PyErr_Occurred()) SWIG_fail; | |
29336 | } | |
29337 | Py_INCREF(Py_None); resultobj = Py_None; | |
29338 | return resultobj; | |
29339 | fail: | |
29340 | return NULL; | |
29341 | } | |
29342 | ||
29343 | ||
d55e5bfc RD |
29344 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
29345 | PyObject *resultobj; | |
29346 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29347 | int arg2 ; | |
29348 | int arg3 ; | |
29349 | int arg4 ; | |
29350 | int arg5 ; | |
29351 | PyObject * obj0 = 0 ; | |
29352 | PyObject * obj1 = 0 ; | |
29353 | PyObject * obj2 = 0 ; | |
29354 | PyObject * obj3 = 0 ; | |
29355 | PyObject * obj4 = 0 ; | |
29356 | char *kwnames[] = { | |
29357 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29358 | }; | |
29359 | ||
29360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
29361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29363 | arg2 = (int) SWIG_AsInt(obj1); | |
29364 | if (PyErr_Occurred()) SWIG_fail; | |
29365 | arg3 = (int) SWIG_AsInt(obj2); | |
29366 | if (PyErr_Occurred()) SWIG_fail; | |
29367 | arg4 = (int) SWIG_AsInt(obj3); | |
29368 | if (PyErr_Occurred()) SWIG_fail; | |
29369 | arg5 = (int) SWIG_AsInt(obj4); | |
29370 | if (PyErr_Occurred()) SWIG_fail; | |
29371 | { | |
29372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29373 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29374 | ||
29375 | wxPyEndAllowThreads(__tstate); | |
29376 | if (PyErr_Occurred()) SWIG_fail; | |
29377 | } | |
29378 | Py_INCREF(Py_None); resultobj = Py_None; | |
29379 | return resultobj; | |
29380 | fail: | |
29381 | return NULL; | |
29382 | } | |
29383 | ||
29384 | ||
29385 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29386 | PyObject *resultobj; | |
29387 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29388 | int arg2 ; | |
29389 | int arg3 ; | |
29390 | int arg4 ; | |
29391 | int arg5 ; | |
29392 | int arg6 = (int) wxSIZE_AUTO ; | |
29393 | PyObject * obj0 = 0 ; | |
29394 | PyObject * obj1 = 0 ; | |
29395 | PyObject * obj2 = 0 ; | |
29396 | PyObject * obj3 = 0 ; | |
29397 | PyObject * obj4 = 0 ; | |
29398 | PyObject * obj5 = 0 ; | |
29399 | char *kwnames[] = { | |
29400 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29401 | }; | |
29402 | ||
29403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; | |
29404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29406 | arg2 = (int) SWIG_AsInt(obj1); | |
29407 | if (PyErr_Occurred()) SWIG_fail; | |
29408 | arg3 = (int) SWIG_AsInt(obj2); | |
29409 | if (PyErr_Occurred()) SWIG_fail; | |
29410 | arg4 = (int) SWIG_AsInt(obj3); | |
29411 | if (PyErr_Occurred()) SWIG_fail; | |
29412 | arg5 = (int) SWIG_AsInt(obj4); | |
29413 | if (PyErr_Occurred()) SWIG_fail; | |
29414 | if (obj5) { | |
29415 | arg6 = (int) SWIG_AsInt(obj5); | |
29416 | if (PyErr_Occurred()) SWIG_fail; | |
29417 | } | |
29418 | { | |
29419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29420 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29421 | ||
29422 | wxPyEndAllowThreads(__tstate); | |
29423 | if (PyErr_Occurred()) SWIG_fail; | |
29424 | } | |
29425 | Py_INCREF(Py_None); resultobj = Py_None; | |
29426 | return resultobj; | |
29427 | fail: | |
29428 | return NULL; | |
29429 | } | |
29430 | ||
29431 | ||
29432 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29433 | PyObject *resultobj; | |
29434 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29435 | int arg2 ; | |
29436 | int arg3 ; | |
29437 | PyObject * obj0 = 0 ; | |
29438 | PyObject * obj1 = 0 ; | |
29439 | PyObject * obj2 = 0 ; | |
29440 | char *kwnames[] = { | |
29441 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29442 | }; | |
29443 | ||
29444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29447 | arg2 = (int) SWIG_AsInt(obj1); | |
29448 | if (PyErr_Occurred()) SWIG_fail; | |
29449 | arg3 = (int) SWIG_AsInt(obj2); | |
29450 | if (PyErr_Occurred()) SWIG_fail; | |
29451 | { | |
29452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29453 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29454 | ||
29455 | wxPyEndAllowThreads(__tstate); | |
29456 | if (PyErr_Occurred()) SWIG_fail; | |
29457 | } | |
29458 | Py_INCREF(Py_None); resultobj = Py_None; | |
29459 | return resultobj; | |
29460 | fail: | |
29461 | return NULL; | |
29462 | } | |
29463 | ||
29464 | ||
29465 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29466 | PyObject *resultobj; | |
29467 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29468 | int arg2 ; | |
29469 | int arg3 ; | |
29470 | PyObject * obj0 = 0 ; | |
29471 | PyObject * obj1 = 0 ; | |
29472 | PyObject * obj2 = 0 ; | |
29473 | char *kwnames[] = { | |
29474 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29475 | }; | |
29476 | ||
29477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
29478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29480 | arg2 = (int) SWIG_AsInt(obj1); | |
29481 | if (PyErr_Occurred()) SWIG_fail; | |
29482 | arg3 = (int) SWIG_AsInt(obj2); | |
29483 | if (PyErr_Occurred()) SWIG_fail; | |
29484 | { | |
29485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29486 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29487 | ||
29488 | wxPyEndAllowThreads(__tstate); | |
29489 | if (PyErr_Occurred()) SWIG_fail; | |
29490 | } | |
29491 | Py_INCREF(Py_None); resultobj = Py_None; | |
29492 | return resultobj; | |
29493 | fail: | |
29494 | return NULL; | |
29495 | } | |
29496 | ||
29497 | ||
29498 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29499 | PyObject *resultobj; | |
29500 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29501 | int *arg2 = (int *) 0 ; | |
29502 | int *arg3 = (int *) 0 ; | |
29503 | int temp2 ; | |
29504 | int temp3 ; | |
29505 | PyObject * obj0 = 0 ; | |
29506 | char *kwnames[] = { | |
29507 | (char *) "self", NULL | |
29508 | }; | |
29509 | ||
29510 | arg2 = &temp2; | |
29511 | arg3 = &temp3; | |
29512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
29513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29515 | { | |
29516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29517 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29518 | ||
29519 | wxPyEndAllowThreads(__tstate); | |
29520 | if (PyErr_Occurred()) SWIG_fail; | |
29521 | } | |
29522 | Py_INCREF(Py_None); resultobj = Py_None; | |
29523 | { | |
29524 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29525 | resultobj = t_output_helper(resultobj,o); | |
29526 | } | |
29527 | { | |
29528 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29529 | resultobj = t_output_helper(resultobj,o); | |
29530 | } | |
29531 | return resultobj; | |
29532 | fail: | |
29533 | return NULL; | |
29534 | } | |
29535 | ||
29536 | ||
29537 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29538 | PyObject *resultobj; | |
29539 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29540 | int *arg2 = (int *) 0 ; | |
29541 | int *arg3 = (int *) 0 ; | |
29542 | int temp2 ; | |
29543 | int temp3 ; | |
29544 | PyObject * obj0 = 0 ; | |
29545 | char *kwnames[] = { | |
29546 | (char *) "self", NULL | |
29547 | }; | |
29548 | ||
29549 | arg2 = &temp2; | |
29550 | arg3 = &temp3; | |
29551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
29552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29554 | { | |
29555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29556 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29557 | ||
29558 | wxPyEndAllowThreads(__tstate); | |
29559 | if (PyErr_Occurred()) SWIG_fail; | |
29560 | } | |
29561 | Py_INCREF(Py_None); resultobj = Py_None; | |
29562 | { | |
29563 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29564 | resultobj = t_output_helper(resultobj,o); | |
29565 | } | |
29566 | { | |
29567 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29568 | resultobj = t_output_helper(resultobj,o); | |
29569 | } | |
29570 | return resultobj; | |
29571 | fail: | |
29572 | return NULL; | |
29573 | } | |
29574 | ||
29575 | ||
29576 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29577 | PyObject *resultobj; | |
29578 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29579 | int *arg2 = (int *) 0 ; | |
29580 | int *arg3 = (int *) 0 ; | |
29581 | int temp2 ; | |
29582 | int temp3 ; | |
29583 | PyObject * obj0 = 0 ; | |
29584 | char *kwnames[] = { | |
29585 | (char *) "self", NULL | |
29586 | }; | |
29587 | ||
29588 | arg2 = &temp2; | |
29589 | arg3 = &temp3; | |
29590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
29591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29593 | { | |
29594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29595 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29596 | ||
29597 | wxPyEndAllowThreads(__tstate); | |
29598 | if (PyErr_Occurred()) SWIG_fail; | |
29599 | } | |
29600 | Py_INCREF(Py_None); resultobj = Py_None; | |
29601 | { | |
29602 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29603 | resultobj = t_output_helper(resultobj,o); | |
29604 | } | |
29605 | { | |
29606 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29607 | resultobj = t_output_helper(resultobj,o); | |
29608 | } | |
29609 | return resultobj; | |
29610 | fail: | |
29611 | return NULL; | |
29612 | } | |
29613 | ||
29614 | ||
29615 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29616 | PyObject *resultobj; | |
29617 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29618 | wxSize result; | |
29619 | PyObject * obj0 = 0 ; | |
29620 | char *kwnames[] = { | |
29621 | (char *) "self", NULL | |
29622 | }; | |
29623 | ||
29624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
29625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29627 | { | |
29628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29629 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29630 | ||
29631 | wxPyEndAllowThreads(__tstate); | |
29632 | if (PyErr_Occurred()) SWIG_fail; | |
29633 | } | |
29634 | { | |
29635 | wxSize * resultptr; | |
29636 | resultptr = new wxSize((wxSize &) result); | |
29637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29638 | } | |
29639 | return resultobj; | |
29640 | fail: | |
29641 | return NULL; | |
29642 | } | |
29643 | ||
29644 | ||
29645 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29646 | PyObject *resultobj; | |
29647 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29648 | wxSize result; | |
29649 | PyObject * obj0 = 0 ; | |
29650 | char *kwnames[] = { | |
29651 | (char *) "self", NULL | |
29652 | }; | |
29653 | ||
29654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
29655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29657 | { | |
29658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29659 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29660 | ||
29661 | wxPyEndAllowThreads(__tstate); | |
29662 | if (PyErr_Occurred()) SWIG_fail; | |
29663 | } | |
29664 | { | |
29665 | wxSize * resultptr; | |
29666 | resultptr = new wxSize((wxSize &) result); | |
29667 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29668 | } | |
29669 | return resultobj; | |
29670 | fail: | |
29671 | return NULL; | |
29672 | } | |
29673 | ||
29674 | ||
29675 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29676 | PyObject *resultobj; | |
29677 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29678 | PyObject * obj0 = 0 ; | |
29679 | char *kwnames[] = { | |
29680 | (char *) "self", NULL | |
29681 | }; | |
29682 | ||
29683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
29684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29686 | { | |
29687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29688 | (arg1)->base_InitDialog(); | |
29689 | ||
29690 | wxPyEndAllowThreads(__tstate); | |
29691 | if (PyErr_Occurred()) SWIG_fail; | |
29692 | } | |
29693 | Py_INCREF(Py_None); resultobj = Py_None; | |
29694 | return resultobj; | |
29695 | fail: | |
29696 | return NULL; | |
29697 | } | |
29698 | ||
29699 | ||
29700 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29701 | PyObject *resultobj; | |
29702 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29703 | bool result; | |
29704 | PyObject * obj0 = 0 ; | |
29705 | char *kwnames[] = { | |
29706 | (char *) "self", NULL | |
29707 | }; | |
29708 | ||
29709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
29710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29712 | { | |
29713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29714 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29715 | ||
29716 | wxPyEndAllowThreads(__tstate); | |
29717 | if (PyErr_Occurred()) SWIG_fail; | |
29718 | } | |
29719 | { | |
29720 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29721 | } | |
29722 | return resultobj; | |
29723 | fail: | |
29724 | return NULL; | |
29725 | } | |
29726 | ||
29727 | ||
29728 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29729 | PyObject *resultobj; | |
29730 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29731 | bool result; | |
29732 | PyObject * obj0 = 0 ; | |
29733 | char *kwnames[] = { | |
29734 | (char *) "self", NULL | |
29735 | }; | |
29736 | ||
29737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
29738 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29739 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29740 | { | |
29741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29742 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29743 | ||
29744 | wxPyEndAllowThreads(__tstate); | |
29745 | if (PyErr_Occurred()) SWIG_fail; | |
29746 | } | |
29747 | { | |
29748 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29749 | } | |
29750 | return resultobj; | |
29751 | fail: | |
29752 | return NULL; | |
29753 | } | |
29754 | ||
29755 | ||
29756 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29757 | PyObject *resultobj; | |
29758 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29759 | bool result; | |
29760 | PyObject * obj0 = 0 ; | |
29761 | char *kwnames[] = { | |
29762 | (char *) "self", NULL | |
29763 | }; | |
29764 | ||
29765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
29766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29768 | { | |
29769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29770 | result = (bool)(arg1)->base_Validate(); | |
29771 | ||
29772 | wxPyEndAllowThreads(__tstate); | |
29773 | if (PyErr_Occurred()) SWIG_fail; | |
29774 | } | |
29775 | { | |
29776 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29777 | } | |
29778 | return resultobj; | |
29779 | fail: | |
29780 | return NULL; | |
29781 | } | |
29782 | ||
29783 | ||
29784 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29785 | PyObject *resultobj; | |
29786 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29787 | bool result; | |
29788 | PyObject * obj0 = 0 ; | |
29789 | char *kwnames[] = { | |
29790 | (char *) "self", NULL | |
29791 | }; | |
29792 | ||
29793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
29794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29796 | { | |
29797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29798 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29799 | ||
29800 | wxPyEndAllowThreads(__tstate); | |
29801 | if (PyErr_Occurred()) SWIG_fail; | |
29802 | } | |
29803 | { | |
29804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29805 | } | |
29806 | return resultobj; | |
29807 | fail: | |
29808 | return NULL; | |
29809 | } | |
29810 | ||
29811 | ||
29812 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29813 | PyObject *resultobj; | |
29814 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29815 | bool result; | |
29816 | PyObject * obj0 = 0 ; | |
29817 | char *kwnames[] = { | |
29818 | (char *) "self", NULL | |
29819 | }; | |
29820 | ||
29821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
29822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29824 | { | |
29825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29826 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29827 | ||
29828 | wxPyEndAllowThreads(__tstate); | |
29829 | if (PyErr_Occurred()) SWIG_fail; | |
29830 | } | |
29831 | { | |
29832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29833 | } | |
29834 | return resultobj; | |
29835 | fail: | |
29836 | return NULL; | |
29837 | } | |
29838 | ||
29839 | ||
29840 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29841 | PyObject *resultobj; | |
29842 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29843 | wxSize result; | |
29844 | PyObject * obj0 = 0 ; | |
29845 | char *kwnames[] = { | |
29846 | (char *) "self", NULL | |
29847 | }; | |
29848 | ||
29849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
29850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29852 | { | |
29853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29854 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29855 | ||
29856 | wxPyEndAllowThreads(__tstate); | |
29857 | if (PyErr_Occurred()) SWIG_fail; | |
29858 | } | |
29859 | { | |
29860 | wxSize * resultptr; | |
29861 | resultptr = new wxSize((wxSize &) result); | |
29862 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); | |
29863 | } | |
29864 | return resultobj; | |
29865 | fail: | |
29866 | return NULL; | |
29867 | } | |
29868 | ||
29869 | ||
29870 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29871 | PyObject *resultobj; | |
29872 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29873 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29874 | PyObject * obj0 = 0 ; | |
29875 | PyObject * obj1 = 0 ; | |
29876 | char *kwnames[] = { | |
29877 | (char *) "self",(char *) "child", NULL | |
29878 | }; | |
29879 | ||
29880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
29881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29885 | { | |
29886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29887 | (arg1)->base_AddChild(arg2); | |
29888 | ||
29889 | wxPyEndAllowThreads(__tstate); | |
29890 | if (PyErr_Occurred()) SWIG_fail; | |
29891 | } | |
29892 | Py_INCREF(Py_None); resultobj = Py_None; | |
29893 | return resultobj; | |
29894 | fail: | |
29895 | return NULL; | |
29896 | } | |
29897 | ||
29898 | ||
29899 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29900 | PyObject *resultobj; | |
29901 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29902 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29903 | PyObject * obj0 = 0 ; | |
29904 | PyObject * obj1 = 0 ; | |
29905 | char *kwnames[] = { | |
29906 | (char *) "self",(char *) "child", NULL | |
29907 | }; | |
29908 | ||
29909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
29910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29912 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29914 | { | |
29915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29916 | (arg1)->base_RemoveChild(arg2); | |
29917 | ||
29918 | wxPyEndAllowThreads(__tstate); | |
29919 | if (PyErr_Occurred()) SWIG_fail; | |
29920 | } | |
29921 | Py_INCREF(Py_None); resultobj = Py_None; | |
29922 | return resultobj; | |
29923 | fail: | |
29924 | return NULL; | |
29925 | } | |
29926 | ||
29927 | ||
29928 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29929 | PyObject *resultobj; | |
29930 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29931 | bool result; | |
29932 | PyObject * obj0 = 0 ; | |
29933 | char *kwnames[] = { | |
29934 | (char *) "self", NULL | |
29935 | }; | |
29936 | ||
29937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29940 | { | |
29941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
caef1a4d | 29942 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
d55e5bfc RD |
29943 | |
29944 | wxPyEndAllowThreads(__tstate); | |
29945 | if (PyErr_Occurred()) SWIG_fail; | |
29946 | } | |
29947 | { | |
29948 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29949 | } | |
29950 | return resultobj; | |
29951 | fail: | |
29952 | return NULL; | |
29953 | } | |
29954 | ||
29955 | ||
29956 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29957 | PyObject *resultobj; | |
29958 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29959 | wxColour *arg2 = 0 ; | |
29960 | wxColour temp2 ; | |
29961 | PyObject * obj0 = 0 ; | |
29962 | PyObject * obj1 = 0 ; | |
29963 | char *kwnames[] = { | |
29964 | (char *) "self",(char *) "c", NULL | |
29965 | }; | |
29966 | ||
29967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29970 | { | |
29971 | arg2 = &temp2; | |
29972 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29973 | } | |
29974 | { | |
29975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29976 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29977 | ||
29978 | wxPyEndAllowThreads(__tstate); | |
29979 | if (PyErr_Occurred()) SWIG_fail; | |
29980 | } | |
29981 | Py_INCREF(Py_None); resultobj = Py_None; | |
29982 | return resultobj; | |
29983 | fail: | |
29984 | return NULL; | |
29985 | } | |
29986 | ||
29987 | ||
caef1a4d RD |
29988 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29989 | PyObject *resultobj; | |
29990 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29991 | wxVisualAttributes result; | |
29992 | PyObject * obj0 = 0 ; | |
29993 | char *kwnames[] = { | |
29994 | (char *) "self", NULL | |
29995 | }; | |
29996 | ||
29997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30000 | { | |
30001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30002 | result = (arg1)->base_GetDefaultAttributes(); | |
30003 | ||
30004 | wxPyEndAllowThreads(__tstate); | |
30005 | if (PyErr_Occurred()) SWIG_fail; | |
30006 | } | |
30007 | { | |
30008 | wxVisualAttributes * resultptr; | |
30009 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
30010 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
30011 | } | |
30012 | return resultobj; | |
30013 | fail: | |
30014 | return NULL; | |
30015 | } | |
30016 | ||
30017 | ||
d55e5bfc RD |
30018 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
30019 | PyObject *obj; | |
30020 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30021 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
30022 | Py_INCREF(obj); | |
30023 | return Py_BuildValue((char *)""); | |
30024 | } | |
30025 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30026 | PyObject *resultobj; | |
30027 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
30028 | int arg2 = (int) 0 ; | |
30029 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30030 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30031 | wxHelpEvent *result; | |
30032 | wxPoint temp3 ; | |
30033 | PyObject * obj0 = 0 ; | |
30034 | PyObject * obj1 = 0 ; | |
30035 | PyObject * obj2 = 0 ; | |
30036 | char *kwnames[] = { | |
30037 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
30038 | }; | |
30039 | ||
30040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30041 | if (obj0) { | |
30042 | arg1 = (wxEventType) SWIG_AsInt(obj0); | |
30043 | if (PyErr_Occurred()) SWIG_fail; | |
30044 | } | |
30045 | if (obj1) { | |
30046 | arg2 = (int) SWIG_AsInt(obj1); | |
30047 | if (PyErr_Occurred()) SWIG_fail; | |
30048 | } | |
30049 | if (obj2) { | |
30050 | { | |
30051 | arg3 = &temp3; | |
30052 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30053 | } | |
30054 | } | |
30055 | { | |
30056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30057 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
30058 | ||
30059 | wxPyEndAllowThreads(__tstate); | |
30060 | if (PyErr_Occurred()) SWIG_fail; | |
30061 | } | |
30062 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); | |
30063 | return resultobj; | |
30064 | fail: | |
30065 | return NULL; | |
30066 | } | |
30067 | ||
30068 | ||
30069 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30070 | PyObject *resultobj; | |
30071 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30072 | wxPoint result; | |
30073 | PyObject * obj0 = 0 ; | |
30074 | char *kwnames[] = { | |
30075 | (char *) "self", NULL | |
30076 | }; | |
30077 | ||
30078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
30079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30081 | { | |
30082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30083 | result = ((wxHelpEvent const *)arg1)->GetPosition(); | |
30084 | ||
30085 | wxPyEndAllowThreads(__tstate); | |
30086 | if (PyErr_Occurred()) SWIG_fail; | |
30087 | } | |
30088 | { | |
30089 | wxPoint * resultptr; | |
30090 | resultptr = new wxPoint((wxPoint &) result); | |
30091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
30092 | } | |
30093 | return resultobj; | |
30094 | fail: | |
30095 | return NULL; | |
30096 | } | |
30097 | ||
30098 | ||
30099 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30100 | PyObject *resultobj; | |
30101 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30102 | wxPoint *arg2 = 0 ; | |
30103 | wxPoint temp2 ; | |
30104 | PyObject * obj0 = 0 ; | |
30105 | PyObject * obj1 = 0 ; | |
30106 | char *kwnames[] = { | |
30107 | (char *) "self",(char *) "pos", NULL | |
30108 | }; | |
30109 | ||
30110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
30111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30113 | { | |
30114 | arg2 = &temp2; | |
30115 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30116 | } | |
30117 | { | |
30118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30119 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
30120 | ||
30121 | wxPyEndAllowThreads(__tstate); | |
30122 | if (PyErr_Occurred()) SWIG_fail; | |
30123 | } | |
30124 | Py_INCREF(Py_None); resultobj = Py_None; | |
30125 | return resultobj; | |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30134 | wxString *result; | |
30135 | PyObject * obj0 = 0 ; | |
30136 | char *kwnames[] = { | |
30137 | (char *) "self", NULL | |
30138 | }; | |
30139 | ||
30140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
30141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30143 | { | |
30144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30145 | { | |
30146 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
30147 | result = (wxString *) &_result_ref; | |
30148 | } | |
30149 | ||
30150 | wxPyEndAllowThreads(__tstate); | |
30151 | if (PyErr_Occurred()) SWIG_fail; | |
30152 | } | |
30153 | { | |
30154 | #if wxUSE_UNICODE | |
30155 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30156 | #else | |
30157 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30158 | #endif | |
30159 | } | |
30160 | return resultobj; | |
30161 | fail: | |
30162 | return NULL; | |
30163 | } | |
30164 | ||
30165 | ||
30166 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30167 | PyObject *resultobj; | |
30168 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30169 | wxString *arg2 = 0 ; | |
30170 | bool temp2 = False ; | |
30171 | PyObject * obj0 = 0 ; | |
30172 | PyObject * obj1 = 0 ; | |
30173 | char *kwnames[] = { | |
30174 | (char *) "self",(char *) "link", NULL | |
30175 | }; | |
30176 | ||
30177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
30178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30180 | { | |
30181 | arg2 = wxString_in_helper(obj1); | |
30182 | if (arg2 == NULL) SWIG_fail; | |
30183 | temp2 = True; | |
30184 | } | |
30185 | { | |
30186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30187 | (arg1)->SetLink((wxString const &)*arg2); | |
30188 | ||
30189 | wxPyEndAllowThreads(__tstate); | |
30190 | if (PyErr_Occurred()) SWIG_fail; | |
30191 | } | |
30192 | Py_INCREF(Py_None); resultobj = Py_None; | |
30193 | { | |
30194 | if (temp2) | |
30195 | delete arg2; | |
30196 | } | |
30197 | return resultobj; | |
30198 | fail: | |
30199 | { | |
30200 | if (temp2) | |
30201 | delete arg2; | |
30202 | } | |
30203 | return NULL; | |
30204 | } | |
30205 | ||
30206 | ||
30207 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30208 | PyObject *resultobj; | |
30209 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30210 | wxString *result; | |
30211 | PyObject * obj0 = 0 ; | |
30212 | char *kwnames[] = { | |
30213 | (char *) "self", NULL | |
30214 | }; | |
30215 | ||
30216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
30217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30219 | { | |
30220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30221 | { | |
30222 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
30223 | result = (wxString *) &_result_ref; | |
30224 | } | |
30225 | ||
30226 | wxPyEndAllowThreads(__tstate); | |
30227 | if (PyErr_Occurred()) SWIG_fail; | |
30228 | } | |
30229 | { | |
30230 | #if wxUSE_UNICODE | |
30231 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
30232 | #else | |
30233 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
30234 | #endif | |
30235 | } | |
30236 | return resultobj; | |
30237 | fail: | |
30238 | return NULL; | |
30239 | } | |
30240 | ||
30241 | ||
30242 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30243 | PyObject *resultobj; | |
30244 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30245 | wxString *arg2 = 0 ; | |
30246 | bool temp2 = False ; | |
30247 | PyObject * obj0 = 0 ; | |
30248 | PyObject * obj1 = 0 ; | |
30249 | char *kwnames[] = { | |
30250 | (char *) "self",(char *) "target", NULL | |
30251 | }; | |
30252 | ||
30253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
30254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, | |
30255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30256 | { | |
30257 | arg2 = wxString_in_helper(obj1); | |
30258 | if (arg2 == NULL) SWIG_fail; | |
30259 | temp2 = True; | |
30260 | } | |
30261 | { | |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30263 | (arg1)->SetTarget((wxString const &)*arg2); | |
30264 | ||
30265 | wxPyEndAllowThreads(__tstate); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
30268 | Py_INCREF(Py_None); resultobj = Py_None; | |
30269 | { | |
30270 | if (temp2) | |
30271 | delete arg2; | |
30272 | } | |
30273 | return resultobj; | |
30274 | fail: | |
30275 | { | |
30276 | if (temp2) | |
30277 | delete arg2; | |
30278 | } | |
30279 | return NULL; | |
30280 | } | |
30281 | ||
30282 | ||
30283 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
30284 | PyObject *obj; | |
30285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30286 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30287 | Py_INCREF(obj); | |
30288 | return Py_BuildValue((char *)""); | |
30289 | } | |
30290 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30291 | PyObject *resultobj; | |
30292 | wxWindow *arg1 = (wxWindow *) NULL ; | |
30293 | bool arg2 = (bool) True ; | |
30294 | wxContextHelp *result; | |
30295 | PyObject * obj0 = 0 ; | |
30296 | PyObject * obj1 = 0 ; | |
30297 | char *kwnames[] = { | |
30298 | (char *) "window",(char *) "doNow", NULL | |
30299 | }; | |
30300 | ||
30301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30302 | if (obj0) { | |
30303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30305 | } | |
30306 | if (obj1) { | |
30307 | arg2 = (bool) SWIG_AsBool(obj1); | |
30308 | if (PyErr_Occurred()) SWIG_fail; | |
30309 | } | |
30310 | { | |
0439c23b | 30311 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30313 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30314 | ||
30315 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30316 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30317 | } |
30318 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); | |
30319 | return resultobj; | |
30320 | fail: | |
30321 | return NULL; | |
30322 | } | |
30323 | ||
30324 | ||
30325 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30326 | PyObject *resultobj; | |
30327 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30328 | PyObject * obj0 = 0 ; | |
30329 | char *kwnames[] = { | |
30330 | (char *) "self", NULL | |
30331 | }; | |
30332 | ||
30333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
30334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30336 | { | |
30337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30338 | delete arg1; | |
30339 | ||
30340 | wxPyEndAllowThreads(__tstate); | |
30341 | if (PyErr_Occurred()) SWIG_fail; | |
30342 | } | |
30343 | Py_INCREF(Py_None); resultobj = Py_None; | |
30344 | return resultobj; | |
30345 | fail: | |
30346 | return NULL; | |
30347 | } | |
30348 | ||
30349 | ||
30350 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30351 | PyObject *resultobj; | |
30352 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30353 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30354 | bool result; | |
30355 | PyObject * obj0 = 0 ; | |
30356 | PyObject * obj1 = 0 ; | |
30357 | char *kwnames[] = { | |
30358 | (char *) "self",(char *) "window", NULL | |
30359 | }; | |
30360 | ||
30361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30364 | if (obj1) { | |
30365 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30367 | } | |
30368 | { | |
30369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30370 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30371 | ||
30372 | wxPyEndAllowThreads(__tstate); | |
30373 | if (PyErr_Occurred()) SWIG_fail; | |
30374 | } | |
30375 | { | |
30376 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30377 | } | |
30378 | return resultobj; | |
30379 | fail: | |
30380 | return NULL; | |
30381 | } | |
30382 | ||
30383 | ||
30384 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30385 | PyObject *resultobj; | |
30386 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30387 | bool result; | |
30388 | PyObject * obj0 = 0 ; | |
30389 | char *kwnames[] = { | |
30390 | (char *) "self", NULL | |
30391 | }; | |
30392 | ||
30393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
30394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, | |
30395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30396 | { | |
30397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30398 | result = (bool)(arg1)->EndContextHelp(); | |
30399 | ||
30400 | wxPyEndAllowThreads(__tstate); | |
30401 | if (PyErr_Occurred()) SWIG_fail; | |
30402 | } | |
30403 | { | |
30404 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30405 | } | |
30406 | return resultobj; | |
30407 | fail: | |
30408 | return NULL; | |
30409 | } | |
30410 | ||
30411 | ||
30412 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30413 | PyObject *obj; | |
30414 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30415 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30416 | Py_INCREF(obj); | |
30417 | return Py_BuildValue((char *)""); | |
30418 | } | |
30419 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30420 | PyObject *resultobj; | |
30421 | wxWindow *arg1 = (wxWindow *) 0 ; | |
30422 | int arg2 = (int) wxID_CONTEXT_HELP ; | |
30423 | wxPoint const &arg3_defvalue = wxDefaultPosition ; | |
30424 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30425 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30426 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30427 | long arg5 = (long) wxBU_AUTODRAW ; | |
30428 | wxContextHelpButton *result; | |
30429 | wxPoint temp3 ; | |
30430 | wxSize temp4 ; | |
30431 | PyObject * obj0 = 0 ; | |
30432 | PyObject * obj1 = 0 ; | |
30433 | PyObject * obj2 = 0 ; | |
30434 | PyObject * obj3 = 0 ; | |
30435 | PyObject * obj4 = 0 ; | |
30436 | char *kwnames[] = { | |
30437 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30438 | }; | |
30439 | ||
30440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
30441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, | |
30442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30443 | if (obj1) { | |
30444 | arg2 = (int) SWIG_AsInt(obj1); | |
30445 | if (PyErr_Occurred()) SWIG_fail; | |
30446 | } | |
30447 | if (obj2) { | |
30448 | { | |
30449 | arg3 = &temp3; | |
30450 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30451 | } | |
30452 | } | |
30453 | if (obj3) { | |
30454 | { | |
30455 | arg4 = &temp4; | |
30456 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30457 | } | |
30458 | } | |
30459 | if (obj4) { | |
30460 | arg5 = (long) SWIG_AsLong(obj4); | |
30461 | if (PyErr_Occurred()) SWIG_fail; | |
30462 | } | |
30463 | { | |
0439c23b | 30464 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30466 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30467 | ||
30468 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30469 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30470 | } |
30471 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); | |
30472 | return resultobj; | |
30473 | fail: | |
30474 | return NULL; | |
30475 | } | |
30476 | ||
30477 | ||
30478 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30479 | PyObject *obj; | |
30480 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30481 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30482 | Py_INCREF(obj); | |
30483 | return Py_BuildValue((char *)""); | |
30484 | } | |
30485 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30486 | PyObject *resultobj; | |
30487 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30488 | wxHelpProvider *result; | |
30489 | PyObject * obj0 = 0 ; | |
30490 | char *kwnames[] = { | |
30491 | (char *) "helpProvider", NULL | |
30492 | }; | |
30493 | ||
30494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
30495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30497 | { | |
30498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30499 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30500 | ||
30501 | wxPyEndAllowThreads(__tstate); | |
30502 | if (PyErr_Occurred()) SWIG_fail; | |
30503 | } | |
30504 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30505 | return resultobj; | |
30506 | fail: | |
30507 | return NULL; | |
30508 | } | |
30509 | ||
30510 | ||
30511 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30512 | PyObject *resultobj; | |
30513 | wxHelpProvider *result; | |
30514 | char *kwnames[] = { | |
30515 | NULL | |
30516 | }; | |
30517 | ||
30518 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30519 | { | |
30520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30521 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30522 | ||
30523 | wxPyEndAllowThreads(__tstate); | |
30524 | if (PyErr_Occurred()) SWIG_fail; | |
30525 | } | |
30526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); | |
30527 | return resultobj; | |
30528 | fail: | |
30529 | return NULL; | |
30530 | } | |
30531 | ||
30532 | ||
30533 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30534 | PyObject *resultobj; | |
30535 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30536 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30537 | wxString result; | |
30538 | PyObject * obj0 = 0 ; | |
30539 | PyObject * obj1 = 0 ; | |
30540 | char *kwnames[] = { | |
30541 | (char *) "self",(char *) "window", NULL | |
30542 | }; | |
30543 | ||
30544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
30545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30547 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30549 | { | |
30550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30551 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30552 | ||
30553 | wxPyEndAllowThreads(__tstate); | |
30554 | if (PyErr_Occurred()) SWIG_fail; | |
30555 | } | |
30556 | { | |
30557 | #if wxUSE_UNICODE | |
30558 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30559 | #else | |
30560 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30561 | #endif | |
30562 | } | |
30563 | return resultobj; | |
30564 | fail: | |
30565 | return NULL; | |
30566 | } | |
30567 | ||
30568 | ||
30569 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30570 | PyObject *resultobj; | |
30571 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30572 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30573 | bool result; | |
30574 | PyObject * obj0 = 0 ; | |
30575 | PyObject * obj1 = 0 ; | |
30576 | char *kwnames[] = { | |
30577 | (char *) "self",(char *) "window", NULL | |
30578 | }; | |
30579 | ||
30580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
30581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30583 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30585 | { | |
30586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30587 | result = (bool)(arg1)->ShowHelp(arg2); | |
30588 | ||
30589 | wxPyEndAllowThreads(__tstate); | |
30590 | if (PyErr_Occurred()) SWIG_fail; | |
30591 | } | |
30592 | { | |
30593 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30594 | } | |
30595 | return resultobj; | |
30596 | fail: | |
30597 | return NULL; | |
30598 | } | |
30599 | ||
30600 | ||
30601 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30602 | PyObject *resultobj; | |
30603 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30605 | wxString *arg3 = 0 ; | |
30606 | bool temp3 = False ; | |
30607 | PyObject * obj0 = 0 ; | |
30608 | PyObject * obj1 = 0 ; | |
30609 | PyObject * obj2 = 0 ; | |
30610 | char *kwnames[] = { | |
30611 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30612 | }; | |
30613 | ||
30614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30619 | { | |
30620 | arg3 = wxString_in_helper(obj2); | |
30621 | if (arg3 == NULL) SWIG_fail; | |
30622 | temp3 = True; | |
30623 | } | |
30624 | { | |
30625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30626 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30627 | ||
30628 | wxPyEndAllowThreads(__tstate); | |
30629 | if (PyErr_Occurred()) SWIG_fail; | |
30630 | } | |
30631 | Py_INCREF(Py_None); resultobj = Py_None; | |
30632 | { | |
30633 | if (temp3) | |
30634 | delete arg3; | |
30635 | } | |
30636 | return resultobj; | |
30637 | fail: | |
30638 | { | |
30639 | if (temp3) | |
30640 | delete arg3; | |
30641 | } | |
30642 | return NULL; | |
30643 | } | |
30644 | ||
30645 | ||
30646 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30647 | PyObject *resultobj; | |
30648 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30649 | int arg2 ; | |
30650 | wxString *arg3 = 0 ; | |
30651 | bool temp3 = False ; | |
30652 | PyObject * obj0 = 0 ; | |
30653 | PyObject * obj1 = 0 ; | |
30654 | PyObject * obj2 = 0 ; | |
30655 | char *kwnames[] = { | |
30656 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30657 | }; | |
30658 | ||
30659 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
30660 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30661 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30662 | arg2 = (int) SWIG_AsInt(obj1); | |
30663 | if (PyErr_Occurred()) SWIG_fail; | |
30664 | { | |
30665 | arg3 = wxString_in_helper(obj2); | |
30666 | if (arg3 == NULL) SWIG_fail; | |
30667 | temp3 = True; | |
30668 | } | |
30669 | { | |
30670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30671 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30672 | ||
30673 | wxPyEndAllowThreads(__tstate); | |
30674 | if (PyErr_Occurred()) SWIG_fail; | |
30675 | } | |
30676 | Py_INCREF(Py_None); resultobj = Py_None; | |
30677 | { | |
30678 | if (temp3) | |
30679 | delete arg3; | |
30680 | } | |
30681 | return resultobj; | |
30682 | fail: | |
30683 | { | |
30684 | if (temp3) | |
30685 | delete arg3; | |
30686 | } | |
30687 | return NULL; | |
30688 | } | |
30689 | ||
30690 | ||
30691 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30692 | PyObject *resultobj; | |
30693 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30694 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30695 | PyObject * obj0 = 0 ; | |
30696 | PyObject * obj1 = 0 ; | |
30697 | char *kwnames[] = { | |
30698 | (char *) "self",(char *) "window", NULL | |
30699 | }; | |
30700 | ||
30701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30706 | { | |
30707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30708 | (arg1)->RemoveHelp(arg2); | |
30709 | ||
30710 | wxPyEndAllowThreads(__tstate); | |
30711 | if (PyErr_Occurred()) SWIG_fail; | |
30712 | } | |
30713 | Py_INCREF(Py_None); resultobj = Py_None; | |
30714 | return resultobj; | |
30715 | fail: | |
30716 | return NULL; | |
30717 | } | |
30718 | ||
30719 | ||
30720 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30721 | PyObject *resultobj; | |
30722 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30723 | PyObject * obj0 = 0 ; | |
30724 | char *kwnames[] = { | |
30725 | (char *) "self", NULL | |
30726 | }; | |
30727 | ||
30728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
30729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30731 | { | |
30732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30733 | wxHelpProvider_Destroy(arg1); | |
30734 | ||
30735 | wxPyEndAllowThreads(__tstate); | |
30736 | if (PyErr_Occurred()) SWIG_fail; | |
30737 | } | |
30738 | Py_INCREF(Py_None); resultobj = Py_None; | |
30739 | return resultobj; | |
30740 | fail: | |
30741 | return NULL; | |
30742 | } | |
30743 | ||
30744 | ||
30745 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30746 | PyObject *obj; | |
30747 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30748 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30749 | Py_INCREF(obj); | |
30750 | return Py_BuildValue((char *)""); | |
30751 | } | |
30752 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30753 | PyObject *resultobj; | |
30754 | wxSimpleHelpProvider *result; | |
30755 | char *kwnames[] = { | |
30756 | NULL | |
30757 | }; | |
30758 | ||
30759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30760 | { | |
30761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30762 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30763 | ||
30764 | wxPyEndAllowThreads(__tstate); | |
30765 | if (PyErr_Occurred()) SWIG_fail; | |
30766 | } | |
30767 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); | |
30768 | return resultobj; | |
30769 | fail: | |
30770 | return NULL; | |
30771 | } | |
30772 | ||
30773 | ||
30774 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30775 | PyObject *obj; | |
30776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30777 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30778 | Py_INCREF(obj); | |
30779 | return Py_BuildValue((char *)""); | |
30780 | } | |
30781 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30782 | PyObject *resultobj; | |
30783 | wxBitmap *arg1 = 0 ; | |
30784 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30785 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30786 | wxGenericDragImage *result; | |
30787 | PyObject * obj0 = 0 ; | |
30788 | PyObject * obj1 = 0 ; | |
30789 | char *kwnames[] = { | |
30790 | (char *) "image",(char *) "cursor", NULL | |
30791 | }; | |
30792 | ||
30793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
30794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, | |
30795 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30796 | SWIG_fail; | |
30797 | if (arg1 == NULL) { | |
30798 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30799 | SWIG_fail; | |
30800 | } | |
30801 | if (obj1) { | |
30802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30803 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30804 | SWIG_fail; | |
30805 | if (arg2 == NULL) { | |
30806 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30807 | SWIG_fail; | |
30808 | } | |
30809 | } | |
30810 | { | |
0439c23b | 30811 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30813 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30814 | ||
30815 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30816 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30817 | } |
30818 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30819 | return resultobj; | |
30820 | fail: | |
30821 | return NULL; | |
30822 | } | |
30823 | ||
30824 | ||
30825 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30826 | PyObject *resultobj; | |
30827 | wxIcon *arg1 = 0 ; | |
30828 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30829 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30830 | wxGenericDragImage *result; | |
30831 | PyObject * obj0 = 0 ; | |
30832 | PyObject * obj1 = 0 ; | |
30833 | char *kwnames[] = { | |
30834 | (char *) "image",(char *) "cursor", NULL | |
30835 | }; | |
30836 | ||
30837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
30838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, | |
30839 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30840 | SWIG_fail; | |
30841 | if (arg1 == NULL) { | |
30842 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30843 | SWIG_fail; | |
30844 | } | |
30845 | if (obj1) { | |
30846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30848 | SWIG_fail; | |
30849 | if (arg2 == NULL) { | |
30850 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30851 | SWIG_fail; | |
30852 | } | |
30853 | } | |
30854 | { | |
0439c23b | 30855 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30857 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30858 | ||
30859 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30860 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30861 | } |
30862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30863 | return resultobj; | |
30864 | fail: | |
30865 | return NULL; | |
30866 | } | |
30867 | ||
30868 | ||
30869 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30870 | PyObject *resultobj; | |
30871 | wxString *arg1 = 0 ; | |
30872 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30873 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30874 | wxGenericDragImage *result; | |
30875 | bool temp1 = False ; | |
30876 | PyObject * obj0 = 0 ; | |
30877 | PyObject * obj1 = 0 ; | |
30878 | char *kwnames[] = { | |
30879 | (char *) "str",(char *) "cursor", NULL | |
30880 | }; | |
30881 | ||
30882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30883 | { | |
30884 | arg1 = wxString_in_helper(obj0); | |
30885 | if (arg1 == NULL) SWIG_fail; | |
30886 | temp1 = True; | |
30887 | } | |
30888 | if (obj1) { | |
30889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, | |
30890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30891 | SWIG_fail; | |
30892 | if (arg2 == NULL) { | |
30893 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30894 | SWIG_fail; | |
30895 | } | |
30896 | } | |
30897 | { | |
0439c23b | 30898 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30900 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30901 | ||
30902 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30903 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30904 | } |
30905 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30906 | { | |
30907 | if (temp1) | |
30908 | delete arg1; | |
30909 | } | |
30910 | return resultobj; | |
30911 | fail: | |
30912 | { | |
30913 | if (temp1) | |
30914 | delete arg1; | |
30915 | } | |
30916 | return NULL; | |
30917 | } | |
30918 | ||
30919 | ||
30920 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30921 | PyObject *resultobj; | |
30922 | wxPyTreeCtrl *arg1 = 0 ; | |
30923 | wxTreeItemId *arg2 = 0 ; | |
30924 | wxGenericDragImage *result; | |
30925 | PyObject * obj0 = 0 ; | |
30926 | PyObject * obj1 = 0 ; | |
30927 | char *kwnames[] = { | |
30928 | (char *) "treeCtrl",(char *) "id", NULL | |
30929 | }; | |
30930 | ||
30931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
30932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, | |
30933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30934 | SWIG_fail; | |
30935 | if (arg1 == NULL) { | |
30936 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30937 | SWIG_fail; | |
30938 | } | |
30939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
30940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30941 | SWIG_fail; | |
30942 | if (arg2 == NULL) { | |
30943 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30944 | SWIG_fail; | |
30945 | } | |
30946 | { | |
0439c23b | 30947 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30949 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30950 | ||
30951 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30952 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30953 | } |
30954 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30955 | return resultobj; | |
30956 | fail: | |
30957 | return NULL; | |
30958 | } | |
30959 | ||
30960 | ||
30961 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30962 | PyObject *resultobj; | |
30963 | wxPyListCtrl *arg1 = 0 ; | |
30964 | long arg2 ; | |
30965 | wxGenericDragImage *result; | |
30966 | PyObject * obj0 = 0 ; | |
30967 | PyObject * obj1 = 0 ; | |
30968 | char *kwnames[] = { | |
30969 | (char *) "listCtrl",(char *) "id", NULL | |
30970 | }; | |
30971 | ||
30972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; | |
30973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
30974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30975 | SWIG_fail; | |
30976 | if (arg1 == NULL) { | |
30977 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
30978 | SWIG_fail; | |
30979 | } | |
30980 | arg2 = (long) SWIG_AsLong(obj1); | |
30981 | if (PyErr_Occurred()) SWIG_fail; | |
30982 | { | |
0439c23b | 30983 | if (!wxPyCheckForApp()) SWIG_fail; |
d55e5bfc RD |
30984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30985 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30986 | ||
30987 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30988 | if (PyErr_Occurred()) SWIG_fail; |
d55e5bfc RD |
30989 | } |
30990 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); | |
30991 | return resultobj; | |
30992 | fail: | |
30993 | return NULL; | |
30994 | } | |
30995 | ||
30996 | ||
30997 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30998 | PyObject *resultobj; | |
30999 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31000 | PyObject * obj0 = 0 ; | |
31001 | char *kwnames[] = { | |
31002 | (char *) "self", NULL | |
31003 | }; | |
31004 | ||
31005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
31006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31008 | { | |
31009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31010 | delete arg1; | |
31011 | ||
31012 | wxPyEndAllowThreads(__tstate); | |
31013 | if (PyErr_Occurred()) SWIG_fail; | |
31014 | } | |
31015 | Py_INCREF(Py_None); resultobj = Py_None; | |
31016 | return resultobj; | |
31017 | fail: | |
31018 | return NULL; | |
31019 | } | |
31020 | ||
31021 | ||
31022 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31023 | PyObject *resultobj; | |
31024 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31025 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
31026 | PyObject * obj0 = 0 ; | |
31027 | PyObject * obj1 = 0 ; | |
31028 | char *kwnames[] = { | |
31029 | (char *) "self",(char *) "bitmap", NULL | |
31030 | }; | |
31031 | ||
31032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
31033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31035 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
31036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31037 | { | |
31038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31039 | (arg1)->SetBackingBitmap(arg2); | |
31040 | ||
31041 | wxPyEndAllowThreads(__tstate); | |
31042 | if (PyErr_Occurred()) SWIG_fail; | |
31043 | } | |
31044 | Py_INCREF(Py_None); resultobj = Py_None; | |
31045 | return resultobj; | |
31046 | fail: | |
31047 | return NULL; | |
31048 | } | |
31049 | ||
31050 | ||
31051 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31052 | PyObject *resultobj; | |
31053 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31054 | wxPoint *arg2 = 0 ; | |
31055 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31056 | bool arg4 = (bool) False ; | |
31057 | wxRect *arg5 = (wxRect *) NULL ; | |
31058 | bool result; | |
31059 | wxPoint temp2 ; | |
31060 | PyObject * obj0 = 0 ; | |
31061 | PyObject * obj1 = 0 ; | |
31062 | PyObject * obj2 = 0 ; | |
31063 | PyObject * obj3 = 0 ; | |
31064 | PyObject * obj4 = 0 ; | |
31065 | char *kwnames[] = { | |
31066 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
31067 | }; | |
31068 | ||
31069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31072 | { | |
31073 | arg2 = &temp2; | |
31074 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31075 | } | |
31076 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31078 | if (obj3) { | |
31079 | arg4 = (bool) SWIG_AsBool(obj3); | |
31080 | if (PyErr_Occurred()) SWIG_fail; | |
31081 | } | |
31082 | if (obj4) { | |
31083 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, | |
31084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31085 | } | |
31086 | { | |
31087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31088 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
31089 | ||
31090 | wxPyEndAllowThreads(__tstate); | |
31091 | if (PyErr_Occurred()) SWIG_fail; | |
31092 | } | |
31093 | { | |
31094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31095 | } | |
31096 | return resultobj; | |
31097 | fail: | |
31098 | return NULL; | |
31099 | } | |
31100 | ||
31101 | ||
31102 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31103 | PyObject *resultobj; | |
31104 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31105 | wxPoint *arg2 = 0 ; | |
31106 | wxWindow *arg3 = (wxWindow *) 0 ; | |
31107 | wxWindow *arg4 = (wxWindow *) 0 ; | |
31108 | bool result; | |
31109 | wxPoint temp2 ; | |
31110 | PyObject * obj0 = 0 ; | |
31111 | PyObject * obj1 = 0 ; | |
31112 | PyObject * obj2 = 0 ; | |
31113 | PyObject * obj3 = 0 ; | |
31114 | char *kwnames[] = { | |
31115 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
31116 | }; | |
31117 | ||
31118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
31119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31121 | { | |
31122 | arg2 = &temp2; | |
31123 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31124 | } | |
31125 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
31126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31127 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
31128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31129 | { | |
31130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31131 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
31132 | ||
31133 | wxPyEndAllowThreads(__tstate); | |
31134 | if (PyErr_Occurred()) SWIG_fail; | |
31135 | } | |
31136 | { | |
31137 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31138 | } | |
31139 | return resultobj; | |
31140 | fail: | |
31141 | return NULL; | |
31142 | } | |
31143 | ||
31144 | ||
31145 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31146 | PyObject *resultobj; | |
31147 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31148 | bool result; | |
31149 | PyObject * obj0 = 0 ; | |
31150 | char *kwnames[] = { | |
31151 | (char *) "self", NULL | |
31152 | }; | |
31153 | ||
31154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
31155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31157 | { | |
31158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31159 | result = (bool)(arg1)->EndDrag(); | |
31160 | ||
31161 | wxPyEndAllowThreads(__tstate); | |
31162 | if (PyErr_Occurred()) SWIG_fail; | |
31163 | } | |
31164 | { | |
31165 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31166 | } | |
31167 | return resultobj; | |
31168 | fail: | |
31169 | return NULL; | |
31170 | } | |
31171 | ||
31172 | ||
31173 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31174 | PyObject *resultobj; | |
31175 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31176 | wxPoint *arg2 = 0 ; | |
31177 | bool result; | |
31178 | wxPoint temp2 ; | |
31179 | PyObject * obj0 = 0 ; | |
31180 | PyObject * obj1 = 0 ; | |
31181 | char *kwnames[] = { | |
31182 | (char *) "self",(char *) "pt", NULL | |
31183 | }; | |
31184 | ||
31185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
31186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31188 | { | |
31189 | arg2 = &temp2; | |
31190 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31191 | } | |
31192 | { | |
31193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31194 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
31195 | ||
31196 | wxPyEndAllowThreads(__tstate); | |
31197 | if (PyErr_Occurred()) SWIG_fail; | |
31198 | } | |
31199 | { | |
31200 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31201 | } | |
31202 | return resultobj; | |
31203 | fail: | |
31204 | return NULL; | |
31205 | } | |
31206 | ||
31207 | ||
31208 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31209 | PyObject *resultobj; | |
31210 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31211 | bool result; | |
31212 | PyObject * obj0 = 0 ; | |
31213 | char *kwnames[] = { | |
31214 | (char *) "self", NULL | |
31215 | }; | |
31216 | ||
31217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
31218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31220 | { | |
31221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31222 | result = (bool)(arg1)->Show(); | |
31223 | ||
31224 | wxPyEndAllowThreads(__tstate); | |
31225 | if (PyErr_Occurred()) SWIG_fail; | |
31226 | } | |
31227 | { | |
31228 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31229 | } | |
31230 | return resultobj; | |
31231 | fail: | |
31232 | return NULL; | |
31233 | } | |
31234 | ||
31235 | ||
31236 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31237 | PyObject *resultobj; | |
31238 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31239 | bool result; | |
31240 | PyObject * obj0 = 0 ; | |
31241 | char *kwnames[] = { | |
31242 | (char *) "self", NULL | |
31243 | }; | |
31244 | ||
31245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
31246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31248 | { | |
31249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31250 | result = (bool)(arg1)->Hide(); | |
31251 | ||
31252 | wxPyEndAllowThreads(__tstate); | |
31253 | if (PyErr_Occurred()) SWIG_fail; | |
31254 | } | |
31255 | { | |
31256 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31257 | } | |
31258 | return resultobj; | |
31259 | fail: | |
31260 | return NULL; | |
31261 | } | |
31262 | ||
31263 | ||
31264 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31265 | PyObject *resultobj; | |
31266 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31267 | wxPoint *arg2 = 0 ; | |
31268 | wxRect result; | |
31269 | wxPoint temp2 ; | |
31270 | PyObject * obj0 = 0 ; | |
31271 | PyObject * obj1 = 0 ; | |
31272 | char *kwnames[] = { | |
31273 | (char *) "self",(char *) "pos", NULL | |
31274 | }; | |
31275 | ||
31276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
31277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31279 | { | |
31280 | arg2 = &temp2; | |
31281 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31282 | } | |
31283 | { | |
31284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31285 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31286 | ||
31287 | wxPyEndAllowThreads(__tstate); | |
31288 | if (PyErr_Occurred()) SWIG_fail; | |
31289 | } | |
31290 | { | |
31291 | wxRect * resultptr; | |
31292 | resultptr = new wxRect((wxRect &) result); | |
31293 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); | |
31294 | } | |
31295 | return resultobj; | |
31296 | fail: | |
31297 | return NULL; | |
31298 | } | |
31299 | ||
31300 | ||
31301 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31302 | PyObject *resultobj; | |
31303 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31304 | wxDC *arg2 = 0 ; | |
31305 | wxPoint *arg3 = 0 ; | |
31306 | bool result; | |
31307 | wxPoint temp3 ; | |
31308 | PyObject * obj0 = 0 ; | |
31309 | PyObject * obj1 = 0 ; | |
31310 | PyObject * obj2 = 0 ; | |
31311 | char *kwnames[] = { | |
31312 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31313 | }; | |
31314 | ||
31315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
31316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31318 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31319 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31320 | SWIG_fail; | |
31321 | if (arg2 == NULL) { | |
31322 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31323 | SWIG_fail; | |
31324 | } | |
31325 | { | |
31326 | arg3 = &temp3; | |
31327 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31328 | } | |
31329 | { | |
31330 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31331 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31332 | ||
31333 | wxPyEndAllowThreads(__tstate); | |
31334 | if (PyErr_Occurred()) SWIG_fail; | |
31335 | } | |
31336 | { | |
31337 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31338 | } | |
31339 | return resultobj; | |
31340 | fail: | |
31341 | return NULL; | |
31342 | } | |
31343 | ||
31344 | ||
31345 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31346 | PyObject *resultobj; | |
31347 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31348 | wxDC *arg2 = 0 ; | |
31349 | wxMemoryDC *arg3 = 0 ; | |
31350 | wxRect *arg4 = 0 ; | |
31351 | wxRect *arg5 = 0 ; | |
31352 | bool result; | |
31353 | wxRect temp4 ; | |
31354 | wxRect temp5 ; | |
31355 | PyObject * obj0 = 0 ; | |
31356 | PyObject * obj1 = 0 ; | |
31357 | PyObject * obj2 = 0 ; | |
31358 | PyObject * obj3 = 0 ; | |
31359 | PyObject * obj4 = 0 ; | |
31360 | char *kwnames[] = { | |
31361 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31362 | }; | |
31363 | ||
31364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31369 | SWIG_fail; | |
31370 | if (arg2 == NULL) { | |
31371 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31372 | SWIG_fail; | |
31373 | } | |
31374 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, | |
31375 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31376 | SWIG_fail; | |
31377 | if (arg3 == NULL) { | |
31378 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
31379 | SWIG_fail; | |
31380 | } | |
31381 | { | |
31382 | arg4 = &temp4; | |
31383 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31384 | } | |
31385 | { | |
31386 | arg5 = &temp5; | |
31387 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31388 | } | |
31389 | { | |
31390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31391 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31392 | ||
31393 | wxPyEndAllowThreads(__tstate); | |
31394 | if (PyErr_Occurred()) SWIG_fail; | |
31395 | } | |
31396 | { | |
31397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31398 | } | |
31399 | return resultobj; | |
31400 | fail: | |
31401 | return NULL; | |
31402 | } | |
31403 | ||
31404 | ||
31405 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31406 | PyObject *resultobj; | |
31407 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31408 | wxPoint *arg2 = 0 ; | |
31409 | wxPoint *arg3 = 0 ; | |
31410 | bool arg4 ; | |
31411 | bool arg5 ; | |
31412 | bool result; | |
31413 | wxPoint temp2 ; | |
31414 | wxPoint temp3 ; | |
31415 | PyObject * obj0 = 0 ; | |
31416 | PyObject * obj1 = 0 ; | |
31417 | PyObject * obj2 = 0 ; | |
31418 | PyObject * obj3 = 0 ; | |
31419 | PyObject * obj4 = 0 ; | |
31420 | char *kwnames[] = { | |
31421 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31422 | }; | |
31423 | ||
31424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
31425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, | |
31426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31427 | { | |
31428 | arg2 = &temp2; | |
31429 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31430 | } | |
31431 | { | |
31432 | arg3 = &temp3; | |
31433 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31434 | } | |
31435 | arg4 = (bool) SWIG_AsBool(obj3); | |
31436 | if (PyErr_Occurred()) SWIG_fail; | |
31437 | arg5 = (bool) SWIG_AsBool(obj4); | |
31438 | if (PyErr_Occurred()) SWIG_fail; | |
31439 | { | |
31440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31441 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31442 | ||
31443 | wxPyEndAllowThreads(__tstate); | |
31444 | if (PyErr_Occurred()) SWIG_fail; | |
31445 | } | |
31446 | { | |
31447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31448 | } | |
31449 | return resultobj; | |
31450 | fail: | |
31451 | return NULL; | |
31452 | } | |
31453 | ||
31454 | ||
31455 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31456 | PyObject *obj; | |
31457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31458 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31459 | Py_INCREF(obj); | |
31460 | return Py_BuildValue((char *)""); | |
31461 | } | |
31462 | static PyMethodDef SwigMethods[] = { | |
31463 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31464 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31465 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31467 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31468 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31469 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31470 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31471 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31472 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31475 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31476 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31477 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31478 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31482 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31483 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31484 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31485 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31488 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31489 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31490 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31491 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31494 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31495 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31496 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31497 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31503 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31504 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31505 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31509 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31510 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31511 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31512 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31517 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31518 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, | |
121b9a67 RD |
31519 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31520 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
31521 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31522 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31524 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31525 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31526 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31529 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31530 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31531 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31538 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31539 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31540 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31543 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31544 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31545 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31550 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31551 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31552 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31553 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31554 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31555 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31556 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31557 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31560 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31561 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31563 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31564 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31565 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31572 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31573 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31574 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31575 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31580 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, | |
31588 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31589 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31590 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31592 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31596 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
908b74cd | 31597 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31598 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
31599 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31604 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31609 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31615 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31616 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
a07a67e6 | 31622 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31623 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31624 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31628 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31639 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31641 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31642 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31643 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31644 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31645 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31646 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31647 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31658 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31659 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31679 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
31680 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
31681 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31682 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31683 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31684 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31685 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31687 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31688 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31689 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31690 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31700 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31701 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31702 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31713 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31714 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31715 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31721 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31722 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31725 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31726 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
31727 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
31731 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31741 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31747 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31748 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31749 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31754 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31755 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31756 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31762 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31780 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31781 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31782 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31786 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31788 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31789 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31790 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31796 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31809 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31810 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31811 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31817 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31820 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31821 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31822 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31825 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31826 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31827 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31828 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31829 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31830 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31835 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31837 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31838 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31839 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31842 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31847 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31850 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31851 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31852 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31859 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31864 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31866 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31872 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31873 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31874 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31875 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31877 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31878 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
31879 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31880 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
31881 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, | |
31882 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31893 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31894 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31895 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31896 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31897 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31898 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31899 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31900 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31901 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31902 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31903 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31904 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31905 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31906 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31907 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31908 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31909 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31910 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31911 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31912 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31913 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31914 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31915 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31916 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31917 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31918 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
31919 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, | |
31920 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31921 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31922 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31923 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31924 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31925 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
f20a2e1f | 31926 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
31927 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31928 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31929 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31930 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31931 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31932 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31933 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31934 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31935 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31936 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31937 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31938 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31939 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31940 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31941 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31942 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31943 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31944 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31945 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31946 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31947 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31948 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31949 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31950 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31951 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31952 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31953 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31954 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31955 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31956 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31957 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31958 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31959 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31960 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31961 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31962 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31963 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31964 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31965 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31966 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31967 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31968 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31969 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31970 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31971 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31972 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31973 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31974 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31975 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31976 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31977 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31978 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31979 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31980 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31981 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31982 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31983 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31984 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31985 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31986 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31987 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31988 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31989 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31990 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31991 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31992 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31993 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31994 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31995 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31996 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31997 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31998 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31999 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
32000 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
32001 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
32002 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
32003 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
32004 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
32005 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
32006 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
32007 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
32008 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
32009 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
32010 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
32011 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
32012 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
32013 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
32014 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
32015 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
32016 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
32017 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
32018 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
32019 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32020 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32021 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32022 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
32023 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32024 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32025 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
32026 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
32027 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
32028 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
32029 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
32030 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
32031 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
32032 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
32033 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
32034 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
32035 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
32036 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
32037 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
32038 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32039 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32040 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32041 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32042 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
32043 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
32044 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
32045 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
32046 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
32047 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
32048 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
32049 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32050 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32051 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
32052 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
32053 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
32054 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
32055 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32056 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32057 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
32058 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, | |
32059 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, | |
32060 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
32061 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
32062 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
32063 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
32064 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
32065 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
32066 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
32067 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
32068 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32069 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32070 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
32071 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
32072 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
32073 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
32074 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
32075 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
32076 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
32077 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
32078 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
32079 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
32080 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
32081 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
32082 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
32083 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32084 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32085 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32086 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32087 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
32088 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
32089 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, | |
32090 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
32091 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
32092 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
32093 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
32094 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
32095 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
32096 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
32097 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
32098 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
32099 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
32100 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
32101 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
32102 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
32103 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
32104 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
32105 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
32106 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
32107 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
32108 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
32109 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
32110 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
32111 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
32112 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
32113 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
32114 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
32115 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
32116 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
32117 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
32118 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
32119 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
32120 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
32121 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
32122 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
32123 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
32124 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
32125 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
32126 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
32127 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
32128 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
32129 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
32130 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
32131 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
32132 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, | |
32133 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, | |
32134 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32135 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32136 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32137 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
32138 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
32139 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
32140 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
32141 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
32142 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
32143 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32144 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32145 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
32146 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32147 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
32148 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
32149 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32150 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
32151 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32152 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
32153 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32154 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32155 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
32156 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
32157 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
32158 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
32159 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
32160 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
32161 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
32162 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
32163 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
32164 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
32165 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
32166 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
32167 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
32168 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
32169 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
32170 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
32171 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
32172 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
32173 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
32174 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
32175 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
32176 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
32177 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
32178 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
32179 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
32180 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
32181 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
32182 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
32183 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
32184 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
32185 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
32186 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
32187 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
32188 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
32189 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
32190 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
32191 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
32192 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
32193 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
32194 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
32195 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
32196 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
32197 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, | |
32198 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, | |
32199 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
32200 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, | |
32201 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
32202 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
32203 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32204 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
32205 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
32206 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
32207 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
32208 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
110da5b0 RD |
32209 | { (char *)"TreeCtrl_SetState", (PyCFunction) _wrap_TreeCtrl_SetState, METH_VARARGS | METH_KEYWORDS }, |
32210 | { (char *)"TreeCtrl_GetState", (PyCFunction) _wrap_TreeCtrl_GetState, METH_VARARGS | METH_KEYWORDS }, | |
d55e5bfc RD |
32211 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
32212 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
32213 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32214 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32215 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32216 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
32217 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
32218 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
32219 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
32220 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
32221 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
32222 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
32223 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
32224 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
32225 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
32226 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
32227 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
32228 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
32229 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32230 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32231 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
32232 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
32233 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
32234 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
32235 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32236 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
32237 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
32238 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
32239 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
32240 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
32241 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, | |
32242 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 32243 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
32244 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
32245 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
32246 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32247 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32248 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
32249 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32250 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32251 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32252 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
32253 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
32254 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
32255 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32256 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
32257 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
32258 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
32259 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
32260 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
32261 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
32262 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, | |
32263 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
caef1a4d | 32264 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d55e5bfc RD |
32265 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
32266 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
32267 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32268 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32269 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
32270 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
32271 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32272 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32273 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
32274 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32275 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32276 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32277 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32278 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
32279 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
32280 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
32281 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
32282 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
32283 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
32284 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
32285 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
32286 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
32287 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, | |
32288 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
32289 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
32290 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
32291 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
32292 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32293 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
32294 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
32295 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
32296 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
32297 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32298 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
32299 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
32300 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
32301 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
32302 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
32303 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
32304 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
32305 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
32306 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32307 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32308 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32309 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
32310 | { NULL, NULL } | |
32311 | }; | |
32312 | ||
32313 | ||
32314 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32315 | ||
32316 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32317 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32318 | } | |
32319 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32320 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32321 | } | |
32322 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32323 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32324 | } | |
32325 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32326 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32327 | } | |
32328 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32329 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32330 | } | |
32331 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32332 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32333 | } | |
32334 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32335 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32336 | } | |
32337 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32338 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32339 | } | |
32340 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32341 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32342 | } | |
32343 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32344 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32345 | } | |
32346 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32347 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32348 | } | |
32349 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32350 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32351 | } | |
32352 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32353 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32354 | } | |
32355 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32356 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32357 | } | |
32358 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32359 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32360 | } | |
32361 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32362 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32363 | } | |
32364 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32365 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32366 | } | |
32367 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32368 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32369 | } | |
32370 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32371 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32372 | } | |
32373 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32374 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32375 | } | |
32376 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32377 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32378 | } | |
32379 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32380 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32381 | } | |
32382 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32383 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32384 | } | |
32385 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32386 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32387 | } | |
32388 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32389 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32390 | } | |
32391 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32392 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32393 | } | |
32394 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32395 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32396 | } | |
32397 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32398 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32399 | } | |
32400 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32401 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32402 | } | |
32403 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32404 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32405 | } | |
32406 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32407 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32408 | } | |
32409 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32410 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32411 | } | |
32412 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32413 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32414 | } | |
32415 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32416 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32417 | } | |
32418 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32419 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32420 | } | |
32421 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32422 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32423 | } | |
32424 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32425 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32426 | } | |
32427 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32428 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32429 | } | |
32430 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32431 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32432 | } | |
32433 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32434 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32435 | } | |
32436 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32437 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32438 | } | |
32439 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32440 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32441 | } | |
32442 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32443 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32444 | } | |
32445 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32446 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32447 | } | |
32448 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32449 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32450 | } | |
32451 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32452 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32453 | } | |
32454 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32455 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32456 | } | |
32457 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32458 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32459 | } | |
32460 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32461 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32462 | } | |
32463 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32464 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32465 | } | |
32466 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32467 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32468 | } | |
32469 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32470 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32471 | } | |
32472 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { | |
32473 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32474 | } | |
32475 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { | |
32476 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32477 | } | |
32478 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32479 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32480 | } | |
32481 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32482 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32483 | } | |
32484 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32485 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32486 | } | |
32487 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32488 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32489 | } | |
32490 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32491 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32492 | } | |
32493 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32494 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32495 | } | |
32496 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32497 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32498 | } | |
32499 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32500 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32501 | } | |
32502 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32503 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32504 | } | |
32505 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32506 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32507 | } | |
32508 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32509 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32510 | } | |
32511 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32512 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32513 | } | |
32514 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32515 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32516 | } | |
32517 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32518 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32519 | } | |
32520 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32521 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32522 | } | |
32523 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32524 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32525 | } | |
32526 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32527 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32528 | } | |
32529 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32530 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32531 | } | |
32532 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32533 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32534 | } | |
32535 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32536 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32537 | } | |
32538 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32539 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32540 | } | |
32541 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32542 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32543 | } | |
32544 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32545 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32546 | } | |
32547 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32548 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32549 | } | |
32550 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32551 | return (void *)((wxControl *) ((wxButton *) x)); | |
32552 | } | |
32553 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32554 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32555 | } | |
32556 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32557 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32558 | } | |
32559 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32560 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32561 | } | |
32562 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32563 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32564 | } | |
32565 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32566 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32567 | } | |
32568 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32569 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32570 | } | |
32571 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32572 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32573 | } | |
32574 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32575 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32576 | } | |
32577 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32578 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32579 | } | |
32580 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32581 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32582 | } | |
32583 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32584 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32585 | } | |
32586 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32587 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32588 | } | |
32589 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32590 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32591 | } | |
32592 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32593 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32594 | } | |
32595 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32596 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32597 | } | |
32598 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
32599 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
32600 | } | |
32601 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32602 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32603 | } | |
32604 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32605 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32606 | } | |
32607 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32608 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32609 | } | |
32610 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32611 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32612 | } | |
32613 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { | |
32614 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32615 | } | |
32616 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { | |
32617 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32618 | } | |
32619 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32620 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32621 | } | |
32622 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32623 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32624 | } | |
32625 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32626 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32627 | } | |
32628 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32629 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32630 | } | |
32631 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32632 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32633 | } | |
32634 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32635 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32636 | } | |
32637 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32638 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32639 | } | |
32640 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32641 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32642 | } | |
32643 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32644 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32645 | } | |
32646 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32647 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32648 | } | |
32649 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32650 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32651 | } | |
32652 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32653 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32654 | } | |
32655 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32656 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32657 | } | |
32658 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32659 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32660 | } | |
32661 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32662 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32663 | } | |
32664 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32665 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32666 | } | |
32667 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32668 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32669 | } | |
32670 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32671 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32672 | } | |
32673 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32674 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32675 | } | |
32676 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32677 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32678 | } | |
32679 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32680 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32681 | } | |
32682 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32683 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32684 | } | |
32685 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32686 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32687 | } | |
32688 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32689 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32690 | } | |
32691 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32692 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32693 | } | |
32694 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32695 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32696 | } | |
32697 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32698 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32699 | } | |
32700 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32701 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32702 | } | |
32703 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32704 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32705 | } | |
32706 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32707 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32708 | } | |
32709 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32710 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32711 | } | |
32712 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32713 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32714 | } | |
32715 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32716 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32717 | } | |
32718 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32719 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32720 | } | |
32721 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32722 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32723 | } | |
32724 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32725 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32726 | } | |
32727 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32728 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32729 | } | |
32730 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32731 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32732 | } | |
32733 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32734 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32735 | } | |
32736 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32737 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32738 | } | |
32739 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32740 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32741 | } | |
32742 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32743 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32744 | } | |
32745 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32746 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32747 | } | |
32748 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32749 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32750 | } | |
32751 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32752 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32753 | } | |
32754 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32755 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32756 | } | |
32757 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32758 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32759 | } | |
32760 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32761 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32762 | } | |
32763 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32764 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32765 | } | |
32766 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32767 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32768 | } | |
32769 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32770 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32771 | } | |
32772 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32773 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32774 | } | |
32775 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32776 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32777 | } | |
32778 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32779 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32780 | } | |
32781 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32782 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32783 | } | |
32784 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32785 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32786 | } | |
32787 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32788 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32789 | } | |
32790 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32791 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32792 | } | |
32793 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32794 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32795 | } | |
32796 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32797 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32798 | } | |
32799 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32800 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32801 | } | |
32802 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32803 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32804 | } | |
32805 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32806 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32807 | } | |
32808 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32809 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32810 | } | |
32811 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32812 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32813 | } | |
32814 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32815 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32816 | } | |
32817 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32818 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32819 | } | |
32820 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32821 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32822 | } | |
32823 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32825 | } | |
32826 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32827 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32828 | } | |
32829 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32830 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32831 | } | |
32832 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32833 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32834 | } | |
32835 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32836 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32837 | } | |
32838 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32839 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32840 | } | |
32841 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32842 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32843 | } | |
32844 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32845 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32846 | } | |
32847 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32848 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32849 | } | |
32850 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32851 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32852 | } | |
32853 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32854 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32855 | } | |
32856 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32858 | } | |
32859 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32860 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32861 | } | |
32862 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32864 | } | |
32865 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32866 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32867 | } | |
32868 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32869 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32870 | } | |
32871 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32872 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32873 | } | |
32874 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32875 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32876 | } | |
32877 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32878 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32879 | } | |
32880 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32881 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32882 | } | |
32883 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32884 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32885 | } | |
32886 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32887 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32888 | } | |
32889 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32890 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32891 | } | |
32892 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32893 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32894 | } | |
32895 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32896 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32897 | } | |
32898 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32899 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32900 | } | |
32901 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32902 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32903 | } | |
32904 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32905 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32906 | } | |
32907 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32908 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32909 | } | |
32910 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32911 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32912 | } | |
32913 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32914 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32915 | } | |
32916 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32917 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32918 | } | |
32919 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32920 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32921 | } | |
32922 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32923 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32924 | } | |
32925 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32926 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32927 | } | |
32928 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32929 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32930 | } | |
32931 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32932 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32933 | } | |
32934 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32935 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32936 | } | |
32937 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32938 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32939 | } | |
32940 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32941 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32942 | } | |
32943 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32944 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32945 | } | |
32946 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32947 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32948 | } | |
32949 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32950 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32951 | } | |
32952 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32953 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32954 | } | |
32955 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32956 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32957 | } | |
32958 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32959 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32960 | } | |
32961 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32962 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32963 | } | |
32964 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32965 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32966 | } | |
32967 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32968 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32969 | } | |
32970 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32971 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32972 | } | |
32973 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32974 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32975 | } | |
32976 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32977 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32978 | } | |
32979 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32980 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32981 | } | |
32982 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32983 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32984 | } | |
32985 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32986 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32987 | } | |
32988 | static void *_p_wxButtonTo_p_wxObject(void *x) { | |
32989 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32990 | } | |
32991 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { | |
32992 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32993 | } | |
32994 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { | |
32995 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32996 | } | |
32997 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32998 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32999 | } | |
33000 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { | |
33001 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
33002 | } | |
33003 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { | |
33004 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
33005 | } | |
33006 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
33007 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
33008 | } | |
33009 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
33010 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33011 | } | |
33012 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
33013 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
33014 | } | |
33015 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
33016 | return (void *)((wxObject *) ((wxListItem *) x)); | |
33017 | } | |
33018 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
33019 | return (void *)((wxObject *) ((wxImage *) x)); | |
33020 | } | |
33021 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
33022 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
33023 | } | |
33024 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
33025 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
33026 | } | |
33027 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { | |
33028 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33029 | } | |
33030 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { | |
33031 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
33032 | } | |
33033 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { | |
33034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
33035 | } | |
33036 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
33037 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33038 | } | |
33039 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
33040 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33041 | } | |
33042 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
33043 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33044 | } | |
33045 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
33046 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
33047 | } | |
33048 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
33049 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
33050 | } | |
33051 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
33052 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
33053 | } | |
33054 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
33055 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
33056 | } | |
33057 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
33058 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
33059 | } | |
33060 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
33061 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
33062 | } | |
33063 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
33064 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33065 | } | |
33066 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
33067 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
33068 | } | |
33069 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
33070 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
33071 | } | |
33072 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
33073 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
33074 | } | |
33075 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
33076 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
33077 | } | |
33078 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
33079 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
33080 | } | |
33081 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
33082 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33083 | } | |
33084 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
33085 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33086 | } | |
33087 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
33088 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
33089 | } | |
33090 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
33091 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
33092 | } | |
33093 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
33094 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
33095 | } | |
33096 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
33097 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
33098 | } | |
33099 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
33100 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33101 | } | |
33102 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
33103 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
33104 | } | |
33105 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
33106 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
33107 | } | |
33108 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
33109 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33110 | } | |
33111 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
33112 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
33113 | } | |
33114 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
33115 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
33116 | } | |
33117 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
33118 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
33119 | } | |
33120 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
33121 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
33122 | } | |
33123 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
33124 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
33125 | } | |
33126 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
33127 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
33128 | } | |
33129 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
33130 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
33131 | } | |
33132 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
33133 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
33134 | } | |
33135 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
33136 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
33137 | } | |
33138 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
33139 | return (void *)((wxWindow *) ((wxControl *) x)); | |
33140 | } | |
33141 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
33142 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
33143 | } | |
33144 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
33145 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33146 | } | |
33147 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
33148 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
33149 | } | |
33150 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
33151 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
33152 | } | |
33153 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
33154 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
33155 | } | |
33156 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
33157 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
33158 | } | |
33159 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
33160 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
33161 | } | |
33162 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
33163 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
33164 | } | |
33165 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
33166 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
33167 | } | |
33168 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
33169 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
33170 | } | |
33171 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
33172 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
33173 | } | |
33174 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
33175 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
33176 | } | |
33177 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
33178 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
33179 | } | |
33180 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
33181 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
33182 | } | |
33183 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
33184 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
33185 | } | |
33186 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
33187 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
33188 | } | |
33189 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
33190 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
33191 | } | |
33192 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
33193 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
33194 | } | |
33195 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
33196 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
33197 | } | |
33198 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
33199 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
33200 | } | |
33201 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
33202 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
33203 | } | |
33204 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
33205 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
33206 | } | |
33207 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
33208 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
33209 | } | |
33210 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
33211 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
33212 | } | |
33213 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
33214 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
33215 | } | |
33216 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
33217 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
33218 | } | |
33219 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
33220 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
33221 | } | |
33222 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
33223 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
33224 | } | |
33225 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
33226 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
33227 | } | |
33228 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
33229 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
33230 | } | |
33231 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
33232 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
33233 | } | |
33234 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
33235 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
33236 | } | |
33237 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
33238 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
33239 | } | |
33240 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
33241 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
33242 | } | |
33243 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
33244 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
33245 | } | |
33246 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
33247 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33248 | } | |
33249 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33250 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33251 | } | |
33252 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
33253 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33254 | } | |
33255 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33256 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33257 | } | |
33258 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33259 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33260 | } | |
33261 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { | |
33262 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33263 | } | |
33264 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { | |
33265 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33266 | } | |
33267 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33268 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33269 | } | |
33270 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33271 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33272 | } | |
33273 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
33274 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
33275 | } | |
33276 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33277 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33278 | } | |
33279 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33280 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33281 | } | |
33282 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33283 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33284 | } | |
33285 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33286 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33287 | } | |
33288 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33289 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33290 | } | |
33291 | 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}}; | |
33292 | 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}}; | |
33293 | 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}}; | |
33294 | 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}}; | |
33295 | 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}}; | |
33296 | 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}}; | |
33297 | 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}}; | |
33298 | 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}}; | |
33299 | 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}}; | |
33300 | 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}}; | |
33301 | 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}}; | |
33302 | 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}}; | |
33303 | 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}}; | |
33304 | 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}}; | |
33305 | 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}}; | |
33306 | 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}}; | |
33307 | 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}}; | |
33308 | 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}}; | |
33309 | 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}}; | |
33310 | 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}}; | |
33311 | 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}}; | |
33312 | 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}}; | |
33313 | 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}}; | |
33314 | 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}}; | |
33315 | 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}}; | |
33316 | 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}}; | |
33317 | 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}}; | |
33318 | 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}}; | |
33319 | 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}}; | |
33320 | 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}}; | |
33321 | 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}}; | |
33322 | 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}}; | |
33323 | 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}}; | |
33324 | 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}}; | |
33325 | 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}}; | |
33326 | 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}}; | |
33327 | 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}}; | |
33328 | 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}}; | |
33329 | 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}}; | |
33330 | 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}}; | |
33331 | 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}}; | |
33332 | 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}}; | |
33333 | 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}}; | |
33334 | 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}}; | |
33335 | 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}}; | |
33336 | 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}}; | |
33337 | 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}}; | |
33338 | 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}}; | |
33339 | 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}}; | |
33340 | 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}}; | |
33341 | 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}}; | |
33342 | 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}}; | |
33343 | 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}}; | |
33344 | 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}}; | |
33345 | 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}}; | |
33346 | 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}}; | |
33347 | 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}}; | |
33348 | 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}}; | |
33349 | 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}}; | |
33350 | 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}}; | |
33351 | 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}}; | |
33352 | 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}}; | |
33353 | 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}}; | |
33354 | 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}}; | |
33355 | 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}}; | |
33356 | 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}}; | |
33357 | 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}}; | |
33358 | 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}}; | |
33359 | 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}}; | |
33360 | 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}}; | |
33361 | 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}}; | |
33362 | 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}}; | |
33363 | 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}}; | |
33364 | 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}}; | |
33365 | 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}}; | |
33366 | 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}}; | |
33367 | 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}}; | |
33368 | 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}}; | |
33369 | 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}}; | |
33370 | 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}}; | |
33371 | 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}}; | |
33372 | 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}}; | |
33373 | 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}}; | |
33374 | 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}}; | |
33375 | 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}}; | |
33376 | ||
33377 | static swig_type_info *swig_types_initial[] = { | |
33378 | _swigt__p_wxTextUrlEvent, | |
33379 | _swigt__p_wxBookCtrlEvent, | |
33380 | _swigt__p_wxSizer, | |
33381 | _swigt__p_wxCheckBox, | |
33382 | _swigt__p_wxPyTreeCtrl, | |
33383 | _swigt__p_wxEvent, | |
33384 | _swigt__p_wxGenericDirCtrl, | |
33385 | _swigt__p_bool, | |
33386 | _swigt__p_wxPyTreeItemData, | |
33387 | _swigt__p_wxItemContainer, | |
33388 | _swigt__p_wxPyListCtrl, | |
33389 | _swigt__p_wxDirFilterListCtrl, | |
33390 | _swigt__p_wxStaticLine, | |
33391 | _swigt__p_wxControl, | |
33392 | _swigt__p_wxPyControl, | |
33393 | _swigt__p_wxGauge, | |
33394 | _swigt__p_wxToolBarBase, | |
33395 | _swigt__p_wxFont, | |
33396 | _swigt__p_wxToggleButton, | |
33397 | _swigt__p_wxRadioButton, | |
33398 | _swigt__p_wxChoice, | |
33399 | _swigt__p_wxMemoryDC, | |
33400 | _swigt__p_wxListItemAttr, | |
33401 | _swigt__p_void, | |
33402 | _swigt__p_int, | |
33403 | _swigt__p_wxSize, | |
33404 | _swigt__p_wxDC, | |
33405 | _swigt__p_wxListView, | |
33406 | _swigt__p_wxIcon, | |
33407 | _swigt__p_wxVisualAttributes, | |
33408 | _swigt__p_wxTextCtrl, | |
33409 | _swigt__p_wxNotebook, | |
33410 | _swigt__p_wxNotifyEvent, | |
33411 | _swigt__p_wxArrayString, | |
33412 | _swigt__p_wxListbook, | |
33413 | _swigt__p_wxStaticBitmap, | |
33414 | _swigt__p_wxSlider, | |
33415 | _swigt__p_wxStaticBox, | |
33416 | _swigt__p_wxArrayInt, | |
33417 | _swigt__p_wxContextHelp, | |
33418 | _swigt__p_long, | |
33419 | _swigt__p_wxEvtHandler, | |
33420 | _swigt__p_wxListEvent, | |
33421 | _swigt__p_wxCheckListBox, | |
33422 | _swigt__p_wxListBox, | |
33423 | _swigt__p_wxBookCtrl, | |
33424 | _swigt__p_wxSpinButton, | |
33425 | _swigt__p_wxButton, | |
33426 | _swigt__p_wxBitmapButton, | |
33427 | _swigt__p_wxRect, | |
33428 | _swigt__p_wxContextHelpButton, | |
33429 | _swigt__p_wxRadioBox, | |
33430 | _swigt__p_wxScrollBar, | |
33431 | _swigt__p_char, | |
33432 | _swigt__p_wxTreeItemId, | |
33433 | _swigt__p_wxComboBox, | |
33434 | _swigt__p_wxHelpEvent, | |
33435 | _swigt__p_wxListItem, | |
33436 | _swigt__p_wxNotebookSizer, | |
33437 | _swigt__p_wxSpinEvent, | |
33438 | _swigt__p_wxGenericDragImage, | |
33439 | _swigt__p_wxSpinCtrl, | |
33440 | _swigt__p_wxImageList, | |
33441 | _swigt__p_wxHelpProvider, | |
33442 | _swigt__p_wxTextAttr, | |
33443 | _swigt__p_wxSimpleHelpProvider, | |
33444 | _swigt__p_wxPoint, | |
33445 | _swigt__p_wxListbookEvent, | |
33446 | _swigt__p_wxNotebookEvent, | |
33447 | _swigt__p_wxObject, | |
33448 | _swigt__p_wxCursor, | |
33449 | _swigt__p_wxKeyEvent, | |
33450 | _swigt__p_wxWindow, | |
33451 | _swigt__p_wxString, | |
33452 | _swigt__p_wxBitmap, | |
33453 | _swigt__p_wxTreeEvent, | |
33454 | _swigt__p_wxMouseEvent, | |
33455 | _swigt__p_wxCommandEvent, | |
33456 | _swigt__p_wxStaticText, | |
33457 | _swigt__p_wxControlWithItems, | |
33458 | _swigt__p_wxToolBarToolBase, | |
33459 | _swigt__p_wxColour, | |
33460 | _swigt__p_wxToolBar, | |
33461 | _swigt__p_wxBookCtrlSizer, | |
33462 | _swigt__p_wxValidator, | |
33463 | 0 | |
33464 | }; | |
33465 | ||
33466 | ||
33467 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33468 | ||
33469 | static swig_const_info swig_const_table[] = { | |
33470 | {0}}; | |
33471 | ||
33472 | #ifdef __cplusplus | |
33473 | } | |
33474 | #endif | |
33475 | ||
33476 | #ifdef __cplusplus | |
33477 | extern "C" | |
33478 | #endif | |
33479 | SWIGEXPORT(void) SWIG_init(void) { | |
33480 | static PyObject *SWIG_globals = 0; | |
33481 | static int typeinit = 0; | |
33482 | PyObject *m, *d; | |
33483 | int i; | |
33484 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33485 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33486 | d = PyModule_GetDict(m); | |
33487 | ||
33488 | if (!typeinit) { | |
33489 | for (i = 0; swig_types_initial[i]; i++) { | |
33490 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33491 | } | |
33492 | typeinit = 1; | |
33493 | } | |
33494 | SWIG_InstallConstants(d,swig_const_table); | |
33495 | ||
33496 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); | |
33497 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
33498 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); | |
33499 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33500 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33501 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33502 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33503 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
33504 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); | |
33505 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); | |
33506 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33507 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33508 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33509 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33510 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
33511 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); | |
33512 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33513 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
33514 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); | |
33515 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33516 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33517 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
33518 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); | |
33519 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33520 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33521 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33522 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
33523 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); | |
33524 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33525 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33526 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33527 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33528 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33529 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33530 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33531 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33532 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33533 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33534 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33535 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33536 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33537 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33538 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33539 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33540 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33541 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33542 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33543 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33544 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33545 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33546 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33547 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33548 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33549 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33550 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33551 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33552 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33553 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33554 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33555 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33556 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33557 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33558 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33559 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33560 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33561 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33562 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33563 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
33564 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); | |
33565 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33566 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33567 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
33568 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); | |
33569 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33570 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
33571 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); | |
33572 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33573 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33574 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
33575 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); | |
33576 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); | |
33577 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33578 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33579 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
33580 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); | |
33581 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); | |
33582 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); | |
33583 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33584 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33585 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33586 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33587 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33588 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33589 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33590 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33591 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
33592 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); | |
33593 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
33594 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); | |
33595 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33596 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33597 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33598 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33599 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
33600 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); | |
33601 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
33602 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); | |
33603 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33604 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33605 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33606 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33607 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33608 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33609 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33610 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33611 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33612 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33613 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33614 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33615 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
33616 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); | |
33617 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); | |
33618 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33619 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33620 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33621 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33622 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33623 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33624 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33625 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33626 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33627 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33628 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33629 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33630 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33631 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33632 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33633 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33634 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33635 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33636 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33637 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33638 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33639 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33640 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33641 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33642 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33643 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33644 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33645 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33646 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33647 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33648 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33649 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33650 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33651 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33652 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33653 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33654 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33655 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33656 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33657 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33658 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33659 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33660 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33661 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33662 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33663 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33664 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33665 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33666 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33667 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33668 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33669 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33670 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33671 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33672 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33673 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33674 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33675 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33676 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33677 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33678 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33679 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33680 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33681 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33682 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33683 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33684 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
33685 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); | |
33686 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33687 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33688 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33689 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33690 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33691 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33692 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33693 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33694 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33695 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33696 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33697 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33698 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33699 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33700 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33701 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33702 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33703 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33704 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33705 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33706 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33707 | ||
33708 | // Map renamed classes back to their common name for OOR | |
33709 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33710 | ||
33711 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); | |
33712 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); | |
33713 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33714 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33715 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33716 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33717 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33718 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33719 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33720 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33721 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33722 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33723 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33724 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33725 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33726 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33727 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33728 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33729 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33730 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33731 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33732 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33733 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33734 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33735 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33736 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33737 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33738 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33739 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33740 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33741 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33742 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33743 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33744 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33745 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33746 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
33747 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); | |
33748 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33749 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33750 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33751 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33752 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33753 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33754 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33755 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33756 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33757 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33758 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33759 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33760 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33761 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33762 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33763 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33764 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33765 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
33766 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); | |
33767 | ||
33768 | // Map renamed classes back to their common name for OOR | |
33769 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33770 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33771 | ||
33772 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); | |
33773 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); | |
33774 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33775 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33776 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33777 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33778 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33779 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
33780 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); | |
33781 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
33782 | ||
33783 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33784 | ||
33785 | } | |
33786 |