]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
83448d71 | 3 | * Version 1.3.22 |
d14a1e28 RD |
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 | |
9fd4be55 RD |
48 | #define SWIG_PackData SWIG_Python_PackData |
49 | #define SWIG_UnpackData SWIG_Python_UnpackData | |
50 | ||
d14a1e28 RD |
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 | ||
f0983263 RD |
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 | |
d14a1e28 | 82 | #else |
f0983263 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
f0983263 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
f0983263 | 90 | # define SWIGRUNTIME(a) static a |
d14a1e28 RD |
91 | #endif |
92 | ||
d14a1e28 RD |
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 { | |
f0983263 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
f0983263 | 104 | void *clientdata; |
d14a1e28 RD |
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 *); | |
f0983263 RD |
118 | SWIGIMPORT(char *) SWIG_PackData(char *, void *, int); |
119 | SWIGIMPORT(char *) SWIG_UnpackData(char *, void *, int); | |
d14a1e28 RD |
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 | ||
d14a1e28 RD |
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 | ||
d14a1e28 RD |
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) | |
83448d71 | 173 | |
d14a1e28 RD |
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) | |
d14a1e28 RD |
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 | ||
8edf1c75 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
f0983263 RD |
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[]); | |
d14a1e28 | 196 | |
d14a1e28 RD |
197 | |
198 | /* Contract support */ | |
199 | ||
423f194a | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
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] | |
58203fa6 RD |
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] | |
74a57fcd RD |
219 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
58203fa6 RD |
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] | |
74a57fcd RD |
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] | |
58203fa6 | 252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] |
74a57fcd RD |
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]; | |
d14a1e28 RD |
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 | ||
2f4c0a16 | 306 | /* Auxiliar swig macros */ |
8edf1c75 | 307 | |
8edf1c75 | 308 | #ifdef __cplusplus |
2f4c0a16 | 309 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 310 | #define SWIGSTATIC(a) static a |
2f4c0a16 RD |
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) | |
8edf1c75 | 316 | |
8edf1c75 | 317 | #ifdef HAVE_NUMERIC_CAST |
2f4c0a16 | 318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
8edf1c75 | 319 | #else |
2f4c0a16 | 320 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
8edf1c75 RD |
321 | #endif |
322 | ||
2f4c0a16 RD |
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 */ | |
8edf1c75 RD |
335 | |
336 | ||
2f4c0a16 RD |
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 | |
8edf1c75 RD |
347 | |
348 | ||
d14a1e28 RD |
349 | #include "wx/wxPython/wxPython.h" |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
d03fd34d RD |
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4e760a36 RD |
355 | |
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
d03fd34d | 358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
8edf1c75 | 359 | |
2f4c0a16 RD |
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 | { | |
69223c70 RD |
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 | } | |
2f4c0a16 RD |
399 | } |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 405 | { |
2f4c0a16 RD |
406 | return swig_numeric_cast(int, |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
8edf1c75 | 409 | } |
2f4c0a16 RD |
410 | #else |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
8edf1c75 RD |
413 | |
414 | ||
2f4c0a16 RD |
415 | SWIGSTATICINLINE(int) |
416 | SWIG_CheckInt(PyObject* obj) | |
8edf1c75 | 417 | { |
2f4c0a16 RD |
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 | } | |
8edf1c75 RD |
438 | } |
439 | ||
d03fd34d | 440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 | 441 | |
2f4c0a16 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
444 | { |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
2f4c0a16 RD |
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 | ||
d03fd34d RD |
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); | |
d14a1e28 RD |
467 | |
468 | #include <wx/checklst.h> | |
469 | ||
d14a1e28 | 470 | |
d03fd34d | 471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
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 | } | |
0ffb2aa6 RD |
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 | } | |
d03fd34d | 506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
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 | ||
2f4c0a16 RD |
534 | |
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
69223c70 | 541 | long i = SWIG_AsLong(obj); |
2f4c0a16 | 542 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
2f4c0a16 RD |
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 | ||
d14a1e28 RD |
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 | } | |
d03fd34d RD |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
eb9b6107 | 570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
d03fd34d RD |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
573 | |
574 | #include <wx/slider.h> | |
575 | ||
d14a1e28 | 576 | |
d03fd34d | 577 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
eb9b6107 | 578 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 579 | |
2f4c0a16 RD |
580 | #if !wxUSE_TOGGLEBTN |
581 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
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&) | |
cbd72d4f | 591 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
592 | |
593 | wxToggleButton() | |
cbd72d4f | 594 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
595 | }; |
596 | #endif | |
597 | ||
d03fd34d | 598 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 | 599 | |
2f4c0a16 RD |
600 | SWIGSTATICINLINE(PyObject* ) |
601 | SWIG_FromUnsignedLong(unsigned long value) | |
8edf1c75 | 602 | { |
2f4c0a16 RD |
603 | return (value > LONG_MAX) ? |
604 | PyLong_FromUnsignedLong(value) | |
605 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
8edf1c75 RD |
606 | } |
607 | ||
d03fd34d | 608 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
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 | ||
d14a1e28 | 652 | |
eb9b6107 | 653 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
654 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
655 | // Python aware sorting function for wxPyListCtrl | |
656 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
657 | int retval = 0; | |
658 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 659 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
660 | |
661 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
662 | PyObject* result = PyEval_CallObject(func, args); | |
663 | Py_DECREF(args); | |
664 | if (result) { | |
665 | retval = PyInt_AsLong(result); | |
666 | Py_DECREF(result); | |
667 | } | |
668 | ||
4f89f6a3 | 669 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
670 | return retval; |
671 | } | |
672 | ||
673 | // C++ Version of a Python aware class | |
674 | class wxPyListCtrl : public wxListCtrl { | |
675 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
676 | public: | |
677 | wxPyListCtrl() : wxListCtrl() {} | |
678 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
679 | const wxPoint& pos, | |
680 | const wxSize& size, | |
681 | long style, | |
682 | const wxValidator& validator, | |
683 | const wxString& name) : | |
684 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
685 | ||
686 | bool Create(wxWindow* parent, wxWindowID id, | |
687 | const wxPoint& pos, | |
688 | const wxSize& size, | |
689 | long style, | |
690 | const wxValidator& validator, | |
691 | const wxString& name) { | |
692 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
693 | } | |
694 | ||
695 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
696 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
697 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
698 | ||
699 | PYPRIVATE; | |
700 | }; | |
701 | ||
702 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
703 | ||
704 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
705 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
706 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
707 | ||
708 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
709 | wxListItem item; | |
710 | item.SetMask( wxLIST_MASK_STATE | | |
711 | wxLIST_MASK_TEXT | | |
712 | wxLIST_MASK_IMAGE | | |
713 | wxLIST_MASK_DATA | | |
714 | wxLIST_SET_ITEM | | |
715 | wxLIST_MASK_WIDTH | | |
716 | wxLIST_MASK_FORMAT | |
717 | ); | |
718 | if (self->GetColumn(col, item)) | |
719 | return new wxListItem(item); | |
720 | else | |
721 | return NULL; | |
722 | } | |
723 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
724 | wxListItem* info = new wxListItem; | |
725 | info->m_itemId = itemId; | |
726 | info->m_col = col; | |
727 | info->m_mask = 0xFFFF; | |
728 | self->GetItem(*info); | |
729 | return info; | |
730 | } | |
731 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
732 | wxPoint pos; | |
733 | self->GetItemPosition(item, pos); | |
734 | return pos; | |
735 | } | |
736 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
737 | wxRect rect; | |
738 | self->GetItemRect(item, rect, code); | |
739 | return rect; | |
740 | } | |
741 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
742 | if (!PyCallable_Check(func)) | |
423f194a | 743 | return False; |
d14a1e28 RD |
744 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
745 | } | |
746 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
747 | ||
748 | return self; | |
749 | ||
750 | ||
751 | ||
752 | } | |
753 | ||
754 | #include <wx/treectrl.h> | |
755 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 756 | |
eb9b6107 | 757 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
328fcd84 RD |
758 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
759 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
760 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
761 | // C++ version of Python aware wxTreeCtrl | |
762 | class wxPyTreeCtrl : public wxTreeCtrl { | |
763 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
764 | public: | |
765 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
766 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
767 | const wxPoint& pos, | |
768 | const wxSize& size, | |
769 | long style, | |
770 | const wxValidator& validator, | |
771 | const wxString& name) : | |
772 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
773 | ||
774 | bool Create(wxWindow *parent, wxWindowID id, | |
775 | const wxPoint& pos, | |
776 | const wxSize& size, | |
777 | long style, | |
778 | const wxValidator& validator, | |
779 | const wxString& name) { | |
780 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
781 | } | |
782 | ||
783 | ||
784 | int OnCompareItems(const wxTreeItemId& item1, | |
785 | const wxTreeItemId& item2) { | |
786 | int rval = 0; | |
787 | bool found; | |
4f89f6a3 | 788 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 789 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
423f194a RD |
790 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
791 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
792 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
793 | Py_DECREF(o1); | |
794 | Py_DECREF(o2); | |
795 | } | |
4f89f6a3 | 796 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
797 | if (! found) |
798 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
799 | return rval; | |
800 | } | |
801 | PYPRIVATE; | |
802 | }; | |
803 | ||
804 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
805 | ||
806 | ||
8edf1c75 | 807 | |
2f4c0a16 RD |
808 | #if UINT_MAX < LONG_MAX |
809 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
810 | #else | |
811 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
812 | #endif | |
813 | ||
814 | ||
815 | SWIGSTATICINLINE(unsigned long) | |
816 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
817 | unsigned long max_value) | |
818 | { | |
819 | if (!PyErr_Occurred()) { | |
820 | if (value > max_value) { | |
821 | PyObject *err = | |
822 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
823 | value, type, max_value); | |
824 | PyErr_SetObject(PyExc_OverflowError, err); | |
825 | Py_DECREF(err); | |
826 | } | |
827 | } | |
828 | return value; | |
829 | } | |
8edf1c75 RD |
830 | |
831 | ||
2f4c0a16 RD |
832 | #if UINT_MAX != ULONG_MAX |
833 | SWIGSTATICINLINE(unsigned int) | |
834 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 835 | { |
2f4c0a16 RD |
836 | return swig_numeric_cast(unsigned int, |
837 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
838 | "unsigned int", UINT_MAX)); | |
839 | } | |
840 | #else | |
841 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
842 | #endif | |
843 | ||
844 | ||
845 | SWIGSTATICINLINE(int) | |
846 | SWIG_CheckUnsignedInt(PyObject* obj) | |
847 | { | |
848 | SWIG_AsUnsignedInt(obj); | |
849 | if (PyErr_Occurred()) { | |
850 | PyErr_Clear(); | |
851 | return 0; | |
852 | } else { | |
853 | return 1; | |
854 | } | |
8edf1c75 RD |
855 | } |
856 | ||
d14a1e28 RD |
857 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
858 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
859 | if (data == NULL) { | |
860 | data = new wxPyTreeItemData(); | |
861 | data->SetId(item); // set the id | |
862 | self->SetItemData(item, data); | |
863 | } | |
864 | return data; | |
865 | } | |
866 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
867 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
868 | if (data == NULL) { | |
869 | data = new wxPyTreeItemData(); | |
870 | data->SetId(item); // set the id | |
871 | self->SetItemData(item, data); | |
872 | } | |
873 | return data->GetData(); | |
874 | } | |
875 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
876 | data->SetId(item); // set the id | |
877 | self->SetItemData(item, data); | |
878 | } | |
879 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
880 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
881 | if (data == NULL) { | |
882 | data = new wxPyTreeItemData(obj); | |
883 | data->SetId(item); // set the id | |
884 | self->SetItemData(item, data); | |
885 | } else | |
886 | data->SetData(obj); | |
887 | } | |
888 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 889 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
890 | PyObject* rval = PyList_New(0); |
891 | wxArrayTreeItemIds array; | |
892 | size_t num, x; | |
893 | num = self->GetSelections(array); | |
894 | for (x=0; x < num; x++) { | |
895 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 896 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
897 | PyList_Append(rval, item); |
898 | } | |
4f89f6a3 | 899 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
900 | return rval; |
901 | } | |
902 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
903 | void* cookie = 0; |
904 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 905 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 906 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
907 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
908 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 909 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
910 | return tup; |
911 | } | |
58203fa6 RD |
912 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
913 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 914 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 915 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
916 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
917 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 918 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
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)) { | |
4f89f6a3 | 924 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 925 | wxRect* r = new wxRect(rect); |
423f194a | 926 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 927 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
928 | return val; |
929 | } | |
930 | else | |
931 | RETURN_NONE(); | |
932 | } | |
d03fd34d | 933 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
934 | // C++ version of Python aware wxControl |
935 | class wxPyControl : public wxControl | |
936 | { | |
937 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
938 | public: | |
939 | wxPyControl() : wxControl() {} | |
940 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
941 | const wxPoint& pos = wxDefaultPosition, | |
942 | const wxSize& size = wxDefaultSize, | |
943 | long style = 0, | |
944 | const wxValidator& validator=wxDefaultValidator, | |
945 | const wxString& name = wxPyControlNameStr) | |
946 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
947 | ||
948 | ||
949 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
950 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
951 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
952 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
953 | ||
954 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
956 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
957 | ||
958 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
959 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
960 | ||
961 | DEC_PYCALLBACK__(InitDialog); | |
962 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
963 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
964 | DEC_PYCALLBACK_BOOL_(Validate); | |
965 | ||
966 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
967 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
968 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
969 | ||
970 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
971 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
972 | ||
fe763115 | 973 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); |
e35a624d | 974 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
fe763115 | 975 | |
d14a1e28 RD |
976 | PYPRIVATE; |
977 | }; | |
978 | ||
979 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
980 | ||
981 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
982 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
983 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
984 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
985 | ||
986 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
987 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
988 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
989 | ||
990 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
991 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
992 | ||
993 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
994 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
995 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
996 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
997 | ||
998 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
999 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1000 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1001 | ||
1002 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1003 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1004 | ||
fe763115 | 1005 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); |
e35a624d | 1006 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
d14a1e28 RD |
1007 | |
1008 | ||
1009 | ||
1010 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
1011 | |
1012 | #include <wx/generic/dragimgg.h> | |
1013 | ||
d14a1e28 RD |
1014 | #ifdef __cplusplus |
1015 | extern "C" { | |
1016 | #endif | |
2f4c0a16 | 1017 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
1018 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1019 | return 1; | |
1020 | } | |
1021 | ||
1022 | ||
1023 | static PyObject *_wrap_ButtonNameStr_get() { | |
1024 | PyObject *pyobj; | |
1025 | ||
1026 | { | |
1027 | #if wxUSE_UNICODE | |
1028 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1029 | #else | |
1030 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1031 | #endif | |
1032 | } | |
1033 | return pyobj; | |
1034 | } | |
1035 | ||
1036 | ||
d14a1e28 RD |
1037 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1038 | PyObject *resultobj; | |
1039 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1040 | int arg2 ; |
d14a1e28 RD |
1041 | wxString *arg3 = 0 ; |
1042 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1043 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1044 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1045 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1046 | long arg6 = (long) 0 ; | |
1047 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1048 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1049 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1050 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1051 | wxButton *result; | |
423f194a | 1052 | bool temp3 = False ; |
d14a1e28 RD |
1053 | wxPoint temp4 ; |
1054 | wxSize temp5 ; | |
423f194a | 1055 | bool temp8 = False ; |
d14a1e28 | 1056 | PyObject * obj0 = 0 ; |
8edf1c75 | 1057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1058 | PyObject * obj2 = 0 ; |
1059 | PyObject * obj3 = 0 ; | |
1060 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1061 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1062 | PyObject * obj6 = 0 ; |
1063 | PyObject * obj7 = 0 ; | |
1064 | char *kwnames[] = { | |
1065 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1066 | }; | |
1067 | ||
8edf1c75 | 1068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1071 | arg2 = (int) SWIG_AsInt(obj1); | |
1072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1073 | { |
1074 | arg3 = wxString_in_helper(obj2); | |
1075 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1076 | temp3 = True; |
d14a1e28 RD |
1077 | } |
1078 | if (obj3) { | |
1079 | { | |
1080 | arg4 = &temp4; | |
1081 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1082 | } | |
1083 | } | |
1084 | if (obj4) { | |
1085 | { | |
1086 | arg5 = &temp5; | |
1087 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1088 | } | |
1089 | } | |
8edf1c75 | 1090 | if (obj5) { |
2f4c0a16 RD |
1091 | arg6 = (long) SWIG_AsLong(obj5); |
1092 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1093 | } |
d14a1e28 | 1094 | if (obj6) { |
2f4c0a16 RD |
1095 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1096 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1097 | SWIG_fail; | |
d14a1e28 | 1098 | if (arg7 == NULL) { |
2f4c0a16 RD |
1099 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1100 | SWIG_fail; | |
d14a1e28 RD |
1101 | } |
1102 | } | |
1103 | if (obj7) { | |
1104 | { | |
1105 | arg8 = wxString_in_helper(obj7); | |
1106 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1107 | temp8 = True; |
d14a1e28 RD |
1108 | } |
1109 | } | |
1110 | { | |
1111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1112 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1113 | ||
1114 | wxPyEndAllowThreads(__tstate); | |
1115 | if (PyErr_Occurred()) SWIG_fail; | |
1116 | } | |
1117 | { | |
1118 | resultobj = wxPyMake_wxObject(result); | |
1119 | } | |
1120 | { | |
1121 | if (temp3) | |
1122 | delete arg3; | |
1123 | } | |
1124 | { | |
1125 | if (temp8) | |
1126 | delete arg8; | |
1127 | } | |
1128 | return resultobj; | |
1129 | fail: | |
1130 | { | |
1131 | if (temp3) | |
1132 | delete arg3; | |
1133 | } | |
1134 | { | |
1135 | if (temp8) | |
1136 | delete arg8; | |
1137 | } | |
1138 | return NULL; | |
1139 | } | |
1140 | ||
1141 | ||
1142 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1143 | PyObject *resultobj; | |
1144 | wxButton *result; | |
1145 | char *kwnames[] = { | |
1146 | NULL | |
1147 | }; | |
1148 | ||
1149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1150 | { | |
1151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1152 | result = (wxButton *)new wxButton(); | |
1153 | ||
1154 | wxPyEndAllowThreads(__tstate); | |
1155 | if (PyErr_Occurred()) SWIG_fail; | |
1156 | } | |
1157 | { | |
1158 | resultobj = wxPyMake_wxObject(result); | |
1159 | } | |
1160 | return resultobj; | |
1161 | fail: | |
1162 | return NULL; | |
1163 | } | |
1164 | ||
1165 | ||
1166 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1167 | PyObject *resultobj; | |
1168 | wxButton *arg1 = (wxButton *) 0 ; | |
1169 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1170 | int arg3 ; |
d14a1e28 RD |
1171 | wxString *arg4 = 0 ; |
1172 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1173 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1174 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1175 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1176 | long arg7 = (long) 0 ; | |
1177 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1178 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1179 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1180 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1181 | bool result; | |
423f194a | 1182 | bool temp4 = False ; |
d14a1e28 RD |
1183 | wxPoint temp5 ; |
1184 | wxSize temp6 ; | |
423f194a | 1185 | bool temp9 = False ; |
d14a1e28 RD |
1186 | PyObject * obj0 = 0 ; |
1187 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1188 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1189 | PyObject * obj3 = 0 ; |
1190 | PyObject * obj4 = 0 ; | |
1191 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1192 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1193 | PyObject * obj7 = 0 ; |
1194 | PyObject * obj8 = 0 ; | |
1195 | char *kwnames[] = { | |
1196 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1197 | }; | |
1198 | ||
8edf1c75 | 1199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1204 | arg3 = (int) SWIG_AsInt(obj2); | |
1205 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1206 | { |
1207 | arg4 = wxString_in_helper(obj3); | |
1208 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1209 | temp4 = True; |
d14a1e28 RD |
1210 | } |
1211 | if (obj4) { | |
1212 | { | |
1213 | arg5 = &temp5; | |
1214 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1215 | } | |
1216 | } | |
1217 | if (obj5) { | |
1218 | { | |
1219 | arg6 = &temp6; | |
1220 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1221 | } | |
1222 | } | |
8edf1c75 | 1223 | if (obj6) { |
2f4c0a16 RD |
1224 | arg7 = (long) SWIG_AsLong(obj6); |
1225 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1226 | } |
d14a1e28 | 1227 | if (obj7) { |
2f4c0a16 RD |
1228 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1230 | SWIG_fail; | |
d14a1e28 | 1231 | if (arg8 == NULL) { |
2f4c0a16 RD |
1232 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1233 | SWIG_fail; | |
d14a1e28 RD |
1234 | } |
1235 | } | |
1236 | if (obj8) { | |
1237 | { | |
1238 | arg9 = wxString_in_helper(obj8); | |
1239 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1240 | temp9 = True; |
d14a1e28 RD |
1241 | } |
1242 | } | |
1243 | { | |
1244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1245 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1246 | ||
1247 | wxPyEndAllowThreads(__tstate); | |
1248 | if (PyErr_Occurred()) SWIG_fail; | |
1249 | } | |
4f89f6a3 RD |
1250 | { |
1251 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1252 | } | |
d14a1e28 RD |
1253 | { |
1254 | if (temp4) | |
1255 | delete arg4; | |
1256 | } | |
1257 | { | |
1258 | if (temp9) | |
1259 | delete arg9; | |
1260 | } | |
1261 | return resultobj; | |
1262 | fail: | |
1263 | { | |
1264 | if (temp4) | |
1265 | delete arg4; | |
1266 | } | |
1267 | { | |
1268 | if (temp9) | |
1269 | delete arg9; | |
1270 | } | |
1271 | return NULL; | |
1272 | } | |
1273 | ||
1274 | ||
1275 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1276 | PyObject *resultobj; | |
1277 | wxButton *arg1 = (wxButton *) 0 ; | |
1278 | PyObject * obj0 = 0 ; | |
1279 | char *kwnames[] = { | |
1280 | (char *) "self", NULL | |
1281 | }; | |
1282 | ||
1283 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1284 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1286 | { |
1287 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1288 | (arg1)->SetDefault(); | |
1289 | ||
1290 | wxPyEndAllowThreads(__tstate); | |
1291 | if (PyErr_Occurred()) SWIG_fail; | |
1292 | } | |
1293 | Py_INCREF(Py_None); resultobj = Py_None; | |
1294 | return resultobj; | |
1295 | fail: | |
1296 | return NULL; | |
1297 | } | |
1298 | ||
1299 | ||
d14a1e28 RD |
1300 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1301 | PyObject *resultobj; | |
1302 | wxSize result; | |
1303 | char *kwnames[] = { | |
1304 | NULL | |
1305 | }; | |
1306 | ||
1307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1308 | { | |
1309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1310 | result = wxButton::GetDefaultSize(); | |
1311 | ||
1312 | wxPyEndAllowThreads(__tstate); | |
1313 | if (PyErr_Occurred()) SWIG_fail; | |
1314 | } | |
1315 | { | |
1316 | wxSize * resultptr; | |
1317 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 1318 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1319 | } |
1320 | return resultobj; | |
1321 | fail: | |
1322 | return NULL; | |
1323 | } | |
1324 | ||
1325 | ||
1326 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1327 | PyObject *obj; | |
1328 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1329 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1330 | Py_INCREF(obj); | |
1331 | return Py_BuildValue((char *)""); | |
1332 | } | |
1333 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1334 | PyObject *resultobj; | |
1335 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1336 | int arg2 ; |
d14a1e28 RD |
1337 | wxBitmap *arg3 = 0 ; |
1338 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1339 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1340 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1341 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1342 | long arg6 = (long) wxBU_AUTODRAW ; | |
1343 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1344 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1345 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1346 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1347 | wxBitmapButton *result; | |
1348 | wxPoint temp4 ; | |
1349 | wxSize temp5 ; | |
423f194a | 1350 | bool temp8 = False ; |
d14a1e28 | 1351 | PyObject * obj0 = 0 ; |
8edf1c75 | 1352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1353 | PyObject * obj2 = 0 ; |
1354 | PyObject * obj3 = 0 ; | |
1355 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1356 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1357 | PyObject * obj6 = 0 ; |
1358 | PyObject * obj7 = 0 ; | |
1359 | char *kwnames[] = { | |
1360 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1361 | }; | |
1362 | ||
8edf1c75 | 1363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1366 | arg2 = (int) SWIG_AsInt(obj1); | |
1367 | if (PyErr_Occurred()) SWIG_fail; | |
1368 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1369 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1370 | SWIG_fail; | |
d14a1e28 | 1371 | if (arg3 == NULL) { |
2f4c0a16 RD |
1372 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1373 | SWIG_fail; | |
d14a1e28 RD |
1374 | } |
1375 | if (obj3) { | |
1376 | { | |
1377 | arg4 = &temp4; | |
1378 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1379 | } | |
1380 | } | |
1381 | if (obj4) { | |
1382 | { | |
1383 | arg5 = &temp5; | |
1384 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1385 | } | |
1386 | } | |
8edf1c75 | 1387 | if (obj5) { |
2f4c0a16 RD |
1388 | arg6 = (long) SWIG_AsLong(obj5); |
1389 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1390 | } |
d14a1e28 | 1391 | if (obj6) { |
2f4c0a16 RD |
1392 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1393 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1394 | SWIG_fail; | |
d14a1e28 | 1395 | if (arg7 == NULL) { |
2f4c0a16 RD |
1396 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1397 | SWIG_fail; | |
d14a1e28 RD |
1398 | } |
1399 | } | |
1400 | if (obj7) { | |
1401 | { | |
1402 | arg8 = wxString_in_helper(obj7); | |
1403 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1404 | temp8 = True; |
d14a1e28 RD |
1405 | } |
1406 | } | |
1407 | { | |
1408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1409 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1410 | ||
1411 | wxPyEndAllowThreads(__tstate); | |
1412 | if (PyErr_Occurred()) SWIG_fail; | |
1413 | } | |
1414 | { | |
1415 | resultobj = wxPyMake_wxObject(result); | |
1416 | } | |
1417 | { | |
1418 | if (temp8) | |
1419 | delete arg8; | |
1420 | } | |
1421 | return resultobj; | |
1422 | fail: | |
1423 | { | |
1424 | if (temp8) | |
1425 | delete arg8; | |
1426 | } | |
1427 | return NULL; | |
1428 | } | |
1429 | ||
1430 | ||
1431 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1432 | PyObject *resultobj; | |
1433 | wxBitmapButton *result; | |
1434 | char *kwnames[] = { | |
1435 | NULL | |
1436 | }; | |
1437 | ||
1438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1439 | { | |
1440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1441 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1442 | ||
1443 | wxPyEndAllowThreads(__tstate); | |
1444 | if (PyErr_Occurred()) SWIG_fail; | |
1445 | } | |
1446 | { | |
1447 | resultobj = wxPyMake_wxObject(result); | |
1448 | } | |
1449 | return resultobj; | |
1450 | fail: | |
1451 | return NULL; | |
1452 | } | |
1453 | ||
1454 | ||
1455 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1456 | PyObject *resultobj; | |
1457 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1459 | int arg3 ; |
d14a1e28 RD |
1460 | wxBitmap *arg4 = 0 ; |
1461 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1462 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1463 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1464 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1465 | long arg7 = (long) wxBU_AUTODRAW ; | |
1466 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1467 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1468 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1469 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1470 | bool result; | |
1471 | wxPoint temp5 ; | |
1472 | wxSize temp6 ; | |
423f194a | 1473 | bool temp9 = False ; |
d14a1e28 RD |
1474 | PyObject * obj0 = 0 ; |
1475 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1476 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1477 | PyObject * obj3 = 0 ; |
1478 | PyObject * obj4 = 0 ; | |
1479 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1480 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1481 | PyObject * obj7 = 0 ; |
1482 | PyObject * obj8 = 0 ; | |
1483 | char *kwnames[] = { | |
1484 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1485 | }; | |
1486 | ||
8edf1c75 | 1487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1490 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1492 | arg3 = (int) SWIG_AsInt(obj2); | |
1493 | if (PyErr_Occurred()) SWIG_fail; | |
1494 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1496 | SWIG_fail; | |
d14a1e28 | 1497 | if (arg4 == NULL) { |
2f4c0a16 RD |
1498 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1499 | SWIG_fail; | |
d14a1e28 RD |
1500 | } |
1501 | if (obj4) { | |
1502 | { | |
1503 | arg5 = &temp5; | |
1504 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1505 | } | |
1506 | } | |
1507 | if (obj5) { | |
1508 | { | |
1509 | arg6 = &temp6; | |
1510 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1511 | } | |
1512 | } | |
8edf1c75 | 1513 | if (obj6) { |
2f4c0a16 RD |
1514 | arg7 = (long) SWIG_AsLong(obj6); |
1515 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1516 | } |
d14a1e28 | 1517 | if (obj7) { |
2f4c0a16 RD |
1518 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1519 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1520 | SWIG_fail; | |
d14a1e28 | 1521 | if (arg8 == NULL) { |
2f4c0a16 RD |
1522 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1523 | SWIG_fail; | |
d14a1e28 RD |
1524 | } |
1525 | } | |
1526 | if (obj8) { | |
1527 | { | |
1528 | arg9 = wxString_in_helper(obj8); | |
1529 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1530 | temp9 = True; |
d14a1e28 RD |
1531 | } |
1532 | } | |
1533 | { | |
1534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1535 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1536 | ||
1537 | wxPyEndAllowThreads(__tstate); | |
1538 | if (PyErr_Occurred()) SWIG_fail; | |
1539 | } | |
4f89f6a3 RD |
1540 | { |
1541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1542 | } | |
d14a1e28 RD |
1543 | { |
1544 | if (temp9) | |
1545 | delete arg9; | |
1546 | } | |
1547 | return resultobj; | |
1548 | fail: | |
1549 | { | |
1550 | if (temp9) | |
1551 | delete arg9; | |
1552 | } | |
1553 | return NULL; | |
1554 | } | |
1555 | ||
1556 | ||
1557 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1558 | PyObject *resultobj; | |
1559 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1560 | wxBitmap result; | |
1561 | PyObject * obj0 = 0 ; | |
1562 | char *kwnames[] = { | |
1563 | (char *) "self", NULL | |
1564 | }; | |
1565 | ||
1566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1569 | { |
1570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1571 | result = (arg1)->GetBitmapLabel(); | |
1572 | ||
1573 | wxPyEndAllowThreads(__tstate); | |
1574 | if (PyErr_Occurred()) SWIG_fail; | |
1575 | } | |
1576 | { | |
1577 | wxBitmap * resultptr; | |
1578 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1579 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1580 | } |
1581 | return resultobj; | |
1582 | fail: | |
1583 | return NULL; | |
1584 | } | |
1585 | ||
1586 | ||
1587 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1588 | PyObject *resultobj; | |
1589 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1590 | wxBitmap result; | |
1591 | PyObject * obj0 = 0 ; | |
1592 | char *kwnames[] = { | |
1593 | (char *) "self", NULL | |
1594 | }; | |
1595 | ||
1596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1599 | { |
1600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1601 | result = (arg1)->GetBitmapDisabled(); | |
1602 | ||
1603 | wxPyEndAllowThreads(__tstate); | |
1604 | if (PyErr_Occurred()) SWIG_fail; | |
1605 | } | |
1606 | { | |
1607 | wxBitmap * resultptr; | |
1608 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1609 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1610 | } |
1611 | return resultobj; | |
1612 | fail: | |
1613 | return NULL; | |
1614 | } | |
1615 | ||
1616 | ||
1617 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1618 | PyObject *resultobj; | |
1619 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1620 | wxBitmap result; | |
1621 | PyObject * obj0 = 0 ; | |
1622 | char *kwnames[] = { | |
1623 | (char *) "self", NULL | |
1624 | }; | |
1625 | ||
1626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1629 | { |
1630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1631 | result = (arg1)->GetBitmapFocus(); | |
1632 | ||
1633 | wxPyEndAllowThreads(__tstate); | |
1634 | if (PyErr_Occurred()) SWIG_fail; | |
1635 | } | |
1636 | { | |
1637 | wxBitmap * resultptr; | |
1638 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1640 | } |
1641 | return resultobj; | |
1642 | fail: | |
1643 | return NULL; | |
1644 | } | |
1645 | ||
1646 | ||
1647 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1648 | PyObject *resultobj; | |
1649 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1650 | wxBitmap result; | |
1651 | PyObject * obj0 = 0 ; | |
1652 | char *kwnames[] = { | |
1653 | (char *) "self", NULL | |
1654 | }; | |
1655 | ||
1656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1659 | { |
1660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1661 | result = (arg1)->GetBitmapSelected(); | |
1662 | ||
1663 | wxPyEndAllowThreads(__tstate); | |
1664 | if (PyErr_Occurred()) SWIG_fail; | |
1665 | } | |
1666 | { | |
1667 | wxBitmap * resultptr; | |
1668 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1669 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1670 | } |
1671 | return resultobj; | |
1672 | fail: | |
1673 | return NULL; | |
1674 | } | |
1675 | ||
1676 | ||
1677 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1678 | PyObject *resultobj; | |
1679 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1680 | wxBitmap *arg2 = 0 ; | |
1681 | PyObject * obj0 = 0 ; | |
1682 | PyObject * obj1 = 0 ; | |
1683 | char *kwnames[] = { | |
1684 | (char *) "self",(char *) "bitmap", NULL | |
1685 | }; | |
1686 | ||
1687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1691 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1692 | SWIG_fail; | |
d14a1e28 | 1693 | if (arg2 == NULL) { |
2f4c0a16 RD |
1694 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1695 | SWIG_fail; | |
d14a1e28 RD |
1696 | } |
1697 | { | |
1698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1699 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1700 | ||
1701 | wxPyEndAllowThreads(__tstate); | |
1702 | if (PyErr_Occurred()) SWIG_fail; | |
1703 | } | |
1704 | Py_INCREF(Py_None); resultobj = Py_None; | |
1705 | return resultobj; | |
1706 | fail: | |
1707 | return NULL; | |
1708 | } | |
1709 | ||
1710 | ||
1711 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1712 | PyObject *resultobj; | |
1713 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1714 | wxBitmap *arg2 = 0 ; | |
1715 | PyObject * obj0 = 0 ; | |
1716 | PyObject * obj1 = 0 ; | |
1717 | char *kwnames[] = { | |
1718 | (char *) "self",(char *) "bitmap", NULL | |
1719 | }; | |
1720 | ||
1721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1726 | SWIG_fail; | |
d14a1e28 | 1727 | if (arg2 == NULL) { |
2f4c0a16 RD |
1728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1729 | SWIG_fail; | |
d14a1e28 RD |
1730 | } |
1731 | { | |
1732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1733 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1734 | ||
1735 | wxPyEndAllowThreads(__tstate); | |
1736 | if (PyErr_Occurred()) SWIG_fail; | |
1737 | } | |
1738 | Py_INCREF(Py_None); resultobj = Py_None; | |
1739 | return resultobj; | |
1740 | fail: | |
1741 | return NULL; | |
1742 | } | |
1743 | ||
1744 | ||
1745 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1746 | PyObject *resultobj; | |
1747 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1748 | wxBitmap *arg2 = 0 ; | |
1749 | PyObject * obj0 = 0 ; | |
1750 | PyObject * obj1 = 0 ; | |
1751 | char *kwnames[] = { | |
1752 | (char *) "self",(char *) "bitmap", NULL | |
1753 | }; | |
1754 | ||
1755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1758 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1759 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1760 | SWIG_fail; | |
d14a1e28 | 1761 | if (arg2 == NULL) { |
2f4c0a16 RD |
1762 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1763 | SWIG_fail; | |
d14a1e28 RD |
1764 | } |
1765 | { | |
1766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1767 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1768 | ||
1769 | wxPyEndAllowThreads(__tstate); | |
1770 | if (PyErr_Occurred()) SWIG_fail; | |
1771 | } | |
1772 | Py_INCREF(Py_None); resultobj = Py_None; | |
1773 | return resultobj; | |
1774 | fail: | |
1775 | return NULL; | |
1776 | } | |
1777 | ||
1778 | ||
1779 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1780 | PyObject *resultobj; | |
1781 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1782 | wxBitmap *arg2 = 0 ; | |
1783 | PyObject * obj0 = 0 ; | |
1784 | PyObject * obj1 = 0 ; | |
1785 | char *kwnames[] = { | |
1786 | (char *) "self",(char *) "bitmap", NULL | |
1787 | }; | |
1788 | ||
1789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1793 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1794 | SWIG_fail; | |
d14a1e28 | 1795 | if (arg2 == NULL) { |
2f4c0a16 RD |
1796 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1797 | SWIG_fail; | |
d14a1e28 RD |
1798 | } |
1799 | { | |
1800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1801 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1802 | ||
1803 | wxPyEndAllowThreads(__tstate); | |
1804 | if (PyErr_Occurred()) SWIG_fail; | |
1805 | } | |
1806 | Py_INCREF(Py_None); resultobj = Py_None; | |
1807 | return resultobj; | |
1808 | fail: | |
1809 | return NULL; | |
1810 | } | |
1811 | ||
1812 | ||
1813 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1814 | PyObject *resultobj; | |
1815 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1816 | int arg2 ; | |
1817 | int arg3 ; | |
1818 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1819 | PyObject * obj1 = 0 ; |
1820 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1821 | char *kwnames[] = { |
1822 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1823 | }; | |
1824 | ||
8edf1c75 | 1825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1828 | arg2 = (int) SWIG_AsInt(obj1); | |
1829 | if (PyErr_Occurred()) SWIG_fail; | |
1830 | arg3 = (int) SWIG_AsInt(obj2); | |
1831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1832 | { |
1833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1834 | (arg1)->SetMargins(arg2,arg3); | |
1835 | ||
1836 | wxPyEndAllowThreads(__tstate); | |
1837 | if (PyErr_Occurred()) SWIG_fail; | |
1838 | } | |
1839 | Py_INCREF(Py_None); resultobj = Py_None; | |
1840 | return resultobj; | |
1841 | fail: | |
1842 | return NULL; | |
1843 | } | |
1844 | ||
1845 | ||
1846 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1847 | PyObject *resultobj; | |
1848 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1849 | int result; | |
1850 | PyObject * obj0 = 0 ; | |
1851 | char *kwnames[] = { | |
1852 | (char *) "self", NULL | |
1853 | }; | |
1854 | ||
1855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1858 | { |
1859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1860 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1861 | ||
1862 | wxPyEndAllowThreads(__tstate); | |
1863 | if (PyErr_Occurred()) SWIG_fail; | |
1864 | } | |
2f4c0a16 | 1865 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1866 | return resultobj; |
1867 | fail: | |
1868 | return NULL; | |
1869 | } | |
1870 | ||
1871 | ||
1872 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1873 | PyObject *resultobj; | |
1874 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1875 | int result; | |
1876 | PyObject * obj0 = 0 ; | |
1877 | char *kwnames[] = { | |
1878 | (char *) "self", NULL | |
1879 | }; | |
1880 | ||
1881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1884 | { |
1885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1886 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1887 | ||
1888 | wxPyEndAllowThreads(__tstate); | |
1889 | if (PyErr_Occurred()) SWIG_fail; | |
1890 | } | |
2f4c0a16 | 1891 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1892 | return resultobj; |
1893 | fail: | |
1894 | return NULL; | |
1895 | } | |
1896 | ||
1897 | ||
1898 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1899 | PyObject *obj; | |
1900 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1901 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1902 | Py_INCREF(obj); | |
1903 | return Py_BuildValue((char *)""); | |
1904 | } | |
2f4c0a16 | 1905 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
1906 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1907 | return 1; | |
1908 | } | |
1909 | ||
1910 | ||
1911 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1912 | PyObject *pyobj; | |
1913 | ||
1914 | { | |
1915 | #if wxUSE_UNICODE | |
1916 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1917 | #else | |
1918 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1919 | #endif | |
1920 | } | |
1921 | return pyobj; | |
1922 | } | |
1923 | ||
1924 | ||
d14a1e28 RD |
1925 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1926 | PyObject *resultobj; | |
1927 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1928 | int arg2 ; |
d14a1e28 RD |
1929 | wxString *arg3 = 0 ; |
1930 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1931 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1932 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1933 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1934 | long arg6 = (long) 0 ; | |
1935 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1936 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1937 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1938 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1939 | wxCheckBox *result; | |
423f194a | 1940 | bool temp3 = False ; |
d14a1e28 RD |
1941 | wxPoint temp4 ; |
1942 | wxSize temp5 ; | |
423f194a | 1943 | bool temp8 = False ; |
d14a1e28 | 1944 | PyObject * obj0 = 0 ; |
8edf1c75 | 1945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1946 | PyObject * obj2 = 0 ; |
1947 | PyObject * obj3 = 0 ; | |
1948 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1949 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1950 | PyObject * obj6 = 0 ; |
1951 | PyObject * obj7 = 0 ; | |
1952 | char *kwnames[] = { | |
1953 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1954 | }; | |
1955 | ||
8edf1c75 | 1956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1959 | arg2 = (int) SWIG_AsInt(obj1); | |
1960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1961 | { |
1962 | arg3 = wxString_in_helper(obj2); | |
1963 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1964 | temp3 = True; |
d14a1e28 RD |
1965 | } |
1966 | if (obj3) { | |
1967 | { | |
1968 | arg4 = &temp4; | |
1969 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1970 | } | |
1971 | } | |
1972 | if (obj4) { | |
1973 | { | |
1974 | arg5 = &temp5; | |
1975 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1976 | } | |
1977 | } | |
8edf1c75 | 1978 | if (obj5) { |
2f4c0a16 RD |
1979 | arg6 = (long) SWIG_AsLong(obj5); |
1980 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1981 | } |
d14a1e28 | 1982 | if (obj6) { |
2f4c0a16 RD |
1983 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1985 | SWIG_fail; | |
d14a1e28 | 1986 | if (arg7 == NULL) { |
2f4c0a16 RD |
1987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1988 | SWIG_fail; | |
d14a1e28 RD |
1989 | } |
1990 | } | |
1991 | if (obj7) { | |
1992 | { | |
1993 | arg8 = wxString_in_helper(obj7); | |
1994 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1995 | temp8 = True; |
d14a1e28 RD |
1996 | } |
1997 | } | |
1998 | { | |
1999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2000 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2001 | ||
2002 | wxPyEndAllowThreads(__tstate); | |
2003 | if (PyErr_Occurred()) SWIG_fail; | |
2004 | } | |
2f4c0a16 | 2005 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2006 | { |
2007 | if (temp3) | |
2008 | delete arg3; | |
2009 | } | |
2010 | { | |
2011 | if (temp8) | |
2012 | delete arg8; | |
2013 | } | |
2014 | return resultobj; | |
2015 | fail: | |
2016 | { | |
2017 | if (temp3) | |
2018 | delete arg3; | |
2019 | } | |
2020 | { | |
2021 | if (temp8) | |
2022 | delete arg8; | |
2023 | } | |
2024 | return NULL; | |
2025 | } | |
2026 | ||
2027 | ||
2028 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2029 | PyObject *resultobj; | |
2030 | wxCheckBox *result; | |
2031 | char *kwnames[] = { | |
2032 | NULL | |
2033 | }; | |
2034 | ||
2035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2036 | { | |
2037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2038 | result = (wxCheckBox *)new wxCheckBox(); | |
2039 | ||
2040 | wxPyEndAllowThreads(__tstate); | |
2041 | if (PyErr_Occurred()) SWIG_fail; | |
2042 | } | |
2f4c0a16 | 2043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2044 | return resultobj; |
2045 | fail: | |
2046 | return NULL; | |
2047 | } | |
2048 | ||
2049 | ||
2050 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2051 | PyObject *resultobj; | |
2052 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2053 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2054 | int arg3 ; |
d14a1e28 RD |
2055 | wxString *arg4 = 0 ; |
2056 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2057 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2058 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2059 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2060 | long arg7 = (long) 0 ; | |
2061 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2062 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2063 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2064 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2065 | bool result; | |
423f194a | 2066 | bool temp4 = False ; |
d14a1e28 RD |
2067 | wxPoint temp5 ; |
2068 | wxSize temp6 ; | |
423f194a | 2069 | bool temp9 = False ; |
d14a1e28 RD |
2070 | PyObject * obj0 = 0 ; |
2071 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2072 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2073 | PyObject * obj3 = 0 ; |
2074 | PyObject * obj4 = 0 ; | |
2075 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2076 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2077 | PyObject * obj7 = 0 ; |
2078 | PyObject * obj8 = 0 ; | |
2079 | char *kwnames[] = { | |
2080 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2081 | }; | |
2082 | ||
8edf1c75 | 2083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2086 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2087 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2088 | arg3 = (int) SWIG_AsInt(obj2); | |
2089 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2090 | { |
2091 | arg4 = wxString_in_helper(obj3); | |
2092 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2093 | temp4 = True; |
d14a1e28 RD |
2094 | } |
2095 | if (obj4) { | |
2096 | { | |
2097 | arg5 = &temp5; | |
2098 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2099 | } | |
2100 | } | |
2101 | if (obj5) { | |
2102 | { | |
2103 | arg6 = &temp6; | |
2104 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2105 | } | |
2106 | } | |
8edf1c75 | 2107 | if (obj6) { |
2f4c0a16 RD |
2108 | arg7 = (long) SWIG_AsLong(obj6); |
2109 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2110 | } |
d14a1e28 | 2111 | if (obj7) { |
2f4c0a16 RD |
2112 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2113 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2114 | SWIG_fail; | |
d14a1e28 | 2115 | if (arg8 == NULL) { |
2f4c0a16 RD |
2116 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2117 | SWIG_fail; | |
d14a1e28 RD |
2118 | } |
2119 | } | |
2120 | if (obj8) { | |
2121 | { | |
2122 | arg9 = wxString_in_helper(obj8); | |
2123 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2124 | temp9 = True; |
d14a1e28 RD |
2125 | } |
2126 | } | |
2127 | { | |
2128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2129 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2130 | ||
2131 | wxPyEndAllowThreads(__tstate); | |
2132 | if (PyErr_Occurred()) SWIG_fail; | |
2133 | } | |
4f89f6a3 RD |
2134 | { |
2135 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2136 | } | |
d14a1e28 RD |
2137 | { |
2138 | if (temp4) | |
2139 | delete arg4; | |
2140 | } | |
2141 | { | |
2142 | if (temp9) | |
2143 | delete arg9; | |
2144 | } | |
2145 | return resultobj; | |
2146 | fail: | |
2147 | { | |
2148 | if (temp4) | |
2149 | delete arg4; | |
2150 | } | |
2151 | { | |
2152 | if (temp9) | |
2153 | delete arg9; | |
2154 | } | |
2155 | return NULL; | |
2156 | } | |
2157 | ||
2158 | ||
2159 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2160 | PyObject *resultobj; | |
2161 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2162 | bool result; | |
2163 | PyObject * obj0 = 0 ; | |
2164 | char *kwnames[] = { | |
2165 | (char *) "self", NULL | |
2166 | }; | |
2167 | ||
2168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2171 | { |
2172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2173 | result = (bool)(arg1)->GetValue(); | |
2174 | ||
2175 | wxPyEndAllowThreads(__tstate); | |
2176 | if (PyErr_Occurred()) SWIG_fail; | |
2177 | } | |
4f89f6a3 RD |
2178 | { |
2179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2180 | } | |
d14a1e28 RD |
2181 | return resultobj; |
2182 | fail: | |
2183 | return NULL; | |
2184 | } | |
2185 | ||
2186 | ||
2187 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2188 | PyObject *resultobj; | |
2189 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2190 | bool result; | |
2191 | PyObject * obj0 = 0 ; | |
2192 | char *kwnames[] = { | |
2193 | (char *) "self", NULL | |
2194 | }; | |
2195 | ||
2196 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2197 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2198 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2199 | { |
2200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2201 | result = (bool)(arg1)->IsChecked(); | |
2202 | ||
2203 | wxPyEndAllowThreads(__tstate); | |
2204 | if (PyErr_Occurred()) SWIG_fail; | |
2205 | } | |
4f89f6a3 RD |
2206 | { |
2207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2208 | } | |
d14a1e28 RD |
2209 | return resultobj; |
2210 | fail: | |
2211 | return NULL; | |
2212 | } | |
2213 | ||
2214 | ||
2215 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2216 | PyObject *resultobj; | |
2217 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2218 | bool arg2 ; | |
2219 | PyObject * obj0 = 0 ; | |
2220 | PyObject * obj1 = 0 ; | |
2221 | char *kwnames[] = { | |
2222 | (char *) "self",(char *) "state", NULL | |
2223 | }; | |
2224 | ||
2225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2228 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2229 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2230 | { |
2231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2232 | (arg1)->SetValue(arg2); | |
2233 | ||
2234 | wxPyEndAllowThreads(__tstate); | |
2235 | if (PyErr_Occurred()) SWIG_fail; | |
2236 | } | |
2237 | Py_INCREF(Py_None); resultobj = Py_None; | |
2238 | return resultobj; | |
2239 | fail: | |
2240 | return NULL; | |
2241 | } | |
2242 | ||
2243 | ||
2244 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2245 | PyObject *resultobj; | |
2246 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2247 | int result; | |
2248 | PyObject * obj0 = 0 ; | |
2249 | char *kwnames[] = { | |
2250 | (char *) "self", NULL | |
2251 | }; | |
2252 | ||
2253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2256 | { |
2257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2258 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2259 | ||
2260 | wxPyEndAllowThreads(__tstate); | |
2261 | if (PyErr_Occurred()) SWIG_fail; | |
2262 | } | |
2f4c0a16 | 2263 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2264 | return resultobj; |
2265 | fail: | |
2266 | return NULL; | |
2267 | } | |
2268 | ||
2269 | ||
2270 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2271 | PyObject *resultobj; | |
2272 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2273 | int arg2 ; | |
2274 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2276 | char *kwnames[] = { |
2277 | (char *) "self",(char *) "state", NULL | |
2278 | }; | |
2279 | ||
8edf1c75 | 2280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2283 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2285 | { |
2286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2287 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2288 | ||
2289 | wxPyEndAllowThreads(__tstate); | |
2290 | if (PyErr_Occurred()) SWIG_fail; | |
2291 | } | |
2292 | Py_INCREF(Py_None); resultobj = Py_None; | |
2293 | return resultobj; | |
2294 | fail: | |
2295 | return NULL; | |
2296 | } | |
2297 | ||
2298 | ||
2299 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2300 | PyObject *resultobj; | |
2301 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2302 | bool result; | |
2303 | PyObject * obj0 = 0 ; | |
2304 | char *kwnames[] = { | |
2305 | (char *) "self", NULL | |
2306 | }; | |
2307 | ||
2308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2311 | { |
2312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2313 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2314 | ||
2315 | wxPyEndAllowThreads(__tstate); | |
2316 | if (PyErr_Occurred()) SWIG_fail; | |
2317 | } | |
4f89f6a3 RD |
2318 | { |
2319 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2320 | } | |
d14a1e28 RD |
2321 | return resultobj; |
2322 | fail: | |
2323 | return NULL; | |
2324 | } | |
2325 | ||
2326 | ||
2327 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2328 | PyObject *resultobj; | |
2329 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2330 | bool result; | |
2331 | PyObject * obj0 = 0 ; | |
2332 | char *kwnames[] = { | |
2333 | (char *) "self", NULL | |
2334 | }; | |
2335 | ||
2336 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2337 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2339 | { |
2340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2341 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2342 | ||
2343 | wxPyEndAllowThreads(__tstate); | |
2344 | if (PyErr_Occurred()) SWIG_fail; | |
2345 | } | |
4f89f6a3 RD |
2346 | { |
2347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2348 | } | |
d14a1e28 RD |
2349 | return resultobj; |
2350 | fail: | |
2351 | return NULL; | |
2352 | } | |
2353 | ||
2354 | ||
2355 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2356 | PyObject *obj; | |
2357 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2358 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2359 | Py_INCREF(obj); | |
2360 | return Py_BuildValue((char *)""); | |
2361 | } | |
2f4c0a16 | 2362 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
d03fd34d RD |
2363 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2364 | return 1; | |
2365 | } | |
2366 | ||
2367 | ||
2368 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2369 | PyObject *pyobj; | |
2370 | ||
2371 | { | |
2372 | #if wxUSE_UNICODE | |
2373 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2374 | #else | |
2375 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2376 | #endif | |
2377 | } | |
2378 | return pyobj; | |
2379 | } | |
2380 | ||
2381 | ||
d14a1e28 RD |
2382 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2383 | PyObject *resultobj; | |
2384 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2385 | int arg2 ; |
d14a1e28 RD |
2386 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2387 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2388 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2389 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
2390 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2391 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2392 | long arg6 = (long) 0 ; | |
2393 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2394 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2395 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2396 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2397 | wxChoice *result; |
2398 | wxPoint temp3 ; | |
2399 | wxSize temp4 ; | |
db914595 | 2400 | bool temp5 = False ; |
423f194a | 2401 | bool temp8 = False ; |
d14a1e28 | 2402 | PyObject * obj0 = 0 ; |
8edf1c75 | 2403 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2404 | PyObject * obj2 = 0 ; |
2405 | PyObject * obj3 = 0 ; | |
2406 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2407 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2408 | PyObject * obj6 = 0 ; |
2409 | PyObject * obj7 = 0 ; | |
2410 | char *kwnames[] = { | |
2411 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2412 | }; | |
2413 | ||
8edf1c75 | 2414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
2415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2417 | arg2 = (int) SWIG_AsInt(obj1); | |
2418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2419 | if (obj2) { |
2420 | { | |
2421 | arg3 = &temp3; | |
2422 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2423 | } | |
2424 | } | |
2425 | if (obj3) { | |
2426 | { | |
2427 | arg4 = &temp4; | |
2428 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2429 | } | |
2430 | } | |
2431 | if (obj4) { | |
2432 | { | |
4e760a36 RD |
2433 | if (! PySequence_Check(obj4)) { |
2434 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2435 | SWIG_fail; | |
2436 | } | |
2437 | arg5 = new wxArrayString; | |
db914595 | 2438 | temp5 = True; |
4e760a36 RD |
2439 | int i, len=PySequence_Length(obj4); |
2440 | for (i=0; i<len; i++) { | |
2441 | PyObject* item = PySequence_GetItem(obj4, i); | |
2442 | #if wxUSE_UNICODE | |
2443 | PyObject* str = PyObject_Unicode(item); | |
2444 | #else | |
2445 | PyObject* str = PyObject_Str(item); | |
2446 | #endif | |
74a57fcd | 2447 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
2448 | arg5->Add(Py2wxString(str)); |
2449 | Py_DECREF(item); | |
2450 | Py_DECREF(str); | |
2451 | } | |
d14a1e28 RD |
2452 | } |
2453 | } | |
8edf1c75 | 2454 | if (obj5) { |
2f4c0a16 RD |
2455 | arg6 = (long) SWIG_AsLong(obj5); |
2456 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2457 | } |
d14a1e28 | 2458 | if (obj6) { |
2f4c0a16 RD |
2459 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2461 | SWIG_fail; | |
4e760a36 | 2462 | if (arg7 == NULL) { |
2f4c0a16 RD |
2463 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2464 | SWIG_fail; | |
d14a1e28 RD |
2465 | } |
2466 | } | |
2467 | if (obj7) { | |
2468 | { | |
4e760a36 RD |
2469 | arg8 = wxString_in_helper(obj7); |
2470 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2471 | temp8 = True; |
d14a1e28 RD |
2472 | } |
2473 | } | |
2474 | { | |
2475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2476 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2477 | |
2478 | wxPyEndAllowThreads(__tstate); | |
2479 | if (PyErr_Occurred()) SWIG_fail; | |
2480 | } | |
2f4c0a16 | 2481 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2482 | { |
db914595 | 2483 | if (temp5) delete arg5; |
d14a1e28 RD |
2484 | } |
2485 | { | |
2486 | if (temp8) | |
4e760a36 | 2487 | delete arg8; |
d14a1e28 RD |
2488 | } |
2489 | return resultobj; | |
2490 | fail: | |
2491 | { | |
db914595 | 2492 | if (temp5) delete arg5; |
d14a1e28 RD |
2493 | } |
2494 | { | |
2495 | if (temp8) | |
4e760a36 | 2496 | delete arg8; |
d14a1e28 RD |
2497 | } |
2498 | return NULL; | |
2499 | } | |
2500 | ||
2501 | ||
2502 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2503 | PyObject *resultobj; | |
2504 | wxChoice *result; | |
2505 | char *kwnames[] = { | |
2506 | NULL | |
2507 | }; | |
2508 | ||
2509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2510 | { | |
2511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2512 | result = (wxChoice *)new wxChoice(); | |
2513 | ||
2514 | wxPyEndAllowThreads(__tstate); | |
2515 | if (PyErr_Occurred()) SWIG_fail; | |
2516 | } | |
2f4c0a16 | 2517 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2518 | return resultobj; |
2519 | fail: | |
2520 | return NULL; | |
2521 | } | |
2522 | ||
2523 | ||
2524 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2525 | PyObject *resultobj; | |
2526 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2527 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2528 | int arg3 ; |
d14a1e28 RD |
2529 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2530 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2531 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2532 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2533 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2534 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2535 | long arg7 = (long) 0 ; | |
2536 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2537 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2538 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2539 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2540 | bool result; |
2541 | wxPoint temp4 ; | |
2542 | wxSize temp5 ; | |
db914595 | 2543 | bool temp6 = False ; |
423f194a | 2544 | bool temp9 = False ; |
d14a1e28 RD |
2545 | PyObject * obj0 = 0 ; |
2546 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2547 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2548 | PyObject * obj3 = 0 ; |
2549 | PyObject * obj4 = 0 ; | |
2550 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2551 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2552 | PyObject * obj7 = 0 ; |
2553 | PyObject * obj8 = 0 ; | |
2554 | char *kwnames[] = { | |
2555 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2556 | }; | |
2557 | ||
8edf1c75 | 2558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2561 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2563 | arg3 = (int) SWIG_AsInt(obj2); | |
2564 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2565 | if (obj3) { |
2566 | { | |
2567 | arg4 = &temp4; | |
2568 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2569 | } | |
2570 | } | |
2571 | if (obj4) { | |
2572 | { | |
2573 | arg5 = &temp5; | |
2574 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2575 | } | |
2576 | } | |
2577 | if (obj5) { | |
2578 | { | |
4e760a36 RD |
2579 | if (! PySequence_Check(obj5)) { |
2580 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2581 | SWIG_fail; | |
2582 | } | |
2583 | arg6 = new wxArrayString; | |
db914595 | 2584 | temp6 = True; |
4e760a36 RD |
2585 | int i, len=PySequence_Length(obj5); |
2586 | for (i=0; i<len; i++) { | |
2587 | PyObject* item = PySequence_GetItem(obj5, i); | |
2588 | #if wxUSE_UNICODE | |
2589 | PyObject* str = PyObject_Unicode(item); | |
2590 | #else | |
2591 | PyObject* str = PyObject_Str(item); | |
2592 | #endif | |
74a57fcd | 2593 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
2594 | arg6->Add(Py2wxString(str)); |
2595 | Py_DECREF(item); | |
2596 | Py_DECREF(str); | |
2597 | } | |
d14a1e28 RD |
2598 | } |
2599 | } | |
8edf1c75 | 2600 | if (obj6) { |
2f4c0a16 RD |
2601 | arg7 = (long) SWIG_AsLong(obj6); |
2602 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2603 | } |
d14a1e28 | 2604 | if (obj7) { |
2f4c0a16 RD |
2605 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2607 | SWIG_fail; | |
4e760a36 | 2608 | if (arg8 == NULL) { |
2f4c0a16 RD |
2609 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2610 | SWIG_fail; | |
d14a1e28 RD |
2611 | } |
2612 | } | |
2613 | if (obj8) { | |
2614 | { | |
4e760a36 RD |
2615 | arg9 = wxString_in_helper(obj8); |
2616 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2617 | temp9 = True; |
d14a1e28 RD |
2618 | } |
2619 | } | |
2620 | { | |
2621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2622 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2623 | |
2624 | wxPyEndAllowThreads(__tstate); | |
2625 | if (PyErr_Occurred()) SWIG_fail; | |
2626 | } | |
4f89f6a3 RD |
2627 | { |
2628 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2629 | } | |
d14a1e28 | 2630 | { |
db914595 | 2631 | if (temp6) delete arg6; |
d14a1e28 RD |
2632 | } |
2633 | { | |
2634 | if (temp9) | |
4e760a36 | 2635 | delete arg9; |
d14a1e28 RD |
2636 | } |
2637 | return resultobj; | |
2638 | fail: | |
2639 | { | |
db914595 | 2640 | if (temp6) delete arg6; |
d14a1e28 RD |
2641 | } |
2642 | { | |
2643 | if (temp9) | |
4e760a36 | 2644 | delete arg9; |
d14a1e28 RD |
2645 | } |
2646 | return NULL; | |
2647 | } | |
2648 | ||
2649 | ||
d14a1e28 RD |
2650 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2651 | PyObject *resultobj; | |
2652 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2653 | int arg2 ; | |
2654 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2655 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2656 | char *kwnames[] = { |
2657 | (char *) "self",(char *) "n", NULL | |
2658 | }; | |
2659 | ||
8edf1c75 | 2660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2663 | arg2 = (int const) SWIG_AsInt(obj1); | |
2664 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2665 | { |
2666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2667 | (arg1)->SetSelection(arg2); | |
2668 | ||
2669 | wxPyEndAllowThreads(__tstate); | |
2670 | if (PyErr_Occurred()) SWIG_fail; | |
2671 | } | |
2672 | Py_INCREF(Py_None); resultobj = Py_None; | |
2673 | return resultobj; | |
2674 | fail: | |
2675 | return NULL; | |
2676 | } | |
2677 | ||
2678 | ||
2679 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2680 | PyObject *resultobj; | |
2681 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2682 | wxString *arg2 = 0 ; | |
423f194a | 2683 | bool temp2 = False ; |
d14a1e28 RD |
2684 | PyObject * obj0 = 0 ; |
2685 | PyObject * obj1 = 0 ; | |
2686 | char *kwnames[] = { | |
2687 | (char *) "self",(char *) "string", NULL | |
2688 | }; | |
2689 | ||
2690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2693 | { |
2694 | arg2 = wxString_in_helper(obj1); | |
2695 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2696 | temp2 = True; |
d14a1e28 RD |
2697 | } |
2698 | { | |
2699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2700 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2701 | ||
2702 | wxPyEndAllowThreads(__tstate); | |
2703 | if (PyErr_Occurred()) SWIG_fail; | |
2704 | } | |
2705 | Py_INCREF(Py_None); resultobj = Py_None; | |
2706 | { | |
2707 | if (temp2) | |
2708 | delete arg2; | |
2709 | } | |
2710 | return resultobj; | |
2711 | fail: | |
2712 | { | |
2713 | if (temp2) | |
2714 | delete arg2; | |
2715 | } | |
2716 | return NULL; | |
2717 | } | |
2718 | ||
2719 | ||
2720 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2721 | PyObject *resultobj; | |
2722 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2723 | int arg2 ; | |
2724 | wxString *arg3 = 0 ; | |
423f194a | 2725 | bool temp3 = False ; |
d14a1e28 | 2726 | PyObject * obj0 = 0 ; |
8edf1c75 | 2727 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2728 | PyObject * obj2 = 0 ; |
2729 | char *kwnames[] = { | |
1f05e33b | 2730 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2731 | }; |
2732 | ||
8edf1c75 | 2733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2736 | arg2 = (int) SWIG_AsInt(obj1); | |
2737 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2738 | { |
2739 | arg3 = wxString_in_helper(obj2); | |
2740 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2741 | temp3 = True; |
d14a1e28 RD |
2742 | } |
2743 | { | |
2744 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2745 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2746 | ||
2747 | wxPyEndAllowThreads(__tstate); | |
2748 | if (PyErr_Occurred()) SWIG_fail; | |
2749 | } | |
2750 | Py_INCREF(Py_None); resultobj = Py_None; | |
2751 | { | |
2752 | if (temp3) | |
2753 | delete arg3; | |
2754 | } | |
2755 | return resultobj; | |
2756 | fail: | |
2757 | { | |
2758 | if (temp3) | |
2759 | delete arg3; | |
2760 | } | |
2761 | return NULL; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2766 | PyObject *obj; | |
2767 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2768 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2769 | Py_INCREF(obj); | |
2770 | return Py_BuildValue((char *)""); | |
2771 | } | |
2f4c0a16 | 2772 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
2773 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2774 | return 1; | |
2775 | } | |
2776 | ||
2777 | ||
2778 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2779 | PyObject *pyobj; | |
2780 | ||
2781 | { | |
2782 | #if wxUSE_UNICODE | |
2783 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2784 | #else | |
2785 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2786 | #endif | |
2787 | } | |
2788 | return pyobj; | |
2789 | } | |
2790 | ||
2791 | ||
d14a1e28 RD |
2792 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2793 | PyObject *resultobj; | |
2794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2795 | int arg2 ; |
d14a1e28 RD |
2796 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2797 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2798 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2799 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2800 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2801 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2802 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2803 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2804 | long arg7 = (long) 0 ; | |
2805 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2806 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2807 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2808 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2809 | wxComboBox *result; |
423f194a | 2810 | bool temp3 = False ; |
d14a1e28 RD |
2811 | wxPoint temp4 ; |
2812 | wxSize temp5 ; | |
db914595 | 2813 | bool temp6 = False ; |
423f194a | 2814 | bool temp9 = False ; |
d14a1e28 | 2815 | PyObject * obj0 = 0 ; |
8edf1c75 | 2816 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2817 | PyObject * obj2 = 0 ; |
2818 | PyObject * obj3 = 0 ; | |
2819 | PyObject * obj4 = 0 ; | |
2820 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2821 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2822 | PyObject * obj7 = 0 ; |
2823 | PyObject * obj8 = 0 ; | |
2824 | char *kwnames[] = { | |
2825 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2826 | }; | |
2827 | ||
8edf1c75 | 2828 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2829 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2830 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2831 | arg2 = (int) SWIG_AsInt(obj1); | |
2832 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2833 | if (obj2) { |
2834 | { | |
2835 | arg3 = wxString_in_helper(obj2); | |
2836 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2837 | temp3 = True; |
d14a1e28 RD |
2838 | } |
2839 | } | |
2840 | if (obj3) { | |
2841 | { | |
2842 | arg4 = &temp4; | |
2843 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2844 | } | |
2845 | } | |
2846 | if (obj4) { | |
2847 | { | |
2848 | arg5 = &temp5; | |
2849 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2850 | } | |
2851 | } | |
2852 | if (obj5) { | |
2853 | { | |
4e760a36 RD |
2854 | if (! PySequence_Check(obj5)) { |
2855 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2856 | SWIG_fail; | |
2857 | } | |
2858 | arg6 = new wxArrayString; | |
db914595 | 2859 | temp6 = True; |
4e760a36 RD |
2860 | int i, len=PySequence_Length(obj5); |
2861 | for (i=0; i<len; i++) { | |
2862 | PyObject* item = PySequence_GetItem(obj5, i); | |
2863 | #if wxUSE_UNICODE | |
2864 | PyObject* str = PyObject_Unicode(item); | |
2865 | #else | |
2866 | PyObject* str = PyObject_Str(item); | |
2867 | #endif | |
74a57fcd | 2868 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
2869 | arg6->Add(Py2wxString(str)); |
2870 | Py_DECREF(item); | |
2871 | Py_DECREF(str); | |
2872 | } | |
d14a1e28 RD |
2873 | } |
2874 | } | |
8edf1c75 | 2875 | if (obj6) { |
2f4c0a16 RD |
2876 | arg7 = (long) SWIG_AsLong(obj6); |
2877 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2878 | } |
d14a1e28 | 2879 | if (obj7) { |
2f4c0a16 RD |
2880 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2882 | SWIG_fail; | |
4e760a36 | 2883 | if (arg8 == NULL) { |
2f4c0a16 RD |
2884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2885 | SWIG_fail; | |
d14a1e28 RD |
2886 | } |
2887 | } | |
2888 | if (obj8) { | |
2889 | { | |
4e760a36 RD |
2890 | arg9 = wxString_in_helper(obj8); |
2891 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2892 | temp9 = True; |
d14a1e28 RD |
2893 | } |
2894 | } | |
2895 | { | |
2896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2897 | 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); |
d14a1e28 RD |
2898 | |
2899 | wxPyEndAllowThreads(__tstate); | |
2900 | if (PyErr_Occurred()) SWIG_fail; | |
2901 | } | |
2f4c0a16 | 2902 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2903 | { |
2904 | if (temp3) | |
2905 | delete arg3; | |
2906 | } | |
2907 | { | |
db914595 | 2908 | if (temp6) delete arg6; |
d14a1e28 RD |
2909 | } |
2910 | { | |
2911 | if (temp9) | |
4e760a36 | 2912 | delete arg9; |
d14a1e28 RD |
2913 | } |
2914 | return resultobj; | |
2915 | fail: | |
2916 | { | |
2917 | if (temp3) | |
2918 | delete arg3; | |
2919 | } | |
2920 | { | |
db914595 | 2921 | if (temp6) delete arg6; |
d14a1e28 RD |
2922 | } |
2923 | { | |
2924 | if (temp9) | |
4e760a36 | 2925 | delete arg9; |
d14a1e28 RD |
2926 | } |
2927 | return NULL; | |
2928 | } | |
2929 | ||
2930 | ||
2931 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2932 | PyObject *resultobj; | |
2933 | wxComboBox *result; | |
2934 | char *kwnames[] = { | |
2935 | NULL | |
2936 | }; | |
2937 | ||
2938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2939 | { | |
2940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2941 | result = (wxComboBox *)new wxComboBox(); | |
2942 | ||
2943 | wxPyEndAllowThreads(__tstate); | |
2944 | if (PyErr_Occurred()) SWIG_fail; | |
2945 | } | |
2f4c0a16 | 2946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2947 | return resultobj; |
2948 | fail: | |
2949 | return NULL; | |
2950 | } | |
2951 | ||
2952 | ||
2953 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2954 | PyObject *resultobj; | |
2955 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2956 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2957 | int arg3 ; |
d14a1e28 RD |
2958 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2959 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2960 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2961 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2962 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2963 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
2964 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2965 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2966 | long arg8 = (long) 0 ; | |
2967 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2968 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
328fcd84 | 2969 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4e760a36 | 2970 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2971 | bool result; |
423f194a | 2972 | bool temp4 = False ; |
d14a1e28 RD |
2973 | wxPoint temp5 ; |
2974 | wxSize temp6 ; | |
db914595 | 2975 | bool temp7 = False ; |
423f194a | 2976 | bool temp10 = False ; |
d14a1e28 RD |
2977 | PyObject * obj0 = 0 ; |
2978 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2979 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2980 | PyObject * obj3 = 0 ; |
2981 | PyObject * obj4 = 0 ; | |
2982 | PyObject * obj5 = 0 ; | |
2983 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2984 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2985 | PyObject * obj8 = 0 ; |
2986 | PyObject * obj9 = 0 ; | |
2987 | char *kwnames[] = { | |
2988 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2989 | }; | |
2990 | ||
8edf1c75 | 2991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
2992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
2993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2994 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2996 | arg3 = (int) SWIG_AsInt(obj2); | |
2997 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2998 | if (obj3) { |
2999 | { | |
3000 | arg4 = wxString_in_helper(obj3); | |
3001 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3002 | temp4 = True; |
d14a1e28 RD |
3003 | } |
3004 | } | |
3005 | if (obj4) { | |
3006 | { | |
3007 | arg5 = &temp5; | |
3008 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3009 | } | |
3010 | } | |
3011 | if (obj5) { | |
3012 | { | |
3013 | arg6 = &temp6; | |
3014 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3015 | } | |
3016 | } | |
3017 | if (obj6) { | |
3018 | { | |
4e760a36 RD |
3019 | if (! PySequence_Check(obj6)) { |
3020 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3021 | SWIG_fail; | |
3022 | } | |
3023 | arg7 = new wxArrayString; | |
db914595 | 3024 | temp7 = True; |
4e760a36 RD |
3025 | int i, len=PySequence_Length(obj6); |
3026 | for (i=0; i<len; i++) { | |
3027 | PyObject* item = PySequence_GetItem(obj6, i); | |
3028 | #if wxUSE_UNICODE | |
3029 | PyObject* str = PyObject_Unicode(item); | |
3030 | #else | |
3031 | PyObject* str = PyObject_Str(item); | |
3032 | #endif | |
74a57fcd | 3033 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
3034 | arg7->Add(Py2wxString(str)); |
3035 | Py_DECREF(item); | |
3036 | Py_DECREF(str); | |
3037 | } | |
d14a1e28 RD |
3038 | } |
3039 | } | |
8edf1c75 | 3040 | if (obj7) { |
2f4c0a16 RD |
3041 | arg8 = (long) SWIG_AsLong(obj7); |
3042 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3043 | } |
d14a1e28 | 3044 | if (obj8) { |
2f4c0a16 RD |
3045 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3046 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3047 | SWIG_fail; | |
4e760a36 | 3048 | if (arg9 == NULL) { |
2f4c0a16 RD |
3049 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3050 | SWIG_fail; | |
d14a1e28 RD |
3051 | } |
3052 | } | |
3053 | if (obj9) { | |
3054 | { | |
4e760a36 RD |
3055 | arg10 = wxString_in_helper(obj9); |
3056 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 3057 | temp10 = True; |
d14a1e28 RD |
3058 | } |
3059 | } | |
3060 | { | |
3061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 3062 | 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); |
d14a1e28 RD |
3063 | |
3064 | wxPyEndAllowThreads(__tstate); | |
3065 | if (PyErr_Occurred()) SWIG_fail; | |
3066 | } | |
4f89f6a3 RD |
3067 | { |
3068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3069 | } | |
d14a1e28 RD |
3070 | { |
3071 | if (temp4) | |
3072 | delete arg4; | |
3073 | } | |
3074 | { | |
db914595 | 3075 | if (temp7) delete arg7; |
d14a1e28 RD |
3076 | } |
3077 | { | |
3078 | if (temp10) | |
4e760a36 | 3079 | delete arg10; |
d14a1e28 RD |
3080 | } |
3081 | return resultobj; | |
3082 | fail: | |
3083 | { | |
3084 | if (temp4) | |
3085 | delete arg4; | |
3086 | } | |
3087 | { | |
db914595 | 3088 | if (temp7) delete arg7; |
d14a1e28 RD |
3089 | } |
3090 | { | |
3091 | if (temp10) | |
4e760a36 | 3092 | delete arg10; |
d14a1e28 RD |
3093 | } |
3094 | return NULL; | |
3095 | } | |
3096 | ||
3097 | ||
3098 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3099 | PyObject *resultobj; | |
3100 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3101 | wxString result; | |
3102 | PyObject * obj0 = 0 ; | |
3103 | char *kwnames[] = { | |
3104 | (char *) "self", NULL | |
3105 | }; | |
3106 | ||
3107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3110 | { |
3111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3112 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3113 | ||
3114 | wxPyEndAllowThreads(__tstate); | |
3115 | if (PyErr_Occurred()) SWIG_fail; | |
3116 | } | |
3117 | { | |
3118 | #if wxUSE_UNICODE | |
3119 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3120 | #else | |
3121 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3122 | #endif | |
3123 | } | |
3124 | return resultobj; | |
3125 | fail: | |
3126 | return NULL; | |
3127 | } | |
3128 | ||
3129 | ||
3130 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3131 | PyObject *resultobj; | |
3132 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3133 | wxString *arg2 = 0 ; | |
423f194a | 3134 | bool temp2 = False ; |
d14a1e28 RD |
3135 | PyObject * obj0 = 0 ; |
3136 | PyObject * obj1 = 0 ; | |
3137 | char *kwnames[] = { | |
3138 | (char *) "self",(char *) "value", NULL | |
3139 | }; | |
3140 | ||
3141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3144 | { |
3145 | arg2 = wxString_in_helper(obj1); | |
3146 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3147 | temp2 = True; |
d14a1e28 RD |
3148 | } |
3149 | { | |
3150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3151 | (arg1)->SetValue((wxString const &)*arg2); | |
3152 | ||
3153 | wxPyEndAllowThreads(__tstate); | |
3154 | if (PyErr_Occurred()) SWIG_fail; | |
3155 | } | |
3156 | Py_INCREF(Py_None); resultobj = Py_None; | |
3157 | { | |
3158 | if (temp2) | |
3159 | delete arg2; | |
3160 | } | |
3161 | return resultobj; | |
3162 | fail: | |
3163 | { | |
3164 | if (temp2) | |
3165 | delete arg2; | |
3166 | } | |
3167 | return NULL; | |
3168 | } | |
3169 | ||
3170 | ||
3171 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3172 | PyObject *resultobj; | |
3173 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3174 | PyObject * obj0 = 0 ; | |
3175 | char *kwnames[] = { | |
3176 | (char *) "self", NULL | |
3177 | }; | |
3178 | ||
3179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3182 | { |
3183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3184 | (arg1)->Copy(); | |
3185 | ||
3186 | wxPyEndAllowThreads(__tstate); | |
3187 | if (PyErr_Occurred()) SWIG_fail; | |
3188 | } | |
3189 | Py_INCREF(Py_None); resultobj = Py_None; | |
3190 | return resultobj; | |
3191 | fail: | |
3192 | return NULL; | |
3193 | } | |
3194 | ||
3195 | ||
3196 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3197 | PyObject *resultobj; | |
3198 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3199 | PyObject * obj0 = 0 ; | |
3200 | char *kwnames[] = { | |
3201 | (char *) "self", NULL | |
3202 | }; | |
3203 | ||
3204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3207 | { |
3208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3209 | (arg1)->Cut(); | |
3210 | ||
3211 | wxPyEndAllowThreads(__tstate); | |
3212 | if (PyErr_Occurred()) SWIG_fail; | |
3213 | } | |
3214 | Py_INCREF(Py_None); resultobj = Py_None; | |
3215 | return resultobj; | |
3216 | fail: | |
3217 | return NULL; | |
3218 | } | |
3219 | ||
3220 | ||
3221 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3222 | PyObject *resultobj; | |
3223 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3224 | PyObject * obj0 = 0 ; | |
3225 | char *kwnames[] = { | |
3226 | (char *) "self", NULL | |
3227 | }; | |
3228 | ||
3229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3232 | { |
3233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3234 | (arg1)->Paste(); | |
3235 | ||
3236 | wxPyEndAllowThreads(__tstate); | |
3237 | if (PyErr_Occurred()) SWIG_fail; | |
3238 | } | |
3239 | Py_INCREF(Py_None); resultobj = Py_None; | |
3240 | return resultobj; | |
3241 | fail: | |
3242 | return NULL; | |
3243 | } | |
3244 | ||
3245 | ||
3246 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3249 | long arg2 ; | |
3250 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3251 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3252 | char *kwnames[] = { |
3253 | (char *) "self",(char *) "pos", NULL | |
3254 | }; | |
3255 | ||
8edf1c75 | 3256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3259 | arg2 = (long) SWIG_AsLong(obj1); | |
3260 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3261 | { |
3262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3263 | (arg1)->SetInsertionPoint(arg2); | |
3264 | ||
3265 | wxPyEndAllowThreads(__tstate); | |
3266 | if (PyErr_Occurred()) SWIG_fail; | |
3267 | } | |
3268 | Py_INCREF(Py_None); resultobj = Py_None; | |
3269 | return resultobj; | |
3270 | fail: | |
3271 | return NULL; | |
3272 | } | |
3273 | ||
3274 | ||
3275 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3276 | PyObject *resultobj; | |
3277 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3278 | long result; | |
3279 | PyObject * obj0 = 0 ; | |
3280 | char *kwnames[] = { | |
3281 | (char *) "self", NULL | |
3282 | }; | |
3283 | ||
3284 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3285 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3287 | { |
3288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3289 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3290 | ||
3291 | wxPyEndAllowThreads(__tstate); | |
3292 | if (PyErr_Occurred()) SWIG_fail; | |
3293 | } | |
2f4c0a16 | 3294 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3295 | return resultobj; |
3296 | fail: | |
3297 | return NULL; | |
3298 | } | |
3299 | ||
3300 | ||
3301 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3302 | PyObject *resultobj; | |
3303 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3304 | long result; | |
3305 | PyObject * obj0 = 0 ; | |
3306 | char *kwnames[] = { | |
3307 | (char *) "self", NULL | |
3308 | }; | |
3309 | ||
3310 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3311 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3313 | { |
3314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3315 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3316 | ||
3317 | wxPyEndAllowThreads(__tstate); | |
3318 | if (PyErr_Occurred()) SWIG_fail; | |
3319 | } | |
2f4c0a16 | 3320 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3321 | return resultobj; |
3322 | fail: | |
3323 | return NULL; | |
3324 | } | |
3325 | ||
3326 | ||
3327 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3328 | PyObject *resultobj; | |
3329 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3330 | long arg2 ; | |
3331 | long arg3 ; | |
3332 | wxString *arg4 = 0 ; | |
423f194a | 3333 | bool temp4 = False ; |
d14a1e28 | 3334 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3335 | PyObject * obj1 = 0 ; |
3336 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3337 | PyObject * obj3 = 0 ; |
3338 | char *kwnames[] = { | |
3339 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3340 | }; | |
3341 | ||
8edf1c75 | 3342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
3343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3345 | arg2 = (long) SWIG_AsLong(obj1); | |
3346 | if (PyErr_Occurred()) SWIG_fail; | |
3347 | arg3 = (long) SWIG_AsLong(obj2); | |
3348 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3349 | { |
3350 | arg4 = wxString_in_helper(obj3); | |
3351 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3352 | temp4 = True; |
d14a1e28 RD |
3353 | } |
3354 | { | |
3355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3356 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3357 | ||
3358 | wxPyEndAllowThreads(__tstate); | |
3359 | if (PyErr_Occurred()) SWIG_fail; | |
3360 | } | |
3361 | Py_INCREF(Py_None); resultobj = Py_None; | |
3362 | { | |
3363 | if (temp4) | |
3364 | delete arg4; | |
3365 | } | |
3366 | return resultobj; | |
3367 | fail: | |
3368 | { | |
3369 | if (temp4) | |
3370 | delete arg4; | |
3371 | } | |
3372 | return NULL; | |
3373 | } | |
3374 | ||
3375 | ||
8a0b029b RD |
3376 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3377 | PyObject *resultobj; | |
3378 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3379 | int arg2 ; | |
3380 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3381 | PyObject * obj1 = 0 ; |
8a0b029b RD |
3382 | char *kwnames[] = { |
3383 | (char *) "self",(char *) "n", NULL | |
3384 | }; | |
3385 | ||
8edf1c75 | 3386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3389 | arg2 = (int) SWIG_AsInt(obj1); | |
3390 | if (PyErr_Occurred()) SWIG_fail; | |
8a0b029b RD |
3391 | { |
3392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3393 | (arg1)->SetSelection(arg2); | |
3394 | ||
3395 | wxPyEndAllowThreads(__tstate); | |
3396 | if (PyErr_Occurred()) SWIG_fail; | |
3397 | } | |
3398 | Py_INCREF(Py_None); resultobj = Py_None; | |
3399 | return resultobj; | |
3400 | fail: | |
3401 | return NULL; | |
3402 | } | |
3403 | ||
3404 | ||
d14a1e28 RD |
3405 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3406 | PyObject *resultobj; | |
3407 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3408 | long arg2 ; | |
3409 | long arg3 ; | |
3410 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3411 | PyObject * obj1 = 0 ; |
3412 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3413 | char *kwnames[] = { |
3414 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3415 | }; | |
3416 | ||
8edf1c75 | 3417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3420 | arg2 = (long) SWIG_AsLong(obj1); | |
3421 | if (PyErr_Occurred()) SWIG_fail; | |
3422 | arg3 = (long) SWIG_AsLong(obj2); | |
3423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3424 | { |
3425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3426 | (arg1)->SetSelection(arg2,arg3); | |
3427 | ||
3428 | wxPyEndAllowThreads(__tstate); | |
3429 | if (PyErr_Occurred()) SWIG_fail; | |
3430 | } | |
3431 | Py_INCREF(Py_None); resultobj = Py_None; | |
3432 | return resultobj; | |
3433 | fail: | |
3434 | return NULL; | |
3435 | } | |
3436 | ||
3437 | ||
3438 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3439 | PyObject *resultobj; | |
3440 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3441 | bool arg2 ; | |
3442 | PyObject * obj0 = 0 ; | |
3443 | PyObject * obj1 = 0 ; | |
3444 | char *kwnames[] = { | |
3445 | (char *) "self",(char *) "editable", NULL | |
3446 | }; | |
3447 | ||
3448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3451 | arg2 = (bool) SWIG_AsBool(obj1); | |
3452 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3453 | { |
3454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3455 | (arg1)->SetEditable(arg2); | |
3456 | ||
3457 | wxPyEndAllowThreads(__tstate); | |
3458 | if (PyErr_Occurred()) SWIG_fail; | |
3459 | } | |
3460 | Py_INCREF(Py_None); resultobj = Py_None; | |
3461 | return resultobj; | |
3462 | fail: | |
3463 | return NULL; | |
3464 | } | |
3465 | ||
3466 | ||
3467 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3468 | PyObject *resultobj; | |
3469 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3470 | PyObject * obj0 = 0 ; | |
3471 | char *kwnames[] = { | |
3472 | (char *) "self", NULL | |
3473 | }; | |
3474 | ||
3475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3478 | { |
3479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3480 | (arg1)->SetInsertionPointEnd(); | |
3481 | ||
3482 | wxPyEndAllowThreads(__tstate); | |
3483 | if (PyErr_Occurred()) SWIG_fail; | |
3484 | } | |
3485 | Py_INCREF(Py_None); resultobj = Py_None; | |
3486 | return resultobj; | |
3487 | fail: | |
3488 | return NULL; | |
3489 | } | |
3490 | ||
3491 | ||
3492 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3493 | PyObject *resultobj; | |
3494 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3495 | long arg2 ; | |
3496 | long arg3 ; | |
3497 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3498 | PyObject * obj1 = 0 ; |
3499 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3500 | char *kwnames[] = { |
3501 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3502 | }; | |
3503 | ||
8edf1c75 | 3504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3507 | arg2 = (long) SWIG_AsLong(obj1); | |
3508 | if (PyErr_Occurred()) SWIG_fail; | |
3509 | arg3 = (long) SWIG_AsLong(obj2); | |
3510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3511 | { |
3512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3513 | (arg1)->Remove(arg2,arg3); | |
3514 | ||
3515 | wxPyEndAllowThreads(__tstate); | |
3516 | if (PyErr_Occurred()) SWIG_fail; | |
3517 | } | |
3518 | Py_INCREF(Py_None); resultobj = Py_None; | |
3519 | return resultobj; | |
3520 | fail: | |
3521 | return NULL; | |
3522 | } | |
3523 | ||
3524 | ||
3525 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3526 | PyObject *obj; | |
3527 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3528 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3529 | Py_INCREF(obj); | |
3530 | return Py_BuildValue((char *)""); | |
3531 | } | |
2f4c0a16 | 3532 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
d03fd34d RD |
3533 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3534 | return 1; | |
3535 | } | |
3536 | ||
3537 | ||
3538 | static PyObject *_wrap_GaugeNameStr_get() { | |
3539 | PyObject *pyobj; | |
3540 | ||
3541 | { | |
3542 | #if wxUSE_UNICODE | |
3543 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3544 | #else | |
3545 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3546 | #endif | |
3547 | } | |
3548 | return pyobj; | |
3549 | } | |
3550 | ||
3551 | ||
d14a1e28 RD |
3552 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3553 | PyObject *resultobj; | |
3554 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3555 | int arg2 ; |
d14a1e28 RD |
3556 | int arg3 ; |
3557 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3558 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3559 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3560 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3561 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3562 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3563 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3564 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3565 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3566 | wxGauge *result; | |
3567 | wxPoint temp4 ; | |
3568 | wxSize temp5 ; | |
423f194a | 3569 | bool temp8 = False ; |
d14a1e28 | 3570 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3571 | PyObject * obj1 = 0 ; |
3572 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3573 | PyObject * obj3 = 0 ; |
3574 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3575 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3576 | PyObject * obj6 = 0 ; |
3577 | PyObject * obj7 = 0 ; | |
3578 | char *kwnames[] = { | |
3579 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3580 | }; | |
3581 | ||
8edf1c75 | 3582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
3583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3585 | arg2 = (int) SWIG_AsInt(obj1); | |
3586 | if (PyErr_Occurred()) SWIG_fail; | |
3587 | arg3 = (int) SWIG_AsInt(obj2); | |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3589 | if (obj3) { |
3590 | { | |
3591 | arg4 = &temp4; | |
3592 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3593 | } | |
3594 | } | |
3595 | if (obj4) { | |
3596 | { | |
3597 | arg5 = &temp5; | |
3598 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3599 | } | |
3600 | } | |
8edf1c75 | 3601 | if (obj5) { |
2f4c0a16 RD |
3602 | arg6 = (long) SWIG_AsLong(obj5); |
3603 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3604 | } |
d14a1e28 | 3605 | if (obj6) { |
2f4c0a16 RD |
3606 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3607 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3608 | SWIG_fail; | |
d14a1e28 | 3609 | if (arg7 == NULL) { |
2f4c0a16 RD |
3610 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3611 | SWIG_fail; | |
d14a1e28 RD |
3612 | } |
3613 | } | |
3614 | if (obj7) { | |
3615 | { | |
3616 | arg8 = wxString_in_helper(obj7); | |
3617 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3618 | temp8 = True; |
d14a1e28 RD |
3619 | } |
3620 | } | |
3621 | { | |
3622 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3623 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3624 | ||
3625 | wxPyEndAllowThreads(__tstate); | |
3626 | if (PyErr_Occurred()) SWIG_fail; | |
3627 | } | |
2f4c0a16 | 3628 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3629 | { |
3630 | if (temp8) | |
3631 | delete arg8; | |
3632 | } | |
3633 | return resultobj; | |
3634 | fail: | |
3635 | { | |
3636 | if (temp8) | |
3637 | delete arg8; | |
3638 | } | |
3639 | return NULL; | |
3640 | } | |
3641 | ||
3642 | ||
3643 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3644 | PyObject *resultobj; | |
3645 | wxGauge *result; | |
3646 | char *kwnames[] = { | |
3647 | NULL | |
3648 | }; | |
3649 | ||
3650 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3651 | { | |
3652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3653 | result = (wxGauge *)new wxGauge(); | |
3654 | ||
3655 | wxPyEndAllowThreads(__tstate); | |
3656 | if (PyErr_Occurred()) SWIG_fail; | |
3657 | } | |
2f4c0a16 | 3658 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3659 | return resultobj; |
3660 | fail: | |
3661 | return NULL; | |
3662 | } | |
3663 | ||
3664 | ||
3665 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3666 | PyObject *resultobj; | |
3667 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3668 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3669 | int arg3 ; |
d14a1e28 RD |
3670 | int arg4 ; |
3671 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3672 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3673 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3674 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3675 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3676 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3677 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3678 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3679 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3680 | bool result; | |
3681 | wxPoint temp5 ; | |
3682 | wxSize temp6 ; | |
423f194a | 3683 | bool temp9 = False ; |
d14a1e28 RD |
3684 | PyObject * obj0 = 0 ; |
3685 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3686 | PyObject * obj2 = 0 ; |
3687 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3688 | PyObject * obj4 = 0 ; |
3689 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3690 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3691 | PyObject * obj7 = 0 ; |
3692 | PyObject * obj8 = 0 ; | |
3693 | char *kwnames[] = { | |
3694 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3695 | }; | |
3696 | ||
8edf1c75 | 3697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
3698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3700 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3702 | arg3 = (int) SWIG_AsInt(obj2); | |
3703 | if (PyErr_Occurred()) SWIG_fail; | |
3704 | arg4 = (int) SWIG_AsInt(obj3); | |
3705 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3706 | if (obj4) { |
3707 | { | |
3708 | arg5 = &temp5; | |
3709 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3710 | } | |
3711 | } | |
3712 | if (obj5) { | |
3713 | { | |
3714 | arg6 = &temp6; | |
3715 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3716 | } | |
3717 | } | |
8edf1c75 | 3718 | if (obj6) { |
2f4c0a16 RD |
3719 | arg7 = (long) SWIG_AsLong(obj6); |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3721 | } |
d14a1e28 | 3722 | if (obj7) { |
2f4c0a16 RD |
3723 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3724 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3725 | SWIG_fail; | |
d14a1e28 | 3726 | if (arg8 == NULL) { |
2f4c0a16 RD |
3727 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3728 | SWIG_fail; | |
d14a1e28 RD |
3729 | } |
3730 | } | |
3731 | if (obj8) { | |
3732 | { | |
3733 | arg9 = wxString_in_helper(obj8); | |
3734 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3735 | temp9 = True; |
d14a1e28 RD |
3736 | } |
3737 | } | |
3738 | { | |
3739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3740 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3741 | ||
3742 | wxPyEndAllowThreads(__tstate); | |
3743 | if (PyErr_Occurred()) SWIG_fail; | |
3744 | } | |
4f89f6a3 RD |
3745 | { |
3746 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3747 | } | |
d14a1e28 RD |
3748 | { |
3749 | if (temp9) | |
3750 | delete arg9; | |
3751 | } | |
3752 | return resultobj; | |
3753 | fail: | |
3754 | { | |
3755 | if (temp9) | |
3756 | delete arg9; | |
3757 | } | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
3762 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3763 | PyObject *resultobj; | |
3764 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3765 | int arg2 ; | |
3766 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3768 | char *kwnames[] = { |
3769 | (char *) "self",(char *) "range", NULL | |
3770 | }; | |
3771 | ||
8edf1c75 | 3772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3775 | arg2 = (int) SWIG_AsInt(obj1); | |
3776 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3777 | { |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3779 | (arg1)->SetRange(arg2); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
3782 | if (PyErr_Occurred()) SWIG_fail; | |
3783 | } | |
3784 | Py_INCREF(Py_None); resultobj = Py_None; | |
3785 | return resultobj; | |
3786 | fail: | |
3787 | return NULL; | |
3788 | } | |
3789 | ||
3790 | ||
3791 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3792 | PyObject *resultobj; | |
3793 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3794 | int result; | |
3795 | PyObject * obj0 = 0 ; | |
3796 | char *kwnames[] = { | |
3797 | (char *) "self", NULL | |
3798 | }; | |
3799 | ||
3800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3801 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3802 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3803 | { |
3804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3805 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3806 | ||
3807 | wxPyEndAllowThreads(__tstate); | |
3808 | if (PyErr_Occurred()) SWIG_fail; | |
3809 | } | |
2f4c0a16 | 3810 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3811 | return resultobj; |
3812 | fail: | |
3813 | return NULL; | |
3814 | } | |
3815 | ||
3816 | ||
3817 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3818 | PyObject *resultobj; | |
3819 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3820 | int arg2 ; | |
3821 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3823 | char *kwnames[] = { |
3824 | (char *) "self",(char *) "pos", NULL | |
3825 | }; | |
3826 | ||
8edf1c75 | 3827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3830 | arg2 = (int) SWIG_AsInt(obj1); | |
3831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3832 | { |
3833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3834 | (arg1)->SetValue(arg2); | |
3835 | ||
3836 | wxPyEndAllowThreads(__tstate); | |
3837 | if (PyErr_Occurred()) SWIG_fail; | |
3838 | } | |
3839 | Py_INCREF(Py_None); resultobj = Py_None; | |
3840 | return resultobj; | |
3841 | fail: | |
3842 | return NULL; | |
3843 | } | |
3844 | ||
3845 | ||
3846 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3847 | PyObject *resultobj; | |
3848 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3849 | int result; | |
3850 | PyObject * obj0 = 0 ; | |
3851 | char *kwnames[] = { | |
3852 | (char *) "self", NULL | |
3853 | }; | |
3854 | ||
3855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3858 | { |
3859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3860 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3861 | ||
3862 | wxPyEndAllowThreads(__tstate); | |
3863 | if (PyErr_Occurred()) SWIG_fail; | |
3864 | } | |
2f4c0a16 | 3865 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3866 | return resultobj; |
3867 | fail: | |
3868 | return NULL; | |
3869 | } | |
3870 | ||
3871 | ||
3872 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3873 | PyObject *resultobj; | |
3874 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3875 | bool result; | |
3876 | PyObject * obj0 = 0 ; | |
3877 | char *kwnames[] = { | |
3878 | (char *) "self", NULL | |
3879 | }; | |
3880 | ||
3881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3884 | { |
3885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3886 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3887 | ||
3888 | wxPyEndAllowThreads(__tstate); | |
3889 | if (PyErr_Occurred()) SWIG_fail; | |
3890 | } | |
4f89f6a3 RD |
3891 | { |
3892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3893 | } | |
d14a1e28 RD |
3894 | return resultobj; |
3895 | fail: | |
3896 | return NULL; | |
3897 | } | |
3898 | ||
3899 | ||
3900 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3901 | PyObject *resultobj; | |
3902 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3903 | int arg2 ; | |
3904 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3905 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3906 | char *kwnames[] = { |
3907 | (char *) "self",(char *) "w", NULL | |
3908 | }; | |
3909 | ||
8edf1c75 | 3910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3913 | arg2 = (int) SWIG_AsInt(obj1); | |
3914 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3915 | { |
3916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3917 | (arg1)->SetShadowWidth(arg2); | |
3918 | ||
3919 | wxPyEndAllowThreads(__tstate); | |
3920 | if (PyErr_Occurred()) SWIG_fail; | |
3921 | } | |
3922 | Py_INCREF(Py_None); resultobj = Py_None; | |
3923 | return resultobj; | |
3924 | fail: | |
3925 | return NULL; | |
3926 | } | |
3927 | ||
3928 | ||
3929 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3930 | PyObject *resultobj; | |
3931 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3932 | int result; | |
3933 | PyObject * obj0 = 0 ; | |
3934 | char *kwnames[] = { | |
3935 | (char *) "self", NULL | |
3936 | }; | |
3937 | ||
3938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3939 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3940 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3941 | { |
3942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3943 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3944 | ||
3945 | wxPyEndAllowThreads(__tstate); | |
3946 | if (PyErr_Occurred()) SWIG_fail; | |
3947 | } | |
2f4c0a16 | 3948 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3949 | return resultobj; |
3950 | fail: | |
3951 | return NULL; | |
3952 | } | |
3953 | ||
3954 | ||
3955 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3956 | PyObject *resultobj; | |
3957 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3958 | int arg2 ; | |
3959 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3960 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3961 | char *kwnames[] = { |
3962 | (char *) "self",(char *) "w", NULL | |
3963 | }; | |
3964 | ||
8edf1c75 | 3965 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3966 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3967 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3968 | arg2 = (int) SWIG_AsInt(obj1); | |
3969 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3970 | { |
3971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3972 | (arg1)->SetBezelFace(arg2); | |
3973 | ||
3974 | wxPyEndAllowThreads(__tstate); | |
3975 | if (PyErr_Occurred()) SWIG_fail; | |
3976 | } | |
3977 | Py_INCREF(Py_None); resultobj = Py_None; | |
3978 | return resultobj; | |
3979 | fail: | |
3980 | return NULL; | |
3981 | } | |
3982 | ||
3983 | ||
3984 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3985 | PyObject *resultobj; | |
3986 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3987 | int result; | |
3988 | PyObject * obj0 = 0 ; | |
3989 | char *kwnames[] = { | |
3990 | (char *) "self", NULL | |
3991 | }; | |
3992 | ||
3993 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3994 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3995 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3996 | { |
3997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3998 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3999 | ||
4000 | wxPyEndAllowThreads(__tstate); | |
4001 | if (PyErr_Occurred()) SWIG_fail; | |
4002 | } | |
2f4c0a16 | 4003 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4004 | return resultobj; |
4005 | fail: | |
4006 | return NULL; | |
4007 | } | |
4008 | ||
4009 | ||
4010 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
4011 | PyObject *obj; | |
4012 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4013 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4014 | Py_INCREF(obj); | |
4015 | return Py_BuildValue((char *)""); | |
4016 | } | |
2f4c0a16 | 4017 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
d03fd34d RD |
4018 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4019 | return 1; | |
4020 | } | |
4021 | ||
4022 | ||
4023 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4024 | PyObject *pyobj; | |
4025 | ||
4026 | { | |
4027 | #if wxUSE_UNICODE | |
4028 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4029 | #else | |
4030 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4031 | #endif | |
4032 | } | |
4033 | return pyobj; | |
4034 | } | |
4035 | ||
4036 | ||
2f4c0a16 | 4037 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
4038 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4039 | return 1; | |
4040 | } | |
4041 | ||
4042 | ||
4043 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4044 | PyObject *pyobj; | |
4045 | ||
4046 | { | |
4047 | #if wxUSE_UNICODE | |
4048 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4049 | #else | |
4050 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4051 | #endif | |
4052 | } | |
4053 | return pyobj; | |
4054 | } | |
4055 | ||
4056 | ||
2f4c0a16 | 4057 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { |
d03fd34d RD |
4058 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4059 | return 1; | |
4060 | } | |
4061 | ||
4062 | ||
4063 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4064 | PyObject *pyobj; | |
4065 | ||
4066 | { | |
4067 | #if wxUSE_UNICODE | |
4068 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4069 | #else | |
4070 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4071 | #endif | |
4072 | } | |
4073 | return pyobj; | |
4074 | } | |
4075 | ||
4076 | ||
d14a1e28 RD |
4077 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4078 | PyObject *resultobj; | |
4079 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4080 | int arg2 ; |
d14a1e28 RD |
4081 | wxString *arg3 = 0 ; |
4082 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4083 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4084 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4085 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4086 | long arg6 = (long) 0 ; | |
4087 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4088 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4089 | wxStaticBox *result; | |
423f194a | 4090 | bool temp3 = False ; |
d14a1e28 RD |
4091 | wxPoint temp4 ; |
4092 | wxSize temp5 ; | |
423f194a | 4093 | bool temp7 = False ; |
d14a1e28 | 4094 | PyObject * obj0 = 0 ; |
8edf1c75 | 4095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4096 | PyObject * obj2 = 0 ; |
4097 | PyObject * obj3 = 0 ; | |
4098 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4099 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4100 | PyObject * obj6 = 0 ; |
4101 | char *kwnames[] = { | |
4102 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4103 | }; | |
4104 | ||
8edf1c75 | 4105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4108 | arg2 = (int) SWIG_AsInt(obj1); | |
4109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4110 | { |
4111 | arg3 = wxString_in_helper(obj2); | |
4112 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4113 | temp3 = True; |
d14a1e28 RD |
4114 | } |
4115 | if (obj3) { | |
4116 | { | |
4117 | arg4 = &temp4; | |
4118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4119 | } | |
4120 | } | |
4121 | if (obj4) { | |
4122 | { | |
4123 | arg5 = &temp5; | |
4124 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4125 | } | |
4126 | } | |
8edf1c75 | 4127 | if (obj5) { |
2f4c0a16 RD |
4128 | arg6 = (long) SWIG_AsLong(obj5); |
4129 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4130 | } |
d14a1e28 RD |
4131 | if (obj6) { |
4132 | { | |
4133 | arg7 = wxString_in_helper(obj6); | |
4134 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4135 | temp7 = True; |
d14a1e28 RD |
4136 | } |
4137 | } | |
4138 | { | |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4140 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4141 | ||
4142 | wxPyEndAllowThreads(__tstate); | |
4143 | if (PyErr_Occurred()) SWIG_fail; | |
4144 | } | |
4145 | { | |
4146 | resultobj = wxPyMake_wxObject(result); | |
4147 | } | |
4148 | { | |
4149 | if (temp3) | |
4150 | delete arg3; | |
4151 | } | |
4152 | { | |
4153 | if (temp7) | |
4154 | delete arg7; | |
4155 | } | |
4156 | return resultobj; | |
4157 | fail: | |
4158 | { | |
4159 | if (temp3) | |
4160 | delete arg3; | |
4161 | } | |
4162 | { | |
4163 | if (temp7) | |
4164 | delete arg7; | |
4165 | } | |
4166 | return NULL; | |
4167 | } | |
4168 | ||
4169 | ||
4170 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4171 | PyObject *resultobj; | |
4172 | wxStaticBox *result; | |
4173 | char *kwnames[] = { | |
4174 | NULL | |
4175 | }; | |
4176 | ||
4177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4178 | { | |
4179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4180 | result = (wxStaticBox *)new wxStaticBox(); | |
4181 | ||
4182 | wxPyEndAllowThreads(__tstate); | |
4183 | if (PyErr_Occurred()) SWIG_fail; | |
4184 | } | |
4185 | { | |
4186 | resultobj = wxPyMake_wxObject(result); | |
4187 | } | |
4188 | return resultobj; | |
4189 | fail: | |
4190 | return NULL; | |
4191 | } | |
4192 | ||
4193 | ||
4194 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4195 | PyObject *resultobj; | |
4196 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4198 | int arg3 ; |
d14a1e28 RD |
4199 | wxString *arg4 = 0 ; |
4200 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4201 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4202 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4203 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4204 | long arg7 = (long) 0 ; | |
4205 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4206 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4207 | bool result; | |
423f194a | 4208 | bool temp4 = False ; |
d14a1e28 RD |
4209 | wxPoint temp5 ; |
4210 | wxSize temp6 ; | |
423f194a | 4211 | bool temp8 = False ; |
d14a1e28 RD |
4212 | PyObject * obj0 = 0 ; |
4213 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4214 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4215 | PyObject * obj3 = 0 ; |
4216 | PyObject * obj4 = 0 ; | |
4217 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4218 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4219 | PyObject * obj7 = 0 ; |
4220 | char *kwnames[] = { | |
4221 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4222 | }; | |
4223 | ||
8edf1c75 | 4224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4229 | arg3 = (int) SWIG_AsInt(obj2); | |
4230 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4231 | { |
4232 | arg4 = wxString_in_helper(obj3); | |
4233 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4234 | temp4 = True; |
d14a1e28 RD |
4235 | } |
4236 | if (obj4) { | |
4237 | { | |
4238 | arg5 = &temp5; | |
4239 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4240 | } | |
4241 | } | |
4242 | if (obj5) { | |
4243 | { | |
4244 | arg6 = &temp6; | |
4245 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4246 | } | |
4247 | } | |
8edf1c75 | 4248 | if (obj6) { |
2f4c0a16 RD |
4249 | arg7 = (long) SWIG_AsLong(obj6); |
4250 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4251 | } |
d14a1e28 RD |
4252 | if (obj7) { |
4253 | { | |
4254 | arg8 = wxString_in_helper(obj7); | |
4255 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4256 | temp8 = True; |
d14a1e28 RD |
4257 | } |
4258 | } | |
4259 | { | |
4260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4261 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4262 | ||
4263 | wxPyEndAllowThreads(__tstate); | |
4264 | if (PyErr_Occurred()) SWIG_fail; | |
4265 | } | |
4f89f6a3 RD |
4266 | { |
4267 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4268 | } | |
d14a1e28 RD |
4269 | { |
4270 | if (temp4) | |
4271 | delete arg4; | |
4272 | } | |
4273 | { | |
4274 | if (temp8) | |
4275 | delete arg8; | |
4276 | } | |
4277 | return resultobj; | |
4278 | fail: | |
4279 | { | |
4280 | if (temp4) | |
4281 | delete arg4; | |
4282 | } | |
4283 | { | |
4284 | if (temp8) | |
4285 | delete arg8; | |
4286 | } | |
4287 | return NULL; | |
4288 | } | |
4289 | ||
4290 | ||
4291 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4292 | PyObject *obj; | |
4293 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4294 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4295 | Py_INCREF(obj); | |
4296 | return Py_BuildValue((char *)""); | |
4297 | } | |
4298 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4299 | PyObject *resultobj; | |
4300 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4301 | int arg2 ; |
d14a1e28 RD |
4302 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4303 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4304 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4305 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4306 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4307 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4308 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4309 | wxStaticLine *result; | |
4310 | wxPoint temp3 ; | |
4311 | wxSize temp4 ; | |
423f194a | 4312 | bool temp6 = False ; |
d14a1e28 | 4313 | PyObject * obj0 = 0 ; |
8edf1c75 | 4314 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4315 | PyObject * obj2 = 0 ; |
4316 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4317 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4318 | PyObject * obj5 = 0 ; |
4319 | char *kwnames[] = { | |
4320 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4321 | }; | |
4322 | ||
8edf1c75 | 4323 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
4324 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4326 | arg2 = (int) SWIG_AsInt(obj1); | |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4328 | if (obj2) { |
4329 | { | |
4330 | arg3 = &temp3; | |
4331 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4332 | } | |
4333 | } | |
4334 | if (obj3) { | |
4335 | { | |
4336 | arg4 = &temp4; | |
4337 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4338 | } | |
4339 | } | |
8edf1c75 | 4340 | if (obj4) { |
2f4c0a16 RD |
4341 | arg5 = (long) SWIG_AsLong(obj4); |
4342 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4343 | } |
d14a1e28 RD |
4344 | if (obj5) { |
4345 | { | |
4346 | arg6 = wxString_in_helper(obj5); | |
4347 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4348 | temp6 = True; |
d14a1e28 RD |
4349 | } |
4350 | } | |
4351 | { | |
4352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4353 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4354 | ||
4355 | wxPyEndAllowThreads(__tstate); | |
4356 | if (PyErr_Occurred()) SWIG_fail; | |
4357 | } | |
2f4c0a16 | 4358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4359 | { |
4360 | if (temp6) | |
4361 | delete arg6; | |
4362 | } | |
4363 | return resultobj; | |
4364 | fail: | |
4365 | { | |
4366 | if (temp6) | |
4367 | delete arg6; | |
4368 | } | |
4369 | return NULL; | |
4370 | } | |
4371 | ||
4372 | ||
4373 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4374 | PyObject *resultobj; | |
4375 | wxStaticLine *result; | |
4376 | char *kwnames[] = { | |
4377 | NULL | |
4378 | }; | |
4379 | ||
4380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4381 | { | |
4382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4383 | result = (wxStaticLine *)new wxStaticLine(); | |
4384 | ||
4385 | wxPyEndAllowThreads(__tstate); | |
4386 | if (PyErr_Occurred()) SWIG_fail; | |
4387 | } | |
2f4c0a16 | 4388 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4389 | return resultobj; |
4390 | fail: | |
4391 | return NULL; | |
4392 | } | |
4393 | ||
4394 | ||
4395 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4396 | PyObject *resultobj; | |
4397 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4398 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4399 | int arg3 ; |
d14a1e28 RD |
4400 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4401 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4402 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4403 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4404 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4405 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4406 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4407 | bool result; | |
4408 | wxPoint temp4 ; | |
4409 | wxSize temp5 ; | |
423f194a | 4410 | bool temp7 = False ; |
d14a1e28 RD |
4411 | PyObject * obj0 = 0 ; |
4412 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4413 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4414 | PyObject * obj3 = 0 ; |
4415 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4416 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4417 | PyObject * obj6 = 0 ; |
4418 | char *kwnames[] = { | |
4419 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4420 | }; | |
4421 | ||
8edf1c75 | 4422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4425 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4427 | arg3 = (int) SWIG_AsInt(obj2); | |
4428 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4429 | if (obj3) { |
4430 | { | |
4431 | arg4 = &temp4; | |
4432 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4433 | } | |
4434 | } | |
4435 | if (obj4) { | |
4436 | { | |
4437 | arg5 = &temp5; | |
4438 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4439 | } | |
4440 | } | |
8edf1c75 | 4441 | if (obj5) { |
2f4c0a16 RD |
4442 | arg6 = (long) SWIG_AsLong(obj5); |
4443 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4444 | } |
d14a1e28 RD |
4445 | if (obj6) { |
4446 | { | |
4447 | arg7 = wxString_in_helper(obj6); | |
4448 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4449 | temp7 = True; |
d14a1e28 RD |
4450 | } |
4451 | } | |
4452 | { | |
4453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4454 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4455 | ||
4456 | wxPyEndAllowThreads(__tstate); | |
4457 | if (PyErr_Occurred()) SWIG_fail; | |
4458 | } | |
4f89f6a3 RD |
4459 | { |
4460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4461 | } | |
d14a1e28 RD |
4462 | { |
4463 | if (temp7) | |
4464 | delete arg7; | |
4465 | } | |
4466 | return resultobj; | |
4467 | fail: | |
4468 | { | |
4469 | if (temp7) | |
4470 | delete arg7; | |
4471 | } | |
4472 | return NULL; | |
4473 | } | |
4474 | ||
4475 | ||
4476 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4477 | PyObject *resultobj; | |
4478 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4479 | bool result; | |
4480 | PyObject * obj0 = 0 ; | |
4481 | char *kwnames[] = { | |
4482 | (char *) "self", NULL | |
4483 | }; | |
4484 | ||
4485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4488 | { |
4489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4490 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4491 | ||
4492 | wxPyEndAllowThreads(__tstate); | |
4493 | if (PyErr_Occurred()) SWIG_fail; | |
4494 | } | |
4f89f6a3 RD |
4495 | { |
4496 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4497 | } | |
d14a1e28 RD |
4498 | return resultobj; |
4499 | fail: | |
4500 | return NULL; | |
4501 | } | |
4502 | ||
4503 | ||
4504 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4505 | PyObject *resultobj; | |
4506 | int result; | |
4507 | char *kwnames[] = { | |
4508 | NULL | |
4509 | }; | |
4510 | ||
4511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4512 | { | |
4513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4514 | result = (int)wxStaticLine::GetDefaultSize(); | |
4515 | ||
4516 | wxPyEndAllowThreads(__tstate); | |
4517 | if (PyErr_Occurred()) SWIG_fail; | |
4518 | } | |
2f4c0a16 | 4519 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4520 | return resultobj; |
4521 | fail: | |
4522 | return NULL; | |
4523 | } | |
4524 | ||
4525 | ||
4526 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4527 | PyObject *obj; | |
4528 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4529 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4530 | Py_INCREF(obj); | |
4531 | return Py_BuildValue((char *)""); | |
4532 | } | |
4533 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4534 | PyObject *resultobj; | |
4535 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4536 | int arg2 ; |
d14a1e28 RD |
4537 | wxString *arg3 = 0 ; |
4538 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4539 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4540 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4541 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4542 | long arg6 = (long) 0 ; | |
4543 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4544 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4545 | wxStaticText *result; | |
423f194a | 4546 | bool temp3 = False ; |
d14a1e28 RD |
4547 | wxPoint temp4 ; |
4548 | wxSize temp5 ; | |
423f194a | 4549 | bool temp7 = False ; |
d14a1e28 | 4550 | PyObject * obj0 = 0 ; |
8edf1c75 | 4551 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4552 | PyObject * obj2 = 0 ; |
4553 | PyObject * obj3 = 0 ; | |
4554 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4555 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4556 | PyObject * obj6 = 0 ; |
4557 | char *kwnames[] = { | |
4558 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4559 | }; | |
4560 | ||
8edf1c75 | 4561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4564 | arg2 = (int) SWIG_AsInt(obj1); | |
4565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4566 | { |
4567 | arg3 = wxString_in_helper(obj2); | |
4568 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4569 | temp3 = True; |
d14a1e28 RD |
4570 | } |
4571 | if (obj3) { | |
4572 | { | |
4573 | arg4 = &temp4; | |
4574 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4575 | } | |
4576 | } | |
4577 | if (obj4) { | |
4578 | { | |
4579 | arg5 = &temp5; | |
4580 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4581 | } | |
4582 | } | |
8edf1c75 | 4583 | if (obj5) { |
2f4c0a16 RD |
4584 | arg6 = (long) SWIG_AsLong(obj5); |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4586 | } |
d14a1e28 RD |
4587 | if (obj6) { |
4588 | { | |
4589 | arg7 = wxString_in_helper(obj6); | |
4590 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4591 | temp7 = True; |
d14a1e28 RD |
4592 | } |
4593 | } | |
4594 | { | |
4595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4596 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4597 | ||
4598 | wxPyEndAllowThreads(__tstate); | |
4599 | if (PyErr_Occurred()) SWIG_fail; | |
4600 | } | |
2f4c0a16 | 4601 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4602 | { |
4603 | if (temp3) | |
4604 | delete arg3; | |
4605 | } | |
4606 | { | |
4607 | if (temp7) | |
4608 | delete arg7; | |
4609 | } | |
4610 | return resultobj; | |
4611 | fail: | |
4612 | { | |
4613 | if (temp3) | |
4614 | delete arg3; | |
4615 | } | |
4616 | { | |
4617 | if (temp7) | |
4618 | delete arg7; | |
4619 | } | |
4620 | return NULL; | |
4621 | } | |
4622 | ||
4623 | ||
4624 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4625 | PyObject *resultobj; | |
4626 | wxStaticText *result; | |
4627 | char *kwnames[] = { | |
4628 | NULL | |
4629 | }; | |
4630 | ||
4631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4632 | { | |
4633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4634 | result = (wxStaticText *)new wxStaticText(); | |
4635 | ||
4636 | wxPyEndAllowThreads(__tstate); | |
4637 | if (PyErr_Occurred()) SWIG_fail; | |
4638 | } | |
2f4c0a16 | 4639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4640 | return resultobj; |
4641 | fail: | |
4642 | return NULL; | |
4643 | } | |
4644 | ||
4645 | ||
4646 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4647 | PyObject *resultobj; | |
4648 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4649 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4650 | int arg3 ; |
d14a1e28 RD |
4651 | wxString *arg4 = 0 ; |
4652 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4653 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4654 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4655 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4656 | long arg7 = (long) 0 ; | |
4657 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4658 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4659 | bool result; | |
423f194a | 4660 | bool temp4 = False ; |
d14a1e28 RD |
4661 | wxPoint temp5 ; |
4662 | wxSize temp6 ; | |
423f194a | 4663 | bool temp8 = False ; |
d14a1e28 RD |
4664 | PyObject * obj0 = 0 ; |
4665 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4666 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4667 | PyObject * obj3 = 0 ; |
4668 | PyObject * obj4 = 0 ; | |
4669 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4670 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4671 | PyObject * obj7 = 0 ; |
4672 | char *kwnames[] = { | |
4673 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4674 | }; | |
4675 | ||
8edf1c75 | 4676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
4678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4681 | arg3 = (int) SWIG_AsInt(obj2); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4683 | { |
4684 | arg4 = wxString_in_helper(obj3); | |
4685 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4686 | temp4 = True; |
d14a1e28 RD |
4687 | } |
4688 | if (obj4) { | |
4689 | { | |
4690 | arg5 = &temp5; | |
4691 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4692 | } | |
4693 | } | |
4694 | if (obj5) { | |
4695 | { | |
4696 | arg6 = &temp6; | |
4697 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4698 | } | |
4699 | } | |
8edf1c75 | 4700 | if (obj6) { |
2f4c0a16 RD |
4701 | arg7 = (long) SWIG_AsLong(obj6); |
4702 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4703 | } |
d14a1e28 RD |
4704 | if (obj7) { |
4705 | { | |
4706 | arg8 = wxString_in_helper(obj7); | |
4707 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4708 | temp8 = True; |
d14a1e28 RD |
4709 | } |
4710 | } | |
4711 | { | |
4712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4713 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4714 | ||
4715 | wxPyEndAllowThreads(__tstate); | |
4716 | if (PyErr_Occurred()) SWIG_fail; | |
4717 | } | |
4f89f6a3 RD |
4718 | { |
4719 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4720 | } | |
d14a1e28 RD |
4721 | { |
4722 | if (temp4) | |
4723 | delete arg4; | |
4724 | } | |
4725 | { | |
4726 | if (temp8) | |
4727 | delete arg8; | |
4728 | } | |
4729 | return resultobj; | |
4730 | fail: | |
4731 | { | |
4732 | if (temp4) | |
4733 | delete arg4; | |
4734 | } | |
4735 | { | |
4736 | if (temp8) | |
4737 | delete arg8; | |
4738 | } | |
4739 | return NULL; | |
4740 | } | |
4741 | ||
4742 | ||
4743 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4744 | PyObject *obj; | |
4745 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4746 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4747 | Py_INCREF(obj); | |
4748 | return Py_BuildValue((char *)""); | |
4749 | } | |
4750 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4751 | PyObject *resultobj; | |
4752 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4753 | int arg2 ; |
d14a1e28 RD |
4754 | wxBitmap *arg3 = 0 ; |
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) 0 ; | |
4760 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4761 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4762 | wxStaticBitmap *result; | |
4763 | wxPoint temp4 ; | |
4764 | wxSize temp5 ; | |
423f194a | 4765 | bool temp7 = False ; |
d14a1e28 | 4766 | PyObject * obj0 = 0 ; |
8edf1c75 | 4767 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4768 | PyObject * obj2 = 0 ; |
4769 | PyObject * obj3 = 0 ; | |
4770 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4771 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4772 | PyObject * obj6 = 0 ; |
4773 | char *kwnames[] = { | |
4774 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4775 | }; | |
4776 | ||
8edf1c75 | 4777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4780 | arg2 = (int) SWIG_AsInt(obj1); | |
4781 | if (PyErr_Occurred()) SWIG_fail; | |
4782 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
4783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4784 | SWIG_fail; | |
d14a1e28 | 4785 | if (arg3 == NULL) { |
2f4c0a16 RD |
4786 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4787 | SWIG_fail; | |
d14a1e28 RD |
4788 | } |
4789 | if (obj3) { | |
4790 | { | |
4791 | arg4 = &temp4; | |
4792 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4793 | } | |
4794 | } | |
4795 | if (obj4) { | |
4796 | { | |
4797 | arg5 = &temp5; | |
4798 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4799 | } | |
4800 | } | |
8edf1c75 | 4801 | if (obj5) { |
2f4c0a16 RD |
4802 | arg6 = (long) SWIG_AsLong(obj5); |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4804 | } |
d14a1e28 RD |
4805 | if (obj6) { |
4806 | { | |
4807 | arg7 = wxString_in_helper(obj6); | |
4808 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4809 | temp7 = True; |
d14a1e28 RD |
4810 | } |
4811 | } | |
4812 | { | |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4814 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
2f4c0a16 | 4819 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4820 | { |
4821 | if (temp7) | |
4822 | delete arg7; | |
4823 | } | |
4824 | return resultobj; | |
4825 | fail: | |
4826 | { | |
4827 | if (temp7) | |
4828 | delete arg7; | |
4829 | } | |
4830 | return NULL; | |
4831 | } | |
4832 | ||
4833 | ||
4834 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4835 | PyObject *resultobj; | |
4836 | wxStaticBitmap *result; | |
4837 | char *kwnames[] = { | |
4838 | NULL | |
4839 | }; | |
4840 | ||
4841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4842 | { | |
4843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4844 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4845 | ||
4846 | wxPyEndAllowThreads(__tstate); | |
4847 | if (PyErr_Occurred()) SWIG_fail; | |
4848 | } | |
2f4c0a16 | 4849 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4850 | return resultobj; |
4851 | fail: | |
4852 | return NULL; | |
4853 | } | |
4854 | ||
4855 | ||
4856 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4857 | PyObject *resultobj; | |
4858 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4859 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4860 | int arg3 ; |
d14a1e28 RD |
4861 | wxBitmap *arg4 = 0 ; |
4862 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4863 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4864 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4865 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4866 | long arg7 = (long) 0 ; | |
4867 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4868 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4869 | bool result; | |
4870 | wxPoint temp5 ; | |
4871 | wxSize temp6 ; | |
423f194a | 4872 | bool temp8 = False ; |
d14a1e28 RD |
4873 | PyObject * obj0 = 0 ; |
4874 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4875 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4876 | PyObject * obj3 = 0 ; |
4877 | PyObject * obj4 = 0 ; | |
4878 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4879 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4880 | PyObject * obj7 = 0 ; |
4881 | char *kwnames[] = { | |
4882 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4883 | }; | |
4884 | ||
8edf1c75 | 4885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4889 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4890 | arg3 = (int) SWIG_AsInt(obj2); | |
4891 | if (PyErr_Occurred()) SWIG_fail; | |
4892 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
4893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4894 | SWIG_fail; | |
d14a1e28 | 4895 | if (arg4 == NULL) { |
2f4c0a16 RD |
4896 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4897 | SWIG_fail; | |
d14a1e28 RD |
4898 | } |
4899 | if (obj4) { | |
4900 | { | |
4901 | arg5 = &temp5; | |
4902 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4903 | } | |
4904 | } | |
4905 | if (obj5) { | |
4906 | { | |
4907 | arg6 = &temp6; | |
4908 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4909 | } | |
4910 | } | |
8edf1c75 | 4911 | if (obj6) { |
2f4c0a16 RD |
4912 | arg7 = (long) SWIG_AsLong(obj6); |
4913 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4914 | } |
d14a1e28 RD |
4915 | if (obj7) { |
4916 | { | |
4917 | arg8 = wxString_in_helper(obj7); | |
4918 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4919 | temp8 = True; |
d14a1e28 RD |
4920 | } |
4921 | } | |
4922 | { | |
4923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4924 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4925 | ||
4926 | wxPyEndAllowThreads(__tstate); | |
4927 | if (PyErr_Occurred()) SWIG_fail; | |
4928 | } | |
4f89f6a3 RD |
4929 | { |
4930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4931 | } | |
d14a1e28 RD |
4932 | { |
4933 | if (temp8) | |
4934 | delete arg8; | |
4935 | } | |
4936 | return resultobj; | |
4937 | fail: | |
4938 | { | |
4939 | if (temp8) | |
4940 | delete arg8; | |
4941 | } | |
4942 | return NULL; | |
4943 | } | |
4944 | ||
4945 | ||
4946 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4947 | PyObject *resultobj; | |
4948 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4949 | wxBitmap result; | |
4950 | PyObject * obj0 = 0 ; | |
4951 | char *kwnames[] = { | |
4952 | (char *) "self", NULL | |
4953 | }; | |
4954 | ||
4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4958 | { |
4959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4960 | result = (arg1)->GetBitmap(); | |
4961 | ||
4962 | wxPyEndAllowThreads(__tstate); | |
4963 | if (PyErr_Occurred()) SWIG_fail; | |
4964 | } | |
4965 | { | |
4966 | wxBitmap * resultptr; | |
4967 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 4968 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4969 | } |
4970 | return resultobj; | |
4971 | fail: | |
4972 | return NULL; | |
4973 | } | |
4974 | ||
4975 | ||
4976 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4977 | PyObject *resultobj; | |
4978 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4979 | wxBitmap *arg2 = 0 ; | |
4980 | PyObject * obj0 = 0 ; | |
4981 | PyObject * obj1 = 0 ; | |
4982 | char *kwnames[] = { | |
4983 | (char *) "self",(char *) "bitmap", NULL | |
4984 | }; | |
4985 | ||
4986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4989 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4990 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4991 | SWIG_fail; | |
d14a1e28 | 4992 | if (arg2 == NULL) { |
2f4c0a16 RD |
4993 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4994 | SWIG_fail; | |
d14a1e28 RD |
4995 | } |
4996 | { | |
4997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4998 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4999 | ||
5000 | wxPyEndAllowThreads(__tstate); | |
5001 | if (PyErr_Occurred()) SWIG_fail; | |
5002 | } | |
5003 | Py_INCREF(Py_None); resultobj = Py_None; | |
5004 | return resultobj; | |
5005 | fail: | |
5006 | return NULL; | |
5007 | } | |
5008 | ||
5009 | ||
5010 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5011 | PyObject *resultobj; | |
5012 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5013 | wxIcon *arg2 = 0 ; | |
5014 | PyObject * obj0 = 0 ; | |
5015 | PyObject * obj1 = 0 ; | |
5016 | char *kwnames[] = { | |
5017 | (char *) "self",(char *) "icon", NULL | |
5018 | }; | |
5019 | ||
5020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5023 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5024 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5025 | SWIG_fail; | |
d14a1e28 | 5026 | if (arg2 == NULL) { |
2f4c0a16 RD |
5027 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5028 | SWIG_fail; | |
d14a1e28 RD |
5029 | } |
5030 | { | |
5031 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5032 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5033 | ||
5034 | wxPyEndAllowThreads(__tstate); | |
5035 | if (PyErr_Occurred()) SWIG_fail; | |
5036 | } | |
5037 | Py_INCREF(Py_None); resultobj = Py_None; | |
5038 | return resultobj; | |
5039 | fail: | |
5040 | return NULL; | |
5041 | } | |
5042 | ||
5043 | ||
5044 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
5045 | PyObject *obj; | |
5046 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5047 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5048 | Py_INCREF(obj); | |
5049 | return Py_BuildValue((char *)""); | |
5050 | } | |
2f4c0a16 | 5051 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
5052 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5053 | return 1; | |
5054 | } | |
5055 | ||
5056 | ||
5057 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5058 | PyObject *pyobj; | |
5059 | ||
5060 | { | |
5061 | #if wxUSE_UNICODE | |
5062 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5063 | #else | |
5064 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5065 | #endif | |
5066 | } | |
5067 | return pyobj; | |
5068 | } | |
5069 | ||
5070 | ||
d14a1e28 RD |
5071 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5072 | PyObject *resultobj; | |
5073 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5074 | int arg2 ; |
d14a1e28 RD |
5075 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5076 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5077 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5078 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5079 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5080 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5081 | long arg6 = (long) 0 ; | |
5082 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5083 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5084 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5085 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5086 | wxListBox *result; |
5087 | wxPoint temp3 ; | |
5088 | wxSize temp4 ; | |
db914595 | 5089 | bool temp5 = False ; |
423f194a | 5090 | bool temp8 = False ; |
d14a1e28 | 5091 | PyObject * obj0 = 0 ; |
8edf1c75 | 5092 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5093 | PyObject * obj2 = 0 ; |
5094 | PyObject * obj3 = 0 ; | |
5095 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5096 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5097 | PyObject * obj6 = 0 ; |
5098 | PyObject * obj7 = 0 ; | |
5099 | char *kwnames[] = { | |
5100 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5101 | }; | |
5102 | ||
8edf1c75 | 5103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
5104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5106 | arg2 = (int) SWIG_AsInt(obj1); | |
5107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5108 | if (obj2) { |
5109 | { | |
5110 | arg3 = &temp3; | |
5111 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5112 | } | |
5113 | } | |
5114 | if (obj3) { | |
5115 | { | |
5116 | arg4 = &temp4; | |
5117 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5118 | } | |
5119 | } | |
5120 | if (obj4) { | |
5121 | { | |
4e760a36 RD |
5122 | if (! PySequence_Check(obj4)) { |
5123 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5124 | SWIG_fail; | |
5125 | } | |
5126 | arg5 = new wxArrayString; | |
db914595 | 5127 | temp5 = True; |
4e760a36 RD |
5128 | int i, len=PySequence_Length(obj4); |
5129 | for (i=0; i<len; i++) { | |
5130 | PyObject* item = PySequence_GetItem(obj4, i); | |
5131 | #if wxUSE_UNICODE | |
5132 | PyObject* str = PyObject_Unicode(item); | |
5133 | #else | |
5134 | PyObject* str = PyObject_Str(item); | |
5135 | #endif | |
74a57fcd | 5136 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
5137 | arg5->Add(Py2wxString(str)); |
5138 | Py_DECREF(item); | |
5139 | Py_DECREF(str); | |
5140 | } | |
d14a1e28 RD |
5141 | } |
5142 | } | |
8edf1c75 | 5143 | if (obj5) { |
2f4c0a16 RD |
5144 | arg6 = (long) SWIG_AsLong(obj5); |
5145 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5146 | } |
d14a1e28 | 5147 | if (obj6) { |
2f4c0a16 RD |
5148 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5149 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5150 | SWIG_fail; | |
4e760a36 | 5151 | if (arg7 == NULL) { |
2f4c0a16 RD |
5152 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5153 | SWIG_fail; | |
d14a1e28 RD |
5154 | } |
5155 | } | |
5156 | if (obj7) { | |
5157 | { | |
4e760a36 RD |
5158 | arg8 = wxString_in_helper(obj7); |
5159 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5160 | temp8 = True; |
d14a1e28 RD |
5161 | } |
5162 | } | |
5163 | { | |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5165 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5166 | |
5167 | wxPyEndAllowThreads(__tstate); | |
5168 | if (PyErr_Occurred()) SWIG_fail; | |
5169 | } | |
2f4c0a16 | 5170 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5171 | { |
db914595 | 5172 | if (temp5) delete arg5; |
d14a1e28 RD |
5173 | } |
5174 | { | |
5175 | if (temp8) | |
4e760a36 | 5176 | delete arg8; |
d14a1e28 RD |
5177 | } |
5178 | return resultobj; | |
5179 | fail: | |
5180 | { | |
db914595 | 5181 | if (temp5) delete arg5; |
d14a1e28 RD |
5182 | } |
5183 | { | |
5184 | if (temp8) | |
4e760a36 | 5185 | delete arg8; |
d14a1e28 RD |
5186 | } |
5187 | return NULL; | |
5188 | } | |
5189 | ||
5190 | ||
5191 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5192 | PyObject *resultobj; | |
5193 | wxListBox *result; | |
5194 | char *kwnames[] = { | |
5195 | NULL | |
5196 | }; | |
5197 | ||
5198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5199 | { | |
5200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5201 | result = (wxListBox *)new wxListBox(); | |
5202 | ||
5203 | wxPyEndAllowThreads(__tstate); | |
5204 | if (PyErr_Occurred()) SWIG_fail; | |
5205 | } | |
2f4c0a16 | 5206 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5207 | return resultobj; |
5208 | fail: | |
5209 | return NULL; | |
5210 | } | |
5211 | ||
5212 | ||
5213 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5214 | PyObject *resultobj; | |
5215 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5216 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5217 | int arg3 ; |
d14a1e28 RD |
5218 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5219 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5220 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5221 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
5222 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5223 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5224 | long arg7 = (long) 0 ; | |
5225 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5226 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5227 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5228 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5229 | bool result; |
5230 | wxPoint temp4 ; | |
5231 | wxSize temp5 ; | |
db914595 | 5232 | bool temp6 = False ; |
423f194a | 5233 | bool temp9 = False ; |
d14a1e28 RD |
5234 | PyObject * obj0 = 0 ; |
5235 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5236 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5237 | PyObject * obj3 = 0 ; |
5238 | PyObject * obj4 = 0 ; | |
5239 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5240 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5241 | PyObject * obj7 = 0 ; |
5242 | PyObject * obj8 = 0 ; | |
5243 | char *kwnames[] = { | |
5244 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5245 | }; | |
5246 | ||
8edf1c75 | 5247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
5248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5250 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5252 | arg3 = (int) SWIG_AsInt(obj2); | |
5253 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5254 | if (obj3) { |
5255 | { | |
5256 | arg4 = &temp4; | |
5257 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5258 | } | |
5259 | } | |
5260 | if (obj4) { | |
5261 | { | |
5262 | arg5 = &temp5; | |
5263 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5264 | } | |
5265 | } | |
5266 | if (obj5) { | |
5267 | { | |
4e760a36 RD |
5268 | if (! PySequence_Check(obj5)) { |
5269 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5270 | SWIG_fail; | |
5271 | } | |
5272 | arg6 = new wxArrayString; | |
db914595 | 5273 | temp6 = True; |
4e760a36 RD |
5274 | int i, len=PySequence_Length(obj5); |
5275 | for (i=0; i<len; i++) { | |
5276 | PyObject* item = PySequence_GetItem(obj5, i); | |
5277 | #if wxUSE_UNICODE | |
5278 | PyObject* str = PyObject_Unicode(item); | |
5279 | #else | |
5280 | PyObject* str = PyObject_Str(item); | |
5281 | #endif | |
74a57fcd | 5282 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
5283 | arg6->Add(Py2wxString(str)); |
5284 | Py_DECREF(item); | |
5285 | Py_DECREF(str); | |
5286 | } | |
d14a1e28 RD |
5287 | } |
5288 | } | |
8edf1c75 | 5289 | if (obj6) { |
2f4c0a16 RD |
5290 | arg7 = (long) SWIG_AsLong(obj6); |
5291 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5292 | } |
d14a1e28 | 5293 | if (obj7) { |
2f4c0a16 RD |
5294 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5295 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5296 | SWIG_fail; | |
4e760a36 | 5297 | if (arg8 == NULL) { |
2f4c0a16 RD |
5298 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5299 | SWIG_fail; | |
d14a1e28 RD |
5300 | } |
5301 | } | |
5302 | if (obj8) { | |
5303 | { | |
4e760a36 RD |
5304 | arg9 = wxString_in_helper(obj8); |
5305 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5306 | temp9 = True; |
d14a1e28 RD |
5307 | } |
5308 | } | |
5309 | { | |
5310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5311 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5312 | |
5313 | wxPyEndAllowThreads(__tstate); | |
5314 | if (PyErr_Occurred()) SWIG_fail; | |
5315 | } | |
4f89f6a3 RD |
5316 | { |
5317 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5318 | } | |
d14a1e28 | 5319 | { |
db914595 | 5320 | if (temp6) delete arg6; |
d14a1e28 RD |
5321 | } |
5322 | { | |
5323 | if (temp9) | |
4e760a36 | 5324 | delete arg9; |
d14a1e28 RD |
5325 | } |
5326 | return resultobj; | |
5327 | fail: | |
5328 | { | |
db914595 | 5329 | if (temp6) delete arg6; |
d14a1e28 RD |
5330 | } |
5331 | { | |
5332 | if (temp9) | |
4e760a36 | 5333 | delete arg9; |
d14a1e28 RD |
5334 | } |
5335 | return NULL; | |
5336 | } | |
5337 | ||
5338 | ||
5339 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5340 | PyObject *resultobj; | |
5341 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5342 | wxString *arg2 = 0 ; | |
5343 | int arg3 ; | |
5344 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5345 | bool temp2 = False ; |
d14a1e28 RD |
5346 | PyObject * obj0 = 0 ; |
5347 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5348 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5349 | PyObject * obj3 = 0 ; |
5350 | char *kwnames[] = { | |
5351 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5352 | }; | |
5353 | ||
8edf1c75 | 5354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5357 | { |
5358 | arg2 = wxString_in_helper(obj1); | |
5359 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5360 | temp2 = True; |
d14a1e28 | 5361 | } |
2f4c0a16 RD |
5362 | arg3 = (int) SWIG_AsInt(obj2); |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5364 | if (obj3) { |
5365 | arg4 = obj3; | |
5366 | } | |
5367 | { | |
5368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5369 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5370 | ||
5371 | wxPyEndAllowThreads(__tstate); | |
5372 | if (PyErr_Occurred()) SWIG_fail; | |
5373 | } | |
5374 | Py_INCREF(Py_None); resultobj = Py_None; | |
5375 | { | |
5376 | if (temp2) | |
5377 | delete arg2; | |
5378 | } | |
5379 | return resultobj; | |
5380 | fail: | |
5381 | { | |
5382 | if (temp2) | |
5383 | delete arg2; | |
5384 | } | |
5385 | return NULL; | |
5386 | } | |
5387 | ||
5388 | ||
5389 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5390 | PyObject *resultobj; | |
5391 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5392 | wxArrayString *arg2 = 0 ; | |
5393 | int arg3 ; | |
db914595 | 5394 | bool temp2 = False ; |
d14a1e28 RD |
5395 | PyObject * obj0 = 0 ; |
5396 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5397 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5398 | char *kwnames[] = { |
5399 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5400 | }; | |
5401 | ||
8edf1c75 | 5402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5405 | { |
5406 | if (! PySequence_Check(obj1)) { | |
5407 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5408 | SWIG_fail; | |
5409 | } | |
5410 | arg2 = new wxArrayString; | |
db914595 | 5411 | temp2 = True; |
d14a1e28 RD |
5412 | int i, len=PySequence_Length(obj1); |
5413 | for (i=0; i<len; i++) { | |
5414 | PyObject* item = PySequence_GetItem(obj1, i); | |
5415 | #if wxUSE_UNICODE | |
5416 | PyObject* str = PyObject_Unicode(item); | |
5417 | #else | |
5418 | PyObject* str = PyObject_Str(item); | |
5419 | #endif | |
74a57fcd | 5420 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5421 | arg2->Add(Py2wxString(str)); |
5422 | Py_DECREF(item); | |
5423 | Py_DECREF(str); | |
5424 | } | |
5425 | } | |
2f4c0a16 RD |
5426 | arg3 = (int) SWIG_AsInt(obj2); |
5427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5428 | { |
5429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5430 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5431 | ||
5432 | wxPyEndAllowThreads(__tstate); | |
5433 | if (PyErr_Occurred()) SWIG_fail; | |
5434 | } | |
5435 | Py_INCREF(Py_None); resultobj = Py_None; | |
5436 | { | |
db914595 | 5437 | if (temp2) delete arg2; |
d14a1e28 RD |
5438 | } |
5439 | return resultobj; | |
5440 | fail: | |
5441 | { | |
db914595 | 5442 | if (temp2) delete arg2; |
d14a1e28 RD |
5443 | } |
5444 | return NULL; | |
5445 | } | |
5446 | ||
5447 | ||
5448 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5449 | PyObject *resultobj; | |
5450 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5451 | wxArrayString *arg2 = 0 ; | |
db914595 | 5452 | bool temp2 = False ; |
d14a1e28 RD |
5453 | PyObject * obj0 = 0 ; |
5454 | PyObject * obj1 = 0 ; | |
5455 | char *kwnames[] = { | |
5456 | (char *) "self",(char *) "items", NULL | |
5457 | }; | |
5458 | ||
5459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5462 | { |
5463 | if (! PySequence_Check(obj1)) { | |
5464 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5465 | SWIG_fail; | |
5466 | } | |
5467 | arg2 = new wxArrayString; | |
db914595 | 5468 | temp2 = True; |
d14a1e28 RD |
5469 | int i, len=PySequence_Length(obj1); |
5470 | for (i=0; i<len; i++) { | |
5471 | PyObject* item = PySequence_GetItem(obj1, i); | |
5472 | #if wxUSE_UNICODE | |
5473 | PyObject* str = PyObject_Unicode(item); | |
5474 | #else | |
5475 | PyObject* str = PyObject_Str(item); | |
5476 | #endif | |
74a57fcd | 5477 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5478 | arg2->Add(Py2wxString(str)); |
5479 | Py_DECREF(item); | |
5480 | Py_DECREF(str); | |
5481 | } | |
5482 | } | |
5483 | { | |
5484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5485 | (arg1)->Set((wxArrayString const &)*arg2); | |
5486 | ||
5487 | wxPyEndAllowThreads(__tstate); | |
5488 | if (PyErr_Occurred()) SWIG_fail; | |
5489 | } | |
5490 | Py_INCREF(Py_None); resultobj = Py_None; | |
5491 | { | |
db914595 | 5492 | if (temp2) delete arg2; |
d14a1e28 RD |
5493 | } |
5494 | return resultobj; | |
5495 | fail: | |
5496 | { | |
db914595 | 5497 | if (temp2) delete arg2; |
d14a1e28 RD |
5498 | } |
5499 | return NULL; | |
5500 | } | |
5501 | ||
5502 | ||
5503 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5504 | PyObject *resultobj; | |
5505 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5506 | int arg2 ; | |
5507 | bool result; | |
5508 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5509 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5510 | char *kwnames[] = { |
5511 | (char *) "self",(char *) "n", NULL | |
5512 | }; | |
5513 | ||
8edf1c75 | 5514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5517 | arg2 = (int) SWIG_AsInt(obj1); | |
5518 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5519 | { |
5520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5521 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5522 | ||
5523 | wxPyEndAllowThreads(__tstate); | |
5524 | if (PyErr_Occurred()) SWIG_fail; | |
5525 | } | |
4f89f6a3 RD |
5526 | { |
5527 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5528 | } | |
d14a1e28 RD |
5529 | return resultobj; |
5530 | fail: | |
5531 | return NULL; | |
5532 | } | |
5533 | ||
5534 | ||
5535 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5536 | PyObject *resultobj; | |
5537 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5538 | int arg2 ; | |
423f194a | 5539 | bool arg3 = (bool) True ; |
d14a1e28 | 5540 | PyObject * obj0 = 0 ; |
8edf1c75 | 5541 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5542 | PyObject * obj2 = 0 ; |
5543 | char *kwnames[] = { | |
5544 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5545 | }; | |
5546 | ||
8edf1c75 | 5547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5550 | arg2 = (int) SWIG_AsInt(obj1); | |
5551 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 5552 | if (obj2) { |
2f4c0a16 RD |
5553 | arg3 = (bool) SWIG_AsBool(obj2); |
5554 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5555 | } |
5556 | { | |
5557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5558 | (arg1)->SetSelection(arg2,arg3); | |
5559 | ||
5560 | wxPyEndAllowThreads(__tstate); | |
5561 | if (PyErr_Occurred()) SWIG_fail; | |
5562 | } | |
5563 | Py_INCREF(Py_None); resultobj = Py_None; | |
5564 | return resultobj; | |
5565 | fail: | |
5566 | return NULL; | |
5567 | } | |
5568 | ||
5569 | ||
5570 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5571 | PyObject *resultobj; | |
5572 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5573 | int arg2 ; | |
5574 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5576 | char *kwnames[] = { |
5577 | (char *) "self",(char *) "n", NULL | |
5578 | }; | |
5579 | ||
8edf1c75 | 5580 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5581 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5582 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5583 | arg2 = (int) SWIG_AsInt(obj1); | |
5584 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5585 | { |
5586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5587 | (arg1)->Select(arg2); | |
5588 | ||
5589 | wxPyEndAllowThreads(__tstate); | |
5590 | if (PyErr_Occurred()) SWIG_fail; | |
5591 | } | |
5592 | Py_INCREF(Py_None); resultobj = Py_None; | |
5593 | return resultobj; | |
5594 | fail: | |
5595 | return NULL; | |
5596 | } | |
5597 | ||
5598 | ||
5599 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5600 | PyObject *resultobj; | |
5601 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5602 | int arg2 ; | |
5603 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5605 | char *kwnames[] = { |
5606 | (char *) "self",(char *) "n", NULL | |
5607 | }; | |
5608 | ||
8edf1c75 | 5609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5612 | arg2 = (int) SWIG_AsInt(obj1); | |
5613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5614 | { |
5615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5616 | (arg1)->Deselect(arg2); | |
5617 | ||
5618 | wxPyEndAllowThreads(__tstate); | |
5619 | if (PyErr_Occurred()) SWIG_fail; | |
5620 | } | |
5621 | Py_INCREF(Py_None); resultobj = Py_None; | |
5622 | return resultobj; | |
5623 | fail: | |
5624 | return NULL; | |
5625 | } | |
5626 | ||
5627 | ||
5628 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5629 | PyObject *resultobj; | |
5630 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5631 | int arg2 = (int) -1 ; | |
5632 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5633 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5634 | char *kwnames[] = { |
5635 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5636 | }; | |
5637 | ||
8edf1c75 | 5638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5641 | if (obj1) { |
2f4c0a16 RD |
5642 | arg2 = (int) SWIG_AsInt(obj1); |
5643 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5644 | } |
d14a1e28 RD |
5645 | { |
5646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5647 | (arg1)->DeselectAll(arg2); | |
5648 | ||
5649 | wxPyEndAllowThreads(__tstate); | |
5650 | if (PyErr_Occurred()) SWIG_fail; | |
5651 | } | |
5652 | Py_INCREF(Py_None); resultobj = Py_None; | |
5653 | return resultobj; | |
5654 | fail: | |
5655 | return NULL; | |
5656 | } | |
5657 | ||
5658 | ||
5659 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5660 | PyObject *resultobj; | |
5661 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5662 | wxString *arg2 = 0 ; | |
423f194a | 5663 | bool arg3 = (bool) True ; |
d14a1e28 | 5664 | bool result; |
423f194a | 5665 | bool temp2 = False ; |
d14a1e28 RD |
5666 | PyObject * obj0 = 0 ; |
5667 | PyObject * obj1 = 0 ; | |
5668 | PyObject * obj2 = 0 ; | |
5669 | char *kwnames[] = { | |
5670 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5671 | }; | |
5672 | ||
5673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5676 | { |
5677 | arg2 = wxString_in_helper(obj1); | |
5678 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5679 | temp2 = True; |
d14a1e28 RD |
5680 | } |
5681 | if (obj2) { | |
2f4c0a16 RD |
5682 | arg3 = (bool) SWIG_AsBool(obj2); |
5683 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5684 | } |
5685 | { | |
5686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5687 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5688 | ||
5689 | wxPyEndAllowThreads(__tstate); | |
5690 | if (PyErr_Occurred()) SWIG_fail; | |
5691 | } | |
4f89f6a3 RD |
5692 | { |
5693 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5694 | } | |
d14a1e28 RD |
5695 | { |
5696 | if (temp2) | |
5697 | delete arg2; | |
5698 | } | |
5699 | return resultobj; | |
5700 | fail: | |
5701 | { | |
5702 | if (temp2) | |
5703 | delete arg2; | |
5704 | } | |
5705 | return NULL; | |
5706 | } | |
5707 | ||
5708 | ||
5709 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5710 | PyObject *resultobj; | |
5711 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5712 | PyObject *result; | |
5713 | PyObject * obj0 = 0 ; | |
5714 | char *kwnames[] = { | |
5715 | (char *) "self", NULL | |
5716 | }; | |
5717 | ||
5718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5721 | { |
5722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5723 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5724 | ||
5725 | wxPyEndAllowThreads(__tstate); | |
5726 | if (PyErr_Occurred()) SWIG_fail; | |
5727 | } | |
5728 | resultobj = result; | |
5729 | return resultobj; | |
5730 | fail: | |
5731 | return NULL; | |
5732 | } | |
5733 | ||
5734 | ||
5735 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5736 | PyObject *resultobj; | |
5737 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5738 | int arg2 ; | |
5739 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5740 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5741 | char *kwnames[] = { |
5742 | (char *) "self",(char *) "n", NULL | |
5743 | }; | |
5744 | ||
8edf1c75 | 5745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5748 | arg2 = (int) SWIG_AsInt(obj1); | |
5749 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5750 | { |
5751 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5752 | (arg1)->SetFirstItem(arg2); | |
5753 | ||
5754 | wxPyEndAllowThreads(__tstate); | |
5755 | if (PyErr_Occurred()) SWIG_fail; | |
5756 | } | |
5757 | Py_INCREF(Py_None); resultobj = Py_None; | |
5758 | return resultobj; | |
5759 | fail: | |
5760 | return NULL; | |
5761 | } | |
5762 | ||
5763 | ||
5764 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5765 | PyObject *resultobj; | |
5766 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5767 | wxString *arg2 = 0 ; | |
423f194a | 5768 | bool temp2 = False ; |
d14a1e28 RD |
5769 | PyObject * obj0 = 0 ; |
5770 | PyObject * obj1 = 0 ; | |
5771 | char *kwnames[] = { | |
5772 | (char *) "self",(char *) "s", NULL | |
5773 | }; | |
5774 | ||
5775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5778 | { |
5779 | arg2 = wxString_in_helper(obj1); | |
5780 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5781 | temp2 = True; |
d14a1e28 RD |
5782 | } |
5783 | { | |
5784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5785 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5786 | ||
5787 | wxPyEndAllowThreads(__tstate); | |
5788 | if (PyErr_Occurred()) SWIG_fail; | |
5789 | } | |
5790 | Py_INCREF(Py_None); resultobj = Py_None; | |
5791 | { | |
5792 | if (temp2) | |
5793 | delete arg2; | |
5794 | } | |
5795 | return resultobj; | |
5796 | fail: | |
5797 | { | |
5798 | if (temp2) | |
5799 | delete arg2; | |
5800 | } | |
5801 | return NULL; | |
5802 | } | |
5803 | ||
5804 | ||
5805 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5806 | PyObject *resultobj; | |
5807 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5808 | int arg2 ; | |
5809 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5810 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5811 | char *kwnames[] = { |
5812 | (char *) "self",(char *) "n", NULL | |
5813 | }; | |
5814 | ||
8edf1c75 | 5815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5818 | arg2 = (int) SWIG_AsInt(obj1); | |
5819 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5820 | { |
5821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5822 | (arg1)->EnsureVisible(arg2); | |
5823 | ||
5824 | wxPyEndAllowThreads(__tstate); | |
5825 | if (PyErr_Occurred()) SWIG_fail; | |
5826 | } | |
5827 | Py_INCREF(Py_None); resultobj = Py_None; | |
5828 | return resultobj; | |
5829 | fail: | |
5830 | return NULL; | |
5831 | } | |
5832 | ||
5833 | ||
5834 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5835 | PyObject *resultobj; | |
5836 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5837 | wxString *arg2 = 0 ; | |
423f194a | 5838 | bool temp2 = False ; |
d14a1e28 RD |
5839 | PyObject * obj0 = 0 ; |
5840 | PyObject * obj1 = 0 ; | |
5841 | char *kwnames[] = { | |
5842 | (char *) "self",(char *) "s", NULL | |
5843 | }; | |
5844 | ||
5845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5848 | { |
5849 | arg2 = wxString_in_helper(obj1); | |
5850 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5851 | temp2 = True; |
d14a1e28 RD |
5852 | } |
5853 | { | |
5854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5855 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
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_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5876 | PyObject *resultobj; | |
5877 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5878 | bool result; | |
5879 | PyObject * obj0 = 0 ; | |
5880 | char *kwnames[] = { | |
5881 | (char *) "self", NULL | |
5882 | }; | |
5883 | ||
5884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5887 | { |
5888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5889 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5890 | ||
5891 | wxPyEndAllowThreads(__tstate); | |
5892 | if (PyErr_Occurred()) SWIG_fail; | |
5893 | } | |
4f89f6a3 RD |
5894 | { |
5895 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5896 | } | |
d14a1e28 RD |
5897 | return resultobj; |
5898 | fail: | |
5899 | return NULL; | |
5900 | } | |
5901 | ||
5902 | ||
0ffb2aa6 RD |
5903 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5904 | PyObject *resultobj; | |
5905 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5906 | int arg2 ; | |
5907 | wxColour *arg3 = 0 ; | |
5908 | wxColour temp3 ; | |
5909 | PyObject * obj0 = 0 ; | |
5910 | PyObject * obj1 = 0 ; | |
5911 | PyObject * obj2 = 0 ; | |
5912 | char *kwnames[] = { | |
5913 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5914 | }; | |
5915 | ||
5916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5919 | arg2 = (int) SWIG_AsInt(obj1); | |
5920 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5921 | { |
5922 | arg3 = &temp3; | |
5923 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5924 | } | |
5925 | { | |
5926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5927 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5928 | ||
5929 | wxPyEndAllowThreads(__tstate); | |
5930 | if (PyErr_Occurred()) SWIG_fail; | |
5931 | } | |
5932 | Py_INCREF(Py_None); resultobj = Py_None; | |
5933 | return resultobj; | |
5934 | fail: | |
5935 | return NULL; | |
5936 | } | |
5937 | ||
5938 | ||
5939 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5940 | PyObject *resultobj; | |
5941 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5942 | int arg2 ; | |
5943 | wxColour *arg3 = 0 ; | |
5944 | wxColour temp3 ; | |
5945 | PyObject * obj0 = 0 ; | |
5946 | PyObject * obj1 = 0 ; | |
5947 | PyObject * obj2 = 0 ; | |
5948 | char *kwnames[] = { | |
5949 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5950 | }; | |
5951 | ||
5952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5955 | arg2 = (int) SWIG_AsInt(obj1); | |
5956 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5957 | { |
5958 | arg3 = &temp3; | |
5959 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5960 | } | |
5961 | { | |
5962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5963 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5964 | ||
5965 | wxPyEndAllowThreads(__tstate); | |
5966 | if (PyErr_Occurred()) SWIG_fail; | |
5967 | } | |
5968 | Py_INCREF(Py_None); resultobj = Py_None; | |
5969 | return resultobj; | |
5970 | fail: | |
5971 | return NULL; | |
5972 | } | |
5973 | ||
5974 | ||
5975 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5976 | PyObject *resultobj; | |
5977 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5978 | int arg2 ; | |
5979 | wxFont *arg3 = 0 ; | |
5980 | PyObject * obj0 = 0 ; | |
5981 | PyObject * obj1 = 0 ; | |
5982 | PyObject * obj2 = 0 ; | |
5983 | char *kwnames[] = { | |
5984 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5985 | }; | |
5986 | ||
5987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5990 | arg2 = (int) SWIG_AsInt(obj1); | |
5991 | if (PyErr_Occurred()) SWIG_fail; | |
5992 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
5993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5994 | SWIG_fail; | |
0ffb2aa6 | 5995 | if (arg3 == NULL) { |
2f4c0a16 RD |
5996 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5997 | SWIG_fail; | |
0ffb2aa6 RD |
5998 | } |
5999 | { | |
6000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6001 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6002 | ||
6003 | wxPyEndAllowThreads(__tstate); | |
6004 | if (PyErr_Occurred()) SWIG_fail; | |
6005 | } | |
6006 | Py_INCREF(Py_None); resultobj = Py_None; | |
6007 | return resultobj; | |
6008 | fail: | |
6009 | return NULL; | |
6010 | } | |
6011 | ||
6012 | ||
74a57fcd RD |
6013 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6014 | PyObject *resultobj; | |
6015 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6016 | wxVisualAttributes result; | |
6017 | PyObject * obj0 = 0 ; | |
6018 | char *kwnames[] = { | |
6019 | (char *) "variant", NULL | |
6020 | }; | |
6021 | ||
6022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6023 | if (obj0) { | |
6024 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6025 | if (PyErr_Occurred()) SWIG_fail; | |
6026 | } | |
6027 | { | |
6028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6029 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6030 | ||
6031 | wxPyEndAllowThreads(__tstate); | |
6032 | if (PyErr_Occurred()) SWIG_fail; | |
6033 | } | |
6034 | { | |
6035 | wxVisualAttributes * resultptr; | |
6036 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6038 | } | |
6039 | return resultobj; | |
6040 | fail: | |
6041 | return NULL; | |
6042 | } | |
6043 | ||
6044 | ||
d14a1e28 RD |
6045 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6046 | PyObject *obj; | |
6047 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6048 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6049 | Py_INCREF(obj); | |
6050 | return Py_BuildValue((char *)""); | |
6051 | } | |
6052 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6053 | PyObject *resultobj; | |
6054 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6055 | int arg2 ; |
d14a1e28 RD |
6056 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6057 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6058 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6059 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
6060 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6061 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6062 | long arg6 = (long) 0 ; | |
6063 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6064 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6065 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6066 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6067 | wxCheckListBox *result; |
6068 | wxPoint temp3 ; | |
6069 | wxSize temp4 ; | |
db914595 | 6070 | bool temp5 = False ; |
423f194a | 6071 | bool temp8 = False ; |
d14a1e28 | 6072 | PyObject * obj0 = 0 ; |
8edf1c75 | 6073 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6074 | PyObject * obj2 = 0 ; |
6075 | PyObject * obj3 = 0 ; | |
6076 | PyObject * obj4 = 0 ; | |
8edf1c75 | 6077 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6078 | PyObject * obj6 = 0 ; |
6079 | PyObject * obj7 = 0 ; | |
6080 | char *kwnames[] = { | |
6081 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6082 | }; | |
6083 | ||
8edf1c75 | 6084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
6085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6087 | arg2 = (int) SWIG_AsInt(obj1); | |
6088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6089 | if (obj2) { |
6090 | { | |
6091 | arg3 = &temp3; | |
6092 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6093 | } | |
6094 | } | |
6095 | if (obj3) { | |
6096 | { | |
6097 | arg4 = &temp4; | |
6098 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6099 | } | |
6100 | } | |
6101 | if (obj4) { | |
6102 | { | |
4e760a36 RD |
6103 | if (! PySequence_Check(obj4)) { |
6104 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6105 | SWIG_fail; | |
6106 | } | |
6107 | arg5 = new wxArrayString; | |
db914595 | 6108 | temp5 = True; |
4e760a36 RD |
6109 | int i, len=PySequence_Length(obj4); |
6110 | for (i=0; i<len; i++) { | |
6111 | PyObject* item = PySequence_GetItem(obj4, i); | |
6112 | #if wxUSE_UNICODE | |
6113 | PyObject* str = PyObject_Unicode(item); | |
6114 | #else | |
6115 | PyObject* str = PyObject_Str(item); | |
6116 | #endif | |
74a57fcd | 6117 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
6118 | arg5->Add(Py2wxString(str)); |
6119 | Py_DECREF(item); | |
6120 | Py_DECREF(str); | |
6121 | } | |
d14a1e28 RD |
6122 | } |
6123 | } | |
8edf1c75 | 6124 | if (obj5) { |
2f4c0a16 RD |
6125 | arg6 = (long) SWIG_AsLong(obj5); |
6126 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6127 | } |
d14a1e28 | 6128 | if (obj6) { |
2f4c0a16 RD |
6129 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6130 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6131 | SWIG_fail; | |
4e760a36 | 6132 | if (arg7 == NULL) { |
2f4c0a16 RD |
6133 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6134 | SWIG_fail; | |
d14a1e28 RD |
6135 | } |
6136 | } | |
6137 | if (obj7) { | |
6138 | { | |
4e760a36 RD |
6139 | arg8 = wxString_in_helper(obj7); |
6140 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6141 | temp8 = True; |
d14a1e28 RD |
6142 | } |
6143 | } | |
6144 | { | |
6145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6146 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6147 | |
6148 | wxPyEndAllowThreads(__tstate); | |
6149 | if (PyErr_Occurred()) SWIG_fail; | |
6150 | } | |
2f4c0a16 | 6151 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6152 | { |
db914595 | 6153 | if (temp5) delete arg5; |
d14a1e28 RD |
6154 | } |
6155 | { | |
6156 | if (temp8) | |
4e760a36 | 6157 | delete arg8; |
d14a1e28 RD |
6158 | } |
6159 | return resultobj; | |
6160 | fail: | |
6161 | { | |
db914595 | 6162 | if (temp5) delete arg5; |
d14a1e28 RD |
6163 | } |
6164 | { | |
6165 | if (temp8) | |
4e760a36 | 6166 | delete arg8; |
d14a1e28 RD |
6167 | } |
6168 | return NULL; | |
6169 | } | |
6170 | ||
6171 | ||
6172 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6173 | PyObject *resultobj; | |
6174 | wxCheckListBox *result; | |
6175 | char *kwnames[] = { | |
6176 | NULL | |
6177 | }; | |
6178 | ||
6179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6180 | { | |
6181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6182 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6183 | ||
6184 | wxPyEndAllowThreads(__tstate); | |
6185 | if (PyErr_Occurred()) SWIG_fail; | |
6186 | } | |
2f4c0a16 | 6187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6188 | return resultobj; |
6189 | fail: | |
6190 | return NULL; | |
6191 | } | |
6192 | ||
6193 | ||
6194 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6195 | PyObject *resultobj; | |
6196 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6198 | int arg3 ; |
d14a1e28 RD |
6199 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6200 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6201 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6202 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
6203 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6204 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6205 | long arg7 = (long) 0 ; | |
6206 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6207 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6208 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6209 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6210 | bool result; |
6211 | wxPoint temp4 ; | |
6212 | wxSize temp5 ; | |
db914595 | 6213 | bool temp6 = False ; |
423f194a | 6214 | bool temp9 = False ; |
d14a1e28 RD |
6215 | PyObject * obj0 = 0 ; |
6216 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6217 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6218 | PyObject * obj3 = 0 ; |
6219 | PyObject * obj4 = 0 ; | |
6220 | PyObject * obj5 = 0 ; | |
8edf1c75 | 6221 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6222 | PyObject * obj7 = 0 ; |
6223 | PyObject * obj8 = 0 ; | |
6224 | char *kwnames[] = { | |
6225 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6226 | }; | |
6227 | ||
8edf1c75 | 6228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
6229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6231 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6233 | arg3 = (int) SWIG_AsInt(obj2); | |
6234 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6235 | if (obj3) { |
6236 | { | |
6237 | arg4 = &temp4; | |
6238 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6239 | } | |
6240 | } | |
6241 | if (obj4) { | |
6242 | { | |
6243 | arg5 = &temp5; | |
6244 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6245 | } | |
6246 | } | |
6247 | if (obj5) { | |
6248 | { | |
4e760a36 RD |
6249 | if (! PySequence_Check(obj5)) { |
6250 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6251 | SWIG_fail; | |
6252 | } | |
6253 | arg6 = new wxArrayString; | |
db914595 | 6254 | temp6 = True; |
4e760a36 RD |
6255 | int i, len=PySequence_Length(obj5); |
6256 | for (i=0; i<len; i++) { | |
6257 | PyObject* item = PySequence_GetItem(obj5, i); | |
6258 | #if wxUSE_UNICODE | |
6259 | PyObject* str = PyObject_Unicode(item); | |
6260 | #else | |
6261 | PyObject* str = PyObject_Str(item); | |
6262 | #endif | |
74a57fcd | 6263 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
6264 | arg6->Add(Py2wxString(str)); |
6265 | Py_DECREF(item); | |
6266 | Py_DECREF(str); | |
6267 | } | |
d14a1e28 RD |
6268 | } |
6269 | } | |
8edf1c75 | 6270 | if (obj6) { |
2f4c0a16 RD |
6271 | arg7 = (long) SWIG_AsLong(obj6); |
6272 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6273 | } |
d14a1e28 | 6274 | if (obj7) { |
2f4c0a16 RD |
6275 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6277 | SWIG_fail; | |
4e760a36 | 6278 | if (arg8 == NULL) { |
2f4c0a16 RD |
6279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6280 | SWIG_fail; | |
d14a1e28 RD |
6281 | } |
6282 | } | |
6283 | if (obj8) { | |
6284 | { | |
4e760a36 RD |
6285 | arg9 = wxString_in_helper(obj8); |
6286 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6287 | temp9 = True; |
d14a1e28 RD |
6288 | } |
6289 | } | |
6290 | { | |
6291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6292 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6293 | |
6294 | wxPyEndAllowThreads(__tstate); | |
6295 | if (PyErr_Occurred()) SWIG_fail; | |
6296 | } | |
4f89f6a3 RD |
6297 | { |
6298 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6299 | } | |
d14a1e28 | 6300 | { |
db914595 | 6301 | if (temp6) delete arg6; |
d14a1e28 RD |
6302 | } |
6303 | { | |
6304 | if (temp9) | |
4e760a36 | 6305 | delete arg9; |
d14a1e28 RD |
6306 | } |
6307 | return resultobj; | |
6308 | fail: | |
6309 | { | |
db914595 | 6310 | if (temp6) delete arg6; |
d14a1e28 RD |
6311 | } |
6312 | { | |
6313 | if (temp9) | |
4e760a36 | 6314 | delete arg9; |
d14a1e28 RD |
6315 | } |
6316 | return NULL; | |
6317 | } | |
6318 | ||
6319 | ||
6320 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6321 | PyObject *resultobj; | |
6322 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6323 | int arg2 ; | |
6324 | bool result; | |
6325 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6326 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6327 | char *kwnames[] = { |
6328 | (char *) "self",(char *) "index", NULL | |
6329 | }; | |
6330 | ||
8edf1c75 | 6331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6334 | arg2 = (int) SWIG_AsInt(obj1); | |
6335 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6336 | { |
6337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6338 | result = (bool)(arg1)->IsChecked(arg2); | |
6339 | ||
6340 | wxPyEndAllowThreads(__tstate); | |
6341 | if (PyErr_Occurred()) SWIG_fail; | |
6342 | } | |
4f89f6a3 RD |
6343 | { |
6344 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6345 | } | |
d14a1e28 RD |
6346 | return resultobj; |
6347 | fail: | |
6348 | return NULL; | |
6349 | } | |
6350 | ||
6351 | ||
6352 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6353 | PyObject *resultobj; | |
6354 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6355 | int arg2 ; | |
423f194a | 6356 | int arg3 = (int) True ; |
d14a1e28 | 6357 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6358 | PyObject * obj1 = 0 ; |
6359 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6360 | char *kwnames[] = { |
6361 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6362 | }; | |
6363 | ||
8edf1c75 | 6364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6367 | arg2 = (int) SWIG_AsInt(obj1); | |
6368 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6369 | if (obj2) { |
2f4c0a16 RD |
6370 | arg3 = (int) SWIG_AsInt(obj2); |
6371 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6372 | } |
d14a1e28 RD |
6373 | { |
6374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6375 | (arg1)->Check(arg2,arg3); | |
6376 | ||
6377 | wxPyEndAllowThreads(__tstate); | |
6378 | if (PyErr_Occurred()) SWIG_fail; | |
6379 | } | |
6380 | Py_INCREF(Py_None); resultobj = Py_None; | |
6381 | return resultobj; | |
6382 | fail: | |
6383 | return NULL; | |
6384 | } | |
6385 | ||
6386 | ||
6387 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6388 | PyObject *resultobj; | |
6389 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6390 | int result; | |
6391 | PyObject * obj0 = 0 ; | |
6392 | char *kwnames[] = { | |
6393 | (char *) "self", NULL | |
6394 | }; | |
6395 | ||
6396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6399 | { |
6400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6401 | result = (int)(arg1)->GetItemHeight(); | |
6402 | ||
6403 | wxPyEndAllowThreads(__tstate); | |
6404 | if (PyErr_Occurred()) SWIG_fail; | |
6405 | } | |
2f4c0a16 | 6406 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6407 | return resultobj; |
6408 | fail: | |
6409 | return NULL; | |
6410 | } | |
6411 | ||
6412 | ||
6413 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6414 | PyObject *resultobj; | |
6415 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6416 | wxPoint *arg2 = 0 ; | |
6417 | int result; | |
6418 | wxPoint temp2 ; | |
6419 | PyObject * obj0 = 0 ; | |
6420 | PyObject * obj1 = 0 ; | |
6421 | char *kwnames[] = { | |
6422 | (char *) "self",(char *) "pt", NULL | |
6423 | }; | |
6424 | ||
6425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6428 | { |
6429 | arg2 = &temp2; | |
6430 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6431 | } | |
6432 | { | |
6433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6434 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6435 | ||
6436 | wxPyEndAllowThreads(__tstate); | |
6437 | if (PyErr_Occurred()) SWIG_fail; | |
6438 | } | |
2f4c0a16 | 6439 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6440 | return resultobj; |
6441 | fail: | |
6442 | return NULL; | |
6443 | } | |
6444 | ||
6445 | ||
6446 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6447 | PyObject *resultobj; | |
6448 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6449 | int arg2 ; |
6450 | int arg3 ; | |
d14a1e28 RD |
6451 | int result; |
6452 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6453 | PyObject * obj1 = 0 ; |
6454 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6455 | char *kwnames[] = { |
6456 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6457 | }; | |
6458 | ||
8edf1c75 | 6459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6462 | arg2 = (int) SWIG_AsInt(obj1); | |
6463 | if (PyErr_Occurred()) SWIG_fail; | |
6464 | arg3 = (int) SWIG_AsInt(obj2); | |
6465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6466 | { |
6467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6468 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6469 | ||
6470 | wxPyEndAllowThreads(__tstate); | |
6471 | if (PyErr_Occurred()) SWIG_fail; | |
6472 | } | |
2f4c0a16 | 6473 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6474 | return resultobj; |
6475 | fail: | |
6476 | return NULL; | |
6477 | } | |
6478 | ||
6479 | ||
6480 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6481 | PyObject *obj; | |
6482 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6483 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6484 | Py_INCREF(obj); | |
6485 | return Py_BuildValue((char *)""); | |
6486 | } | |
2f4c0a16 | 6487 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
6488 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6489 | return 1; | |
6490 | } | |
6491 | ||
6492 | ||
6493 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6494 | PyObject *pyobj; | |
6495 | ||
6496 | { | |
6497 | #if wxUSE_UNICODE | |
6498 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6499 | #else | |
6500 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6501 | #endif | |
6502 | } | |
6503 | return pyobj; | |
6504 | } | |
6505 | ||
6506 | ||
d14a1e28 RD |
6507 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6508 | PyObject *resultobj; | |
6509 | wxTextAttr *result; | |
6510 | ||
6511 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6512 | { | |
6513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6514 | result = (wxTextAttr *)new wxTextAttr(); | |
6515 | ||
6516 | wxPyEndAllowThreads(__tstate); | |
6517 | if (PyErr_Occurred()) SWIG_fail; | |
6518 | } | |
2f4c0a16 | 6519 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6520 | return resultobj; |
6521 | fail: | |
6522 | return NULL; | |
6523 | } | |
6524 | ||
6525 | ||
6526 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6527 | PyObject *resultobj; | |
6528 | wxColour *arg1 = 0 ; | |
6529 | wxColour const &arg2_defvalue = wxNullColour ; | |
6530 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6531 | wxFont const &arg3_defvalue = wxNullFont ; | |
6532 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6533 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6534 | wxTextAttr *result; | |
6535 | wxColour temp1 ; | |
6536 | wxColour temp2 ; | |
6537 | PyObject * obj0 = 0 ; | |
6538 | PyObject * obj1 = 0 ; | |
6539 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6540 | PyObject * obj3 = 0 ; |
d14a1e28 | 6541 | |
8edf1c75 | 6542 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6543 | { |
6544 | arg1 = &temp1; | |
6545 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6546 | } | |
6547 | if (obj1) { | |
6548 | { | |
6549 | arg2 = &temp2; | |
6550 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6551 | } | |
6552 | } | |
6553 | if (obj2) { | |
2f4c0a16 RD |
6554 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
6555 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6556 | SWIG_fail; | |
d14a1e28 | 6557 | if (arg3 == NULL) { |
2f4c0a16 RD |
6558 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6559 | SWIG_fail; | |
d14a1e28 RD |
6560 | } |
6561 | } | |
8edf1c75 | 6562 | if (obj3) { |
2f4c0a16 RD |
6563 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
6564 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
6565 | } |
6566 | { | |
6567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6568 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6569 | |
6570 | wxPyEndAllowThreads(__tstate); | |
6571 | if (PyErr_Occurred()) SWIG_fail; | |
6572 | } | |
2f4c0a16 | 6573 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6574 | return resultobj; |
6575 | fail: | |
6576 | return NULL; | |
6577 | } | |
6578 | ||
6579 | ||
6580 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6581 | int argc; | |
6582 | PyObject *argv[5]; | |
6583 | int ii; | |
6584 | ||
6585 | argc = PyObject_Length(args); | |
6586 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6587 | argv[ii] = PyTuple_GetItem(args,ii); | |
6588 | } | |
6589 | if (argc == 0) { | |
6590 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6591 | } | |
6592 | if ((argc >= 1) && (argc <= 4)) { | |
6593 | int _v; | |
6594 | { | |
6595 | _v = wxColour_typecheck(argv[0]); | |
6596 | } | |
6597 | if (_v) { | |
6598 | if (argc <= 1) { | |
6599 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6600 | } | |
6601 | { | |
6602 | _v = wxColour_typecheck(argv[1]); | |
6603 | } | |
6604 | if (_v) { | |
6605 | if (argc <= 2) { | |
6606 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6607 | } | |
6608 | { | |
6609 | void *ptr; | |
2f4c0a16 | 6610 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { |
d14a1e28 RD |
6611 | _v = 0; |
6612 | PyErr_Clear(); | |
6613 | } else { | |
6614 | _v = 1; | |
6615 | } | |
6616 | } | |
6617 | if (_v) { | |
6618 | if (argc <= 3) { | |
6619 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6620 | } | |
2f4c0a16 | 6621 | _v = SWIG_CheckInt(argv[3]); |
8edf1c75 RD |
6622 | if (_v) { |
6623 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6624 | } | |
d14a1e28 RD |
6625 | } |
6626 | } | |
6627 | } | |
6628 | } | |
6629 | ||
6630 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6631 | return NULL; | |
6632 | } | |
6633 | ||
6634 | ||
8edf1c75 RD |
6635 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6636 | PyObject *resultobj; | |
6637 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6638 | PyObject * obj0 = 0 ; | |
6639 | char *kwnames[] = { | |
6640 | (char *) "self", NULL | |
6641 | }; | |
6642 | ||
6643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
6646 | { |
6647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6648 | delete arg1; | |
6649 | ||
6650 | wxPyEndAllowThreads(__tstate); | |
6651 | if (PyErr_Occurred()) SWIG_fail; | |
6652 | } | |
6653 | Py_INCREF(Py_None); resultobj = Py_None; | |
6654 | return resultobj; | |
6655 | fail: | |
6656 | return NULL; | |
6657 | } | |
6658 | ||
6659 | ||
d14a1e28 RD |
6660 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6661 | PyObject *resultobj; | |
6662 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6663 | PyObject * obj0 = 0 ; | |
6664 | char *kwnames[] = { | |
6665 | (char *) "self", NULL | |
6666 | }; | |
6667 | ||
6668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6671 | { |
6672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6673 | (arg1)->Init(); | |
6674 | ||
6675 | wxPyEndAllowThreads(__tstate); | |
6676 | if (PyErr_Occurred()) SWIG_fail; | |
6677 | } | |
6678 | Py_INCREF(Py_None); resultobj = Py_None; | |
6679 | return resultobj; | |
6680 | fail: | |
6681 | return NULL; | |
6682 | } | |
6683 | ||
6684 | ||
6685 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6686 | PyObject *resultobj; | |
6687 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6688 | wxColour *arg2 = 0 ; | |
6689 | wxColour temp2 ; | |
6690 | PyObject * obj0 = 0 ; | |
6691 | PyObject * obj1 = 0 ; | |
6692 | char *kwnames[] = { | |
6693 | (char *) "self",(char *) "colText", NULL | |
6694 | }; | |
6695 | ||
6696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6699 | { |
6700 | arg2 = &temp2; | |
6701 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6702 | } | |
6703 | { | |
6704 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6705 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6706 | ||
6707 | wxPyEndAllowThreads(__tstate); | |
6708 | if (PyErr_Occurred()) SWIG_fail; | |
6709 | } | |
6710 | Py_INCREF(Py_None); resultobj = Py_None; | |
6711 | return resultobj; | |
6712 | fail: | |
6713 | return NULL; | |
6714 | } | |
6715 | ||
6716 | ||
6717 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6718 | PyObject *resultobj; | |
6719 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6720 | wxColour *arg2 = 0 ; | |
6721 | wxColour temp2 ; | |
6722 | PyObject * obj0 = 0 ; | |
6723 | PyObject * obj1 = 0 ; | |
6724 | char *kwnames[] = { | |
6725 | (char *) "self",(char *) "colBack", NULL | |
6726 | }; | |
6727 | ||
6728 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6729 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6730 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6731 | { |
6732 | arg2 = &temp2; | |
6733 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6734 | } | |
6735 | { | |
6736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6737 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6738 | ||
6739 | wxPyEndAllowThreads(__tstate); | |
6740 | if (PyErr_Occurred()) SWIG_fail; | |
6741 | } | |
6742 | Py_INCREF(Py_None); resultobj = Py_None; | |
6743 | return resultobj; | |
6744 | fail: | |
6745 | return NULL; | |
6746 | } | |
6747 | ||
6748 | ||
6749 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6750 | PyObject *resultobj; | |
6751 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6752 | wxFont *arg2 = 0 ; | |
6753 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6754 | PyObject * obj0 = 0 ; | |
6755 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6756 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6757 | char *kwnames[] = { |
6758 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6759 | }; | |
6760 | ||
8edf1c75 | 6761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6764 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6765 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6766 | SWIG_fail; | |
d14a1e28 | 6767 | if (arg2 == NULL) { |
2f4c0a16 RD |
6768 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6769 | SWIG_fail; | |
d14a1e28 | 6770 | } |
8edf1c75 | 6771 | if (obj2) { |
2f4c0a16 RD |
6772 | arg3 = (long) SWIG_AsLong(obj2); |
6773 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6774 | } |
d14a1e28 RD |
6775 | { |
6776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6777 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6778 | ||
6779 | wxPyEndAllowThreads(__tstate); | |
6780 | if (PyErr_Occurred()) SWIG_fail; | |
6781 | } | |
6782 | Py_INCREF(Py_None); resultobj = Py_None; | |
6783 | return resultobj; | |
6784 | fail: | |
6785 | return NULL; | |
6786 | } | |
6787 | ||
6788 | ||
6789 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6790 | PyObject *resultobj; | |
6791 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6792 | int arg2 ; | |
6793 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6794 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6795 | char *kwnames[] = { |
6796 | (char *) "self",(char *) "alignment", NULL | |
6797 | }; | |
6798 | ||
8edf1c75 | 6799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6802 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
6803 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6804 | { |
6805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6806 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6807 | ||
6808 | wxPyEndAllowThreads(__tstate); | |
6809 | if (PyErr_Occurred()) SWIG_fail; | |
6810 | } | |
6811 | Py_INCREF(Py_None); resultobj = Py_None; | |
6812 | return resultobj; | |
6813 | fail: | |
6814 | return NULL; | |
6815 | } | |
6816 | ||
6817 | ||
6818 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6819 | PyObject *resultobj; | |
6820 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6821 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6822 | bool temp2 = False ; |
d14a1e28 RD |
6823 | PyObject * obj0 = 0 ; |
6824 | PyObject * obj1 = 0 ; | |
6825 | char *kwnames[] = { | |
6826 | (char *) "self",(char *) "tabs", NULL | |
6827 | }; | |
6828 | ||
6829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6832 | { |
6833 | if (! PySequence_Check(obj1)) { | |
6834 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6835 | SWIG_fail; | |
6836 | } | |
6837 | arg2 = new wxArrayInt; | |
db914595 | 6838 | temp2 = True; |
d14a1e28 RD |
6839 | int i, len=PySequence_Length(obj1); |
6840 | for (i=0; i<len; i++) { | |
6841 | PyObject* item = PySequence_GetItem(obj1, i); | |
6842 | PyObject* number = PyNumber_Int(item); | |
6843 | arg2->Add(PyInt_AS_LONG(number)); | |
6844 | Py_DECREF(item); | |
6845 | Py_DECREF(number); | |
6846 | } | |
6847 | } | |
6848 | { | |
6849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6850 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6851 | ||
6852 | wxPyEndAllowThreads(__tstate); | |
6853 | if (PyErr_Occurred()) SWIG_fail; | |
6854 | } | |
6855 | Py_INCREF(Py_None); resultobj = Py_None; | |
6856 | { | |
db914595 | 6857 | if (temp2) delete arg2; |
d14a1e28 RD |
6858 | } |
6859 | return resultobj; | |
6860 | fail: | |
6861 | { | |
db914595 | 6862 | if (temp2) delete arg2; |
d14a1e28 RD |
6863 | } |
6864 | return NULL; | |
6865 | } | |
6866 | ||
6867 | ||
6868 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6869 | PyObject *resultobj; | |
6870 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6871 | int arg2 ; | |
6872 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6874 | char *kwnames[] = { |
6875 | (char *) "self",(char *) "indent", NULL | |
6876 | }; | |
6877 | ||
8edf1c75 | 6878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6881 | arg2 = (int) SWIG_AsInt(obj1); | |
6882 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6883 | { |
6884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6885 | (arg1)->SetLeftIndent(arg2); | |
6886 | ||
6887 | wxPyEndAllowThreads(__tstate); | |
6888 | if (PyErr_Occurred()) SWIG_fail; | |
6889 | } | |
6890 | Py_INCREF(Py_None); resultobj = Py_None; | |
6891 | return resultobj; | |
6892 | fail: | |
6893 | return NULL; | |
6894 | } | |
6895 | ||
6896 | ||
6897 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6898 | PyObject *resultobj; | |
6899 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6900 | int arg2 ; | |
6901 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6903 | char *kwnames[] = { |
6904 | (char *) "self",(char *) "indent", NULL | |
6905 | }; | |
6906 | ||
8edf1c75 | 6907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6910 | arg2 = (int) SWIG_AsInt(obj1); | |
6911 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6912 | { |
6913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6914 | (arg1)->SetRightIndent(arg2); | |
6915 | ||
6916 | wxPyEndAllowThreads(__tstate); | |
6917 | if (PyErr_Occurred()) SWIG_fail; | |
6918 | } | |
6919 | Py_INCREF(Py_None); resultobj = Py_None; | |
6920 | return resultobj; | |
6921 | fail: | |
6922 | return NULL; | |
6923 | } | |
6924 | ||
6925 | ||
6926 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6927 | PyObject *resultobj; | |
6928 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6929 | long arg2 ; | |
6930 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6932 | char *kwnames[] = { |
6933 | (char *) "self",(char *) "flags", NULL | |
6934 | }; | |
6935 | ||
8edf1c75 | 6936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6939 | arg2 = (long) SWIG_AsLong(obj1); | |
6940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6941 | { |
6942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6943 | (arg1)->SetFlags(arg2); | |
6944 | ||
6945 | wxPyEndAllowThreads(__tstate); | |
6946 | if (PyErr_Occurred()) SWIG_fail; | |
6947 | } | |
6948 | Py_INCREF(Py_None); resultobj = Py_None; | |
6949 | return resultobj; | |
6950 | fail: | |
6951 | return NULL; | |
6952 | } | |
6953 | ||
6954 | ||
6955 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6956 | PyObject *resultobj; | |
6957 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6958 | bool result; | |
6959 | PyObject * obj0 = 0 ; | |
6960 | char *kwnames[] = { | |
6961 | (char *) "self", NULL | |
6962 | }; | |
6963 | ||
6964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6967 | { |
6968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6969 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6970 | ||
6971 | wxPyEndAllowThreads(__tstate); | |
6972 | if (PyErr_Occurred()) SWIG_fail; | |
6973 | } | |
4f89f6a3 RD |
6974 | { |
6975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6976 | } | |
d14a1e28 RD |
6977 | return resultobj; |
6978 | fail: | |
6979 | return NULL; | |
6980 | } | |
6981 | ||
6982 | ||
6983 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6984 | PyObject *resultobj; | |
6985 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6986 | bool result; | |
6987 | PyObject * obj0 = 0 ; | |
6988 | char *kwnames[] = { | |
6989 | (char *) "self", NULL | |
6990 | }; | |
6991 | ||
6992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6995 | { |
6996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6997 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6998 | ||
6999 | wxPyEndAllowThreads(__tstate); | |
7000 | if (PyErr_Occurred()) SWIG_fail; | |
7001 | } | |
4f89f6a3 RD |
7002 | { |
7003 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7004 | } | |
d14a1e28 RD |
7005 | return resultobj; |
7006 | fail: | |
7007 | return NULL; | |
7008 | } | |
7009 | ||
7010 | ||
7011 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7012 | PyObject *resultobj; | |
7013 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7014 | bool result; | |
7015 | PyObject * obj0 = 0 ; | |
7016 | char *kwnames[] = { | |
7017 | (char *) "self", NULL | |
7018 | }; | |
7019 | ||
7020 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7021 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7022 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7023 | { |
7024 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7025 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7026 | ||
7027 | wxPyEndAllowThreads(__tstate); | |
7028 | if (PyErr_Occurred()) SWIG_fail; | |
7029 | } | |
4f89f6a3 RD |
7030 | { |
7031 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7032 | } | |
d14a1e28 RD |
7033 | return resultobj; |
7034 | fail: | |
7035 | return NULL; | |
7036 | } | |
7037 | ||
7038 | ||
7039 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7040 | PyObject *resultobj; | |
7041 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7042 | bool result; | |
7043 | PyObject * obj0 = 0 ; | |
7044 | char *kwnames[] = { | |
7045 | (char *) "self", NULL | |
7046 | }; | |
7047 | ||
7048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7051 | { |
7052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7053 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7054 | ||
7055 | wxPyEndAllowThreads(__tstate); | |
7056 | if (PyErr_Occurred()) SWIG_fail; | |
7057 | } | |
4f89f6a3 RD |
7058 | { |
7059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7060 | } | |
d14a1e28 RD |
7061 | return resultobj; |
7062 | fail: | |
7063 | return NULL; | |
7064 | } | |
7065 | ||
7066 | ||
7067 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7068 | PyObject *resultobj; | |
7069 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7070 | bool result; | |
7071 | PyObject * obj0 = 0 ; | |
7072 | char *kwnames[] = { | |
7073 | (char *) "self", NULL | |
7074 | }; | |
7075 | ||
7076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7079 | { |
7080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7081 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7082 | ||
7083 | wxPyEndAllowThreads(__tstate); | |
7084 | if (PyErr_Occurred()) SWIG_fail; | |
7085 | } | |
4f89f6a3 RD |
7086 | { |
7087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7088 | } | |
d14a1e28 RD |
7089 | return resultobj; |
7090 | fail: | |
7091 | return NULL; | |
7092 | } | |
7093 | ||
7094 | ||
7095 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7096 | PyObject *resultobj; | |
7097 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7098 | bool result; | |
7099 | PyObject * obj0 = 0 ; | |
7100 | char *kwnames[] = { | |
7101 | (char *) "self", NULL | |
7102 | }; | |
7103 | ||
7104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7107 | { |
7108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7109 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7110 | ||
7111 | wxPyEndAllowThreads(__tstate); | |
7112 | if (PyErr_Occurred()) SWIG_fail; | |
7113 | } | |
4f89f6a3 RD |
7114 | { |
7115 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7116 | } | |
d14a1e28 RD |
7117 | return resultobj; |
7118 | fail: | |
7119 | return NULL; | |
7120 | } | |
7121 | ||
7122 | ||
7123 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7124 | PyObject *resultobj; | |
7125 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7126 | bool result; | |
7127 | PyObject * obj0 = 0 ; | |
7128 | char *kwnames[] = { | |
7129 | (char *) "self", NULL | |
7130 | }; | |
7131 | ||
7132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7135 | { |
7136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7137 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7138 | ||
7139 | wxPyEndAllowThreads(__tstate); | |
7140 | if (PyErr_Occurred()) SWIG_fail; | |
7141 | } | |
4f89f6a3 RD |
7142 | { |
7143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7144 | } | |
d14a1e28 RD |
7145 | return resultobj; |
7146 | fail: | |
7147 | return NULL; | |
7148 | } | |
7149 | ||
7150 | ||
7151 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7152 | PyObject *resultobj; | |
7153 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7154 | long arg2 ; | |
7155 | bool result; | |
7156 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7157 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7158 | char *kwnames[] = { |
7159 | (char *) "self",(char *) "flag", NULL | |
7160 | }; | |
7161 | ||
8edf1c75 | 7162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7165 | arg2 = (long) SWIG_AsLong(obj1); | |
7166 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7167 | { |
7168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7169 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7170 | ||
7171 | wxPyEndAllowThreads(__tstate); | |
7172 | if (PyErr_Occurred()) SWIG_fail; | |
7173 | } | |
4f89f6a3 RD |
7174 | { |
7175 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7176 | } | |
d14a1e28 RD |
7177 | return resultobj; |
7178 | fail: | |
7179 | return NULL; | |
7180 | } | |
7181 | ||
7182 | ||
7183 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7184 | PyObject *resultobj; | |
7185 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7186 | wxColour *result; | |
7187 | PyObject * obj0 = 0 ; | |
7188 | char *kwnames[] = { | |
7189 | (char *) "self", NULL | |
7190 | }; | |
7191 | ||
7192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7193 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7194 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7195 | { |
7196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7197 | { | |
7198 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7199 | result = (wxColour *) &_result_ref; | |
7200 | } | |
7201 | ||
7202 | wxPyEndAllowThreads(__tstate); | |
7203 | if (PyErr_Occurred()) SWIG_fail; | |
7204 | } | |
2f4c0a16 | 7205 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7206 | return resultobj; |
7207 | fail: | |
7208 | return NULL; | |
7209 | } | |
7210 | ||
7211 | ||
7212 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7213 | PyObject *resultobj; | |
7214 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7215 | wxColour *result; | |
7216 | PyObject * obj0 = 0 ; | |
7217 | char *kwnames[] = { | |
7218 | (char *) "self", NULL | |
7219 | }; | |
7220 | ||
7221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7224 | { |
7225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7226 | { | |
7227 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7228 | result = (wxColour *) &_result_ref; | |
7229 | } | |
7230 | ||
7231 | wxPyEndAllowThreads(__tstate); | |
7232 | if (PyErr_Occurred()) SWIG_fail; | |
7233 | } | |
2f4c0a16 | 7234 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7235 | return resultobj; |
7236 | fail: | |
7237 | return NULL; | |
7238 | } | |
7239 | ||
7240 | ||
7241 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7242 | PyObject *resultobj; | |
7243 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7244 | wxFont *result; | |
7245 | PyObject * obj0 = 0 ; | |
7246 | char *kwnames[] = { | |
7247 | (char *) "self", NULL | |
7248 | }; | |
7249 | ||
7250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7253 | { |
7254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7255 | { | |
7256 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7257 | result = (wxFont *) &_result_ref; | |
7258 | } | |
7259 | ||
7260 | wxPyEndAllowThreads(__tstate); | |
7261 | if (PyErr_Occurred()) SWIG_fail; | |
7262 | } | |
fe763115 RD |
7263 | { |
7264 | wxFont* resultptr = new wxFont(*result); | |
7265 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7266 | } | |
d14a1e28 RD |
7267 | return resultobj; |
7268 | fail: | |
7269 | return NULL; | |
7270 | } | |
7271 | ||
7272 | ||
7273 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7274 | PyObject *resultobj; | |
7275 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7276 | int result; | |
7277 | PyObject * obj0 = 0 ; | |
7278 | char *kwnames[] = { | |
7279 | (char *) "self", NULL | |
7280 | }; | |
7281 | ||
7282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7285 | { |
7286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7287 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7288 | ||
7289 | wxPyEndAllowThreads(__tstate); | |
7290 | if (PyErr_Occurred()) SWIG_fail; | |
7291 | } | |
2f4c0a16 | 7292 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7293 | return resultobj; |
7294 | fail: | |
7295 | return NULL; | |
7296 | } | |
7297 | ||
7298 | ||
7299 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7300 | PyObject *resultobj; | |
7301 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7302 | wxArrayInt *result; | |
7303 | PyObject * obj0 = 0 ; | |
7304 | char *kwnames[] = { | |
7305 | (char *) "self", NULL | |
7306 | }; | |
7307 | ||
7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7311 | { |
7312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7313 | { | |
7314 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7315 | result = (wxArrayInt *) &_result_ref; | |
7316 | } | |
7317 | ||
7318 | wxPyEndAllowThreads(__tstate); | |
7319 | if (PyErr_Occurred()) SWIG_fail; | |
7320 | } | |
7321 | { | |
7322 | resultobj = PyList_New(0); | |
7323 | size_t idx; | |
7324 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7325 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7326 | PyList_Append(resultobj, val); | |
7327 | Py_DECREF(val); | |
7328 | } | |
7329 | } | |
7330 | return resultobj; | |
7331 | fail: | |
7332 | return NULL; | |
7333 | } | |
7334 | ||
7335 | ||
7336 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7337 | PyObject *resultobj; | |
7338 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7339 | long result; | |
7340 | PyObject * obj0 = 0 ; | |
7341 | char *kwnames[] = { | |
7342 | (char *) "self", NULL | |
7343 | }; | |
7344 | ||
7345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7348 | { |
7349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7350 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7351 | ||
7352 | wxPyEndAllowThreads(__tstate); | |
7353 | if (PyErr_Occurred()) SWIG_fail; | |
7354 | } | |
2f4c0a16 | 7355 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7356 | return resultobj; |
7357 | fail: | |
7358 | return NULL; | |
7359 | } | |
7360 | ||
7361 | ||
7362 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7363 | PyObject *resultobj; | |
7364 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7365 | long result; | |
7366 | PyObject * obj0 = 0 ; | |
7367 | char *kwnames[] = { | |
7368 | (char *) "self", NULL | |
7369 | }; | |
7370 | ||
7371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7374 | { |
7375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7376 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7377 | ||
7378 | wxPyEndAllowThreads(__tstate); | |
7379 | if (PyErr_Occurred()) SWIG_fail; | |
7380 | } | |
2f4c0a16 | 7381 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7382 | return resultobj; |
7383 | fail: | |
7384 | return NULL; | |
7385 | } | |
7386 | ||
7387 | ||
7388 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7389 | PyObject *resultobj; | |
7390 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7391 | long result; | |
7392 | PyObject * obj0 = 0 ; | |
7393 | char *kwnames[] = { | |
7394 | (char *) "self", NULL | |
7395 | }; | |
7396 | ||
7397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7400 | { |
7401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7402 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7403 | ||
7404 | wxPyEndAllowThreads(__tstate); | |
7405 | if (PyErr_Occurred()) SWIG_fail; | |
7406 | } | |
2f4c0a16 | 7407 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7408 | return resultobj; |
7409 | fail: | |
7410 | return NULL; | |
7411 | } | |
7412 | ||
7413 | ||
7414 | static PyObject *_wrap_TextAttr_IsDefault(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_IsDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7426 | { |
7427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7428 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7429 | ||
7430 | wxPyEndAllowThreads(__tstate); | |
7431 | if (PyErr_Occurred()) SWIG_fail; | |
7432 | } | |
4f89f6a3 RD |
7433 | { |
7434 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7435 | } | |
d14a1e28 RD |
7436 | return resultobj; |
7437 | fail: | |
7438 | return NULL; | |
7439 | } | |
7440 | ||
7441 | ||
7442 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7443 | PyObject *resultobj; | |
7444 | wxTextAttr *arg1 = 0 ; | |
7445 | wxTextAttr *arg2 = 0 ; | |
7446 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7447 | wxTextAttr result; | |
7448 | PyObject * obj0 = 0 ; | |
7449 | PyObject * obj1 = 0 ; | |
7450 | PyObject * obj2 = 0 ; | |
7451 | char *kwnames[] = { | |
7452 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7453 | }; | |
7454 | ||
7455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7458 | SWIG_fail; | |
d14a1e28 | 7459 | if (arg1 == NULL) { |
2f4c0a16 RD |
7460 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7461 | SWIG_fail; | |
d14a1e28 | 7462 | } |
2f4c0a16 RD |
7463 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7464 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7465 | SWIG_fail; | |
d14a1e28 | 7466 | if (arg2 == NULL) { |
2f4c0a16 RD |
7467 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7468 | SWIG_fail; | |
d14a1e28 | 7469 | } |
2f4c0a16 RD |
7470 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7472 | { |
7473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7474 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7475 | ||
7476 | wxPyEndAllowThreads(__tstate); | |
7477 | if (PyErr_Occurred()) SWIG_fail; | |
7478 | } | |
7479 | { | |
7480 | wxTextAttr * resultptr; | |
7481 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
2f4c0a16 | 7482 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7483 | } |
7484 | return resultobj; | |
7485 | fail: | |
7486 | return NULL; | |
7487 | } | |
7488 | ||
7489 | ||
7490 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7491 | PyObject *obj; | |
7492 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7493 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7494 | Py_INCREF(obj); | |
7495 | return Py_BuildValue((char *)""); | |
7496 | } | |
7497 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7498 | PyObject *resultobj; | |
7499 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7500 | int arg2 ; |
d14a1e28 RD |
7501 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7502 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7503 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7504 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7505 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7506 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7507 | long arg6 = (long) 0 ; | |
7508 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7509 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7510 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7511 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7512 | wxTextCtrl *result; | |
423f194a | 7513 | bool temp3 = False ; |
d14a1e28 RD |
7514 | wxPoint temp4 ; |
7515 | wxSize temp5 ; | |
423f194a | 7516 | bool temp8 = False ; |
d14a1e28 | 7517 | PyObject * obj0 = 0 ; |
8edf1c75 | 7518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7519 | PyObject * obj2 = 0 ; |
7520 | PyObject * obj3 = 0 ; | |
7521 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7522 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7523 | PyObject * obj6 = 0 ; |
7524 | PyObject * obj7 = 0 ; | |
7525 | char *kwnames[] = { | |
7526 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7527 | }; | |
7528 | ||
8edf1c75 | 7529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
7530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7532 | arg2 = (int) SWIG_AsInt(obj1); | |
7533 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7534 | if (obj2) { |
7535 | { | |
7536 | arg3 = wxString_in_helper(obj2); | |
7537 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7538 | temp3 = True; |
d14a1e28 RD |
7539 | } |
7540 | } | |
7541 | if (obj3) { | |
7542 | { | |
7543 | arg4 = &temp4; | |
7544 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7545 | } | |
7546 | } | |
7547 | if (obj4) { | |
7548 | { | |
7549 | arg5 = &temp5; | |
7550 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7551 | } | |
7552 | } | |
8edf1c75 | 7553 | if (obj5) { |
2f4c0a16 RD |
7554 | arg6 = (long) SWIG_AsLong(obj5); |
7555 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7556 | } |
d14a1e28 | 7557 | if (obj6) { |
2f4c0a16 RD |
7558 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7560 | SWIG_fail; | |
d14a1e28 | 7561 | if (arg7 == NULL) { |
2f4c0a16 RD |
7562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7563 | SWIG_fail; | |
d14a1e28 RD |
7564 | } |
7565 | } | |
7566 | if (obj7) { | |
7567 | { | |
7568 | arg8 = wxString_in_helper(obj7); | |
7569 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7570 | temp8 = True; |
d14a1e28 RD |
7571 | } |
7572 | } | |
7573 | { | |
7574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7575 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7576 | ||
7577 | wxPyEndAllowThreads(__tstate); | |
7578 | if (PyErr_Occurred()) SWIG_fail; | |
7579 | } | |
7580 | { | |
7581 | resultobj = wxPyMake_wxObject(result); | |
7582 | } | |
7583 | { | |
7584 | if (temp3) | |
7585 | delete arg3; | |
7586 | } | |
7587 | { | |
7588 | if (temp8) | |
7589 | delete arg8; | |
7590 | } | |
7591 | return resultobj; | |
7592 | fail: | |
7593 | { | |
7594 | if (temp3) | |
7595 | delete arg3; | |
7596 | } | |
7597 | { | |
7598 | if (temp8) | |
7599 | delete arg8; | |
7600 | } | |
7601 | return NULL; | |
7602 | } | |
7603 | ||
7604 | ||
7605 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7606 | PyObject *resultobj; | |
7607 | wxTextCtrl *result; | |
7608 | char *kwnames[] = { | |
7609 | NULL | |
7610 | }; | |
7611 | ||
7612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7613 | { | |
7614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7615 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7616 | ||
7617 | wxPyEndAllowThreads(__tstate); | |
7618 | if (PyErr_Occurred()) SWIG_fail; | |
7619 | } | |
7620 | { | |
7621 | resultobj = wxPyMake_wxObject(result); | |
7622 | } | |
7623 | return resultobj; | |
7624 | fail: | |
7625 | return NULL; | |
7626 | } | |
7627 | ||
7628 | ||
7629 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7630 | PyObject *resultobj; | |
7631 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7632 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7633 | int arg3 ; |
d14a1e28 RD |
7634 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7635 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7636 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7637 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7638 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7639 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7640 | long arg7 = (long) 0 ; | |
7641 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7642 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7643 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7644 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7645 | bool result; | |
423f194a | 7646 | bool temp4 = False ; |
d14a1e28 RD |
7647 | wxPoint temp5 ; |
7648 | wxSize temp6 ; | |
423f194a | 7649 | bool temp9 = False ; |
d14a1e28 RD |
7650 | PyObject * obj0 = 0 ; |
7651 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7652 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7653 | PyObject * obj3 = 0 ; |
7654 | PyObject * obj4 = 0 ; | |
7655 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7656 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7657 | PyObject * obj7 = 0 ; |
7658 | PyObject * obj8 = 0 ; | |
7659 | char *kwnames[] = { | |
7660 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7661 | }; | |
7662 | ||
8edf1c75 | 7663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
7664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7666 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7668 | arg3 = (int) SWIG_AsInt(obj2); | |
7669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7670 | if (obj3) { |
7671 | { | |
7672 | arg4 = wxString_in_helper(obj3); | |
7673 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7674 | temp4 = True; |
d14a1e28 RD |
7675 | } |
7676 | } | |
7677 | if (obj4) { | |
7678 | { | |
7679 | arg5 = &temp5; | |
7680 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7681 | } | |
7682 | } | |
7683 | if (obj5) { | |
7684 | { | |
7685 | arg6 = &temp6; | |
7686 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7687 | } | |
7688 | } | |
8edf1c75 | 7689 | if (obj6) { |
2f4c0a16 RD |
7690 | arg7 = (long) SWIG_AsLong(obj6); |
7691 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7692 | } |
d14a1e28 | 7693 | if (obj7) { |
2f4c0a16 RD |
7694 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
7695 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7696 | SWIG_fail; | |
d14a1e28 | 7697 | if (arg8 == NULL) { |
2f4c0a16 RD |
7698 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7699 | SWIG_fail; | |
d14a1e28 RD |
7700 | } |
7701 | } | |
7702 | if (obj8) { | |
7703 | { | |
7704 | arg9 = wxString_in_helper(obj8); | |
7705 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7706 | temp9 = True; |
d14a1e28 RD |
7707 | } |
7708 | } | |
7709 | { | |
7710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7711 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7712 | ||
7713 | wxPyEndAllowThreads(__tstate); | |
7714 | if (PyErr_Occurred()) SWIG_fail; | |
7715 | } | |
4f89f6a3 RD |
7716 | { |
7717 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7718 | } | |
d14a1e28 RD |
7719 | { |
7720 | if (temp4) | |
7721 | delete arg4; | |
7722 | } | |
7723 | { | |
7724 | if (temp9) | |
7725 | delete arg9; | |
7726 | } | |
7727 | return resultobj; | |
7728 | fail: | |
7729 | { | |
7730 | if (temp4) | |
7731 | delete arg4; | |
7732 | } | |
7733 | { | |
7734 | if (temp9) | |
7735 | delete arg9; | |
7736 | } | |
7737 | return NULL; | |
7738 | } | |
7739 | ||
7740 | ||
7741 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7742 | PyObject *resultobj; | |
7743 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7744 | wxString result; | |
7745 | PyObject * obj0 = 0 ; | |
7746 | char *kwnames[] = { | |
7747 | (char *) "self", NULL | |
7748 | }; | |
7749 | ||
7750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7753 | { |
7754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7755 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7756 | ||
7757 | wxPyEndAllowThreads(__tstate); | |
7758 | if (PyErr_Occurred()) SWIG_fail; | |
7759 | } | |
7760 | { | |
7761 | #if wxUSE_UNICODE | |
7762 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7763 | #else | |
7764 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7765 | #endif | |
7766 | } | |
7767 | return resultobj; | |
7768 | fail: | |
7769 | return NULL; | |
7770 | } | |
7771 | ||
7772 | ||
7773 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7774 | PyObject *resultobj; | |
7775 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7776 | wxString *arg2 = 0 ; | |
423f194a | 7777 | bool temp2 = False ; |
d14a1e28 RD |
7778 | PyObject * obj0 = 0 ; |
7779 | PyObject * obj1 = 0 ; | |
7780 | char *kwnames[] = { | |
7781 | (char *) "self",(char *) "value", NULL | |
7782 | }; | |
7783 | ||
7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7787 | { |
7788 | arg2 = wxString_in_helper(obj1); | |
7789 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7790 | temp2 = True; |
d14a1e28 RD |
7791 | } |
7792 | { | |
7793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7794 | (arg1)->SetValue((wxString const &)*arg2); | |
7795 | ||
7796 | wxPyEndAllowThreads(__tstate); | |
7797 | if (PyErr_Occurred()) SWIG_fail; | |
7798 | } | |
7799 | Py_INCREF(Py_None); resultobj = Py_None; | |
7800 | { | |
7801 | if (temp2) | |
7802 | delete arg2; | |
7803 | } | |
7804 | return resultobj; | |
7805 | fail: | |
7806 | { | |
7807 | if (temp2) | |
7808 | delete arg2; | |
7809 | } | |
7810 | return NULL; | |
7811 | } | |
7812 | ||
7813 | ||
7814 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7815 | PyObject *resultobj; | |
7816 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7817 | long arg2 ; | |
7818 | long arg3 ; | |
7819 | wxString result; | |
7820 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7821 | PyObject * obj1 = 0 ; |
7822 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7823 | char *kwnames[] = { |
7824 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7825 | }; | |
7826 | ||
8edf1c75 | 7827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7830 | arg2 = (long) SWIG_AsLong(obj1); | |
7831 | if (PyErr_Occurred()) SWIG_fail; | |
7832 | arg3 = (long) SWIG_AsLong(obj2); | |
7833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7834 | { |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
7841 | { | |
7842 | #if wxUSE_UNICODE | |
7843 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7844 | #else | |
7845 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7846 | #endif | |
7847 | } | |
7848 | return resultobj; | |
7849 | fail: | |
7850 | return NULL; | |
7851 | } | |
7852 | ||
7853 | ||
7854 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7855 | PyObject *resultobj; | |
7856 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7857 | long arg2 ; | |
7858 | int result; | |
7859 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7860 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7861 | char *kwnames[] = { |
7862 | (char *) "self",(char *) "lineNo", NULL | |
7863 | }; | |
7864 | ||
8edf1c75 | 7865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7868 | arg2 = (long) SWIG_AsLong(obj1); | |
7869 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7870 | { |
7871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7872 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7873 | ||
7874 | wxPyEndAllowThreads(__tstate); | |
7875 | if (PyErr_Occurred()) SWIG_fail; | |
7876 | } | |
2f4c0a16 | 7877 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7878 | return resultobj; |
7879 | fail: | |
7880 | return NULL; | |
7881 | } | |
7882 | ||
7883 | ||
7884 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7885 | PyObject *resultobj; | |
7886 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7887 | long arg2 ; | |
7888 | wxString result; | |
7889 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7891 | char *kwnames[] = { |
7892 | (char *) "self",(char *) "lineNo", NULL | |
7893 | }; | |
7894 | ||
8edf1c75 | 7895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7898 | arg2 = (long) SWIG_AsLong(obj1); | |
7899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7900 | { |
7901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7902 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7903 | ||
7904 | wxPyEndAllowThreads(__tstate); | |
7905 | if (PyErr_Occurred()) SWIG_fail; | |
7906 | } | |
7907 | { | |
7908 | #if wxUSE_UNICODE | |
7909 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7910 | #else | |
7911 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7912 | #endif | |
7913 | } | |
7914 | return resultobj; | |
7915 | fail: | |
7916 | return NULL; | |
7917 | } | |
7918 | ||
7919 | ||
7920 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7921 | PyObject *resultobj; | |
7922 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7923 | int result; | |
7924 | PyObject * obj0 = 0 ; | |
7925 | char *kwnames[] = { | |
7926 | (char *) "self", NULL | |
7927 | }; | |
7928 | ||
7929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7932 | { |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
2f4c0a16 | 7939 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7940 | return resultobj; |
7941 | fail: | |
7942 | return NULL; | |
7943 | } | |
7944 | ||
7945 | ||
7946 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7947 | PyObject *resultobj; | |
7948 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7949 | bool result; | |
7950 | PyObject * obj0 = 0 ; | |
7951 | char *kwnames[] = { | |
7952 | (char *) "self", NULL | |
7953 | }; | |
7954 | ||
7955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7958 | { |
7959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7960 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7961 | ||
7962 | wxPyEndAllowThreads(__tstate); | |
7963 | if (PyErr_Occurred()) SWIG_fail; | |
7964 | } | |
4f89f6a3 RD |
7965 | { |
7966 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7967 | } | |
d14a1e28 RD |
7968 | return resultobj; |
7969 | fail: | |
7970 | return NULL; | |
7971 | } | |
7972 | ||
7973 | ||
7974 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7975 | PyObject *resultobj; | |
7976 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7977 | bool result; | |
7978 | PyObject * obj0 = 0 ; | |
7979 | char *kwnames[] = { | |
7980 | (char *) "self", NULL | |
7981 | }; | |
7982 | ||
7983 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7984 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7985 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7986 | { |
7987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7988 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7989 | ||
7990 | wxPyEndAllowThreads(__tstate); | |
7991 | if (PyErr_Occurred()) SWIG_fail; | |
7992 | } | |
4f89f6a3 RD |
7993 | { |
7994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7995 | } | |
d14a1e28 RD |
7996 | return resultobj; |
7997 | fail: | |
7998 | return NULL; | |
7999 | } | |
8000 | ||
8001 | ||
8002 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8003 | PyObject *resultobj; | |
8004 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8005 | bool result; | |
8006 | PyObject * obj0 = 0 ; | |
8007 | char *kwnames[] = { | |
8008 | (char *) "self", NULL | |
8009 | }; | |
8010 | ||
8011 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8012 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8013 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8014 | { |
8015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8016 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8017 | ||
8018 | wxPyEndAllowThreads(__tstate); | |
8019 | if (PyErr_Occurred()) SWIG_fail; | |
8020 | } | |
4f89f6a3 RD |
8021 | { |
8022 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8023 | } | |
d14a1e28 RD |
8024 | return resultobj; |
8025 | fail: | |
8026 | return NULL; | |
8027 | } | |
8028 | ||
8029 | ||
8030 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8031 | PyObject *resultobj; | |
8032 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8033 | bool result; | |
8034 | PyObject * obj0 = 0 ; | |
8035 | char *kwnames[] = { | |
8036 | (char *) "self", NULL | |
8037 | }; | |
8038 | ||
8039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8042 | { |
8043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8044 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8045 | ||
8046 | wxPyEndAllowThreads(__tstate); | |
8047 | if (PyErr_Occurred()) SWIG_fail; | |
8048 | } | |
4f89f6a3 RD |
8049 | { |
8050 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8051 | } | |
d14a1e28 RD |
8052 | return resultobj; |
8053 | fail: | |
8054 | return NULL; | |
8055 | } | |
8056 | ||
8057 | ||
8058 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8059 | PyObject *resultobj; | |
8060 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8061 | long *arg2 = (long *) 0 ; | |
8062 | long *arg3 = (long *) 0 ; | |
8063 | long temp2 ; | |
8064 | long temp3 ; | |
8065 | PyObject * obj0 = 0 ; | |
8066 | char *kwnames[] = { | |
8067 | (char *) "self", NULL | |
8068 | }; | |
8069 | ||
8070 | arg2 = &temp2; | |
8071 | arg3 = &temp3; | |
8072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8075 | { |
8076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8077 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8078 | ||
8079 | wxPyEndAllowThreads(__tstate); | |
8080 | if (PyErr_Occurred()) SWIG_fail; | |
8081 | } | |
8082 | Py_INCREF(Py_None); resultobj = Py_None; | |
8083 | { | |
8084 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8085 | resultobj = t_output_helper(resultobj,o); | |
8086 | } | |
8087 | { | |
8088 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8089 | resultobj = t_output_helper(resultobj,o); | |
8090 | } | |
8091 | return resultobj; | |
8092 | fail: | |
8093 | return NULL; | |
8094 | } | |
8095 | ||
8096 | ||
8097 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8098 | PyObject *resultobj; | |
8099 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8100 | wxString result; | |
8101 | PyObject * obj0 = 0 ; | |
8102 | char *kwnames[] = { | |
8103 | (char *) "self", NULL | |
8104 | }; | |
8105 | ||
8106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8109 | { |
8110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8111 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8112 | ||
8113 | wxPyEndAllowThreads(__tstate); | |
8114 | if (PyErr_Occurred()) SWIG_fail; | |
8115 | } | |
8116 | { | |
8117 | #if wxUSE_UNICODE | |
8118 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8119 | #else | |
8120 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8121 | #endif | |
8122 | } | |
8123 | return resultobj; | |
8124 | fail: | |
8125 | return NULL; | |
8126 | } | |
8127 | ||
8128 | ||
8129 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8130 | PyObject *resultobj; | |
8131 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8132 | PyObject * obj0 = 0 ; | |
8133 | char *kwnames[] = { | |
8134 | (char *) "self", NULL | |
8135 | }; | |
8136 | ||
8137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8140 | { |
8141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8142 | (arg1)->Clear(); | |
8143 | ||
8144 | wxPyEndAllowThreads(__tstate); | |
8145 | if (PyErr_Occurred()) SWIG_fail; | |
8146 | } | |
8147 | Py_INCREF(Py_None); resultobj = Py_None; | |
8148 | return resultobj; | |
8149 | fail: | |
8150 | return NULL; | |
8151 | } | |
8152 | ||
8153 | ||
8154 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8155 | PyObject *resultobj; | |
8156 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8157 | long arg2 ; | |
8158 | long arg3 ; | |
8159 | wxString *arg4 = 0 ; | |
423f194a | 8160 | bool temp4 = False ; |
d14a1e28 | 8161 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8162 | PyObject * obj1 = 0 ; |
8163 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8164 | PyObject * obj3 = 0 ; |
8165 | char *kwnames[] = { | |
8166 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8167 | }; | |
8168 | ||
8edf1c75 | 8169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8172 | arg2 = (long) SWIG_AsLong(obj1); | |
8173 | if (PyErr_Occurred()) SWIG_fail; | |
8174 | arg3 = (long) SWIG_AsLong(obj2); | |
8175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8176 | { |
8177 | arg4 = wxString_in_helper(obj3); | |
8178 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8179 | temp4 = True; |
d14a1e28 RD |
8180 | } |
8181 | { | |
8182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8183 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8184 | ||
8185 | wxPyEndAllowThreads(__tstate); | |
8186 | if (PyErr_Occurred()) SWIG_fail; | |
8187 | } | |
8188 | Py_INCREF(Py_None); resultobj = Py_None; | |
8189 | { | |
8190 | if (temp4) | |
8191 | delete arg4; | |
8192 | } | |
8193 | return resultobj; | |
8194 | fail: | |
8195 | { | |
8196 | if (temp4) | |
8197 | delete arg4; | |
8198 | } | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8206 | long arg2 ; | |
8207 | long arg3 ; | |
8208 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8209 | PyObject * obj1 = 0 ; |
8210 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8211 | char *kwnames[] = { |
8212 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8213 | }; | |
8214 | ||
8edf1c75 | 8215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8218 | arg2 = (long) SWIG_AsLong(obj1); | |
8219 | if (PyErr_Occurred()) SWIG_fail; | |
8220 | arg3 = (long) SWIG_AsLong(obj2); | |
8221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8222 | { |
8223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8224 | (arg1)->Remove(arg2,arg3); | |
8225 | ||
8226 | wxPyEndAllowThreads(__tstate); | |
8227 | if (PyErr_Occurred()) SWIG_fail; | |
8228 | } | |
8229 | Py_INCREF(Py_None); resultobj = Py_None; | |
8230 | return resultobj; | |
8231 | fail: | |
8232 | return NULL; | |
8233 | } | |
8234 | ||
8235 | ||
8236 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8237 | PyObject *resultobj; | |
8238 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8239 | wxString *arg2 = 0 ; | |
8240 | bool result; | |
423f194a | 8241 | bool temp2 = False ; |
d14a1e28 RD |
8242 | PyObject * obj0 = 0 ; |
8243 | PyObject * obj1 = 0 ; | |
8244 | char *kwnames[] = { | |
8245 | (char *) "self",(char *) "file", NULL | |
8246 | }; | |
8247 | ||
8248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8251 | { |
8252 | arg2 = wxString_in_helper(obj1); | |
8253 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8254 | temp2 = True; |
d14a1e28 RD |
8255 | } |
8256 | { | |
8257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8258 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8259 | ||
8260 | wxPyEndAllowThreads(__tstate); | |
8261 | if (PyErr_Occurred()) SWIG_fail; | |
8262 | } | |
4f89f6a3 RD |
8263 | { |
8264 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8265 | } | |
d14a1e28 RD |
8266 | { |
8267 | if (temp2) | |
8268 | delete arg2; | |
8269 | } | |
8270 | return resultobj; | |
8271 | fail: | |
8272 | { | |
8273 | if (temp2) | |
8274 | delete arg2; | |
8275 | } | |
8276 | return NULL; | |
8277 | } | |
8278 | ||
8279 | ||
8280 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8281 | PyObject *resultobj; | |
8282 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8283 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8284 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8285 | bool result; | |
423f194a | 8286 | bool temp2 = False ; |
d14a1e28 RD |
8287 | PyObject * obj0 = 0 ; |
8288 | PyObject * obj1 = 0 ; | |
8289 | char *kwnames[] = { | |
8290 | (char *) "self",(char *) "file", NULL | |
8291 | }; | |
8292 | ||
8293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8296 | if (obj1) { |
8297 | { | |
8298 | arg2 = wxString_in_helper(obj1); | |
8299 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8300 | temp2 = True; |
d14a1e28 RD |
8301 | } |
8302 | } | |
8303 | { | |
8304 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8305 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8306 | ||
8307 | wxPyEndAllowThreads(__tstate); | |
8308 | if (PyErr_Occurred()) SWIG_fail; | |
8309 | } | |
4f89f6a3 RD |
8310 | { |
8311 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8312 | } | |
d14a1e28 RD |
8313 | { |
8314 | if (temp2) | |
8315 | delete arg2; | |
8316 | } | |
8317 | return resultobj; | |
8318 | fail: | |
8319 | { | |
8320 | if (temp2) | |
8321 | delete arg2; | |
8322 | } | |
8323 | return NULL; | |
8324 | } | |
8325 | ||
8326 | ||
8327 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8328 | PyObject *resultobj; | |
8329 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8330 | PyObject * obj0 = 0 ; | |
8331 | char *kwnames[] = { | |
8332 | (char *) "self", NULL | |
8333 | }; | |
8334 | ||
8335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8338 | { |
8339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8340 | (arg1)->MarkDirty(); | |
8341 | ||
8342 | wxPyEndAllowThreads(__tstate); | |
8343 | if (PyErr_Occurred()) SWIG_fail; | |
8344 | } | |
8345 | Py_INCREF(Py_None); resultobj = Py_None; | |
8346 | return resultobj; | |
8347 | fail: | |
8348 | return NULL; | |
8349 | } | |
8350 | ||
8351 | ||
8352 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8353 | PyObject *resultobj; | |
8354 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8355 | PyObject * obj0 = 0 ; | |
8356 | char *kwnames[] = { | |
8357 | (char *) "self", NULL | |
8358 | }; | |
8359 | ||
8360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8363 | { |
8364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8365 | (arg1)->DiscardEdits(); | |
8366 | ||
8367 | wxPyEndAllowThreads(__tstate); | |
8368 | if (PyErr_Occurred()) SWIG_fail; | |
8369 | } | |
8370 | Py_INCREF(Py_None); resultobj = Py_None; | |
8371 | return resultobj; | |
8372 | fail: | |
8373 | return NULL; | |
8374 | } | |
8375 | ||
8376 | ||
8377 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8378 | PyObject *resultobj; | |
8379 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8380 | unsigned long arg2 ; | |
8381 | PyObject * obj0 = 0 ; | |
8382 | PyObject * obj1 = 0 ; | |
8383 | char *kwnames[] = { | |
8384 | (char *) "self",(char *) "len", NULL | |
8385 | }; | |
8386 | ||
8387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8390 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8391 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8392 | { |
8393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8394 | (arg1)->SetMaxLength(arg2); | |
8395 | ||
8396 | wxPyEndAllowThreads(__tstate); | |
8397 | if (PyErr_Occurred()) SWIG_fail; | |
8398 | } | |
8399 | Py_INCREF(Py_None); resultobj = Py_None; | |
8400 | return resultobj; | |
8401 | fail: | |
8402 | return NULL; | |
8403 | } | |
8404 | ||
8405 | ||
8406 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8407 | PyObject *resultobj; | |
8408 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8409 | wxString *arg2 = 0 ; | |
423f194a | 8410 | bool temp2 = False ; |
d14a1e28 RD |
8411 | PyObject * obj0 = 0 ; |
8412 | PyObject * obj1 = 0 ; | |
8413 | char *kwnames[] = { | |
8414 | (char *) "self",(char *) "text", NULL | |
8415 | }; | |
8416 | ||
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8420 | { |
8421 | arg2 = wxString_in_helper(obj1); | |
8422 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8423 | temp2 = True; |
d14a1e28 RD |
8424 | } |
8425 | { | |
8426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8427 | (arg1)->WriteText((wxString const &)*arg2); | |
8428 | ||
8429 | wxPyEndAllowThreads(__tstate); | |
8430 | if (PyErr_Occurred()) SWIG_fail; | |
8431 | } | |
8432 | Py_INCREF(Py_None); resultobj = Py_None; | |
8433 | { | |
8434 | if (temp2) | |
8435 | delete arg2; | |
8436 | } | |
8437 | return resultobj; | |
8438 | fail: | |
8439 | { | |
8440 | if (temp2) | |
8441 | delete arg2; | |
8442 | } | |
8443 | return NULL; | |
8444 | } | |
8445 | ||
8446 | ||
8447 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8448 | PyObject *resultobj; | |
8449 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8450 | wxString *arg2 = 0 ; | |
423f194a | 8451 | bool temp2 = False ; |
d14a1e28 RD |
8452 | PyObject * obj0 = 0 ; |
8453 | PyObject * obj1 = 0 ; | |
8454 | char *kwnames[] = { | |
8455 | (char *) "self",(char *) "text", NULL | |
8456 | }; | |
8457 | ||
8458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8461 | { |
8462 | arg2 = wxString_in_helper(obj1); | |
8463 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8464 | temp2 = True; |
d14a1e28 RD |
8465 | } |
8466 | { | |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8468 | (arg1)->AppendText((wxString const &)*arg2); | |
8469 | ||
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
8473 | Py_INCREF(Py_None); resultobj = Py_None; | |
8474 | { | |
8475 | if (temp2) | |
8476 | delete arg2; | |
8477 | } | |
8478 | return resultobj; | |
8479 | fail: | |
8480 | { | |
8481 | if (temp2) | |
8482 | delete arg2; | |
8483 | } | |
8484 | return NULL; | |
8485 | } | |
8486 | ||
8487 | ||
8488 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8489 | PyObject *resultobj; | |
8490 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8491 | wxKeyEvent *arg2 = 0 ; | |
8492 | bool result; | |
8493 | PyObject * obj0 = 0 ; | |
8494 | PyObject * obj1 = 0 ; | |
8495 | char *kwnames[] = { | |
8496 | (char *) "self",(char *) "event", NULL | |
8497 | }; | |
8498 | ||
8499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8502 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8503 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8504 | SWIG_fail; | |
d14a1e28 | 8505 | if (arg2 == NULL) { |
2f4c0a16 RD |
8506 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8507 | SWIG_fail; | |
d14a1e28 RD |
8508 | } |
8509 | { | |
8510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8511 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8512 | ||
8513 | wxPyEndAllowThreads(__tstate); | |
8514 | if (PyErr_Occurred()) SWIG_fail; | |
8515 | } | |
4f89f6a3 RD |
8516 | { |
8517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8518 | } | |
d14a1e28 RD |
8519 | return resultobj; |
8520 | fail: | |
8521 | return NULL; | |
8522 | } | |
8523 | ||
8524 | ||
8525 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8526 | PyObject *resultobj; | |
8527 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8528 | long arg2 ; | |
8529 | long arg3 ; | |
8530 | wxTextAttr *arg4 = 0 ; | |
8531 | bool result; | |
8532 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8533 | PyObject * obj1 = 0 ; |
8534 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8535 | PyObject * obj3 = 0 ; |
8536 | char *kwnames[] = { | |
8537 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8538 | }; | |
8539 | ||
8edf1c75 | 8540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8543 | arg2 = (long) SWIG_AsLong(obj1); | |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
8545 | arg3 = (long) SWIG_AsLong(obj2); | |
8546 | if (PyErr_Occurred()) SWIG_fail; | |
8547 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8548 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8549 | SWIG_fail; | |
d14a1e28 | 8550 | if (arg4 == NULL) { |
2f4c0a16 RD |
8551 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8552 | SWIG_fail; | |
d14a1e28 RD |
8553 | } |
8554 | { | |
8555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8556 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8557 | ||
8558 | wxPyEndAllowThreads(__tstate); | |
8559 | if (PyErr_Occurred()) SWIG_fail; | |
8560 | } | |
4f89f6a3 RD |
8561 | { |
8562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8563 | } | |
d14a1e28 RD |
8564 | return resultobj; |
8565 | fail: | |
8566 | return NULL; | |
8567 | } | |
8568 | ||
8569 | ||
8570 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8571 | PyObject *resultobj; | |
8572 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8573 | long arg2 ; | |
8574 | wxTextAttr *arg3 = 0 ; | |
8575 | bool result; | |
8576 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8578 | PyObject * obj2 = 0 ; |
8579 | char *kwnames[] = { | |
8580 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8581 | }; | |
8582 | ||
8edf1c75 | 8583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8586 | arg2 = (long) SWIG_AsLong(obj1); | |
8587 | if (PyErr_Occurred()) SWIG_fail; | |
8588 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8590 | SWIG_fail; | |
d14a1e28 | 8591 | if (arg3 == NULL) { |
2f4c0a16 RD |
8592 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8593 | SWIG_fail; | |
d14a1e28 RD |
8594 | } |
8595 | { | |
8596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8597 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8598 | ||
8599 | wxPyEndAllowThreads(__tstate); | |
8600 | if (PyErr_Occurred()) SWIG_fail; | |
8601 | } | |
4f89f6a3 RD |
8602 | { |
8603 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8604 | } | |
d14a1e28 RD |
8605 | return resultobj; |
8606 | fail: | |
8607 | return NULL; | |
8608 | } | |
8609 | ||
8610 | ||
8611 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8612 | PyObject *resultobj; | |
8613 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8614 | wxTextAttr *arg2 = 0 ; | |
8615 | bool result; | |
8616 | PyObject * obj0 = 0 ; | |
8617 | PyObject * obj1 = 0 ; | |
8618 | char *kwnames[] = { | |
8619 | (char *) "self",(char *) "style", NULL | |
8620 | }; | |
8621 | ||
8622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8626 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8627 | SWIG_fail; | |
d14a1e28 | 8628 | if (arg2 == NULL) { |
2f4c0a16 RD |
8629 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8630 | SWIG_fail; | |
d14a1e28 RD |
8631 | } |
8632 | { | |
8633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8634 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8635 | ||
8636 | wxPyEndAllowThreads(__tstate); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
8638 | } | |
4f89f6a3 RD |
8639 | { |
8640 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8641 | } | |
d14a1e28 RD |
8642 | return resultobj; |
8643 | fail: | |
8644 | return NULL; | |
8645 | } | |
8646 | ||
8647 | ||
8648 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8649 | PyObject *resultobj; | |
8650 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8651 | wxTextAttr *result; | |
8652 | PyObject * obj0 = 0 ; | |
8653 | char *kwnames[] = { | |
8654 | (char *) "self", NULL | |
8655 | }; | |
8656 | ||
8657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8660 | { |
8661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8662 | { | |
8663 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8664 | result = (wxTextAttr *) &_result_ref; | |
8665 | } | |
8666 | ||
8667 | wxPyEndAllowThreads(__tstate); | |
8668 | if (PyErr_Occurred()) SWIG_fail; | |
8669 | } | |
2f4c0a16 | 8670 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
8671 | return resultobj; |
8672 | fail: | |
8673 | return NULL; | |
8674 | } | |
8675 | ||
8676 | ||
8677 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8678 | PyObject *resultobj; | |
8679 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8680 | long arg2 ; | |
8681 | long arg3 ; | |
8682 | long result; | |
8683 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8684 | PyObject * obj1 = 0 ; |
8685 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8686 | char *kwnames[] = { |
8687 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8688 | }; | |
8689 | ||
8edf1c75 | 8690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8693 | arg2 = (long) SWIG_AsLong(obj1); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | arg3 = (long) SWIG_AsLong(obj2); | |
8696 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8697 | { |
8698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8699 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8700 | ||
8701 | wxPyEndAllowThreads(__tstate); | |
8702 | if (PyErr_Occurred()) SWIG_fail; | |
8703 | } | |
2f4c0a16 | 8704 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8705 | return resultobj; |
8706 | fail: | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
8711 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject *resultobj; | |
8713 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8714 | long arg2 ; | |
8715 | long *arg3 = (long *) 0 ; | |
8716 | long *arg4 = (long *) 0 ; | |
8717 | long temp3 ; | |
8718 | long temp4 ; | |
8719 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8721 | char *kwnames[] = { |
8722 | (char *) "self",(char *) "pos", NULL | |
8723 | }; | |
8724 | ||
8725 | arg3 = &temp3; | |
8726 | arg4 = &temp4; | |
8edf1c75 | 8727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8730 | arg2 = (long) SWIG_AsLong(obj1); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8732 | { |
8733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8734 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8735 | ||
8736 | wxPyEndAllowThreads(__tstate); | |
8737 | if (PyErr_Occurred()) SWIG_fail; | |
8738 | } | |
8739 | Py_INCREF(Py_None); resultobj = Py_None; | |
8740 | { | |
8741 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8742 | resultobj = t_output_helper(resultobj,o); | |
8743 | } | |
8744 | { | |
8745 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8746 | resultobj = t_output_helper(resultobj,o); | |
8747 | } | |
8748 | return resultobj; | |
8749 | fail: | |
8750 | return NULL; | |
8751 | } | |
8752 | ||
8753 | ||
8754 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8755 | PyObject *resultobj; | |
8756 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8757 | long arg2 ; | |
8758 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8759 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8760 | char *kwnames[] = { |
8761 | (char *) "self",(char *) "pos", NULL | |
8762 | }; | |
8763 | ||
8edf1c75 | 8764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8767 | arg2 = (long) SWIG_AsLong(obj1); | |
8768 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8769 | { |
8770 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8771 | (arg1)->ShowPosition(arg2); | |
8772 | ||
8773 | wxPyEndAllowThreads(__tstate); | |
8774 | if (PyErr_Occurred()) SWIG_fail; | |
8775 | } | |
8776 | Py_INCREF(Py_None); resultobj = Py_None; | |
8777 | return resultobj; | |
8778 | fail: | |
8779 | return NULL; | |
8780 | } | |
8781 | ||
8782 | ||
4e760a36 RD |
8783 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8784 | PyObject *resultobj; | |
8785 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8786 | wxPoint *arg2 = 0 ; | |
8787 | long *arg3 = (long *) 0 ; | |
8788 | long *arg4 = (long *) 0 ; | |
8789 | int result; | |
8790 | wxPoint temp2 ; | |
8791 | long temp3 ; | |
8792 | long temp4 ; | |
8793 | PyObject * obj0 = 0 ; | |
8794 | PyObject * obj1 = 0 ; | |
8795 | char *kwnames[] = { | |
8796 | (char *) "self",(char *) "pt", NULL | |
8797 | }; | |
8798 | ||
8799 | arg3 = &temp3; | |
8800 | arg4 = &temp4; | |
8801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
8804 | { |
8805 | arg2 = &temp2; | |
8806 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8807 | } | |
8808 | { | |
8809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8810 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8811 | ||
8812 | wxPyEndAllowThreads(__tstate); | |
8813 | if (PyErr_Occurred()) SWIG_fail; | |
8814 | } | |
2f4c0a16 | 8815 | resultobj = SWIG_FromInt((int)result); |
4e760a36 RD |
8816 | { |
8817 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8818 | resultobj = t_output_helper(resultobj,o); | |
8819 | } | |
8820 | { | |
8821 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8822 | resultobj = t_output_helper(resultobj,o); | |
8823 | } | |
8824 | return resultobj; | |
8825 | fail: | |
8826 | return NULL; | |
8827 | } | |
8828 | ||
8829 | ||
d14a1e28 RD |
8830 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8831 | PyObject *resultobj; | |
8832 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8833 | PyObject * obj0 = 0 ; | |
8834 | char *kwnames[] = { | |
8835 | (char *) "self", NULL | |
8836 | }; | |
8837 | ||
8838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8841 | { |
8842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8843 | (arg1)->Copy(); | |
8844 | ||
8845 | wxPyEndAllowThreads(__tstate); | |
8846 | if (PyErr_Occurred()) SWIG_fail; | |
8847 | } | |
8848 | Py_INCREF(Py_None); resultobj = Py_None; | |
8849 | return resultobj; | |
8850 | fail: | |
8851 | return NULL; | |
8852 | } | |
8853 | ||
8854 | ||
8855 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8856 | PyObject *resultobj; | |
8857 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8858 | PyObject * obj0 = 0 ; | |
8859 | char *kwnames[] = { | |
8860 | (char *) "self", NULL | |
8861 | }; | |
8862 | ||
8863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8866 | { |
8867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8868 | (arg1)->Cut(); | |
8869 | ||
8870 | wxPyEndAllowThreads(__tstate); | |
8871 | if (PyErr_Occurred()) SWIG_fail; | |
8872 | } | |
8873 | Py_INCREF(Py_None); resultobj = Py_None; | |
8874 | return resultobj; | |
8875 | fail: | |
8876 | return NULL; | |
8877 | } | |
8878 | ||
8879 | ||
8880 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8881 | PyObject *resultobj; | |
8882 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8883 | PyObject * obj0 = 0 ; | |
8884 | char *kwnames[] = { | |
8885 | (char *) "self", NULL | |
8886 | }; | |
8887 | ||
8888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8891 | { |
8892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8893 | (arg1)->Paste(); | |
8894 | ||
8895 | wxPyEndAllowThreads(__tstate); | |
8896 | if (PyErr_Occurred()) SWIG_fail; | |
8897 | } | |
8898 | Py_INCREF(Py_None); resultobj = Py_None; | |
8899 | return resultobj; | |
8900 | fail: | |
8901 | return NULL; | |
8902 | } | |
8903 | ||
8904 | ||
8905 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8906 | PyObject *resultobj; | |
8907 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8908 | bool result; | |
8909 | PyObject * obj0 = 0 ; | |
8910 | char *kwnames[] = { | |
8911 | (char *) "self", NULL | |
8912 | }; | |
8913 | ||
8914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8917 | { |
8918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8919 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8920 | ||
8921 | wxPyEndAllowThreads(__tstate); | |
8922 | if (PyErr_Occurred()) SWIG_fail; | |
8923 | } | |
4f89f6a3 RD |
8924 | { |
8925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8926 | } | |
d14a1e28 RD |
8927 | return resultobj; |
8928 | fail: | |
8929 | return NULL; | |
8930 | } | |
8931 | ||
8932 | ||
8933 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8934 | PyObject *resultobj; | |
8935 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8936 | bool result; | |
8937 | PyObject * obj0 = 0 ; | |
8938 | char *kwnames[] = { | |
8939 | (char *) "self", NULL | |
8940 | }; | |
8941 | ||
8942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8945 | { |
8946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8947 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8948 | ||
8949 | wxPyEndAllowThreads(__tstate); | |
8950 | if (PyErr_Occurred()) SWIG_fail; | |
8951 | } | |
4f89f6a3 RD |
8952 | { |
8953 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8954 | } | |
d14a1e28 RD |
8955 | return resultobj; |
8956 | fail: | |
8957 | return NULL; | |
8958 | } | |
8959 | ||
8960 | ||
8961 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject *resultobj; | |
8963 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8964 | bool result; | |
8965 | PyObject * obj0 = 0 ; | |
8966 | char *kwnames[] = { | |
8967 | (char *) "self", NULL | |
8968 | }; | |
8969 | ||
8970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8973 | { |
8974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8975 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8976 | ||
8977 | wxPyEndAllowThreads(__tstate); | |
8978 | if (PyErr_Occurred()) SWIG_fail; | |
8979 | } | |
4f89f6a3 RD |
8980 | { |
8981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8982 | } | |
d14a1e28 RD |
8983 | return resultobj; |
8984 | fail: | |
8985 | return NULL; | |
8986 | } | |
8987 | ||
8988 | ||
8989 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8990 | PyObject *resultobj; | |
8991 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8992 | PyObject * obj0 = 0 ; | |
8993 | char *kwnames[] = { | |
8994 | (char *) "self", NULL | |
8995 | }; | |
8996 | ||
8997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9000 | { |
9001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9002 | (arg1)->Undo(); | |
9003 | ||
9004 | wxPyEndAllowThreads(__tstate); | |
9005 | if (PyErr_Occurred()) SWIG_fail; | |
9006 | } | |
9007 | Py_INCREF(Py_None); resultobj = Py_None; | |
9008 | return resultobj; | |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj; | |
9016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9017 | PyObject * obj0 = 0 ; | |
9018 | char *kwnames[] = { | |
9019 | (char *) "self", NULL | |
9020 | }; | |
9021 | ||
9022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9025 | { |
9026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9027 | (arg1)->Redo(); | |
9028 | ||
9029 | wxPyEndAllowThreads(__tstate); | |
9030 | if (PyErr_Occurred()) SWIG_fail; | |
9031 | } | |
9032 | Py_INCREF(Py_None); resultobj = Py_None; | |
9033 | return resultobj; | |
9034 | fail: | |
9035 | return NULL; | |
9036 | } | |
9037 | ||
9038 | ||
9039 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9040 | PyObject *resultobj; | |
9041 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9042 | bool result; | |
9043 | PyObject * obj0 = 0 ; | |
9044 | char *kwnames[] = { | |
9045 | (char *) "self", NULL | |
9046 | }; | |
9047 | ||
9048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9049 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9050 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9051 | { |
9052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9053 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9054 | ||
9055 | wxPyEndAllowThreads(__tstate); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
9057 | } | |
4f89f6a3 RD |
9058 | { |
9059 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9060 | } | |
d14a1e28 RD |
9061 | return resultobj; |
9062 | fail: | |
9063 | return NULL; | |
9064 | } | |
9065 | ||
9066 | ||
9067 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9068 | PyObject *resultobj; | |
9069 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9070 | bool result; | |
9071 | PyObject * obj0 = 0 ; | |
9072 | char *kwnames[] = { | |
9073 | (char *) "self", NULL | |
9074 | }; | |
9075 | ||
9076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9079 | { |
9080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9081 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9082 | ||
9083 | wxPyEndAllowThreads(__tstate); | |
9084 | if (PyErr_Occurred()) SWIG_fail; | |
9085 | } | |
4f89f6a3 RD |
9086 | { |
9087 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9088 | } | |
d14a1e28 RD |
9089 | return resultobj; |
9090 | fail: | |
9091 | return NULL; | |
9092 | } | |
9093 | ||
9094 | ||
9095 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9096 | PyObject *resultobj; | |
9097 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9098 | long arg2 ; | |
9099 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9100 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9101 | char *kwnames[] = { |
9102 | (char *) "self",(char *) "pos", NULL | |
9103 | }; | |
9104 | ||
8edf1c75 | 9105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9108 | arg2 = (long) SWIG_AsLong(obj1); | |
9109 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9110 | { |
9111 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9112 | (arg1)->SetInsertionPoint(arg2); | |
9113 | ||
9114 | wxPyEndAllowThreads(__tstate); | |
9115 | if (PyErr_Occurred()) SWIG_fail; | |
9116 | } | |
9117 | Py_INCREF(Py_None); resultobj = Py_None; | |
9118 | return resultobj; | |
9119 | fail: | |
9120 | return NULL; | |
9121 | } | |
9122 | ||
9123 | ||
9124 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9125 | PyObject *resultobj; | |
9126 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9127 | PyObject * obj0 = 0 ; | |
9128 | char *kwnames[] = { | |
9129 | (char *) "self", NULL | |
9130 | }; | |
9131 | ||
9132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9135 | { |
9136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9137 | (arg1)->SetInsertionPointEnd(); | |
9138 | ||
9139 | wxPyEndAllowThreads(__tstate); | |
9140 | if (PyErr_Occurred()) SWIG_fail; | |
9141 | } | |
9142 | Py_INCREF(Py_None); resultobj = Py_None; | |
9143 | return resultobj; | |
9144 | fail: | |
9145 | return NULL; | |
9146 | } | |
9147 | ||
9148 | ||
9149 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9150 | PyObject *resultobj; | |
9151 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9152 | long result; | |
9153 | PyObject * obj0 = 0 ; | |
9154 | char *kwnames[] = { | |
9155 | (char *) "self", NULL | |
9156 | }; | |
9157 | ||
9158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9161 | { |
9162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9163 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9164 | ||
9165 | wxPyEndAllowThreads(__tstate); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
9167 | } | |
2f4c0a16 | 9168 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9169 | return resultobj; |
9170 | fail: | |
9171 | return NULL; | |
9172 | } | |
9173 | ||
9174 | ||
9175 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9176 | PyObject *resultobj; | |
9177 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9178 | long result; | |
9179 | PyObject * obj0 = 0 ; | |
9180 | char *kwnames[] = { | |
9181 | (char *) "self", NULL | |
9182 | }; | |
9183 | ||
9184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9187 | { |
9188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9189 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9190 | ||
9191 | wxPyEndAllowThreads(__tstate); | |
9192 | if (PyErr_Occurred()) SWIG_fail; | |
9193 | } | |
2f4c0a16 | 9194 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9195 | return resultobj; |
9196 | fail: | |
9197 | return NULL; | |
9198 | } | |
9199 | ||
9200 | ||
9201 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9202 | PyObject *resultobj; | |
9203 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9204 | long arg2 ; | |
9205 | long arg3 ; | |
9206 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9207 | PyObject * obj1 = 0 ; |
9208 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9209 | char *kwnames[] = { |
9210 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9211 | }; | |
9212 | ||
8edf1c75 | 9213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9216 | arg2 = (long) SWIG_AsLong(obj1); | |
9217 | if (PyErr_Occurred()) SWIG_fail; | |
9218 | arg3 = (long) SWIG_AsLong(obj2); | |
9219 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9220 | { |
9221 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9222 | (arg1)->SetSelection(arg2,arg3); | |
9223 | ||
9224 | wxPyEndAllowThreads(__tstate); | |
9225 | if (PyErr_Occurred()) SWIG_fail; | |
9226 | } | |
9227 | Py_INCREF(Py_None); resultobj = Py_None; | |
9228 | return resultobj; | |
9229 | fail: | |
9230 | return NULL; | |
9231 | } | |
9232 | ||
9233 | ||
9234 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9235 | PyObject *resultobj; | |
9236 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9237 | PyObject * obj0 = 0 ; | |
9238 | char *kwnames[] = { | |
9239 | (char *) "self", NULL | |
9240 | }; | |
9241 | ||
9242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9245 | { |
9246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9247 | (arg1)->SelectAll(); | |
9248 | ||
9249 | wxPyEndAllowThreads(__tstate); | |
9250 | if (PyErr_Occurred()) SWIG_fail; | |
9251 | } | |
9252 | Py_INCREF(Py_None); resultobj = Py_None; | |
9253 | return resultobj; | |
9254 | fail: | |
9255 | return NULL; | |
9256 | } | |
9257 | ||
9258 | ||
9259 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9260 | PyObject *resultobj; | |
9261 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9262 | bool arg2 ; | |
9263 | PyObject * obj0 = 0 ; | |
9264 | PyObject * obj1 = 0 ; | |
9265 | char *kwnames[] = { | |
9266 | (char *) "self",(char *) "editable", NULL | |
9267 | }; | |
9268 | ||
9269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9272 | arg2 = (bool) SWIG_AsBool(obj1); | |
9273 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9274 | { |
9275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9276 | (arg1)->SetEditable(arg2); | |
9277 | ||
9278 | wxPyEndAllowThreads(__tstate); | |
9279 | if (PyErr_Occurred()) SWIG_fail; | |
9280 | } | |
9281 | Py_INCREF(Py_None); resultobj = Py_None; | |
9282 | return resultobj; | |
9283 | fail: | |
9284 | return NULL; | |
9285 | } | |
9286 | ||
9287 | ||
9288 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9289 | PyObject *resultobj; | |
9290 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 9291 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9292 | bool result; |
9293 | PyObject * obj0 = 0 ; | |
9294 | PyObject * obj1 = 0 ; | |
9295 | char *kwnames[] = { | |
9296 | (char *) "self",(char *) "show", NULL | |
9297 | }; | |
9298 | ||
9299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9302 | if (obj1) { |
2f4c0a16 RD |
9303 | arg2 = (bool) SWIG_AsBool(obj1); |
9304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9305 | } |
9306 | { | |
9307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9308 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9309 | ||
9310 | wxPyEndAllowThreads(__tstate); | |
9311 | if (PyErr_Occurred()) SWIG_fail; | |
9312 | } | |
4f89f6a3 RD |
9313 | { |
9314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9315 | } | |
d14a1e28 RD |
9316 | return resultobj; |
9317 | fail: | |
9318 | return NULL; | |
9319 | } | |
9320 | ||
9321 | ||
9322 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9323 | PyObject *resultobj; | |
9324 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9325 | bool result; | |
9326 | PyObject * obj0 = 0 ; | |
9327 | char *kwnames[] = { | |
9328 | (char *) "self", NULL | |
9329 | }; | |
9330 | ||
9331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9334 | { |
9335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9336 | result = (bool)(arg1)->HideNativeCaret(); | |
9337 | ||
9338 | wxPyEndAllowThreads(__tstate); | |
9339 | if (PyErr_Occurred()) SWIG_fail; | |
9340 | } | |
4f89f6a3 RD |
9341 | { |
9342 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9343 | } | |
d14a1e28 RD |
9344 | return resultobj; |
9345 | fail: | |
9346 | return NULL; | |
9347 | } | |
9348 | ||
9349 | ||
9350 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9351 | PyObject *resultobj; | |
9352 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9353 | wxString *arg2 = 0 ; | |
423f194a | 9354 | bool temp2 = False ; |
d14a1e28 RD |
9355 | PyObject * obj0 = 0 ; |
9356 | PyObject * obj1 = 0 ; | |
9357 | char *kwnames[] = { | |
9358 | (char *) "self",(char *) "text", NULL | |
9359 | }; | |
9360 | ||
9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9364 | { |
9365 | arg2 = wxString_in_helper(obj1); | |
9366 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9367 | temp2 = True; |
d14a1e28 RD |
9368 | } |
9369 | { | |
9370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9371 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9372 | ||
9373 | wxPyEndAllowThreads(__tstate); | |
9374 | if (PyErr_Occurred()) SWIG_fail; | |
9375 | } | |
9376 | Py_INCREF(Py_None); resultobj = Py_None; | |
9377 | { | |
9378 | if (temp2) | |
9379 | delete arg2; | |
9380 | } | |
9381 | return resultobj; | |
9382 | fail: | |
9383 | { | |
9384 | if (temp2) | |
9385 | delete arg2; | |
9386 | } | |
9387 | return NULL; | |
9388 | } | |
9389 | ||
9390 | ||
9391 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9392 | PyObject *resultobj; | |
9393 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9394 | long arg2 ; | |
9395 | long arg3 ; | |
9396 | wxString result; | |
9397 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9398 | PyObject * obj1 = 0 ; |
9399 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9400 | char *kwnames[] = { |
9401 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9402 | }; | |
9403 | ||
8edf1c75 | 9404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9407 | arg2 = (long) SWIG_AsLong(obj1); | |
9408 | if (PyErr_Occurred()) SWIG_fail; | |
9409 | arg3 = (long) SWIG_AsLong(obj2); | |
9410 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9411 | { |
9412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9413 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9414 | ||
9415 | wxPyEndAllowThreads(__tstate); | |
9416 | if (PyErr_Occurred()) SWIG_fail; | |
9417 | } | |
9418 | { | |
9419 | #if wxUSE_UNICODE | |
9420 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9421 | #else | |
9422 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9423 | #endif | |
9424 | } | |
9425 | return resultobj; | |
9426 | fail: | |
9427 | return NULL; | |
9428 | } | |
9429 | ||
9430 | ||
9431 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9432 | PyObject *obj; | |
9433 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9434 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9435 | Py_INCREF(obj); | |
9436 | return Py_BuildValue((char *)""); | |
9437 | } | |
9438 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject *resultobj; | |
9440 | int arg1 ; | |
9441 | wxMouseEvent *arg2 = 0 ; | |
9442 | long arg3 ; | |
9443 | long arg4 ; | |
9444 | wxTextUrlEvent *result; | |
8edf1c75 | 9445 | PyObject * obj0 = 0 ; |
d14a1e28 | 9446 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9447 | PyObject * obj2 = 0 ; |
9448 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9449 | char *kwnames[] = { |
9450 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9451 | }; | |
9452 | ||
8edf1c75 | 9453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9454 | arg1 = (int) SWIG_AsInt(obj0); |
9455 | if (PyErr_Occurred()) SWIG_fail; | |
9456 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9457 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9458 | SWIG_fail; | |
d14a1e28 | 9459 | if (arg2 == NULL) { |
2f4c0a16 RD |
9460 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9461 | SWIG_fail; | |
8edf1c75 | 9462 | } |
2f4c0a16 RD |
9463 | arg3 = (long) SWIG_AsLong(obj2); |
9464 | if (PyErr_Occurred()) SWIG_fail; | |
9465 | arg4 = (long) SWIG_AsLong(obj3); | |
9466 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9467 | { |
9468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9469 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9470 | ||
9471 | wxPyEndAllowThreads(__tstate); | |
9472 | if (PyErr_Occurred()) SWIG_fail; | |
9473 | } | |
2f4c0a16 | 9474 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9475 | return resultobj; |
9476 | fail: | |
9477 | return NULL; | |
9478 | } | |
9479 | ||
9480 | ||
9481 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9482 | PyObject *resultobj; | |
9483 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9484 | wxMouseEvent *result; | |
9485 | PyObject * obj0 = 0 ; | |
9486 | char *kwnames[] = { | |
9487 | (char *) "self", NULL | |
9488 | }; | |
9489 | ||
9490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9493 | { |
9494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9495 | { | |
9496 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9497 | result = (wxMouseEvent *) &_result_ref; | |
9498 | } | |
9499 | ||
9500 | wxPyEndAllowThreads(__tstate); | |
9501 | if (PyErr_Occurred()) SWIG_fail; | |
9502 | } | |
2f4c0a16 | 9503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9504 | return resultobj; |
9505 | fail: | |
9506 | return NULL; | |
9507 | } | |
9508 | ||
9509 | ||
9510 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9511 | PyObject *resultobj; | |
9512 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9513 | long result; | |
9514 | PyObject * obj0 = 0 ; | |
9515 | char *kwnames[] = { | |
9516 | (char *) "self", NULL | |
9517 | }; | |
9518 | ||
9519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9522 | { |
9523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9524 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9525 | ||
9526 | wxPyEndAllowThreads(__tstate); | |
9527 | if (PyErr_Occurred()) SWIG_fail; | |
9528 | } | |
2f4c0a16 | 9529 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9530 | return resultobj; |
9531 | fail: | |
9532 | return NULL; | |
9533 | } | |
9534 | ||
9535 | ||
9536 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9537 | PyObject *resultobj; | |
9538 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9539 | long result; | |
9540 | PyObject * obj0 = 0 ; | |
9541 | char *kwnames[] = { | |
9542 | (char *) "self", NULL | |
9543 | }; | |
9544 | ||
9545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9548 | { |
9549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9550 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9551 | ||
9552 | wxPyEndAllowThreads(__tstate); | |
9553 | if (PyErr_Occurred()) SWIG_fail; | |
9554 | } | |
2f4c0a16 | 9555 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9556 | return resultobj; |
9557 | fail: | |
9558 | return NULL; | |
9559 | } | |
9560 | ||
9561 | ||
9562 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9563 | PyObject *obj; | |
9564 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9565 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9566 | Py_INCREF(obj); | |
9567 | return Py_BuildValue((char *)""); | |
9568 | } | |
2f4c0a16 | 9569 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
d03fd34d RD |
9570 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9571 | return 1; | |
9572 | } | |
9573 | ||
9574 | ||
9575 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9576 | PyObject *pyobj; | |
9577 | ||
9578 | { | |
9579 | #if wxUSE_UNICODE | |
9580 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9581 | #else | |
9582 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9583 | #endif | |
9584 | } | |
9585 | return pyobj; | |
9586 | } | |
9587 | ||
9588 | ||
d14a1e28 RD |
9589 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9590 | PyObject *resultobj; | |
9591 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9592 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9593 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9594 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9595 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9596 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9597 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9598 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9599 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9600 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9601 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9602 | wxScrollBar *result; | |
9603 | wxPoint temp3 ; | |
9604 | wxSize temp4 ; | |
423f194a | 9605 | bool temp7 = False ; |
d14a1e28 | 9606 | PyObject * obj0 = 0 ; |
8edf1c75 | 9607 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9608 | PyObject * obj2 = 0 ; |
9609 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9610 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9611 | PyObject * obj5 = 0 ; |
9612 | PyObject * obj6 = 0 ; | |
9613 | char *kwnames[] = { | |
9614 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9615 | }; | |
9616 | ||
8edf1c75 | 9617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
9618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
9619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9620 | if (obj1) { |
2f4c0a16 RD |
9621 | arg2 = (int) SWIG_AsInt(obj1); |
9622 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9623 | } |
d14a1e28 RD |
9624 | if (obj2) { |
9625 | { | |
9626 | arg3 = &temp3; | |
9627 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9628 | } | |
9629 | } | |
9630 | if (obj3) { | |
9631 | { | |
9632 | arg4 = &temp4; | |
9633 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9634 | } | |
9635 | } | |
8edf1c75 | 9636 | if (obj4) { |
2f4c0a16 RD |
9637 | arg5 = (long) SWIG_AsLong(obj4); |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9639 | } |
d14a1e28 | 9640 | if (obj5) { |
2f4c0a16 RD |
9641 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
9642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9643 | SWIG_fail; | |
d14a1e28 | 9644 | if (arg6 == NULL) { |
2f4c0a16 RD |
9645 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9646 | SWIG_fail; | |
d14a1e28 RD |
9647 | } |
9648 | } | |
9649 | if (obj6) { | |
9650 | { | |
9651 | arg7 = wxString_in_helper(obj6); | |
9652 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9653 | temp7 = True; |
d14a1e28 RD |
9654 | } |
9655 | } | |
9656 | { | |
9657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9658 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9659 | ||
9660 | wxPyEndAllowThreads(__tstate); | |
9661 | if (PyErr_Occurred()) SWIG_fail; | |
9662 | } | |
2f4c0a16 | 9663 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9664 | { |
9665 | if (temp7) | |
9666 | delete arg7; | |
9667 | } | |
9668 | return resultobj; | |
9669 | fail: | |
9670 | { | |
9671 | if (temp7) | |
9672 | delete arg7; | |
9673 | } | |
9674 | return NULL; | |
9675 | } | |
9676 | ||
9677 | ||
9678 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9679 | PyObject *resultobj; | |
9680 | wxScrollBar *result; | |
9681 | char *kwnames[] = { | |
9682 | NULL | |
9683 | }; | |
9684 | ||
9685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9686 | { | |
9687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9688 | result = (wxScrollBar *)new wxScrollBar(); | |
9689 | ||
9690 | wxPyEndAllowThreads(__tstate); | |
9691 | if (PyErr_Occurred()) SWIG_fail; | |
9692 | } | |
2f4c0a16 | 9693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9694 | return resultobj; |
9695 | fail: | |
9696 | return NULL; | |
9697 | } | |
9698 | ||
9699 | ||
9700 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9701 | PyObject *resultobj; | |
9702 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9704 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9705 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9706 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9707 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9708 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9709 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9710 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9711 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9712 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9713 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9714 | bool result; | |
9715 | wxPoint temp4 ; | |
9716 | wxSize temp5 ; | |
423f194a | 9717 | bool temp8 = False ; |
d14a1e28 RD |
9718 | PyObject * obj0 = 0 ; |
9719 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9720 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9721 | PyObject * obj3 = 0 ; |
9722 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9723 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9724 | PyObject * obj6 = 0 ; |
9725 | PyObject * obj7 = 0 ; | |
9726 | char *kwnames[] = { | |
9727 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9728 | }; | |
9729 | ||
8edf1c75 | 9730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
9731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9733 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9735 | if (obj2) { |
2f4c0a16 RD |
9736 | arg3 = (int) SWIG_AsInt(obj2); |
9737 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9738 | } |
d14a1e28 RD |
9739 | if (obj3) { |
9740 | { | |
9741 | arg4 = &temp4; | |
9742 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9743 | } | |
9744 | } | |
9745 | if (obj4) { | |
9746 | { | |
9747 | arg5 = &temp5; | |
9748 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9749 | } | |
9750 | } | |
8edf1c75 | 9751 | if (obj5) { |
2f4c0a16 RD |
9752 | arg6 = (long) SWIG_AsLong(obj5); |
9753 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9754 | } |
d14a1e28 | 9755 | if (obj6) { |
2f4c0a16 RD |
9756 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
9757 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9758 | SWIG_fail; | |
d14a1e28 | 9759 | if (arg7 == NULL) { |
2f4c0a16 RD |
9760 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9761 | SWIG_fail; | |
d14a1e28 RD |
9762 | } |
9763 | } | |
9764 | if (obj7) { | |
9765 | { | |
9766 | arg8 = wxString_in_helper(obj7); | |
9767 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9768 | temp8 = True; |
d14a1e28 RD |
9769 | } |
9770 | } | |
9771 | { | |
9772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9773 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9774 | ||
9775 | wxPyEndAllowThreads(__tstate); | |
9776 | if (PyErr_Occurred()) SWIG_fail; | |
9777 | } | |
4f89f6a3 RD |
9778 | { |
9779 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9780 | } | |
d14a1e28 RD |
9781 | { |
9782 | if (temp8) | |
9783 | delete arg8; | |
9784 | } | |
9785 | return resultobj; | |
9786 | fail: | |
9787 | { | |
9788 | if (temp8) | |
9789 | delete arg8; | |
9790 | } | |
9791 | return NULL; | |
9792 | } | |
9793 | ||
9794 | ||
9795 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9796 | PyObject *resultobj; | |
9797 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9798 | int result; | |
9799 | PyObject * obj0 = 0 ; | |
9800 | char *kwnames[] = { | |
9801 | (char *) "self", NULL | |
9802 | }; | |
9803 | ||
9804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9805 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9806 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9807 | { |
9808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9809 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9810 | ||
9811 | wxPyEndAllowThreads(__tstate); | |
9812 | if (PyErr_Occurred()) SWIG_fail; | |
9813 | } | |
2f4c0a16 | 9814 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9815 | return resultobj; |
9816 | fail: | |
9817 | return NULL; | |
9818 | } | |
9819 | ||
9820 | ||
9821 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9822 | PyObject *resultobj; | |
9823 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9824 | int result; | |
9825 | PyObject * obj0 = 0 ; | |
9826 | char *kwnames[] = { | |
9827 | (char *) "self", NULL | |
9828 | }; | |
9829 | ||
9830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9833 | { |
9834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9835 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9836 | ||
9837 | wxPyEndAllowThreads(__tstate); | |
9838 | if (PyErr_Occurred()) SWIG_fail; | |
9839 | } | |
2f4c0a16 | 9840 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9841 | return resultobj; |
9842 | fail: | |
9843 | return NULL; | |
9844 | } | |
9845 | ||
9846 | ||
9847 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9848 | PyObject *resultobj; | |
9849 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9850 | int result; | |
9851 | PyObject * obj0 = 0 ; | |
9852 | char *kwnames[] = { | |
9853 | (char *) "self", NULL | |
9854 | }; | |
9855 | ||
9856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9859 | { |
9860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9861 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9862 | ||
9863 | wxPyEndAllowThreads(__tstate); | |
9864 | if (PyErr_Occurred()) SWIG_fail; | |
9865 | } | |
2f4c0a16 | 9866 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9867 | return resultobj; |
9868 | fail: | |
9869 | return NULL; | |
9870 | } | |
9871 | ||
9872 | ||
9873 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9874 | PyObject *resultobj; | |
9875 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9876 | int result; | |
9877 | PyObject * obj0 = 0 ; | |
9878 | char *kwnames[] = { | |
9879 | (char *) "self", NULL | |
9880 | }; | |
9881 | ||
9882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9885 | { |
9886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9887 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9888 | ||
9889 | wxPyEndAllowThreads(__tstate); | |
9890 | if (PyErr_Occurred()) SWIG_fail; | |
9891 | } | |
2f4c0a16 | 9892 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9893 | return resultobj; |
9894 | fail: | |
9895 | return NULL; | |
9896 | } | |
9897 | ||
9898 | ||
9899 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9900 | PyObject *resultobj; | |
9901 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9902 | bool result; | |
9903 | PyObject * obj0 = 0 ; | |
9904 | char *kwnames[] = { | |
9905 | (char *) "self", NULL | |
9906 | }; | |
9907 | ||
9908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9911 | { |
9912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9913 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9914 | ||
9915 | wxPyEndAllowThreads(__tstate); | |
9916 | if (PyErr_Occurred()) SWIG_fail; | |
9917 | } | |
4f89f6a3 RD |
9918 | { |
9919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9920 | } | |
d14a1e28 RD |
9921 | return resultobj; |
9922 | fail: | |
9923 | return NULL; | |
9924 | } | |
9925 | ||
9926 | ||
9927 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9928 | PyObject *resultobj; | |
9929 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9930 | int arg2 ; | |
9931 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9932 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9933 | char *kwnames[] = { |
9934 | (char *) "self",(char *) "viewStart", NULL | |
9935 | }; | |
9936 | ||
8edf1c75 | 9937 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9938 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9939 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9940 | arg2 = (int) SWIG_AsInt(obj1); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9942 | { |
9943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9944 | (arg1)->SetThumbPosition(arg2); | |
9945 | ||
9946 | wxPyEndAllowThreads(__tstate); | |
9947 | if (PyErr_Occurred()) SWIG_fail; | |
9948 | } | |
9949 | Py_INCREF(Py_None); resultobj = Py_None; | |
9950 | return resultobj; | |
9951 | fail: | |
9952 | return NULL; | |
9953 | } | |
9954 | ||
9955 | ||
9956 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9957 | PyObject *resultobj; | |
9958 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9959 | int arg2 ; | |
9960 | int arg3 ; | |
9961 | int arg4 ; | |
9962 | int arg5 ; | |
423f194a | 9963 | bool arg6 = (bool) True ; |
d14a1e28 | 9964 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9965 | PyObject * obj1 = 0 ; |
9966 | PyObject * obj2 = 0 ; | |
9967 | PyObject * obj3 = 0 ; | |
9968 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9969 | PyObject * obj5 = 0 ; |
9970 | char *kwnames[] = { | |
9971 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9972 | }; | |
9973 | ||
8edf1c75 | 9974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9977 | arg2 = (int) SWIG_AsInt(obj1); | |
9978 | if (PyErr_Occurred()) SWIG_fail; | |
9979 | arg3 = (int) SWIG_AsInt(obj2); | |
9980 | if (PyErr_Occurred()) SWIG_fail; | |
9981 | arg4 = (int) SWIG_AsInt(obj3); | |
9982 | if (PyErr_Occurred()) SWIG_fail; | |
9983 | arg5 = (int) SWIG_AsInt(obj4); | |
9984 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 9985 | if (obj5) { |
2f4c0a16 RD |
9986 | arg6 = (bool) SWIG_AsBool(obj5); |
9987 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9988 | } |
9989 | { | |
9990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9991 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9992 | ||
9993 | wxPyEndAllowThreads(__tstate); | |
9994 | if (PyErr_Occurred()) SWIG_fail; | |
9995 | } | |
9996 | Py_INCREF(Py_None); resultobj = Py_None; | |
9997 | return resultobj; | |
9998 | fail: | |
9999 | return NULL; | |
10000 | } | |
10001 | ||
10002 | ||
10003 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
10004 | PyObject *obj; | |
10005 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10006 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10007 | Py_INCREF(obj); | |
10008 | return Py_BuildValue((char *)""); | |
10009 | } | |
2f4c0a16 | 10010 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
d03fd34d RD |
10011 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
10012 | return 1; | |
10013 | } | |
10014 | ||
10015 | ||
10016 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10017 | PyObject *pyobj; | |
10018 | ||
10019 | { | |
10020 | #if wxUSE_UNICODE | |
10021 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10022 | #else | |
10023 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10024 | #endif | |
10025 | } | |
10026 | return pyobj; | |
10027 | } | |
10028 | ||
10029 | ||
2f4c0a16 | 10030 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
10031 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
10032 | return 1; | |
10033 | } | |
10034 | ||
10035 | ||
10036 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10037 | PyObject *pyobj; | |
10038 | ||
10039 | { | |
10040 | #if wxUSE_UNICODE | |
10041 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10042 | #else | |
10043 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10044 | #endif | |
10045 | } | |
10046 | return pyobj; | |
10047 | } | |
10048 | ||
10049 | ||
d14a1e28 RD |
10050 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10051 | PyObject *resultobj; | |
10052 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10053 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10054 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10055 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10056 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10057 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10058 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10059 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10060 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10061 | wxSpinButton *result; | |
10062 | wxPoint temp3 ; | |
10063 | wxSize temp4 ; | |
423f194a | 10064 | bool temp6 = False ; |
d14a1e28 | 10065 | PyObject * obj0 = 0 ; |
8edf1c75 | 10066 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10067 | PyObject * obj2 = 0 ; |
10068 | PyObject * obj3 = 0 ; | |
8edf1c75 | 10069 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10070 | PyObject * obj5 = 0 ; |
10071 | char *kwnames[] = { | |
10072 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10073 | }; | |
10074 | ||
8edf1c75 | 10075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
10076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10078 | if (obj1) { |
2f4c0a16 RD |
10079 | arg2 = (int) SWIG_AsInt(obj1); |
10080 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10081 | } |
d14a1e28 RD |
10082 | if (obj2) { |
10083 | { | |
10084 | arg3 = &temp3; | |
10085 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10086 | } | |
10087 | } | |
10088 | if (obj3) { | |
10089 | { | |
10090 | arg4 = &temp4; | |
10091 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10092 | } | |
10093 | } | |
8edf1c75 | 10094 | if (obj4) { |
2f4c0a16 RD |
10095 | arg5 = (long) SWIG_AsLong(obj4); |
10096 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10097 | } |
d14a1e28 RD |
10098 | if (obj5) { |
10099 | { | |
10100 | arg6 = wxString_in_helper(obj5); | |
10101 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 10102 | temp6 = True; |
d14a1e28 RD |
10103 | } |
10104 | } | |
10105 | { | |
10106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10107 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10108 | ||
10109 | wxPyEndAllowThreads(__tstate); | |
10110 | if (PyErr_Occurred()) SWIG_fail; | |
10111 | } | |
2f4c0a16 | 10112 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10113 | { |
10114 | if (temp6) | |
10115 | delete arg6; | |
10116 | } | |
10117 | return resultobj; | |
10118 | fail: | |
10119 | { | |
10120 | if (temp6) | |
10121 | delete arg6; | |
10122 | } | |
10123 | return NULL; | |
10124 | } | |
10125 | ||
10126 | ||
10127 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10128 | PyObject *resultobj; | |
10129 | wxSpinButton *result; | |
10130 | char *kwnames[] = { | |
10131 | NULL | |
10132 | }; | |
10133 | ||
10134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10135 | { | |
10136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10137 | result = (wxSpinButton *)new wxSpinButton(); | |
10138 | ||
10139 | wxPyEndAllowThreads(__tstate); | |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
10141 | } | |
2f4c0a16 | 10142 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10143 | return resultobj; |
10144 | fail: | |
10145 | return NULL; | |
10146 | } | |
10147 | ||
10148 | ||
10149 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10150 | PyObject *resultobj; | |
10151 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10152 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10153 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10154 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10155 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10156 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10157 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10158 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10159 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10160 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10161 | bool result; | |
10162 | wxPoint temp4 ; | |
10163 | wxSize temp5 ; | |
423f194a | 10164 | bool temp7 = False ; |
d14a1e28 RD |
10165 | PyObject * obj0 = 0 ; |
10166 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10167 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10168 | PyObject * obj3 = 0 ; |
10169 | PyObject * obj4 = 0 ; | |
8edf1c75 | 10170 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10171 | PyObject * obj6 = 0 ; |
10172 | char *kwnames[] = { | |
10173 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10174 | }; | |
10175 | ||
8edf1c75 | 10176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
10177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10181 | if (obj2) { |
2f4c0a16 RD |
10182 | arg3 = (int) SWIG_AsInt(obj2); |
10183 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10184 | } |
d14a1e28 RD |
10185 | if (obj3) { |
10186 | { | |
10187 | arg4 = &temp4; | |
10188 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10189 | } | |
10190 | } | |
10191 | if (obj4) { | |
10192 | { | |
10193 | arg5 = &temp5; | |
10194 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10195 | } | |
10196 | } | |
8edf1c75 | 10197 | if (obj5) { |
2f4c0a16 RD |
10198 | arg6 = (long) SWIG_AsLong(obj5); |
10199 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10200 | } |
d14a1e28 RD |
10201 | if (obj6) { |
10202 | { | |
10203 | arg7 = wxString_in_helper(obj6); | |
10204 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 10205 | temp7 = True; |
d14a1e28 RD |
10206 | } |
10207 | } | |
10208 | { | |
10209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10210 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10211 | ||
10212 | wxPyEndAllowThreads(__tstate); | |
10213 | if (PyErr_Occurred()) SWIG_fail; | |
10214 | } | |
4f89f6a3 RD |
10215 | { |
10216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10217 | } | |
d14a1e28 RD |
10218 | { |
10219 | if (temp7) | |
10220 | delete arg7; | |
10221 | } | |
10222 | return resultobj; | |
10223 | fail: | |
10224 | { | |
10225 | if (temp7) | |
10226 | delete arg7; | |
10227 | } | |
10228 | return NULL; | |
10229 | } | |
10230 | ||
10231 | ||
10232 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10233 | PyObject *resultobj; | |
10234 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10235 | int result; | |
10236 | PyObject * obj0 = 0 ; | |
10237 | char *kwnames[] = { | |
10238 | (char *) "self", NULL | |
10239 | }; | |
10240 | ||
10241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10244 | { |
10245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10246 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10247 | ||
10248 | wxPyEndAllowThreads(__tstate); | |
10249 | if (PyErr_Occurred()) SWIG_fail; | |
10250 | } | |
2f4c0a16 | 10251 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10252 | return resultobj; |
10253 | fail: | |
10254 | return NULL; | |
10255 | } | |
10256 | ||
10257 | ||
10258 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10259 | PyObject *resultobj; | |
10260 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10261 | int result; | |
10262 | PyObject * obj0 = 0 ; | |
10263 | char *kwnames[] = { | |
10264 | (char *) "self", NULL | |
10265 | }; | |
10266 | ||
10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10270 | { |
10271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10272 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10273 | ||
10274 | wxPyEndAllowThreads(__tstate); | |
10275 | if (PyErr_Occurred()) SWIG_fail; | |
10276 | } | |
2f4c0a16 | 10277 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10278 | return resultobj; |
10279 | fail: | |
10280 | return NULL; | |
10281 | } | |
10282 | ||
10283 | ||
10284 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10285 | PyObject *resultobj; | |
10286 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10287 | int result; | |
10288 | PyObject * obj0 = 0 ; | |
10289 | char *kwnames[] = { | |
10290 | (char *) "self", NULL | |
10291 | }; | |
10292 | ||
10293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10294 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10295 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10296 | { |
10297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10298 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10299 | ||
10300 | wxPyEndAllowThreads(__tstate); | |
10301 | if (PyErr_Occurred()) SWIG_fail; | |
10302 | } | |
2f4c0a16 | 10303 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10304 | return resultobj; |
10305 | fail: | |
10306 | return NULL; | |
10307 | } | |
10308 | ||
10309 | ||
10310 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10311 | PyObject *resultobj; | |
10312 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10313 | int arg2 ; | |
10314 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10315 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10316 | char *kwnames[] = { |
10317 | (char *) "self",(char *) "val", NULL | |
10318 | }; | |
10319 | ||
8edf1c75 | 10320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10323 | arg2 = (int) SWIG_AsInt(obj1); | |
10324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10325 | { |
10326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10327 | (arg1)->SetValue(arg2); | |
10328 | ||
10329 | wxPyEndAllowThreads(__tstate); | |
10330 | if (PyErr_Occurred()) SWIG_fail; | |
10331 | } | |
10332 | Py_INCREF(Py_None); resultobj = Py_None; | |
10333 | return resultobj; | |
10334 | fail: | |
10335 | return NULL; | |
10336 | } | |
10337 | ||
10338 | ||
10339 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10340 | PyObject *resultobj; | |
10341 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10342 | int arg2 ; | |
10343 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10344 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10345 | char *kwnames[] = { |
10346 | (char *) "self",(char *) "minVal", NULL | |
10347 | }; | |
10348 | ||
8edf1c75 | 10349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10350 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10351 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10352 | arg2 = (int) SWIG_AsInt(obj1); | |
10353 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10354 | { |
10355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10356 | (arg1)->SetMin(arg2); | |
10357 | ||
10358 | wxPyEndAllowThreads(__tstate); | |
10359 | if (PyErr_Occurred()) SWIG_fail; | |
10360 | } | |
10361 | Py_INCREF(Py_None); resultobj = Py_None; | |
10362 | return resultobj; | |
10363 | fail: | |
10364 | return NULL; | |
10365 | } | |
10366 | ||
10367 | ||
10368 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10369 | PyObject *resultobj; | |
10370 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10371 | int arg2 ; | |
10372 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10374 | char *kwnames[] = { |
10375 | (char *) "self",(char *) "maxVal", NULL | |
10376 | }; | |
10377 | ||
8edf1c75 | 10378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10381 | arg2 = (int) SWIG_AsInt(obj1); | |
10382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10383 | { |
10384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10385 | (arg1)->SetMax(arg2); | |
10386 | ||
10387 | wxPyEndAllowThreads(__tstate); | |
10388 | if (PyErr_Occurred()) SWIG_fail; | |
10389 | } | |
10390 | Py_INCREF(Py_None); resultobj = Py_None; | |
10391 | return resultobj; | |
10392 | fail: | |
10393 | return NULL; | |
10394 | } | |
10395 | ||
10396 | ||
10397 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10398 | PyObject *resultobj; | |
10399 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10400 | int arg2 ; | |
10401 | int arg3 ; | |
10402 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10403 | PyObject * obj1 = 0 ; |
10404 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10405 | char *kwnames[] = { |
10406 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10407 | }; | |
10408 | ||
8edf1c75 | 10409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10412 | arg2 = (int) SWIG_AsInt(obj1); | |
10413 | if (PyErr_Occurred()) SWIG_fail; | |
10414 | arg3 = (int) SWIG_AsInt(obj2); | |
10415 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10416 | { |
10417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10418 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10419 | |
10420 | wxPyEndAllowThreads(__tstate); | |
10421 | if (PyErr_Occurred()) SWIG_fail; | |
10422 | } | |
10423 | Py_INCREF(Py_None); resultobj = Py_None; | |
10424 | return resultobj; | |
10425 | fail: | |
10426 | return NULL; | |
10427 | } | |
10428 | ||
10429 | ||
10430 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10431 | PyObject *resultobj; | |
10432 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10433 | bool result; | |
10434 | PyObject * obj0 = 0 ; | |
10435 | char *kwnames[] = { | |
10436 | (char *) "self", NULL | |
10437 | }; | |
10438 | ||
10439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10442 | { |
10443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10444 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10445 | ||
10446 | wxPyEndAllowThreads(__tstate); | |
10447 | if (PyErr_Occurred()) SWIG_fail; | |
10448 | } | |
4f89f6a3 RD |
10449 | { |
10450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10451 | } | |
d14a1e28 RD |
10452 | return resultobj; |
10453 | fail: | |
10454 | return NULL; | |
10455 | } | |
10456 | ||
10457 | ||
10458 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10459 | PyObject *obj; | |
10460 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10461 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10462 | Py_INCREF(obj); | |
10463 | return Py_BuildValue((char *)""); | |
10464 | } | |
10465 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10466 | PyObject *resultobj; | |
10467 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10468 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10469 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10470 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10471 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10472 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10473 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10474 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10475 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10476 | int arg7 = (int) 0 ; | |
10477 | int arg8 = (int) 100 ; | |
10478 | int arg9 = (int) 0 ; | |
10479 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10480 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10481 | wxSpinCtrl *result; | |
423f194a | 10482 | bool temp3 = False ; |
d14a1e28 RD |
10483 | wxPoint temp4 ; |
10484 | wxSize temp5 ; | |
423f194a | 10485 | bool temp10 = False ; |
d14a1e28 | 10486 | PyObject * obj0 = 0 ; |
8edf1c75 | 10487 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10488 | PyObject * obj2 = 0 ; |
10489 | PyObject * obj3 = 0 ; | |
10490 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10491 | PyObject * obj5 = 0 ; |
10492 | PyObject * obj6 = 0 ; | |
10493 | PyObject * obj7 = 0 ; | |
10494 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10495 | PyObject * obj9 = 0 ; |
10496 | char *kwnames[] = { | |
10497 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10498 | }; | |
10499 | ||
8edf1c75 | 10500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
10501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10503 | if (obj1) { |
2f4c0a16 RD |
10504 | arg2 = (int) SWIG_AsInt(obj1); |
10505 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10506 | } |
d14a1e28 RD |
10507 | if (obj2) { |
10508 | { | |
10509 | arg3 = wxString_in_helper(obj2); | |
10510 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10511 | temp3 = True; |
d14a1e28 RD |
10512 | } |
10513 | } | |
10514 | if (obj3) { | |
10515 | { | |
10516 | arg4 = &temp4; | |
10517 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10518 | } | |
10519 | } | |
10520 | if (obj4) { | |
10521 | { | |
10522 | arg5 = &temp5; | |
10523 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10524 | } | |
10525 | } | |
8edf1c75 | 10526 | if (obj5) { |
2f4c0a16 RD |
10527 | arg6 = (long) SWIG_AsLong(obj5); |
10528 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10529 | } |
10530 | if (obj6) { | |
2f4c0a16 RD |
10531 | arg7 = (int) SWIG_AsInt(obj6); |
10532 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10533 | } |
10534 | if (obj7) { | |
2f4c0a16 RD |
10535 | arg8 = (int) SWIG_AsInt(obj7); |
10536 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10537 | } |
10538 | if (obj8) { | |
2f4c0a16 RD |
10539 | arg9 = (int) SWIG_AsInt(obj8); |
10540 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10541 | } |
d14a1e28 RD |
10542 | if (obj9) { |
10543 | { | |
10544 | arg10 = wxString_in_helper(obj9); | |
10545 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10546 | temp10 = True; |
d14a1e28 RD |
10547 | } |
10548 | } | |
10549 | { | |
10550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10551 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10552 | ||
10553 | wxPyEndAllowThreads(__tstate); | |
10554 | if (PyErr_Occurred()) SWIG_fail; | |
10555 | } | |
2f4c0a16 | 10556 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10557 | { |
10558 | if (temp3) | |
10559 | delete arg3; | |
10560 | } | |
10561 | { | |
10562 | if (temp10) | |
10563 | delete arg10; | |
10564 | } | |
10565 | return resultobj; | |
10566 | fail: | |
10567 | { | |
10568 | if (temp3) | |
10569 | delete arg3; | |
10570 | } | |
10571 | { | |
10572 | if (temp10) | |
10573 | delete arg10; | |
10574 | } | |
10575 | return NULL; | |
10576 | } | |
10577 | ||
10578 | ||
10579 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10580 | PyObject *resultobj; | |
10581 | wxSpinCtrl *result; | |
10582 | char *kwnames[] = { | |
10583 | NULL | |
10584 | }; | |
10585 | ||
10586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10587 | { | |
10588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10589 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10590 | ||
10591 | wxPyEndAllowThreads(__tstate); | |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
10593 | } | |
2f4c0a16 | 10594 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10595 | return resultobj; |
10596 | fail: | |
10597 | return NULL; | |
10598 | } | |
10599 | ||
10600 | ||
10601 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10602 | PyObject *resultobj; | |
10603 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10604 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10605 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10606 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10607 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10608 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10609 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10610 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10611 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10612 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10613 | int arg8 = (int) 0 ; | |
10614 | int arg9 = (int) 100 ; | |
10615 | int arg10 = (int) 0 ; | |
10616 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10617 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10618 | bool result; | |
423f194a | 10619 | bool temp4 = False ; |
d14a1e28 RD |
10620 | wxPoint temp5 ; |
10621 | wxSize temp6 ; | |
423f194a | 10622 | bool temp11 = False ; |
d14a1e28 RD |
10623 | PyObject * obj0 = 0 ; |
10624 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10625 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10626 | PyObject * obj3 = 0 ; |
10627 | PyObject * obj4 = 0 ; | |
10628 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10629 | PyObject * obj6 = 0 ; |
10630 | PyObject * obj7 = 0 ; | |
10631 | PyObject * obj8 = 0 ; | |
10632 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10633 | PyObject * obj10 = 0 ; |
10634 | char *kwnames[] = { | |
10635 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10636 | }; | |
10637 | ||
8edf1c75 | 10638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
2f4c0a16 RD |
10639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10641 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10643 | if (obj2) { |
2f4c0a16 RD |
10644 | arg3 = (int) SWIG_AsInt(obj2); |
10645 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10646 | } |
d14a1e28 RD |
10647 | if (obj3) { |
10648 | { | |
10649 | arg4 = wxString_in_helper(obj3); | |
10650 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10651 | temp4 = True; |
d14a1e28 RD |
10652 | } |
10653 | } | |
10654 | if (obj4) { | |
10655 | { | |
10656 | arg5 = &temp5; | |
10657 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10658 | } | |
10659 | } | |
10660 | if (obj5) { | |
10661 | { | |
10662 | arg6 = &temp6; | |
10663 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10664 | } | |
10665 | } | |
8edf1c75 | 10666 | if (obj6) { |
2f4c0a16 RD |
10667 | arg7 = (long) SWIG_AsLong(obj6); |
10668 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10669 | } |
10670 | if (obj7) { | |
2f4c0a16 RD |
10671 | arg8 = (int) SWIG_AsInt(obj7); |
10672 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10673 | } |
10674 | if (obj8) { | |
2f4c0a16 RD |
10675 | arg9 = (int) SWIG_AsInt(obj8); |
10676 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10677 | } |
10678 | if (obj9) { | |
2f4c0a16 RD |
10679 | arg10 = (int) SWIG_AsInt(obj9); |
10680 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10681 | } |
d14a1e28 RD |
10682 | if (obj10) { |
10683 | { | |
10684 | arg11 = wxString_in_helper(obj10); | |
10685 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10686 | temp11 = True; |
d14a1e28 RD |
10687 | } |
10688 | } | |
10689 | { | |
10690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10691 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10692 | ||
10693 | wxPyEndAllowThreads(__tstate); | |
10694 | if (PyErr_Occurred()) SWIG_fail; | |
10695 | } | |
4f89f6a3 RD |
10696 | { |
10697 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10698 | } | |
d14a1e28 RD |
10699 | { |
10700 | if (temp4) | |
10701 | delete arg4; | |
10702 | } | |
10703 | { | |
10704 | if (temp11) | |
10705 | delete arg11; | |
10706 | } | |
10707 | return resultobj; | |
10708 | fail: | |
10709 | { | |
10710 | if (temp4) | |
10711 | delete arg4; | |
10712 | } | |
10713 | { | |
10714 | if (temp11) | |
10715 | delete arg11; | |
10716 | } | |
10717 | return NULL; | |
10718 | } | |
10719 | ||
10720 | ||
10721 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10722 | PyObject *resultobj; | |
10723 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10724 | int result; | |
10725 | PyObject * obj0 = 0 ; | |
10726 | char *kwnames[] = { | |
10727 | (char *) "self", NULL | |
10728 | }; | |
10729 | ||
10730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10733 | { |
10734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10735 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10736 | ||
10737 | wxPyEndAllowThreads(__tstate); | |
10738 | if (PyErr_Occurred()) SWIG_fail; | |
10739 | } | |
2f4c0a16 | 10740 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10741 | return resultobj; |
10742 | fail: | |
10743 | return NULL; | |
10744 | } | |
10745 | ||
10746 | ||
10747 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10748 | PyObject *resultobj; | |
10749 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10750 | int arg2 ; | |
10751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10753 | char *kwnames[] = { |
10754 | (char *) "self",(char *) "value", NULL | |
10755 | }; | |
10756 | ||
8edf1c75 | 10757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10760 | arg2 = (int) SWIG_AsInt(obj1); | |
10761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10762 | { |
10763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10764 | (arg1)->SetValue(arg2); | |
10765 | ||
10766 | wxPyEndAllowThreads(__tstate); | |
10767 | if (PyErr_Occurred()) SWIG_fail; | |
10768 | } | |
10769 | Py_INCREF(Py_None); resultobj = Py_None; | |
10770 | return resultobj; | |
10771 | fail: | |
10772 | return NULL; | |
10773 | } | |
10774 | ||
10775 | ||
10776 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10777 | PyObject *resultobj; | |
10778 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10779 | wxString *arg2 = 0 ; | |
423f194a | 10780 | bool temp2 = False ; |
d14a1e28 RD |
10781 | PyObject * obj0 = 0 ; |
10782 | PyObject * obj1 = 0 ; | |
10783 | char *kwnames[] = { | |
10784 | (char *) "self",(char *) "text", NULL | |
10785 | }; | |
10786 | ||
10787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10790 | { |
10791 | arg2 = wxString_in_helper(obj1); | |
10792 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10793 | temp2 = True; |
d14a1e28 RD |
10794 | } |
10795 | { | |
10796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10797 | (arg1)->SetValue((wxString const &)*arg2); | |
10798 | ||
10799 | wxPyEndAllowThreads(__tstate); | |
10800 | if (PyErr_Occurred()) SWIG_fail; | |
10801 | } | |
10802 | Py_INCREF(Py_None); resultobj = Py_None; | |
10803 | { | |
10804 | if (temp2) | |
10805 | delete arg2; | |
10806 | } | |
10807 | return resultobj; | |
10808 | fail: | |
10809 | { | |
10810 | if (temp2) | |
10811 | delete arg2; | |
10812 | } | |
10813 | return NULL; | |
10814 | } | |
10815 | ||
10816 | ||
10817 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10818 | PyObject *resultobj; | |
10819 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10820 | int arg2 ; | |
10821 | int arg3 ; | |
10822 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10823 | PyObject * obj1 = 0 ; |
10824 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10825 | char *kwnames[] = { |
10826 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10827 | }; | |
10828 | ||
8edf1c75 | 10829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10832 | arg2 = (int) SWIG_AsInt(obj1); | |
10833 | if (PyErr_Occurred()) SWIG_fail; | |
10834 | arg3 = (int) SWIG_AsInt(obj2); | |
10835 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10836 | { |
10837 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10838 | (arg1)->SetRange(arg2,arg3); | |
10839 | ||
10840 | wxPyEndAllowThreads(__tstate); | |
10841 | if (PyErr_Occurred()) SWIG_fail; | |
10842 | } | |
10843 | Py_INCREF(Py_None); resultobj = Py_None; | |
10844 | return resultobj; | |
10845 | fail: | |
10846 | return NULL; | |
10847 | } | |
10848 | ||
10849 | ||
10850 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10851 | PyObject *resultobj; | |
10852 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10853 | int result; | |
10854 | PyObject * obj0 = 0 ; | |
10855 | char *kwnames[] = { | |
10856 | (char *) "self", NULL | |
10857 | }; | |
10858 | ||
10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10862 | { |
10863 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10864 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10865 | ||
10866 | wxPyEndAllowThreads(__tstate); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
10868 | } | |
2f4c0a16 | 10869 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10870 | return resultobj; |
10871 | fail: | |
10872 | return NULL; | |
10873 | } | |
10874 | ||
10875 | ||
10876 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10877 | PyObject *resultobj; | |
10878 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10879 | int result; | |
10880 | PyObject * obj0 = 0 ; | |
10881 | char *kwnames[] = { | |
10882 | (char *) "self", NULL | |
10883 | }; | |
10884 | ||
10885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10888 | { |
10889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10890 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10891 | ||
10892 | wxPyEndAllowThreads(__tstate); | |
10893 | if (PyErr_Occurred()) SWIG_fail; | |
10894 | } | |
2f4c0a16 | 10895 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10896 | return resultobj; |
10897 | fail: | |
10898 | return NULL; | |
10899 | } | |
10900 | ||
10901 | ||
10902 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10903 | PyObject *resultobj; | |
10904 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10905 | long arg2 ; | |
10906 | long arg3 ; | |
10907 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10908 | PyObject * obj1 = 0 ; |
10909 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10910 | char *kwnames[] = { |
10911 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10912 | }; | |
10913 | ||
8edf1c75 | 10914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10917 | arg2 = (long) SWIG_AsLong(obj1); | |
10918 | if (PyErr_Occurred()) SWIG_fail; | |
10919 | arg3 = (long) SWIG_AsLong(obj2); | |
10920 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10921 | { |
10922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10923 | (arg1)->SetSelection(arg2,arg3); | |
10924 | ||
10925 | wxPyEndAllowThreads(__tstate); | |
10926 | if (PyErr_Occurred()) SWIG_fail; | |
10927 | } | |
10928 | Py_INCREF(Py_None); resultobj = Py_None; | |
10929 | return resultobj; | |
10930 | fail: | |
10931 | return NULL; | |
10932 | } | |
10933 | ||
10934 | ||
10935 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10936 | PyObject *obj; | |
10937 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10938 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10939 | Py_INCREF(obj); | |
10940 | return Py_BuildValue((char *)""); | |
10941 | } | |
eb9b6107 RD |
10942 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10943 | PyObject *resultobj; | |
10944 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10945 | int arg2 = (int) 0 ; | |
10946 | wxSpinEvent *result; | |
8edf1c75 RD |
10947 | PyObject * obj0 = 0 ; |
10948 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10949 | char *kwnames[] = { |
10950 | (char *) "commandType",(char *) "winid", NULL | |
10951 | }; | |
10952 | ||
8edf1c75 RD |
10953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10954 | if (obj0) { | |
2f4c0a16 RD |
10955 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10956 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10957 | } |
10958 | if (obj1) { | |
2f4c0a16 RD |
10959 | arg2 = (int) SWIG_AsInt(obj1); |
10960 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10961 | } |
eb9b6107 RD |
10962 | { |
10963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10964 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10965 | ||
10966 | wxPyEndAllowThreads(__tstate); | |
10967 | if (PyErr_Occurred()) SWIG_fail; | |
10968 | } | |
2f4c0a16 | 10969 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
eb9b6107 RD |
10970 | return resultobj; |
10971 | fail: | |
10972 | return NULL; | |
10973 | } | |
10974 | ||
10975 | ||
10976 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10977 | PyObject *resultobj; | |
10978 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10979 | int result; | |
10980 | PyObject * obj0 = 0 ; | |
10981 | char *kwnames[] = { | |
10982 | (char *) "self", NULL | |
10983 | }; | |
10984 | ||
10985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
10987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
eb9b6107 RD |
10988 | { |
10989 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10990 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10991 | ||
10992 | wxPyEndAllowThreads(__tstate); | |
10993 | if (PyErr_Occurred()) SWIG_fail; | |
10994 | } | |
2f4c0a16 | 10995 | resultobj = SWIG_FromInt((int)result); |
eb9b6107 RD |
10996 | return resultobj; |
10997 | fail: | |
10998 | return NULL; | |
10999 | } | |
11000 | ||
11001 | ||
11002 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11003 | PyObject *resultobj; | |
11004 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11005 | int arg2 ; | |
11006 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11007 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
11008 | char *kwnames[] = { |
11009 | (char *) "self",(char *) "pos", NULL | |
11010 | }; | |
11011 | ||
8edf1c75 | 11012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11015 | arg2 = (int) SWIG_AsInt(obj1); | |
11016 | if (PyErr_Occurred()) SWIG_fail; | |
eb9b6107 RD |
11017 | { |
11018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11019 | (arg1)->SetPosition(arg2); | |
11020 | ||
11021 | wxPyEndAllowThreads(__tstate); | |
11022 | if (PyErr_Occurred()) SWIG_fail; | |
11023 | } | |
11024 | Py_INCREF(Py_None); resultobj = Py_None; | |
11025 | return resultobj; | |
11026 | fail: | |
11027 | return NULL; | |
11028 | } | |
11029 | ||
11030 | ||
11031 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11032 | PyObject *obj; | |
11033 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11034 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11035 | Py_INCREF(obj); | |
11036 | return Py_BuildValue((char *)""); | |
11037 | } | |
2f4c0a16 | 11038 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
11039 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
11040 | return 1; | |
11041 | } | |
11042 | ||
11043 | ||
11044 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11045 | PyObject *pyobj; | |
11046 | ||
11047 | { | |
11048 | #if wxUSE_UNICODE | |
11049 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11050 | #else | |
11051 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11052 | #endif | |
11053 | } | |
11054 | return pyobj; | |
11055 | } | |
11056 | ||
11057 | ||
2f4c0a16 | 11058 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
11059 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11060 | return 1; | |
11061 | } | |
11062 | ||
11063 | ||
11064 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11065 | PyObject *pyobj; | |
11066 | ||
11067 | { | |
11068 | #if wxUSE_UNICODE | |
11069 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11070 | #else | |
11071 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11072 | #endif | |
11073 | } | |
11074 | return pyobj; | |
11075 | } | |
11076 | ||
11077 | ||
d14a1e28 RD |
11078 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11079 | PyObject *resultobj; | |
11080 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11081 | int arg2 ; |
d14a1e28 RD |
11082 | wxString *arg3 = 0 ; |
11083 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11084 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11085 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11086 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
11087 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11088 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11089 | int arg7 = (int) 0 ; | |
11090 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11091 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11092 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11093 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11094 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11095 | wxRadioBox *result; |
423f194a | 11096 | bool temp3 = False ; |
d14a1e28 RD |
11097 | wxPoint temp4 ; |
11098 | wxSize temp5 ; | |
db914595 | 11099 | bool temp6 = False ; |
423f194a | 11100 | bool temp10 = False ; |
d14a1e28 | 11101 | PyObject * obj0 = 0 ; |
8edf1c75 | 11102 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11103 | PyObject * obj2 = 0 ; |
11104 | PyObject * obj3 = 0 ; | |
11105 | PyObject * obj4 = 0 ; | |
11106 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
11107 | PyObject * obj6 = 0 ; |
11108 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11109 | PyObject * obj8 = 0 ; |
11110 | PyObject * obj9 = 0 ; | |
11111 | char *kwnames[] = { | |
8edf1c75 | 11112 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11113 | }; |
11114 | ||
8edf1c75 | 11115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
11116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11118 | arg2 = (int) SWIG_AsInt(obj1); | |
11119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11120 | { |
11121 | arg3 = wxString_in_helper(obj2); | |
11122 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11123 | temp3 = True; |
d14a1e28 RD |
11124 | } |
11125 | if (obj3) { | |
11126 | { | |
11127 | arg4 = &temp4; | |
11128 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11129 | } | |
11130 | } | |
11131 | if (obj4) { | |
11132 | { | |
11133 | arg5 = &temp5; | |
11134 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11135 | } | |
11136 | } | |
11137 | if (obj5) { | |
11138 | { | |
4e760a36 RD |
11139 | if (! PySequence_Check(obj5)) { |
11140 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11141 | SWIG_fail; | |
11142 | } | |
11143 | arg6 = new wxArrayString; | |
db914595 | 11144 | temp6 = True; |
4e760a36 RD |
11145 | int i, len=PySequence_Length(obj5); |
11146 | for (i=0; i<len; i++) { | |
11147 | PyObject* item = PySequence_GetItem(obj5, i); | |
11148 | #if wxUSE_UNICODE | |
11149 | PyObject* str = PyObject_Unicode(item); | |
11150 | #else | |
11151 | PyObject* str = PyObject_Str(item); | |
11152 | #endif | |
74a57fcd | 11153 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
11154 | arg6->Add(Py2wxString(str)); |
11155 | Py_DECREF(item); | |
11156 | Py_DECREF(str); | |
11157 | } | |
d14a1e28 RD |
11158 | } |
11159 | } | |
8edf1c75 | 11160 | if (obj6) { |
2f4c0a16 RD |
11161 | arg7 = (int) SWIG_AsInt(obj6); |
11162 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11163 | } |
11164 | if (obj7) { | |
2f4c0a16 RD |
11165 | arg8 = (long) SWIG_AsLong(obj7); |
11166 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11167 | } |
d14a1e28 | 11168 | if (obj8) { |
2f4c0a16 RD |
11169 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11170 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11171 | SWIG_fail; | |
4e760a36 | 11172 | if (arg9 == NULL) { |
2f4c0a16 RD |
11173 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11174 | SWIG_fail; | |
d14a1e28 RD |
11175 | } |
11176 | } | |
11177 | if (obj9) { | |
11178 | { | |
4e760a36 RD |
11179 | arg10 = wxString_in_helper(obj9); |
11180 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11181 | temp10 = True; |
d14a1e28 RD |
11182 | } |
11183 | } | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11186 | 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); |
d14a1e28 RD |
11187 | |
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
2f4c0a16 | 11191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11192 | { |
11193 | if (temp3) | |
11194 | delete arg3; | |
11195 | } | |
11196 | { | |
db914595 | 11197 | if (temp6) delete arg6; |
d14a1e28 RD |
11198 | } |
11199 | { | |
11200 | if (temp10) | |
4e760a36 | 11201 | delete arg10; |
d14a1e28 RD |
11202 | } |
11203 | return resultobj; | |
11204 | fail: | |
11205 | { | |
11206 | if (temp3) | |
11207 | delete arg3; | |
11208 | } | |
11209 | { | |
db914595 | 11210 | if (temp6) delete arg6; |
d14a1e28 RD |
11211 | } |
11212 | { | |
11213 | if (temp10) | |
4e760a36 | 11214 | delete arg10; |
d14a1e28 RD |
11215 | } |
11216 | return NULL; | |
11217 | } | |
11218 | ||
11219 | ||
11220 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11221 | PyObject *resultobj; | |
11222 | wxRadioBox *result; | |
11223 | char *kwnames[] = { | |
11224 | NULL | |
11225 | }; | |
11226 | ||
11227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11228 | { | |
11229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11230 | result = (wxRadioBox *)new wxRadioBox(); | |
11231 | ||
11232 | wxPyEndAllowThreads(__tstate); | |
11233 | if (PyErr_Occurred()) SWIG_fail; | |
11234 | } | |
2f4c0a16 | 11235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11236 | return resultobj; |
11237 | fail: | |
11238 | return NULL; | |
11239 | } | |
11240 | ||
11241 | ||
11242 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11243 | PyObject *resultobj; | |
11244 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11245 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11246 | int arg3 ; |
d14a1e28 RD |
11247 | wxString *arg4 = 0 ; |
11248 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11249 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11250 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11251 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
11252 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11253 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11254 | int arg8 = (int) 0 ; | |
11255 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11256 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11257 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11258 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11259 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11260 | bool result; |
423f194a | 11261 | bool temp4 = False ; |
d14a1e28 RD |
11262 | wxPoint temp5 ; |
11263 | wxSize temp6 ; | |
db914595 | 11264 | bool temp7 = False ; |
423f194a | 11265 | bool temp11 = False ; |
d14a1e28 RD |
11266 | PyObject * obj0 = 0 ; |
11267 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11268 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11269 | PyObject * obj3 = 0 ; |
11270 | PyObject * obj4 = 0 ; | |
11271 | PyObject * obj5 = 0 ; | |
11272 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
11273 | PyObject * obj7 = 0 ; |
11274 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11275 | PyObject * obj9 = 0 ; |
11276 | PyObject * obj10 = 0 ; | |
11277 | char *kwnames[] = { | |
8edf1c75 | 11278 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11279 | }; |
11280 | ||
8edf1c75 | 11281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
2f4c0a16 RD |
11282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11284 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11285 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11286 | arg3 = (int) SWIG_AsInt(obj2); | |
11287 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11288 | { |
11289 | arg4 = wxString_in_helper(obj3); | |
11290 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11291 | temp4 = True; |
d14a1e28 RD |
11292 | } |
11293 | if (obj4) { | |
11294 | { | |
11295 | arg5 = &temp5; | |
11296 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11297 | } | |
11298 | } | |
11299 | if (obj5) { | |
11300 | { | |
11301 | arg6 = &temp6; | |
11302 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11303 | } | |
11304 | } | |
11305 | if (obj6) { | |
11306 | { | |
4e760a36 RD |
11307 | if (! PySequence_Check(obj6)) { |
11308 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11309 | SWIG_fail; | |
11310 | } | |
11311 | arg7 = new wxArrayString; | |
db914595 | 11312 | temp7 = True; |
4e760a36 RD |
11313 | int i, len=PySequence_Length(obj6); |
11314 | for (i=0; i<len; i++) { | |
11315 | PyObject* item = PySequence_GetItem(obj6, i); | |
11316 | #if wxUSE_UNICODE | |
11317 | PyObject* str = PyObject_Unicode(item); | |
11318 | #else | |
11319 | PyObject* str = PyObject_Str(item); | |
11320 | #endif | |
74a57fcd | 11321 | if (PyErr_Occurred()) SWIG_fail; |
4e760a36 RD |
11322 | arg7->Add(Py2wxString(str)); |
11323 | Py_DECREF(item); | |
11324 | Py_DECREF(str); | |
11325 | } | |
d14a1e28 RD |
11326 | } |
11327 | } | |
8edf1c75 | 11328 | if (obj7) { |
2f4c0a16 RD |
11329 | arg8 = (int) SWIG_AsInt(obj7); |
11330 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11331 | } |
11332 | if (obj8) { | |
2f4c0a16 RD |
11333 | arg9 = (long) SWIG_AsLong(obj8); |
11334 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11335 | } |
d14a1e28 | 11336 | if (obj9) { |
2f4c0a16 RD |
11337 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11339 | SWIG_fail; | |
4e760a36 | 11340 | if (arg10 == NULL) { |
2f4c0a16 RD |
11341 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11342 | SWIG_fail; | |
d14a1e28 RD |
11343 | } |
11344 | } | |
11345 | if (obj10) { | |
11346 | { | |
4e760a36 RD |
11347 | arg11 = wxString_in_helper(obj10); |
11348 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11349 | temp11 = True; |
d14a1e28 RD |
11350 | } |
11351 | } | |
11352 | { | |
11353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11354 | 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); |
d14a1e28 RD |
11355 | |
11356 | wxPyEndAllowThreads(__tstate); | |
11357 | if (PyErr_Occurred()) SWIG_fail; | |
11358 | } | |
4f89f6a3 RD |
11359 | { |
11360 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11361 | } | |
d14a1e28 RD |
11362 | { |
11363 | if (temp4) | |
11364 | delete arg4; | |
11365 | } | |
11366 | { | |
db914595 | 11367 | if (temp7) delete arg7; |
d14a1e28 RD |
11368 | } |
11369 | { | |
11370 | if (temp11) | |
4e760a36 | 11371 | delete arg11; |
d14a1e28 RD |
11372 | } |
11373 | return resultobj; | |
11374 | fail: | |
11375 | { | |
11376 | if (temp4) | |
11377 | delete arg4; | |
11378 | } | |
11379 | { | |
db914595 | 11380 | if (temp7) delete arg7; |
d14a1e28 RD |
11381 | } |
11382 | { | |
11383 | if (temp11) | |
4e760a36 | 11384 | delete arg11; |
d14a1e28 RD |
11385 | } |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11393 | int arg2 ; | |
11394 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11395 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11396 | char *kwnames[] = { |
11397 | (char *) "self",(char *) "n", NULL | |
11398 | }; | |
11399 | ||
8edf1c75 | 11400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11403 | arg2 = (int) SWIG_AsInt(obj1); | |
11404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11405 | { |
11406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11407 | (arg1)->SetSelection(arg2); | |
11408 | ||
11409 | wxPyEndAllowThreads(__tstate); | |
11410 | if (PyErr_Occurred()) SWIG_fail; | |
11411 | } | |
11412 | Py_INCREF(Py_None); resultobj = Py_None; | |
11413 | return resultobj; | |
11414 | fail: | |
11415 | return NULL; | |
11416 | } | |
11417 | ||
11418 | ||
11419 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11420 | PyObject *resultobj; | |
11421 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11422 | int result; | |
11423 | PyObject * obj0 = 0 ; | |
11424 | char *kwnames[] = { | |
11425 | (char *) "self", NULL | |
11426 | }; | |
11427 | ||
11428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11431 | { |
11432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11433 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11434 | ||
11435 | wxPyEndAllowThreads(__tstate); | |
11436 | if (PyErr_Occurred()) SWIG_fail; | |
11437 | } | |
2f4c0a16 | 11438 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11439 | return resultobj; |
11440 | fail: | |
11441 | return NULL; | |
11442 | } | |
11443 | ||
11444 | ||
11445 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11446 | PyObject *resultobj; | |
11447 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11448 | wxString result; | |
11449 | PyObject * obj0 = 0 ; | |
11450 | char *kwnames[] = { | |
11451 | (char *) "self", NULL | |
11452 | }; | |
11453 | ||
11454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11457 | { |
11458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11459 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11460 | ||
11461 | wxPyEndAllowThreads(__tstate); | |
11462 | if (PyErr_Occurred()) SWIG_fail; | |
11463 | } | |
11464 | { | |
11465 | #if wxUSE_UNICODE | |
11466 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11467 | #else | |
11468 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11469 | #endif | |
11470 | } | |
11471 | return resultobj; | |
11472 | fail: | |
11473 | return NULL; | |
11474 | } | |
11475 | ||
11476 | ||
11477 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11478 | PyObject *resultobj; | |
11479 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11480 | wxString *arg2 = 0 ; | |
11481 | bool result; | |
423f194a | 11482 | bool temp2 = False ; |
d14a1e28 RD |
11483 | PyObject * obj0 = 0 ; |
11484 | PyObject * obj1 = 0 ; | |
11485 | char *kwnames[] = { | |
11486 | (char *) "self",(char *) "s", NULL | |
11487 | }; | |
11488 | ||
11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11492 | { |
11493 | arg2 = wxString_in_helper(obj1); | |
11494 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11495 | temp2 = True; |
d14a1e28 RD |
11496 | } |
11497 | { | |
11498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11499 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11500 | ||
11501 | wxPyEndAllowThreads(__tstate); | |
11502 | if (PyErr_Occurred()) SWIG_fail; | |
11503 | } | |
4f89f6a3 RD |
11504 | { |
11505 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11506 | } | |
d14a1e28 RD |
11507 | { |
11508 | if (temp2) | |
11509 | delete arg2; | |
11510 | } | |
11511 | return resultobj; | |
11512 | fail: | |
11513 | { | |
11514 | if (temp2) | |
11515 | delete arg2; | |
11516 | } | |
11517 | return NULL; | |
11518 | } | |
11519 | ||
11520 | ||
11521 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11522 | PyObject *resultobj; | |
11523 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11524 | int result; | |
11525 | PyObject * obj0 = 0 ; | |
11526 | char *kwnames[] = { | |
11527 | (char *) "self", NULL | |
11528 | }; | |
11529 | ||
11530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11533 | { |
11534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11535 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11536 | ||
11537 | wxPyEndAllowThreads(__tstate); | |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
11539 | } | |
2f4c0a16 | 11540 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11541 | return resultobj; |
11542 | fail: | |
11543 | return NULL; | |
11544 | } | |
11545 | ||
11546 | ||
11547 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11548 | PyObject *resultobj; | |
11549 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11550 | wxString *arg2 = 0 ; | |
11551 | int result; | |
423f194a | 11552 | bool temp2 = False ; |
d14a1e28 RD |
11553 | PyObject * obj0 = 0 ; |
11554 | PyObject * obj1 = 0 ; | |
11555 | char *kwnames[] = { | |
11556 | (char *) "self",(char *) "s", NULL | |
11557 | }; | |
11558 | ||
11559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11560 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11561 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11562 | { |
11563 | arg2 = wxString_in_helper(obj1); | |
11564 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11565 | temp2 = True; |
d14a1e28 RD |
11566 | } |
11567 | { | |
11568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11569 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11570 | ||
11571 | wxPyEndAllowThreads(__tstate); | |
11572 | if (PyErr_Occurred()) SWIG_fail; | |
11573 | } | |
2f4c0a16 | 11574 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11575 | { |
11576 | if (temp2) | |
11577 | delete arg2; | |
11578 | } | |
11579 | return resultobj; | |
11580 | fail: | |
11581 | { | |
11582 | if (temp2) | |
11583 | delete arg2; | |
11584 | } | |
11585 | return NULL; | |
11586 | } | |
11587 | ||
11588 | ||
11589 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11590 | PyObject *resultobj; | |
11591 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11592 | int arg2 ; | |
11593 | wxString result; | |
11594 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11596 | char *kwnames[] = { |
11597 | (char *) "self",(char *) "n", NULL | |
11598 | }; | |
11599 | ||
8edf1c75 | 11600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11603 | arg2 = (int) SWIG_AsInt(obj1); | |
11604 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11605 | { |
11606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11607 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11608 | ||
11609 | wxPyEndAllowThreads(__tstate); | |
11610 | if (PyErr_Occurred()) SWIG_fail; | |
11611 | } | |
11612 | { | |
11613 | #if wxUSE_UNICODE | |
11614 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11615 | #else | |
11616 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11617 | #endif | |
11618 | } | |
11619 | return resultobj; | |
11620 | fail: | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
11625 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj; | |
11627 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11628 | int arg2 ; | |
11629 | wxString *arg3 = 0 ; | |
423f194a | 11630 | bool temp3 = False ; |
d14a1e28 | 11631 | PyObject * obj0 = 0 ; |
8edf1c75 | 11632 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11633 | PyObject * obj2 = 0 ; |
11634 | char *kwnames[] = { | |
11635 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11636 | }; | |
11637 | ||
8edf1c75 | 11638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11641 | arg2 = (int) SWIG_AsInt(obj1); | |
11642 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11643 | { |
11644 | arg3 = wxString_in_helper(obj2); | |
11645 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11646 | temp3 = True; |
d14a1e28 RD |
11647 | } |
11648 | { | |
11649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11650 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11651 | ||
11652 | wxPyEndAllowThreads(__tstate); | |
11653 | if (PyErr_Occurred()) SWIG_fail; | |
11654 | } | |
11655 | Py_INCREF(Py_None); resultobj = Py_None; | |
11656 | { | |
11657 | if (temp3) | |
11658 | delete arg3; | |
11659 | } | |
11660 | return resultobj; | |
11661 | fail: | |
11662 | { | |
11663 | if (temp3) | |
11664 | delete arg3; | |
11665 | } | |
11666 | return NULL; | |
11667 | } | |
11668 | ||
11669 | ||
11670 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11671 | PyObject *resultobj; | |
11672 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11673 | int arg2 ; | |
423f194a | 11674 | bool arg3 = (bool) True ; |
d14a1e28 | 11675 | PyObject * obj0 = 0 ; |
8edf1c75 | 11676 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11677 | PyObject * obj2 = 0 ; |
11678 | char *kwnames[] = { | |
11679 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11680 | }; | |
11681 | ||
8edf1c75 | 11682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11685 | arg2 = (int) SWIG_AsInt(obj1); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11687 | if (obj2) { |
2f4c0a16 RD |
11688 | arg3 = (bool) SWIG_AsBool(obj2); |
11689 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11690 | } |
11691 | { | |
11692 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11693 | (arg1)->Enable(arg2,arg3); | |
11694 | ||
11695 | wxPyEndAllowThreads(__tstate); | |
11696 | if (PyErr_Occurred()) SWIG_fail; | |
11697 | } | |
11698 | Py_INCREF(Py_None); resultobj = Py_None; | |
11699 | return resultobj; | |
11700 | fail: | |
11701 | return NULL; | |
11702 | } | |
11703 | ||
11704 | ||
11705 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11706 | PyObject *resultobj; | |
11707 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11708 | int arg2 ; | |
423f194a | 11709 | bool arg3 = (bool) True ; |
d14a1e28 | 11710 | PyObject * obj0 = 0 ; |
8edf1c75 | 11711 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11712 | PyObject * obj2 = 0 ; |
11713 | char *kwnames[] = { | |
11714 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11715 | }; | |
11716 | ||
8edf1c75 | 11717 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11718 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11719 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11720 | arg2 = (int) SWIG_AsInt(obj1); | |
11721 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11722 | if (obj2) { |
2f4c0a16 RD |
11723 | arg3 = (bool) SWIG_AsBool(obj2); |
11724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11725 | } |
11726 | { | |
11727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11728 | (arg1)->Show(arg2,arg3); | |
11729 | ||
11730 | wxPyEndAllowThreads(__tstate); | |
11731 | if (PyErr_Occurred()) SWIG_fail; | |
11732 | } | |
11733 | Py_INCREF(Py_None); resultobj = Py_None; | |
11734 | return resultobj; | |
11735 | fail: | |
11736 | return NULL; | |
11737 | } | |
11738 | ||
11739 | ||
11740 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11741 | PyObject *resultobj; | |
11742 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11743 | int result; | |
11744 | PyObject * obj0 = 0 ; | |
11745 | char *kwnames[] = { | |
11746 | (char *) "self", NULL | |
11747 | }; | |
11748 | ||
11749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11752 | { |
11753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11754 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11755 | ||
11756 | wxPyEndAllowThreads(__tstate); | |
11757 | if (PyErr_Occurred()) SWIG_fail; | |
11758 | } | |
2f4c0a16 | 11759 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11760 | return resultobj; |
11761 | fail: | |
11762 | return NULL; | |
11763 | } | |
11764 | ||
11765 | ||
11766 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11767 | PyObject *resultobj; | |
11768 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11769 | int result; | |
11770 | PyObject * obj0 = 0 ; | |
11771 | char *kwnames[] = { | |
11772 | (char *) "self", NULL | |
11773 | }; | |
11774 | ||
11775 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11776 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11777 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11778 | { |
11779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11780 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11781 | ||
11782 | wxPyEndAllowThreads(__tstate); | |
11783 | if (PyErr_Occurred()) SWIG_fail; | |
11784 | } | |
2f4c0a16 | 11785 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11786 | return resultobj; |
11787 | fail: | |
11788 | return NULL; | |
11789 | } | |
11790 | ||
11791 | ||
11792 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11793 | PyObject *resultobj; | |
11794 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11795 | int arg2 ; | |
11796 | int arg3 ; | |
11797 | long arg4 ; | |
11798 | int result; | |
11799 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11800 | PyObject * obj1 = 0 ; |
11801 | PyObject * obj2 = 0 ; | |
11802 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11803 | char *kwnames[] = { |
11804 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11805 | }; | |
11806 | ||
8edf1c75 | 11807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11810 | arg2 = (int) SWIG_AsInt(obj1); | |
11811 | if (PyErr_Occurred()) SWIG_fail; | |
11812 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
11813 | if (PyErr_Occurred()) SWIG_fail; | |
11814 | arg4 = (long) SWIG_AsLong(obj3); | |
11815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11816 | { |
11817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11818 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11819 | ||
11820 | wxPyEndAllowThreads(__tstate); | |
11821 | if (PyErr_Occurred()) SWIG_fail; | |
11822 | } | |
2f4c0a16 | 11823 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11824 | return resultobj; |
11825 | fail: | |
11826 | return NULL; | |
11827 | } | |
11828 | ||
11829 | ||
11830 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11831 | PyObject *obj; | |
11832 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11833 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11834 | Py_INCREF(obj); | |
11835 | return Py_BuildValue((char *)""); | |
11836 | } | |
11837 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11838 | PyObject *resultobj; | |
11839 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11840 | int arg2 ; |
d14a1e28 RD |
11841 | wxString *arg3 = 0 ; |
11842 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11843 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11844 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11845 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11846 | long arg6 = (long) 0 ; | |
11847 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11848 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11849 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11850 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11851 | wxRadioButton *result; | |
423f194a | 11852 | bool temp3 = False ; |
d14a1e28 RD |
11853 | wxPoint temp4 ; |
11854 | wxSize temp5 ; | |
423f194a | 11855 | bool temp8 = False ; |
d14a1e28 | 11856 | PyObject * obj0 = 0 ; |
8edf1c75 | 11857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11858 | PyObject * obj2 = 0 ; |
11859 | PyObject * obj3 = 0 ; | |
11860 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11861 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11862 | PyObject * obj6 = 0 ; |
11863 | PyObject * obj7 = 0 ; | |
11864 | char *kwnames[] = { | |
11865 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11866 | }; | |
11867 | ||
8edf1c75 | 11868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
11869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11871 | arg2 = (int) SWIG_AsInt(obj1); | |
11872 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11873 | { |
11874 | arg3 = wxString_in_helper(obj2); | |
11875 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11876 | temp3 = True; |
d14a1e28 RD |
11877 | } |
11878 | if (obj3) { | |
11879 | { | |
11880 | arg4 = &temp4; | |
11881 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11882 | } | |
11883 | } | |
11884 | if (obj4) { | |
11885 | { | |
11886 | arg5 = &temp5; | |
11887 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11888 | } | |
11889 | } | |
8edf1c75 | 11890 | if (obj5) { |
2f4c0a16 RD |
11891 | arg6 = (long) SWIG_AsLong(obj5); |
11892 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11893 | } |
d14a1e28 | 11894 | if (obj6) { |
2f4c0a16 RD |
11895 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
11896 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11897 | SWIG_fail; | |
d14a1e28 | 11898 | if (arg7 == NULL) { |
2f4c0a16 RD |
11899 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11900 | SWIG_fail; | |
d14a1e28 RD |
11901 | } |
11902 | } | |
11903 | if (obj7) { | |
11904 | { | |
11905 | arg8 = wxString_in_helper(obj7); | |
11906 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11907 | temp8 = True; |
d14a1e28 RD |
11908 | } |
11909 | } | |
11910 | { | |
11911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11912 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11913 | ||
11914 | wxPyEndAllowThreads(__tstate); | |
11915 | if (PyErr_Occurred()) SWIG_fail; | |
11916 | } | |
2f4c0a16 | 11917 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11918 | { |
11919 | if (temp3) | |
11920 | delete arg3; | |
11921 | } | |
11922 | { | |
11923 | if (temp8) | |
11924 | delete arg8; | |
11925 | } | |
11926 | return resultobj; | |
11927 | fail: | |
11928 | { | |
11929 | if (temp3) | |
11930 | delete arg3; | |
11931 | } | |
11932 | { | |
11933 | if (temp8) | |
11934 | delete arg8; | |
11935 | } | |
11936 | return NULL; | |
11937 | } | |
11938 | ||
11939 | ||
11940 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11941 | PyObject *resultobj; | |
11942 | wxRadioButton *result; | |
11943 | char *kwnames[] = { | |
11944 | NULL | |
11945 | }; | |
11946 | ||
11947 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11948 | { | |
11949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11950 | result = (wxRadioButton *)new wxRadioButton(); | |
11951 | ||
11952 | wxPyEndAllowThreads(__tstate); | |
11953 | if (PyErr_Occurred()) SWIG_fail; | |
11954 | } | |
2f4c0a16 | 11955 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11956 | return resultobj; |
11957 | fail: | |
11958 | return NULL; | |
11959 | } | |
11960 | ||
11961 | ||
11962 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11963 | PyObject *resultobj; | |
11964 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11965 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11966 | int arg3 ; |
d14a1e28 RD |
11967 | wxString *arg4 = 0 ; |
11968 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11969 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11970 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11971 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11972 | long arg7 = (long) 0 ; | |
11973 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11974 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11975 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11976 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11977 | bool result; | |
423f194a | 11978 | bool temp4 = False ; |
d14a1e28 RD |
11979 | wxPoint temp5 ; |
11980 | wxSize temp6 ; | |
423f194a | 11981 | bool temp9 = False ; |
d14a1e28 RD |
11982 | PyObject * obj0 = 0 ; |
11983 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11984 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11985 | PyObject * obj3 = 0 ; |
11986 | PyObject * obj4 = 0 ; | |
11987 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11988 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11989 | PyObject * obj7 = 0 ; |
11990 | PyObject * obj8 = 0 ; | |
11991 | char *kwnames[] = { | |
11992 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11993 | }; | |
11994 | ||
8edf1c75 | 11995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
11996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
11997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11998 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12000 | arg3 = (int) SWIG_AsInt(obj2); | |
12001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12002 | { |
12003 | arg4 = wxString_in_helper(obj3); | |
12004 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 12005 | temp4 = True; |
d14a1e28 RD |
12006 | } |
12007 | if (obj4) { | |
12008 | { | |
12009 | arg5 = &temp5; | |
12010 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12011 | } | |
12012 | } | |
12013 | if (obj5) { | |
12014 | { | |
12015 | arg6 = &temp6; | |
12016 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12017 | } | |
12018 | } | |
8edf1c75 | 12019 | if (obj6) { |
2f4c0a16 RD |
12020 | arg7 = (long) SWIG_AsLong(obj6); |
12021 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12022 | } |
d14a1e28 | 12023 | if (obj7) { |
2f4c0a16 RD |
12024 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12026 | SWIG_fail; | |
d14a1e28 | 12027 | if (arg8 == NULL) { |
2f4c0a16 RD |
12028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12029 | SWIG_fail; | |
d14a1e28 RD |
12030 | } |
12031 | } | |
12032 | if (obj8) { | |
12033 | { | |
12034 | arg9 = wxString_in_helper(obj8); | |
12035 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 12036 | temp9 = True; |
d14a1e28 RD |
12037 | } |
12038 | } | |
12039 | { | |
12040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12041 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12042 | ||
12043 | wxPyEndAllowThreads(__tstate); | |
12044 | if (PyErr_Occurred()) SWIG_fail; | |
12045 | } | |
4f89f6a3 RD |
12046 | { |
12047 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12048 | } | |
d14a1e28 RD |
12049 | { |
12050 | if (temp4) | |
12051 | delete arg4; | |
12052 | } | |
12053 | { | |
12054 | if (temp9) | |
12055 | delete arg9; | |
12056 | } | |
12057 | return resultobj; | |
12058 | fail: | |
12059 | { | |
12060 | if (temp4) | |
12061 | delete arg4; | |
12062 | } | |
12063 | { | |
12064 | if (temp9) | |
12065 | delete arg9; | |
12066 | } | |
12067 | return NULL; | |
12068 | } | |
12069 | ||
12070 | ||
12071 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12072 | PyObject *resultobj; | |
12073 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12074 | bool result; | |
12075 | PyObject * obj0 = 0 ; | |
12076 | char *kwnames[] = { | |
12077 | (char *) "self", NULL | |
12078 | }; | |
12079 | ||
12080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12083 | { |
12084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12085 | result = (bool)(arg1)->GetValue(); | |
12086 | ||
12087 | wxPyEndAllowThreads(__tstate); | |
12088 | if (PyErr_Occurred()) SWIG_fail; | |
12089 | } | |
4f89f6a3 RD |
12090 | { |
12091 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12092 | } | |
d14a1e28 RD |
12093 | return resultobj; |
12094 | fail: | |
12095 | return NULL; | |
12096 | } | |
12097 | ||
12098 | ||
12099 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12100 | PyObject *resultobj; | |
12101 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12102 | bool arg2 ; | |
12103 | PyObject * obj0 = 0 ; | |
12104 | PyObject * obj1 = 0 ; | |
12105 | char *kwnames[] = { | |
12106 | (char *) "self",(char *) "value", NULL | |
12107 | }; | |
12108 | ||
12109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12112 | arg2 = (bool) SWIG_AsBool(obj1); | |
12113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12114 | { |
12115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12116 | (arg1)->SetValue(arg2); | |
12117 | ||
12118 | wxPyEndAllowThreads(__tstate); | |
12119 | if (PyErr_Occurred()) SWIG_fail; | |
12120 | } | |
12121 | Py_INCREF(Py_None); resultobj = Py_None; | |
12122 | return resultobj; | |
12123 | fail: | |
12124 | return NULL; | |
12125 | } | |
12126 | ||
12127 | ||
12128 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
12129 | PyObject *obj; | |
12130 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12131 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12132 | Py_INCREF(obj); | |
12133 | return Py_BuildValue((char *)""); | |
12134 | } | |
2f4c0a16 | 12135 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
d03fd34d RD |
12136 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12137 | return 1; | |
12138 | } | |
12139 | ||
12140 | ||
12141 | static PyObject *_wrap_SliderNameStr_get() { | |
12142 | PyObject *pyobj; | |
12143 | ||
12144 | { | |
12145 | #if wxUSE_UNICODE | |
12146 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12147 | #else | |
12148 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12149 | #endif | |
12150 | } | |
12151 | return pyobj; | |
12152 | } | |
12153 | ||
12154 | ||
d14a1e28 RD |
12155 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12156 | PyObject *resultobj; | |
12157 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12158 | int arg2 ; |
d14a1e28 RD |
12159 | int arg3 ; |
12160 | int arg4 ; | |
12161 | int arg5 ; | |
12162 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12163 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12164 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12165 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12166 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12167 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12168 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12169 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12170 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12171 | wxSlider *result; | |
12172 | wxPoint temp6 ; | |
12173 | wxSize temp7 ; | |
423f194a | 12174 | bool temp10 = False ; |
d14a1e28 | 12175 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12176 | PyObject * obj1 = 0 ; |
12177 | PyObject * obj2 = 0 ; | |
12178 | PyObject * obj3 = 0 ; | |
12179 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12180 | PyObject * obj5 = 0 ; |
12181 | PyObject * obj6 = 0 ; | |
8edf1c75 | 12182 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12183 | PyObject * obj8 = 0 ; |
12184 | PyObject * obj9 = 0 ; | |
12185 | char *kwnames[] = { | |
8edf1c75 | 12186 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12187 | }; |
12188 | ||
8edf1c75 | 12189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
12190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12192 | arg2 = (int) SWIG_AsInt(obj1); | |
12193 | if (PyErr_Occurred()) SWIG_fail; | |
12194 | arg3 = (int) SWIG_AsInt(obj2); | |
12195 | if (PyErr_Occurred()) SWIG_fail; | |
12196 | arg4 = (int) SWIG_AsInt(obj3); | |
12197 | if (PyErr_Occurred()) SWIG_fail; | |
12198 | arg5 = (int) SWIG_AsInt(obj4); | |
12199 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12200 | if (obj5) { |
12201 | { | |
12202 | arg6 = &temp6; | |
12203 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12204 | } | |
12205 | } | |
12206 | if (obj6) { | |
12207 | { | |
12208 | arg7 = &temp7; | |
12209 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12210 | } | |
12211 | } | |
8edf1c75 | 12212 | if (obj7) { |
2f4c0a16 RD |
12213 | arg8 = (long) SWIG_AsLong(obj7); |
12214 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12215 | } |
d14a1e28 | 12216 | if (obj8) { |
2f4c0a16 RD |
12217 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12219 | SWIG_fail; | |
d14a1e28 | 12220 | if (arg9 == NULL) { |
2f4c0a16 RD |
12221 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12222 | SWIG_fail; | |
d14a1e28 RD |
12223 | } |
12224 | } | |
12225 | if (obj9) { | |
12226 | { | |
12227 | arg10 = wxString_in_helper(obj9); | |
12228 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 12229 | temp10 = True; |
d14a1e28 RD |
12230 | } |
12231 | } | |
12232 | { | |
12233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12234 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12235 | ||
12236 | wxPyEndAllowThreads(__tstate); | |
12237 | if (PyErr_Occurred()) SWIG_fail; | |
12238 | } | |
2f4c0a16 | 12239 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12240 | { |
12241 | if (temp10) | |
12242 | delete arg10; | |
12243 | } | |
12244 | return resultobj; | |
12245 | fail: | |
12246 | { | |
12247 | if (temp10) | |
12248 | delete arg10; | |
12249 | } | |
12250 | return NULL; | |
12251 | } | |
12252 | ||
12253 | ||
12254 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12255 | PyObject *resultobj; | |
12256 | wxSlider *result; | |
12257 | char *kwnames[] = { | |
12258 | NULL | |
12259 | }; | |
12260 | ||
12261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12262 | { | |
12263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12264 | result = (wxSlider *)new wxSlider(); | |
12265 | ||
12266 | wxPyEndAllowThreads(__tstate); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | } | |
2f4c0a16 | 12269 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12270 | return resultobj; |
12271 | fail: | |
12272 | return NULL; | |
12273 | } | |
12274 | ||
12275 | ||
12276 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12277 | PyObject *resultobj; | |
12278 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12279 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12280 | int arg3 ; |
d14a1e28 RD |
12281 | int arg4 ; |
12282 | int arg5 ; | |
12283 | int arg6 ; | |
12284 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12285 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12286 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12287 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12288 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12289 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12290 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12291 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12292 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12293 | bool result; | |
12294 | wxPoint temp7 ; | |
12295 | wxSize temp8 ; | |
423f194a | 12296 | bool temp11 = False ; |
d14a1e28 RD |
12297 | PyObject * obj0 = 0 ; |
12298 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12299 | PyObject * obj2 = 0 ; |
12300 | PyObject * obj3 = 0 ; | |
12301 | PyObject * obj4 = 0 ; | |
12302 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12303 | PyObject * obj6 = 0 ; |
12304 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12305 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12306 | PyObject * obj9 = 0 ; |
12307 | PyObject * obj10 = 0 ; | |
12308 | char *kwnames[] = { | |
8edf1c75 | 12309 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12310 | }; |
12311 | ||
8edf1c75 | 12312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOOO|OOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
2f4c0a16 RD |
12313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12317 | arg3 = (int) SWIG_AsInt(obj2); | |
12318 | if (PyErr_Occurred()) SWIG_fail; | |
12319 | arg4 = (int) SWIG_AsInt(obj3); | |
12320 | if (PyErr_Occurred()) SWIG_fail; | |
12321 | arg5 = (int) SWIG_AsInt(obj4); | |
12322 | if (PyErr_Occurred()) SWIG_fail; | |
12323 | arg6 = (int) SWIG_AsInt(obj5); | |
12324 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12325 | if (obj6) { |
12326 | { | |
12327 | arg7 = &temp7; | |
12328 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12329 | } | |
12330 | } | |
12331 | if (obj7) { | |
12332 | { | |
12333 | arg8 = &temp8; | |
12334 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12335 | } | |
12336 | } | |
8edf1c75 | 12337 | if (obj8) { |
2f4c0a16 RD |
12338 | arg9 = (long) SWIG_AsLong(obj8); |
12339 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12340 | } |
d14a1e28 | 12341 | if (obj9) { |
2f4c0a16 RD |
12342 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12344 | SWIG_fail; | |
d14a1e28 | 12345 | if (arg10 == NULL) { |
2f4c0a16 RD |
12346 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12347 | SWIG_fail; | |
d14a1e28 RD |
12348 | } |
12349 | } | |
12350 | if (obj10) { | |
12351 | { | |
12352 | arg11 = wxString_in_helper(obj10); | |
12353 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12354 | temp11 = True; |
d14a1e28 RD |
12355 | } |
12356 | } | |
12357 | { | |
12358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12359 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12360 | ||
12361 | wxPyEndAllowThreads(__tstate); | |
12362 | if (PyErr_Occurred()) SWIG_fail; | |
12363 | } | |
4f89f6a3 RD |
12364 | { |
12365 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12366 | } | |
d14a1e28 RD |
12367 | { |
12368 | if (temp11) | |
12369 | delete arg11; | |
12370 | } | |
12371 | return resultobj; | |
12372 | fail: | |
12373 | { | |
12374 | if (temp11) | |
12375 | delete arg11; | |
12376 | } | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12384 | int result; | |
12385 | PyObject * obj0 = 0 ; | |
12386 | char *kwnames[] = { | |
12387 | (char *) "self", NULL | |
12388 | }; | |
12389 | ||
12390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12393 | { |
12394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12395 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12396 | ||
12397 | wxPyEndAllowThreads(__tstate); | |
12398 | if (PyErr_Occurred()) SWIG_fail; | |
12399 | } | |
2f4c0a16 | 12400 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12401 | return resultobj; |
12402 | fail: | |
12403 | return NULL; | |
12404 | } | |
12405 | ||
12406 | ||
12407 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12408 | PyObject *resultobj; | |
12409 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12410 | int arg2 ; | |
12411 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12412 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12413 | char *kwnames[] = { |
12414 | (char *) "self",(char *) "value", NULL | |
12415 | }; | |
12416 | ||
8edf1c75 | 12417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12420 | arg2 = (int) SWIG_AsInt(obj1); | |
12421 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12422 | { |
12423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12424 | (arg1)->SetValue(arg2); | |
12425 | ||
12426 | wxPyEndAllowThreads(__tstate); | |
12427 | if (PyErr_Occurred()) SWIG_fail; | |
12428 | } | |
12429 | Py_INCREF(Py_None); resultobj = Py_None; | |
12430 | return resultobj; | |
12431 | fail: | |
12432 | return NULL; | |
12433 | } | |
12434 | ||
12435 | ||
12436 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12437 | PyObject *resultobj; | |
12438 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12439 | int arg2 ; | |
12440 | int arg3 ; | |
12441 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12442 | PyObject * obj1 = 0 ; |
12443 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12444 | char *kwnames[] = { |
12445 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12446 | }; | |
12447 | ||
8edf1c75 | 12448 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12449 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12450 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12451 | arg2 = (int) SWIG_AsInt(obj1); | |
12452 | if (PyErr_Occurred()) SWIG_fail; | |
12453 | arg3 = (int) SWIG_AsInt(obj2); | |
12454 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12455 | { |
12456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12457 | (arg1)->SetRange(arg2,arg3); | |
12458 | ||
12459 | wxPyEndAllowThreads(__tstate); | |
12460 | if (PyErr_Occurred()) SWIG_fail; | |
12461 | } | |
12462 | Py_INCREF(Py_None); resultobj = Py_None; | |
12463 | return resultobj; | |
12464 | fail: | |
12465 | return NULL; | |
12466 | } | |
12467 | ||
12468 | ||
12469 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12470 | PyObject *resultobj; | |
12471 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12472 | int result; | |
12473 | PyObject * obj0 = 0 ; | |
12474 | char *kwnames[] = { | |
12475 | (char *) "self", NULL | |
12476 | }; | |
12477 | ||
12478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12481 | { |
12482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12483 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12484 | ||
12485 | wxPyEndAllowThreads(__tstate); | |
12486 | if (PyErr_Occurred()) SWIG_fail; | |
12487 | } | |
2f4c0a16 | 12488 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12489 | return resultobj; |
12490 | fail: | |
12491 | return NULL; | |
12492 | } | |
12493 | ||
12494 | ||
12495 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12496 | PyObject *resultobj; | |
12497 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12498 | int result; | |
12499 | PyObject * obj0 = 0 ; | |
12500 | char *kwnames[] = { | |
12501 | (char *) "self", NULL | |
12502 | }; | |
12503 | ||
12504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12507 | { |
12508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12509 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12510 | ||
12511 | wxPyEndAllowThreads(__tstate); | |
12512 | if (PyErr_Occurred()) SWIG_fail; | |
12513 | } | |
2f4c0a16 | 12514 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12515 | return resultobj; |
12516 | fail: | |
12517 | return NULL; | |
12518 | } | |
12519 | ||
12520 | ||
12521 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12522 | PyObject *resultobj; | |
12523 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12524 | int arg2 ; | |
12525 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12526 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12527 | char *kwnames[] = { |
12528 | (char *) "self",(char *) "minValue", NULL | |
12529 | }; | |
12530 | ||
8edf1c75 | 12531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12534 | arg2 = (int) SWIG_AsInt(obj1); | |
12535 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12536 | { |
12537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12538 | (arg1)->SetMin(arg2); | |
12539 | ||
12540 | wxPyEndAllowThreads(__tstate); | |
12541 | if (PyErr_Occurred()) SWIG_fail; | |
12542 | } | |
12543 | Py_INCREF(Py_None); resultobj = Py_None; | |
12544 | return resultobj; | |
12545 | fail: | |
12546 | return NULL; | |
12547 | } | |
12548 | ||
12549 | ||
12550 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12551 | PyObject *resultobj; | |
12552 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12553 | int arg2 ; | |
12554 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12555 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12556 | char *kwnames[] = { |
12557 | (char *) "self",(char *) "maxValue", NULL | |
12558 | }; | |
12559 | ||
8edf1c75 | 12560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12563 | arg2 = (int) SWIG_AsInt(obj1); | |
12564 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12565 | { |
12566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12567 | (arg1)->SetMax(arg2); | |
12568 | ||
12569 | wxPyEndAllowThreads(__tstate); | |
12570 | if (PyErr_Occurred()) SWIG_fail; | |
12571 | } | |
12572 | Py_INCREF(Py_None); resultobj = Py_None; | |
12573 | return resultobj; | |
12574 | fail: | |
12575 | return NULL; | |
12576 | } | |
12577 | ||
12578 | ||
12579 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12580 | PyObject *resultobj; | |
12581 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12582 | int arg2 ; | |
12583 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12584 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12585 | char *kwnames[] = { |
12586 | (char *) "self",(char *) "lineSize", NULL | |
12587 | }; | |
12588 | ||
8edf1c75 | 12589 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12590 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12591 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12592 | arg2 = (int) SWIG_AsInt(obj1); | |
12593 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12594 | { |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | (arg1)->SetLineSize(arg2); | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
12601 | Py_INCREF(Py_None); resultobj = Py_None; | |
12602 | return resultobj; | |
12603 | fail: | |
12604 | return NULL; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12609 | PyObject *resultobj; | |
12610 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12611 | int arg2 ; | |
12612 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12613 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12614 | char *kwnames[] = { |
12615 | (char *) "self",(char *) "pageSize", NULL | |
12616 | }; | |
12617 | ||
8edf1c75 | 12618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12621 | arg2 = (int) SWIG_AsInt(obj1); | |
12622 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12623 | { |
12624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12625 | (arg1)->SetPageSize(arg2); | |
12626 | ||
12627 | wxPyEndAllowThreads(__tstate); | |
12628 | if (PyErr_Occurred()) SWIG_fail; | |
12629 | } | |
12630 | Py_INCREF(Py_None); resultobj = Py_None; | |
12631 | return resultobj; | |
12632 | fail: | |
12633 | return NULL; | |
12634 | } | |
12635 | ||
12636 | ||
12637 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12638 | PyObject *resultobj; | |
12639 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12640 | int result; | |
12641 | PyObject * obj0 = 0 ; | |
12642 | char *kwnames[] = { | |
12643 | (char *) "self", NULL | |
12644 | }; | |
12645 | ||
12646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12647 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12649 | { |
12650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12651 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12652 | ||
12653 | wxPyEndAllowThreads(__tstate); | |
12654 | if (PyErr_Occurred()) SWIG_fail; | |
12655 | } | |
2f4c0a16 | 12656 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12657 | return resultobj; |
12658 | fail: | |
12659 | return NULL; | |
12660 | } | |
12661 | ||
12662 | ||
12663 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12664 | PyObject *resultobj; | |
12665 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12666 | int result; | |
12667 | PyObject * obj0 = 0 ; | |
12668 | char *kwnames[] = { | |
12669 | (char *) "self", NULL | |
12670 | }; | |
12671 | ||
12672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12675 | { |
12676 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12677 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12678 | ||
12679 | wxPyEndAllowThreads(__tstate); | |
12680 | if (PyErr_Occurred()) SWIG_fail; | |
12681 | } | |
2f4c0a16 | 12682 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12683 | return resultobj; |
12684 | fail: | |
12685 | return NULL; | |
12686 | } | |
12687 | ||
12688 | ||
12689 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12690 | PyObject *resultobj; | |
12691 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12692 | int arg2 ; | |
12693 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12694 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12695 | char *kwnames[] = { |
12696 | (char *) "self",(char *) "lenPixels", NULL | |
12697 | }; | |
12698 | ||
8edf1c75 | 12699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12702 | arg2 = (int) SWIG_AsInt(obj1); | |
12703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12704 | { |
12705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12706 | (arg1)->SetThumbLength(arg2); | |
12707 | ||
12708 | wxPyEndAllowThreads(__tstate); | |
12709 | if (PyErr_Occurred()) SWIG_fail; | |
12710 | } | |
12711 | Py_INCREF(Py_None); resultobj = Py_None; | |
12712 | return resultobj; | |
12713 | fail: | |
12714 | return NULL; | |
12715 | } | |
12716 | ||
12717 | ||
12718 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12719 | PyObject *resultobj; | |
12720 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12721 | int result; | |
12722 | PyObject * obj0 = 0 ; | |
12723 | char *kwnames[] = { | |
12724 | (char *) "self", NULL | |
12725 | }; | |
12726 | ||
12727 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12728 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12729 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12730 | { |
12731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12732 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12733 | ||
12734 | wxPyEndAllowThreads(__tstate); | |
12735 | if (PyErr_Occurred()) SWIG_fail; | |
12736 | } | |
2f4c0a16 | 12737 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12738 | return resultobj; |
12739 | fail: | |
12740 | return NULL; | |
12741 | } | |
12742 | ||
12743 | ||
12744 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12745 | PyObject *resultobj; | |
12746 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12747 | int arg2 ; | |
8edf1c75 | 12748 | int arg3 = (int) 1 ; |
d14a1e28 | 12749 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12750 | PyObject * obj1 = 0 ; |
12751 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12752 | char *kwnames[] = { |
12753 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12754 | }; | |
12755 | ||
8edf1c75 | 12756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12759 | arg2 = (int) SWIG_AsInt(obj1); | |
12760 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12761 | if (obj2) { |
2f4c0a16 RD |
12762 | arg3 = (int) SWIG_AsInt(obj2); |
12763 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12764 | } |
d14a1e28 RD |
12765 | { |
12766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12767 | (arg1)->SetTickFreq(arg2,arg3); | |
12768 | ||
12769 | wxPyEndAllowThreads(__tstate); | |
12770 | if (PyErr_Occurred()) SWIG_fail; | |
12771 | } | |
12772 | Py_INCREF(Py_None); resultobj = Py_None; | |
12773 | return resultobj; | |
12774 | fail: | |
12775 | return NULL; | |
12776 | } | |
12777 | ||
12778 | ||
12779 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12780 | PyObject *resultobj; | |
12781 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12782 | int result; | |
12783 | PyObject * obj0 = 0 ; | |
12784 | char *kwnames[] = { | |
12785 | (char *) "self", NULL | |
12786 | }; | |
12787 | ||
12788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12791 | { |
12792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12793 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12794 | ||
12795 | wxPyEndAllowThreads(__tstate); | |
12796 | if (PyErr_Occurred()) SWIG_fail; | |
12797 | } | |
2f4c0a16 | 12798 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12799 | return resultobj; |
12800 | fail: | |
12801 | return NULL; | |
12802 | } | |
12803 | ||
12804 | ||
12805 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12806 | PyObject *resultobj; | |
12807 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12808 | PyObject * obj0 = 0 ; | |
12809 | char *kwnames[] = { | |
12810 | (char *) "self", NULL | |
12811 | }; | |
12812 | ||
12813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12816 | { |
12817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12818 | (arg1)->ClearTicks(); | |
12819 | ||
12820 | wxPyEndAllowThreads(__tstate); | |
12821 | if (PyErr_Occurred()) SWIG_fail; | |
12822 | } | |
12823 | Py_INCREF(Py_None); resultobj = Py_None; | |
12824 | return resultobj; | |
12825 | fail: | |
12826 | return NULL; | |
12827 | } | |
12828 | ||
12829 | ||
12830 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12831 | PyObject *resultobj; | |
12832 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12833 | int arg2 ; | |
12834 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12835 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12836 | char *kwnames[] = { |
12837 | (char *) "self",(char *) "tickPos", NULL | |
12838 | }; | |
12839 | ||
8edf1c75 | 12840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12843 | arg2 = (int) SWIG_AsInt(obj1); | |
12844 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12845 | { |
12846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12847 | (arg1)->SetTick(arg2); | |
12848 | ||
12849 | wxPyEndAllowThreads(__tstate); | |
12850 | if (PyErr_Occurred()) SWIG_fail; | |
12851 | } | |
12852 | Py_INCREF(Py_None); resultobj = Py_None; | |
12853 | return resultobj; | |
12854 | fail: | |
12855 | return NULL; | |
12856 | } | |
12857 | ||
12858 | ||
12859 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12860 | PyObject *resultobj; | |
12861 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12862 | PyObject * obj0 = 0 ; | |
12863 | char *kwnames[] = { | |
12864 | (char *) "self", NULL | |
12865 | }; | |
12866 | ||
12867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12870 | { |
12871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12872 | (arg1)->ClearSel(); | |
12873 | ||
12874 | wxPyEndAllowThreads(__tstate); | |
12875 | if (PyErr_Occurred()) SWIG_fail; | |
12876 | } | |
12877 | Py_INCREF(Py_None); resultobj = Py_None; | |
12878 | return resultobj; | |
12879 | fail: | |
12880 | return NULL; | |
12881 | } | |
12882 | ||
12883 | ||
12884 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12885 | PyObject *resultobj; | |
12886 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12887 | int result; | |
12888 | PyObject * obj0 = 0 ; | |
12889 | char *kwnames[] = { | |
12890 | (char *) "self", NULL | |
12891 | }; | |
12892 | ||
12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12896 | { |
12897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12898 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12899 | ||
12900 | wxPyEndAllowThreads(__tstate); | |
12901 | if (PyErr_Occurred()) SWIG_fail; | |
12902 | } | |
2f4c0a16 | 12903 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12904 | return resultobj; |
12905 | fail: | |
12906 | return NULL; | |
12907 | } | |
12908 | ||
12909 | ||
12910 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12911 | PyObject *resultobj; | |
12912 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12913 | int result; | |
12914 | PyObject * obj0 = 0 ; | |
12915 | char *kwnames[] = { | |
12916 | (char *) "self", NULL | |
12917 | }; | |
12918 | ||
12919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12922 | { |
12923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12924 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12925 | ||
12926 | wxPyEndAllowThreads(__tstate); | |
12927 | if (PyErr_Occurred()) SWIG_fail; | |
12928 | } | |
2f4c0a16 | 12929 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12930 | return resultobj; |
12931 | fail: | |
12932 | return NULL; | |
12933 | } | |
12934 | ||
12935 | ||
12936 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12937 | PyObject *resultobj; | |
12938 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12939 | int arg2 ; | |
12940 | int arg3 ; | |
12941 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12942 | PyObject * obj1 = 0 ; |
12943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12944 | char *kwnames[] = { |
12945 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12946 | }; | |
12947 | ||
8edf1c75 | 12948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12951 | arg2 = (int) SWIG_AsInt(obj1); | |
12952 | if (PyErr_Occurred()) SWIG_fail; | |
12953 | arg3 = (int) SWIG_AsInt(obj2); | |
12954 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12955 | { |
12956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12957 | (arg1)->SetSelection(arg2,arg3); | |
12958 | ||
12959 | wxPyEndAllowThreads(__tstate); | |
12960 | if (PyErr_Occurred()) SWIG_fail; | |
12961 | } | |
12962 | Py_INCREF(Py_None); resultobj = Py_None; | |
12963 | return resultobj; | |
12964 | fail: | |
12965 | return NULL; | |
12966 | } | |
12967 | ||
12968 | ||
12969 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12970 | PyObject *obj; | |
12971 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12972 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12973 | Py_INCREF(obj); | |
12974 | return Py_BuildValue((char *)""); | |
12975 | } | |
2f4c0a16 | 12976 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
12977 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12978 | return 1; | |
12979 | } | |
12980 | ||
12981 | ||
12982 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12983 | PyObject *pyobj; | |
12984 | ||
12985 | { | |
12986 | #if wxUSE_UNICODE | |
12987 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12988 | #else | |
12989 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12990 | #endif | |
12991 | } | |
12992 | return pyobj; | |
12993 | } | |
12994 | ||
12995 | ||
d14a1e28 RD |
12996 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12997 | PyObject *resultobj; | |
12998 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12999 | int arg2 ; |
d14a1e28 RD |
13000 | wxString *arg3 = 0 ; |
13001 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
13002 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13003 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13004 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13005 | long arg6 = (long) 0 ; | |
13006 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13007 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13008 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13009 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13010 | wxToggleButton *result; | |
423f194a | 13011 | bool temp3 = False ; |
d14a1e28 RD |
13012 | wxPoint temp4 ; |
13013 | wxSize temp5 ; | |
423f194a | 13014 | bool temp8 = False ; |
d14a1e28 | 13015 | PyObject * obj0 = 0 ; |
8edf1c75 | 13016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13017 | PyObject * obj2 = 0 ; |
13018 | PyObject * obj3 = 0 ; | |
13019 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13020 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13021 | PyObject * obj6 = 0 ; |
13022 | PyObject * obj7 = 0 ; | |
13023 | char *kwnames[] = { | |
13024 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13025 | }; | |
13026 | ||
8edf1c75 | 13027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
13028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13030 | arg2 = (int) SWIG_AsInt(obj1); | |
13031 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13032 | { |
13033 | arg3 = wxString_in_helper(obj2); | |
13034 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13035 | temp3 = True; |
d14a1e28 RD |
13036 | } |
13037 | if (obj3) { | |
13038 | { | |
13039 | arg4 = &temp4; | |
13040 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13041 | } | |
13042 | } | |
13043 | if (obj4) { | |
13044 | { | |
13045 | arg5 = &temp5; | |
13046 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13047 | } | |
13048 | } | |
8edf1c75 | 13049 | if (obj5) { |
2f4c0a16 RD |
13050 | arg6 = (long) SWIG_AsLong(obj5); |
13051 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13052 | } |
d14a1e28 | 13053 | if (obj6) { |
2f4c0a16 RD |
13054 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13055 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13056 | SWIG_fail; | |
d14a1e28 | 13057 | if (arg7 == NULL) { |
2f4c0a16 RD |
13058 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13059 | SWIG_fail; | |
d14a1e28 RD |
13060 | } |
13061 | } | |
13062 | if (obj7) { | |
13063 | { | |
13064 | arg8 = wxString_in_helper(obj7); | |
13065 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13066 | temp8 = True; |
d14a1e28 RD |
13067 | } |
13068 | } | |
13069 | { | |
13070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13071 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13072 | ||
13073 | wxPyEndAllowThreads(__tstate); | |
13074 | if (PyErr_Occurred()) SWIG_fail; | |
13075 | } | |
2f4c0a16 | 13076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13077 | { |
13078 | if (temp3) | |
13079 | delete arg3; | |
13080 | } | |
13081 | { | |
13082 | if (temp8) | |
13083 | delete arg8; | |
13084 | } | |
13085 | return resultobj; | |
13086 | fail: | |
13087 | { | |
13088 | if (temp3) | |
13089 | delete arg3; | |
13090 | } | |
13091 | { | |
13092 | if (temp8) | |
13093 | delete arg8; | |
13094 | } | |
13095 | return NULL; | |
13096 | } | |
13097 | ||
13098 | ||
13099 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13100 | PyObject *resultobj; | |
13101 | wxToggleButton *result; | |
13102 | char *kwnames[] = { | |
13103 | NULL | |
13104 | }; | |
13105 | ||
13106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13107 | { | |
13108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13109 | result = (wxToggleButton *)new wxToggleButton(); | |
13110 | ||
13111 | wxPyEndAllowThreads(__tstate); | |
13112 | if (PyErr_Occurred()) SWIG_fail; | |
13113 | } | |
2f4c0a16 | 13114 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13115 | return resultobj; |
13116 | fail: | |
13117 | return NULL; | |
13118 | } | |
13119 | ||
13120 | ||
13121 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13122 | PyObject *resultobj; | |
13123 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13124 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13125 | int arg3 ; |
d14a1e28 RD |
13126 | wxString *arg4 = 0 ; |
13127 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13128 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13129 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13130 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13131 | long arg7 = (long) 0 ; | |
13132 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13133 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13134 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13135 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13136 | bool result; | |
423f194a | 13137 | bool temp4 = False ; |
d14a1e28 RD |
13138 | wxPoint temp5 ; |
13139 | wxSize temp6 ; | |
423f194a | 13140 | bool temp9 = False ; |
d14a1e28 RD |
13141 | PyObject * obj0 = 0 ; |
13142 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13143 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13144 | PyObject * obj3 = 0 ; |
13145 | PyObject * obj4 = 0 ; | |
13146 | PyObject * obj5 = 0 ; | |
8edf1c75 | 13147 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13148 | PyObject * obj7 = 0 ; |
13149 | PyObject * obj8 = 0 ; | |
13150 | char *kwnames[] = { | |
13151 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13152 | }; | |
13153 | ||
8edf1c75 | 13154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
13155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13157 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13159 | arg3 = (int) SWIG_AsInt(obj2); | |
13160 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13161 | { |
13162 | arg4 = wxString_in_helper(obj3); | |
13163 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13164 | temp4 = True; |
d14a1e28 RD |
13165 | } |
13166 | if (obj4) { | |
13167 | { | |
13168 | arg5 = &temp5; | |
13169 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13170 | } | |
13171 | } | |
13172 | if (obj5) { | |
13173 | { | |
13174 | arg6 = &temp6; | |
13175 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13176 | } | |
13177 | } | |
8edf1c75 | 13178 | if (obj6) { |
2f4c0a16 RD |
13179 | arg7 = (long) SWIG_AsLong(obj6); |
13180 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13181 | } |
d14a1e28 | 13182 | if (obj7) { |
2f4c0a16 RD |
13183 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13185 | SWIG_fail; | |
d14a1e28 | 13186 | if (arg8 == NULL) { |
2f4c0a16 RD |
13187 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13188 | SWIG_fail; | |
d14a1e28 RD |
13189 | } |
13190 | } | |
13191 | if (obj8) { | |
13192 | { | |
13193 | arg9 = wxString_in_helper(obj8); | |
13194 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13195 | temp9 = True; |
d14a1e28 RD |
13196 | } |
13197 | } | |
13198 | { | |
13199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13200 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13201 | ||
13202 | wxPyEndAllowThreads(__tstate); | |
13203 | if (PyErr_Occurred()) SWIG_fail; | |
13204 | } | |
4f89f6a3 RD |
13205 | { |
13206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13207 | } | |
d14a1e28 RD |
13208 | { |
13209 | if (temp4) | |
13210 | delete arg4; | |
13211 | } | |
13212 | { | |
13213 | if (temp9) | |
13214 | delete arg9; | |
13215 | } | |
13216 | return resultobj; | |
13217 | fail: | |
13218 | { | |
13219 | if (temp4) | |
13220 | delete arg4; | |
13221 | } | |
13222 | { | |
13223 | if (temp9) | |
13224 | delete arg9; | |
13225 | } | |
13226 | return NULL; | |
13227 | } | |
13228 | ||
13229 | ||
13230 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13231 | PyObject *resultobj; | |
13232 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13233 | bool arg2 ; | |
13234 | PyObject * obj0 = 0 ; | |
13235 | PyObject * obj1 = 0 ; | |
13236 | char *kwnames[] = { | |
13237 | (char *) "self",(char *) "value", NULL | |
13238 | }; | |
13239 | ||
13240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13243 | arg2 = (bool) SWIG_AsBool(obj1); | |
13244 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13245 | { |
13246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13247 | (arg1)->SetValue(arg2); | |
13248 | ||
13249 | wxPyEndAllowThreads(__tstate); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
13251 | } | |
13252 | Py_INCREF(Py_None); resultobj = Py_None; | |
13253 | return resultobj; | |
13254 | fail: | |
13255 | return NULL; | |
13256 | } | |
13257 | ||
13258 | ||
13259 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13260 | PyObject *resultobj; | |
13261 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13262 | bool result; | |
13263 | PyObject * obj0 = 0 ; | |
13264 | char *kwnames[] = { | |
13265 | (char *) "self", NULL | |
13266 | }; | |
13267 | ||
13268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13271 | { |
13272 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13273 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13274 | ||
13275 | wxPyEndAllowThreads(__tstate); | |
13276 | if (PyErr_Occurred()) SWIG_fail; | |
13277 | } | |
4f89f6a3 RD |
13278 | { |
13279 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13280 | } | |
d14a1e28 RD |
13281 | return resultobj; |
13282 | fail: | |
13283 | return NULL; | |
13284 | } | |
13285 | ||
13286 | ||
13287 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13288 | PyObject *resultobj; | |
13289 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13290 | wxString *arg2 = 0 ; | |
423f194a | 13291 | bool temp2 = False ; |
d14a1e28 RD |
13292 | PyObject * obj0 = 0 ; |
13293 | PyObject * obj1 = 0 ; | |
13294 | char *kwnames[] = { | |
13295 | (char *) "self",(char *) "label", NULL | |
13296 | }; | |
13297 | ||
13298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13301 | { |
13302 | arg2 = wxString_in_helper(obj1); | |
13303 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13304 | temp2 = True; |
d14a1e28 RD |
13305 | } |
13306 | { | |
13307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13308 | (arg1)->SetLabel((wxString const &)*arg2); | |
13309 | ||
13310 | wxPyEndAllowThreads(__tstate); | |
13311 | if (PyErr_Occurred()) SWIG_fail; | |
13312 | } | |
13313 | Py_INCREF(Py_None); resultobj = Py_None; | |
13314 | { | |
13315 | if (temp2) | |
13316 | delete arg2; | |
13317 | } | |
13318 | return resultobj; | |
13319 | fail: | |
13320 | { | |
13321 | if (temp2) | |
13322 | delete arg2; | |
13323 | } | |
13324 | return NULL; | |
13325 | } | |
13326 | ||
13327 | ||
13328 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13329 | PyObject *obj; | |
13330 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13331 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13332 | Py_INCREF(obj); | |
13333 | return Py_BuildValue((char *)""); | |
13334 | } | |
2f4c0a16 | 13335 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
d03fd34d RD |
13336 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13337 | return 1; | |
13338 | } | |
13339 | ||
13340 | ||
13341 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13342 | PyObject *pyobj; | |
13343 | ||
13344 | { | |
13345 | #if wxUSE_UNICODE | |
13346 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13347 | #else | |
13348 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13349 | #endif | |
13350 | } | |
13351 | return pyobj; | |
13352 | } | |
13353 | ||
13354 | ||
d14a1e28 RD |
13355 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13356 | PyObject *resultobj; | |
13357 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13358 | size_t result; | |
13359 | PyObject * obj0 = 0 ; | |
13360 | char *kwnames[] = { | |
13361 | (char *) "self", NULL | |
13362 | }; | |
13363 | ||
13364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13367 | { |
13368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13369 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13370 | ||
13371 | wxPyEndAllowThreads(__tstate); | |
13372 | if (PyErr_Occurred()) SWIG_fail; | |
13373 | } | |
2f4c0a16 | 13374 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13375 | return resultobj; |
13376 | fail: | |
13377 | return NULL; | |
13378 | } | |
13379 | ||
13380 | ||
13381 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13382 | PyObject *resultobj; | |
13383 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13384 | size_t arg2 ; | |
13385 | wxWindow *result; | |
13386 | PyObject * obj0 = 0 ; | |
13387 | PyObject * obj1 = 0 ; | |
13388 | char *kwnames[] = { | |
13389 | (char *) "self",(char *) "n", NULL | |
13390 | }; | |
13391 | ||
13392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13395 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13396 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13397 | { |
13398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13399 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13400 | ||
13401 | wxPyEndAllowThreads(__tstate); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
13403 | } | |
13404 | { | |
13405 | resultobj = wxPyMake_wxObject(result); | |
13406 | } | |
13407 | return resultobj; | |
13408 | fail: | |
13409 | return NULL; | |
13410 | } | |
13411 | ||
13412 | ||
13413 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13414 | PyObject *resultobj; | |
13415 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13416 | int result; | |
13417 | PyObject * obj0 = 0 ; | |
13418 | char *kwnames[] = { | |
13419 | (char *) "self", NULL | |
13420 | }; | |
13421 | ||
13422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13425 | { |
13426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13427 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13428 | ||
13429 | wxPyEndAllowThreads(__tstate); | |
13430 | if (PyErr_Occurred()) SWIG_fail; | |
13431 | } | |
2f4c0a16 | 13432 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13433 | return resultobj; |
13434 | fail: | |
13435 | return NULL; | |
13436 | } | |
13437 | ||
13438 | ||
13439 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13440 | PyObject *resultobj; | |
13441 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13442 | size_t arg2 ; | |
13443 | wxString *arg3 = 0 ; | |
13444 | bool result; | |
423f194a | 13445 | bool temp3 = False ; |
d14a1e28 RD |
13446 | PyObject * obj0 = 0 ; |
13447 | PyObject * obj1 = 0 ; | |
13448 | PyObject * obj2 = 0 ; | |
13449 | char *kwnames[] = { | |
13450 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13451 | }; | |
13452 | ||
13453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13456 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13458 | { |
13459 | arg3 = wxString_in_helper(obj2); | |
13460 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13461 | temp3 = True; |
d14a1e28 RD |
13462 | } |
13463 | { | |
13464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13465 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13466 | ||
13467 | wxPyEndAllowThreads(__tstate); | |
13468 | if (PyErr_Occurred()) SWIG_fail; | |
13469 | } | |
4f89f6a3 RD |
13470 | { |
13471 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13472 | } | |
d14a1e28 RD |
13473 | { |
13474 | if (temp3) | |
13475 | delete arg3; | |
13476 | } | |
13477 | return resultobj; | |
13478 | fail: | |
13479 | { | |
13480 | if (temp3) | |
13481 | delete arg3; | |
13482 | } | |
13483 | return NULL; | |
13484 | } | |
13485 | ||
13486 | ||
13487 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13488 | PyObject *resultobj; | |
13489 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13490 | size_t arg2 ; | |
13491 | wxString result; | |
13492 | PyObject * obj0 = 0 ; | |
13493 | PyObject * obj1 = 0 ; | |
13494 | char *kwnames[] = { | |
13495 | (char *) "self",(char *) "n", NULL | |
13496 | }; | |
13497 | ||
13498 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13499 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13500 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13501 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13502 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13503 | { |
13504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13505 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13506 | ||
13507 | wxPyEndAllowThreads(__tstate); | |
13508 | if (PyErr_Occurred()) SWIG_fail; | |
13509 | } | |
13510 | { | |
13511 | #if wxUSE_UNICODE | |
13512 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13513 | #else | |
13514 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13515 | #endif | |
13516 | } | |
13517 | return resultobj; | |
13518 | fail: | |
13519 | return NULL; | |
13520 | } | |
13521 | ||
13522 | ||
13523 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13524 | PyObject *resultobj; | |
13525 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13526 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13527 | PyObject * obj0 = 0 ; | |
13528 | PyObject * obj1 = 0 ; | |
13529 | char *kwnames[] = { | |
13530 | (char *) "self",(char *) "imageList", NULL | |
13531 | }; | |
13532 | ||
13533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13534 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13535 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13536 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13538 | { |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | (arg1)->SetImageList(arg2); | |
13541 | ||
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
13545 | Py_INCREF(Py_None); resultobj = Py_None; | |
13546 | return resultobj; | |
13547 | fail: | |
13548 | return NULL; | |
13549 | } | |
13550 | ||
13551 | ||
13552 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13553 | PyObject *resultobj; | |
13554 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13555 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13556 | PyObject * obj0 = 0 ; | |
13557 | PyObject * obj1 = 0 ; | |
13558 | char *kwnames[] = { | |
13559 | (char *) "self",(char *) "imageList", NULL | |
13560 | }; | |
13561 | ||
13562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13566 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
13567 | { |
13568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13569 | (arg1)->AssignImageList(arg2); | |
13570 | ||
13571 | wxPyEndAllowThreads(__tstate); | |
13572 | if (PyErr_Occurred()) SWIG_fail; | |
13573 | } | |
13574 | Py_INCREF(Py_None); resultobj = Py_None; | |
13575 | return resultobj; | |
13576 | fail: | |
13577 | return NULL; | |
13578 | } | |
13579 | ||
13580 | ||
13581 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13582 | PyObject *resultobj; | |
13583 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13584 | wxImageList *result; | |
13585 | PyObject * obj0 = 0 ; | |
13586 | char *kwnames[] = { | |
13587 | (char *) "self", NULL | |
13588 | }; | |
13589 | ||
13590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13593 | { |
13594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13595 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13596 | ||
13597 | wxPyEndAllowThreads(__tstate); | |
13598 | if (PyErr_Occurred()) SWIG_fail; | |
13599 | } | |
13600 | { | |
13601 | resultobj = wxPyMake_wxObject(result); | |
13602 | } | |
13603 | return resultobj; | |
13604 | fail: | |
13605 | return NULL; | |
13606 | } | |
13607 | ||
13608 | ||
13609 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13610 | PyObject *resultobj; | |
13611 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13612 | size_t arg2 ; | |
13613 | int result; | |
13614 | PyObject * obj0 = 0 ; | |
13615 | PyObject * obj1 = 0 ; | |
13616 | char *kwnames[] = { | |
13617 | (char *) "self",(char *) "n", NULL | |
13618 | }; | |
13619 | ||
13620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13623 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13624 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13625 | { |
13626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13627 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13628 | ||
13629 | wxPyEndAllowThreads(__tstate); | |
13630 | if (PyErr_Occurred()) SWIG_fail; | |
13631 | } | |
2f4c0a16 | 13632 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13633 | return resultobj; |
13634 | fail: | |
13635 | return NULL; | |
13636 | } | |
13637 | ||
13638 | ||
13639 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13640 | PyObject *resultobj; | |
13641 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13642 | size_t arg2 ; | |
13643 | int arg3 ; | |
13644 | bool result; | |
13645 | PyObject * obj0 = 0 ; | |
13646 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13647 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13648 | char *kwnames[] = { |
13649 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13650 | }; | |
13651 | ||
8edf1c75 | 13652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13655 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13656 | if (PyErr_Occurred()) SWIG_fail; | |
13657 | arg3 = (int) SWIG_AsInt(obj2); | |
13658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13659 | { |
13660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13661 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13662 | ||
13663 | wxPyEndAllowThreads(__tstate); | |
13664 | if (PyErr_Occurred()) SWIG_fail; | |
13665 | } | |
4f89f6a3 RD |
13666 | { |
13667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13668 | } | |
d14a1e28 RD |
13669 | return resultobj; |
13670 | fail: | |
13671 | return NULL; | |
13672 | } | |
13673 | ||
13674 | ||
13675 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13676 | PyObject *resultobj; | |
13677 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13678 | wxSize *arg2 = 0 ; | |
13679 | wxSize temp2 ; | |
13680 | PyObject * obj0 = 0 ; | |
13681 | PyObject * obj1 = 0 ; | |
13682 | char *kwnames[] = { | |
13683 | (char *) "self",(char *) "size", NULL | |
13684 | }; | |
13685 | ||
13686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13689 | { |
13690 | arg2 = &temp2; | |
13691 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13692 | } | |
13693 | { | |
13694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13695 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13696 | ||
13697 | wxPyEndAllowThreads(__tstate); | |
13698 | if (PyErr_Occurred()) SWIG_fail; | |
13699 | } | |
13700 | Py_INCREF(Py_None); resultobj = Py_None; | |
13701 | return resultobj; | |
13702 | fail: | |
13703 | return NULL; | |
13704 | } | |
13705 | ||
13706 | ||
13707 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13708 | PyObject *resultobj; | |
13709 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13710 | wxSize *arg2 = 0 ; | |
13711 | wxSize result; | |
13712 | wxSize temp2 ; | |
13713 | PyObject * obj0 = 0 ; | |
13714 | PyObject * obj1 = 0 ; | |
13715 | char *kwnames[] = { | |
13716 | (char *) "self",(char *) "sizePage", NULL | |
13717 | }; | |
13718 | ||
13719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13722 | { |
13723 | arg2 = &temp2; | |
13724 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13725 | } | |
13726 | { | |
13727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13728 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13729 | ||
13730 | wxPyEndAllowThreads(__tstate); | |
13731 | if (PyErr_Occurred()) SWIG_fail; | |
13732 | } | |
13733 | { | |
13734 | wxSize * resultptr; | |
13735 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13736 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13737 | } |
13738 | return resultobj; | |
13739 | fail: | |
13740 | return NULL; | |
13741 | } | |
13742 | ||
13743 | ||
13744 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13745 | PyObject *resultobj; | |
13746 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13747 | size_t arg2 ; | |
13748 | bool result; | |
13749 | PyObject * obj0 = 0 ; | |
13750 | PyObject * obj1 = 0 ; | |
13751 | char *kwnames[] = { | |
13752 | (char *) "self",(char *) "n", NULL | |
13753 | }; | |
13754 | ||
13755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13758 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13759 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13760 | { |
13761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13762 | result = (bool)(arg1)->DeletePage(arg2); | |
13763 | ||
13764 | wxPyEndAllowThreads(__tstate); | |
13765 | if (PyErr_Occurred()) SWIG_fail; | |
13766 | } | |
4f89f6a3 RD |
13767 | { |
13768 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13769 | } | |
d14a1e28 RD |
13770 | return resultobj; |
13771 | fail: | |
13772 | return NULL; | |
13773 | } | |
13774 | ||
13775 | ||
13776 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13777 | PyObject *resultobj; | |
13778 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13779 | size_t arg2 ; | |
13780 | bool result; | |
13781 | PyObject * obj0 = 0 ; | |
13782 | PyObject * obj1 = 0 ; | |
13783 | char *kwnames[] = { | |
13784 | (char *) "self",(char *) "n", NULL | |
13785 | }; | |
13786 | ||
13787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13790 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13791 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13792 | { |
13793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13794 | result = (bool)(arg1)->RemovePage(arg2); | |
13795 | ||
13796 | wxPyEndAllowThreads(__tstate); | |
13797 | if (PyErr_Occurred()) SWIG_fail; | |
13798 | } | |
4f89f6a3 RD |
13799 | { |
13800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13801 | } | |
d14a1e28 RD |
13802 | return resultobj; |
13803 | fail: | |
13804 | return NULL; | |
13805 | } | |
13806 | ||
13807 | ||
13808 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13809 | PyObject *resultobj; | |
13810 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13811 | bool result; | |
13812 | PyObject * obj0 = 0 ; | |
13813 | char *kwnames[] = { | |
13814 | (char *) "self", NULL | |
13815 | }; | |
13816 | ||
13817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13818 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13819 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13820 | { |
13821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13822 | result = (bool)(arg1)->DeleteAllPages(); | |
13823 | ||
13824 | wxPyEndAllowThreads(__tstate); | |
13825 | if (PyErr_Occurred()) SWIG_fail; | |
13826 | } | |
4f89f6a3 RD |
13827 | { |
13828 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13829 | } | |
d14a1e28 RD |
13830 | return resultobj; |
13831 | fail: | |
13832 | return NULL; | |
13833 | } | |
13834 | ||
13835 | ||
13836 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13837 | PyObject *resultobj; | |
13838 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13839 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13840 | wxString *arg3 = 0 ; | |
423f194a | 13841 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13842 | int arg5 = (int) -1 ; |
13843 | bool result; | |
423f194a | 13844 | bool temp3 = False ; |
d14a1e28 RD |
13845 | PyObject * obj0 = 0 ; |
13846 | PyObject * obj1 = 0 ; | |
13847 | PyObject * obj2 = 0 ; | |
13848 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13849 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13850 | char *kwnames[] = { |
13851 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13852 | }; | |
13853 | ||
8edf1c75 | 13854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13859 | { |
13860 | arg3 = wxString_in_helper(obj2); | |
13861 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13862 | temp3 = True; |
d14a1e28 RD |
13863 | } |
13864 | if (obj3) { | |
2f4c0a16 RD |
13865 | arg4 = (bool) SWIG_AsBool(obj3); |
13866 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13867 | } |
13868 | if (obj4) { | |
2f4c0a16 RD |
13869 | arg5 = (int) SWIG_AsInt(obj4); |
13870 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13871 | } |
13872 | { | |
13873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13874 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13875 | ||
13876 | wxPyEndAllowThreads(__tstate); | |
13877 | if (PyErr_Occurred()) SWIG_fail; | |
13878 | } | |
4f89f6a3 RD |
13879 | { |
13880 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13881 | } | |
d14a1e28 RD |
13882 | { |
13883 | if (temp3) | |
13884 | delete arg3; | |
13885 | } | |
13886 | return resultobj; | |
13887 | fail: | |
13888 | { | |
13889 | if (temp3) | |
13890 | delete arg3; | |
13891 | } | |
13892 | return NULL; | |
13893 | } | |
13894 | ||
13895 | ||
13896 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13897 | PyObject *resultobj; | |
13898 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13899 | size_t arg2 ; | |
13900 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13901 | wxString *arg4 = 0 ; | |
423f194a | 13902 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13903 | int arg6 = (int) -1 ; |
13904 | bool result; | |
423f194a | 13905 | bool temp4 = False ; |
d14a1e28 RD |
13906 | PyObject * obj0 = 0 ; |
13907 | PyObject * obj1 = 0 ; | |
13908 | PyObject * obj2 = 0 ; | |
13909 | PyObject * obj3 = 0 ; | |
13910 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13911 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13912 | char *kwnames[] = { |
13913 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13914 | }; | |
13915 | ||
8edf1c75 | 13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13919 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13920 | if (PyErr_Occurred()) SWIG_fail; | |
13921 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
13922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13923 | { |
13924 | arg4 = wxString_in_helper(obj3); | |
13925 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13926 | temp4 = True; |
d14a1e28 RD |
13927 | } |
13928 | if (obj4) { | |
2f4c0a16 RD |
13929 | arg5 = (bool) SWIG_AsBool(obj4); |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13931 | } |
13932 | if (obj5) { | |
2f4c0a16 RD |
13933 | arg6 = (int) SWIG_AsInt(obj5); |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13935 | } |
13936 | { | |
13937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13938 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13939 | ||
13940 | wxPyEndAllowThreads(__tstate); | |
13941 | if (PyErr_Occurred()) SWIG_fail; | |
13942 | } | |
4f89f6a3 RD |
13943 | { |
13944 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13945 | } | |
d14a1e28 RD |
13946 | { |
13947 | if (temp4) | |
13948 | delete arg4; | |
13949 | } | |
13950 | return resultobj; | |
13951 | fail: | |
13952 | { | |
13953 | if (temp4) | |
13954 | delete arg4; | |
13955 | } | |
13956 | return NULL; | |
13957 | } | |
13958 | ||
13959 | ||
13960 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13961 | PyObject *resultobj; | |
13962 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13963 | size_t arg2 ; | |
13964 | int result; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | PyObject * obj1 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self",(char *) "n", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13974 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13976 | { |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13978 | result = (int)(arg1)->SetSelection(arg2); | |
13979 | ||
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
2f4c0a16 | 13983 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13984 | return resultobj; |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13991 | PyObject *resultobj; | |
13992 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13993 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13994 | PyObject * obj0 = 0 ; |
13995 | PyObject * obj1 = 0 ; | |
13996 | char *kwnames[] = { | |
13997 | (char *) "self",(char *) "forward", NULL | |
13998 | }; | |
13999 | ||
14000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14003 | if (obj1) { |
2f4c0a16 RD |
14004 | arg2 = (bool) SWIG_AsBool(obj1); |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14006 | } |
14007 | { | |
14008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14009 | (arg1)->AdvanceSelection(arg2); | |
14010 | ||
14011 | wxPyEndAllowThreads(__tstate); | |
14012 | if (PyErr_Occurred()) SWIG_fail; | |
14013 | } | |
14014 | Py_INCREF(Py_None); resultobj = Py_None; | |
14015 | return resultobj; | |
14016 | fail: | |
14017 | return NULL; | |
14018 | } | |
14019 | ||
14020 | ||
14021 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
14022 | PyObject *obj; | |
14023 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14024 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14025 | Py_INCREF(obj); | |
14026 | return Py_BuildValue((char *)""); | |
14027 | } | |
14028 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14029 | PyObject *resultobj; | |
14030 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14031 | int arg2 = (int) 0 ; | |
14032 | int arg3 = (int) -1 ; | |
14033 | int arg4 = (int) -1 ; | |
14034 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
14035 | PyObject * obj0 = 0 ; |
14036 | PyObject * obj1 = 0 ; | |
14037 | PyObject * obj2 = 0 ; | |
14038 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14039 | char *kwnames[] = { |
14040 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14041 | }; | |
14042 | ||
8edf1c75 RD |
14043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14044 | if (obj0) { | |
2f4c0a16 RD |
14045 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14046 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14047 | } |
14048 | if (obj1) { | |
2f4c0a16 RD |
14049 | arg2 = (int) SWIG_AsInt(obj1); |
14050 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14051 | } |
14052 | if (obj2) { | |
2f4c0a16 RD |
14053 | arg3 = (int) SWIG_AsInt(obj2); |
14054 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14055 | } |
14056 | if (obj3) { | |
2f4c0a16 RD |
14057 | arg4 = (int) SWIG_AsInt(obj3); |
14058 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14059 | } |
d14a1e28 RD |
14060 | { |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
2f4c0a16 | 14067 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14068 | return resultobj; |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14075 | PyObject *resultobj; | |
14076 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14077 | int result; | |
14078 | PyObject * obj0 = 0 ; | |
14079 | char *kwnames[] = { | |
14080 | (char *) "self", NULL | |
14081 | }; | |
14082 | ||
14083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14084 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14085 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14086 | { |
14087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14088 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14089 | ||
14090 | wxPyEndAllowThreads(__tstate); | |
14091 | if (PyErr_Occurred()) SWIG_fail; | |
14092 | } | |
2f4c0a16 | 14093 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14094 | return resultobj; |
14095 | fail: | |
14096 | return NULL; | |
14097 | } | |
14098 | ||
14099 | ||
14100 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14101 | PyObject *resultobj; | |
14102 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14103 | int arg2 ; | |
14104 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14105 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14106 | char *kwnames[] = { |
14107 | (char *) "self",(char *) "nSel", NULL | |
14108 | }; | |
14109 | ||
8edf1c75 | 14110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14113 | arg2 = (int) SWIG_AsInt(obj1); | |
14114 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14115 | { |
14116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14117 | (arg1)->SetSelection(arg2); | |
14118 | ||
14119 | wxPyEndAllowThreads(__tstate); | |
14120 | if (PyErr_Occurred()) SWIG_fail; | |
14121 | } | |
14122 | Py_INCREF(Py_None); resultobj = Py_None; | |
14123 | return resultobj; | |
14124 | fail: | |
14125 | return NULL; | |
14126 | } | |
14127 | ||
14128 | ||
14129 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14130 | PyObject *resultobj; | |
14131 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14132 | int result; | |
14133 | PyObject * obj0 = 0 ; | |
14134 | char *kwnames[] = { | |
14135 | (char *) "self", NULL | |
14136 | }; | |
14137 | ||
14138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14141 | { |
14142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14143 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14144 | ||
14145 | wxPyEndAllowThreads(__tstate); | |
14146 | if (PyErr_Occurred()) SWIG_fail; | |
14147 | } | |
2f4c0a16 | 14148 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14149 | return resultobj; |
14150 | fail: | |
14151 | return NULL; | |
14152 | } | |
14153 | ||
14154 | ||
14155 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14156 | PyObject *resultobj; | |
14157 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14158 | int arg2 ; | |
14159 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14160 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14161 | char *kwnames[] = { |
14162 | (char *) "self",(char *) "nOldSel", NULL | |
14163 | }; | |
14164 | ||
8edf1c75 | 14165 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14166 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14167 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14168 | arg2 = (int) SWIG_AsInt(obj1); | |
14169 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14170 | { |
14171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14172 | (arg1)->SetOldSelection(arg2); | |
14173 | ||
14174 | wxPyEndAllowThreads(__tstate); | |
14175 | if (PyErr_Occurred()) SWIG_fail; | |
14176 | } | |
14177 | Py_INCREF(Py_None); resultobj = Py_None; | |
14178 | return resultobj; | |
14179 | fail: | |
14180 | return NULL; | |
14181 | } | |
14182 | ||
14183 | ||
14184 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14185 | PyObject *obj; | |
14186 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14187 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14188 | Py_INCREF(obj); | |
14189 | return Py_BuildValue((char *)""); | |
14190 | } | |
14191 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14192 | PyObject *resultobj; | |
14193 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14194 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14195 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14196 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14197 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14198 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14199 | long arg5 = (long) 0 ; | |
14200 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14201 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14202 | wxNotebook *result; | |
14203 | wxPoint temp3 ; | |
14204 | wxSize temp4 ; | |
423f194a | 14205 | bool temp6 = False ; |
d14a1e28 | 14206 | PyObject * obj0 = 0 ; |
8edf1c75 | 14207 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14208 | PyObject * obj2 = 0 ; |
14209 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14210 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14211 | PyObject * obj5 = 0 ; |
14212 | char *kwnames[] = { | |
14213 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14214 | }; | |
14215 | ||
4f89f6a3 | 14216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14219 | if (obj1) { |
14220 | arg2 = (int) SWIG_AsInt(obj1); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
14222 | } | |
d14a1e28 RD |
14223 | if (obj2) { |
14224 | { | |
14225 | arg3 = &temp3; | |
14226 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14227 | } | |
14228 | } | |
14229 | if (obj3) { | |
14230 | { | |
14231 | arg4 = &temp4; | |
14232 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14233 | } | |
14234 | } | |
8edf1c75 | 14235 | if (obj4) { |
2f4c0a16 RD |
14236 | arg5 = (long) SWIG_AsLong(obj4); |
14237 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14238 | } |
d14a1e28 RD |
14239 | if (obj5) { |
14240 | { | |
14241 | arg6 = wxString_in_helper(obj5); | |
14242 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14243 | temp6 = True; |
d14a1e28 RD |
14244 | } |
14245 | } | |
14246 | { | |
14247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14248 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14249 | ||
14250 | wxPyEndAllowThreads(__tstate); | |
14251 | if (PyErr_Occurred()) SWIG_fail; | |
14252 | } | |
14253 | { | |
14254 | resultobj = wxPyMake_wxObject(result); | |
14255 | } | |
14256 | { | |
14257 | if (temp6) | |
14258 | delete arg6; | |
14259 | } | |
14260 | return resultobj; | |
14261 | fail: | |
14262 | { | |
14263 | if (temp6) | |
14264 | delete arg6; | |
14265 | } | |
14266 | return NULL; | |
14267 | } | |
14268 | ||
14269 | ||
14270 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14271 | PyObject *resultobj; | |
14272 | wxNotebook *result; | |
14273 | char *kwnames[] = { | |
14274 | NULL | |
14275 | }; | |
14276 | ||
14277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14278 | { | |
14279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14280 | result = (wxNotebook *)new wxNotebook(); | |
14281 | ||
14282 | wxPyEndAllowThreads(__tstate); | |
14283 | if (PyErr_Occurred()) SWIG_fail; | |
14284 | } | |
14285 | { | |
14286 | resultobj = wxPyMake_wxObject(result); | |
14287 | } | |
14288 | return resultobj; | |
14289 | fail: | |
14290 | return NULL; | |
14291 | } | |
14292 | ||
14293 | ||
14294 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14295 | PyObject *resultobj; | |
14296 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14297 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14298 | int arg3 ; |
d14a1e28 RD |
14299 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14300 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14301 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14302 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14303 | long arg6 = (long) 0 ; | |
14304 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14305 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14306 | bool result; | |
14307 | wxPoint temp4 ; | |
14308 | wxSize temp5 ; | |
423f194a | 14309 | bool temp7 = False ; |
d14a1e28 RD |
14310 | PyObject * obj0 = 0 ; |
14311 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14312 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14313 | PyObject * obj3 = 0 ; |
14314 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14315 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14316 | PyObject * obj6 = 0 ; |
14317 | char *kwnames[] = { | |
14318 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14319 | }; | |
14320 | ||
8edf1c75 | 14321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14324 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14325 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14326 | arg3 = (int) SWIG_AsInt(obj2); | |
14327 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14328 | if (obj3) { |
14329 | { | |
14330 | arg4 = &temp4; | |
14331 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14332 | } | |
14333 | } | |
14334 | if (obj4) { | |
14335 | { | |
14336 | arg5 = &temp5; | |
14337 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14338 | } | |
14339 | } | |
8edf1c75 | 14340 | if (obj5) { |
2f4c0a16 RD |
14341 | arg6 = (long) SWIG_AsLong(obj5); |
14342 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14343 | } |
d14a1e28 RD |
14344 | if (obj6) { |
14345 | { | |
14346 | arg7 = wxString_in_helper(obj6); | |
14347 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14348 | temp7 = True; |
d14a1e28 RD |
14349 | } |
14350 | } | |
14351 | { | |
14352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14353 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14354 | ||
14355 | wxPyEndAllowThreads(__tstate); | |
14356 | if (PyErr_Occurred()) SWIG_fail; | |
14357 | } | |
4f89f6a3 RD |
14358 | { |
14359 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14360 | } | |
d14a1e28 RD |
14361 | { |
14362 | if (temp7) | |
14363 | delete arg7; | |
14364 | } | |
14365 | return resultobj; | |
14366 | fail: | |
14367 | { | |
14368 | if (temp7) | |
14369 | delete arg7; | |
14370 | } | |
14371 | return NULL; | |
14372 | } | |
14373 | ||
14374 | ||
14375 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14376 | PyObject *resultobj; | |
14377 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14378 | int result; | |
14379 | PyObject * obj0 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "self", NULL | |
14382 | }; | |
14383 | ||
14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14387 | { |
14388 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14389 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14390 | ||
14391 | wxPyEndAllowThreads(__tstate); | |
14392 | if (PyErr_Occurred()) SWIG_fail; | |
14393 | } | |
2f4c0a16 | 14394 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14395 | return resultobj; |
14396 | fail: | |
14397 | return NULL; | |
14398 | } | |
14399 | ||
14400 | ||
14401 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14402 | PyObject *resultobj; | |
14403 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14404 | wxSize *arg2 = 0 ; | |
14405 | wxSize temp2 ; | |
14406 | PyObject * obj0 = 0 ; | |
14407 | PyObject * obj1 = 0 ; | |
14408 | char *kwnames[] = { | |
14409 | (char *) "self",(char *) "padding", NULL | |
14410 | }; | |
14411 | ||
14412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14415 | { |
14416 | arg2 = &temp2; | |
14417 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14418 | } | |
14419 | { | |
14420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14421 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14422 | ||
14423 | wxPyEndAllowThreads(__tstate); | |
14424 | if (PyErr_Occurred()) SWIG_fail; | |
14425 | } | |
14426 | Py_INCREF(Py_None); resultobj = Py_None; | |
14427 | return resultobj; | |
14428 | fail: | |
14429 | return NULL; | |
14430 | } | |
14431 | ||
14432 | ||
14433 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14434 | PyObject *resultobj; | |
14435 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14436 | wxSize *arg2 = 0 ; | |
14437 | wxSize temp2 ; | |
14438 | PyObject * obj0 = 0 ; | |
14439 | PyObject * obj1 = 0 ; | |
14440 | char *kwnames[] = { | |
14441 | (char *) "self",(char *) "sz", NULL | |
14442 | }; | |
14443 | ||
14444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14447 | { |
14448 | arg2 = &temp2; | |
14449 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14450 | } | |
14451 | { | |
14452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14453 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14454 | ||
14455 | wxPyEndAllowThreads(__tstate); | |
14456 | if (PyErr_Occurred()) SWIG_fail; | |
14457 | } | |
14458 | Py_INCREF(Py_None); resultobj = Py_None; | |
14459 | return resultobj; | |
14460 | fail: | |
14461 | return NULL; | |
14462 | } | |
14463 | ||
14464 | ||
14465 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14466 | PyObject *resultobj; | |
14467 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14468 | wxPoint *arg2 = 0 ; | |
14469 | long *arg3 = (long *) 0 ; | |
14470 | int result; | |
14471 | wxPoint temp2 ; | |
14472 | long temp3 ; | |
14473 | PyObject * obj0 = 0 ; | |
14474 | PyObject * obj1 = 0 ; | |
14475 | char *kwnames[] = { | |
14476 | (char *) "self",(char *) "pt", NULL | |
14477 | }; | |
14478 | ||
14479 | arg3 = &temp3; | |
14480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14483 | { |
14484 | arg2 = &temp2; | |
14485 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14486 | } | |
14487 | { | |
14488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14489 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14490 | ||
14491 | wxPyEndAllowThreads(__tstate); | |
14492 | if (PyErr_Occurred()) SWIG_fail; | |
14493 | } | |
2f4c0a16 | 14494 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14495 | { |
14496 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14497 | resultobj = t_output_helper(resultobj,o); | |
14498 | } | |
14499 | return resultobj; | |
14500 | fail: | |
14501 | return NULL; | |
14502 | } | |
14503 | ||
14504 | ||
14505 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14506 | PyObject *resultobj; | |
14507 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14508 | wxSize *arg2 = 0 ; | |
14509 | wxSize result; | |
14510 | wxSize temp2 ; | |
14511 | PyObject * obj0 = 0 ; | |
14512 | PyObject * obj1 = 0 ; | |
14513 | char *kwnames[] = { | |
14514 | (char *) "self",(char *) "sizePage", NULL | |
14515 | }; | |
14516 | ||
14517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14520 | { |
14521 | arg2 = &temp2; | |
14522 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14523 | } | |
14524 | { | |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
14531 | { | |
14532 | wxSize * resultptr; | |
14533 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14535 | } |
14536 | return resultobj; | |
14537 | fail: | |
14538 | return NULL; | |
14539 | } | |
14540 | ||
14541 | ||
14542 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14543 | PyObject *resultobj; | |
14544 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14545 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14546 | wxColour *arg3 = 0 ; | |
14547 | wxColour temp3 ; | |
14548 | PyObject * obj0 = 0 ; | |
14549 | PyObject * obj1 = 0 ; | |
14550 | PyObject * obj2 = 0 ; | |
14551 | char *kwnames[] = { | |
14552 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14553 | }; | |
14554 | ||
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14560 | { |
14561 | arg3 = &temp3; | |
14562 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14563 | } | |
14564 | { | |
14565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14566 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14567 | ||
14568 | wxPyEndAllowThreads(__tstate); | |
14569 | if (PyErr_Occurred()) SWIG_fail; | |
14570 | } | |
14571 | Py_INCREF(Py_None); resultobj = Py_None; | |
14572 | return resultobj; | |
14573 | fail: | |
14574 | return NULL; | |
14575 | } | |
14576 | ||
14577 | ||
14578 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14579 | PyObject *obj; | |
14580 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14581 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14582 | Py_INCREF(obj); | |
14583 | return Py_BuildValue((char *)""); | |
14584 | } | |
14585 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14586 | PyObject *resultobj; | |
14587 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14588 | int arg2 = (int) 0 ; | |
14589 | int arg3 = (int) -1 ; | |
14590 | int arg4 = (int) -1 ; | |
14591 | wxNotebookEvent *result; | |
8edf1c75 RD |
14592 | PyObject * obj0 = 0 ; |
14593 | PyObject * obj1 = 0 ; | |
14594 | PyObject * obj2 = 0 ; | |
14595 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14596 | char *kwnames[] = { |
14597 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14598 | }; | |
14599 | ||
8edf1c75 RD |
14600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14601 | if (obj0) { | |
2f4c0a16 RD |
14602 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14603 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14604 | } |
14605 | if (obj1) { | |
2f4c0a16 RD |
14606 | arg2 = (int) SWIG_AsInt(obj1); |
14607 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14608 | } |
14609 | if (obj2) { | |
2f4c0a16 RD |
14610 | arg3 = (int) SWIG_AsInt(obj2); |
14611 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14612 | } |
14613 | if (obj3) { | |
2f4c0a16 RD |
14614 | arg4 = (int) SWIG_AsInt(obj3); |
14615 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14616 | } |
d14a1e28 RD |
14617 | { |
14618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14619 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14620 | ||
14621 | wxPyEndAllowThreads(__tstate); | |
14622 | if (PyErr_Occurred()) SWIG_fail; | |
14623 | } | |
2f4c0a16 | 14624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
14625 | return resultobj; |
14626 | fail: | |
14627 | return NULL; | |
14628 | } | |
14629 | ||
14630 | ||
14631 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14632 | PyObject *obj; | |
14633 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14634 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14635 | Py_INCREF(obj); | |
14636 | return Py_BuildValue((char *)""); | |
14637 | } | |
14638 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14639 | PyObject *resultobj; | |
14640 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14641 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14642 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14643 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14644 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14645 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14646 | long arg5 = (long) 0 ; | |
14647 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14648 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14649 | wxListbook *result; | |
14650 | wxPoint temp3 ; | |
14651 | wxSize temp4 ; | |
423f194a | 14652 | bool temp6 = False ; |
d14a1e28 | 14653 | PyObject * obj0 = 0 ; |
8edf1c75 | 14654 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14655 | PyObject * obj2 = 0 ; |
14656 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14657 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14658 | PyObject * obj5 = 0 ; |
14659 | char *kwnames[] = { | |
14660 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14661 | }; | |
14662 | ||
4f89f6a3 | 14663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14666 | if (obj1) { |
14667 | arg2 = (int) SWIG_AsInt(obj1); | |
14668 | if (PyErr_Occurred()) SWIG_fail; | |
14669 | } | |
d14a1e28 RD |
14670 | if (obj2) { |
14671 | { | |
14672 | arg3 = &temp3; | |
14673 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14674 | } | |
14675 | } | |
14676 | if (obj3) { | |
14677 | { | |
14678 | arg4 = &temp4; | |
14679 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14680 | } | |
14681 | } | |
8edf1c75 | 14682 | if (obj4) { |
2f4c0a16 RD |
14683 | arg5 = (long) SWIG_AsLong(obj4); |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14685 | } |
d14a1e28 RD |
14686 | if (obj5) { |
14687 | { | |
14688 | arg6 = wxString_in_helper(obj5); | |
14689 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14690 | temp6 = True; |
d14a1e28 RD |
14691 | } |
14692 | } | |
14693 | { | |
14694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14695 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14696 | ||
14697 | wxPyEndAllowThreads(__tstate); | |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
14699 | } | |
2f4c0a16 | 14700 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14701 | { |
14702 | if (temp6) | |
14703 | delete arg6; | |
14704 | } | |
14705 | return resultobj; | |
14706 | fail: | |
14707 | { | |
14708 | if (temp6) | |
14709 | delete arg6; | |
14710 | } | |
14711 | return NULL; | |
14712 | } | |
14713 | ||
14714 | ||
14715 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14716 | PyObject *resultobj; | |
14717 | wxListbook *result; | |
14718 | char *kwnames[] = { | |
14719 | NULL | |
14720 | }; | |
14721 | ||
14722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14723 | { | |
14724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14725 | result = (wxListbook *)new wxListbook(); | |
14726 | ||
14727 | wxPyEndAllowThreads(__tstate); | |
14728 | if (PyErr_Occurred()) SWIG_fail; | |
14729 | } | |
2f4c0a16 | 14730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14731 | return resultobj; |
14732 | fail: | |
14733 | return NULL; | |
14734 | } | |
14735 | ||
14736 | ||
14737 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14738 | PyObject *resultobj; | |
14739 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14740 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14741 | int arg3 ; |
d14a1e28 RD |
14742 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14743 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14744 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14745 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14746 | long arg6 = (long) 0 ; | |
14747 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14748 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14749 | bool result; | |
14750 | wxPoint temp4 ; | |
14751 | wxSize temp5 ; | |
423f194a | 14752 | bool temp7 = False ; |
d14a1e28 RD |
14753 | PyObject * obj0 = 0 ; |
14754 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14755 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14756 | PyObject * obj3 = 0 ; |
14757 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14758 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14759 | PyObject * obj6 = 0 ; |
14760 | char *kwnames[] = { | |
14761 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14762 | }; | |
14763 | ||
8edf1c75 | 14764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14769 | arg3 = (int) SWIG_AsInt(obj2); | |
14770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14771 | if (obj3) { |
14772 | { | |
14773 | arg4 = &temp4; | |
14774 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14775 | } | |
14776 | } | |
14777 | if (obj4) { | |
14778 | { | |
14779 | arg5 = &temp5; | |
14780 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14781 | } | |
14782 | } | |
8edf1c75 | 14783 | if (obj5) { |
2f4c0a16 RD |
14784 | arg6 = (long) SWIG_AsLong(obj5); |
14785 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14786 | } |
d14a1e28 RD |
14787 | if (obj6) { |
14788 | { | |
14789 | arg7 = wxString_in_helper(obj6); | |
14790 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14791 | temp7 = True; |
d14a1e28 RD |
14792 | } |
14793 | } | |
14794 | { | |
14795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14796 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14797 | ||
14798 | wxPyEndAllowThreads(__tstate); | |
14799 | if (PyErr_Occurred()) SWIG_fail; | |
14800 | } | |
4f89f6a3 RD |
14801 | { |
14802 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14803 | } | |
d14a1e28 RD |
14804 | { |
14805 | if (temp7) | |
14806 | delete arg7; | |
14807 | } | |
14808 | return resultobj; | |
14809 | fail: | |
14810 | { | |
14811 | if (temp7) | |
14812 | delete arg7; | |
14813 | } | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
14818 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14819 | PyObject *resultobj; | |
14820 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14821 | bool result; | |
14822 | PyObject * obj0 = 0 ; | |
14823 | char *kwnames[] = { | |
14824 | (char *) "self", NULL | |
14825 | }; | |
14826 | ||
14827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14830 | { |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
4f89f6a3 RD |
14837 | { |
14838 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14839 | } | |
d14a1e28 RD |
14840 | return resultobj; |
14841 | fail: | |
14842 | return NULL; | |
14843 | } | |
14844 | ||
14845 | ||
14846 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14847 | PyObject *obj; | |
14848 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14849 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14850 | Py_INCREF(obj); | |
14851 | return Py_BuildValue((char *)""); | |
14852 | } | |
14853 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14854 | PyObject *resultobj; | |
14855 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14856 | int arg2 = (int) 0 ; | |
14857 | int arg3 = (int) -1 ; | |
14858 | int arg4 = (int) -1 ; | |
14859 | wxListbookEvent *result; | |
8edf1c75 RD |
14860 | PyObject * obj0 = 0 ; |
14861 | PyObject * obj1 = 0 ; | |
14862 | PyObject * obj2 = 0 ; | |
14863 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14864 | char *kwnames[] = { |
14865 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14866 | }; | |
14867 | ||
8edf1c75 RD |
14868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14869 | if (obj0) { | |
2f4c0a16 RD |
14870 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14871 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14872 | } |
14873 | if (obj1) { | |
2f4c0a16 RD |
14874 | arg2 = (int) SWIG_AsInt(obj1); |
14875 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14876 | } |
14877 | if (obj2) { | |
2f4c0a16 RD |
14878 | arg3 = (int) SWIG_AsInt(obj2); |
14879 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14880 | } |
14881 | if (obj3) { | |
2f4c0a16 RD |
14882 | arg4 = (int) SWIG_AsInt(obj3); |
14883 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14884 | } |
d14a1e28 RD |
14885 | { |
14886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14887 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14888 | ||
14889 | wxPyEndAllowThreads(__tstate); | |
14890 | if (PyErr_Occurred()) SWIG_fail; | |
14891 | } | |
2f4c0a16 | 14892 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
14893 | return resultobj; |
14894 | fail: | |
14895 | return NULL; | |
14896 | } | |
14897 | ||
14898 | ||
14899 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14900 | PyObject *obj; | |
14901 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14902 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14903 | Py_INCREF(obj); | |
14904 | return Py_BuildValue((char *)""); | |
14905 | } | |
14906 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14907 | PyObject *resultobj; | |
14908 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14909 | wxBookCtrlSizer *result; | |
14910 | PyObject * obj0 = 0 ; | |
14911 | char *kwnames[] = { | |
14912 | (char *) "nb", NULL | |
14913 | }; | |
14914 | ||
14915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14918 | { |
14919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14920 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14921 | ||
14922 | wxPyEndAllowThreads(__tstate); | |
14923 | if (PyErr_Occurred()) SWIG_fail; | |
14924 | } | |
2f4c0a16 | 14925 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
14926 | return resultobj; |
14927 | fail: | |
14928 | return NULL; | |
14929 | } | |
14930 | ||
14931 | ||
14932 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14933 | PyObject *resultobj; | |
14934 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14935 | PyObject * obj0 = 0 ; | |
14936 | char *kwnames[] = { | |
14937 | (char *) "self", NULL | |
14938 | }; | |
14939 | ||
14940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14943 | { |
14944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14945 | (arg1)->RecalcSizes(); | |
14946 | ||
14947 | wxPyEndAllowThreads(__tstate); | |
14948 | if (PyErr_Occurred()) SWIG_fail; | |
14949 | } | |
14950 | Py_INCREF(Py_None); resultobj = Py_None; | |
14951 | return resultobj; | |
14952 | fail: | |
14953 | return NULL; | |
14954 | } | |
14955 | ||
14956 | ||
14957 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14958 | PyObject *resultobj; | |
14959 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14960 | wxSize result; | |
14961 | PyObject * obj0 = 0 ; | |
14962 | char *kwnames[] = { | |
14963 | (char *) "self", NULL | |
14964 | }; | |
14965 | ||
14966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14969 | { |
14970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14971 | result = (arg1)->CalcMin(); | |
14972 | ||
14973 | wxPyEndAllowThreads(__tstate); | |
14974 | if (PyErr_Occurred()) SWIG_fail; | |
14975 | } | |
14976 | { | |
14977 | wxSize * resultptr; | |
14978 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14979 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14980 | } |
14981 | return resultobj; | |
14982 | fail: | |
14983 | return NULL; | |
14984 | } | |
14985 | ||
14986 | ||
14987 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14988 | PyObject *resultobj; | |
14989 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14990 | wxBookCtrl *result; | |
14991 | PyObject * obj0 = 0 ; | |
14992 | char *kwnames[] = { | |
14993 | (char *) "self", NULL | |
14994 | }; | |
14995 | ||
14996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14999 | { |
15000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15001 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15002 | ||
15003 | wxPyEndAllowThreads(__tstate); | |
15004 | if (PyErr_Occurred()) SWIG_fail; | |
15005 | } | |
2f4c0a16 | 15006 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15007 | return resultobj; |
15008 | fail: | |
15009 | return NULL; | |
15010 | } | |
15011 | ||
15012 | ||
15013 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15014 | PyObject *obj; | |
15015 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15016 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15017 | Py_INCREF(obj); | |
15018 | return Py_BuildValue((char *)""); | |
15019 | } | |
15020 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15021 | PyObject *resultobj; | |
15022 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15023 | wxNotebookSizer *result; | |
15024 | PyObject * obj0 = 0 ; | |
15025 | char *kwnames[] = { | |
15026 | (char *) "nb", NULL | |
15027 | }; | |
15028 | ||
15029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15032 | { |
15033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15034 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15035 | ||
15036 | wxPyEndAllowThreads(__tstate); | |
15037 | if (PyErr_Occurred()) SWIG_fail; | |
15038 | } | |
2f4c0a16 | 15039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15040 | return resultobj; |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15049 | PyObject * obj0 = 0 ; | |
15050 | char *kwnames[] = { | |
15051 | (char *) "self", NULL | |
15052 | }; | |
15053 | ||
15054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15057 | { |
15058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15059 | (arg1)->RecalcSizes(); | |
15060 | ||
15061 | wxPyEndAllowThreads(__tstate); | |
15062 | if (PyErr_Occurred()) SWIG_fail; | |
15063 | } | |
15064 | Py_INCREF(Py_None); resultobj = Py_None; | |
15065 | return resultobj; | |
15066 | fail: | |
15067 | return NULL; | |
15068 | } | |
15069 | ||
15070 | ||
15071 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15072 | PyObject *resultobj; | |
15073 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15074 | wxSize result; | |
15075 | PyObject * obj0 = 0 ; | |
15076 | char *kwnames[] = { | |
15077 | (char *) "self", NULL | |
15078 | }; | |
15079 | ||
15080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15083 | { |
15084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15085 | result = (arg1)->CalcMin(); | |
15086 | ||
15087 | wxPyEndAllowThreads(__tstate); | |
15088 | if (PyErr_Occurred()) SWIG_fail; | |
15089 | } | |
15090 | { | |
15091 | wxSize * resultptr; | |
15092 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 15093 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15094 | } |
15095 | return resultobj; | |
15096 | fail: | |
15097 | return NULL; | |
15098 | } | |
15099 | ||
15100 | ||
15101 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15102 | PyObject *resultobj; | |
15103 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15104 | wxNotebook *result; | |
15105 | PyObject * obj0 = 0 ; | |
15106 | char *kwnames[] = { | |
15107 | (char *) "self", NULL | |
15108 | }; | |
15109 | ||
15110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15113 | { |
15114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15115 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15116 | ||
15117 | wxPyEndAllowThreads(__tstate); | |
15118 | if (PyErr_Occurred()) SWIG_fail; | |
15119 | } | |
15120 | { | |
15121 | resultobj = wxPyMake_wxObject(result); | |
15122 | } | |
15123 | return resultobj; | |
15124 | fail: | |
15125 | return NULL; | |
15126 | } | |
15127 | ||
15128 | ||
15129 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15130 | PyObject *obj; | |
15131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15132 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15133 | Py_INCREF(obj); | |
15134 | return Py_BuildValue((char *)""); | |
15135 | } | |
15136 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15137 | PyObject *resultobj; | |
15138 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15139 | int result; | |
15140 | PyObject * obj0 = 0 ; | |
15141 | char *kwnames[] = { | |
15142 | (char *) "self", NULL | |
15143 | }; | |
15144 | ||
15145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15148 | { |
15149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15150 | result = (int)(arg1)->GetId(); | |
15151 | ||
15152 | wxPyEndAllowThreads(__tstate); | |
15153 | if (PyErr_Occurred()) SWIG_fail; | |
15154 | } | |
2f4c0a16 | 15155 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15156 | return resultobj; |
15157 | fail: | |
15158 | return NULL; | |
15159 | } | |
15160 | ||
15161 | ||
15162 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15163 | PyObject *resultobj; | |
15164 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15165 | wxControl *result; | |
15166 | PyObject * obj0 = 0 ; | |
15167 | char *kwnames[] = { | |
15168 | (char *) "self", NULL | |
15169 | }; | |
15170 | ||
15171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15174 | { |
15175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15176 | result = (wxControl *)(arg1)->GetControl(); | |
15177 | ||
15178 | wxPyEndAllowThreads(__tstate); | |
15179 | if (PyErr_Occurred()) SWIG_fail; | |
15180 | } | |
15181 | { | |
15182 | resultobj = wxPyMake_wxObject(result); | |
15183 | } | |
15184 | return resultobj; | |
15185 | fail: | |
15186 | return NULL; | |
15187 | } | |
15188 | ||
15189 | ||
15190 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15191 | PyObject *resultobj; | |
15192 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15193 | wxToolBarBase *result; | |
15194 | PyObject * obj0 = 0 ; | |
15195 | char *kwnames[] = { | |
15196 | (char *) "self", NULL | |
15197 | }; | |
15198 | ||
15199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15202 | { |
15203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15204 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15205 | ||
15206 | wxPyEndAllowThreads(__tstate); | |
15207 | if (PyErr_Occurred()) SWIG_fail; | |
15208 | } | |
15209 | { | |
15210 | resultobj = wxPyMake_wxObject(result); | |
15211 | } | |
15212 | return resultobj; | |
15213 | fail: | |
15214 | return NULL; | |
15215 | } | |
15216 | ||
15217 | ||
15218 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15219 | PyObject *resultobj; | |
15220 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15221 | int result; | |
15222 | PyObject * obj0 = 0 ; | |
15223 | char *kwnames[] = { | |
15224 | (char *) "self", NULL | |
15225 | }; | |
15226 | ||
15227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15230 | { |
15231 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15232 | result = (int)(arg1)->IsButton(); | |
15233 | ||
15234 | wxPyEndAllowThreads(__tstate); | |
15235 | if (PyErr_Occurred()) SWIG_fail; | |
15236 | } | |
2f4c0a16 | 15237 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15238 | return resultobj; |
15239 | fail: | |
15240 | return NULL; | |
15241 | } | |
15242 | ||
15243 | ||
15244 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15245 | PyObject *resultobj; | |
15246 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15247 | int result; | |
15248 | PyObject * obj0 = 0 ; | |
15249 | char *kwnames[] = { | |
15250 | (char *) "self", NULL | |
15251 | }; | |
15252 | ||
15253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15256 | { |
15257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15258 | result = (int)(arg1)->IsControl(); | |
15259 | ||
15260 | wxPyEndAllowThreads(__tstate); | |
15261 | if (PyErr_Occurred()) SWIG_fail; | |
15262 | } | |
2f4c0a16 | 15263 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15264 | return resultobj; |
15265 | fail: | |
15266 | return NULL; | |
15267 | } | |
15268 | ||
15269 | ||
15270 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15271 | PyObject *resultobj; | |
15272 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15273 | int result; | |
15274 | PyObject * obj0 = 0 ; | |
15275 | char *kwnames[] = { | |
15276 | (char *) "self", NULL | |
15277 | }; | |
15278 | ||
15279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15282 | { |
15283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15284 | result = (int)(arg1)->IsSeparator(); | |
15285 | ||
15286 | wxPyEndAllowThreads(__tstate); | |
15287 | if (PyErr_Occurred()) SWIG_fail; | |
15288 | } | |
2f4c0a16 | 15289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15290 | return resultobj; |
15291 | fail: | |
15292 | return NULL; | |
15293 | } | |
15294 | ||
15295 | ||
15296 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15297 | PyObject *resultobj; | |
15298 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15299 | int result; | |
15300 | PyObject * obj0 = 0 ; | |
15301 | char *kwnames[] = { | |
15302 | (char *) "self", NULL | |
15303 | }; | |
15304 | ||
15305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15308 | { |
15309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15310 | result = (int)(arg1)->GetStyle(); | |
15311 | ||
15312 | wxPyEndAllowThreads(__tstate); | |
15313 | if (PyErr_Occurred()) SWIG_fail; | |
15314 | } | |
2f4c0a16 | 15315 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15316 | return resultobj; |
15317 | fail: | |
15318 | return NULL; | |
15319 | } | |
15320 | ||
15321 | ||
15322 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15323 | PyObject *resultobj; | |
15324 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15325 | int result; | |
15326 | PyObject * obj0 = 0 ; | |
15327 | char *kwnames[] = { | |
15328 | (char *) "self", NULL | |
15329 | }; | |
15330 | ||
15331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15334 | { |
15335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15336 | result = (int)(arg1)->GetKind(); | |
15337 | ||
15338 | wxPyEndAllowThreads(__tstate); | |
15339 | if (PyErr_Occurred()) SWIG_fail; | |
15340 | } | |
2f4c0a16 | 15341 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15342 | return resultobj; |
15343 | fail: | |
15344 | return NULL; | |
15345 | } | |
15346 | ||
15347 | ||
15348 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15349 | PyObject *resultobj; | |
15350 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15351 | bool result; | |
15352 | PyObject * obj0 = 0 ; | |
15353 | char *kwnames[] = { | |
15354 | (char *) "self", NULL | |
15355 | }; | |
15356 | ||
15357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15360 | { |
15361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15362 | result = (bool)(arg1)->IsEnabled(); | |
15363 | ||
15364 | wxPyEndAllowThreads(__tstate); | |
15365 | if (PyErr_Occurred()) SWIG_fail; | |
15366 | } | |
4f89f6a3 RD |
15367 | { |
15368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15369 | } | |
d14a1e28 RD |
15370 | return resultobj; |
15371 | fail: | |
15372 | return NULL; | |
15373 | } | |
15374 | ||
15375 | ||
15376 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15377 | PyObject *resultobj; | |
15378 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15379 | bool result; | |
15380 | PyObject * obj0 = 0 ; | |
15381 | char *kwnames[] = { | |
15382 | (char *) "self", NULL | |
15383 | }; | |
15384 | ||
15385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15388 | { |
15389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15390 | result = (bool)(arg1)->IsToggled(); | |
15391 | ||
15392 | wxPyEndAllowThreads(__tstate); | |
15393 | if (PyErr_Occurred()) SWIG_fail; | |
15394 | } | |
4f89f6a3 RD |
15395 | { |
15396 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15397 | } | |
d14a1e28 RD |
15398 | return resultobj; |
15399 | fail: | |
15400 | return NULL; | |
15401 | } | |
15402 | ||
15403 | ||
15404 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15405 | PyObject *resultobj; | |
15406 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15407 | bool result; | |
15408 | PyObject * obj0 = 0 ; | |
15409 | char *kwnames[] = { | |
15410 | (char *) "self", NULL | |
15411 | }; | |
15412 | ||
15413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15416 | { |
15417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15418 | result = (bool)(arg1)->CanBeToggled(); | |
15419 | ||
15420 | wxPyEndAllowThreads(__tstate); | |
15421 | if (PyErr_Occurred()) SWIG_fail; | |
15422 | } | |
4f89f6a3 RD |
15423 | { |
15424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15425 | } | |
d14a1e28 RD |
15426 | return resultobj; |
15427 | fail: | |
15428 | return NULL; | |
15429 | } | |
15430 | ||
15431 | ||
15432 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15435 | wxBitmap *result; | |
15436 | PyObject * obj0 = 0 ; | |
15437 | char *kwnames[] = { | |
15438 | (char *) "self", NULL | |
15439 | }; | |
15440 | ||
15441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15444 | { |
15445 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15446 | { | |
15447 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15448 | result = (wxBitmap *) &_result_ref; | |
15449 | } | |
15450 | ||
15451 | wxPyEndAllowThreads(__tstate); | |
15452 | if (PyErr_Occurred()) SWIG_fail; | |
15453 | } | |
fe763115 RD |
15454 | { |
15455 | wxBitmap* resultptr = new wxBitmap(*result); | |
15456 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15457 | } | |
d14a1e28 RD |
15458 | return resultobj; |
15459 | fail: | |
15460 | return NULL; | |
15461 | } | |
15462 | ||
15463 | ||
15464 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15465 | PyObject *resultobj; | |
15466 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15467 | wxBitmap *result; | |
15468 | PyObject * obj0 = 0 ; | |
15469 | char *kwnames[] = { | |
15470 | (char *) "self", NULL | |
15471 | }; | |
15472 | ||
15473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15476 | { |
15477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15478 | { | |
15479 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15480 | result = (wxBitmap *) &_result_ref; | |
15481 | } | |
15482 | ||
15483 | wxPyEndAllowThreads(__tstate); | |
15484 | if (PyErr_Occurred()) SWIG_fail; | |
15485 | } | |
fe763115 RD |
15486 | { |
15487 | wxBitmap* resultptr = new wxBitmap(*result); | |
15488 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15489 | } | |
d14a1e28 RD |
15490 | return resultobj; |
15491 | fail: | |
15492 | return NULL; | |
15493 | } | |
15494 | ||
15495 | ||
15496 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15497 | PyObject *resultobj; | |
15498 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15499 | wxBitmap result; | |
15500 | PyObject * obj0 = 0 ; | |
15501 | char *kwnames[] = { | |
15502 | (char *) "self", NULL | |
15503 | }; | |
15504 | ||
15505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15508 | { |
15509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15510 | result = (arg1)->GetBitmap(); | |
15511 | ||
15512 | wxPyEndAllowThreads(__tstate); | |
15513 | if (PyErr_Occurred()) SWIG_fail; | |
15514 | } | |
15515 | { | |
15516 | wxBitmap * resultptr; | |
15517 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 15518 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
15519 | } |
15520 | return resultobj; | |
15521 | fail: | |
15522 | return NULL; | |
15523 | } | |
15524 | ||
15525 | ||
15526 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15527 | PyObject *resultobj; | |
15528 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15529 | wxString result; | |
15530 | PyObject * obj0 = 0 ; | |
15531 | char *kwnames[] = { | |
15532 | (char *) "self", NULL | |
15533 | }; | |
15534 | ||
15535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15538 | { |
15539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15540 | result = (arg1)->GetLabel(); | |
15541 | ||
15542 | wxPyEndAllowThreads(__tstate); | |
15543 | if (PyErr_Occurred()) SWIG_fail; | |
15544 | } | |
15545 | { | |
15546 | #if wxUSE_UNICODE | |
15547 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15548 | #else | |
15549 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15550 | #endif | |
15551 | } | |
15552 | return resultobj; | |
15553 | fail: | |
15554 | return NULL; | |
15555 | } | |
15556 | ||
15557 | ||
15558 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15559 | PyObject *resultobj; | |
15560 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15561 | wxString result; | |
15562 | PyObject * obj0 = 0 ; | |
15563 | char *kwnames[] = { | |
15564 | (char *) "self", NULL | |
15565 | }; | |
15566 | ||
15567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15570 | { |
15571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15572 | result = (arg1)->GetShortHelp(); | |
15573 | ||
15574 | wxPyEndAllowThreads(__tstate); | |
15575 | if (PyErr_Occurred()) SWIG_fail; | |
15576 | } | |
15577 | { | |
15578 | #if wxUSE_UNICODE | |
15579 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15580 | #else | |
15581 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15582 | #endif | |
15583 | } | |
15584 | return resultobj; | |
15585 | fail: | |
15586 | return NULL; | |
15587 | } | |
15588 | ||
15589 | ||
15590 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15591 | PyObject *resultobj; | |
15592 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15593 | wxString result; | |
15594 | PyObject * obj0 = 0 ; | |
15595 | char *kwnames[] = { | |
15596 | (char *) "self", NULL | |
15597 | }; | |
15598 | ||
15599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15602 | { |
15603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15604 | result = (arg1)->GetLongHelp(); | |
15605 | ||
15606 | wxPyEndAllowThreads(__tstate); | |
15607 | if (PyErr_Occurred()) SWIG_fail; | |
15608 | } | |
15609 | { | |
15610 | #if wxUSE_UNICODE | |
15611 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15612 | #else | |
15613 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15614 | #endif | |
15615 | } | |
15616 | return resultobj; | |
15617 | fail: | |
15618 | return NULL; | |
15619 | } | |
15620 | ||
15621 | ||
15622 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15623 | PyObject *resultobj; | |
15624 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15625 | bool arg2 ; | |
15626 | bool result; | |
15627 | PyObject * obj0 = 0 ; | |
15628 | PyObject * obj1 = 0 ; | |
15629 | char *kwnames[] = { | |
15630 | (char *) "self",(char *) "enable", NULL | |
15631 | }; | |
15632 | ||
15633 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15634 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15635 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15636 | arg2 = (bool) SWIG_AsBool(obj1); | |
15637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15638 | { |
15639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15640 | result = (bool)(arg1)->Enable(arg2); | |
15641 | ||
15642 | wxPyEndAllowThreads(__tstate); | |
15643 | if (PyErr_Occurred()) SWIG_fail; | |
15644 | } | |
4f89f6a3 RD |
15645 | { |
15646 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15647 | } | |
d14a1e28 RD |
15648 | return resultobj; |
15649 | fail: | |
15650 | return NULL; | |
15651 | } | |
15652 | ||
15653 | ||
15654 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15655 | PyObject *resultobj; | |
15656 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15657 | PyObject * obj0 = 0 ; | |
15658 | char *kwnames[] = { | |
15659 | (char *) "self", NULL | |
15660 | }; | |
15661 | ||
15662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15665 | { |
15666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15667 | (arg1)->Toggle(); | |
15668 | ||
15669 | wxPyEndAllowThreads(__tstate); | |
15670 | if (PyErr_Occurred()) SWIG_fail; | |
15671 | } | |
15672 | Py_INCREF(Py_None); resultobj = Py_None; | |
15673 | return resultobj; | |
15674 | fail: | |
15675 | return NULL; | |
15676 | } | |
15677 | ||
15678 | ||
15679 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15680 | PyObject *resultobj; | |
15681 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15682 | bool arg2 ; | |
15683 | bool result; | |
15684 | PyObject * obj0 = 0 ; | |
15685 | PyObject * obj1 = 0 ; | |
15686 | char *kwnames[] = { | |
15687 | (char *) "self",(char *) "toggle", NULL | |
15688 | }; | |
15689 | ||
15690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15693 | arg2 = (bool) SWIG_AsBool(obj1); | |
15694 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15695 | { |
15696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15697 | result = (bool)(arg1)->SetToggle(arg2); | |
15698 | ||
15699 | wxPyEndAllowThreads(__tstate); | |
15700 | if (PyErr_Occurred()) SWIG_fail; | |
15701 | } | |
4f89f6a3 RD |
15702 | { |
15703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15704 | } | |
d14a1e28 RD |
15705 | return resultobj; |
15706 | fail: | |
15707 | return NULL; | |
15708 | } | |
15709 | ||
15710 | ||
15711 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15712 | PyObject *resultobj; | |
15713 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15714 | wxString *arg2 = 0 ; | |
15715 | bool result; | |
423f194a | 15716 | bool temp2 = False ; |
d14a1e28 RD |
15717 | PyObject * obj0 = 0 ; |
15718 | PyObject * obj1 = 0 ; | |
15719 | char *kwnames[] = { | |
15720 | (char *) "self",(char *) "help", NULL | |
15721 | }; | |
15722 | ||
15723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15726 | { |
15727 | arg2 = wxString_in_helper(obj1); | |
15728 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15729 | temp2 = True; |
d14a1e28 RD |
15730 | } |
15731 | { | |
15732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15733 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15734 | ||
15735 | wxPyEndAllowThreads(__tstate); | |
15736 | if (PyErr_Occurred()) SWIG_fail; | |
15737 | } | |
4f89f6a3 RD |
15738 | { |
15739 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15740 | } | |
d14a1e28 RD |
15741 | { |
15742 | if (temp2) | |
15743 | delete arg2; | |
15744 | } | |
15745 | return resultobj; | |
15746 | fail: | |
15747 | { | |
15748 | if (temp2) | |
15749 | delete arg2; | |
15750 | } | |
15751 | return NULL; | |
15752 | } | |
15753 | ||
15754 | ||
15755 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15756 | PyObject *resultobj; | |
15757 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15758 | wxString *arg2 = 0 ; | |
15759 | bool result; | |
423f194a | 15760 | bool temp2 = False ; |
d14a1e28 RD |
15761 | PyObject * obj0 = 0 ; |
15762 | PyObject * obj1 = 0 ; | |
15763 | char *kwnames[] = { | |
15764 | (char *) "self",(char *) "help", NULL | |
15765 | }; | |
15766 | ||
15767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15770 | { |
15771 | arg2 = wxString_in_helper(obj1); | |
15772 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15773 | temp2 = True; |
d14a1e28 RD |
15774 | } |
15775 | { | |
15776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15777 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15778 | ||
15779 | wxPyEndAllowThreads(__tstate); | |
15780 | if (PyErr_Occurred()) SWIG_fail; | |
15781 | } | |
4f89f6a3 RD |
15782 | { |
15783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15784 | } | |
d14a1e28 RD |
15785 | { |
15786 | if (temp2) | |
15787 | delete arg2; | |
15788 | } | |
15789 | return resultobj; | |
15790 | fail: | |
15791 | { | |
15792 | if (temp2) | |
15793 | delete arg2; | |
15794 | } | |
15795 | return NULL; | |
15796 | } | |
15797 | ||
15798 | ||
15799 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15800 | PyObject *resultobj; | |
15801 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15802 | wxBitmap *arg2 = 0 ; | |
15803 | PyObject * obj0 = 0 ; | |
15804 | PyObject * obj1 = 0 ; | |
15805 | char *kwnames[] = { | |
15806 | (char *) "self",(char *) "bmp", NULL | |
15807 | }; | |
15808 | ||
15809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15814 | SWIG_fail; | |
d14a1e28 | 15815 | if (arg2 == NULL) { |
2f4c0a16 RD |
15816 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15817 | SWIG_fail; | |
d14a1e28 RD |
15818 | } |
15819 | { | |
15820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15821 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15822 | ||
15823 | wxPyEndAllowThreads(__tstate); | |
15824 | if (PyErr_Occurred()) SWIG_fail; | |
15825 | } | |
15826 | Py_INCREF(Py_None); resultobj = Py_None; | |
15827 | return resultobj; | |
15828 | fail: | |
15829 | return NULL; | |
15830 | } | |
15831 | ||
15832 | ||
15833 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15834 | PyObject *resultobj; | |
15835 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15836 | wxBitmap *arg2 = 0 ; | |
15837 | PyObject * obj0 = 0 ; | |
15838 | PyObject * obj1 = 0 ; | |
15839 | char *kwnames[] = { | |
15840 | (char *) "self",(char *) "bmp", NULL | |
15841 | }; | |
15842 | ||
15843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15848 | SWIG_fail; | |
d14a1e28 | 15849 | if (arg2 == NULL) { |
2f4c0a16 RD |
15850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15851 | SWIG_fail; | |
d14a1e28 RD |
15852 | } |
15853 | { | |
15854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15855 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15856 | ||
15857 | wxPyEndAllowThreads(__tstate); | |
15858 | if (PyErr_Occurred()) SWIG_fail; | |
15859 | } | |
15860 | Py_INCREF(Py_None); resultobj = Py_None; | |
15861 | return resultobj; | |
15862 | fail: | |
15863 | return NULL; | |
15864 | } | |
15865 | ||
15866 | ||
15867 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15868 | PyObject *resultobj; | |
15869 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15870 | wxString *arg2 = 0 ; | |
423f194a | 15871 | bool temp2 = False ; |
d14a1e28 RD |
15872 | PyObject * obj0 = 0 ; |
15873 | PyObject * obj1 = 0 ; | |
15874 | char *kwnames[] = { | |
15875 | (char *) "self",(char *) "label", NULL | |
15876 | }; | |
15877 | ||
15878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15881 | { |
15882 | arg2 = wxString_in_helper(obj1); | |
15883 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15884 | temp2 = True; |
d14a1e28 RD |
15885 | } |
15886 | { | |
15887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15888 | (arg1)->SetLabel((wxString const &)*arg2); | |
15889 | ||
15890 | wxPyEndAllowThreads(__tstate); | |
15891 | if (PyErr_Occurred()) SWIG_fail; | |
15892 | } | |
15893 | Py_INCREF(Py_None); resultobj = Py_None; | |
15894 | { | |
15895 | if (temp2) | |
15896 | delete arg2; | |
15897 | } | |
15898 | return resultobj; | |
15899 | fail: | |
15900 | { | |
15901 | if (temp2) | |
15902 | delete arg2; | |
15903 | } | |
15904 | return NULL; | |
15905 | } | |
15906 | ||
15907 | ||
15908 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15909 | PyObject *resultobj; | |
15910 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | char *kwnames[] = { | |
15913 | (char *) "self", NULL | |
15914 | }; | |
15915 | ||
15916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15917 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15918 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15919 | { |
15920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15921 | (arg1)->Detach(); | |
15922 | ||
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | Py_INCREF(Py_None); resultobj = Py_None; | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15934 | PyObject *resultobj; | |
15935 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15936 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | PyObject * obj1 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self",(char *) "tbar", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15946 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
15947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15948 | { |
15949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15950 | (arg1)->Attach(arg2); | |
15951 | ||
15952 | wxPyEndAllowThreads(__tstate); | |
15953 | if (PyErr_Occurred()) SWIG_fail; | |
15954 | } | |
15955 | Py_INCREF(Py_None); resultobj = Py_None; | |
15956 | return resultobj; | |
15957 | fail: | |
15958 | return NULL; | |
15959 | } | |
15960 | ||
15961 | ||
15962 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15963 | PyObject *resultobj; | |
15964 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15965 | PyObject *result; | |
15966 | PyObject * obj0 = 0 ; | |
15967 | char *kwnames[] = { | |
15968 | (char *) "self", NULL | |
15969 | }; | |
15970 | ||
15971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15974 | { |
15975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15976 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15977 | ||
15978 | wxPyEndAllowThreads(__tstate); | |
15979 | if (PyErr_Occurred()) SWIG_fail; | |
15980 | } | |
15981 | resultobj = result; | |
15982 | return resultobj; | |
15983 | fail: | |
15984 | return NULL; | |
15985 | } | |
15986 | ||
15987 | ||
15988 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15989 | PyObject *resultobj; | |
15990 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15991 | PyObject *arg2 = (PyObject *) 0 ; | |
15992 | PyObject * obj0 = 0 ; | |
15993 | PyObject * obj1 = 0 ; | |
15994 | char *kwnames[] = { | |
15995 | (char *) "self",(char *) "clientData", NULL | |
15996 | }; | |
15997 | ||
15998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16001 | arg2 = obj1; |
16002 | { | |
16003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16004 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16005 | ||
16006 | wxPyEndAllowThreads(__tstate); | |
16007 | if (PyErr_Occurred()) SWIG_fail; | |
16008 | } | |
16009 | Py_INCREF(Py_None); resultobj = Py_None; | |
16010 | return resultobj; | |
16011 | fail: | |
16012 | return NULL; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16017 | PyObject *obj; | |
16018 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16019 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16020 | Py_INCREF(obj); | |
16021 | return Py_BuildValue((char *)""); | |
16022 | } | |
16023 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16024 | PyObject *resultobj; | |
16025 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16026 | int arg2 ; | |
16027 | wxString *arg3 = 0 ; | |
16028 | wxBitmap *arg4 = 0 ; | |
16029 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16030 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16031 | int arg6 = (int) wxITEM_NORMAL ; | |
16032 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16033 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16034 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16035 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16036 | PyObject *arg9 = (PyObject *) NULL ; | |
16037 | wxToolBarToolBase *result; | |
423f194a RD |
16038 | bool temp3 = False ; |
16039 | bool temp7 = False ; | |
16040 | bool temp8 = False ; | |
d14a1e28 | 16041 | PyObject * obj0 = 0 ; |
8edf1c75 | 16042 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16043 | PyObject * obj2 = 0 ; |
16044 | PyObject * obj3 = 0 ; | |
16045 | PyObject * obj4 = 0 ; | |
8edf1c75 | 16046 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16047 | PyObject * obj6 = 0 ; |
16048 | PyObject * obj7 = 0 ; | |
16049 | PyObject * obj8 = 0 ; | |
16050 | char *kwnames[] = { | |
16051 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16052 | }; | |
16053 | ||
8edf1c75 | 16054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
16055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16057 | arg2 = (int) SWIG_AsInt(obj1); | |
16058 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16059 | { |
16060 | arg3 = wxString_in_helper(obj2); | |
16061 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16062 | temp3 = True; |
d14a1e28 | 16063 | } |
2f4c0a16 RD |
16064 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16066 | SWIG_fail; | |
d14a1e28 | 16067 | if (arg4 == NULL) { |
2f4c0a16 RD |
16068 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16069 | SWIG_fail; | |
d14a1e28 RD |
16070 | } |
16071 | if (obj4) { | |
2f4c0a16 RD |
16072 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16073 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16074 | SWIG_fail; | |
d14a1e28 | 16075 | if (arg5 == NULL) { |
2f4c0a16 RD |
16076 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16077 | SWIG_fail; | |
d14a1e28 RD |
16078 | } |
16079 | } | |
8edf1c75 | 16080 | if (obj5) { |
2f4c0a16 RD |
16081 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16082 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16083 | } |
d14a1e28 RD |
16084 | if (obj6) { |
16085 | { | |
16086 | arg7 = wxString_in_helper(obj6); | |
16087 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 16088 | temp7 = True; |
d14a1e28 RD |
16089 | } |
16090 | } | |
16091 | if (obj7) { | |
16092 | { | |
16093 | arg8 = wxString_in_helper(obj7); | |
16094 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16095 | temp8 = True; |
d14a1e28 RD |
16096 | } |
16097 | } | |
16098 | if (obj8) { | |
16099 | arg9 = obj8; | |
16100 | } | |
16101 | { | |
16102 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16103 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16104 | ||
16105 | wxPyEndAllowThreads(__tstate); | |
16106 | if (PyErr_Occurred()) SWIG_fail; | |
16107 | } | |
16108 | { | |
16109 | resultobj = wxPyMake_wxObject(result); | |
16110 | } | |
16111 | { | |
16112 | if (temp3) | |
16113 | delete arg3; | |
16114 | } | |
16115 | { | |
16116 | if (temp7) | |
16117 | delete arg7; | |
16118 | } | |
16119 | { | |
16120 | if (temp8) | |
16121 | delete arg8; | |
16122 | } | |
16123 | return resultobj; | |
16124 | fail: | |
16125 | { | |
16126 | if (temp3) | |
16127 | delete arg3; | |
16128 | } | |
16129 | { | |
16130 | if (temp7) | |
16131 | delete arg7; | |
16132 | } | |
16133 | { | |
16134 | if (temp8) | |
16135 | delete arg8; | |
16136 | } | |
16137 | return NULL; | |
16138 | } | |
16139 | ||
16140 | ||
16141 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16142 | PyObject *resultobj; | |
16143 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16144 | size_t arg2 ; | |
16145 | int arg3 ; | |
16146 | wxString *arg4 = 0 ; | |
16147 | wxBitmap *arg5 = 0 ; | |
16148 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16149 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16150 | int arg7 = (int) wxITEM_NORMAL ; | |
16151 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16152 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16153 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16154 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16155 | PyObject *arg10 = (PyObject *) NULL ; | |
16156 | wxToolBarToolBase *result; | |
423f194a RD |
16157 | bool temp4 = False ; |
16158 | bool temp8 = False ; | |
16159 | bool temp9 = False ; | |
d14a1e28 RD |
16160 | PyObject * obj0 = 0 ; |
16161 | PyObject * obj1 = 0 ; | |
8edf1c75 | 16162 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16163 | PyObject * obj3 = 0 ; |
16164 | PyObject * obj4 = 0 ; | |
16165 | PyObject * obj5 = 0 ; | |
8edf1c75 | 16166 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16167 | PyObject * obj7 = 0 ; |
16168 | PyObject * obj8 = 0 ; | |
16169 | PyObject * obj9 = 0 ; | |
16170 | char *kwnames[] = { | |
16171 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16172 | }; | |
16173 | ||
8edf1c75 | 16174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
16175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16177 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16178 | if (PyErr_Occurred()) SWIG_fail; | |
16179 | arg3 = (int) SWIG_AsInt(obj2); | |
16180 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16181 | { |
16182 | arg4 = wxString_in_helper(obj3); | |
16183 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16184 | temp4 = True; |
d14a1e28 | 16185 | } |
2f4c0a16 RD |
16186 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16187 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16188 | SWIG_fail; | |
d14a1e28 | 16189 | if (arg5 == NULL) { |
2f4c0a16 RD |
16190 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16191 | SWIG_fail; | |
d14a1e28 RD |
16192 | } |
16193 | if (obj5) { | |
2f4c0a16 RD |
16194 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16195 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16196 | SWIG_fail; | |
d14a1e28 | 16197 | if (arg6 == NULL) { |
2f4c0a16 RD |
16198 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16199 | SWIG_fail; | |
d14a1e28 RD |
16200 | } |
16201 | } | |
8edf1c75 | 16202 | if (obj6) { |
2f4c0a16 RD |
16203 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16204 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16205 | } |
d14a1e28 RD |
16206 | if (obj7) { |
16207 | { | |
16208 | arg8 = wxString_in_helper(obj7); | |
16209 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16210 | temp8 = True; |
d14a1e28 RD |
16211 | } |
16212 | } | |
16213 | if (obj8) { | |
16214 | { | |
16215 | arg9 = wxString_in_helper(obj8); | |
16216 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 16217 | temp9 = True; |
d14a1e28 RD |
16218 | } |
16219 | } | |
16220 | if (obj9) { | |
16221 | arg10 = obj9; | |
16222 | } | |
16223 | { | |
16224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16225 | 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); | |
16226 | ||
16227 | wxPyEndAllowThreads(__tstate); | |
16228 | if (PyErr_Occurred()) SWIG_fail; | |
16229 | } | |
16230 | { | |
16231 | resultobj = wxPyMake_wxObject(result); | |
16232 | } | |
16233 | { | |
16234 | if (temp4) | |
16235 | delete arg4; | |
16236 | } | |
16237 | { | |
16238 | if (temp8) | |
16239 | delete arg8; | |
16240 | } | |
16241 | { | |
16242 | if (temp9) | |
16243 | delete arg9; | |
16244 | } | |
16245 | return resultobj; | |
16246 | fail: | |
16247 | { | |
16248 | if (temp4) | |
16249 | delete arg4; | |
16250 | } | |
16251 | { | |
16252 | if (temp8) | |
16253 | delete arg8; | |
16254 | } | |
16255 | { | |
16256 | if (temp9) | |
16257 | delete arg9; | |
16258 | } | |
16259 | return NULL; | |
16260 | } | |
16261 | ||
16262 | ||
d03fd34d RD |
16263 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16264 | PyObject *resultobj; | |
16265 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16266 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16267 | wxToolBarToolBase *result; | |
16268 | PyObject * obj0 = 0 ; | |
16269 | PyObject * obj1 = 0 ; | |
16270 | char *kwnames[] = { | |
16271 | (char *) "self",(char *) "tool", NULL | |
16272 | }; | |
16273 | ||
16274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16277 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16279 | { |
16280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16281 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16282 | ||
16283 | wxPyEndAllowThreads(__tstate); | |
16284 | if (PyErr_Occurred()) SWIG_fail; | |
16285 | } | |
16286 | { | |
16287 | resultobj = wxPyMake_wxObject(result); | |
16288 | } | |
16289 | return resultobj; | |
16290 | fail: | |
16291 | return NULL; | |
16292 | } | |
16293 | ||
16294 | ||
16295 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16296 | PyObject *resultobj; | |
16297 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16298 | size_t arg2 ; | |
16299 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16300 | wxToolBarToolBase *result; | |
16301 | PyObject * obj0 = 0 ; | |
16302 | PyObject * obj1 = 0 ; | |
16303 | PyObject * obj2 = 0 ; | |
16304 | char *kwnames[] = { | |
16305 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16306 | }; | |
16307 | ||
16308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16311 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16312 | if (PyErr_Occurred()) SWIG_fail; | |
16313 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16315 | { |
16316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16317 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16318 | ||
16319 | wxPyEndAllowThreads(__tstate); | |
16320 | if (PyErr_Occurred()) SWIG_fail; | |
16321 | } | |
16322 | { | |
16323 | resultobj = wxPyMake_wxObject(result); | |
16324 | } | |
16325 | return resultobj; | |
16326 | fail: | |
16327 | return NULL; | |
16328 | } | |
16329 | ||
16330 | ||
d14a1e28 RD |
16331 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16332 | PyObject *resultobj; | |
16333 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16334 | wxControl *arg2 = (wxControl *) 0 ; | |
16335 | wxToolBarToolBase *result; | |
16336 | PyObject * obj0 = 0 ; | |
16337 | PyObject * obj1 = 0 ; | |
16338 | char *kwnames[] = { | |
16339 | (char *) "self",(char *) "control", NULL | |
16340 | }; | |
16341 | ||
16342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16347 | { |
16348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16349 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16350 | ||
16351 | wxPyEndAllowThreads(__tstate); | |
16352 | if (PyErr_Occurred()) SWIG_fail; | |
16353 | } | |
16354 | { | |
16355 | resultobj = wxPyMake_wxObject(result); | |
16356 | } | |
16357 | return resultobj; | |
16358 | fail: | |
16359 | return NULL; | |
16360 | } | |
16361 | ||
16362 | ||
16363 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16364 | PyObject *resultobj; | |
16365 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16366 | size_t arg2 ; | |
16367 | wxControl *arg3 = (wxControl *) 0 ; | |
16368 | wxToolBarToolBase *result; | |
16369 | PyObject * obj0 = 0 ; | |
16370 | PyObject * obj1 = 0 ; | |
16371 | PyObject * obj2 = 0 ; | |
16372 | char *kwnames[] = { | |
16373 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16374 | }; | |
16375 | ||
16376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16379 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16380 | if (PyErr_Occurred()) SWIG_fail; | |
16381 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16383 | { |
16384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16385 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16386 | ||
16387 | wxPyEndAllowThreads(__tstate); | |
16388 | if (PyErr_Occurred()) SWIG_fail; | |
16389 | } | |
16390 | { | |
16391 | resultobj = wxPyMake_wxObject(result); | |
16392 | } | |
16393 | return resultobj; | |
16394 | fail: | |
16395 | return NULL; | |
16396 | } | |
16397 | ||
16398 | ||
16399 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16400 | PyObject *resultobj; | |
16401 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16402 | int arg2 ; | |
16403 | wxControl *result; | |
16404 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16405 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16406 | char *kwnames[] = { |
16407 | (char *) "self",(char *) "id", NULL | |
16408 | }; | |
16409 | ||
8edf1c75 | 16410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16413 | arg2 = (int) SWIG_AsInt(obj1); | |
16414 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16415 | { |
16416 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16417 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16418 | ||
16419 | wxPyEndAllowThreads(__tstate); | |
16420 | if (PyErr_Occurred()) SWIG_fail; | |
16421 | } | |
16422 | { | |
16423 | resultobj = wxPyMake_wxObject(result); | |
16424 | } | |
16425 | return resultobj; | |
16426 | fail: | |
16427 | return NULL; | |
16428 | } | |
16429 | ||
16430 | ||
16431 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16432 | PyObject *resultobj; | |
16433 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16434 | wxToolBarToolBase *result; | |
16435 | PyObject * obj0 = 0 ; | |
16436 | char *kwnames[] = { | |
16437 | (char *) "self", NULL | |
16438 | }; | |
16439 | ||
16440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16443 | { |
16444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16445 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16446 | ||
16447 | wxPyEndAllowThreads(__tstate); | |
16448 | if (PyErr_Occurred()) SWIG_fail; | |
16449 | } | |
16450 | { | |
16451 | resultobj = wxPyMake_wxObject(result); | |
16452 | } | |
16453 | return resultobj; | |
16454 | fail: | |
16455 | return NULL; | |
16456 | } | |
16457 | ||
16458 | ||
16459 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16460 | PyObject *resultobj; | |
16461 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16462 | size_t arg2 ; | |
16463 | wxToolBarToolBase *result; | |
16464 | PyObject * obj0 = 0 ; | |
16465 | PyObject * obj1 = 0 ; | |
16466 | char *kwnames[] = { | |
16467 | (char *) "self",(char *) "pos", NULL | |
16468 | }; | |
16469 | ||
16470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16473 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16475 | { |
16476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16477 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16478 | ||
16479 | wxPyEndAllowThreads(__tstate); | |
16480 | if (PyErr_Occurred()) SWIG_fail; | |
16481 | } | |
16482 | { | |
16483 | resultobj = wxPyMake_wxObject(result); | |
16484 | } | |
16485 | return resultobj; | |
16486 | fail: | |
16487 | return NULL; | |
16488 | } | |
16489 | ||
16490 | ||
16491 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16492 | PyObject *resultobj; | |
16493 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16494 | int arg2 ; | |
16495 | wxToolBarToolBase *result; | |
16496 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16498 | char *kwnames[] = { |
16499 | (char *) "self",(char *) "id", NULL | |
16500 | }; | |
16501 | ||
8edf1c75 | 16502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16505 | arg2 = (int) SWIG_AsInt(obj1); | |
16506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16507 | { |
16508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16509 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16510 | ||
16511 | wxPyEndAllowThreads(__tstate); | |
16512 | if (PyErr_Occurred()) SWIG_fail; | |
16513 | } | |
16514 | { | |
16515 | resultobj = wxPyMake_wxObject(result); | |
16516 | } | |
16517 | return resultobj; | |
16518 | fail: | |
16519 | return NULL; | |
16520 | } | |
16521 | ||
16522 | ||
16523 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16524 | PyObject *resultobj; | |
16525 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16526 | size_t arg2 ; | |
16527 | bool result; | |
16528 | PyObject * obj0 = 0 ; | |
16529 | PyObject * obj1 = 0 ; | |
16530 | char *kwnames[] = { | |
16531 | (char *) "self",(char *) "pos", NULL | |
16532 | }; | |
16533 | ||
16534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16537 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16538 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16539 | { |
16540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16541 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16542 | ||
16543 | wxPyEndAllowThreads(__tstate); | |
16544 | if (PyErr_Occurred()) SWIG_fail; | |
16545 | } | |
4f89f6a3 RD |
16546 | { |
16547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16548 | } | |
d14a1e28 RD |
16549 | return resultobj; |
16550 | fail: | |
16551 | return NULL; | |
16552 | } | |
16553 | ||
16554 | ||
16555 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16556 | PyObject *resultobj; | |
16557 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16558 | int arg2 ; | |
16559 | bool result; | |
16560 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16562 | char *kwnames[] = { |
16563 | (char *) "self",(char *) "id", NULL | |
16564 | }; | |
16565 | ||
8edf1c75 | 16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16569 | arg2 = (int) SWIG_AsInt(obj1); | |
16570 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16571 | { |
16572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16573 | result = (bool)(arg1)->DeleteTool(arg2); | |
16574 | ||
16575 | wxPyEndAllowThreads(__tstate); | |
16576 | if (PyErr_Occurred()) SWIG_fail; | |
16577 | } | |
4f89f6a3 RD |
16578 | { |
16579 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16580 | } | |
d14a1e28 RD |
16581 | return resultobj; |
16582 | fail: | |
16583 | return NULL; | |
16584 | } | |
16585 | ||
16586 | ||
16587 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16588 | PyObject *resultobj; | |
16589 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16590 | PyObject * obj0 = 0 ; | |
16591 | char *kwnames[] = { | |
16592 | (char *) "self", NULL | |
16593 | }; | |
16594 | ||
16595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16598 | { |
16599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16600 | (arg1)->ClearTools(); | |
16601 | ||
16602 | wxPyEndAllowThreads(__tstate); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
16604 | } | |
16605 | Py_INCREF(Py_None); resultobj = Py_None; | |
16606 | return resultobj; | |
16607 | fail: | |
16608 | return NULL; | |
16609 | } | |
16610 | ||
16611 | ||
16612 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16613 | PyObject *resultobj; | |
16614 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16615 | bool result; | |
16616 | PyObject * obj0 = 0 ; | |
16617 | char *kwnames[] = { | |
16618 | (char *) "self", NULL | |
16619 | }; | |
16620 | ||
16621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16624 | { |
16625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16626 | result = (bool)(arg1)->Realize(); | |
16627 | ||
16628 | wxPyEndAllowThreads(__tstate); | |
16629 | if (PyErr_Occurred()) SWIG_fail; | |
16630 | } | |
4f89f6a3 RD |
16631 | { |
16632 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16633 | } | |
d14a1e28 RD |
16634 | return resultobj; |
16635 | fail: | |
16636 | return NULL; | |
16637 | } | |
16638 | ||
16639 | ||
16640 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16641 | PyObject *resultobj; | |
16642 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16643 | int arg2 ; | |
16644 | bool arg3 ; | |
16645 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16646 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16647 | PyObject * obj2 = 0 ; |
16648 | char *kwnames[] = { | |
16649 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16650 | }; | |
16651 | ||
8edf1c75 | 16652 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16653 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16654 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16655 | arg2 = (int) SWIG_AsInt(obj1); | |
16656 | if (PyErr_Occurred()) SWIG_fail; | |
16657 | arg3 = (bool) SWIG_AsBool(obj2); | |
16658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16659 | { |
16660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16661 | (arg1)->EnableTool(arg2,arg3); | |
16662 | ||
16663 | wxPyEndAllowThreads(__tstate); | |
16664 | if (PyErr_Occurred()) SWIG_fail; | |
16665 | } | |
16666 | Py_INCREF(Py_None); resultobj = Py_None; | |
16667 | return resultobj; | |
16668 | fail: | |
16669 | return NULL; | |
16670 | } | |
16671 | ||
16672 | ||
16673 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16674 | PyObject *resultobj; | |
16675 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16676 | int arg2 ; | |
16677 | bool arg3 ; | |
16678 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16679 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16680 | PyObject * obj2 = 0 ; |
16681 | char *kwnames[] = { | |
16682 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16683 | }; | |
16684 | ||
8edf1c75 | 16685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16688 | arg2 = (int) SWIG_AsInt(obj1); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | arg3 = (bool) SWIG_AsBool(obj2); | |
16691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16692 | { |
16693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16694 | (arg1)->ToggleTool(arg2,arg3); | |
16695 | ||
16696 | wxPyEndAllowThreads(__tstate); | |
16697 | if (PyErr_Occurred()) SWIG_fail; | |
16698 | } | |
16699 | Py_INCREF(Py_None); resultobj = Py_None; | |
16700 | return resultobj; | |
16701 | fail: | |
16702 | return NULL; | |
16703 | } | |
16704 | ||
16705 | ||
16706 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16707 | PyObject *resultobj; | |
16708 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16709 | int arg2 ; | |
16710 | bool arg3 ; | |
16711 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16712 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16713 | PyObject * obj2 = 0 ; |
16714 | char *kwnames[] = { | |
16715 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16716 | }; | |
16717 | ||
8edf1c75 | 16718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16721 | arg2 = (int) SWIG_AsInt(obj1); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | arg3 = (bool) SWIG_AsBool(obj2); | |
16724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16725 | { |
16726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16727 | (arg1)->SetToggle(arg2,arg3); | |
16728 | ||
16729 | wxPyEndAllowThreads(__tstate); | |
16730 | if (PyErr_Occurred()) SWIG_fail; | |
16731 | } | |
16732 | Py_INCREF(Py_None); resultobj = Py_None; | |
16733 | return resultobj; | |
16734 | fail: | |
16735 | return NULL; | |
16736 | } | |
16737 | ||
16738 | ||
16739 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16740 | PyObject *resultobj; | |
16741 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16742 | int arg2 ; | |
16743 | PyObject *result; | |
16744 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16745 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16746 | char *kwnames[] = { |
16747 | (char *) "self",(char *) "id", NULL | |
16748 | }; | |
16749 | ||
8edf1c75 | 16750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16753 | arg2 = (int) SWIG_AsInt(obj1); | |
16754 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16755 | { |
16756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16757 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16758 | ||
16759 | wxPyEndAllowThreads(__tstate); | |
16760 | if (PyErr_Occurred()) SWIG_fail; | |
16761 | } | |
16762 | resultobj = result; | |
16763 | return resultobj; | |
16764 | fail: | |
16765 | return NULL; | |
16766 | } | |
16767 | ||
16768 | ||
16769 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16770 | PyObject *resultobj; | |
16771 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16772 | int arg2 ; | |
16773 | PyObject *arg3 = (PyObject *) 0 ; | |
16774 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16775 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16776 | PyObject * obj2 = 0 ; |
16777 | char *kwnames[] = { | |
16778 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16779 | }; | |
16780 | ||
8edf1c75 | 16781 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16782 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16783 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16784 | arg2 = (int) SWIG_AsInt(obj1); | |
16785 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16786 | arg3 = obj2; |
16787 | { | |
16788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16789 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16790 | ||
16791 | wxPyEndAllowThreads(__tstate); | |
16792 | if (PyErr_Occurred()) SWIG_fail; | |
16793 | } | |
16794 | Py_INCREF(Py_None); resultobj = Py_None; | |
16795 | return resultobj; | |
16796 | fail: | |
16797 | return NULL; | |
16798 | } | |
16799 | ||
16800 | ||
16801 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16802 | PyObject *resultobj; | |
16803 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16804 | int arg2 ; | |
16805 | int result; | |
16806 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16808 | char *kwnames[] = { |
16809 | (char *) "self",(char *) "id", NULL | |
16810 | }; | |
16811 | ||
8edf1c75 | 16812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16815 | arg2 = (int) SWIG_AsInt(obj1); | |
16816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16817 | { |
16818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16819 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16820 | ||
16821 | wxPyEndAllowThreads(__tstate); | |
16822 | if (PyErr_Occurred()) SWIG_fail; | |
16823 | } | |
2f4c0a16 | 16824 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16825 | return resultobj; |
16826 | fail: | |
16827 | return NULL; | |
16828 | } | |
16829 | ||
16830 | ||
16831 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16832 | PyObject *resultobj; | |
16833 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16834 | int arg2 ; | |
16835 | bool result; | |
16836 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16838 | char *kwnames[] = { |
16839 | (char *) "self",(char *) "id", NULL | |
16840 | }; | |
16841 | ||
8edf1c75 | 16842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16845 | arg2 = (int) SWIG_AsInt(obj1); | |
16846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16847 | { |
16848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16849 | result = (bool)(arg1)->GetToolState(arg2); | |
16850 | ||
16851 | wxPyEndAllowThreads(__tstate); | |
16852 | if (PyErr_Occurred()) SWIG_fail; | |
16853 | } | |
4f89f6a3 RD |
16854 | { |
16855 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16856 | } | |
d14a1e28 RD |
16857 | return resultobj; |
16858 | fail: | |
16859 | return NULL; | |
16860 | } | |
16861 | ||
16862 | ||
16863 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16864 | PyObject *resultobj; | |
16865 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16866 | int arg2 ; | |
16867 | bool result; | |
16868 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16869 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16870 | char *kwnames[] = { |
16871 | (char *) "self",(char *) "id", NULL | |
16872 | }; | |
16873 | ||
8edf1c75 | 16874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16877 | arg2 = (int) SWIG_AsInt(obj1); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16879 | { |
16880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16881 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16882 | ||
16883 | wxPyEndAllowThreads(__tstate); | |
16884 | if (PyErr_Occurred()) SWIG_fail; | |
16885 | } | |
4f89f6a3 RD |
16886 | { |
16887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16888 | } | |
d14a1e28 RD |
16889 | return resultobj; |
16890 | fail: | |
16891 | return NULL; | |
16892 | } | |
16893 | ||
16894 | ||
16895 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16896 | PyObject *resultobj; | |
16897 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16898 | int arg2 ; | |
16899 | wxString *arg3 = 0 ; | |
423f194a | 16900 | bool temp3 = False ; |
d14a1e28 | 16901 | PyObject * obj0 = 0 ; |
8edf1c75 | 16902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16903 | PyObject * obj2 = 0 ; |
16904 | char *kwnames[] = { | |
16905 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16906 | }; | |
16907 | ||
8edf1c75 | 16908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16911 | arg2 = (int) SWIG_AsInt(obj1); | |
16912 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16913 | { |
16914 | arg3 = wxString_in_helper(obj2); | |
16915 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16916 | temp3 = True; |
d14a1e28 RD |
16917 | } |
16918 | { | |
16919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16920 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16921 | ||
16922 | wxPyEndAllowThreads(__tstate); | |
16923 | if (PyErr_Occurred()) SWIG_fail; | |
16924 | } | |
16925 | Py_INCREF(Py_None); resultobj = Py_None; | |
16926 | { | |
16927 | if (temp3) | |
16928 | delete arg3; | |
16929 | } | |
16930 | return resultobj; | |
16931 | fail: | |
16932 | { | |
16933 | if (temp3) | |
16934 | delete arg3; | |
16935 | } | |
16936 | return NULL; | |
16937 | } | |
16938 | ||
16939 | ||
16940 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16941 | PyObject *resultobj; | |
16942 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16943 | int arg2 ; | |
16944 | wxString result; | |
16945 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16946 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16947 | char *kwnames[] = { |
16948 | (char *) "self",(char *) "id", NULL | |
16949 | }; | |
16950 | ||
8edf1c75 | 16951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16954 | arg2 = (int) SWIG_AsInt(obj1); | |
16955 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16956 | { |
16957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16958 | result = (arg1)->GetToolShortHelp(arg2); | |
16959 | ||
16960 | wxPyEndAllowThreads(__tstate); | |
16961 | if (PyErr_Occurred()) SWIG_fail; | |
16962 | } | |
16963 | { | |
16964 | #if wxUSE_UNICODE | |
16965 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16966 | #else | |
16967 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16968 | #endif | |
16969 | } | |
16970 | return resultobj; | |
16971 | fail: | |
16972 | return NULL; | |
16973 | } | |
16974 | ||
16975 | ||
16976 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16977 | PyObject *resultobj; | |
16978 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16979 | int arg2 ; | |
16980 | wxString *arg3 = 0 ; | |
423f194a | 16981 | bool temp3 = False ; |
d14a1e28 | 16982 | PyObject * obj0 = 0 ; |
8edf1c75 | 16983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16984 | PyObject * obj2 = 0 ; |
16985 | char *kwnames[] = { | |
16986 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16987 | }; | |
16988 | ||
8edf1c75 | 16989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16992 | arg2 = (int) SWIG_AsInt(obj1); | |
16993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16994 | { |
16995 | arg3 = wxString_in_helper(obj2); | |
16996 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16997 | temp3 = True; |
d14a1e28 RD |
16998 | } |
16999 | { | |
17000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17001 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17002 | ||
17003 | wxPyEndAllowThreads(__tstate); | |
17004 | if (PyErr_Occurred()) SWIG_fail; | |
17005 | } | |
17006 | Py_INCREF(Py_None); resultobj = Py_None; | |
17007 | { | |
17008 | if (temp3) | |
17009 | delete arg3; | |
17010 | } | |
17011 | return resultobj; | |
17012 | fail: | |
17013 | { | |
17014 | if (temp3) | |
17015 | delete arg3; | |
17016 | } | |
17017 | return NULL; | |
17018 | } | |
17019 | ||
17020 | ||
17021 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17022 | PyObject *resultobj; | |
17023 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17024 | int arg2 ; | |
17025 | wxString result; | |
17026 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17027 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17028 | char *kwnames[] = { |
17029 | (char *) "self",(char *) "id", NULL | |
17030 | }; | |
17031 | ||
8edf1c75 | 17032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17035 | arg2 = (int) SWIG_AsInt(obj1); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17037 | { |
17038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17039 | result = (arg1)->GetToolLongHelp(arg2); | |
17040 | ||
17041 | wxPyEndAllowThreads(__tstate); | |
17042 | if (PyErr_Occurred()) SWIG_fail; | |
17043 | } | |
17044 | { | |
17045 | #if wxUSE_UNICODE | |
17046 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17047 | #else | |
17048 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17049 | #endif | |
17050 | } | |
17051 | return resultobj; | |
17052 | fail: | |
17053 | return NULL; | |
17054 | } | |
17055 | ||
17056 | ||
17057 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17058 | PyObject *resultobj; | |
17059 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17060 | int arg2 ; | |
17061 | int arg3 ; | |
17062 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17063 | PyObject * obj1 = 0 ; |
17064 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17065 | char *kwnames[] = { |
17066 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17067 | }; | |
17068 | ||
8edf1c75 | 17069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17072 | arg2 = (int) SWIG_AsInt(obj1); | |
17073 | if (PyErr_Occurred()) SWIG_fail; | |
17074 | arg3 = (int) SWIG_AsInt(obj2); | |
17075 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17076 | { |
17077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17078 | (arg1)->SetMargins(arg2,arg3); | |
17079 | ||
17080 | wxPyEndAllowThreads(__tstate); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
17082 | } | |
17083 | Py_INCREF(Py_None); resultobj = Py_None; | |
17084 | return resultobj; | |
17085 | fail: | |
17086 | return NULL; | |
17087 | } | |
17088 | ||
17089 | ||
17090 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17091 | PyObject *resultobj; | |
17092 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17093 | wxSize *arg2 = 0 ; | |
17094 | wxSize temp2 ; | |
17095 | PyObject * obj0 = 0 ; | |
17096 | PyObject * obj1 = 0 ; | |
17097 | char *kwnames[] = { | |
17098 | (char *) "self",(char *) "size", NULL | |
17099 | }; | |
17100 | ||
17101 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17102 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17104 | { |
17105 | arg2 = &temp2; | |
17106 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17107 | } | |
17108 | { | |
17109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17110 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17111 | ||
17112 | wxPyEndAllowThreads(__tstate); | |
17113 | if (PyErr_Occurred()) SWIG_fail; | |
17114 | } | |
17115 | Py_INCREF(Py_None); resultobj = Py_None; | |
17116 | return resultobj; | |
17117 | fail: | |
17118 | return NULL; | |
17119 | } | |
17120 | ||
17121 | ||
17122 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17123 | PyObject *resultobj; | |
17124 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17125 | int arg2 ; | |
17126 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17127 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17128 | char *kwnames[] = { |
17129 | (char *) "self",(char *) "packing", NULL | |
17130 | }; | |
17131 | ||
8edf1c75 | 17132 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17133 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17134 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17135 | arg2 = (int) SWIG_AsInt(obj1); | |
17136 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17137 | { |
17138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17139 | (arg1)->SetToolPacking(arg2); | |
17140 | ||
17141 | wxPyEndAllowThreads(__tstate); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | } | |
17144 | Py_INCREF(Py_None); resultobj = Py_None; | |
17145 | return resultobj; | |
17146 | fail: | |
17147 | return NULL; | |
17148 | } | |
17149 | ||
17150 | ||
17151 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17152 | PyObject *resultobj; | |
17153 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17154 | int arg2 ; | |
17155 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17156 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17157 | char *kwnames[] = { |
17158 | (char *) "self",(char *) "separation", NULL | |
17159 | }; | |
17160 | ||
8edf1c75 | 17161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17164 | arg2 = (int) SWIG_AsInt(obj1); | |
17165 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17166 | { |
17167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17168 | (arg1)->SetToolSeparation(arg2); | |
17169 | ||
17170 | wxPyEndAllowThreads(__tstate); | |
17171 | if (PyErr_Occurred()) SWIG_fail; | |
17172 | } | |
17173 | Py_INCREF(Py_None); resultobj = Py_None; | |
17174 | return resultobj; | |
17175 | fail: | |
17176 | return NULL; | |
17177 | } | |
17178 | ||
17179 | ||
17180 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17181 | PyObject *resultobj; | |
17182 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17183 | wxSize result; | |
17184 | PyObject * obj0 = 0 ; | |
17185 | char *kwnames[] = { | |
17186 | (char *) "self", NULL | |
17187 | }; | |
17188 | ||
17189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17192 | { |
17193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17194 | result = (arg1)->GetToolMargins(); | |
17195 | ||
17196 | wxPyEndAllowThreads(__tstate); | |
17197 | if (PyErr_Occurred()) SWIG_fail; | |
17198 | } | |
17199 | { | |
17200 | wxSize * resultptr; | |
17201 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17202 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17203 | } |
17204 | return resultobj; | |
17205 | fail: | |
17206 | return NULL; | |
17207 | } | |
17208 | ||
17209 | ||
17210 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17211 | PyObject *resultobj; | |
17212 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17213 | wxSize result; | |
17214 | PyObject * obj0 = 0 ; | |
17215 | char *kwnames[] = { | |
17216 | (char *) "self", NULL | |
17217 | }; | |
17218 | ||
17219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17222 | { |
17223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17224 | result = (arg1)->GetMargins(); | |
17225 | ||
17226 | wxPyEndAllowThreads(__tstate); | |
17227 | if (PyErr_Occurred()) SWIG_fail; | |
17228 | } | |
17229 | { | |
17230 | wxSize * resultptr; | |
17231 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17232 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17233 | } |
17234 | return resultobj; | |
17235 | fail: | |
17236 | return NULL; | |
17237 | } | |
17238 | ||
17239 | ||
17240 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17241 | PyObject *resultobj; | |
17242 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17243 | int result; | |
17244 | PyObject * obj0 = 0 ; | |
17245 | char *kwnames[] = { | |
17246 | (char *) "self", NULL | |
17247 | }; | |
17248 | ||
17249 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17250 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17251 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17252 | { |
17253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17254 | result = (int)(arg1)->GetToolPacking(); | |
17255 | ||
17256 | wxPyEndAllowThreads(__tstate); | |
17257 | if (PyErr_Occurred()) SWIG_fail; | |
17258 | } | |
2f4c0a16 | 17259 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17260 | return resultobj; |
17261 | fail: | |
17262 | return NULL; | |
17263 | } | |
17264 | ||
17265 | ||
17266 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17267 | PyObject *resultobj; | |
17268 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17269 | int result; | |
17270 | PyObject * obj0 = 0 ; | |
17271 | char *kwnames[] = { | |
17272 | (char *) "self", NULL | |
17273 | }; | |
17274 | ||
17275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17278 | { |
17279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17280 | result = (int)(arg1)->GetToolSeparation(); | |
17281 | ||
17282 | wxPyEndAllowThreads(__tstate); | |
17283 | if (PyErr_Occurred()) SWIG_fail; | |
17284 | } | |
2f4c0a16 | 17285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17286 | return resultobj; |
17287 | fail: | |
17288 | return NULL; | |
17289 | } | |
17290 | ||
17291 | ||
17292 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17293 | PyObject *resultobj; | |
17294 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17295 | int arg2 ; | |
17296 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17298 | char *kwnames[] = { |
17299 | (char *) "self",(char *) "nRows", NULL | |
17300 | }; | |
17301 | ||
8edf1c75 | 17302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17305 | arg2 = (int) SWIG_AsInt(obj1); | |
17306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17307 | { |
17308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17309 | (arg1)->SetRows(arg2); | |
17310 | ||
17311 | wxPyEndAllowThreads(__tstate); | |
17312 | if (PyErr_Occurred()) SWIG_fail; | |
17313 | } | |
17314 | Py_INCREF(Py_None); resultobj = Py_None; | |
17315 | return resultobj; | |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17322 | PyObject *resultobj; | |
17323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17324 | int arg2 ; | |
17325 | int arg3 ; | |
17326 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17327 | PyObject * obj1 = 0 ; |
17328 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17329 | char *kwnames[] = { |
17330 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17331 | }; | |
17332 | ||
8edf1c75 | 17333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17336 | arg2 = (int) SWIG_AsInt(obj1); | |
17337 | if (PyErr_Occurred()) SWIG_fail; | |
17338 | arg3 = (int) SWIG_AsInt(obj2); | |
17339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17340 | { |
17341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17342 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17343 | ||
17344 | wxPyEndAllowThreads(__tstate); | |
17345 | if (PyErr_Occurred()) SWIG_fail; | |
17346 | } | |
17347 | Py_INCREF(Py_None); resultobj = Py_None; | |
17348 | return resultobj; | |
17349 | fail: | |
17350 | return NULL; | |
17351 | } | |
17352 | ||
17353 | ||
17354 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17355 | PyObject *resultobj; | |
17356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17357 | int result; | |
17358 | PyObject * obj0 = 0 ; | |
17359 | char *kwnames[] = { | |
17360 | (char *) "self", NULL | |
17361 | }; | |
17362 | ||
17363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17366 | { |
17367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17368 | result = (int)(arg1)->GetMaxRows(); | |
17369 | ||
17370 | wxPyEndAllowThreads(__tstate); | |
17371 | if (PyErr_Occurred()) SWIG_fail; | |
17372 | } | |
2f4c0a16 | 17373 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17374 | return resultobj; |
17375 | fail: | |
17376 | return NULL; | |
17377 | } | |
17378 | ||
17379 | ||
17380 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17381 | PyObject *resultobj; | |
17382 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17383 | int result; | |
17384 | PyObject * obj0 = 0 ; | |
17385 | char *kwnames[] = { | |
17386 | (char *) "self", NULL | |
17387 | }; | |
17388 | ||
17389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17392 | { |
17393 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17394 | result = (int)(arg1)->GetMaxCols(); | |
17395 | ||
17396 | wxPyEndAllowThreads(__tstate); | |
17397 | if (PyErr_Occurred()) SWIG_fail; | |
17398 | } | |
2f4c0a16 | 17399 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17400 | return resultobj; |
17401 | fail: | |
17402 | return NULL; | |
17403 | } | |
17404 | ||
17405 | ||
17406 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17407 | PyObject *resultobj; | |
17408 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17409 | wxSize *arg2 = 0 ; | |
17410 | wxSize temp2 ; | |
17411 | PyObject * obj0 = 0 ; | |
17412 | PyObject * obj1 = 0 ; | |
17413 | char *kwnames[] = { | |
17414 | (char *) "self",(char *) "size", NULL | |
17415 | }; | |
17416 | ||
17417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17420 | { |
17421 | arg2 = &temp2; | |
17422 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17423 | } | |
17424 | { | |
17425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17426 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17427 | ||
17428 | wxPyEndAllowThreads(__tstate); | |
17429 | if (PyErr_Occurred()) SWIG_fail; | |
17430 | } | |
17431 | Py_INCREF(Py_None); resultobj = Py_None; | |
17432 | return resultobj; | |
17433 | fail: | |
17434 | return NULL; | |
17435 | } | |
17436 | ||
17437 | ||
17438 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17439 | PyObject *resultobj; | |
17440 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17441 | wxSize result; | |
17442 | PyObject * obj0 = 0 ; | |
17443 | char *kwnames[] = { | |
17444 | (char *) "self", NULL | |
17445 | }; | |
17446 | ||
17447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17450 | { |
17451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17452 | result = (arg1)->GetToolBitmapSize(); | |
17453 | ||
17454 | wxPyEndAllowThreads(__tstate); | |
17455 | if (PyErr_Occurred()) SWIG_fail; | |
17456 | } | |
17457 | { | |
17458 | wxSize * resultptr; | |
17459 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17460 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17461 | } |
17462 | return resultobj; | |
17463 | fail: | |
17464 | return NULL; | |
17465 | } | |
17466 | ||
17467 | ||
17468 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17469 | PyObject *resultobj; | |
17470 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17471 | wxSize result; | |
17472 | PyObject * obj0 = 0 ; | |
17473 | char *kwnames[] = { | |
17474 | (char *) "self", NULL | |
17475 | }; | |
17476 | ||
17477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17480 | { |
17481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17482 | result = (arg1)->GetToolSize(); | |
17483 | ||
17484 | wxPyEndAllowThreads(__tstate); | |
17485 | if (PyErr_Occurred()) SWIG_fail; | |
17486 | } | |
17487 | { | |
17488 | wxSize * resultptr; | |
17489 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17490 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17491 | } |
17492 | return resultobj; | |
17493 | fail: | |
17494 | return NULL; | |
17495 | } | |
17496 | ||
17497 | ||
17498 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17499 | PyObject *resultobj; | |
17500 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17501 | int arg2 ; |
17502 | int arg3 ; | |
d14a1e28 RD |
17503 | wxToolBarToolBase *result; |
17504 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17505 | PyObject * obj1 = 0 ; |
17506 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17507 | char *kwnames[] = { |
17508 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17509 | }; | |
17510 | ||
8edf1c75 | 17511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17514 | arg2 = (int) SWIG_AsInt(obj1); | |
17515 | if (PyErr_Occurred()) SWIG_fail; | |
17516 | arg3 = (int) SWIG_AsInt(obj2); | |
17517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17518 | { |
17519 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17520 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17521 | ||
17522 | wxPyEndAllowThreads(__tstate); | |
17523 | if (PyErr_Occurred()) SWIG_fail; | |
17524 | } | |
17525 | { | |
17526 | resultobj = wxPyMake_wxObject(result); | |
17527 | } | |
17528 | return resultobj; | |
17529 | fail: | |
17530 | return NULL; | |
17531 | } | |
17532 | ||
17533 | ||
d03fd34d RD |
17534 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17535 | PyObject *resultobj; | |
17536 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17537 | int arg2 ; | |
17538 | wxToolBarToolBase *result; | |
17539 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17540 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17541 | char *kwnames[] = { |
17542 | (char *) "self",(char *) "toolid", NULL | |
17543 | }; | |
17544 | ||
8edf1c75 | 17545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17548 | arg2 = (int) SWIG_AsInt(obj1); | |
17549 | if (PyErr_Occurred()) SWIG_fail; | |
d03fd34d RD |
17550 | { |
17551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17552 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17553 | ||
17554 | wxPyEndAllowThreads(__tstate); | |
17555 | if (PyErr_Occurred()) SWIG_fail; | |
17556 | } | |
17557 | { | |
17558 | resultobj = wxPyMake_wxObject(result); | |
17559 | } | |
17560 | return resultobj; | |
17561 | fail: | |
17562 | return NULL; | |
17563 | } | |
17564 | ||
17565 | ||
d14a1e28 RD |
17566 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17567 | PyObject *resultobj; | |
17568 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17569 | bool result; | |
17570 | PyObject * obj0 = 0 ; | |
17571 | char *kwnames[] = { | |
17572 | (char *) "self", NULL | |
17573 | }; | |
17574 | ||
17575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17578 | { |
17579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17580 | result = (bool)(arg1)->IsVertical(); | |
17581 | ||
17582 | wxPyEndAllowThreads(__tstate); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
17584 | } | |
4f89f6a3 RD |
17585 | { |
17586 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17587 | } | |
d14a1e28 RD |
17588 | return resultobj; |
17589 | fail: | |
17590 | return NULL; | |
17591 | } | |
17592 | ||
17593 | ||
17594 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17595 | PyObject *obj; | |
17596 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17597 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17598 | Py_INCREF(obj); | |
17599 | return Py_BuildValue((char *)""); | |
17600 | } | |
17601 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17602 | PyObject *resultobj; | |
17603 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17604 | int arg2 ; |
d14a1e28 RD |
17605 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17606 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17607 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17608 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17609 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17610 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17611 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17612 | wxToolBar *result; | |
17613 | wxPoint temp3 ; | |
17614 | wxSize temp4 ; | |
423f194a | 17615 | bool temp6 = False ; |
d14a1e28 | 17616 | PyObject * obj0 = 0 ; |
8edf1c75 | 17617 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17618 | PyObject * obj2 = 0 ; |
17619 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17620 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17621 | PyObject * obj5 = 0 ; |
17622 | char *kwnames[] = { | |
17623 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17624 | }; | |
17625 | ||
8edf1c75 | 17626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
17627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17629 | arg2 = (int) SWIG_AsInt(obj1); | |
17630 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17631 | if (obj2) { |
17632 | { | |
17633 | arg3 = &temp3; | |
17634 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17635 | } | |
17636 | } | |
17637 | if (obj3) { | |
17638 | { | |
17639 | arg4 = &temp4; | |
17640 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17641 | } | |
17642 | } | |
8edf1c75 | 17643 | if (obj4) { |
2f4c0a16 RD |
17644 | arg5 = (long) SWIG_AsLong(obj4); |
17645 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17646 | } |
d14a1e28 RD |
17647 | if (obj5) { |
17648 | { | |
17649 | arg6 = wxString_in_helper(obj5); | |
17650 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17651 | temp6 = True; |
d14a1e28 RD |
17652 | } |
17653 | } | |
17654 | { | |
17655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17656 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17657 | ||
17658 | wxPyEndAllowThreads(__tstate); | |
17659 | if (PyErr_Occurred()) SWIG_fail; | |
17660 | } | |
17661 | { | |
17662 | resultobj = wxPyMake_wxObject(result); | |
17663 | } | |
17664 | { | |
17665 | if (temp6) | |
17666 | delete arg6; | |
17667 | } | |
17668 | return resultobj; | |
17669 | fail: | |
17670 | { | |
17671 | if (temp6) | |
17672 | delete arg6; | |
17673 | } | |
17674 | return NULL; | |
17675 | } | |
17676 | ||
17677 | ||
17678 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17679 | PyObject *resultobj; | |
17680 | wxToolBar *result; | |
17681 | char *kwnames[] = { | |
17682 | NULL | |
17683 | }; | |
17684 | ||
17685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17686 | { | |
17687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17688 | result = (wxToolBar *)new wxToolBar(); | |
17689 | ||
17690 | wxPyEndAllowThreads(__tstate); | |
17691 | if (PyErr_Occurred()) SWIG_fail; | |
17692 | } | |
17693 | { | |
17694 | resultobj = wxPyMake_wxObject(result); | |
17695 | } | |
17696 | return resultobj; | |
17697 | fail: | |
17698 | return NULL; | |
17699 | } | |
17700 | ||
17701 | ||
17702 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17703 | PyObject *resultobj; | |
17704 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17705 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17706 | int arg3 ; |
d14a1e28 RD |
17707 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17708 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17709 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17710 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17711 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17712 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17713 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17714 | bool result; | |
17715 | wxPoint temp4 ; | |
17716 | wxSize temp5 ; | |
423f194a | 17717 | bool temp7 = False ; |
d14a1e28 RD |
17718 | PyObject * obj0 = 0 ; |
17719 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17720 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17721 | PyObject * obj3 = 0 ; |
17722 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17723 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17724 | PyObject * obj6 = 0 ; |
17725 | char *kwnames[] = { | |
17726 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17727 | }; | |
17728 | ||
8edf1c75 | 17729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
17730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17732 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17734 | arg3 = (int) SWIG_AsInt(obj2); | |
17735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17736 | if (obj3) { |
17737 | { | |
17738 | arg4 = &temp4; | |
17739 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17740 | } | |
17741 | } | |
17742 | if (obj4) { | |
17743 | { | |
17744 | arg5 = &temp5; | |
17745 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17746 | } | |
17747 | } | |
8edf1c75 | 17748 | if (obj5) { |
2f4c0a16 RD |
17749 | arg6 = (long) SWIG_AsLong(obj5); |
17750 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17751 | } |
d14a1e28 RD |
17752 | if (obj6) { |
17753 | { | |
17754 | arg7 = wxString_in_helper(obj6); | |
17755 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17756 | temp7 = True; |
d14a1e28 RD |
17757 | } |
17758 | } | |
17759 | { | |
17760 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17761 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17762 | ||
17763 | wxPyEndAllowThreads(__tstate); | |
17764 | if (PyErr_Occurred()) SWIG_fail; | |
17765 | } | |
4f89f6a3 RD |
17766 | { |
17767 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17768 | } | |
d14a1e28 RD |
17769 | { |
17770 | if (temp7) | |
17771 | delete arg7; | |
17772 | } | |
17773 | return resultobj; | |
17774 | fail: | |
17775 | { | |
17776 | if (temp7) | |
17777 | delete arg7; | |
17778 | } | |
17779 | return NULL; | |
17780 | } | |
17781 | ||
17782 | ||
17783 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17784 | PyObject *resultobj; | |
17785 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17786 | int arg2 ; |
17787 | int arg3 ; | |
d14a1e28 RD |
17788 | wxToolBarToolBase *result; |
17789 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17790 | PyObject * obj1 = 0 ; |
17791 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17792 | char *kwnames[] = { |
17793 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17794 | }; | |
17795 | ||
8edf1c75 | 17796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17799 | arg2 = (int) SWIG_AsInt(obj1); | |
17800 | if (PyErr_Occurred()) SWIG_fail; | |
17801 | arg3 = (int) SWIG_AsInt(obj2); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17803 | { |
17804 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17805 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17806 | ||
17807 | wxPyEndAllowThreads(__tstate); | |
17808 | if (PyErr_Occurred()) SWIG_fail; | |
17809 | } | |
17810 | { | |
17811 | resultobj = wxPyMake_wxObject(result); | |
17812 | } | |
17813 | return resultobj; | |
17814 | fail: | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17820 | PyObject *obj; | |
17821 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17822 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17823 | Py_INCREF(obj); | |
17824 | return Py_BuildValue((char *)""); | |
17825 | } | |
2f4c0a16 | 17826 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
17827 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17828 | return 1; | |
17829 | } | |
17830 | ||
17831 | ||
17832 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17833 | PyObject *pyobj; | |
17834 | ||
17835 | { | |
17836 | #if wxUSE_UNICODE | |
17837 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17838 | #else | |
17839 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17840 | #endif | |
17841 | } | |
17842 | return pyobj; | |
17843 | } | |
17844 | ||
17845 | ||
d14a1e28 RD |
17846 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17847 | PyObject *resultobj; | |
17848 | wxColour const &arg1_defvalue = wxNullColour ; | |
17849 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17850 | wxColour const &arg2_defvalue = wxNullColour ; | |
17851 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17852 | wxFont const &arg3_defvalue = wxNullFont ; | |
17853 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17854 | wxListItemAttr *result; | |
17855 | wxColour temp1 ; | |
17856 | wxColour temp2 ; | |
17857 | PyObject * obj0 = 0 ; | |
17858 | PyObject * obj1 = 0 ; | |
17859 | PyObject * obj2 = 0 ; | |
17860 | char *kwnames[] = { | |
17861 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17862 | }; | |
17863 | ||
17864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17865 | if (obj0) { | |
17866 | { | |
17867 | arg1 = &temp1; | |
17868 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17869 | } | |
17870 | } | |
17871 | if (obj1) { | |
17872 | { | |
17873 | arg2 = &temp2; | |
17874 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17875 | } | |
17876 | } | |
17877 | if (obj2) { | |
2f4c0a16 RD |
17878 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
17879 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17880 | SWIG_fail; | |
d14a1e28 | 17881 | if (arg3 == NULL) { |
2f4c0a16 RD |
17882 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17883 | SWIG_fail; | |
d14a1e28 RD |
17884 | } |
17885 | } | |
17886 | { | |
17887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17888 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17889 | ||
17890 | wxPyEndAllowThreads(__tstate); | |
17891 | if (PyErr_Occurred()) SWIG_fail; | |
17892 | } | |
2f4c0a16 | 17893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
17894 | return resultobj; |
17895 | fail: | |
17896 | return NULL; | |
17897 | } | |
17898 | ||
17899 | ||
17900 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17901 | PyObject *resultobj; | |
17902 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17903 | wxColour *arg2 = 0 ; | |
17904 | wxColour temp2 ; | |
17905 | PyObject * obj0 = 0 ; | |
17906 | PyObject * obj1 = 0 ; | |
17907 | char *kwnames[] = { | |
17908 | (char *) "self",(char *) "colText", NULL | |
17909 | }; | |
17910 | ||
17911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17914 | { |
17915 | arg2 = &temp2; | |
17916 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17917 | } | |
17918 | { | |
17919 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17920 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17921 | ||
17922 | wxPyEndAllowThreads(__tstate); | |
17923 | if (PyErr_Occurred()) SWIG_fail; | |
17924 | } | |
17925 | Py_INCREF(Py_None); resultobj = Py_None; | |
17926 | return resultobj; | |
17927 | fail: | |
17928 | return NULL; | |
17929 | } | |
17930 | ||
17931 | ||
17932 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17933 | PyObject *resultobj; | |
17934 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17935 | wxColour *arg2 = 0 ; | |
17936 | wxColour temp2 ; | |
17937 | PyObject * obj0 = 0 ; | |
17938 | PyObject * obj1 = 0 ; | |
17939 | char *kwnames[] = { | |
17940 | (char *) "self",(char *) "colBack", NULL | |
17941 | }; | |
17942 | ||
17943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17946 | { |
17947 | arg2 = &temp2; | |
17948 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17949 | } | |
17950 | { | |
17951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17952 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17953 | ||
17954 | wxPyEndAllowThreads(__tstate); | |
17955 | if (PyErr_Occurred()) SWIG_fail; | |
17956 | } | |
17957 | Py_INCREF(Py_None); resultobj = Py_None; | |
17958 | return resultobj; | |
17959 | fail: | |
17960 | return NULL; | |
17961 | } | |
17962 | ||
17963 | ||
17964 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17965 | PyObject *resultobj; | |
17966 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17967 | wxFont *arg2 = 0 ; | |
17968 | PyObject * obj0 = 0 ; | |
17969 | PyObject * obj1 = 0 ; | |
17970 | char *kwnames[] = { | |
17971 | (char *) "self",(char *) "font", NULL | |
17972 | }; | |
17973 | ||
17974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17977 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17978 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17979 | SWIG_fail; | |
d14a1e28 | 17980 | if (arg2 == NULL) { |
2f4c0a16 RD |
17981 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17982 | SWIG_fail; | |
d14a1e28 RD |
17983 | } |
17984 | { | |
17985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17986 | (arg1)->SetFont((wxFont const &)*arg2); | |
17987 | ||
17988 | wxPyEndAllowThreads(__tstate); | |
17989 | if (PyErr_Occurred()) SWIG_fail; | |
17990 | } | |
17991 | Py_INCREF(Py_None); resultobj = Py_None; | |
17992 | return resultobj; | |
17993 | fail: | |
17994 | return NULL; | |
17995 | } | |
17996 | ||
17997 | ||
17998 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17999 | PyObject *resultobj; | |
18000 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18001 | bool result; | |
18002 | PyObject * obj0 = 0 ; | |
18003 | char *kwnames[] = { | |
18004 | (char *) "self", NULL | |
18005 | }; | |
18006 | ||
18007 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18008 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18009 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18010 | { |
18011 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18012 | result = (bool)(arg1)->HasTextColour(); | |
18013 | ||
18014 | wxPyEndAllowThreads(__tstate); | |
18015 | if (PyErr_Occurred()) SWIG_fail; | |
18016 | } | |
4f89f6a3 RD |
18017 | { |
18018 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18019 | } | |
d14a1e28 RD |
18020 | return resultobj; |
18021 | fail: | |
18022 | return NULL; | |
18023 | } | |
18024 | ||
18025 | ||
18026 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18027 | PyObject *resultobj; | |
18028 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18029 | bool result; | |
18030 | PyObject * obj0 = 0 ; | |
18031 | char *kwnames[] = { | |
18032 | (char *) "self", NULL | |
18033 | }; | |
18034 | ||
18035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18038 | { |
18039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18040 | result = (bool)(arg1)->HasBackgroundColour(); | |
18041 | ||
18042 | wxPyEndAllowThreads(__tstate); | |
18043 | if (PyErr_Occurred()) SWIG_fail; | |
18044 | } | |
4f89f6a3 RD |
18045 | { |
18046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18047 | } | |
d14a1e28 RD |
18048 | return resultobj; |
18049 | fail: | |
18050 | return NULL; | |
18051 | } | |
18052 | ||
18053 | ||
18054 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18055 | PyObject *resultobj; | |
18056 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18057 | bool result; | |
18058 | PyObject * obj0 = 0 ; | |
18059 | char *kwnames[] = { | |
18060 | (char *) "self", NULL | |
18061 | }; | |
18062 | ||
18063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18066 | { |
18067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18068 | result = (bool)(arg1)->HasFont(); | |
18069 | ||
18070 | wxPyEndAllowThreads(__tstate); | |
18071 | if (PyErr_Occurred()) SWIG_fail; | |
18072 | } | |
4f89f6a3 RD |
18073 | { |
18074 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18075 | } | |
d14a1e28 RD |
18076 | return resultobj; |
18077 | fail: | |
18078 | return NULL; | |
18079 | } | |
18080 | ||
18081 | ||
18082 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18083 | PyObject *resultobj; | |
18084 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18085 | wxColour result; | |
18086 | PyObject * obj0 = 0 ; | |
18087 | char *kwnames[] = { | |
18088 | (char *) "self", NULL | |
18089 | }; | |
18090 | ||
18091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18094 | { |
18095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18096 | result = (arg1)->GetTextColour(); | |
18097 | ||
18098 | wxPyEndAllowThreads(__tstate); | |
18099 | if (PyErr_Occurred()) SWIG_fail; | |
18100 | } | |
18101 | { | |
18102 | wxColour * resultptr; | |
18103 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18104 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18105 | } |
18106 | return resultobj; | |
18107 | fail: | |
18108 | return NULL; | |
18109 | } | |
18110 | ||
18111 | ||
18112 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18113 | PyObject *resultobj; | |
18114 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18115 | wxColour result; | |
18116 | PyObject * obj0 = 0 ; | |
18117 | char *kwnames[] = { | |
18118 | (char *) "self", NULL | |
18119 | }; | |
18120 | ||
18121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18124 | { |
18125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18126 | result = (arg1)->GetBackgroundColour(); | |
18127 | ||
18128 | wxPyEndAllowThreads(__tstate); | |
18129 | if (PyErr_Occurred()) SWIG_fail; | |
18130 | } | |
18131 | { | |
18132 | wxColour * resultptr; | |
18133 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18134 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18135 | } |
18136 | return resultobj; | |
18137 | fail: | |
18138 | return NULL; | |
18139 | } | |
18140 | ||
18141 | ||
18142 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18143 | PyObject *resultobj; | |
18144 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18145 | wxFont result; | |
18146 | PyObject * obj0 = 0 ; | |
18147 | char *kwnames[] = { | |
18148 | (char *) "self", NULL | |
18149 | }; | |
18150 | ||
18151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18154 | { |
18155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18156 | result = (arg1)->GetFont(); | |
18157 | ||
18158 | wxPyEndAllowThreads(__tstate); | |
18159 | if (PyErr_Occurred()) SWIG_fail; | |
18160 | } | |
18161 | { | |
18162 | wxFont * resultptr; | |
18163 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 18164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18165 | } |
18166 | return resultobj; | |
18167 | fail: | |
18168 | return NULL; | |
18169 | } | |
18170 | ||
18171 | ||
18172 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18173 | PyObject *resultobj; | |
18174 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18175 | PyObject * obj0 = 0 ; | |
18176 | char *kwnames[] = { | |
18177 | (char *) "self", NULL | |
18178 | }; | |
18179 | ||
18180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18183 | { |
18184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18185 | wxListItemAttr_Destroy(arg1); | |
18186 | ||
18187 | wxPyEndAllowThreads(__tstate); | |
18188 | if (PyErr_Occurred()) SWIG_fail; | |
18189 | } | |
18190 | Py_INCREF(Py_None); resultobj = Py_None; | |
18191 | return resultobj; | |
18192 | fail: | |
18193 | return NULL; | |
18194 | } | |
18195 | ||
18196 | ||
18197 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18198 | PyObject *obj; | |
18199 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18200 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18201 | Py_INCREF(obj); | |
18202 | return Py_BuildValue((char *)""); | |
18203 | } | |
18204 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18205 | PyObject *resultobj; | |
18206 | wxListItem *result; | |
18207 | char *kwnames[] = { | |
18208 | NULL | |
18209 | }; | |
18210 | ||
18211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18212 | { | |
18213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18214 | result = (wxListItem *)new wxListItem(); | |
18215 | ||
18216 | wxPyEndAllowThreads(__tstate); | |
18217 | if (PyErr_Occurred()) SWIG_fail; | |
18218 | } | |
18219 | { | |
18220 | resultobj = wxPyMake_wxObject(result); | |
18221 | } | |
18222 | return resultobj; | |
18223 | fail: | |
18224 | return NULL; | |
18225 | } | |
18226 | ||
18227 | ||
18228 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18229 | PyObject *resultobj; | |
18230 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18231 | PyObject * obj0 = 0 ; | |
18232 | char *kwnames[] = { | |
18233 | (char *) "self", NULL | |
18234 | }; | |
18235 | ||
18236 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18237 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18238 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18239 | { |
18240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18241 | delete arg1; | |
18242 | ||
18243 | wxPyEndAllowThreads(__tstate); | |
18244 | if (PyErr_Occurred()) SWIG_fail; | |
18245 | } | |
18246 | Py_INCREF(Py_None); resultobj = Py_None; | |
18247 | return resultobj; | |
18248 | fail: | |
18249 | return NULL; | |
18250 | } | |
18251 | ||
18252 | ||
18253 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18254 | PyObject *resultobj; | |
18255 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18256 | PyObject * obj0 = 0 ; | |
18257 | char *kwnames[] = { | |
18258 | (char *) "self", NULL | |
18259 | }; | |
18260 | ||
18261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18264 | { |
18265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18266 | (arg1)->Clear(); | |
18267 | ||
18268 | wxPyEndAllowThreads(__tstate); | |
18269 | if (PyErr_Occurred()) SWIG_fail; | |
18270 | } | |
18271 | Py_INCREF(Py_None); resultobj = Py_None; | |
18272 | return resultobj; | |
18273 | fail: | |
18274 | return NULL; | |
18275 | } | |
18276 | ||
18277 | ||
18278 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18279 | PyObject *resultobj; | |
18280 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18281 | PyObject * obj0 = 0 ; | |
18282 | char *kwnames[] = { | |
18283 | (char *) "self", NULL | |
18284 | }; | |
18285 | ||
18286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18289 | { |
18290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18291 | (arg1)->ClearAttributes(); | |
18292 | ||
18293 | wxPyEndAllowThreads(__tstate); | |
18294 | if (PyErr_Occurred()) SWIG_fail; | |
18295 | } | |
18296 | Py_INCREF(Py_None); resultobj = Py_None; | |
18297 | return resultobj; | |
18298 | fail: | |
18299 | return NULL; | |
18300 | } | |
18301 | ||
18302 | ||
18303 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18304 | PyObject *resultobj; | |
18305 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18306 | long arg2 ; | |
18307 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18308 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18309 | char *kwnames[] = { |
18310 | (char *) "self",(char *) "mask", NULL | |
18311 | }; | |
18312 | ||
8edf1c75 | 18313 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18314 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18315 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18316 | arg2 = (long) SWIG_AsLong(obj1); | |
18317 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18318 | { |
18319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18320 | (arg1)->SetMask(arg2); | |
18321 | ||
18322 | wxPyEndAllowThreads(__tstate); | |
18323 | if (PyErr_Occurred()) SWIG_fail; | |
18324 | } | |
18325 | Py_INCREF(Py_None); resultobj = Py_None; | |
18326 | return resultobj; | |
18327 | fail: | |
18328 | return NULL; | |
18329 | } | |
18330 | ||
18331 | ||
18332 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18333 | PyObject *resultobj; | |
18334 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18335 | long arg2 ; | |
18336 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18337 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18338 | char *kwnames[] = { |
18339 | (char *) "self",(char *) "id", NULL | |
18340 | }; | |
18341 | ||
8edf1c75 | 18342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18345 | arg2 = (long) SWIG_AsLong(obj1); | |
18346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18347 | { |
18348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18349 | (arg1)->SetId(arg2); | |
18350 | ||
18351 | wxPyEndAllowThreads(__tstate); | |
18352 | if (PyErr_Occurred()) SWIG_fail; | |
18353 | } | |
18354 | Py_INCREF(Py_None); resultobj = Py_None; | |
18355 | return resultobj; | |
18356 | fail: | |
18357 | return NULL; | |
18358 | } | |
18359 | ||
18360 | ||
18361 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18362 | PyObject *resultobj; | |
18363 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18364 | int arg2 ; | |
18365 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18366 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18367 | char *kwnames[] = { |
18368 | (char *) "self",(char *) "col", NULL | |
18369 | }; | |
18370 | ||
8edf1c75 | 18371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18374 | arg2 = (int) SWIG_AsInt(obj1); | |
18375 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18376 | { |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | (arg1)->SetColumn(arg2); | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
18383 | Py_INCREF(Py_None); resultobj = Py_None; | |
18384 | return resultobj; | |
18385 | fail: | |
18386 | return NULL; | |
18387 | } | |
18388 | ||
18389 | ||
18390 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18391 | PyObject *resultobj; | |
18392 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18393 | long arg2 ; | |
18394 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18395 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18396 | char *kwnames[] = { |
18397 | (char *) "self",(char *) "state", NULL | |
18398 | }; | |
18399 | ||
8edf1c75 | 18400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18403 | arg2 = (long) SWIG_AsLong(obj1); | |
18404 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18405 | { |
18406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18407 | (arg1)->SetState(arg2); | |
18408 | ||
18409 | wxPyEndAllowThreads(__tstate); | |
18410 | if (PyErr_Occurred()) SWIG_fail; | |
18411 | } | |
18412 | Py_INCREF(Py_None); resultobj = Py_None; | |
18413 | return resultobj; | |
18414 | fail: | |
18415 | return NULL; | |
18416 | } | |
18417 | ||
18418 | ||
18419 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18420 | PyObject *resultobj; | |
18421 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18422 | long arg2 ; | |
18423 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18424 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18425 | char *kwnames[] = { |
18426 | (char *) "self",(char *) "stateMask", NULL | |
18427 | }; | |
18428 | ||
8edf1c75 | 18429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18430 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18431 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18432 | arg2 = (long) SWIG_AsLong(obj1); | |
18433 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18434 | { |
18435 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18436 | (arg1)->SetStateMask(arg2); | |
18437 | ||
18438 | wxPyEndAllowThreads(__tstate); | |
18439 | if (PyErr_Occurred()) SWIG_fail; | |
18440 | } | |
18441 | Py_INCREF(Py_None); resultobj = Py_None; | |
18442 | return resultobj; | |
18443 | fail: | |
18444 | return NULL; | |
18445 | } | |
18446 | ||
18447 | ||
18448 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18449 | PyObject *resultobj; | |
18450 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18451 | wxString *arg2 = 0 ; | |
423f194a | 18452 | bool temp2 = False ; |
d14a1e28 RD |
18453 | PyObject * obj0 = 0 ; |
18454 | PyObject * obj1 = 0 ; | |
18455 | char *kwnames[] = { | |
18456 | (char *) "self",(char *) "text", NULL | |
18457 | }; | |
18458 | ||
18459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18462 | { |
18463 | arg2 = wxString_in_helper(obj1); | |
18464 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18465 | temp2 = True; |
d14a1e28 RD |
18466 | } |
18467 | { | |
18468 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18469 | (arg1)->SetText((wxString const &)*arg2); | |
18470 | ||
18471 | wxPyEndAllowThreads(__tstate); | |
18472 | if (PyErr_Occurred()) SWIG_fail; | |
18473 | } | |
18474 | Py_INCREF(Py_None); resultobj = Py_None; | |
18475 | { | |
18476 | if (temp2) | |
18477 | delete arg2; | |
18478 | } | |
18479 | return resultobj; | |
18480 | fail: | |
18481 | { | |
18482 | if (temp2) | |
18483 | delete arg2; | |
18484 | } | |
18485 | return NULL; | |
18486 | } | |
18487 | ||
18488 | ||
18489 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18490 | PyObject *resultobj; | |
18491 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18492 | int arg2 ; | |
18493 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18494 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18495 | char *kwnames[] = { |
18496 | (char *) "self",(char *) "image", NULL | |
18497 | }; | |
18498 | ||
8edf1c75 | 18499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18502 | arg2 = (int) SWIG_AsInt(obj1); | |
18503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18504 | { |
18505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18506 | (arg1)->SetImage(arg2); | |
18507 | ||
18508 | wxPyEndAllowThreads(__tstate); | |
18509 | if (PyErr_Occurred()) SWIG_fail; | |
18510 | } | |
18511 | Py_INCREF(Py_None); resultobj = Py_None; | |
18512 | return resultobj; | |
18513 | fail: | |
18514 | return NULL; | |
18515 | } | |
18516 | ||
18517 | ||
18518 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18519 | PyObject *resultobj; | |
18520 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18521 | long arg2 ; | |
18522 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18523 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18524 | char *kwnames[] = { |
18525 | (char *) "self",(char *) "data", NULL | |
18526 | }; | |
18527 | ||
8edf1c75 | 18528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18531 | arg2 = (long) SWIG_AsLong(obj1); | |
18532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18533 | { |
18534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18535 | (arg1)->SetData(arg2); | |
18536 | ||
18537 | wxPyEndAllowThreads(__tstate); | |
18538 | if (PyErr_Occurred()) SWIG_fail; | |
18539 | } | |
18540 | Py_INCREF(Py_None); resultobj = Py_None; | |
18541 | return resultobj; | |
18542 | fail: | |
18543 | return NULL; | |
18544 | } | |
18545 | ||
18546 | ||
18547 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18548 | PyObject *resultobj; | |
18549 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18550 | int arg2 ; | |
18551 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18552 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18553 | char *kwnames[] = { |
18554 | (char *) "self",(char *) "width", NULL | |
18555 | }; | |
18556 | ||
8edf1c75 | 18557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18560 | arg2 = (int) SWIG_AsInt(obj1); | |
18561 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18562 | { |
18563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18564 | (arg1)->SetWidth(arg2); | |
18565 | ||
18566 | wxPyEndAllowThreads(__tstate); | |
18567 | if (PyErr_Occurred()) SWIG_fail; | |
18568 | } | |
18569 | Py_INCREF(Py_None); resultobj = Py_None; | |
18570 | return resultobj; | |
18571 | fail: | |
18572 | return NULL; | |
18573 | } | |
18574 | ||
18575 | ||
18576 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18577 | PyObject *resultobj; | |
18578 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18579 | int arg2 ; | |
18580 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18581 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18582 | char *kwnames[] = { |
18583 | (char *) "self",(char *) "align", NULL | |
18584 | }; | |
18585 | ||
8edf1c75 | 18586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18589 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
18590 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18591 | { |
18592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18593 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18594 | ||
18595 | wxPyEndAllowThreads(__tstate); | |
18596 | if (PyErr_Occurred()) SWIG_fail; | |
18597 | } | |
18598 | Py_INCREF(Py_None); resultobj = Py_None; | |
18599 | return resultobj; | |
18600 | fail: | |
18601 | return NULL; | |
18602 | } | |
18603 | ||
18604 | ||
18605 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18606 | PyObject *resultobj; | |
18607 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18608 | wxColour *arg2 = 0 ; | |
18609 | wxColour temp2 ; | |
18610 | PyObject * obj0 = 0 ; | |
18611 | PyObject * obj1 = 0 ; | |
18612 | char *kwnames[] = { | |
18613 | (char *) "self",(char *) "colText", NULL | |
18614 | }; | |
18615 | ||
18616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18619 | { |
18620 | arg2 = &temp2; | |
18621 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18622 | } | |
18623 | { | |
18624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18625 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18626 | ||
18627 | wxPyEndAllowThreads(__tstate); | |
18628 | if (PyErr_Occurred()) SWIG_fail; | |
18629 | } | |
18630 | Py_INCREF(Py_None); resultobj = Py_None; | |
18631 | return resultobj; | |
18632 | fail: | |
18633 | return NULL; | |
18634 | } | |
18635 | ||
18636 | ||
18637 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18638 | PyObject *resultobj; | |
18639 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18640 | wxColour *arg2 = 0 ; | |
18641 | wxColour temp2 ; | |
18642 | PyObject * obj0 = 0 ; | |
18643 | PyObject * obj1 = 0 ; | |
18644 | char *kwnames[] = { | |
18645 | (char *) "self",(char *) "colBack", NULL | |
18646 | }; | |
18647 | ||
18648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18651 | { |
18652 | arg2 = &temp2; | |
18653 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18654 | } | |
18655 | { | |
18656 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18657 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18658 | ||
18659 | wxPyEndAllowThreads(__tstate); | |
18660 | if (PyErr_Occurred()) SWIG_fail; | |
18661 | } | |
18662 | Py_INCREF(Py_None); resultobj = Py_None; | |
18663 | return resultobj; | |
18664 | fail: | |
18665 | return NULL; | |
18666 | } | |
18667 | ||
18668 | ||
18669 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18670 | PyObject *resultobj; | |
18671 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18672 | wxFont *arg2 = 0 ; | |
18673 | PyObject * obj0 = 0 ; | |
18674 | PyObject * obj1 = 0 ; | |
18675 | char *kwnames[] = { | |
18676 | (char *) "self",(char *) "font", NULL | |
18677 | }; | |
18678 | ||
18679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18682 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18683 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18684 | SWIG_fail; | |
d14a1e28 | 18685 | if (arg2 == NULL) { |
2f4c0a16 RD |
18686 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18687 | SWIG_fail; | |
d14a1e28 RD |
18688 | } |
18689 | { | |
18690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18691 | (arg1)->SetFont((wxFont const &)*arg2); | |
18692 | ||
18693 | wxPyEndAllowThreads(__tstate); | |
18694 | if (PyErr_Occurred()) SWIG_fail; | |
18695 | } | |
18696 | Py_INCREF(Py_None); resultobj = Py_None; | |
18697 | return resultobj; | |
18698 | fail: | |
18699 | return NULL; | |
18700 | } | |
18701 | ||
18702 | ||
18703 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18704 | PyObject *resultobj; | |
18705 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18706 | long result; | |
18707 | PyObject * obj0 = 0 ; | |
18708 | char *kwnames[] = { | |
18709 | (char *) "self", NULL | |
18710 | }; | |
18711 | ||
18712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18715 | { |
18716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18717 | result = (long)(arg1)->GetMask(); | |
18718 | ||
18719 | wxPyEndAllowThreads(__tstate); | |
18720 | if (PyErr_Occurred()) SWIG_fail; | |
18721 | } | |
2f4c0a16 | 18722 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18723 | return resultobj; |
18724 | fail: | |
18725 | return NULL; | |
18726 | } | |
18727 | ||
18728 | ||
18729 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18730 | PyObject *resultobj; | |
18731 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18732 | long result; | |
18733 | PyObject * obj0 = 0 ; | |
18734 | char *kwnames[] = { | |
18735 | (char *) "self", NULL | |
18736 | }; | |
18737 | ||
18738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18741 | { |
18742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18743 | result = (long)(arg1)->GetId(); | |
18744 | ||
18745 | wxPyEndAllowThreads(__tstate); | |
18746 | if (PyErr_Occurred()) SWIG_fail; | |
18747 | } | |
2f4c0a16 | 18748 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18749 | return resultobj; |
18750 | fail: | |
18751 | return NULL; | |
18752 | } | |
18753 | ||
18754 | ||
18755 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18756 | PyObject *resultobj; | |
18757 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18758 | int result; | |
18759 | PyObject * obj0 = 0 ; | |
18760 | char *kwnames[] = { | |
18761 | (char *) "self", NULL | |
18762 | }; | |
18763 | ||
18764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18767 | { |
18768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18769 | result = (int)(arg1)->GetColumn(); | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
2f4c0a16 | 18774 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18775 | return resultobj; |
18776 | fail: | |
18777 | return NULL; | |
18778 | } | |
18779 | ||
18780 | ||
18781 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18782 | PyObject *resultobj; | |
18783 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18784 | long result; | |
18785 | PyObject * obj0 = 0 ; | |
18786 | char *kwnames[] = { | |
18787 | (char *) "self", NULL | |
18788 | }; | |
18789 | ||
18790 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18791 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18792 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18793 | { |
18794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18795 | result = (long)(arg1)->GetState(); | |
18796 | ||
18797 | wxPyEndAllowThreads(__tstate); | |
18798 | if (PyErr_Occurred()) SWIG_fail; | |
18799 | } | |
2f4c0a16 | 18800 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18801 | return resultobj; |
18802 | fail: | |
18803 | return NULL; | |
18804 | } | |
18805 | ||
18806 | ||
18807 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18808 | PyObject *resultobj; | |
18809 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18810 | wxString *result; | |
18811 | PyObject * obj0 = 0 ; | |
18812 | char *kwnames[] = { | |
18813 | (char *) "self", NULL | |
18814 | }; | |
18815 | ||
18816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18819 | { |
18820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18821 | { | |
18822 | wxString const &_result_ref = (arg1)->GetText(); | |
18823 | result = (wxString *) &_result_ref; | |
18824 | } | |
18825 | ||
18826 | wxPyEndAllowThreads(__tstate); | |
18827 | if (PyErr_Occurred()) SWIG_fail; | |
18828 | } | |
f0983263 RD |
18829 | { |
18830 | #if wxUSE_UNICODE | |
18831 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18832 | #else | |
18833 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18834 | #endif | |
18835 | } | |
d14a1e28 RD |
18836 | return resultobj; |
18837 | fail: | |
18838 | return NULL; | |
18839 | } | |
18840 | ||
18841 | ||
18842 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18843 | PyObject *resultobj; | |
18844 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18845 | int result; | |
18846 | PyObject * obj0 = 0 ; | |
18847 | char *kwnames[] = { | |
18848 | (char *) "self", NULL | |
18849 | }; | |
18850 | ||
18851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18854 | { |
18855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18856 | result = (int)(arg1)->GetImage(); | |
18857 | ||
18858 | wxPyEndAllowThreads(__tstate); | |
18859 | if (PyErr_Occurred()) SWIG_fail; | |
18860 | } | |
2f4c0a16 | 18861 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18862 | return resultobj; |
18863 | fail: | |
18864 | return NULL; | |
18865 | } | |
18866 | ||
18867 | ||
18868 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18869 | PyObject *resultobj; | |
18870 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18871 | long result; | |
18872 | PyObject * obj0 = 0 ; | |
18873 | char *kwnames[] = { | |
18874 | (char *) "self", NULL | |
18875 | }; | |
18876 | ||
18877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18880 | { |
18881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18882 | result = (long)(arg1)->GetData(); | |
18883 | ||
18884 | wxPyEndAllowThreads(__tstate); | |
18885 | if (PyErr_Occurred()) SWIG_fail; | |
18886 | } | |
2f4c0a16 | 18887 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18888 | return resultobj; |
18889 | fail: | |
18890 | return NULL; | |
18891 | } | |
18892 | ||
18893 | ||
18894 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18895 | PyObject *resultobj; | |
18896 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18897 | int result; | |
18898 | PyObject * obj0 = 0 ; | |
18899 | char *kwnames[] = { | |
18900 | (char *) "self", NULL | |
18901 | }; | |
18902 | ||
18903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18906 | { |
18907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18908 | result = (int)(arg1)->GetWidth(); | |
18909 | ||
18910 | wxPyEndAllowThreads(__tstate); | |
18911 | if (PyErr_Occurred()) SWIG_fail; | |
18912 | } | |
2f4c0a16 | 18913 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18914 | return resultobj; |
18915 | fail: | |
18916 | return NULL; | |
18917 | } | |
18918 | ||
18919 | ||
18920 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18921 | PyObject *resultobj; | |
18922 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18923 | int result; | |
18924 | PyObject * obj0 = 0 ; | |
18925 | char *kwnames[] = { | |
18926 | (char *) "self", NULL | |
18927 | }; | |
18928 | ||
18929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18932 | { |
18933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18934 | result = (int)(arg1)->GetAlign(); | |
18935 | ||
18936 | wxPyEndAllowThreads(__tstate); | |
18937 | if (PyErr_Occurred()) SWIG_fail; | |
18938 | } | |
2f4c0a16 | 18939 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18940 | return resultobj; |
18941 | fail: | |
18942 | return NULL; | |
18943 | } | |
18944 | ||
18945 | ||
18946 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18947 | PyObject *resultobj; | |
18948 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18949 | wxListItemAttr *result; | |
18950 | PyObject * obj0 = 0 ; | |
18951 | char *kwnames[] = { | |
18952 | (char *) "self", NULL | |
18953 | }; | |
18954 | ||
18955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18958 | { |
18959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18960 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18961 | ||
18962 | wxPyEndAllowThreads(__tstate); | |
18963 | if (PyErr_Occurred()) SWIG_fail; | |
18964 | } | |
2f4c0a16 | 18965 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
18966 | return resultobj; |
18967 | fail: | |
18968 | return NULL; | |
18969 | } | |
18970 | ||
18971 | ||
18972 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18973 | PyObject *resultobj; | |
18974 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18975 | bool result; | |
18976 | PyObject * obj0 = 0 ; | |
18977 | char *kwnames[] = { | |
18978 | (char *) "self", NULL | |
18979 | }; | |
18980 | ||
18981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18984 | { |
18985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18986 | result = (bool)(arg1)->HasAttributes(); | |
18987 | ||
18988 | wxPyEndAllowThreads(__tstate); | |
18989 | if (PyErr_Occurred()) SWIG_fail; | |
18990 | } | |
4f89f6a3 RD |
18991 | { |
18992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18993 | } | |
d14a1e28 RD |
18994 | return resultobj; |
18995 | fail: | |
18996 | return NULL; | |
18997 | } | |
18998 | ||
18999 | ||
19000 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19001 | PyObject *resultobj; | |
19002 | wxListItem *arg1 = (wxListItem *) 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:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19012 | { |
19013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19014 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19015 | ||
19016 | wxPyEndAllowThreads(__tstate); | |
19017 | if (PyErr_Occurred()) SWIG_fail; | |
19018 | } | |
19019 | { | |
19020 | wxColour * resultptr; | |
19021 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 19022 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19023 | } |
19024 | return resultobj; | |
19025 | fail: | |
19026 | return NULL; | |
19027 | } | |
19028 | ||
19029 | ||
19030 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19031 | PyObject *resultobj; | |
19032 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19033 | wxColour result; | |
19034 | PyObject * obj0 = 0 ; | |
19035 | char *kwnames[] = { | |
19036 | (char *) "self", NULL | |
19037 | }; | |
19038 | ||
19039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19042 | { |
19043 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19044 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19045 | ||
19046 | wxPyEndAllowThreads(__tstate); | |
19047 | if (PyErr_Occurred()) SWIG_fail; | |
19048 | } | |
19049 | { | |
19050 | wxColour * resultptr; | |
19051 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 19052 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19053 | } |
19054 | return resultobj; | |
19055 | fail: | |
19056 | return NULL; | |
19057 | } | |
19058 | ||
19059 | ||
19060 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19061 | PyObject *resultobj; | |
19062 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19063 | wxFont result; | |
19064 | PyObject * obj0 = 0 ; | |
19065 | char *kwnames[] = { | |
19066 | (char *) "self", NULL | |
19067 | }; | |
19068 | ||
19069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19072 | { |
19073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19074 | result = ((wxListItem const *)arg1)->GetFont(); | |
19075 | ||
19076 | wxPyEndAllowThreads(__tstate); | |
19077 | if (PyErr_Occurred()) SWIG_fail; | |
19078 | } | |
19079 | { | |
19080 | wxFont * resultptr; | |
19081 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 19082 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19083 | } |
19084 | return resultobj; | |
19085 | fail: | |
19086 | return NULL; | |
19087 | } | |
19088 | ||
19089 | ||
19090 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19091 | PyObject *resultobj; | |
19092 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19093 | long arg2 ; | |
19094 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19096 | char *kwnames[] = { |
19097 | (char *) "self",(char *) "m_mask", NULL | |
19098 | }; | |
19099 | ||
8edf1c75 | 19100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19103 | arg2 = (long) SWIG_AsLong(obj1); | |
19104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19105 | if (arg1) (arg1)->m_mask = arg2; |
19106 | ||
19107 | Py_INCREF(Py_None); resultobj = Py_None; | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19117 | long result; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19126 | result = (long) ((arg1)->m_mask); |
19127 | ||
2f4c0a16 | 19128 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19129 | return resultobj; |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj; | |
19137 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19138 | long arg2 ; | |
19139 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19141 | char *kwnames[] = { |
19142 | (char *) "self",(char *) "m_itemId", NULL | |
19143 | }; | |
19144 | ||
8edf1c75 | 19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19148 | arg2 = (long) SWIG_AsLong(obj1); | |
19149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19150 | if (arg1) (arg1)->m_itemId = arg2; |
19151 | ||
19152 | Py_INCREF(Py_None); resultobj = Py_None; | |
19153 | return resultobj; | |
19154 | fail: | |
19155 | return NULL; | |
19156 | } | |
19157 | ||
19158 | ||
19159 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19160 | PyObject *resultobj; | |
19161 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19162 | long result; | |
19163 | PyObject * obj0 = 0 ; | |
19164 | char *kwnames[] = { | |
19165 | (char *) "self", NULL | |
19166 | }; | |
19167 | ||
19168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19171 | result = (long) ((arg1)->m_itemId); |
19172 | ||
2f4c0a16 | 19173 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19174 | return resultobj; |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19183 | int arg2 ; | |
19184 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19186 | char *kwnames[] = { |
19187 | (char *) "self",(char *) "m_col", NULL | |
19188 | }; | |
19189 | ||
8edf1c75 | 19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19193 | arg2 = (int) SWIG_AsInt(obj1); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19195 | if (arg1) (arg1)->m_col = arg2; |
19196 | ||
19197 | Py_INCREF(Py_None); resultobj = Py_None; | |
19198 | return resultobj; | |
19199 | fail: | |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19207 | int result; | |
19208 | PyObject * obj0 = 0 ; | |
19209 | char *kwnames[] = { | |
19210 | (char *) "self", NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19216 | result = (int) ((arg1)->m_col); |
19217 | ||
2f4c0a16 | 19218 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19219 | return resultobj; |
19220 | fail: | |
19221 | return NULL; | |
19222 | } | |
19223 | ||
19224 | ||
19225 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19226 | PyObject *resultobj; | |
19227 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19228 | long arg2 ; | |
19229 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19231 | char *kwnames[] = { |
19232 | (char *) "self",(char *) "m_state", NULL | |
19233 | }; | |
19234 | ||
8edf1c75 | 19235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19238 | arg2 = (long) SWIG_AsLong(obj1); | |
19239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19240 | if (arg1) (arg1)->m_state = arg2; |
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_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19252 | long result; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | char *kwnames[] = { | |
19255 | (char *) "self", NULL | |
19256 | }; | |
19257 | ||
19258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19261 | result = (long) ((arg1)->m_state); |
19262 | ||
2f4c0a16 | 19263 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19264 | return resultobj; |
19265 | fail: | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19273 | long arg2 ; | |
19274 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19275 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19276 | char *kwnames[] = { |
19277 | (char *) "self",(char *) "m_stateMask", NULL | |
19278 | }; | |
19279 | ||
8edf1c75 | 19280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19283 | arg2 = (long) SWIG_AsLong(obj1); | |
19284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19285 | if (arg1) (arg1)->m_stateMask = arg2; |
19286 | ||
19287 | Py_INCREF(Py_None); resultobj = Py_None; | |
19288 | return resultobj; | |
19289 | fail: | |
19290 | return NULL; | |
19291 | } | |
19292 | ||
19293 | ||
19294 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19295 | PyObject *resultobj; | |
19296 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19297 | long result; | |
19298 | PyObject * obj0 = 0 ; | |
19299 | char *kwnames[] = { | |
19300 | (char *) "self", NULL | |
19301 | }; | |
19302 | ||
19303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19306 | result = (long) ((arg1)->m_stateMask); |
19307 | ||
2f4c0a16 | 19308 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19309 | return resultobj; |
19310 | fail: | |
19311 | return NULL; | |
19312 | } | |
19313 | ||
19314 | ||
19315 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19316 | PyObject *resultobj; | |
19317 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19318 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 19319 | bool temp2 = False ; |
d14a1e28 RD |
19320 | PyObject * obj0 = 0 ; |
19321 | PyObject * obj1 = 0 ; | |
19322 | char *kwnames[] = { | |
19323 | (char *) "self",(char *) "m_text", NULL | |
19324 | }; | |
19325 | ||
19326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
19329 | { |
19330 | arg2 = wxString_in_helper(obj1); | |
19331 | if (arg2 == NULL) SWIG_fail; | |
19332 | temp2 = True; | |
19333 | } | |
d03fd34d | 19334 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19335 | |
19336 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
19337 | { |
19338 | if (temp2) | |
19339 | delete arg2; | |
19340 | } | |
d14a1e28 RD |
19341 | return resultobj; |
19342 | fail: | |
f775c30d RD |
19343 | { |
19344 | if (temp2) | |
19345 | delete arg2; | |
19346 | } | |
d14a1e28 RD |
19347 | return NULL; |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19354 | wxString *result; |
d14a1e28 RD |
19355 | PyObject * obj0 = 0 ; |
19356 | char *kwnames[] = { | |
19357 | (char *) "self", NULL | |
19358 | }; | |
19359 | ||
19360 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19361 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19362 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 19363 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
19364 | |
19365 | { | |
19366 | #if wxUSE_UNICODE | |
d03fd34d | 19367 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 19368 | #else |
d03fd34d | 19369 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
19370 | #endif |
19371 | } | |
19372 | return resultobj; | |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj; | |
19380 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19381 | int arg2 ; | |
19382 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19384 | char *kwnames[] = { |
19385 | (char *) "self",(char *) "m_image", NULL | |
19386 | }; | |
19387 | ||
8edf1c75 | 19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19391 | arg2 = (int) SWIG_AsInt(obj1); | |
19392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19393 | if (arg1) (arg1)->m_image = arg2; |
19394 | ||
19395 | Py_INCREF(Py_None); resultobj = Py_None; | |
19396 | return resultobj; | |
19397 | fail: | |
19398 | return NULL; | |
19399 | } | |
19400 | ||
19401 | ||
19402 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19403 | PyObject *resultobj; | |
19404 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19405 | int result; | |
19406 | PyObject * obj0 = 0 ; | |
19407 | char *kwnames[] = { | |
19408 | (char *) "self", NULL | |
19409 | }; | |
19410 | ||
19411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19414 | result = (int) ((arg1)->m_image); |
19415 | ||
2f4c0a16 | 19416 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19417 | return resultobj; |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19426 | long arg2 ; | |
19427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19429 | char *kwnames[] = { |
19430 | (char *) "self",(char *) "m_data", NULL | |
19431 | }; | |
19432 | ||
8edf1c75 | 19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19436 | arg2 = (long) SWIG_AsLong(obj1); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19438 | if (arg1) (arg1)->m_data = arg2; |
19439 | ||
19440 | Py_INCREF(Py_None); resultobj = Py_None; | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj; | |
19449 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19450 | long result; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self", NULL | |
19454 | }; | |
19455 | ||
19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19459 | result = (long) ((arg1)->m_data); |
19460 | ||
2f4c0a16 | 19461 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19462 | return resultobj; |
19463 | fail: | |
19464 | return NULL; | |
19465 | } | |
19466 | ||
19467 | ||
19468 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19469 | PyObject *resultobj; | |
19470 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19471 | int arg2 ; | |
19472 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19474 | char *kwnames[] = { |
19475 | (char *) "self",(char *) "m_format", NULL | |
19476 | }; | |
19477 | ||
8edf1c75 | 19478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19481 | arg2 = (int) SWIG_AsInt(obj1); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19483 | if (arg1) (arg1)->m_format = arg2; |
19484 | ||
19485 | Py_INCREF(Py_None); resultobj = Py_None; | |
19486 | return resultobj; | |
19487 | fail: | |
19488 | return NULL; | |
19489 | } | |
19490 | ||
19491 | ||
19492 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19493 | PyObject *resultobj; | |
19494 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19495 | int result; | |
19496 | PyObject * obj0 = 0 ; | |
19497 | char *kwnames[] = { | |
19498 | (char *) "self", NULL | |
19499 | }; | |
19500 | ||
19501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19504 | result = (int) ((arg1)->m_format); |
19505 | ||
2f4c0a16 | 19506 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19507 | return resultobj; |
19508 | fail: | |
19509 | return NULL; | |
19510 | } | |
19511 | ||
19512 | ||
19513 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19514 | PyObject *resultobj; | |
19515 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19516 | int arg2 ; | |
19517 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19518 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19519 | char *kwnames[] = { |
19520 | (char *) "self",(char *) "m_width", NULL | |
19521 | }; | |
19522 | ||
8edf1c75 | 19523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19524 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19525 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19526 | arg2 = (int) SWIG_AsInt(obj1); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19528 | if (arg1) (arg1)->m_width = arg2; |
19529 | ||
19530 | Py_INCREF(Py_None); resultobj = Py_None; | |
19531 | return resultobj; | |
19532 | fail: | |
19533 | return NULL; | |
19534 | } | |
19535 | ||
19536 | ||
19537 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19538 | PyObject *resultobj; | |
19539 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19540 | int result; | |
19541 | PyObject * obj0 = 0 ; | |
19542 | char *kwnames[] = { | |
19543 | (char *) "self", NULL | |
19544 | }; | |
19545 | ||
19546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19549 | result = (int) ((arg1)->m_width); |
19550 | ||
2f4c0a16 | 19551 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19552 | return resultobj; |
19553 | fail: | |
19554 | return NULL; | |
19555 | } | |
19556 | ||
19557 | ||
19558 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19559 | PyObject *obj; | |
19560 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19561 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19562 | Py_INCREF(obj); | |
19563 | return Py_BuildValue((char *)""); | |
19564 | } | |
19565 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19566 | PyObject *resultobj; | |
19567 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19568 | int arg2 = (int) 0 ; | |
19569 | wxListEvent *result; | |
8edf1c75 RD |
19570 | PyObject * obj0 = 0 ; |
19571 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19572 | char *kwnames[] = { |
19573 | (char *) "commandType",(char *) "id", NULL | |
19574 | }; | |
19575 | ||
8edf1c75 RD |
19576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19577 | if (obj0) { | |
2f4c0a16 RD |
19578 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19579 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19580 | } |
19581 | if (obj1) { | |
2f4c0a16 RD |
19582 | arg2 = (int) SWIG_AsInt(obj1); |
19583 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19584 | } |
d14a1e28 RD |
19585 | { |
19586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19587 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19588 | ||
19589 | wxPyEndAllowThreads(__tstate); | |
19590 | if (PyErr_Occurred()) SWIG_fail; | |
19591 | } | |
2f4c0a16 | 19592 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
19593 | return resultobj; |
19594 | fail: | |
19595 | return NULL; | |
19596 | } | |
19597 | ||
19598 | ||
19599 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19600 | PyObject *resultobj; | |
19601 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19602 | int arg2 ; | |
19603 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19605 | char *kwnames[] = { |
19606 | (char *) "self",(char *) "m_code", NULL | |
19607 | }; | |
19608 | ||
8edf1c75 | 19609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19612 | arg2 = (int) SWIG_AsInt(obj1); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19614 | if (arg1) (arg1)->m_code = arg2; |
19615 | ||
19616 | Py_INCREF(Py_None); resultobj = Py_None; | |
19617 | return resultobj; | |
19618 | fail: | |
19619 | return NULL; | |
19620 | } | |
19621 | ||
19622 | ||
19623 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19624 | PyObject *resultobj; | |
19625 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19626 | int result; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | char *kwnames[] = { | |
19629 | (char *) "self", NULL | |
19630 | }; | |
19631 | ||
19632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19635 | result = (int) ((arg1)->m_code); |
19636 | ||
2f4c0a16 | 19637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19638 | return resultobj; |
19639 | fail: | |
19640 | return NULL; | |
19641 | } | |
19642 | ||
19643 | ||
19644 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19645 | PyObject *resultobj; | |
19646 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19647 | long arg2 ; | |
19648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19650 | char *kwnames[] = { |
19651 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19652 | }; | |
19653 | ||
8edf1c75 | 19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19657 | arg2 = (long) SWIG_AsLong(obj1); | |
19658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19659 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19660 | ||
19661 | Py_INCREF(Py_None); resultobj = Py_None; | |
19662 | return resultobj; | |
19663 | fail: | |
19664 | return NULL; | |
19665 | } | |
19666 | ||
19667 | ||
19668 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19669 | PyObject *resultobj; | |
19670 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19671 | long result; | |
19672 | PyObject * obj0 = 0 ; | |
19673 | char *kwnames[] = { | |
19674 | (char *) "self", NULL | |
19675 | }; | |
19676 | ||
19677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19680 | result = (long) ((arg1)->m_oldItemIndex); |
19681 | ||
2f4c0a16 | 19682 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19683 | return resultobj; |
19684 | fail: | |
19685 | return NULL; | |
19686 | } | |
19687 | ||
19688 | ||
19689 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19690 | PyObject *resultobj; | |
19691 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19692 | long arg2 ; | |
19693 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19694 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19695 | char *kwnames[] = { |
19696 | (char *) "self",(char *) "m_itemIndex", NULL | |
19697 | }; | |
19698 | ||
8edf1c75 | 19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19702 | arg2 = (long) SWIG_AsLong(obj1); | |
19703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19704 | if (arg1) (arg1)->m_itemIndex = arg2; |
19705 | ||
19706 | Py_INCREF(Py_None); resultobj = Py_None; | |
19707 | return resultobj; | |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
19713 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19714 | PyObject *resultobj; | |
19715 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19716 | long result; | |
19717 | PyObject * obj0 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19725 | result = (long) ((arg1)->m_itemIndex); |
19726 | ||
2f4c0a16 | 19727 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19728 | return resultobj; |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19737 | int arg2 ; | |
19738 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19740 | char *kwnames[] = { |
19741 | (char *) "self",(char *) "m_col", NULL | |
19742 | }; | |
19743 | ||
8edf1c75 | 19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19747 | arg2 = (int) SWIG_AsInt(obj1); | |
19748 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19749 | if (arg1) (arg1)->m_col = arg2; |
19750 | ||
19751 | Py_INCREF(Py_None); resultobj = Py_None; | |
19752 | return resultobj; | |
19753 | fail: | |
19754 | return NULL; | |
19755 | } | |
19756 | ||
19757 | ||
19758 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19759 | PyObject *resultobj; | |
19760 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19761 | int result; | |
19762 | PyObject * obj0 = 0 ; | |
19763 | char *kwnames[] = { | |
19764 | (char *) "self", NULL | |
19765 | }; | |
19766 | ||
19767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19770 | result = (int) ((arg1)->m_col); |
19771 | ||
2f4c0a16 | 19772 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19773 | return resultobj; |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19782 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | PyObject * obj1 = 0 ; | |
19785 | char *kwnames[] = { | |
19786 | (char *) "self",(char *) "m_pointDrag", NULL | |
19787 | }; | |
19788 | ||
19789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
19793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19794 | if (arg1) (arg1)->m_pointDrag = *arg2; |
19795 | ||
19796 | Py_INCREF(Py_None); resultobj = Py_None; | |
19797 | return resultobj; | |
19798 | fail: | |
19799 | return NULL; | |
19800 | } | |
19801 | ||
19802 | ||
19803 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19804 | PyObject *resultobj; | |
19805 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19806 | wxPoint *result; | |
19807 | PyObject * obj0 = 0 ; | |
19808 | char *kwnames[] = { | |
19809 | (char *) "self", NULL | |
19810 | }; | |
19811 | ||
19812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19815 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
19816 | ||
2f4c0a16 | 19817 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
19818 | return resultobj; |
19819 | fail: | |
19820 | return NULL; | |
19821 | } | |
19822 | ||
19823 | ||
19824 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19825 | PyObject *resultobj; | |
19826 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19827 | wxListItem *result; | |
19828 | PyObject * obj0 = 0 ; | |
19829 | char *kwnames[] = { | |
19830 | (char *) "self", NULL | |
19831 | }; | |
19832 | ||
19833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19836 | result = (wxListItem *)& ((arg1)->m_item); |
19837 | ||
19838 | { | |
19839 | resultobj = wxPyMake_wxObject(result); | |
19840 | } | |
19841 | return resultobj; | |
19842 | fail: | |
19843 | return NULL; | |
19844 | } | |
19845 | ||
19846 | ||
19847 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19848 | PyObject *resultobj; | |
19849 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19850 | int result; | |
19851 | PyObject * obj0 = 0 ; | |
19852 | char *kwnames[] = { | |
19853 | (char *) "self", NULL | |
19854 | }; | |
19855 | ||
19856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19859 | { |
19860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19861 | result = (int)(arg1)->GetKeyCode(); | |
19862 | ||
19863 | wxPyEndAllowThreads(__tstate); | |
19864 | if (PyErr_Occurred()) SWIG_fail; | |
19865 | } | |
2f4c0a16 | 19866 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19867 | return resultobj; |
19868 | fail: | |
19869 | return NULL; | |
19870 | } | |
19871 | ||
19872 | ||
19873 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19874 | PyObject *resultobj; | |
19875 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19876 | long result; | |
19877 | PyObject * obj0 = 0 ; | |
19878 | char *kwnames[] = { | |
19879 | (char *) "self", NULL | |
19880 | }; | |
19881 | ||
19882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19885 | { |
19886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19887 | result = (long)(arg1)->GetIndex(); | |
19888 | ||
19889 | wxPyEndAllowThreads(__tstate); | |
19890 | if (PyErr_Occurred()) SWIG_fail; | |
19891 | } | |
2f4c0a16 | 19892 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19893 | return resultobj; |
19894 | fail: | |
19895 | return NULL; | |
19896 | } | |
19897 | ||
19898 | ||
19899 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19900 | PyObject *resultobj; | |
19901 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19902 | int result; | |
19903 | PyObject * obj0 = 0 ; | |
19904 | char *kwnames[] = { | |
19905 | (char *) "self", NULL | |
19906 | }; | |
19907 | ||
19908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19911 | { |
19912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19913 | result = (int)(arg1)->GetColumn(); | |
19914 | ||
19915 | wxPyEndAllowThreads(__tstate); | |
19916 | if (PyErr_Occurred()) SWIG_fail; | |
19917 | } | |
2f4c0a16 | 19918 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19919 | return resultobj; |
19920 | fail: | |
19921 | return NULL; | |
19922 | } | |
19923 | ||
19924 | ||
19925 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19926 | PyObject *resultobj; | |
19927 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19928 | wxPoint result; | |
19929 | PyObject * obj0 = 0 ; | |
19930 | char *kwnames[] = { | |
19931 | (char *) "self", NULL | |
19932 | }; | |
19933 | ||
19934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19937 | { |
19938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19939 | result = (arg1)->GetPoint(); | |
19940 | ||
19941 | wxPyEndAllowThreads(__tstate); | |
19942 | if (PyErr_Occurred()) SWIG_fail; | |
19943 | } | |
19944 | { | |
19945 | wxPoint * resultptr; | |
19946 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 19947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
19948 | } |
19949 | return resultobj; | |
19950 | fail: | |
19951 | return NULL; | |
19952 | } | |
19953 | ||
19954 | ||
19955 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19956 | PyObject *resultobj; | |
19957 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19958 | wxString *result; | |
19959 | PyObject * obj0 = 0 ; | |
19960 | char *kwnames[] = { | |
19961 | (char *) "self", NULL | |
19962 | }; | |
19963 | ||
19964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19967 | { |
19968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19969 | { | |
19970 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19971 | result = (wxString *) &_result_ref; | |
19972 | } | |
19973 | ||
19974 | wxPyEndAllowThreads(__tstate); | |
19975 | if (PyErr_Occurred()) SWIG_fail; | |
19976 | } | |
f0983263 RD |
19977 | { |
19978 | #if wxUSE_UNICODE | |
19979 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19980 | #else | |
19981 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19982 | #endif | |
19983 | } | |
d14a1e28 RD |
19984 | return resultobj; |
19985 | fail: | |
19986 | return NULL; | |
19987 | } | |
19988 | ||
19989 | ||
19990 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19991 | PyObject *resultobj; | |
19992 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19993 | wxString *result; | |
19994 | PyObject * obj0 = 0 ; | |
19995 | char *kwnames[] = { | |
19996 | (char *) "self", NULL | |
19997 | }; | |
19998 | ||
19999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20002 | { |
20003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20004 | { | |
20005 | wxString const &_result_ref = (arg1)->GetText(); | |
20006 | result = (wxString *) &_result_ref; | |
20007 | } | |
20008 | ||
20009 | wxPyEndAllowThreads(__tstate); | |
20010 | if (PyErr_Occurred()) SWIG_fail; | |
20011 | } | |
f0983263 RD |
20012 | { |
20013 | #if wxUSE_UNICODE | |
20014 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20015 | #else | |
20016 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20017 | #endif | |
20018 | } | |
d14a1e28 RD |
20019 | return resultobj; |
20020 | fail: | |
20021 | return NULL; | |
20022 | } | |
20023 | ||
20024 | ||
20025 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20026 | PyObject *resultobj; | |
20027 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20028 | int result; | |
20029 | PyObject * obj0 = 0 ; | |
20030 | char *kwnames[] = { | |
20031 | (char *) "self", NULL | |
20032 | }; | |
20033 | ||
20034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20037 | { |
20038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20039 | result = (int)(arg1)->GetImage(); | |
20040 | ||
20041 | wxPyEndAllowThreads(__tstate); | |
20042 | if (PyErr_Occurred()) SWIG_fail; | |
20043 | } | |
2f4c0a16 | 20044 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20045 | return resultobj; |
20046 | fail: | |
20047 | return NULL; | |
20048 | } | |
20049 | ||
20050 | ||
20051 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20052 | PyObject *resultobj; | |
20053 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20054 | long result; | |
20055 | PyObject * obj0 = 0 ; | |
20056 | char *kwnames[] = { | |
20057 | (char *) "self", NULL | |
20058 | }; | |
20059 | ||
20060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20063 | { |
20064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20065 | result = (long)(arg1)->GetData(); | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
2f4c0a16 | 20070 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20071 | return resultobj; |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20078 | PyObject *resultobj; | |
20079 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20080 | long result; | |
20081 | PyObject * obj0 = 0 ; | |
20082 | char *kwnames[] = { | |
20083 | (char *) "self", NULL | |
20084 | }; | |
20085 | ||
20086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20089 | { |
20090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20091 | result = (long)(arg1)->GetMask(); | |
20092 | ||
20093 | wxPyEndAllowThreads(__tstate); | |
20094 | if (PyErr_Occurred()) SWIG_fail; | |
20095 | } | |
2f4c0a16 | 20096 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20097 | return resultobj; |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20104 | PyObject *resultobj; | |
20105 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20106 | wxListItem *result; | |
20107 | PyObject * obj0 = 0 ; | |
20108 | char *kwnames[] = { | |
20109 | (char *) "self", NULL | |
20110 | }; | |
20111 | ||
20112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20115 | { |
20116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20117 | { | |
20118 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20119 | result = (wxListItem *) &_result_ref; | |
20120 | } | |
20121 | ||
20122 | wxPyEndAllowThreads(__tstate); | |
20123 | if (PyErr_Occurred()) SWIG_fail; | |
20124 | } | |
2f4c0a16 | 20125 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20126 | return resultobj; |
20127 | fail: | |
20128 | return NULL; | |
20129 | } | |
20130 | ||
20131 | ||
20132 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20133 | PyObject *resultobj; | |
20134 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20135 | long result; | |
20136 | PyObject * obj0 = 0 ; | |
20137 | char *kwnames[] = { | |
20138 | (char *) "self", NULL | |
20139 | }; | |
20140 | ||
20141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20144 | { |
20145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20146 | result = (long)(arg1)->GetCacheFrom(); | |
20147 | ||
20148 | wxPyEndAllowThreads(__tstate); | |
20149 | if (PyErr_Occurred()) SWIG_fail; | |
20150 | } | |
2f4c0a16 | 20151 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20152 | return resultobj; |
20153 | fail: | |
20154 | return NULL; | |
20155 | } | |
20156 | ||
20157 | ||
20158 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20159 | PyObject *resultobj; | |
20160 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20161 | long result; | |
20162 | PyObject * obj0 = 0 ; | |
20163 | char *kwnames[] = { | |
20164 | (char *) "self", NULL | |
20165 | }; | |
20166 | ||
20167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20170 | { |
20171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20172 | result = (long)(arg1)->GetCacheTo(); | |
20173 | ||
20174 | wxPyEndAllowThreads(__tstate); | |
20175 | if (PyErr_Occurred()) SWIG_fail; | |
20176 | } | |
2f4c0a16 | 20177 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20178 | return resultobj; |
20179 | fail: | |
20180 | return NULL; | |
20181 | } | |
20182 | ||
20183 | ||
20184 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20185 | PyObject *resultobj; | |
20186 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20187 | bool result; | |
20188 | PyObject * obj0 = 0 ; | |
20189 | char *kwnames[] = { | |
20190 | (char *) "self", NULL | |
20191 | }; | |
20192 | ||
20193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20196 | { |
20197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20198 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20199 | ||
20200 | wxPyEndAllowThreads(__tstate); | |
20201 | if (PyErr_Occurred()) SWIG_fail; | |
20202 | } | |
4f89f6a3 RD |
20203 | { |
20204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20205 | } | |
d14a1e28 RD |
20206 | return resultobj; |
20207 | fail: | |
20208 | return NULL; | |
20209 | } | |
20210 | ||
20211 | ||
20212 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20213 | PyObject *resultobj; | |
20214 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20215 | bool arg2 ; | |
20216 | PyObject * obj0 = 0 ; | |
20217 | PyObject * obj1 = 0 ; | |
20218 | char *kwnames[] = { | |
20219 | (char *) "self",(char *) "editCancelled", NULL | |
20220 | }; | |
20221 | ||
20222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20223 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20224 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20225 | arg2 = (bool) SWIG_AsBool(obj1); | |
20226 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20227 | { |
20228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20229 | (arg1)->SetEditCanceled(arg2); | |
20230 | ||
20231 | wxPyEndAllowThreads(__tstate); | |
20232 | if (PyErr_Occurred()) SWIG_fail; | |
20233 | } | |
20234 | Py_INCREF(Py_None); resultobj = Py_None; | |
20235 | return resultobj; | |
20236 | fail: | |
20237 | return NULL; | |
20238 | } | |
20239 | ||
20240 | ||
20241 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20242 | PyObject *obj; | |
20243 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20244 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20245 | Py_INCREF(obj); | |
20246 | return Py_BuildValue((char *)""); | |
20247 | } | |
20248 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20249 | PyObject *resultobj; | |
20250 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20251 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20252 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20253 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20254 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20255 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20256 | long arg5 = (long) wxLC_ICON ; | |
20257 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20258 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20259 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20260 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20261 | wxPyListCtrl *result; | |
20262 | wxPoint temp3 ; | |
20263 | wxSize temp4 ; | |
423f194a | 20264 | bool temp7 = False ; |
d14a1e28 | 20265 | PyObject * obj0 = 0 ; |
8edf1c75 | 20266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20267 | PyObject * obj2 = 0 ; |
20268 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20269 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20270 | PyObject * obj5 = 0 ; |
20271 | PyObject * obj6 = 0 ; | |
20272 | char *kwnames[] = { | |
20273 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20274 | }; | |
20275 | ||
8edf1c75 | 20276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20279 | if (obj1) { |
2f4c0a16 RD |
20280 | arg2 = (int) SWIG_AsInt(obj1); |
20281 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20282 | } |
d14a1e28 RD |
20283 | if (obj2) { |
20284 | { | |
20285 | arg3 = &temp3; | |
20286 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20287 | } | |
20288 | } | |
20289 | if (obj3) { | |
20290 | { | |
20291 | arg4 = &temp4; | |
20292 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20293 | } | |
20294 | } | |
8edf1c75 | 20295 | if (obj4) { |
2f4c0a16 RD |
20296 | arg5 = (long) SWIG_AsLong(obj4); |
20297 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20298 | } |
d14a1e28 | 20299 | if (obj5) { |
2f4c0a16 RD |
20300 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
20301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20302 | SWIG_fail; | |
d14a1e28 | 20303 | if (arg6 == NULL) { |
2f4c0a16 RD |
20304 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20305 | SWIG_fail; | |
d14a1e28 RD |
20306 | } |
20307 | } | |
20308 | if (obj6) { | |
20309 | { | |
20310 | arg7 = wxString_in_helper(obj6); | |
20311 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20312 | temp7 = True; |
d14a1e28 RD |
20313 | } |
20314 | } | |
20315 | { | |
20316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20317 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20318 | ||
20319 | wxPyEndAllowThreads(__tstate); | |
20320 | if (PyErr_Occurred()) SWIG_fail; | |
20321 | } | |
2f4c0a16 | 20322 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20323 | { |
20324 | if (temp7) | |
20325 | delete arg7; | |
20326 | } | |
20327 | return resultobj; | |
20328 | fail: | |
20329 | { | |
20330 | if (temp7) | |
20331 | delete arg7; | |
20332 | } | |
20333 | return NULL; | |
20334 | } | |
20335 | ||
20336 | ||
20337 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20338 | PyObject *resultobj; | |
20339 | wxPyListCtrl *result; | |
20340 | char *kwnames[] = { | |
20341 | NULL | |
20342 | }; | |
20343 | ||
20344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20345 | { | |
20346 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20347 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20348 | ||
20349 | wxPyEndAllowThreads(__tstate); | |
20350 | if (PyErr_Occurred()) SWIG_fail; | |
20351 | } | |
2f4c0a16 | 20352 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20353 | return resultobj; |
20354 | fail: | |
20355 | return NULL; | |
20356 | } | |
20357 | ||
20358 | ||
20359 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20360 | PyObject *resultobj; | |
20361 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20362 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20363 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20364 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20365 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20366 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20367 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20368 | long arg6 = (long) wxLC_ICON ; | |
20369 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20370 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20371 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20372 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20373 | bool result; | |
20374 | wxPoint temp4 ; | |
20375 | wxSize temp5 ; | |
423f194a | 20376 | bool temp8 = False ; |
d14a1e28 RD |
20377 | PyObject * obj0 = 0 ; |
20378 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20379 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20380 | PyObject * obj3 = 0 ; |
20381 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20382 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20383 | PyObject * obj6 = 0 ; |
20384 | PyObject * obj7 = 0 ; | |
20385 | char *kwnames[] = { | |
20386 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20387 | }; | |
20388 | ||
8edf1c75 | 20389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
20390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20392 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20394 | if (obj2) { |
2f4c0a16 RD |
20395 | arg3 = (int) SWIG_AsInt(obj2); |
20396 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20397 | } |
d14a1e28 RD |
20398 | if (obj3) { |
20399 | { | |
20400 | arg4 = &temp4; | |
20401 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20402 | } | |
20403 | } | |
20404 | if (obj4) { | |
20405 | { | |
20406 | arg5 = &temp5; | |
20407 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20408 | } | |
20409 | } | |
8edf1c75 | 20410 | if (obj5) { |
2f4c0a16 RD |
20411 | arg6 = (long) SWIG_AsLong(obj5); |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20413 | } |
d14a1e28 | 20414 | if (obj6) { |
2f4c0a16 RD |
20415 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
20416 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20417 | SWIG_fail; | |
d14a1e28 | 20418 | if (arg7 == NULL) { |
2f4c0a16 RD |
20419 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20420 | SWIG_fail; | |
d14a1e28 RD |
20421 | } |
20422 | } | |
20423 | if (obj7) { | |
20424 | { | |
20425 | arg8 = wxString_in_helper(obj7); | |
20426 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20427 | temp8 = True; |
d14a1e28 RD |
20428 | } |
20429 | } | |
20430 | { | |
20431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20432 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20433 | ||
20434 | wxPyEndAllowThreads(__tstate); | |
20435 | if (PyErr_Occurred()) SWIG_fail; | |
20436 | } | |
4f89f6a3 RD |
20437 | { |
20438 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20439 | } | |
d14a1e28 RD |
20440 | { |
20441 | if (temp8) | |
20442 | delete arg8; | |
20443 | } | |
20444 | return resultobj; | |
20445 | fail: | |
20446 | { | |
20447 | if (temp8) | |
20448 | delete arg8; | |
20449 | } | |
20450 | return NULL; | |
20451 | } | |
20452 | ||
20453 | ||
20454 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20455 | PyObject *resultobj; | |
20456 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20457 | PyObject *arg2 = (PyObject *) 0 ; | |
20458 | PyObject *arg3 = (PyObject *) 0 ; | |
20459 | PyObject * obj0 = 0 ; | |
20460 | PyObject * obj1 = 0 ; | |
20461 | PyObject * obj2 = 0 ; | |
20462 | char *kwnames[] = { | |
20463 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20464 | }; | |
20465 | ||
20466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
20467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20469 | arg2 = obj1; |
20470 | arg3 = obj2; | |
20471 | { | |
20472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20473 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20474 | ||
20475 | wxPyEndAllowThreads(__tstate); | |
20476 | if (PyErr_Occurred()) SWIG_fail; | |
20477 | } | |
20478 | Py_INCREF(Py_None); resultobj = Py_None; | |
20479 | return resultobj; | |
20480 | fail: | |
20481 | return NULL; | |
20482 | } | |
20483 | ||
20484 | ||
20485 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20486 | PyObject *resultobj; | |
20487 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20488 | wxColour *arg2 = 0 ; | |
20489 | bool result; | |
20490 | wxColour temp2 ; | |
20491 | PyObject * obj0 = 0 ; | |
20492 | PyObject * obj1 = 0 ; | |
20493 | char *kwnames[] = { | |
20494 | (char *) "self",(char *) "col", NULL | |
20495 | }; | |
20496 | ||
20497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20500 | { |
20501 | arg2 = &temp2; | |
20502 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20503 | } | |
20504 | { | |
20505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20506 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20507 | ||
20508 | wxPyEndAllowThreads(__tstate); | |
20509 | if (PyErr_Occurred()) SWIG_fail; | |
20510 | } | |
4f89f6a3 RD |
20511 | { |
20512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20513 | } | |
d14a1e28 RD |
20514 | return resultobj; |
20515 | fail: | |
20516 | return NULL; | |
20517 | } | |
20518 | ||
20519 | ||
20520 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20521 | PyObject *resultobj; | |
20522 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20523 | wxColour *arg2 = 0 ; | |
20524 | bool result; | |
20525 | wxColour temp2 ; | |
20526 | PyObject * obj0 = 0 ; | |
20527 | PyObject * obj1 = 0 ; | |
20528 | char *kwnames[] = { | |
20529 | (char *) "self",(char *) "col", NULL | |
20530 | }; | |
20531 | ||
20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20535 | { |
20536 | arg2 = &temp2; | |
20537 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20538 | } | |
20539 | { | |
20540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20541 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20542 | ||
20543 | wxPyEndAllowThreads(__tstate); | |
20544 | if (PyErr_Occurred()) SWIG_fail; | |
20545 | } | |
4f89f6a3 RD |
20546 | { |
20547 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20548 | } | |
d14a1e28 RD |
20549 | return resultobj; |
20550 | fail: | |
20551 | return NULL; | |
20552 | } | |
20553 | ||
20554 | ||
20555 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20556 | PyObject *resultobj; | |
20557 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20558 | int arg2 ; | |
20559 | wxListItem *result; | |
20560 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20561 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20562 | char *kwnames[] = { |
20563 | (char *) "self",(char *) "col", NULL | |
20564 | }; | |
20565 | ||
8edf1c75 | 20566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20569 | arg2 = (int) SWIG_AsInt(obj1); | |
20570 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20571 | { |
20572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20573 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20574 | ||
20575 | wxPyEndAllowThreads(__tstate); | |
20576 | if (PyErr_Occurred()) SWIG_fail; | |
20577 | } | |
20578 | { | |
20579 | resultobj = wxPyMake_wxObject(result); | |
20580 | } | |
20581 | return resultobj; | |
20582 | fail: | |
20583 | return NULL; | |
20584 | } | |
20585 | ||
20586 | ||
20587 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20588 | PyObject *resultobj; | |
20589 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20590 | int arg2 ; | |
20591 | wxListItem *arg3 = 0 ; | |
20592 | bool result; | |
20593 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20595 | PyObject * obj2 = 0 ; |
20596 | char *kwnames[] = { | |
20597 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20598 | }; | |
20599 | ||
8edf1c75 | 20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20603 | arg2 = (int) SWIG_AsInt(obj1); | |
20604 | if (PyErr_Occurred()) SWIG_fail; | |
20605 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
20606 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20607 | SWIG_fail; | |
d14a1e28 | 20608 | if (arg3 == NULL) { |
2f4c0a16 RD |
20609 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20610 | SWIG_fail; | |
d14a1e28 RD |
20611 | } |
20612 | { | |
20613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20614 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20615 | ||
20616 | wxPyEndAllowThreads(__tstate); | |
20617 | if (PyErr_Occurred()) SWIG_fail; | |
20618 | } | |
4f89f6a3 RD |
20619 | { |
20620 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20621 | } | |
d14a1e28 RD |
20622 | return resultobj; |
20623 | fail: | |
20624 | return NULL; | |
20625 | } | |
20626 | ||
20627 | ||
20628 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20629 | PyObject *resultobj; | |
20630 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20631 | int arg2 ; | |
20632 | int result; | |
20633 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20634 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20635 | char *kwnames[] = { |
20636 | (char *) "self",(char *) "col", NULL | |
20637 | }; | |
20638 | ||
8edf1c75 | 20639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20642 | arg2 = (int) SWIG_AsInt(obj1); | |
20643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20644 | { |
20645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20646 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20647 | ||
20648 | wxPyEndAllowThreads(__tstate); | |
20649 | if (PyErr_Occurred()) SWIG_fail; | |
20650 | } | |
2f4c0a16 | 20651 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20652 | return resultobj; |
20653 | fail: | |
20654 | return NULL; | |
20655 | } | |
20656 | ||
20657 | ||
20658 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20659 | PyObject *resultobj; | |
20660 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20661 | int arg2 ; | |
20662 | int arg3 ; | |
20663 | bool result; | |
20664 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20665 | PyObject * obj1 = 0 ; |
20666 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20667 | char *kwnames[] = { |
20668 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20669 | }; | |
20670 | ||
8edf1c75 | 20671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20674 | arg2 = (int) SWIG_AsInt(obj1); | |
20675 | if (PyErr_Occurred()) SWIG_fail; | |
20676 | arg3 = (int) SWIG_AsInt(obj2); | |
20677 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20678 | { |
20679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20680 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20681 | ||
20682 | wxPyEndAllowThreads(__tstate); | |
20683 | if (PyErr_Occurred()) SWIG_fail; | |
20684 | } | |
4f89f6a3 RD |
20685 | { |
20686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20687 | } | |
d14a1e28 RD |
20688 | return resultobj; |
20689 | fail: | |
20690 | return NULL; | |
20691 | } | |
20692 | ||
20693 | ||
20694 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20695 | PyObject *resultobj; | |
20696 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20697 | int result; | |
20698 | PyObject * obj0 = 0 ; | |
20699 | char *kwnames[] = { | |
20700 | (char *) "self", NULL | |
20701 | }; | |
20702 | ||
20703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20706 | { |
20707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20708 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20709 | ||
20710 | wxPyEndAllowThreads(__tstate); | |
20711 | if (PyErr_Occurred()) SWIG_fail; | |
20712 | } | |
2f4c0a16 | 20713 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20714 | return resultobj; |
20715 | fail: | |
20716 | return NULL; | |
20717 | } | |
20718 | ||
20719 | ||
20720 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20721 | PyObject *resultobj; | |
20722 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20723 | wxRect result; | |
20724 | PyObject * obj0 = 0 ; | |
20725 | char *kwnames[] = { | |
20726 | (char *) "self", NULL | |
20727 | }; | |
20728 | ||
20729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20732 | { |
20733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20734 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20735 | ||
20736 | wxPyEndAllowThreads(__tstate); | |
20737 | if (PyErr_Occurred()) SWIG_fail; | |
20738 | } | |
20739 | { | |
20740 | wxRect * resultptr; | |
20741 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 20742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
20743 | } |
20744 | return resultobj; | |
20745 | fail: | |
20746 | return NULL; | |
20747 | } | |
20748 | ||
20749 | ||
20750 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20751 | PyObject *resultobj; | |
20752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20753 | wxTextCtrl *result; | |
20754 | PyObject * obj0 = 0 ; | |
20755 | char *kwnames[] = { | |
20756 | (char *) "self", NULL | |
20757 | }; | |
20758 | ||
20759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20762 | { |
20763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20764 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20765 | ||
20766 | wxPyEndAllowThreads(__tstate); | |
20767 | if (PyErr_Occurred()) SWIG_fail; | |
20768 | } | |
20769 | { | |
20770 | resultobj = wxPyMake_wxObject(result); | |
20771 | } | |
20772 | return resultobj; | |
20773 | fail: | |
20774 | return NULL; | |
20775 | } | |
20776 | ||
20777 | ||
20778 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20779 | PyObject *resultobj; | |
20780 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20781 | long arg2 ; | |
20782 | int arg3 = (int) 0 ; | |
20783 | wxListItem *result; | |
20784 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20785 | PyObject * obj1 = 0 ; |
20786 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20787 | char *kwnames[] = { |
20788 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20789 | }; | |
20790 | ||
8edf1c75 | 20791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20794 | arg2 = (long) SWIG_AsLong(obj1); | |
20795 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20796 | if (obj2) { |
2f4c0a16 RD |
20797 | arg3 = (int) SWIG_AsInt(obj2); |
20798 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20799 | } |
d14a1e28 RD |
20800 | { |
20801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20802 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20803 | ||
20804 | wxPyEndAllowThreads(__tstate); | |
20805 | if (PyErr_Occurred()) SWIG_fail; | |
20806 | } | |
20807 | { | |
20808 | resultobj = wxPyMake_wxObject(result); | |
20809 | } | |
20810 | return resultobj; | |
20811 | fail: | |
20812 | return NULL; | |
20813 | } | |
20814 | ||
20815 | ||
20816 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20817 | PyObject *resultobj; | |
20818 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20819 | wxListItem *arg2 = 0 ; | |
20820 | bool result; | |
20821 | PyObject * obj0 = 0 ; | |
20822 | PyObject * obj1 = 0 ; | |
20823 | char *kwnames[] = { | |
20824 | (char *) "self",(char *) "info", NULL | |
20825 | }; | |
20826 | ||
20827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20830 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
20831 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20832 | SWIG_fail; | |
d14a1e28 | 20833 | if (arg2 == NULL) { |
2f4c0a16 RD |
20834 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20835 | SWIG_fail; | |
d14a1e28 RD |
20836 | } |
20837 | { | |
20838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20839 | result = (bool)(arg1)->SetItem(*arg2); | |
20840 | ||
20841 | wxPyEndAllowThreads(__tstate); | |
20842 | if (PyErr_Occurred()) SWIG_fail; | |
20843 | } | |
4f89f6a3 RD |
20844 | { |
20845 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20846 | } | |
d14a1e28 RD |
20847 | return resultobj; |
20848 | fail: | |
20849 | return NULL; | |
20850 | } | |
20851 | ||
20852 | ||
20853 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20854 | PyObject *resultobj; | |
20855 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20856 | long arg2 ; | |
20857 | int arg3 ; | |
20858 | wxString *arg4 = 0 ; | |
20859 | int arg5 = (int) -1 ; | |
20860 | long result; | |
423f194a | 20861 | bool temp4 = False ; |
d14a1e28 | 20862 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20863 | PyObject * obj1 = 0 ; |
20864 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20865 | PyObject * obj3 = 0 ; |
8edf1c75 | 20866 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20867 | char *kwnames[] = { |
20868 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20869 | }; | |
20870 | ||
8edf1c75 | 20871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20874 | arg2 = (long) SWIG_AsLong(obj1); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | arg3 = (int) SWIG_AsInt(obj2); | |
20877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20878 | { |
20879 | arg4 = wxString_in_helper(obj3); | |
20880 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20881 | temp4 = True; |
d14a1e28 | 20882 | } |
8edf1c75 | 20883 | if (obj4) { |
2f4c0a16 RD |
20884 | arg5 = (int) SWIG_AsInt(obj4); |
20885 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20886 | } |
d14a1e28 RD |
20887 | { |
20888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20889 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20890 | ||
20891 | wxPyEndAllowThreads(__tstate); | |
20892 | if (PyErr_Occurred()) SWIG_fail; | |
20893 | } | |
2f4c0a16 | 20894 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20895 | { |
20896 | if (temp4) | |
20897 | delete arg4; | |
20898 | } | |
20899 | return resultobj; | |
20900 | fail: | |
20901 | { | |
20902 | if (temp4) | |
20903 | delete arg4; | |
20904 | } | |
20905 | return NULL; | |
20906 | } | |
20907 | ||
20908 | ||
20909 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20910 | PyObject *resultobj; | |
20911 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20912 | long arg2 ; | |
20913 | long arg3 ; | |
20914 | int result; | |
20915 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20916 | PyObject * obj1 = 0 ; |
20917 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20918 | char *kwnames[] = { |
20919 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20920 | }; | |
20921 | ||
8edf1c75 | 20922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20925 | arg2 = (long) SWIG_AsLong(obj1); | |
20926 | if (PyErr_Occurred()) SWIG_fail; | |
20927 | arg3 = (long) SWIG_AsLong(obj2); | |
20928 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20929 | { |
20930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20931 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20932 | ||
20933 | wxPyEndAllowThreads(__tstate); | |
20934 | if (PyErr_Occurred()) SWIG_fail; | |
20935 | } | |
2f4c0a16 | 20936 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20937 | return resultobj; |
20938 | fail: | |
20939 | return NULL; | |
20940 | } | |
20941 | ||
20942 | ||
20943 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20944 | PyObject *resultobj; | |
20945 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20946 | long arg2 ; | |
20947 | long arg3 ; | |
20948 | long arg4 ; | |
20949 | bool result; | |
20950 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20951 | PyObject * obj1 = 0 ; |
20952 | PyObject * obj2 = 0 ; | |
20953 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20954 | char *kwnames[] = { |
20955 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20956 | }; | |
20957 | ||
8edf1c75 | 20958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20961 | arg2 = (long) SWIG_AsLong(obj1); | |
20962 | if (PyErr_Occurred()) SWIG_fail; | |
20963 | arg3 = (long) SWIG_AsLong(obj2); | |
20964 | if (PyErr_Occurred()) SWIG_fail; | |
20965 | arg4 = (long) SWIG_AsLong(obj3); | |
20966 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20967 | { |
20968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20969 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20970 | ||
20971 | wxPyEndAllowThreads(__tstate); | |
20972 | if (PyErr_Occurred()) SWIG_fail; | |
20973 | } | |
4f89f6a3 RD |
20974 | { |
20975 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20976 | } | |
d14a1e28 RD |
20977 | return resultobj; |
20978 | fail: | |
20979 | return NULL; | |
20980 | } | |
20981 | ||
20982 | ||
20983 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20984 | PyObject *resultobj; | |
20985 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20986 | long arg2 ; | |
20987 | int arg3 ; | |
20988 | int arg4 ; | |
20989 | bool result; | |
20990 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20991 | PyObject * obj1 = 0 ; |
20992 | PyObject * obj2 = 0 ; | |
20993 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20994 | char *kwnames[] = { |
20995 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20996 | }; | |
20997 | ||
8edf1c75 | 20998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20999 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21000 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21001 | arg2 = (long) SWIG_AsLong(obj1); | |
21002 | if (PyErr_Occurred()) SWIG_fail; | |
21003 | arg3 = (int) SWIG_AsInt(obj2); | |
21004 | if (PyErr_Occurred()) SWIG_fail; | |
21005 | arg4 = (int) SWIG_AsInt(obj3); | |
21006 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21007 | { |
21008 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21009 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21010 | ||
21011 | wxPyEndAllowThreads(__tstate); | |
21012 | if (PyErr_Occurred()) SWIG_fail; | |
21013 | } | |
4f89f6a3 RD |
21014 | { |
21015 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21016 | } | |
d14a1e28 RD |
21017 | return resultobj; |
21018 | fail: | |
21019 | return NULL; | |
21020 | } | |
21021 | ||
21022 | ||
21023 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21024 | PyObject *resultobj; | |
21025 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21026 | long arg2 ; | |
21027 | wxString result; | |
21028 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21029 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21030 | char *kwnames[] = { |
21031 | (char *) "self",(char *) "item", NULL | |
21032 | }; | |
21033 | ||
8edf1c75 | 21034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21037 | arg2 = (long) SWIG_AsLong(obj1); | |
21038 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21039 | { |
21040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21041 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21042 | ||
21043 | wxPyEndAllowThreads(__tstate); | |
21044 | if (PyErr_Occurred()) SWIG_fail; | |
21045 | } | |
21046 | { | |
21047 | #if wxUSE_UNICODE | |
21048 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21049 | #else | |
21050 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21051 | #endif | |
21052 | } | |
21053 | return resultobj; | |
21054 | fail: | |
21055 | return NULL; | |
21056 | } | |
21057 | ||
21058 | ||
21059 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21060 | PyObject *resultobj; | |
21061 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21062 | long arg2 ; | |
21063 | wxString *arg3 = 0 ; | |
423f194a | 21064 | bool temp3 = False ; |
d14a1e28 | 21065 | PyObject * obj0 = 0 ; |
8edf1c75 | 21066 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21067 | PyObject * obj2 = 0 ; |
21068 | char *kwnames[] = { | |
21069 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21070 | }; | |
21071 | ||
8edf1c75 | 21072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21075 | arg2 = (long) SWIG_AsLong(obj1); | |
21076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21077 | { |
21078 | arg3 = wxString_in_helper(obj2); | |
21079 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21080 | temp3 = True; |
d14a1e28 RD |
21081 | } |
21082 | { | |
21083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21084 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21085 | ||
21086 | wxPyEndAllowThreads(__tstate); | |
21087 | if (PyErr_Occurred()) SWIG_fail; | |
21088 | } | |
21089 | Py_INCREF(Py_None); resultobj = Py_None; | |
21090 | { | |
21091 | if (temp3) | |
21092 | delete arg3; | |
21093 | } | |
21094 | return resultobj; | |
21095 | fail: | |
21096 | { | |
21097 | if (temp3) | |
21098 | delete arg3; | |
21099 | } | |
21100 | return NULL; | |
21101 | } | |
21102 | ||
21103 | ||
21104 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21105 | PyObject *resultobj; | |
21106 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21107 | long arg2 ; | |
21108 | long result; | |
21109 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21111 | char *kwnames[] = { |
21112 | (char *) "self",(char *) "item", NULL | |
21113 | }; | |
21114 | ||
8edf1c75 | 21115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21118 | arg2 = (long) SWIG_AsLong(obj1); | |
21119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21120 | { |
21121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21122 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21123 | ||
21124 | wxPyEndAllowThreads(__tstate); | |
21125 | if (PyErr_Occurred()) SWIG_fail; | |
21126 | } | |
2f4c0a16 | 21127 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21128 | return resultobj; |
21129 | fail: | |
21130 | return NULL; | |
21131 | } | |
21132 | ||
21133 | ||
21134 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21135 | PyObject *resultobj; | |
21136 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21137 | long arg2 ; | |
21138 | long arg3 ; | |
21139 | bool result; | |
21140 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21141 | PyObject * obj1 = 0 ; |
21142 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21143 | char *kwnames[] = { |
21144 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21145 | }; | |
21146 | ||
8edf1c75 | 21147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21150 | arg2 = (long) SWIG_AsLong(obj1); | |
21151 | if (PyErr_Occurred()) SWIG_fail; | |
21152 | arg3 = (long) SWIG_AsLong(obj2); | |
21153 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21154 | { |
21155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21156 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21157 | ||
21158 | wxPyEndAllowThreads(__tstate); | |
21159 | if (PyErr_Occurred()) SWIG_fail; | |
21160 | } | |
4f89f6a3 RD |
21161 | { |
21162 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21163 | } | |
d14a1e28 RD |
21164 | return resultobj; |
21165 | fail: | |
21166 | return NULL; | |
21167 | } | |
21168 | ||
21169 | ||
21170 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21171 | PyObject *resultobj; | |
21172 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21173 | long arg2 ; | |
21174 | wxPoint result; | |
21175 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21176 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21177 | char *kwnames[] = { |
21178 | (char *) "self",(char *) "item", NULL | |
21179 | }; | |
21180 | ||
8edf1c75 | 21181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21184 | arg2 = (long) SWIG_AsLong(obj1); | |
21185 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21186 | { |
21187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21188 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21189 | ||
21190 | wxPyEndAllowThreads(__tstate); | |
21191 | if (PyErr_Occurred()) SWIG_fail; | |
21192 | } | |
21193 | { | |
21194 | wxPoint * resultptr; | |
21195 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 21196 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21197 | } |
21198 | return resultobj; | |
21199 | fail: | |
21200 | return NULL; | |
21201 | } | |
21202 | ||
21203 | ||
21204 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21205 | PyObject *resultobj; | |
21206 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21207 | long arg2 ; | |
21208 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21209 | wxRect result; | |
21210 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21211 | PyObject * obj1 = 0 ; |
21212 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21213 | char *kwnames[] = { |
21214 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21215 | }; | |
21216 | ||
8edf1c75 | 21217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21220 | arg2 = (long) SWIG_AsLong(obj1); | |
21221 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21222 | if (obj2) { |
2f4c0a16 RD |
21223 | arg3 = (int) SWIG_AsInt(obj2); |
21224 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21225 | } |
d14a1e28 RD |
21226 | { |
21227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21228 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21229 | ||
21230 | wxPyEndAllowThreads(__tstate); | |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
21232 | } | |
21233 | { | |
21234 | wxRect * resultptr; | |
21235 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 21236 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21237 | } |
21238 | return resultobj; | |
21239 | fail: | |
21240 | return NULL; | |
21241 | } | |
21242 | ||
21243 | ||
21244 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21245 | PyObject *resultobj; | |
21246 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21247 | long arg2 ; | |
21248 | wxPoint *arg3 = 0 ; | |
21249 | bool result; | |
21250 | wxPoint temp3 ; | |
21251 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21253 | PyObject * obj2 = 0 ; |
21254 | char *kwnames[] = { | |
21255 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21256 | }; | |
21257 | ||
8edf1c75 | 21258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21261 | arg2 = (long) SWIG_AsLong(obj1); | |
21262 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21263 | { |
21264 | arg3 = &temp3; | |
21265 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21266 | } | |
21267 | { | |
21268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21269 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21270 | ||
21271 | wxPyEndAllowThreads(__tstate); | |
21272 | if (PyErr_Occurred()) SWIG_fail; | |
21273 | } | |
4f89f6a3 RD |
21274 | { |
21275 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21276 | } | |
d14a1e28 RD |
21277 | return resultobj; |
21278 | fail: | |
21279 | return NULL; | |
21280 | } | |
21281 | ||
21282 | ||
21283 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21284 | PyObject *resultobj; | |
21285 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21286 | int result; | |
21287 | PyObject * obj0 = 0 ; | |
21288 | char *kwnames[] = { | |
21289 | (char *) "self", NULL | |
21290 | }; | |
21291 | ||
21292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21295 | { |
21296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21297 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21298 | ||
21299 | wxPyEndAllowThreads(__tstate); | |
21300 | if (PyErr_Occurred()) SWIG_fail; | |
21301 | } | |
2f4c0a16 | 21302 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21303 | return resultobj; |
21304 | fail: | |
21305 | return NULL; | |
21306 | } | |
21307 | ||
21308 | ||
21309 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21310 | PyObject *resultobj; | |
21311 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21312 | int result; | |
21313 | PyObject * obj0 = 0 ; | |
21314 | char *kwnames[] = { | |
21315 | (char *) "self", NULL | |
21316 | }; | |
21317 | ||
21318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21321 | { |
21322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21323 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21324 | ||
21325 | wxPyEndAllowThreads(__tstate); | |
21326 | if (PyErr_Occurred()) SWIG_fail; | |
21327 | } | |
2f4c0a16 | 21328 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21329 | return resultobj; |
21330 | fail: | |
21331 | return NULL; | |
21332 | } | |
21333 | ||
21334 | ||
21335 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21336 | PyObject *resultobj; | |
21337 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21338 | wxSize result; | |
21339 | PyObject * obj0 = 0 ; | |
21340 | char *kwnames[] = { | |
21341 | (char *) "self", NULL | |
21342 | }; | |
21343 | ||
21344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21347 | { |
21348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21349 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21350 | ||
21351 | wxPyEndAllowThreads(__tstate); | |
21352 | if (PyErr_Occurred()) SWIG_fail; | |
21353 | } | |
21354 | { | |
21355 | wxSize * resultptr; | |
21356 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 21357 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21358 | } |
21359 | return resultobj; | |
21360 | fail: | |
21361 | return NULL; | |
21362 | } | |
21363 | ||
21364 | ||
21365 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21366 | PyObject *resultobj; | |
21367 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21368 | int result; | |
21369 | PyObject * obj0 = 0 ; | |
21370 | char *kwnames[] = { | |
21371 | (char *) "self", NULL | |
21372 | }; | |
21373 | ||
21374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21377 | { |
21378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21379 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21380 | ||
21381 | wxPyEndAllowThreads(__tstate); | |
21382 | if (PyErr_Occurred()) SWIG_fail; | |
21383 | } | |
2f4c0a16 | 21384 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21385 | return resultobj; |
21386 | fail: | |
21387 | return NULL; | |
21388 | } | |
21389 | ||
21390 | ||
21391 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21392 | PyObject *resultobj; | |
21393 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21394 | wxColour result; | |
21395 | PyObject * obj0 = 0 ; | |
21396 | char *kwnames[] = { | |
21397 | (char *) "self", NULL | |
21398 | }; | |
21399 | ||
21400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21403 | { |
21404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21405 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21406 | ||
21407 | wxPyEndAllowThreads(__tstate); | |
21408 | if (PyErr_Occurred()) SWIG_fail; | |
21409 | } | |
21410 | { | |
21411 | wxColour * resultptr; | |
21412 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 21413 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21414 | } |
21415 | return resultobj; | |
21416 | fail: | |
21417 | return NULL; | |
21418 | } | |
21419 | ||
21420 | ||
21421 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21422 | PyObject *resultobj; | |
21423 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21424 | wxColour *arg2 = 0 ; | |
21425 | wxColour temp2 ; | |
21426 | PyObject * obj0 = 0 ; | |
21427 | PyObject * obj1 = 0 ; | |
21428 | char *kwnames[] = { | |
21429 | (char *) "self",(char *) "col", NULL | |
21430 | }; | |
21431 | ||
21432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21435 | { |
21436 | arg2 = &temp2; | |
21437 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21438 | } | |
21439 | { | |
21440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21441 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21442 | ||
21443 | wxPyEndAllowThreads(__tstate); | |
21444 | if (PyErr_Occurred()) SWIG_fail; | |
21445 | } | |
21446 | Py_INCREF(Py_None); resultobj = Py_None; | |
21447 | return resultobj; | |
21448 | fail: | |
21449 | return NULL; | |
21450 | } | |
21451 | ||
21452 | ||
21453 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21454 | PyObject *resultobj; | |
21455 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21456 | long result; | |
21457 | PyObject * obj0 = 0 ; | |
21458 | char *kwnames[] = { | |
21459 | (char *) "self", NULL | |
21460 | }; | |
21461 | ||
21462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21465 | { |
21466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21467 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21468 | ||
21469 | wxPyEndAllowThreads(__tstate); | |
21470 | if (PyErr_Occurred()) SWIG_fail; | |
21471 | } | |
2f4c0a16 | 21472 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21473 | return resultobj; |
21474 | fail: | |
21475 | return NULL; | |
21476 | } | |
21477 | ||
21478 | ||
21479 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21480 | PyObject *resultobj; | |
21481 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21482 | long arg2 ; | |
423f194a | 21483 | bool arg3 = (bool) True ; |
d14a1e28 | 21484 | PyObject * obj0 = 0 ; |
8edf1c75 | 21485 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21486 | PyObject * obj2 = 0 ; |
21487 | char *kwnames[] = { | |
21488 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21489 | }; | |
21490 | ||
8edf1c75 | 21491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21494 | arg2 = (long) SWIG_AsLong(obj1); | |
21495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 21496 | if (obj2) { |
2f4c0a16 RD |
21497 | arg3 = (bool) SWIG_AsBool(obj2); |
21498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21499 | } |
21500 | { | |
21501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21502 | (arg1)->SetSingleStyle(arg2,arg3); | |
21503 | ||
21504 | wxPyEndAllowThreads(__tstate); | |
21505 | if (PyErr_Occurred()) SWIG_fail; | |
21506 | } | |
21507 | Py_INCREF(Py_None); resultobj = Py_None; | |
21508 | return resultobj; | |
21509 | fail: | |
21510 | return NULL; | |
21511 | } | |
21512 | ||
21513 | ||
21514 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21515 | PyObject *resultobj; | |
21516 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21517 | long arg2 ; | |
21518 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21519 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21520 | char *kwnames[] = { |
21521 | (char *) "self",(char *) "style", NULL | |
21522 | }; | |
21523 | ||
8edf1c75 | 21524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21527 | arg2 = (long) SWIG_AsLong(obj1); | |
21528 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21529 | { |
21530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21531 | (arg1)->SetWindowStyleFlag(arg2); | |
21532 | ||
21533 | wxPyEndAllowThreads(__tstate); | |
21534 | if (PyErr_Occurred()) SWIG_fail; | |
21535 | } | |
21536 | Py_INCREF(Py_None); resultobj = Py_None; | |
21537 | return resultobj; | |
21538 | fail: | |
21539 | return NULL; | |
21540 | } | |
21541 | ||
21542 | ||
21543 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21544 | PyObject *resultobj; | |
21545 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21546 | long arg2 ; | |
21547 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21548 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21549 | long result; | |
21550 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21551 | PyObject * obj1 = 0 ; |
21552 | PyObject * obj2 = 0 ; | |
21553 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21554 | char *kwnames[] = { |
21555 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21556 | }; | |
21557 | ||
8edf1c75 | 21558 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21559 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21561 | arg2 = (long) SWIG_AsLong(obj1); | |
21562 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21563 | if (obj2) { |
2f4c0a16 RD |
21564 | arg3 = (int) SWIG_AsInt(obj2); |
21565 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21566 | } |
21567 | if (obj3) { | |
2f4c0a16 RD |
21568 | arg4 = (int) SWIG_AsInt(obj3); |
21569 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21570 | } |
d14a1e28 RD |
21571 | { |
21572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21573 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21574 | ||
21575 | wxPyEndAllowThreads(__tstate); | |
21576 | if (PyErr_Occurred()) SWIG_fail; | |
21577 | } | |
2f4c0a16 | 21578 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21579 | return resultobj; |
21580 | fail: | |
21581 | return NULL; | |
21582 | } | |
21583 | ||
21584 | ||
21585 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21586 | PyObject *resultobj; | |
21587 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21588 | int arg2 ; | |
21589 | wxImageList *result; | |
21590 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21592 | char *kwnames[] = { |
21593 | (char *) "self",(char *) "which", NULL | |
21594 | }; | |
21595 | ||
8edf1c75 | 21596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21599 | arg2 = (int) SWIG_AsInt(obj1); | |
21600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21601 | { |
21602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21603 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21604 | ||
21605 | wxPyEndAllowThreads(__tstate); | |
21606 | if (PyErr_Occurred()) SWIG_fail; | |
21607 | } | |
21608 | { | |
21609 | resultobj = wxPyMake_wxObject(result); | |
21610 | } | |
21611 | return resultobj; | |
21612 | fail: | |
21613 | return NULL; | |
21614 | } | |
21615 | ||
21616 | ||
21617 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21618 | PyObject *resultobj; | |
21619 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21620 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21621 | int arg3 ; | |
21622 | PyObject * obj0 = 0 ; | |
21623 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21624 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21625 | char *kwnames[] = { |
21626 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21627 | }; | |
21628 | ||
8edf1c75 | 21629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21634 | arg3 = (int) SWIG_AsInt(obj2); | |
21635 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21636 | { |
21637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21638 | (arg1)->SetImageList(arg2,arg3); | |
21639 | ||
21640 | wxPyEndAllowThreads(__tstate); | |
21641 | if (PyErr_Occurred()) SWIG_fail; | |
21642 | } | |
21643 | Py_INCREF(Py_None); resultobj = Py_None; | |
21644 | return resultobj; | |
21645 | fail: | |
21646 | return NULL; | |
21647 | } | |
21648 | ||
21649 | ||
21650 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21651 | PyObject *resultobj; | |
21652 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21653 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21654 | int arg3 ; | |
21655 | PyObject * obj0 = 0 ; | |
21656 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21657 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21658 | char *kwnames[] = { |
21659 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21660 | }; | |
21661 | ||
8edf1c75 | 21662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21666 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
21667 | arg3 = (int) SWIG_AsInt(obj2); | |
21668 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21669 | { |
21670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21671 | (arg1)->AssignImageList(arg2,arg3); | |
21672 | ||
21673 | wxPyEndAllowThreads(__tstate); | |
21674 | if (PyErr_Occurred()) SWIG_fail; | |
21675 | } | |
21676 | Py_INCREF(Py_None); resultobj = Py_None; | |
21677 | return resultobj; | |
21678 | fail: | |
21679 | return NULL; | |
21680 | } | |
21681 | ||
21682 | ||
fe763115 RD |
21683 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
21684 | PyObject *resultobj; | |
21685 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21686 | bool result; | |
21687 | PyObject * obj0 = 0 ; | |
21688 | char *kwnames[] = { | |
21689 | (char *) "self", NULL | |
21690 | }; | |
21691 | ||
21692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
21693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21695 | { | |
21696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21697 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
21698 | ||
21699 | wxPyEndAllowThreads(__tstate); | |
21700 | if (PyErr_Occurred()) SWIG_fail; | |
21701 | } | |
4f89f6a3 RD |
21702 | { |
21703 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21704 | } | |
fe763115 RD |
21705 | return resultobj; |
21706 | fail: | |
21707 | return NULL; | |
21708 | } | |
21709 | ||
21710 | ||
d14a1e28 RD |
21711 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
21712 | PyObject *resultobj; | |
21713 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21714 | bool result; | |
21715 | PyObject * obj0 = 0 ; | |
21716 | char *kwnames[] = { | |
21717 | (char *) "self", NULL | |
21718 | }; | |
21719 | ||
21720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21723 | { |
21724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21725 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21726 | ||
21727 | wxPyEndAllowThreads(__tstate); | |
21728 | if (PyErr_Occurred()) SWIG_fail; | |
21729 | } | |
4f89f6a3 RD |
21730 | { |
21731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21732 | } | |
d14a1e28 RD |
21733 | return resultobj; |
21734 | fail: | |
21735 | return NULL; | |
21736 | } | |
21737 | ||
21738 | ||
21739 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21740 | PyObject *resultobj; | |
21741 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21742 | long arg2 ; | |
21743 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21745 | char *kwnames[] = { |
21746 | (char *) "self",(char *) "item", NULL | |
21747 | }; | |
21748 | ||
8edf1c75 | 21749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21752 | arg2 = (long) SWIG_AsLong(obj1); | |
21753 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21754 | { |
21755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21756 | (arg1)->RefreshItem(arg2); | |
21757 | ||
21758 | wxPyEndAllowThreads(__tstate); | |
21759 | if (PyErr_Occurred()) SWIG_fail; | |
21760 | } | |
21761 | Py_INCREF(Py_None); resultobj = Py_None; | |
21762 | return resultobj; | |
21763 | fail: | |
21764 | return NULL; | |
21765 | } | |
21766 | ||
21767 | ||
21768 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21769 | PyObject *resultobj; | |
21770 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21771 | long arg2 ; | |
21772 | long arg3 ; | |
21773 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21774 | PyObject * obj1 = 0 ; |
21775 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21776 | char *kwnames[] = { |
21777 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21778 | }; | |
21779 | ||
8edf1c75 | 21780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21783 | arg2 = (long) SWIG_AsLong(obj1); | |
21784 | if (PyErr_Occurred()) SWIG_fail; | |
21785 | arg3 = (long) SWIG_AsLong(obj2); | |
21786 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21787 | { |
21788 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21789 | (arg1)->RefreshItems(arg2,arg3); | |
21790 | ||
21791 | wxPyEndAllowThreads(__tstate); | |
21792 | if (PyErr_Occurred()) SWIG_fail; | |
21793 | } | |
21794 | Py_INCREF(Py_None); resultobj = Py_None; | |
21795 | return resultobj; | |
21796 | fail: | |
21797 | return NULL; | |
21798 | } | |
21799 | ||
21800 | ||
21801 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21802 | PyObject *resultobj; | |
21803 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21804 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21805 | bool result; | |
21806 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21808 | char *kwnames[] = { |
21809 | (char *) "self",(char *) "flag", NULL | |
21810 | }; | |
21811 | ||
8edf1c75 | 21812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 21815 | if (obj1) { |
2f4c0a16 RD |
21816 | arg2 = (int) SWIG_AsInt(obj1); |
21817 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21818 | } |
d14a1e28 RD |
21819 | { |
21820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21821 | result = (bool)(arg1)->Arrange(arg2); | |
21822 | ||
21823 | wxPyEndAllowThreads(__tstate); | |
21824 | if (PyErr_Occurred()) SWIG_fail; | |
21825 | } | |
4f89f6a3 RD |
21826 | { |
21827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21828 | } | |
d14a1e28 RD |
21829 | return resultobj; |
21830 | fail: | |
21831 | return NULL; | |
21832 | } | |
21833 | ||
21834 | ||
21835 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21836 | PyObject *resultobj; | |
21837 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21838 | long arg2 ; | |
21839 | bool result; | |
21840 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21841 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21842 | char *kwnames[] = { |
21843 | (char *) "self",(char *) "item", NULL | |
21844 | }; | |
21845 | ||
8edf1c75 | 21846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21849 | arg2 = (long) SWIG_AsLong(obj1); | |
21850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21851 | { |
21852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21853 | result = (bool)(arg1)->DeleteItem(arg2); | |
21854 | ||
21855 | wxPyEndAllowThreads(__tstate); | |
21856 | if (PyErr_Occurred()) SWIG_fail; | |
21857 | } | |
4f89f6a3 RD |
21858 | { |
21859 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21860 | } | |
d14a1e28 RD |
21861 | return resultobj; |
21862 | fail: | |
21863 | return NULL; | |
21864 | } | |
21865 | ||
21866 | ||
21867 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21868 | PyObject *resultobj; | |
21869 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21870 | bool result; | |
21871 | PyObject * obj0 = 0 ; | |
21872 | char *kwnames[] = { | |
21873 | (char *) "self", NULL | |
21874 | }; | |
21875 | ||
21876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21879 | { |
21880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21881 | result = (bool)(arg1)->DeleteAllItems(); | |
21882 | ||
21883 | wxPyEndAllowThreads(__tstate); | |
21884 | if (PyErr_Occurred()) SWIG_fail; | |
21885 | } | |
4f89f6a3 RD |
21886 | { |
21887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21888 | } | |
d14a1e28 RD |
21889 | return resultobj; |
21890 | fail: | |
21891 | return NULL; | |
21892 | } | |
21893 | ||
21894 | ||
21895 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21896 | PyObject *resultobj; | |
21897 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21898 | int arg2 ; | |
21899 | bool result; | |
21900 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21902 | char *kwnames[] = { |
21903 | (char *) "self",(char *) "col", NULL | |
21904 | }; | |
21905 | ||
8edf1c75 | 21906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21909 | arg2 = (int) SWIG_AsInt(obj1); | |
21910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21911 | { |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
4f89f6a3 RD |
21918 | { |
21919 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21920 | } | |
d14a1e28 RD |
21921 | return resultobj; |
21922 | fail: | |
21923 | return NULL; | |
21924 | } | |
21925 | ||
21926 | ||
21927 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21928 | PyObject *resultobj; | |
21929 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21930 | bool result; | |
21931 | PyObject * obj0 = 0 ; | |
21932 | char *kwnames[] = { | |
21933 | (char *) "self", NULL | |
21934 | }; | |
21935 | ||
21936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21939 | { |
21940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21941 | result = (bool)(arg1)->DeleteAllColumns(); | |
21942 | ||
21943 | wxPyEndAllowThreads(__tstate); | |
21944 | if (PyErr_Occurred()) SWIG_fail; | |
21945 | } | |
4f89f6a3 RD |
21946 | { |
21947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21948 | } | |
d14a1e28 RD |
21949 | return resultobj; |
21950 | fail: | |
21951 | return NULL; | |
21952 | } | |
21953 | ||
21954 | ||
21955 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21956 | PyObject *resultobj; | |
21957 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21958 | PyObject * obj0 = 0 ; | |
21959 | char *kwnames[] = { | |
21960 | (char *) "self", NULL | |
21961 | }; | |
21962 | ||
21963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21966 | { |
21967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21968 | (arg1)->ClearAll(); | |
21969 | ||
21970 | wxPyEndAllowThreads(__tstate); | |
21971 | if (PyErr_Occurred()) SWIG_fail; | |
21972 | } | |
21973 | Py_INCREF(Py_None); resultobj = Py_None; | |
21974 | return resultobj; | |
21975 | fail: | |
21976 | return NULL; | |
21977 | } | |
21978 | ||
21979 | ||
21980 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21981 | PyObject *resultobj; | |
21982 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21983 | long arg2 ; | |
21984 | wxTextCtrl *result; | |
21985 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21986 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21987 | char *kwnames[] = { |
21988 | (char *) "self",(char *) "item", NULL | |
21989 | }; | |
21990 | ||
8edf1c75 | 21991 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21992 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21993 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21994 | arg2 = (long) SWIG_AsLong(obj1); | |
21995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21996 | { |
21997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21998 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21999 | ||
22000 | wxPyEndAllowThreads(__tstate); | |
22001 | if (PyErr_Occurred()) SWIG_fail; | |
22002 | } | |
22003 | { | |
22004 | resultobj = wxPyMake_wxObject(result); | |
22005 | } | |
22006 | return resultobj; | |
22007 | fail: | |
22008 | return NULL; | |
22009 | } | |
22010 | ||
22011 | ||
22012 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22013 | PyObject *resultobj; | |
22014 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22015 | bool arg2 ; | |
22016 | bool result; | |
22017 | PyObject * obj0 = 0 ; | |
22018 | PyObject * obj1 = 0 ; | |
22019 | char *kwnames[] = { | |
22020 | (char *) "self",(char *) "cancel", NULL | |
22021 | }; | |
22022 | ||
22023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22026 | arg2 = (bool) SWIG_AsBool(obj1); | |
22027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22028 | { |
22029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22030 | result = (bool)(arg1)->EndEditLabel(arg2); | |
22031 | ||
22032 | wxPyEndAllowThreads(__tstate); | |
22033 | if (PyErr_Occurred()) SWIG_fail; | |
22034 | } | |
4f89f6a3 RD |
22035 | { |
22036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22037 | } | |
d14a1e28 RD |
22038 | return resultobj; |
22039 | fail: | |
22040 | return NULL; | |
22041 | } | |
22042 | ||
22043 | ||
22044 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22045 | PyObject *resultobj; | |
22046 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22047 | long arg2 ; | |
22048 | bool result; | |
22049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22051 | char *kwnames[] = { |
22052 | (char *) "self",(char *) "item", NULL | |
22053 | }; | |
22054 | ||
8edf1c75 | 22055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22058 | arg2 = (long) SWIG_AsLong(obj1); | |
22059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22060 | { |
22061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22062 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22063 | ||
22064 | wxPyEndAllowThreads(__tstate); | |
22065 | if (PyErr_Occurred()) SWIG_fail; | |
22066 | } | |
4f89f6a3 RD |
22067 | { |
22068 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22069 | } | |
d14a1e28 RD |
22070 | return resultobj; |
22071 | fail: | |
22072 | return NULL; | |
22073 | } | |
22074 | ||
22075 | ||
22076 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22077 | PyObject *resultobj; | |
22078 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22079 | long arg2 ; | |
22080 | wxString *arg3 = 0 ; | |
423f194a | 22081 | bool arg4 = (bool) False ; |
d14a1e28 | 22082 | long result; |
423f194a | 22083 | bool temp3 = False ; |
d14a1e28 | 22084 | PyObject * obj0 = 0 ; |
8edf1c75 | 22085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22086 | PyObject * obj2 = 0 ; |
22087 | PyObject * obj3 = 0 ; | |
22088 | char *kwnames[] = { | |
22089 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22090 | }; | |
22091 | ||
8edf1c75 | 22092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22095 | arg2 = (long) SWIG_AsLong(obj1); | |
22096 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22097 | { |
22098 | arg3 = wxString_in_helper(obj2); | |
22099 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22100 | temp3 = True; |
d14a1e28 RD |
22101 | } |
22102 | if (obj3) { | |
2f4c0a16 RD |
22103 | arg4 = (bool) SWIG_AsBool(obj3); |
22104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22105 | } |
22106 | { | |
22107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22108 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22109 | ||
22110 | wxPyEndAllowThreads(__tstate); | |
22111 | if (PyErr_Occurred()) SWIG_fail; | |
22112 | } | |
2f4c0a16 | 22113 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22114 | { |
22115 | if (temp3) | |
22116 | delete arg3; | |
22117 | } | |
22118 | return resultobj; | |
22119 | fail: | |
22120 | { | |
22121 | if (temp3) | |
22122 | delete arg3; | |
22123 | } | |
22124 | return NULL; | |
22125 | } | |
22126 | ||
22127 | ||
22128 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22129 | PyObject *resultobj; | |
22130 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22131 | long arg2 ; | |
22132 | long arg3 ; | |
22133 | long result; | |
22134 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22135 | PyObject * obj1 = 0 ; |
22136 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22137 | char *kwnames[] = { |
22138 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22139 | }; | |
22140 | ||
8edf1c75 | 22141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22144 | arg2 = (long) SWIG_AsLong(obj1); | |
22145 | if (PyErr_Occurred()) SWIG_fail; | |
22146 | arg3 = (long) SWIG_AsLong(obj2); | |
22147 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22148 | { |
22149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22150 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22151 | ||
22152 | wxPyEndAllowThreads(__tstate); | |
22153 | if (PyErr_Occurred()) SWIG_fail; | |
22154 | } | |
2f4c0a16 | 22155 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22156 | return resultobj; |
22157 | fail: | |
22158 | return NULL; | |
22159 | } | |
22160 | ||
22161 | ||
22162 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22163 | PyObject *resultobj; | |
22164 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22165 | long arg2 ; | |
22166 | wxPoint *arg3 = 0 ; | |
22167 | int arg4 ; | |
22168 | long result; | |
22169 | wxPoint temp3 ; | |
22170 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22171 | PyObject * obj1 = 0 ; |
d14a1e28 | 22172 | PyObject * obj2 = 0 ; |
8edf1c75 | 22173 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22174 | char *kwnames[] = { |
22175 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22176 | }; | |
22177 | ||
8edf1c75 | 22178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22181 | arg2 = (long) SWIG_AsLong(obj1); | |
22182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22183 | { |
22184 | arg3 = &temp3; | |
22185 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22186 | } | |
2f4c0a16 RD |
22187 | arg4 = (int) SWIG_AsInt(obj3); |
22188 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22189 | { |
22190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22191 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22192 | ||
22193 | wxPyEndAllowThreads(__tstate); | |
22194 | if (PyErr_Occurred()) SWIG_fail; | |
22195 | } | |
2f4c0a16 | 22196 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22197 | return resultobj; |
22198 | fail: | |
22199 | return NULL; | |
22200 | } | |
22201 | ||
22202 | ||
22203 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22204 | PyObject *resultobj; | |
22205 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22206 | wxPoint *arg2 = 0 ; | |
22207 | int *arg3 = 0 ; | |
22208 | long result; | |
22209 | wxPoint temp2 ; | |
22210 | int temp3 ; | |
22211 | PyObject * obj0 = 0 ; | |
22212 | PyObject * obj1 = 0 ; | |
22213 | char *kwnames[] = { | |
22214 | (char *) "self",(char *) "point", NULL | |
22215 | }; | |
22216 | ||
22217 | arg3 = &temp3; | |
22218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22221 | { |
22222 | arg2 = &temp2; | |
22223 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22224 | } | |
22225 | { | |
22226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22227 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22228 | ||
22229 | wxPyEndAllowThreads(__tstate); | |
22230 | if (PyErr_Occurred()) SWIG_fail; | |
22231 | } | |
2f4c0a16 | 22232 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22233 | { |
22234 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22235 | resultobj = t_output_helper(resultobj,o); | |
22236 | } | |
22237 | return resultobj; | |
22238 | fail: | |
22239 | return NULL; | |
22240 | } | |
22241 | ||
22242 | ||
22243 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22244 | PyObject *resultobj; | |
22245 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22246 | wxListItem *arg2 = 0 ; | |
22247 | long result; | |
22248 | PyObject * obj0 = 0 ; | |
22249 | PyObject * obj1 = 0 ; | |
22250 | char *kwnames[] = { | |
22251 | (char *) "self",(char *) "info", NULL | |
22252 | }; | |
22253 | ||
22254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22255 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22256 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22257 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22258 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22259 | SWIG_fail; | |
d14a1e28 | 22260 | if (arg2 == NULL) { |
2f4c0a16 RD |
22261 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22262 | SWIG_fail; | |
d14a1e28 RD |
22263 | } |
22264 | { | |
22265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22266 | result = (long)(arg1)->InsertItem(*arg2); | |
22267 | ||
22268 | wxPyEndAllowThreads(__tstate); | |
22269 | if (PyErr_Occurred()) SWIG_fail; | |
22270 | } | |
2f4c0a16 | 22271 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22272 | return resultobj; |
22273 | fail: | |
22274 | return NULL; | |
22275 | } | |
22276 | ||
22277 | ||
22278 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22279 | PyObject *resultobj; | |
22280 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22281 | long arg2 ; | |
22282 | wxString *arg3 = 0 ; | |
22283 | long result; | |
423f194a | 22284 | bool temp3 = False ; |
d14a1e28 | 22285 | PyObject * obj0 = 0 ; |
8edf1c75 | 22286 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22287 | PyObject * obj2 = 0 ; |
22288 | char *kwnames[] = { | |
22289 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22290 | }; | |
22291 | ||
8edf1c75 | 22292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22295 | arg2 = (long) SWIG_AsLong(obj1); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22297 | { |
22298 | arg3 = wxString_in_helper(obj2); | |
22299 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22300 | temp3 = True; |
d14a1e28 RD |
22301 | } |
22302 | { | |
22303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22304 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22305 | ||
22306 | wxPyEndAllowThreads(__tstate); | |
22307 | if (PyErr_Occurred()) SWIG_fail; | |
22308 | } | |
2f4c0a16 | 22309 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22310 | { |
22311 | if (temp3) | |
22312 | delete arg3; | |
22313 | } | |
22314 | return resultobj; | |
22315 | fail: | |
22316 | { | |
22317 | if (temp3) | |
22318 | delete arg3; | |
22319 | } | |
22320 | return NULL; | |
22321 | } | |
22322 | ||
22323 | ||
22324 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22325 | PyObject *resultobj; | |
22326 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22327 | long arg2 ; | |
22328 | int arg3 ; | |
22329 | long result; | |
22330 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22331 | PyObject * obj1 = 0 ; |
22332 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22333 | char *kwnames[] = { |
22334 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22335 | }; | |
22336 | ||
8edf1c75 | 22337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22340 | arg2 = (long) SWIG_AsLong(obj1); | |
22341 | if (PyErr_Occurred()) SWIG_fail; | |
22342 | arg3 = (int) SWIG_AsInt(obj2); | |
22343 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22344 | { |
22345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22346 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22347 | ||
22348 | wxPyEndAllowThreads(__tstate); | |
22349 | if (PyErr_Occurred()) SWIG_fail; | |
22350 | } | |
2f4c0a16 | 22351 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22352 | return resultobj; |
22353 | fail: | |
22354 | return NULL; | |
22355 | } | |
22356 | ||
22357 | ||
22358 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22359 | PyObject *resultobj; | |
22360 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22361 | long arg2 ; | |
22362 | wxString *arg3 = 0 ; | |
22363 | int arg4 ; | |
22364 | long result; | |
423f194a | 22365 | bool temp3 = False ; |
d14a1e28 | 22366 | PyObject * obj0 = 0 ; |
8edf1c75 | 22367 | PyObject * obj1 = 0 ; |
d14a1e28 | 22368 | PyObject * obj2 = 0 ; |
8edf1c75 | 22369 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22370 | char *kwnames[] = { |
22371 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22372 | }; | |
22373 | ||
8edf1c75 | 22374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22377 | arg2 = (long) SWIG_AsLong(obj1); | |
22378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22379 | { |
22380 | arg3 = wxString_in_helper(obj2); | |
22381 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22382 | temp3 = True; |
d14a1e28 | 22383 | } |
2f4c0a16 RD |
22384 | arg4 = (int) SWIG_AsInt(obj3); |
22385 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22386 | { |
22387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22388 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22389 | ||
22390 | wxPyEndAllowThreads(__tstate); | |
22391 | if (PyErr_Occurred()) SWIG_fail; | |
22392 | } | |
2f4c0a16 | 22393 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22394 | { |
22395 | if (temp3) | |
22396 | delete arg3; | |
22397 | } | |
22398 | return resultobj; | |
22399 | fail: | |
22400 | { | |
22401 | if (temp3) | |
22402 | delete arg3; | |
22403 | } | |
22404 | return NULL; | |
22405 | } | |
22406 | ||
22407 | ||
22408 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22409 | PyObject *resultobj; | |
22410 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22411 | long arg2 ; | |
22412 | wxListItem *arg3 = 0 ; | |
22413 | long result; | |
22414 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22416 | PyObject * obj2 = 0 ; |
22417 | char *kwnames[] = { | |
22418 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22419 | }; | |
22420 | ||
8edf1c75 | 22421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22424 | arg2 = (long) SWIG_AsLong(obj1); | |
22425 | if (PyErr_Occurred()) SWIG_fail; | |
22426 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22428 | SWIG_fail; | |
d14a1e28 | 22429 | if (arg3 == NULL) { |
2f4c0a16 RD |
22430 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22431 | SWIG_fail; | |
d14a1e28 RD |
22432 | } |
22433 | { | |
22434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22435 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22436 | ||
22437 | wxPyEndAllowThreads(__tstate); | |
22438 | if (PyErr_Occurred()) SWIG_fail; | |
22439 | } | |
2f4c0a16 | 22440 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22441 | return resultobj; |
22442 | fail: | |
22443 | return NULL; | |
22444 | } | |
22445 | ||
22446 | ||
22447 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22448 | PyObject *resultobj; | |
22449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22450 | long arg2 ; | |
22451 | wxString *arg3 = 0 ; | |
22452 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22453 | int arg5 = (int) -1 ; | |
22454 | long result; | |
423f194a | 22455 | bool temp3 = False ; |
d14a1e28 | 22456 | PyObject * obj0 = 0 ; |
8edf1c75 | 22457 | PyObject * obj1 = 0 ; |
d14a1e28 | 22458 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22459 | PyObject * obj3 = 0 ; |
22460 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22461 | char *kwnames[] = { |
22462 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22463 | }; | |
22464 | ||
8edf1c75 | 22465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22468 | arg2 = (long) SWIG_AsLong(obj1); | |
22469 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22470 | { |
22471 | arg3 = wxString_in_helper(obj2); | |
22472 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22473 | temp3 = True; |
d14a1e28 | 22474 | } |
8edf1c75 | 22475 | if (obj3) { |
2f4c0a16 RD |
22476 | arg4 = (int) SWIG_AsInt(obj3); |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22478 | } |
22479 | if (obj4) { | |
2f4c0a16 RD |
22480 | arg5 = (int) SWIG_AsInt(obj4); |
22481 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22482 | } |
d14a1e28 RD |
22483 | { |
22484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22485 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22486 | ||
22487 | wxPyEndAllowThreads(__tstate); | |
22488 | if (PyErr_Occurred()) SWIG_fail; | |
22489 | } | |
2f4c0a16 | 22490 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22491 | { |
22492 | if (temp3) | |
22493 | delete arg3; | |
22494 | } | |
22495 | return resultobj; | |
22496 | fail: | |
22497 | { | |
22498 | if (temp3) | |
22499 | delete arg3; | |
22500 | } | |
22501 | return NULL; | |
22502 | } | |
22503 | ||
22504 | ||
22505 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22506 | PyObject *resultobj; | |
22507 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22508 | long arg2 ; | |
22509 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22511 | char *kwnames[] = { |
22512 | (char *) "self",(char *) "count", NULL | |
22513 | }; | |
22514 | ||
8edf1c75 | 22515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22518 | arg2 = (long) SWIG_AsLong(obj1); | |
22519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22520 | { |
22521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22522 | (arg1)->SetItemCount(arg2); | |
22523 | ||
22524 | wxPyEndAllowThreads(__tstate); | |
22525 | if (PyErr_Occurred()) SWIG_fail; | |
22526 | } | |
22527 | Py_INCREF(Py_None); resultobj = Py_None; | |
22528 | return resultobj; | |
22529 | fail: | |
22530 | return NULL; | |
22531 | } | |
22532 | ||
22533 | ||
22534 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22535 | PyObject *resultobj; | |
22536 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22537 | int arg2 ; | |
22538 | int arg3 ; | |
22539 | bool result; | |
22540 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22541 | PyObject * obj1 = 0 ; |
22542 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22543 | char *kwnames[] = { |
22544 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22545 | }; | |
22546 | ||
8edf1c75 | 22547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22550 | arg2 = (int) SWIG_AsInt(obj1); | |
22551 | if (PyErr_Occurred()) SWIG_fail; | |
22552 | arg3 = (int) SWIG_AsInt(obj2); | |
22553 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22554 | { |
22555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22556 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22557 | ||
22558 | wxPyEndAllowThreads(__tstate); | |
22559 | if (PyErr_Occurred()) SWIG_fail; | |
22560 | } | |
4f89f6a3 RD |
22561 | { |
22562 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22563 | } | |
d14a1e28 RD |
22564 | return resultobj; |
22565 | fail: | |
22566 | return NULL; | |
22567 | } | |
22568 | ||
22569 | ||
22570 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22571 | PyObject *resultobj; | |
22572 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22573 | long arg2 ; | |
22574 | wxColour *arg3 = 0 ; | |
22575 | wxColour temp3 ; | |
22576 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22578 | PyObject * obj2 = 0 ; |
22579 | char *kwnames[] = { | |
22580 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22581 | }; | |
22582 | ||
8edf1c75 | 22583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22586 | arg2 = (long) SWIG_AsLong(obj1); | |
22587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22588 | { |
22589 | arg3 = &temp3; | |
22590 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22591 | } | |
22592 | { | |
22593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22594 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22595 | ||
22596 | wxPyEndAllowThreads(__tstate); | |
22597 | if (PyErr_Occurred()) SWIG_fail; | |
22598 | } | |
22599 | Py_INCREF(Py_None); resultobj = Py_None; | |
22600 | return resultobj; | |
22601 | fail: | |
22602 | return NULL; | |
22603 | } | |
22604 | ||
22605 | ||
22606 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22607 | PyObject *resultobj; | |
22608 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22609 | long arg2 ; | |
22610 | wxColour result; | |
22611 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22612 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22613 | char *kwnames[] = { |
22614 | (char *) "self",(char *) "item", NULL | |
22615 | }; | |
22616 | ||
8edf1c75 | 22617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22620 | arg2 = (long) SWIG_AsLong(obj1); | |
22621 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22622 | { |
22623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22624 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22625 | ||
22626 | wxPyEndAllowThreads(__tstate); | |
22627 | if (PyErr_Occurred()) SWIG_fail; | |
22628 | } | |
22629 | { | |
22630 | wxColour * resultptr; | |
22631 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22633 | } |
22634 | return resultobj; | |
22635 | fail: | |
22636 | return NULL; | |
22637 | } | |
22638 | ||
22639 | ||
22640 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22641 | PyObject *resultobj; | |
22642 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22643 | long arg2 ; | |
22644 | wxColour *arg3 = 0 ; | |
22645 | wxColour temp3 ; | |
22646 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22647 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22648 | PyObject * obj2 = 0 ; |
22649 | char *kwnames[] = { | |
22650 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22651 | }; | |
22652 | ||
8edf1c75 | 22653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22656 | arg2 = (long) SWIG_AsLong(obj1); | |
22657 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22658 | { |
22659 | arg3 = &temp3; | |
22660 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22661 | } | |
22662 | { | |
22663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22664 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22665 | ||
22666 | wxPyEndAllowThreads(__tstate); | |
22667 | if (PyErr_Occurred()) SWIG_fail; | |
22668 | } | |
22669 | Py_INCREF(Py_None); resultobj = Py_None; | |
22670 | return resultobj; | |
22671 | fail: | |
22672 | return NULL; | |
22673 | } | |
22674 | ||
22675 | ||
22676 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22677 | PyObject *resultobj; | |
22678 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22679 | long arg2 ; | |
22680 | wxColour result; | |
22681 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22682 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22683 | char *kwnames[] = { |
22684 | (char *) "self",(char *) "item", NULL | |
22685 | }; | |
22686 | ||
8edf1c75 | 22687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22690 | arg2 = (long) SWIG_AsLong(obj1); | |
22691 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22692 | { |
22693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22694 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22695 | ||
22696 | wxPyEndAllowThreads(__tstate); | |
22697 | if (PyErr_Occurred()) SWIG_fail; | |
22698 | } | |
22699 | { | |
22700 | wxColour * resultptr; | |
22701 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22702 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22703 | } |
22704 | return resultobj; | |
22705 | fail: | |
22706 | return NULL; | |
22707 | } | |
22708 | ||
22709 | ||
22710 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22711 | PyObject *resultobj; | |
22712 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22713 | PyObject *arg2 = (PyObject *) 0 ; | |
22714 | bool result; | |
22715 | PyObject * obj0 = 0 ; | |
22716 | PyObject * obj1 = 0 ; | |
22717 | char *kwnames[] = { | |
22718 | (char *) "self",(char *) "func", NULL | |
22719 | }; | |
22720 | ||
22721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22724 | arg2 = obj1; |
22725 | { | |
22726 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22727 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22728 | ||
22729 | wxPyEndAllowThreads(__tstate); | |
22730 | if (PyErr_Occurred()) SWIG_fail; | |
22731 | } | |
4f89f6a3 RD |
22732 | { |
22733 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22734 | } | |
d14a1e28 RD |
22735 | return resultobj; |
22736 | fail: | |
22737 | return NULL; | |
22738 | } | |
22739 | ||
22740 | ||
22741 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22742 | PyObject *resultobj; | |
22743 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22744 | wxWindow *result; | |
22745 | PyObject * obj0 = 0 ; | |
22746 | char *kwnames[] = { | |
22747 | (char *) "self", NULL | |
22748 | }; | |
22749 | ||
22750 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22751 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22752 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22753 | { |
22754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22755 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22756 | ||
22757 | wxPyEndAllowThreads(__tstate); | |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
22759 | } | |
22760 | { | |
22761 | resultobj = wxPyMake_wxObject(result); | |
22762 | } | |
22763 | return resultobj; | |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
74a57fcd RD |
22769 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
22770 | PyObject *resultobj; | |
22771 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
22772 | wxVisualAttributes result; | |
22773 | PyObject * obj0 = 0 ; | |
22774 | char *kwnames[] = { | |
22775 | (char *) "variant", NULL | |
22776 | }; | |
22777 | ||
22778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
22779 | if (obj0) { | |
22780 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
22781 | if (PyErr_Occurred()) SWIG_fail; | |
22782 | } | |
22783 | { | |
22784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22785 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
22786 | ||
22787 | wxPyEndAllowThreads(__tstate); | |
22788 | if (PyErr_Occurred()) SWIG_fail; | |
22789 | } | |
22790 | { | |
22791 | wxVisualAttributes * resultptr; | |
22792 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
22793 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
22794 | } | |
22795 | return resultobj; | |
22796 | fail: | |
22797 | return NULL; | |
22798 | } | |
22799 | ||
22800 | ||
d14a1e28 RD |
22801 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { |
22802 | PyObject *obj; | |
22803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22804 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22805 | Py_INCREF(obj); | |
22806 | return Py_BuildValue((char *)""); | |
22807 | } | |
22808 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22809 | PyObject *resultobj; | |
22810 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22811 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22812 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22813 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22814 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22815 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22816 | long arg5 = (long) wxLC_REPORT ; | |
22817 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22818 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22819 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22820 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22821 | wxListView *result; | |
22822 | wxPoint temp3 ; | |
22823 | wxSize temp4 ; | |
423f194a | 22824 | bool temp7 = False ; |
d14a1e28 | 22825 | PyObject * obj0 = 0 ; |
8edf1c75 | 22826 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22827 | PyObject * obj2 = 0 ; |
22828 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22829 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22830 | PyObject * obj5 = 0 ; |
22831 | PyObject * obj6 = 0 ; | |
22832 | char *kwnames[] = { | |
22833 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22834 | }; | |
22835 | ||
8edf1c75 | 22836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22839 | if (obj1) { |
2f4c0a16 RD |
22840 | arg2 = (int) SWIG_AsInt(obj1); |
22841 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22842 | } |
d14a1e28 RD |
22843 | if (obj2) { |
22844 | { | |
22845 | arg3 = &temp3; | |
22846 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22847 | } | |
22848 | } | |
22849 | if (obj3) { | |
22850 | { | |
22851 | arg4 = &temp4; | |
22852 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22853 | } | |
22854 | } | |
8edf1c75 | 22855 | if (obj4) { |
2f4c0a16 RD |
22856 | arg5 = (long) SWIG_AsLong(obj4); |
22857 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22858 | } |
d14a1e28 | 22859 | if (obj5) { |
2f4c0a16 RD |
22860 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
22861 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22862 | SWIG_fail; | |
d14a1e28 | 22863 | if (arg6 == NULL) { |
2f4c0a16 RD |
22864 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22865 | SWIG_fail; | |
d14a1e28 RD |
22866 | } |
22867 | } | |
22868 | if (obj6) { | |
22869 | { | |
22870 | arg7 = wxString_in_helper(obj6); | |
22871 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22872 | temp7 = True; |
d14a1e28 RD |
22873 | } |
22874 | } | |
22875 | { | |
22876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22877 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22878 | ||
22879 | wxPyEndAllowThreads(__tstate); | |
22880 | if (PyErr_Occurred()) SWIG_fail; | |
22881 | } | |
2f4c0a16 | 22882 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22883 | { |
22884 | if (temp7) | |
22885 | delete arg7; | |
22886 | } | |
22887 | return resultobj; | |
22888 | fail: | |
22889 | { | |
22890 | if (temp7) | |
22891 | delete arg7; | |
22892 | } | |
22893 | return NULL; | |
22894 | } | |
22895 | ||
22896 | ||
22897 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22898 | PyObject *resultobj; | |
22899 | wxListView *result; | |
22900 | char *kwnames[] = { | |
22901 | NULL | |
22902 | }; | |
22903 | ||
22904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22905 | { | |
22906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22907 | result = (wxListView *)new wxListView(); | |
22908 | ||
22909 | wxPyEndAllowThreads(__tstate); | |
22910 | if (PyErr_Occurred()) SWIG_fail; | |
22911 | } | |
2f4c0a16 | 22912 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22913 | return resultobj; |
22914 | fail: | |
22915 | return NULL; | |
22916 | } | |
22917 | ||
22918 | ||
22919 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22920 | PyObject *resultobj; | |
22921 | wxListView *arg1 = (wxListView *) 0 ; | |
22922 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22923 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22924 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22925 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22926 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22927 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22928 | long arg6 = (long) wxLC_REPORT ; | |
22929 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22930 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22931 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22932 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22933 | bool result; | |
22934 | wxPoint temp4 ; | |
22935 | wxSize temp5 ; | |
423f194a | 22936 | bool temp8 = False ; |
d14a1e28 RD |
22937 | PyObject * obj0 = 0 ; |
22938 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22939 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22940 | PyObject * obj3 = 0 ; |
22941 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22942 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22943 | PyObject * obj6 = 0 ; |
22944 | PyObject * obj7 = 0 ; | |
22945 | char *kwnames[] = { | |
22946 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22947 | }; | |
22948 | ||
8edf1c75 | 22949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
22950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
22951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22952 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22954 | if (obj2) { |
2f4c0a16 RD |
22955 | arg3 = (int) SWIG_AsInt(obj2); |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22957 | } |
d14a1e28 RD |
22958 | if (obj3) { |
22959 | { | |
22960 | arg4 = &temp4; | |
22961 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22962 | } | |
22963 | } | |
22964 | if (obj4) { | |
22965 | { | |
22966 | arg5 = &temp5; | |
22967 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22968 | } | |
22969 | } | |
8edf1c75 | 22970 | if (obj5) { |
2f4c0a16 RD |
22971 | arg6 = (long) SWIG_AsLong(obj5); |
22972 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22973 | } |
d14a1e28 | 22974 | if (obj6) { |
2f4c0a16 RD |
22975 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
22976 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22977 | SWIG_fail; | |
d14a1e28 | 22978 | if (arg7 == NULL) { |
2f4c0a16 RD |
22979 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22980 | SWIG_fail; | |
d14a1e28 RD |
22981 | } |
22982 | } | |
22983 | if (obj7) { | |
22984 | { | |
22985 | arg8 = wxString_in_helper(obj7); | |
22986 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22987 | temp8 = True; |
d14a1e28 RD |
22988 | } |
22989 | } | |
22990 | { | |
22991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22992 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22993 | ||
22994 | wxPyEndAllowThreads(__tstate); | |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
22996 | } | |
4f89f6a3 RD |
22997 | { |
22998 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22999 | } | |
d14a1e28 RD |
23000 | { |
23001 | if (temp8) | |
23002 | delete arg8; | |
23003 | } | |
23004 | return resultobj; | |
23005 | fail: | |
23006 | { | |
23007 | if (temp8) | |
23008 | delete arg8; | |
23009 | } | |
23010 | return NULL; | |
23011 | } | |
23012 | ||
23013 | ||
23014 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23015 | PyObject *resultobj; | |
23016 | wxListView *arg1 = (wxListView *) 0 ; | |
23017 | long arg2 ; | |
423f194a | 23018 | bool arg3 = (bool) True ; |
d14a1e28 | 23019 | PyObject * obj0 = 0 ; |
8edf1c75 | 23020 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23021 | PyObject * obj2 = 0 ; |
23022 | char *kwnames[] = { | |
23023 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23024 | }; | |
23025 | ||
8edf1c75 | 23026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23029 | arg2 = (long) SWIG_AsLong(obj1); | |
23030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 23031 | if (obj2) { |
2f4c0a16 RD |
23032 | arg3 = (bool) SWIG_AsBool(obj2); |
23033 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23034 | } |
23035 | { | |
23036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23037 | (arg1)->Select(arg2,arg3); | |
23038 | ||
23039 | wxPyEndAllowThreads(__tstate); | |
23040 | if (PyErr_Occurred()) SWIG_fail; | |
23041 | } | |
23042 | Py_INCREF(Py_None); resultobj = Py_None; | |
23043 | return resultobj; | |
23044 | fail: | |
23045 | return NULL; | |
23046 | } | |
23047 | ||
23048 | ||
23049 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23050 | PyObject *resultobj; | |
23051 | wxListView *arg1 = (wxListView *) 0 ; | |
23052 | long arg2 ; | |
23053 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23054 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23055 | char *kwnames[] = { |
23056 | (char *) "self",(char *) "index", NULL | |
23057 | }; | |
23058 | ||
2f4c0a16 RD |
23059 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
23060 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23061 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23062 | arg2 = (long) SWIG_AsLong(obj1); | |
23063 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23064 | { |
23065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23066 | (arg1)->Focus(arg2); | |
23067 | ||
23068 | wxPyEndAllowThreads(__tstate); | |
23069 | if (PyErr_Occurred()) SWIG_fail; | |
23070 | } | |
23071 | Py_INCREF(Py_None); resultobj = Py_None; | |
23072 | return resultobj; | |
23073 | fail: | |
23074 | return NULL; | |
23075 | } | |
23076 | ||
23077 | ||
23078 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23079 | PyObject *resultobj; | |
23080 | wxListView *arg1 = (wxListView *) 0 ; | |
23081 | long result; | |
23082 | PyObject * obj0 = 0 ; | |
23083 | char *kwnames[] = { | |
23084 | (char *) "self", NULL | |
23085 | }; | |
23086 | ||
23087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23090 | { |
23091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23092 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23093 | ||
23094 | wxPyEndAllowThreads(__tstate); | |
23095 | if (PyErr_Occurred()) SWIG_fail; | |
23096 | } | |
2f4c0a16 | 23097 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23098 | return resultobj; |
23099 | fail: | |
23100 | return NULL; | |
23101 | } | |
23102 | ||
23103 | ||
23104 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23105 | PyObject *resultobj; | |
23106 | wxListView *arg1 = (wxListView *) 0 ; | |
23107 | long arg2 ; | |
23108 | long result; | |
23109 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23110 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23111 | char *kwnames[] = { |
23112 | (char *) "self",(char *) "item", NULL | |
23113 | }; | |
23114 | ||
8edf1c75 | 23115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23118 | arg2 = (long) SWIG_AsLong(obj1); | |
23119 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23120 | { |
23121 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23122 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23123 | ||
23124 | wxPyEndAllowThreads(__tstate); | |
23125 | if (PyErr_Occurred()) SWIG_fail; | |
23126 | } | |
2f4c0a16 | 23127 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23128 | return resultobj; |
23129 | fail: | |
23130 | return NULL; | |
23131 | } | |
23132 | ||
23133 | ||
23134 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23135 | PyObject *resultobj; | |
23136 | wxListView *arg1 = (wxListView *) 0 ; | |
23137 | long result; | |
23138 | PyObject * obj0 = 0 ; | |
23139 | char *kwnames[] = { | |
23140 | (char *) "self", NULL | |
23141 | }; | |
23142 | ||
23143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23146 | { |
23147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23148 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23149 | ||
23150 | wxPyEndAllowThreads(__tstate); | |
23151 | if (PyErr_Occurred()) SWIG_fail; | |
23152 | } | |
2f4c0a16 | 23153 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23154 | return resultobj; |
23155 | fail: | |
23156 | return NULL; | |
23157 | } | |
23158 | ||
23159 | ||
23160 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23161 | PyObject *resultobj; | |
23162 | wxListView *arg1 = (wxListView *) 0 ; | |
23163 | long arg2 ; | |
23164 | bool result; | |
23165 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23166 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23167 | char *kwnames[] = { |
23168 | (char *) "self",(char *) "index", NULL | |
23169 | }; | |
23170 | ||
8edf1c75 | 23171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23174 | arg2 = (long) SWIG_AsLong(obj1); | |
23175 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23176 | { |
23177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23178 | result = (bool)(arg1)->IsSelected(arg2); | |
23179 | ||
23180 | wxPyEndAllowThreads(__tstate); | |
23181 | if (PyErr_Occurred()) SWIG_fail; | |
23182 | } | |
4f89f6a3 RD |
23183 | { |
23184 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23185 | } | |
d14a1e28 RD |
23186 | return resultobj; |
23187 | fail: | |
23188 | return NULL; | |
23189 | } | |
23190 | ||
23191 | ||
23192 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23193 | PyObject *resultobj; | |
23194 | wxListView *arg1 = (wxListView *) 0 ; | |
23195 | int arg2 ; | |
23196 | int arg3 ; | |
23197 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23198 | PyObject * obj1 = 0 ; |
23199 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23200 | char *kwnames[] = { |
23201 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23202 | }; | |
23203 | ||
8edf1c75 | 23204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23207 | arg2 = (int) SWIG_AsInt(obj1); | |
23208 | if (PyErr_Occurred()) SWIG_fail; | |
23209 | arg3 = (int) SWIG_AsInt(obj2); | |
23210 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23211 | { |
23212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23213 | (arg1)->SetColumnImage(arg2,arg3); | |
23214 | ||
23215 | wxPyEndAllowThreads(__tstate); | |
23216 | if (PyErr_Occurred()) SWIG_fail; | |
23217 | } | |
23218 | Py_INCREF(Py_None); resultobj = Py_None; | |
23219 | return resultobj; | |
23220 | fail: | |
23221 | return NULL; | |
23222 | } | |
23223 | ||
23224 | ||
23225 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23226 | PyObject *resultobj; | |
23227 | wxListView *arg1 = (wxListView *) 0 ; | |
23228 | int arg2 ; | |
23229 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23231 | char *kwnames[] = { |
23232 | (char *) "self",(char *) "col", NULL | |
23233 | }; | |
23234 | ||
8edf1c75 | 23235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23238 | arg2 = (int) SWIG_AsInt(obj1); | |
23239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23240 | { |
23241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23242 | (arg1)->ClearColumnImage(arg2); | |
23243 | ||
23244 | wxPyEndAllowThreads(__tstate); | |
23245 | if (PyErr_Occurred()) SWIG_fail; | |
23246 | } | |
23247 | Py_INCREF(Py_None); resultobj = Py_None; | |
23248 | return resultobj; | |
23249 | fail: | |
23250 | return NULL; | |
23251 | } | |
23252 | ||
23253 | ||
23254 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23255 | PyObject *obj; | |
23256 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23257 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23258 | Py_INCREF(obj); | |
23259 | return Py_BuildValue((char *)""); | |
23260 | } | |
2f4c0a16 | 23261 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
23262 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
23263 | return 1; | |
23264 | } | |
23265 | ||
23266 | ||
23267 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23268 | PyObject *pyobj; | |
23269 | ||
23270 | { | |
23271 | #if wxUSE_UNICODE | |
23272 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23273 | #else | |
23274 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23275 | #endif | |
23276 | } | |
23277 | return pyobj; | |
23278 | } | |
23279 | ||
23280 | ||
d14a1e28 RD |
23281 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
23282 | PyObject *resultobj; | |
23283 | wxTreeItemId *result; | |
23284 | char *kwnames[] = { | |
23285 | NULL | |
23286 | }; | |
23287 | ||
23288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23289 | { | |
23290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23291 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23292 | ||
23293 | wxPyEndAllowThreads(__tstate); | |
23294 | if (PyErr_Occurred()) SWIG_fail; | |
23295 | } | |
2f4c0a16 | 23296 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23297 | return resultobj; |
23298 | fail: | |
23299 | return NULL; | |
23300 | } | |
23301 | ||
23302 | ||
23303 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23304 | PyObject *resultobj; | |
23305 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23306 | PyObject * obj0 = 0 ; | |
23307 | char *kwnames[] = { | |
23308 | (char *) "self", NULL | |
23309 | }; | |
23310 | ||
23311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23314 | { |
23315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23316 | delete arg1; | |
23317 | ||
23318 | wxPyEndAllowThreads(__tstate); | |
23319 | if (PyErr_Occurred()) SWIG_fail; | |
23320 | } | |
23321 | Py_INCREF(Py_None); resultobj = Py_None; | |
23322 | return resultobj; | |
23323 | fail: | |
23324 | return NULL; | |
23325 | } | |
23326 | ||
23327 | ||
23328 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23329 | PyObject *resultobj; | |
23330 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23331 | bool result; | |
23332 | PyObject * obj0 = 0 ; | |
23333 | char *kwnames[] = { | |
23334 | (char *) "self", NULL | |
23335 | }; | |
23336 | ||
23337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23340 | { |
23341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23342 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23343 | ||
23344 | wxPyEndAllowThreads(__tstate); | |
23345 | if (PyErr_Occurred()) SWIG_fail; | |
23346 | } | |
4f89f6a3 RD |
23347 | { |
23348 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23349 | } | |
d14a1e28 RD |
23350 | return resultobj; |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23359 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23360 | bool result; | |
23361 | PyObject * obj0 = 0 ; | |
23362 | PyObject * obj1 = 0 ; | |
23363 | char *kwnames[] = { | |
23364 | (char *) "self",(char *) "other", NULL | |
23365 | }; | |
23366 | ||
23367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23370 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23371 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23372 | { |
23373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23374 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23375 | |
23376 | wxPyEndAllowThreads(__tstate); | |
23377 | if (PyErr_Occurred()) SWIG_fail; | |
23378 | } | |
4f89f6a3 RD |
23379 | { |
23380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23381 | } | |
d14a1e28 RD |
23382 | return resultobj; |
23383 | fail: | |
23384 | return NULL; | |
23385 | } | |
23386 | ||
23387 | ||
23388 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23389 | PyObject *resultobj; | |
23390 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23391 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23392 | bool result; | |
23393 | PyObject * obj0 = 0 ; | |
23394 | PyObject * obj1 = 0 ; | |
23395 | char *kwnames[] = { | |
23396 | (char *) "self",(char *) "other", NULL | |
23397 | }; | |
23398 | ||
23399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23402 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23404 | { |
23405 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23406 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23407 | |
23408 | wxPyEndAllowThreads(__tstate); | |
23409 | if (PyErr_Occurred()) SWIG_fail; | |
23410 | } | |
4f89f6a3 RD |
23411 | { |
23412 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23413 | } | |
d14a1e28 RD |
23414 | return resultobj; |
23415 | fail: | |
23416 | return NULL; | |
23417 | } | |
23418 | ||
23419 | ||
23420 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23421 | PyObject *resultobj; | |
23422 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23423 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
23424 | PyObject * obj0 = 0 ; |
23425 | PyObject * obj1 = 0 ; | |
23426 | char *kwnames[] = { | |
23427 | (char *) "self",(char *) "m_pItem", NULL | |
23428 | }; | |
23429 | ||
23430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23433 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
23434 | if (arg1) (arg1)->m_pItem = arg2; |
23435 | ||
23436 | Py_INCREF(Py_None); resultobj = Py_None; | |
23437 | return resultobj; | |
23438 | fail: | |
23439 | return NULL; | |
23440 | } | |
23441 | ||
23442 | ||
23443 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23444 | PyObject *resultobj; | |
23445 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23446 | void *result; |
d14a1e28 RD |
23447 | PyObject * obj0 = 0 ; |
23448 | char *kwnames[] = { | |
23449 | (char *) "self", NULL | |
23450 | }; | |
23451 | ||
23452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 23455 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23456 | |
2f4c0a16 | 23457 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23458 | return resultobj; |
23459 | fail: | |
23460 | return NULL; | |
23461 | } | |
23462 | ||
23463 | ||
23464 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23465 | PyObject *obj; | |
23466 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23467 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23468 | Py_INCREF(obj); | |
23469 | return Py_BuildValue((char *)""); | |
23470 | } | |
23471 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23472 | PyObject *resultobj; | |
23473 | PyObject *arg1 = (PyObject *) NULL ; | |
23474 | wxPyTreeItemData *result; | |
23475 | PyObject * obj0 = 0 ; | |
23476 | char *kwnames[] = { | |
23477 | (char *) "obj", NULL | |
23478 | }; | |
23479 | ||
23480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23481 | if (obj0) { | |
23482 | arg1 = obj0; | |
23483 | } | |
23484 | { | |
23485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23486 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23487 | ||
23488 | wxPyEndAllowThreads(__tstate); | |
23489 | if (PyErr_Occurred()) SWIG_fail; | |
23490 | } | |
2f4c0a16 | 23491 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
23492 | return resultobj; |
23493 | fail: | |
23494 | return NULL; | |
23495 | } | |
23496 | ||
23497 | ||
23498 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23499 | PyObject *resultobj; | |
23500 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23501 | PyObject *result; | |
23502 | PyObject * obj0 = 0 ; | |
23503 | char *kwnames[] = { | |
23504 | (char *) "self", NULL | |
23505 | }; | |
23506 | ||
23507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23510 | { |
23511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23512 | result = (PyObject *)(arg1)->GetData(); | |
23513 | ||
23514 | wxPyEndAllowThreads(__tstate); | |
23515 | if (PyErr_Occurred()) SWIG_fail; | |
23516 | } | |
23517 | resultobj = result; | |
23518 | return resultobj; | |
23519 | fail: | |
23520 | return NULL; | |
23521 | } | |
23522 | ||
23523 | ||
23524 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23525 | PyObject *resultobj; | |
23526 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23527 | PyObject *arg2 = (PyObject *) 0 ; | |
23528 | PyObject * obj0 = 0 ; | |
23529 | PyObject * obj1 = 0 ; | |
23530 | char *kwnames[] = { | |
23531 | (char *) "self",(char *) "obj", NULL | |
23532 | }; | |
23533 | ||
23534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23537 | arg2 = obj1; |
23538 | { | |
23539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23540 | (arg1)->SetData(arg2); | |
23541 | ||
23542 | wxPyEndAllowThreads(__tstate); | |
23543 | if (PyErr_Occurred()) SWIG_fail; | |
23544 | } | |
23545 | Py_INCREF(Py_None); resultobj = Py_None; | |
23546 | return resultobj; | |
23547 | fail: | |
23548 | return NULL; | |
23549 | } | |
23550 | ||
23551 | ||
23552 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23553 | PyObject *resultobj; | |
23554 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23555 | wxTreeItemId *result; | |
23556 | PyObject * obj0 = 0 ; | |
23557 | char *kwnames[] = { | |
23558 | (char *) "self", NULL | |
23559 | }; | |
23560 | ||
23561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23564 | { |
23565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23566 | { | |
23567 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23568 | result = (wxTreeItemId *) &_result_ref; | |
23569 | } | |
23570 | ||
23571 | wxPyEndAllowThreads(__tstate); | |
23572 | if (PyErr_Occurred()) SWIG_fail; | |
23573 | } | |
2f4c0a16 | 23574 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
23575 | return resultobj; |
23576 | fail: | |
23577 | return NULL; | |
23578 | } | |
23579 | ||
23580 | ||
23581 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23582 | PyObject *resultobj; | |
23583 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23584 | wxTreeItemId *arg2 = 0 ; | |
23585 | PyObject * obj0 = 0 ; | |
23586 | PyObject * obj1 = 0 ; | |
23587 | char *kwnames[] = { | |
23588 | (char *) "self",(char *) "id", NULL | |
23589 | }; | |
23590 | ||
23591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23595 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23596 | SWIG_fail; | |
d14a1e28 | 23597 | if (arg2 == NULL) { |
2f4c0a16 RD |
23598 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23599 | SWIG_fail; | |
d14a1e28 RD |
23600 | } |
23601 | { | |
23602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23603 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23604 | ||
23605 | wxPyEndAllowThreads(__tstate); | |
23606 | if (PyErr_Occurred()) SWIG_fail; | |
23607 | } | |
23608 | Py_INCREF(Py_None); resultobj = Py_None; | |
23609 | return resultobj; | |
23610 | fail: | |
23611 | return NULL; | |
23612 | } | |
23613 | ||
23614 | ||
23615 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23616 | PyObject *resultobj; | |
23617 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23618 | PyObject * obj0 = 0 ; | |
23619 | char *kwnames[] = { | |
23620 | (char *) "self", NULL | |
23621 | }; | |
23622 | ||
23623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23626 | { |
23627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23628 | wxPyTreeItemData_Destroy(arg1); | |
23629 | ||
23630 | wxPyEndAllowThreads(__tstate); | |
23631 | if (PyErr_Occurred()) SWIG_fail; | |
23632 | } | |
23633 | Py_INCREF(Py_None); resultobj = Py_None; | |
23634 | return resultobj; | |
23635 | fail: | |
23636 | return NULL; | |
23637 | } | |
23638 | ||
23639 | ||
23640 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23641 | PyObject *obj; | |
23642 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23643 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23644 | Py_INCREF(obj); | |
23645 | return Py_BuildValue((char *)""); | |
23646 | } | |
23647 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23648 | PyObject *resultobj; | |
23649 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23650 | int arg2 = (int) 0 ; | |
23651 | wxTreeEvent *result; | |
8edf1c75 RD |
23652 | PyObject * obj0 = 0 ; |
23653 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23654 | char *kwnames[] = { |
23655 | (char *) "commandType",(char *) "id", NULL | |
23656 | }; | |
23657 | ||
8edf1c75 RD |
23658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23659 | if (obj0) { | |
2f4c0a16 RD |
23660 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
23661 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
23662 | } |
23663 | if (obj1) { | |
2f4c0a16 RD |
23664 | arg2 = (int) SWIG_AsInt(obj1); |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 23666 | } |
d14a1e28 RD |
23667 | { |
23668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23669 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23670 | ||
23671 | wxPyEndAllowThreads(__tstate); | |
23672 | if (PyErr_Occurred()) SWIG_fail; | |
23673 | } | |
2f4c0a16 | 23674 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
23675 | return resultobj; |
23676 | fail: | |
23677 | return NULL; | |
23678 | } | |
23679 | ||
23680 | ||
23681 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23682 | PyObject *resultobj; | |
23683 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23684 | wxTreeItemId result; | |
23685 | PyObject * obj0 = 0 ; | |
23686 | char *kwnames[] = { | |
23687 | (char *) "self", NULL | |
23688 | }; | |
23689 | ||
23690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23693 | { |
23694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23695 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23696 | ||
23697 | wxPyEndAllowThreads(__tstate); | |
23698 | if (PyErr_Occurred()) SWIG_fail; | |
23699 | } | |
23700 | { | |
23701 | wxTreeItemId * resultptr; | |
23702 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23703 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23704 | } |
23705 | return resultobj; | |
23706 | fail: | |
23707 | return NULL; | |
23708 | } | |
23709 | ||
23710 | ||
23711 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23712 | PyObject *resultobj; | |
23713 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23714 | wxTreeItemId *arg2 = 0 ; | |
23715 | PyObject * obj0 = 0 ; | |
23716 | PyObject * obj1 = 0 ; | |
23717 | char *kwnames[] = { | |
23718 | (char *) "self",(char *) "item", NULL | |
23719 | }; | |
23720 | ||
23721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23726 | SWIG_fail; | |
d14a1e28 | 23727 | if (arg2 == NULL) { |
2f4c0a16 RD |
23728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23729 | SWIG_fail; | |
d14a1e28 RD |
23730 | } |
23731 | { | |
23732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23733 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23734 | ||
23735 | wxPyEndAllowThreads(__tstate); | |
23736 | if (PyErr_Occurred()) SWIG_fail; | |
23737 | } | |
23738 | Py_INCREF(Py_None); resultobj = Py_None; | |
23739 | return resultobj; | |
23740 | fail: | |
23741 | return NULL; | |
23742 | } | |
23743 | ||
23744 | ||
23745 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23746 | PyObject *resultobj; | |
23747 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23748 | wxTreeItemId result; | |
23749 | PyObject * obj0 = 0 ; | |
23750 | char *kwnames[] = { | |
23751 | (char *) "self", NULL | |
23752 | }; | |
23753 | ||
23754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23757 | { |
23758 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23759 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23760 | ||
23761 | wxPyEndAllowThreads(__tstate); | |
23762 | if (PyErr_Occurred()) SWIG_fail; | |
23763 | } | |
23764 | { | |
23765 | wxTreeItemId * resultptr; | |
23766 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23767 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23768 | } |
23769 | return resultobj; | |
23770 | fail: | |
23771 | return NULL; | |
23772 | } | |
23773 | ||
23774 | ||
23775 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23776 | PyObject *resultobj; | |
23777 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23778 | wxTreeItemId *arg2 = 0 ; | |
23779 | PyObject * obj0 = 0 ; | |
23780 | PyObject * obj1 = 0 ; | |
23781 | char *kwnames[] = { | |
23782 | (char *) "self",(char *) "item", NULL | |
23783 | }; | |
23784 | ||
23785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23788 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23789 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23790 | SWIG_fail; | |
d14a1e28 | 23791 | if (arg2 == NULL) { |
2f4c0a16 RD |
23792 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23793 | SWIG_fail; | |
d14a1e28 RD |
23794 | } |
23795 | { | |
23796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23797 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23798 | ||
23799 | wxPyEndAllowThreads(__tstate); | |
23800 | if (PyErr_Occurred()) SWIG_fail; | |
23801 | } | |
23802 | Py_INCREF(Py_None); resultobj = Py_None; | |
23803 | return resultobj; | |
23804 | fail: | |
23805 | return NULL; | |
23806 | } | |
23807 | ||
23808 | ||
23809 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23810 | PyObject *resultobj; | |
23811 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23812 | wxPoint result; | |
23813 | PyObject * obj0 = 0 ; | |
23814 | char *kwnames[] = { | |
23815 | (char *) "self", NULL | |
23816 | }; | |
23817 | ||
23818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23821 | { |
23822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23823 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23824 | ||
23825 | wxPyEndAllowThreads(__tstate); | |
23826 | if (PyErr_Occurred()) SWIG_fail; | |
23827 | } | |
23828 | { | |
23829 | wxPoint * resultptr; | |
23830 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 23831 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23832 | } |
23833 | return resultobj; | |
23834 | fail: | |
23835 | return NULL; | |
23836 | } | |
23837 | ||
23838 | ||
23839 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23840 | PyObject *resultobj; | |
23841 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23842 | wxPoint *arg2 = 0 ; | |
23843 | wxPoint temp2 ; | |
23844 | PyObject * obj0 = 0 ; | |
23845 | PyObject * obj1 = 0 ; | |
23846 | char *kwnames[] = { | |
23847 | (char *) "self",(char *) "pt", NULL | |
23848 | }; | |
23849 | ||
23850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23853 | { |
23854 | arg2 = &temp2; | |
23855 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23856 | } | |
23857 | { | |
23858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23859 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23860 | ||
23861 | wxPyEndAllowThreads(__tstate); | |
23862 | if (PyErr_Occurred()) SWIG_fail; | |
23863 | } | |
23864 | Py_INCREF(Py_None); resultobj = Py_None; | |
23865 | return resultobj; | |
23866 | fail: | |
23867 | return NULL; | |
23868 | } | |
23869 | ||
23870 | ||
23871 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23872 | PyObject *resultobj; | |
23873 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23874 | wxKeyEvent *result; | |
23875 | PyObject * obj0 = 0 ; | |
23876 | char *kwnames[] = { | |
23877 | (char *) "self", NULL | |
23878 | }; | |
23879 | ||
23880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23883 | { |
23884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23885 | { | |
23886 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23887 | result = (wxKeyEvent *) &_result_ref; | |
23888 | } | |
23889 | ||
23890 | wxPyEndAllowThreads(__tstate); | |
23891 | if (PyErr_Occurred()) SWIG_fail; | |
23892 | } | |
2f4c0a16 | 23893 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
23894 | return resultobj; |
23895 | fail: | |
23896 | return NULL; | |
23897 | } | |
23898 | ||
23899 | ||
23900 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23901 | PyObject *resultobj; | |
23902 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23903 | int result; | |
23904 | PyObject * obj0 = 0 ; | |
23905 | char *kwnames[] = { | |
23906 | (char *) "self", NULL | |
23907 | }; | |
23908 | ||
23909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23912 | { |
23913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23914 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23915 | ||
23916 | wxPyEndAllowThreads(__tstate); | |
23917 | if (PyErr_Occurred()) SWIG_fail; | |
23918 | } | |
2f4c0a16 | 23919 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23920 | return resultobj; |
23921 | fail: | |
23922 | return NULL; | |
23923 | } | |
23924 | ||
23925 | ||
23926 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23927 | PyObject *resultobj; | |
23928 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23929 | wxKeyEvent *arg2 = 0 ; | |
23930 | PyObject * obj0 = 0 ; | |
23931 | PyObject * obj1 = 0 ; | |
23932 | char *kwnames[] = { | |
23933 | (char *) "self",(char *) "evt", NULL | |
23934 | }; | |
23935 | ||
23936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
23940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23941 | SWIG_fail; | |
d14a1e28 | 23942 | if (arg2 == NULL) { |
2f4c0a16 RD |
23943 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23944 | SWIG_fail; | |
d14a1e28 RD |
23945 | } |
23946 | { | |
23947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23948 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23949 | ||
23950 | wxPyEndAllowThreads(__tstate); | |
23951 | if (PyErr_Occurred()) SWIG_fail; | |
23952 | } | |
23953 | Py_INCREF(Py_None); resultobj = Py_None; | |
23954 | return resultobj; | |
23955 | fail: | |
23956 | return NULL; | |
23957 | } | |
23958 | ||
23959 | ||
23960 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23961 | PyObject *resultobj; | |
23962 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23963 | wxString *result; | |
23964 | PyObject * obj0 = 0 ; | |
23965 | char *kwnames[] = { | |
23966 | (char *) "self", NULL | |
23967 | }; | |
23968 | ||
23969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23972 | { |
23973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23974 | { | |
23975 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23976 | result = (wxString *) &_result_ref; | |
23977 | } | |
23978 | ||
23979 | wxPyEndAllowThreads(__tstate); | |
23980 | if (PyErr_Occurred()) SWIG_fail; | |
23981 | } | |
f0983263 RD |
23982 | { |
23983 | #if wxUSE_UNICODE | |
23984 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23985 | #else | |
23986 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23987 | #endif | |
23988 | } | |
d14a1e28 RD |
23989 | return resultobj; |
23990 | fail: | |
23991 | return NULL; | |
23992 | } | |
23993 | ||
23994 | ||
23995 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23996 | PyObject *resultobj; | |
23997 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23998 | wxString *arg2 = 0 ; | |
423f194a | 23999 | bool temp2 = False ; |
d14a1e28 RD |
24000 | PyObject * obj0 = 0 ; |
24001 | PyObject * obj1 = 0 ; | |
24002 | char *kwnames[] = { | |
24003 | (char *) "self",(char *) "label", NULL | |
24004 | }; | |
24005 | ||
24006 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24007 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24008 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24009 | { |
24010 | arg2 = wxString_in_helper(obj1); | |
24011 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 24012 | temp2 = True; |
d14a1e28 RD |
24013 | } |
24014 | { | |
24015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24016 | (arg1)->SetLabel((wxString const &)*arg2); | |
24017 | ||
24018 | wxPyEndAllowThreads(__tstate); | |
24019 | if (PyErr_Occurred()) SWIG_fail; | |
24020 | } | |
24021 | Py_INCREF(Py_None); resultobj = Py_None; | |
24022 | { | |
24023 | if (temp2) | |
24024 | delete arg2; | |
24025 | } | |
24026 | return resultobj; | |
24027 | fail: | |
24028 | { | |
24029 | if (temp2) | |
24030 | delete arg2; | |
24031 | } | |
24032 | return NULL; | |
24033 | } | |
24034 | ||
24035 | ||
24036 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24037 | PyObject *resultobj; | |
24038 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24039 | bool result; | |
24040 | PyObject * obj0 = 0 ; | |
24041 | char *kwnames[] = { | |
24042 | (char *) "self", NULL | |
24043 | }; | |
24044 | ||
24045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24048 | { |
24049 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24050 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24051 | ||
24052 | wxPyEndAllowThreads(__tstate); | |
24053 | if (PyErr_Occurred()) SWIG_fail; | |
24054 | } | |
4f89f6a3 RD |
24055 | { |
24056 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24057 | } | |
d14a1e28 RD |
24058 | return resultobj; |
24059 | fail: | |
24060 | return NULL; | |
24061 | } | |
24062 | ||
24063 | ||
24064 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24065 | PyObject *resultobj; | |
24066 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24067 | bool arg2 ; | |
24068 | PyObject * obj0 = 0 ; | |
24069 | PyObject * obj1 = 0 ; | |
24070 | char *kwnames[] = { | |
24071 | (char *) "self",(char *) "editCancelled", NULL | |
24072 | }; | |
24073 | ||
24074 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24075 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24077 | arg2 = (bool) SWIG_AsBool(obj1); | |
24078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24079 | { |
24080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24081 | (arg1)->SetEditCanceled(arg2); | |
24082 | ||
24083 | wxPyEndAllowThreads(__tstate); | |
24084 | if (PyErr_Occurred()) SWIG_fail; | |
24085 | } | |
24086 | Py_INCREF(Py_None); resultobj = Py_None; | |
24087 | return resultobj; | |
24088 | fail: | |
24089 | return NULL; | |
24090 | } | |
24091 | ||
24092 | ||
9fd4be55 RD |
24093 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24094 | PyObject *resultobj; | |
24095 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24096 | wxString *arg2 = 0 ; | |
24097 | bool temp2 = False ; | |
24098 | PyObject * obj0 = 0 ; | |
24099 | PyObject * obj1 = 0 ; | |
24100 | char *kwnames[] = { | |
24101 | (char *) "self",(char *) "toolTip", NULL | |
24102 | }; | |
24103 | ||
24104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
24107 | { |
24108 | arg2 = wxString_in_helper(obj1); | |
24109 | if (arg2 == NULL) SWIG_fail; | |
24110 | temp2 = True; | |
24111 | } | |
24112 | { | |
24113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24114 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24115 | ||
24116 | wxPyEndAllowThreads(__tstate); | |
24117 | if (PyErr_Occurred()) SWIG_fail; | |
24118 | } | |
24119 | Py_INCREF(Py_None); resultobj = Py_None; | |
24120 | { | |
24121 | if (temp2) | |
24122 | delete arg2; | |
24123 | } | |
24124 | return resultobj; | |
24125 | fail: | |
24126 | { | |
24127 | if (temp2) | |
24128 | delete arg2; | |
24129 | } | |
24130 | return NULL; | |
24131 | } | |
24132 | ||
24133 | ||
d14a1e28 RD |
24134 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24135 | PyObject *obj; | |
24136 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24137 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24138 | Py_INCREF(obj); | |
24139 | return Py_BuildValue((char *)""); | |
24140 | } | |
24141 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24142 | PyObject *resultobj; | |
24143 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24144 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24145 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24146 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24147 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24148 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24149 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24150 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24151 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 24152 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24153 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24154 | wxPyTreeCtrl *result; | |
24155 | wxPoint temp3 ; | |
24156 | wxSize temp4 ; | |
423f194a | 24157 | bool temp7 = False ; |
d14a1e28 | 24158 | PyObject * obj0 = 0 ; |
8edf1c75 | 24159 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24160 | PyObject * obj2 = 0 ; |
24161 | PyObject * obj3 = 0 ; | |
8edf1c75 | 24162 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24163 | PyObject * obj5 = 0 ; |
24164 | PyObject * obj6 = 0 ; | |
24165 | char *kwnames[] = { | |
24166 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24167 | }; | |
24168 | ||
8edf1c75 | 24169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24172 | if (obj1) { |
2f4c0a16 RD |
24173 | arg2 = (int) SWIG_AsInt(obj1); |
24174 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24175 | } |
d14a1e28 RD |
24176 | if (obj2) { |
24177 | { | |
24178 | arg3 = &temp3; | |
24179 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24180 | } | |
24181 | } | |
24182 | if (obj3) { | |
24183 | { | |
8edf1c75 RD |
24184 | arg4 = &temp4; |
24185 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24186 | } | |
24187 | } | |
24188 | if (obj4) { | |
2f4c0a16 RD |
24189 | arg5 = (long) SWIG_AsLong(obj4); |
24190 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24191 | } |
24192 | if (obj5) { | |
2f4c0a16 RD |
24193 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24194 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24195 | SWIG_fail; | |
d14a1e28 | 24196 | if (arg6 == NULL) { |
2f4c0a16 RD |
24197 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24198 | SWIG_fail; | |
d14a1e28 RD |
24199 | } |
24200 | } | |
24201 | if (obj6) { | |
24202 | { | |
24203 | arg7 = wxString_in_helper(obj6); | |
24204 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 24205 | temp7 = True; |
d14a1e28 RD |
24206 | } |
24207 | } | |
24208 | { | |
24209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24210 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24211 | ||
24212 | wxPyEndAllowThreads(__tstate); | |
24213 | if (PyErr_Occurred()) SWIG_fail; | |
24214 | } | |
d03fd34d RD |
24215 | { |
24216 | resultobj = wxPyMake_wxObject(result); | |
24217 | } | |
d14a1e28 RD |
24218 | { |
24219 | if (temp7) | |
24220 | delete arg7; | |
24221 | } | |
24222 | return resultobj; | |
24223 | fail: | |
24224 | { | |
24225 | if (temp7) | |
24226 | delete arg7; | |
24227 | } | |
24228 | return NULL; | |
24229 | } | |
24230 | ||
24231 | ||
24232 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24233 | PyObject *resultobj; | |
24234 | wxPyTreeCtrl *result; | |
24235 | char *kwnames[] = { | |
24236 | NULL | |
24237 | }; | |
24238 | ||
24239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
d03fd34d RD |
24247 | { |
24248 | resultobj = wxPyMake_wxObject(result); | |
24249 | } | |
d14a1e28 RD |
24250 | return resultobj; |
24251 | fail: | |
24252 | return NULL; | |
24253 | } | |
24254 | ||
24255 | ||
24256 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24257 | PyObject *resultobj; | |
24258 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24259 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 24260 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24261 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24262 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24263 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24264 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24265 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24266 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24267 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 24268 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24269 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
24270 | bool result; | |
24271 | wxPoint temp4 ; | |
24272 | wxSize temp5 ; | |
423f194a | 24273 | bool temp8 = False ; |
d14a1e28 RD |
24274 | PyObject * obj0 = 0 ; |
24275 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24276 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24277 | PyObject * obj3 = 0 ; |
24278 | PyObject * obj4 = 0 ; | |
8edf1c75 | 24279 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24280 | PyObject * obj6 = 0 ; |
24281 | PyObject * obj7 = 0 ; | |
24282 | char *kwnames[] = { | |
24283 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24284 | }; | |
24285 | ||
8edf1c75 | 24286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
24287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24289 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24291 | if (obj2) { |
2f4c0a16 RD |
24292 | arg3 = (int) SWIG_AsInt(obj2); |
24293 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24294 | } |
d14a1e28 RD |
24295 | if (obj3) { |
24296 | { | |
24297 | arg4 = &temp4; | |
24298 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24299 | } | |
24300 | } | |
24301 | if (obj4) { | |
24302 | { | |
24303 | arg5 = &temp5; | |
24304 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24305 | } | |
24306 | } | |
8edf1c75 | 24307 | if (obj5) { |
2f4c0a16 RD |
24308 | arg6 = (long) SWIG_AsLong(obj5); |
24309 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24310 | } |
d14a1e28 | 24311 | if (obj6) { |
2f4c0a16 RD |
24312 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24313 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24314 | SWIG_fail; | |
d14a1e28 | 24315 | if (arg7 == NULL) { |
2f4c0a16 RD |
24316 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24317 | SWIG_fail; | |
d14a1e28 RD |
24318 | } |
24319 | } | |
24320 | if (obj7) { | |
24321 | { | |
24322 | arg8 = wxString_in_helper(obj7); | |
24323 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 24324 | temp8 = True; |
d14a1e28 RD |
24325 | } |
24326 | } | |
24327 | { | |
24328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24329 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24330 | ||
24331 | wxPyEndAllowThreads(__tstate); | |
24332 | if (PyErr_Occurred()) SWIG_fail; | |
24333 | } | |
4f89f6a3 RD |
24334 | { |
24335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24336 | } | |
d14a1e28 RD |
24337 | { |
24338 | if (temp8) | |
24339 | delete arg8; | |
24340 | } | |
24341 | return resultobj; | |
24342 | fail: | |
24343 | { | |
24344 | if (temp8) | |
24345 | delete arg8; | |
24346 | } | |
24347 | return NULL; | |
24348 | } | |
24349 | ||
24350 | ||
24351 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24352 | PyObject *resultobj; | |
24353 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24354 | PyObject *arg2 = (PyObject *) 0 ; | |
24355 | PyObject *arg3 = (PyObject *) 0 ; | |
24356 | PyObject * obj0 = 0 ; | |
24357 | PyObject * obj1 = 0 ; | |
24358 | PyObject * obj2 = 0 ; | |
24359 | char *kwnames[] = { | |
24360 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24361 | }; | |
24362 | ||
24363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24366 | arg2 = obj1; |
24367 | arg3 = obj2; | |
24368 | { | |
24369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24370 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24371 | ||
24372 | wxPyEndAllowThreads(__tstate); | |
24373 | if (PyErr_Occurred()) SWIG_fail; | |
24374 | } | |
24375 | Py_INCREF(Py_None); resultobj = Py_None; | |
24376 | return resultobj; | |
24377 | fail: | |
24378 | return NULL; | |
24379 | } | |
24380 | ||
24381 | ||
24382 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24383 | PyObject *resultobj; | |
24384 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24385 | size_t result; | |
24386 | PyObject * obj0 = 0 ; | |
24387 | char *kwnames[] = { | |
24388 | (char *) "self", NULL | |
24389 | }; | |
24390 | ||
24391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24394 | { |
24395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24396 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24397 | ||
24398 | wxPyEndAllowThreads(__tstate); | |
24399 | if (PyErr_Occurred()) SWIG_fail; | |
24400 | } | |
2f4c0a16 | 24401 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24402 | return resultobj; |
24403 | fail: | |
24404 | return NULL; | |
24405 | } | |
24406 | ||
24407 | ||
24408 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24409 | PyObject *resultobj; | |
24410 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24411 | unsigned int result; | |
24412 | PyObject * obj0 = 0 ; | |
24413 | char *kwnames[] = { | |
24414 | (char *) "self", NULL | |
24415 | }; | |
24416 | ||
24417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24420 | { |
24421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24422 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24423 | ||
24424 | wxPyEndAllowThreads(__tstate); | |
24425 | if (PyErr_Occurred()) SWIG_fail; | |
24426 | } | |
2f4c0a16 | 24427 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24428 | return resultobj; |
24429 | fail: | |
24430 | return NULL; | |
24431 | } | |
24432 | ||
24433 | ||
24434 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24435 | PyObject *resultobj; | |
24436 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24437 | unsigned int arg2 ; | |
24438 | PyObject * obj0 = 0 ; | |
24439 | PyObject * obj1 = 0 ; | |
24440 | char *kwnames[] = { | |
24441 | (char *) "self",(char *) "indent", NULL | |
24442 | }; | |
24443 | ||
24444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24447 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24449 | { |
24450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24451 | (arg1)->SetIndent(arg2); | |
24452 | ||
24453 | wxPyEndAllowThreads(__tstate); | |
24454 | if (PyErr_Occurred()) SWIG_fail; | |
24455 | } | |
24456 | Py_INCREF(Py_None); resultobj = Py_None; | |
24457 | return resultobj; | |
24458 | fail: | |
24459 | return NULL; | |
24460 | } | |
24461 | ||
24462 | ||
24463 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24464 | PyObject *resultobj; | |
24465 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24466 | unsigned int result; | |
24467 | PyObject * obj0 = 0 ; | |
24468 | char *kwnames[] = { | |
24469 | (char *) "self", NULL | |
24470 | }; | |
24471 | ||
24472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24475 | { |
24476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24477 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24478 | ||
24479 | wxPyEndAllowThreads(__tstate); | |
24480 | if (PyErr_Occurred()) SWIG_fail; | |
24481 | } | |
2f4c0a16 | 24482 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24483 | return resultobj; |
24484 | fail: | |
24485 | return NULL; | |
24486 | } | |
24487 | ||
24488 | ||
24489 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24490 | PyObject *resultobj; | |
24491 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24492 | unsigned int arg2 ; | |
24493 | PyObject * obj0 = 0 ; | |
24494 | PyObject * obj1 = 0 ; | |
24495 | char *kwnames[] = { | |
24496 | (char *) "self",(char *) "spacing", NULL | |
24497 | }; | |
24498 | ||
24499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24502 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24503 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24504 | { |
24505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24506 | (arg1)->SetSpacing(arg2); | |
24507 | ||
24508 | wxPyEndAllowThreads(__tstate); | |
24509 | if (PyErr_Occurred()) SWIG_fail; | |
24510 | } | |
24511 | Py_INCREF(Py_None); resultobj = Py_None; | |
24512 | return resultobj; | |
24513 | fail: | |
24514 | return NULL; | |
24515 | } | |
24516 | ||
24517 | ||
24518 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24519 | PyObject *resultobj; | |
24520 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24521 | wxImageList *result; | |
24522 | PyObject * obj0 = 0 ; | |
24523 | char *kwnames[] = { | |
24524 | (char *) "self", NULL | |
24525 | }; | |
24526 | ||
24527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24530 | { |
24531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24532 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24533 | ||
24534 | wxPyEndAllowThreads(__tstate); | |
24535 | if (PyErr_Occurred()) SWIG_fail; | |
24536 | } | |
24537 | { | |
24538 | resultobj = wxPyMake_wxObject(result); | |
24539 | } | |
24540 | return resultobj; | |
24541 | fail: | |
24542 | return NULL; | |
24543 | } | |
24544 | ||
24545 | ||
24546 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24547 | PyObject *resultobj; | |
24548 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24549 | wxImageList *result; | |
24550 | PyObject * obj0 = 0 ; | |
24551 | char *kwnames[] = { | |
24552 | (char *) "self", NULL | |
24553 | }; | |
24554 | ||
24555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24558 | { |
24559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24560 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24561 | ||
24562 | wxPyEndAllowThreads(__tstate); | |
24563 | if (PyErr_Occurred()) SWIG_fail; | |
24564 | } | |
24565 | { | |
24566 | resultobj = wxPyMake_wxObject(result); | |
24567 | } | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24575 | PyObject *resultobj; | |
24576 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24577 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24578 | PyObject * obj0 = 0 ; | |
24579 | PyObject * obj1 = 0 ; | |
24580 | char *kwnames[] = { | |
24581 | (char *) "self",(char *) "imageList", NULL | |
24582 | }; | |
24583 | ||
24584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24589 | { |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | (arg1)->SetImageList(arg2); | |
24592 | ||
24593 | wxPyEndAllowThreads(__tstate); | |
24594 | if (PyErr_Occurred()) SWIG_fail; | |
24595 | } | |
24596 | Py_INCREF(Py_None); resultobj = Py_None; | |
24597 | return resultobj; | |
24598 | fail: | |
24599 | return NULL; | |
24600 | } | |
24601 | ||
24602 | ||
24603 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24604 | PyObject *resultobj; | |
24605 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24606 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24607 | PyObject * obj0 = 0 ; | |
24608 | PyObject * obj1 = 0 ; | |
24609 | char *kwnames[] = { | |
24610 | (char *) "self",(char *) "imageList", NULL | |
24611 | }; | |
24612 | ||
24613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24616 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24618 | { |
24619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24620 | (arg1)->SetStateImageList(arg2); | |
24621 | ||
24622 | wxPyEndAllowThreads(__tstate); | |
24623 | if (PyErr_Occurred()) SWIG_fail; | |
24624 | } | |
24625 | Py_INCREF(Py_None); resultobj = Py_None; | |
24626 | return resultobj; | |
24627 | fail: | |
24628 | return NULL; | |
24629 | } | |
24630 | ||
24631 | ||
24632 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24633 | PyObject *resultobj; | |
24634 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24635 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24636 | PyObject * obj0 = 0 ; | |
24637 | PyObject * obj1 = 0 ; | |
24638 | char *kwnames[] = { | |
24639 | (char *) "self",(char *) "imageList", NULL | |
24640 | }; | |
24641 | ||
24642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24645 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24646 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24647 | { |
24648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24649 | (arg1)->AssignImageList(arg2); | |
24650 | ||
24651 | wxPyEndAllowThreads(__tstate); | |
24652 | if (PyErr_Occurred()) SWIG_fail; | |
24653 | } | |
24654 | Py_INCREF(Py_None); resultobj = Py_None; | |
24655 | return resultobj; | |
24656 | fail: | |
24657 | return NULL; | |
24658 | } | |
24659 | ||
24660 | ||
24661 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24662 | PyObject *resultobj; | |
24663 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24664 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24665 | PyObject * obj0 = 0 ; | |
24666 | PyObject * obj1 = 0 ; | |
24667 | char *kwnames[] = { | |
24668 | (char *) "self",(char *) "imageList", NULL | |
24669 | }; | |
24670 | ||
24671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24675 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24676 | { |
24677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24678 | (arg1)->AssignStateImageList(arg2); | |
24679 | ||
24680 | wxPyEndAllowThreads(__tstate); | |
24681 | if (PyErr_Occurred()) SWIG_fail; | |
24682 | } | |
24683 | Py_INCREF(Py_None); resultobj = Py_None; | |
24684 | return resultobj; | |
24685 | fail: | |
24686 | return NULL; | |
24687 | } | |
24688 | ||
24689 | ||
24690 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24691 | PyObject *resultobj; | |
24692 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24693 | wxTreeItemId *arg2 = 0 ; | |
24694 | wxString result; | |
24695 | PyObject * obj0 = 0 ; | |
24696 | PyObject * obj1 = 0 ; | |
24697 | char *kwnames[] = { | |
24698 | (char *) "self",(char *) "item", NULL | |
24699 | }; | |
24700 | ||
24701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24706 | SWIG_fail; | |
d14a1e28 | 24707 | if (arg2 == NULL) { |
2f4c0a16 RD |
24708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24709 | SWIG_fail; | |
d14a1e28 RD |
24710 | } |
24711 | { | |
24712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24713 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24714 | ||
24715 | wxPyEndAllowThreads(__tstate); | |
24716 | if (PyErr_Occurred()) SWIG_fail; | |
24717 | } | |
24718 | { | |
24719 | #if wxUSE_UNICODE | |
24720 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24721 | #else | |
24722 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24723 | #endif | |
24724 | } | |
24725 | return resultobj; | |
24726 | fail: | |
24727 | return NULL; | |
24728 | } | |
24729 | ||
24730 | ||
24731 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24732 | PyObject *resultobj; | |
24733 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24734 | wxTreeItemId *arg2 = 0 ; | |
24735 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24736 | int result; | |
24737 | PyObject * obj0 = 0 ; | |
24738 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24739 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24740 | char *kwnames[] = { |
24741 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24742 | }; | |
24743 | ||
8edf1c75 | 24744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24749 | SWIG_fail; | |
d14a1e28 | 24750 | if (arg2 == NULL) { |
2f4c0a16 RD |
24751 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24752 | SWIG_fail; | |
d14a1e28 | 24753 | } |
8edf1c75 | 24754 | if (obj2) { |
2f4c0a16 RD |
24755 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24757 | } |
d14a1e28 RD |
24758 | { |
24759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24760 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24761 | ||
24762 | wxPyEndAllowThreads(__tstate); | |
24763 | if (PyErr_Occurred()) SWIG_fail; | |
24764 | } | |
2f4c0a16 | 24765 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24766 | return resultobj; |
24767 | fail: | |
24768 | return NULL; | |
24769 | } | |
24770 | ||
24771 | ||
24772 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24773 | PyObject *resultobj; | |
24774 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24775 | wxTreeItemId *arg2 = 0 ; | |
24776 | wxPyTreeItemData *result; | |
24777 | PyObject * obj0 = 0 ; | |
24778 | PyObject * obj1 = 0 ; | |
24779 | char *kwnames[] = { | |
24780 | (char *) "self",(char *) "item", NULL | |
24781 | }; | |
24782 | ||
24783 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24784 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24785 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24786 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24787 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24788 | SWIG_fail; | |
d14a1e28 | 24789 | if (arg2 == NULL) { |
2f4c0a16 RD |
24790 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24791 | SWIG_fail; | |
d14a1e28 RD |
24792 | } |
24793 | { | |
24794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24795 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24796 | ||
24797 | wxPyEndAllowThreads(__tstate); | |
24798 | if (PyErr_Occurred()) SWIG_fail; | |
24799 | } | |
2f4c0a16 | 24800 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
24801 | return resultobj; |
24802 | fail: | |
24803 | return NULL; | |
24804 | } | |
24805 | ||
24806 | ||
24807 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24808 | PyObject *resultobj; | |
24809 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24810 | wxTreeItemId *arg2 = 0 ; | |
24811 | PyObject *result; | |
24812 | PyObject * obj0 = 0 ; | |
24813 | PyObject * obj1 = 0 ; | |
24814 | char *kwnames[] = { | |
24815 | (char *) "self",(char *) "item", NULL | |
24816 | }; | |
24817 | ||
24818 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24819 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24820 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24821 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24822 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24823 | SWIG_fail; | |
d14a1e28 | 24824 | if (arg2 == NULL) { |
2f4c0a16 RD |
24825 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24826 | SWIG_fail; | |
d14a1e28 RD |
24827 | } |
24828 | { | |
24829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24830 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24831 | ||
24832 | wxPyEndAllowThreads(__tstate); | |
24833 | if (PyErr_Occurred()) SWIG_fail; | |
24834 | } | |
24835 | resultobj = result; | |
24836 | return resultobj; | |
24837 | fail: | |
24838 | return NULL; | |
24839 | } | |
24840 | ||
24841 | ||
24842 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24843 | PyObject *resultobj; | |
24844 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24845 | wxTreeItemId *arg2 = 0 ; | |
24846 | wxColour result; | |
24847 | PyObject * obj0 = 0 ; | |
24848 | PyObject * obj1 = 0 ; | |
24849 | char *kwnames[] = { | |
24850 | (char *) "self",(char *) "item", NULL | |
24851 | }; | |
24852 | ||
24853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24856 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24857 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24858 | SWIG_fail; | |
d14a1e28 | 24859 | if (arg2 == NULL) { |
2f4c0a16 RD |
24860 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24861 | SWIG_fail; | |
d14a1e28 RD |
24862 | } |
24863 | { | |
24864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24865 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24866 | ||
24867 | wxPyEndAllowThreads(__tstate); | |
24868 | if (PyErr_Occurred()) SWIG_fail; | |
24869 | } | |
24870 | { | |
24871 | wxColour * resultptr; | |
24872 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24873 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24874 | } |
24875 | return resultobj; | |
24876 | fail: | |
24877 | return NULL; | |
24878 | } | |
24879 | ||
24880 | ||
24881 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24882 | PyObject *resultobj; | |
24883 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24884 | wxTreeItemId *arg2 = 0 ; | |
24885 | wxColour result; | |
24886 | PyObject * obj0 = 0 ; | |
24887 | PyObject * obj1 = 0 ; | |
24888 | char *kwnames[] = { | |
24889 | (char *) "self",(char *) "item", NULL | |
24890 | }; | |
24891 | ||
24892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24895 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24896 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24897 | SWIG_fail; | |
d14a1e28 | 24898 | if (arg2 == NULL) { |
2f4c0a16 RD |
24899 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24900 | SWIG_fail; | |
d14a1e28 RD |
24901 | } |
24902 | { | |
24903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24904 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24905 | ||
24906 | wxPyEndAllowThreads(__tstate); | |
24907 | if (PyErr_Occurred()) SWIG_fail; | |
24908 | } | |
24909 | { | |
24910 | wxColour * resultptr; | |
24911 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24912 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24913 | } |
24914 | return resultobj; | |
24915 | fail: | |
24916 | return NULL; | |
24917 | } | |
24918 | ||
24919 | ||
24920 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24921 | PyObject *resultobj; | |
24922 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24923 | wxTreeItemId *arg2 = 0 ; | |
24924 | wxFont result; | |
24925 | PyObject * obj0 = 0 ; | |
24926 | PyObject * obj1 = 0 ; | |
24927 | char *kwnames[] = { | |
24928 | (char *) "self",(char *) "item", NULL | |
24929 | }; | |
24930 | ||
24931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24934 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24935 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24936 | SWIG_fail; | |
d14a1e28 | 24937 | if (arg2 == NULL) { |
2f4c0a16 RD |
24938 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24939 | SWIG_fail; | |
d14a1e28 RD |
24940 | } |
24941 | { | |
24942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24943 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24944 | ||
24945 | wxPyEndAllowThreads(__tstate); | |
24946 | if (PyErr_Occurred()) SWIG_fail; | |
24947 | } | |
24948 | { | |
24949 | wxFont * resultptr; | |
24950 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 24951 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
24952 | } |
24953 | return resultobj; | |
24954 | fail: | |
24955 | return NULL; | |
24956 | } | |
24957 | ||
24958 | ||
24959 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24960 | PyObject *resultobj; | |
24961 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24962 | wxTreeItemId *arg2 = 0 ; | |
24963 | wxString *arg3 = 0 ; | |
423f194a | 24964 | bool temp3 = False ; |
d14a1e28 RD |
24965 | PyObject * obj0 = 0 ; |
24966 | PyObject * obj1 = 0 ; | |
24967 | PyObject * obj2 = 0 ; | |
24968 | char *kwnames[] = { | |
24969 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24970 | }; | |
24971 | ||
24972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24975 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24976 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24977 | SWIG_fail; | |
d14a1e28 | 24978 | if (arg2 == NULL) { |
2f4c0a16 RD |
24979 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24980 | SWIG_fail; | |
d14a1e28 RD |
24981 | } |
24982 | { | |
24983 | arg3 = wxString_in_helper(obj2); | |
24984 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24985 | temp3 = True; |
d14a1e28 RD |
24986 | } |
24987 | { | |
24988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24989 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24990 | ||
24991 | wxPyEndAllowThreads(__tstate); | |
24992 | if (PyErr_Occurred()) SWIG_fail; | |
24993 | } | |
24994 | Py_INCREF(Py_None); resultobj = Py_None; | |
24995 | { | |
24996 | if (temp3) | |
24997 | delete arg3; | |
24998 | } | |
24999 | return resultobj; | |
25000 | fail: | |
25001 | { | |
25002 | if (temp3) | |
25003 | delete arg3; | |
25004 | } | |
25005 | return NULL; | |
25006 | } | |
25007 | ||
25008 | ||
25009 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25010 | PyObject *resultobj; | |
25011 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25012 | wxTreeItemId *arg2 = 0 ; | |
25013 | int arg3 ; | |
25014 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25015 | PyObject * obj0 = 0 ; | |
25016 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25017 | PyObject * obj2 = 0 ; |
25018 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25019 | char *kwnames[] = { |
25020 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25021 | }; | |
25022 | ||
8edf1c75 | 25023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
25024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25026 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25027 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25028 | SWIG_fail; | |
d14a1e28 | 25029 | if (arg2 == NULL) { |
2f4c0a16 RD |
25030 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25031 | SWIG_fail; | |
8edf1c75 | 25032 | } |
2f4c0a16 RD |
25033 | arg3 = (int) SWIG_AsInt(obj2); |
25034 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25035 | if (obj3) { |
2f4c0a16 RD |
25036 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
25037 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25038 | } |
d14a1e28 RD |
25039 | { |
25040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25041 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25042 | ||
25043 | wxPyEndAllowThreads(__tstate); | |
25044 | if (PyErr_Occurred()) SWIG_fail; | |
25045 | } | |
25046 | Py_INCREF(Py_None); resultobj = Py_None; | |
25047 | return resultobj; | |
25048 | fail: | |
25049 | return NULL; | |
25050 | } | |
25051 | ||
25052 | ||
25053 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25054 | PyObject *resultobj; | |
25055 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25056 | wxTreeItemId *arg2 = 0 ; | |
25057 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25058 | PyObject * obj0 = 0 ; | |
25059 | PyObject * obj1 = 0 ; | |
25060 | PyObject * obj2 = 0 ; | |
25061 | char *kwnames[] = { | |
25062 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25063 | }; | |
25064 | ||
25065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25068 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25069 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25070 | SWIG_fail; | |
d14a1e28 | 25071 | if (arg2 == NULL) { |
2f4c0a16 RD |
25072 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25073 | SWIG_fail; | |
d14a1e28 | 25074 | } |
2f4c0a16 RD |
25075 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
25076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25077 | { |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
25084 | Py_INCREF(Py_None); resultobj = Py_None; | |
25085 | return resultobj; | |
25086 | fail: | |
25087 | return NULL; | |
25088 | } | |
25089 | ||
25090 | ||
25091 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25092 | PyObject *resultobj; | |
25093 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25094 | wxTreeItemId *arg2 = 0 ; | |
25095 | PyObject *arg3 = (PyObject *) 0 ; | |
25096 | PyObject * obj0 = 0 ; | |
25097 | PyObject * obj1 = 0 ; | |
25098 | PyObject * obj2 = 0 ; | |
25099 | char *kwnames[] = { | |
25100 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25101 | }; | |
25102 | ||
25103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25108 | SWIG_fail; | |
d14a1e28 | 25109 | if (arg2 == NULL) { |
2f4c0a16 RD |
25110 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25111 | SWIG_fail; | |
d14a1e28 RD |
25112 | } |
25113 | arg3 = obj2; | |
25114 | { | |
25115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25116 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25117 | ||
25118 | wxPyEndAllowThreads(__tstate); | |
25119 | if (PyErr_Occurred()) SWIG_fail; | |
25120 | } | |
25121 | Py_INCREF(Py_None); resultobj = Py_None; | |
25122 | return resultobj; | |
25123 | fail: | |
25124 | return NULL; | |
25125 | } | |
25126 | ||
25127 | ||
25128 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25129 | PyObject *resultobj; | |
25130 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25131 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25132 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25133 | PyObject * obj0 = 0 ; |
25134 | PyObject * obj1 = 0 ; | |
25135 | PyObject * obj2 = 0 ; | |
25136 | char *kwnames[] = { | |
25137 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25138 | }; | |
25139 | ||
25140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25144 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25145 | SWIG_fail; | |
d14a1e28 | 25146 | if (arg2 == NULL) { |
2f4c0a16 RD |
25147 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25148 | SWIG_fail; | |
d14a1e28 RD |
25149 | } |
25150 | if (obj2) { | |
2f4c0a16 RD |
25151 | arg3 = (bool) SWIG_AsBool(obj2); |
25152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25153 | } |
25154 | { | |
25155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25156 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25157 | ||
25158 | wxPyEndAllowThreads(__tstate); | |
25159 | if (PyErr_Occurred()) SWIG_fail; | |
25160 | } | |
25161 | Py_INCREF(Py_None); resultobj = Py_None; | |
25162 | return resultobj; | |
25163 | fail: | |
25164 | return NULL; | |
25165 | } | |
25166 | ||
25167 | ||
25168 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25169 | PyObject *resultobj; | |
25170 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25171 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25172 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25173 | PyObject * obj0 = 0 ; |
25174 | PyObject * obj1 = 0 ; | |
25175 | PyObject * obj2 = 0 ; | |
25176 | char *kwnames[] = { | |
25177 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25178 | }; | |
25179 | ||
25180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25183 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25184 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25185 | SWIG_fail; | |
d14a1e28 | 25186 | if (arg2 == NULL) { |
2f4c0a16 RD |
25187 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25188 | SWIG_fail; | |
d14a1e28 RD |
25189 | } |
25190 | if (obj2) { | |
2f4c0a16 RD |
25191 | arg3 = (bool) SWIG_AsBool(obj2); |
25192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25193 | } |
25194 | { | |
25195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25196 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25197 | ||
25198 | wxPyEndAllowThreads(__tstate); | |
25199 | if (PyErr_Occurred()) SWIG_fail; | |
25200 | } | |
25201 | Py_INCREF(Py_None); resultobj = Py_None; | |
25202 | return resultobj; | |
25203 | fail: | |
25204 | return NULL; | |
25205 | } | |
25206 | ||
25207 | ||
25208 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25209 | PyObject *resultobj; | |
25210 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25211 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25212 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25213 | PyObject * obj0 = 0 ; |
25214 | PyObject * obj1 = 0 ; | |
25215 | PyObject * obj2 = 0 ; | |
25216 | char *kwnames[] = { | |
25217 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
25218 | }; | |
25219 | ||
25220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25223 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25225 | SWIG_fail; | |
d14a1e28 | 25226 | if (arg2 == NULL) { |
2f4c0a16 RD |
25227 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25228 | SWIG_fail; | |
d14a1e28 RD |
25229 | } |
25230 | if (obj2) { | |
2f4c0a16 RD |
25231 | arg3 = (bool) SWIG_AsBool(obj2); |
25232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25233 | } |
25234 | { | |
25235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25236 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
25237 | ||
25238 | wxPyEndAllowThreads(__tstate); | |
25239 | if (PyErr_Occurred()) SWIG_fail; | |
25240 | } | |
25241 | Py_INCREF(Py_None); resultobj = Py_None; | |
25242 | return resultobj; | |
25243 | fail: | |
25244 | return NULL; | |
25245 | } | |
25246 | ||
25247 | ||
25248 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25249 | PyObject *resultobj; | |
25250 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25251 | wxTreeItemId *arg2 = 0 ; | |
25252 | wxColour *arg3 = 0 ; | |
25253 | wxColour temp3 ; | |
25254 | PyObject * obj0 = 0 ; | |
25255 | PyObject * obj1 = 0 ; | |
25256 | PyObject * obj2 = 0 ; | |
25257 | char *kwnames[] = { | |
25258 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25259 | }; | |
25260 | ||
25261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25265 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25266 | SWIG_fail; | |
d14a1e28 | 25267 | if (arg2 == NULL) { |
2f4c0a16 RD |
25268 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25269 | SWIG_fail; | |
d14a1e28 RD |
25270 | } |
25271 | { | |
25272 | arg3 = &temp3; | |
25273 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25274 | } | |
25275 | { | |
25276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25277 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25278 | ||
25279 | wxPyEndAllowThreads(__tstate); | |
25280 | if (PyErr_Occurred()) SWIG_fail; | |
25281 | } | |
25282 | Py_INCREF(Py_None); resultobj = Py_None; | |
25283 | return resultobj; | |
25284 | fail: | |
25285 | return NULL; | |
25286 | } | |
25287 | ||
25288 | ||
25289 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25290 | PyObject *resultobj; | |
25291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25292 | wxTreeItemId *arg2 = 0 ; | |
25293 | wxColour *arg3 = 0 ; | |
25294 | wxColour temp3 ; | |
25295 | PyObject * obj0 = 0 ; | |
25296 | PyObject * obj1 = 0 ; | |
25297 | PyObject * obj2 = 0 ; | |
25298 | char *kwnames[] = { | |
25299 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25300 | }; | |
25301 | ||
25302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25305 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25306 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25307 | SWIG_fail; | |
d14a1e28 | 25308 | if (arg2 == NULL) { |
2f4c0a16 RD |
25309 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25310 | SWIG_fail; | |
d14a1e28 RD |
25311 | } |
25312 | { | |
25313 | arg3 = &temp3; | |
25314 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25315 | } | |
25316 | { | |
25317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25318 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25319 | ||
25320 | wxPyEndAllowThreads(__tstate); | |
25321 | if (PyErr_Occurred()) SWIG_fail; | |
25322 | } | |
25323 | Py_INCREF(Py_None); resultobj = Py_None; | |
25324 | return resultobj; | |
25325 | fail: | |
25326 | return NULL; | |
25327 | } | |
25328 | ||
25329 | ||
25330 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25331 | PyObject *resultobj; | |
25332 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25333 | wxTreeItemId *arg2 = 0 ; | |
25334 | wxFont *arg3 = 0 ; | |
25335 | PyObject * obj0 = 0 ; | |
25336 | PyObject * obj1 = 0 ; | |
25337 | PyObject * obj2 = 0 ; | |
25338 | char *kwnames[] = { | |
25339 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25340 | }; | |
25341 | ||
25342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25346 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25347 | SWIG_fail; | |
d14a1e28 | 25348 | if (arg2 == NULL) { |
2f4c0a16 RD |
25349 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25350 | SWIG_fail; | |
d14a1e28 | 25351 | } |
2f4c0a16 RD |
25352 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
25353 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25354 | SWIG_fail; | |
d14a1e28 | 25355 | if (arg3 == NULL) { |
2f4c0a16 RD |
25356 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25357 | SWIG_fail; | |
d14a1e28 RD |
25358 | } |
25359 | { | |
25360 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25361 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25362 | ||
25363 | wxPyEndAllowThreads(__tstate); | |
25364 | if (PyErr_Occurred()) SWIG_fail; | |
25365 | } | |
25366 | Py_INCREF(Py_None); resultobj = Py_None; | |
25367 | return resultobj; | |
25368 | fail: | |
25369 | return NULL; | |
25370 | } | |
25371 | ||
25372 | ||
25373 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25374 | PyObject *resultobj; | |
25375 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25376 | wxTreeItemId *arg2 = 0 ; | |
25377 | bool result; | |
25378 | PyObject * obj0 = 0 ; | |
25379 | PyObject * obj1 = 0 ; | |
25380 | char *kwnames[] = { | |
25381 | (char *) "self",(char *) "item", NULL | |
25382 | }; | |
25383 | ||
25384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25387 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25388 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25389 | SWIG_fail; | |
d14a1e28 | 25390 | if (arg2 == NULL) { |
2f4c0a16 RD |
25391 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25392 | SWIG_fail; | |
d14a1e28 RD |
25393 | } |
25394 | { | |
25395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25396 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25397 | ||
25398 | wxPyEndAllowThreads(__tstate); | |
25399 | if (PyErr_Occurred()) SWIG_fail; | |
25400 | } | |
4f89f6a3 RD |
25401 | { |
25402 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25403 | } | |
d14a1e28 RD |
25404 | return resultobj; |
25405 | fail: | |
25406 | return NULL; | |
25407 | } | |
25408 | ||
25409 | ||
25410 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25411 | PyObject *resultobj; | |
25412 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25413 | wxTreeItemId *arg2 = 0 ; | |
25414 | bool result; | |
25415 | PyObject * obj0 = 0 ; | |
25416 | PyObject * obj1 = 0 ; | |
25417 | char *kwnames[] = { | |
25418 | (char *) "self",(char *) "item", NULL | |
25419 | }; | |
25420 | ||
25421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25425 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25426 | SWIG_fail; | |
d14a1e28 | 25427 | if (arg2 == NULL) { |
2f4c0a16 RD |
25428 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25429 | SWIG_fail; | |
d14a1e28 RD |
25430 | } |
25431 | { | |
25432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25433 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25434 | ||
25435 | wxPyEndAllowThreads(__tstate); | |
25436 | if (PyErr_Occurred()) SWIG_fail; | |
25437 | } | |
4f89f6a3 RD |
25438 | { |
25439 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25440 | } | |
d14a1e28 RD |
25441 | return resultobj; |
25442 | fail: | |
25443 | return NULL; | |
25444 | } | |
25445 | ||
25446 | ||
25447 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25448 | PyObject *resultobj; | |
25449 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25450 | wxTreeItemId *arg2 = 0 ; | |
25451 | bool result; | |
25452 | PyObject * obj0 = 0 ; | |
25453 | PyObject * obj1 = 0 ; | |
25454 | char *kwnames[] = { | |
25455 | (char *) "self",(char *) "item", NULL | |
25456 | }; | |
25457 | ||
25458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25461 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25462 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25463 | SWIG_fail; | |
d14a1e28 | 25464 | if (arg2 == NULL) { |
2f4c0a16 RD |
25465 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25466 | SWIG_fail; | |
d14a1e28 RD |
25467 | } |
25468 | { | |
25469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25470 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25471 | ||
25472 | wxPyEndAllowThreads(__tstate); | |
25473 | if (PyErr_Occurred()) SWIG_fail; | |
25474 | } | |
4f89f6a3 RD |
25475 | { |
25476 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25477 | } | |
d14a1e28 RD |
25478 | return resultobj; |
25479 | fail: | |
25480 | return NULL; | |
25481 | } | |
25482 | ||
25483 | ||
25484 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25485 | PyObject *resultobj; | |
25486 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25487 | wxTreeItemId *arg2 = 0 ; | |
25488 | bool result; | |
25489 | PyObject * obj0 = 0 ; | |
25490 | PyObject * obj1 = 0 ; | |
25491 | char *kwnames[] = { | |
25492 | (char *) "self",(char *) "item", NULL | |
25493 | }; | |
25494 | ||
25495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25498 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25499 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25500 | SWIG_fail; | |
d14a1e28 | 25501 | if (arg2 == NULL) { |
2f4c0a16 RD |
25502 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25503 | SWIG_fail; | |
d14a1e28 RD |
25504 | } |
25505 | { | |
25506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25507 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25508 | ||
25509 | wxPyEndAllowThreads(__tstate); | |
25510 | if (PyErr_Occurred()) SWIG_fail; | |
25511 | } | |
4f89f6a3 RD |
25512 | { |
25513 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25514 | } | |
d14a1e28 RD |
25515 | return resultobj; |
25516 | fail: | |
25517 | return NULL; | |
25518 | } | |
25519 | ||
25520 | ||
25521 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25522 | PyObject *resultobj; | |
25523 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25524 | wxTreeItemId *arg2 = 0 ; | |
25525 | bool result; | |
25526 | PyObject * obj0 = 0 ; | |
25527 | PyObject * obj1 = 0 ; | |
25528 | char *kwnames[] = { | |
25529 | (char *) "self",(char *) "item", NULL | |
25530 | }; | |
25531 | ||
25532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25535 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25537 | SWIG_fail; | |
d14a1e28 | 25538 | if (arg2 == NULL) { |
2f4c0a16 RD |
25539 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25540 | SWIG_fail; | |
d14a1e28 RD |
25541 | } |
25542 | { | |
25543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25544 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25545 | ||
25546 | wxPyEndAllowThreads(__tstate); | |
25547 | if (PyErr_Occurred()) SWIG_fail; | |
25548 | } | |
4f89f6a3 RD |
25549 | { |
25550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25551 | } | |
d14a1e28 RD |
25552 | return resultobj; |
25553 | fail: | |
25554 | return NULL; | |
25555 | } | |
25556 | ||
25557 | ||
25558 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25559 | PyObject *resultobj; | |
25560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25561 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25562 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25563 | size_t result; |
25564 | PyObject * obj0 = 0 ; | |
25565 | PyObject * obj1 = 0 ; | |
25566 | PyObject * obj2 = 0 ; | |
25567 | char *kwnames[] = { | |
25568 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25569 | }; | |
25570 | ||
25571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25574 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25575 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25576 | SWIG_fail; | |
d14a1e28 | 25577 | if (arg2 == NULL) { |
2f4c0a16 RD |
25578 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25579 | SWIG_fail; | |
d14a1e28 RD |
25580 | } |
25581 | if (obj2) { | |
2f4c0a16 RD |
25582 | arg3 = (bool) SWIG_AsBool(obj2); |
25583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25584 | } |
25585 | { | |
25586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25587 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25588 | ||
25589 | wxPyEndAllowThreads(__tstate); | |
25590 | if (PyErr_Occurred()) SWIG_fail; | |
25591 | } | |
2f4c0a16 | 25592 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25593 | return resultobj; |
25594 | fail: | |
25595 | return NULL; | |
25596 | } | |
25597 | ||
25598 | ||
25599 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25600 | PyObject *resultobj; | |
25601 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25602 | wxTreeItemId result; | |
25603 | PyObject * obj0 = 0 ; | |
25604 | char *kwnames[] = { | |
25605 | (char *) "self", NULL | |
25606 | }; | |
25607 | ||
25608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25611 | { |
25612 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25613 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25614 | ||
25615 | wxPyEndAllowThreads(__tstate); | |
25616 | if (PyErr_Occurred()) SWIG_fail; | |
25617 | } | |
25618 | { | |
25619 | wxTreeItemId * resultptr; | |
25620 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25621 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25622 | } |
25623 | return resultobj; | |
25624 | fail: | |
25625 | return NULL; | |
25626 | } | |
25627 | ||
25628 | ||
25629 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25630 | PyObject *resultobj; | |
25631 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25632 | wxTreeItemId result; | |
25633 | PyObject * obj0 = 0 ; | |
25634 | char *kwnames[] = { | |
25635 | (char *) "self", NULL | |
25636 | }; | |
25637 | ||
25638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25641 | { |
25642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25643 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25644 | ||
25645 | wxPyEndAllowThreads(__tstate); | |
25646 | if (PyErr_Occurred()) SWIG_fail; | |
25647 | } | |
25648 | { | |
25649 | wxTreeItemId * resultptr; | |
25650 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25651 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25652 | } |
25653 | return resultobj; | |
25654 | fail: | |
25655 | return NULL; | |
25656 | } | |
25657 | ||
25658 | ||
25659 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25660 | PyObject *resultobj; | |
25661 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25662 | PyObject *result; | |
25663 | PyObject * obj0 = 0 ; | |
25664 | char *kwnames[] = { | |
25665 | (char *) "self", NULL | |
25666 | }; | |
25667 | ||
25668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25671 | { |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
25678 | resultobj = result; | |
25679 | return resultobj; | |
25680 | fail: | |
25681 | return NULL; | |
25682 | } | |
25683 | ||
25684 | ||
25685 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25686 | PyObject *resultobj; | |
25687 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25688 | wxTreeItemId *arg2 = 0 ; | |
25689 | wxTreeItemId result; | |
25690 | PyObject * obj0 = 0 ; | |
25691 | PyObject * obj1 = 0 ; | |
25692 | char *kwnames[] = { | |
25693 | (char *) "self",(char *) "item", NULL | |
25694 | }; | |
25695 | ||
25696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25701 | SWIG_fail; | |
d14a1e28 | 25702 | if (arg2 == NULL) { |
2f4c0a16 RD |
25703 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25704 | SWIG_fail; | |
d14a1e28 RD |
25705 | } |
25706 | { | |
25707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25708 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25709 | ||
25710 | wxPyEndAllowThreads(__tstate); | |
25711 | if (PyErr_Occurred()) SWIG_fail; | |
25712 | } | |
25713 | { | |
25714 | wxTreeItemId * resultptr; | |
25715 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25717 | } |
25718 | return resultobj; | |
25719 | fail: | |
25720 | return NULL; | |
25721 | } | |
25722 | ||
25723 | ||
25724 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25725 | PyObject *resultobj; | |
25726 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25727 | wxTreeItemId *arg2 = 0 ; | |
25728 | PyObject *result; | |
25729 | PyObject * obj0 = 0 ; | |
25730 | PyObject * obj1 = 0 ; | |
25731 | char *kwnames[] = { | |
25732 | (char *) "self",(char *) "item", NULL | |
25733 | }; | |
25734 | ||
25735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25739 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25740 | SWIG_fail; | |
d14a1e28 | 25741 | if (arg2 == NULL) { |
2f4c0a16 RD |
25742 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25743 | SWIG_fail; | |
d14a1e28 RD |
25744 | } |
25745 | { | |
25746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25747 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25748 | ||
25749 | wxPyEndAllowThreads(__tstate); | |
25750 | if (PyErr_Occurred()) SWIG_fail; | |
25751 | } | |
25752 | resultobj = result; | |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
25759 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25760 | PyObject *resultobj; | |
25761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25762 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25763 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25764 | PyObject *result; |
25765 | PyObject * obj0 = 0 ; | |
25766 | PyObject * obj1 = 0 ; | |
25767 | PyObject * obj2 = 0 ; | |
25768 | char *kwnames[] = { | |
25769 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25770 | }; | |
25771 | ||
25772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25777 | SWIG_fail; | |
d14a1e28 | 25778 | if (arg2 == NULL) { |
2f4c0a16 RD |
25779 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25780 | SWIG_fail; | |
d14a1e28 | 25781 | } |
2f4c0a16 | 25782 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
25783 | { |
25784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25785 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25786 | |
25787 | wxPyEndAllowThreads(__tstate); | |
25788 | if (PyErr_Occurred()) SWIG_fail; | |
25789 | } | |
25790 | resultobj = result; | |
25791 | return resultobj; | |
25792 | fail: | |
25793 | return NULL; | |
25794 | } | |
25795 | ||
25796 | ||
25797 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25798 | PyObject *resultobj; | |
25799 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25800 | wxTreeItemId *arg2 = 0 ; | |
25801 | wxTreeItemId result; | |
25802 | PyObject * obj0 = 0 ; | |
25803 | PyObject * obj1 = 0 ; | |
25804 | char *kwnames[] = { | |
25805 | (char *) "self",(char *) "item", NULL | |
25806 | }; | |
25807 | ||
25808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25811 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25812 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25813 | SWIG_fail; | |
d14a1e28 | 25814 | if (arg2 == NULL) { |
2f4c0a16 RD |
25815 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25816 | SWIG_fail; | |
d14a1e28 RD |
25817 | } |
25818 | { | |
25819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25820 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25821 | ||
25822 | wxPyEndAllowThreads(__tstate); | |
25823 | if (PyErr_Occurred()) SWIG_fail; | |
25824 | } | |
25825 | { | |
25826 | wxTreeItemId * resultptr; | |
25827 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25828 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25829 | } |
25830 | return resultobj; | |
25831 | fail: | |
25832 | return NULL; | |
25833 | } | |
25834 | ||
25835 | ||
25836 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25837 | PyObject *resultobj; | |
25838 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25839 | wxTreeItemId *arg2 = 0 ; | |
25840 | wxTreeItemId result; | |
25841 | PyObject * obj0 = 0 ; | |
25842 | PyObject * obj1 = 0 ; | |
25843 | char *kwnames[] = { | |
25844 | (char *) "self",(char *) "item", NULL | |
25845 | }; | |
25846 | ||
25847 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25848 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25849 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25852 | SWIG_fail; | |
d14a1e28 | 25853 | if (arg2 == NULL) { |
2f4c0a16 RD |
25854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25855 | SWIG_fail; | |
d14a1e28 RD |
25856 | } |
25857 | { | |
25858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25859 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25860 | ||
25861 | wxPyEndAllowThreads(__tstate); | |
25862 | if (PyErr_Occurred()) SWIG_fail; | |
25863 | } | |
25864 | { | |
25865 | wxTreeItemId * resultptr; | |
25866 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25867 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25868 | } |
25869 | return resultobj; | |
25870 | fail: | |
25871 | return NULL; | |
25872 | } | |
25873 | ||
25874 | ||
25875 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25876 | PyObject *resultobj; | |
25877 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25878 | wxTreeItemId *arg2 = 0 ; | |
25879 | wxTreeItemId result; | |
25880 | PyObject * obj0 = 0 ; | |
25881 | PyObject * obj1 = 0 ; | |
25882 | char *kwnames[] = { | |
25883 | (char *) "self",(char *) "item", NULL | |
25884 | }; | |
25885 | ||
25886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25889 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25890 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25891 | SWIG_fail; | |
d14a1e28 | 25892 | if (arg2 == NULL) { |
2f4c0a16 RD |
25893 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25894 | SWIG_fail; | |
d14a1e28 RD |
25895 | } |
25896 | { | |
25897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25898 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25899 | ||
25900 | wxPyEndAllowThreads(__tstate); | |
25901 | if (PyErr_Occurred()) SWIG_fail; | |
25902 | } | |
25903 | { | |
25904 | wxTreeItemId * resultptr; | |
25905 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25906 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25907 | } |
25908 | return resultobj; | |
25909 | fail: | |
25910 | return NULL; | |
25911 | } | |
25912 | ||
25913 | ||
25914 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25915 | PyObject *resultobj; | |
25916 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25917 | wxTreeItemId result; | |
25918 | PyObject * obj0 = 0 ; | |
25919 | char *kwnames[] = { | |
25920 | (char *) "self", NULL | |
25921 | }; | |
25922 | ||
25923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25926 | { |
25927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25928 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25929 | ||
25930 | wxPyEndAllowThreads(__tstate); | |
25931 | if (PyErr_Occurred()) SWIG_fail; | |
25932 | } | |
25933 | { | |
25934 | wxTreeItemId * resultptr; | |
25935 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25936 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25937 | } |
25938 | return resultobj; | |
25939 | fail: | |
25940 | return NULL; | |
25941 | } | |
25942 | ||
25943 | ||
25944 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25945 | PyObject *resultobj; | |
25946 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25947 | wxTreeItemId *arg2 = 0 ; | |
25948 | wxTreeItemId result; | |
25949 | PyObject * obj0 = 0 ; | |
25950 | PyObject * obj1 = 0 ; | |
25951 | char *kwnames[] = { | |
25952 | (char *) "self",(char *) "item", NULL | |
25953 | }; | |
25954 | ||
25955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25958 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25959 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25960 | SWIG_fail; | |
d14a1e28 | 25961 | if (arg2 == NULL) { |
2f4c0a16 RD |
25962 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25963 | SWIG_fail; | |
d14a1e28 RD |
25964 | } |
25965 | { | |
25966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25967 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25968 | ||
25969 | wxPyEndAllowThreads(__tstate); | |
25970 | if (PyErr_Occurred()) SWIG_fail; | |
25971 | } | |
25972 | { | |
25973 | wxTreeItemId * resultptr; | |
25974 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25975 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25976 | } |
25977 | return resultobj; | |
25978 | fail: | |
25979 | return NULL; | |
25980 | } | |
25981 | ||
25982 | ||
25983 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25984 | PyObject *resultobj; | |
25985 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25986 | wxTreeItemId *arg2 = 0 ; | |
25987 | wxTreeItemId result; | |
25988 | PyObject * obj0 = 0 ; | |
25989 | PyObject * obj1 = 0 ; | |
25990 | char *kwnames[] = { | |
25991 | (char *) "self",(char *) "item", NULL | |
25992 | }; | |
25993 | ||
25994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
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; | |
d14a1e28 | 26000 | if (arg2 == NULL) { |
2f4c0a16 RD |
26001 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26002 | SWIG_fail; | |
d14a1e28 RD |
26003 | } |
26004 | { | |
26005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26006 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26007 | ||
26008 | wxPyEndAllowThreads(__tstate); | |
26009 | if (PyErr_Occurred()) SWIG_fail; | |
26010 | } | |
26011 | { | |
26012 | wxTreeItemId * resultptr; | |
26013 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26014 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26015 | } |
26016 | return resultobj; | |
26017 | fail: | |
26018 | return NULL; | |
26019 | } | |
26020 | ||
26021 | ||
26022 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26023 | PyObject *resultobj; | |
26024 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26025 | wxString *arg2 = 0 ; | |
26026 | int arg3 = (int) -1 ; | |
26027 | int arg4 = (int) -1 ; | |
26028 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26029 | wxTreeItemId result; | |
423f194a | 26030 | bool temp2 = False ; |
d14a1e28 RD |
26031 | PyObject * obj0 = 0 ; |
26032 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
26033 | PyObject * obj2 = 0 ; |
26034 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26035 | PyObject * obj4 = 0 ; |
26036 | char *kwnames[] = { | |
26037 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26038 | }; | |
26039 | ||
8edf1c75 | 26040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
26041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26043 | { |
26044 | arg2 = wxString_in_helper(obj1); | |
26045 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 26046 | temp2 = True; |
d14a1e28 | 26047 | } |
8edf1c75 | 26048 | if (obj2) { |
2f4c0a16 RD |
26049 | arg3 = (int) SWIG_AsInt(obj2); |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26051 | } |
26052 | if (obj3) { | |
2f4c0a16 RD |
26053 | arg4 = (int) SWIG_AsInt(obj3); |
26054 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26055 | } |
d14a1e28 | 26056 | if (obj4) { |
2f4c0a16 RD |
26057 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26059 | } |
26060 | { | |
26061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26062 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26063 | ||
26064 | wxPyEndAllowThreads(__tstate); | |
26065 | if (PyErr_Occurred()) SWIG_fail; | |
26066 | } | |
26067 | { | |
26068 | wxTreeItemId * resultptr; | |
26069 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26071 | } |
26072 | { | |
26073 | if (temp2) | |
26074 | delete arg2; | |
26075 | } | |
26076 | return resultobj; | |
26077 | fail: | |
26078 | { | |
26079 | if (temp2) | |
26080 | delete arg2; | |
26081 | } | |
26082 | return NULL; | |
26083 | } | |
26084 | ||
26085 | ||
26086 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26087 | PyObject *resultobj; | |
26088 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26089 | wxTreeItemId *arg2 = 0 ; | |
26090 | wxString *arg3 = 0 ; | |
26091 | int arg4 = (int) -1 ; | |
26092 | int arg5 = (int) -1 ; | |
26093 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26094 | wxTreeItemId result; | |
423f194a | 26095 | bool temp3 = False ; |
d14a1e28 RD |
26096 | PyObject * obj0 = 0 ; |
26097 | PyObject * obj1 = 0 ; | |
26098 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26099 | PyObject * obj3 = 0 ; |
26100 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26101 | PyObject * obj5 = 0 ; |
26102 | char *kwnames[] = { | |
26103 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26104 | }; | |
26105 | ||
8edf1c75 | 26106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26111 | SWIG_fail; | |
d14a1e28 | 26112 | if (arg2 == NULL) { |
2f4c0a16 RD |
26113 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26114 | SWIG_fail; | |
d14a1e28 RD |
26115 | } |
26116 | { | |
26117 | arg3 = wxString_in_helper(obj2); | |
26118 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26119 | temp3 = True; |
d14a1e28 | 26120 | } |
8edf1c75 | 26121 | if (obj3) { |
2f4c0a16 RD |
26122 | arg4 = (int) SWIG_AsInt(obj3); |
26123 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26124 | } |
26125 | if (obj4) { | |
2f4c0a16 RD |
26126 | arg5 = (int) SWIG_AsInt(obj4); |
26127 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26128 | } |
d14a1e28 | 26129 | if (obj5) { |
2f4c0a16 RD |
26130 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26132 | } |
26133 | { | |
26134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26135 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26136 | ||
26137 | wxPyEndAllowThreads(__tstate); | |
26138 | if (PyErr_Occurred()) SWIG_fail; | |
26139 | } | |
26140 | { | |
26141 | wxTreeItemId * resultptr; | |
26142 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26144 | } |
26145 | { | |
26146 | if (temp3) | |
26147 | delete arg3; | |
26148 | } | |
26149 | return resultobj; | |
26150 | fail: | |
26151 | { | |
26152 | if (temp3) | |
26153 | delete arg3; | |
26154 | } | |
26155 | return NULL; | |
26156 | } | |
26157 | ||
26158 | ||
26159 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26160 | PyObject *resultobj; | |
26161 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26162 | wxTreeItemId *arg2 = 0 ; | |
26163 | wxTreeItemId *arg3 = 0 ; | |
26164 | wxString *arg4 = 0 ; | |
26165 | int arg5 = (int) -1 ; | |
26166 | int arg6 = (int) -1 ; | |
26167 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26168 | wxTreeItemId result; | |
423f194a | 26169 | bool temp4 = False ; |
d14a1e28 RD |
26170 | PyObject * obj0 = 0 ; |
26171 | PyObject * obj1 = 0 ; | |
26172 | PyObject * obj2 = 0 ; | |
26173 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26174 | PyObject * obj4 = 0 ; |
26175 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26176 | PyObject * obj6 = 0 ; |
26177 | char *kwnames[] = { | |
26178 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26179 | }; | |
26180 | ||
8edf1c75 | 26181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26184 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26185 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26186 | SWIG_fail; | |
d14a1e28 | 26187 | if (arg2 == NULL) { |
2f4c0a16 RD |
26188 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26189 | SWIG_fail; | |
d14a1e28 | 26190 | } |
2f4c0a16 RD |
26191 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26192 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26193 | SWIG_fail; | |
d14a1e28 | 26194 | if (arg3 == NULL) { |
2f4c0a16 RD |
26195 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26196 | SWIG_fail; | |
d14a1e28 RD |
26197 | } |
26198 | { | |
26199 | arg4 = wxString_in_helper(obj3); | |
26200 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26201 | temp4 = True; |
d14a1e28 | 26202 | } |
8edf1c75 | 26203 | if (obj4) { |
2f4c0a16 RD |
26204 | arg5 = (int) SWIG_AsInt(obj4); |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26206 | } |
26207 | if (obj5) { | |
2f4c0a16 RD |
26208 | arg6 = (int) SWIG_AsInt(obj5); |
26209 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26210 | } |
d14a1e28 | 26211 | if (obj6) { |
2f4c0a16 RD |
26212 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26214 | } |
26215 | { | |
26216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26217 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26218 | ||
26219 | wxPyEndAllowThreads(__tstate); | |
26220 | if (PyErr_Occurred()) SWIG_fail; | |
26221 | } | |
26222 | { | |
26223 | wxTreeItemId * resultptr; | |
26224 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26225 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26226 | } |
26227 | { | |
26228 | if (temp4) | |
26229 | delete arg4; | |
26230 | } | |
26231 | return resultobj; | |
26232 | fail: | |
26233 | { | |
26234 | if (temp4) | |
26235 | delete arg4; | |
26236 | } | |
26237 | return NULL; | |
26238 | } | |
26239 | ||
26240 | ||
26241 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26242 | PyObject *resultobj; | |
26243 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26244 | wxTreeItemId *arg2 = 0 ; | |
26245 | size_t arg3 ; | |
26246 | wxString *arg4 = 0 ; | |
26247 | int arg5 = (int) -1 ; | |
26248 | int arg6 = (int) -1 ; | |
26249 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26250 | wxTreeItemId result; | |
423f194a | 26251 | bool temp4 = False ; |
d14a1e28 RD |
26252 | PyObject * obj0 = 0 ; |
26253 | PyObject * obj1 = 0 ; | |
26254 | PyObject * obj2 = 0 ; | |
26255 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26256 | PyObject * obj4 = 0 ; |
26257 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26258 | PyObject * obj6 = 0 ; |
26259 | char *kwnames[] = { | |
26260 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26261 | }; | |
26262 | ||
8edf1c75 | 26263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26267 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26268 | SWIG_fail; | |
d14a1e28 | 26269 | if (arg2 == NULL) { |
2f4c0a16 RD |
26270 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26271 | SWIG_fail; | |
83448d71 | 26272 | } |
2f4c0a16 RD |
26273 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
26274 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26275 | { |
26276 | arg4 = wxString_in_helper(obj3); | |
26277 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26278 | temp4 = True; |
d14a1e28 | 26279 | } |
8edf1c75 | 26280 | if (obj4) { |
2f4c0a16 RD |
26281 | arg5 = (int) SWIG_AsInt(obj4); |
26282 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26283 | } |
26284 | if (obj5) { | |
2f4c0a16 RD |
26285 | arg6 = (int) SWIG_AsInt(obj5); |
26286 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26287 | } |
d14a1e28 | 26288 | if (obj6) { |
2f4c0a16 RD |
26289 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26291 | } |
26292 | { | |
26293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26294 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26295 | ||
26296 | wxPyEndAllowThreads(__tstate); | |
26297 | if (PyErr_Occurred()) SWIG_fail; | |
26298 | } | |
26299 | { | |
26300 | wxTreeItemId * resultptr; | |
26301 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26303 | } |
26304 | { | |
26305 | if (temp4) | |
26306 | delete arg4; | |
26307 | } | |
26308 | return resultobj; | |
26309 | fail: | |
26310 | { | |
26311 | if (temp4) | |
26312 | delete arg4; | |
26313 | } | |
26314 | return NULL; | |
26315 | } | |
26316 | ||
26317 | ||
26318 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26319 | PyObject *resultobj; | |
26320 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26321 | wxTreeItemId *arg2 = 0 ; | |
26322 | wxString *arg3 = 0 ; | |
26323 | int arg4 = (int) -1 ; | |
26324 | int arg5 = (int) -1 ; | |
26325 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26326 | wxTreeItemId result; | |
423f194a | 26327 | bool temp3 = False ; |
d14a1e28 RD |
26328 | PyObject * obj0 = 0 ; |
26329 | PyObject * obj1 = 0 ; | |
26330 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26331 | PyObject * obj3 = 0 ; |
26332 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26333 | PyObject * obj5 = 0 ; |
26334 | char *kwnames[] = { | |
26335 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26336 | }; | |
26337 | ||
8edf1c75 | 26338 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26339 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26340 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26341 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26343 | SWIG_fail; | |
d14a1e28 | 26344 | if (arg2 == NULL) { |
2f4c0a16 RD |
26345 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26346 | SWIG_fail; | |
d14a1e28 RD |
26347 | } |
26348 | { | |
26349 | arg3 = wxString_in_helper(obj2); | |
26350 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26351 | temp3 = True; |
d14a1e28 | 26352 | } |
8edf1c75 | 26353 | if (obj3) { |
2f4c0a16 RD |
26354 | arg4 = (int) SWIG_AsInt(obj3); |
26355 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26356 | } |
26357 | if (obj4) { | |
2f4c0a16 RD |
26358 | arg5 = (int) SWIG_AsInt(obj4); |
26359 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26360 | } |
d14a1e28 | 26361 | if (obj5) { |
2f4c0a16 RD |
26362 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26364 | } |
26365 | { | |
26366 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26367 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26368 | ||
26369 | wxPyEndAllowThreads(__tstate); | |
26370 | if (PyErr_Occurred()) SWIG_fail; | |
26371 | } | |
26372 | { | |
26373 | wxTreeItemId * resultptr; | |
26374 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26375 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26376 | } |
26377 | { | |
26378 | if (temp3) | |
26379 | delete arg3; | |
26380 | } | |
26381 | return resultobj; | |
26382 | fail: | |
26383 | { | |
26384 | if (temp3) | |
26385 | delete arg3; | |
26386 | } | |
26387 | return NULL; | |
26388 | } | |
26389 | ||
26390 | ||
26391 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26392 | PyObject *resultobj; | |
26393 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26394 | wxTreeItemId *arg2 = 0 ; | |
26395 | PyObject * obj0 = 0 ; | |
26396 | PyObject * obj1 = 0 ; | |
26397 | char *kwnames[] = { | |
26398 | (char *) "self",(char *) "item", NULL | |
26399 | }; | |
26400 | ||
26401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26406 | SWIG_fail; | |
d14a1e28 | 26407 | if (arg2 == NULL) { |
2f4c0a16 RD |
26408 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26409 | SWIG_fail; | |
d14a1e28 RD |
26410 | } |
26411 | { | |
26412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26413 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26414 | ||
26415 | wxPyEndAllowThreads(__tstate); | |
26416 | if (PyErr_Occurred()) SWIG_fail; | |
26417 | } | |
26418 | Py_INCREF(Py_None); resultobj = Py_None; | |
26419 | return resultobj; | |
26420 | fail: | |
26421 | return NULL; | |
26422 | } | |
26423 | ||
26424 | ||
26425 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26426 | PyObject *resultobj; | |
26427 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26428 | wxTreeItemId *arg2 = 0 ; | |
26429 | PyObject * obj0 = 0 ; | |
26430 | PyObject * obj1 = 0 ; | |
26431 | char *kwnames[] = { | |
26432 | (char *) "self",(char *) "item", NULL | |
26433 | }; | |
26434 | ||
26435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26438 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26439 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26440 | SWIG_fail; | |
d14a1e28 | 26441 | if (arg2 == NULL) { |
2f4c0a16 RD |
26442 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26443 | SWIG_fail; | |
d14a1e28 RD |
26444 | } |
26445 | { | |
26446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26447 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
26448 | ||
26449 | wxPyEndAllowThreads(__tstate); | |
26450 | if (PyErr_Occurred()) SWIG_fail; | |
26451 | } | |
26452 | Py_INCREF(Py_None); resultobj = Py_None; | |
26453 | return resultobj; | |
26454 | fail: | |
26455 | return NULL; | |
26456 | } | |
26457 | ||
26458 | ||
26459 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26460 | PyObject *resultobj; | |
26461 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26462 | PyObject * obj0 = 0 ; | |
26463 | char *kwnames[] = { | |
26464 | (char *) "self", NULL | |
26465 | }; | |
26466 | ||
26467 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26468 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26470 | { |
26471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26472 | (arg1)->DeleteAllItems(); | |
26473 | ||
26474 | wxPyEndAllowThreads(__tstate); | |
26475 | if (PyErr_Occurred()) SWIG_fail; | |
26476 | } | |
26477 | Py_INCREF(Py_None); resultobj = Py_None; | |
26478 | return resultobj; | |
26479 | fail: | |
26480 | return NULL; | |
26481 | } | |
26482 | ||
26483 | ||
26484 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26485 | PyObject *resultobj; | |
26486 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26487 | wxTreeItemId *arg2 = 0 ; | |
26488 | PyObject * obj0 = 0 ; | |
26489 | PyObject * obj1 = 0 ; | |
26490 | char *kwnames[] = { | |
26491 | (char *) "self",(char *) "item", NULL | |
26492 | }; | |
26493 | ||
26494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26498 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26499 | SWIG_fail; | |
d14a1e28 | 26500 | if (arg2 == NULL) { |
2f4c0a16 RD |
26501 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26502 | SWIG_fail; | |
d14a1e28 RD |
26503 | } |
26504 | { | |
26505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26506 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
26507 | ||
26508 | wxPyEndAllowThreads(__tstate); | |
26509 | if (PyErr_Occurred()) SWIG_fail; | |
26510 | } | |
26511 | Py_INCREF(Py_None); resultobj = Py_None; | |
26512 | return resultobj; | |
26513 | fail: | |
26514 | return NULL; | |
26515 | } | |
26516 | ||
26517 | ||
26518 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26519 | PyObject *resultobj; | |
26520 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26521 | wxTreeItemId *arg2 = 0 ; | |
26522 | PyObject * obj0 = 0 ; | |
26523 | PyObject * obj1 = 0 ; | |
26524 | char *kwnames[] = { | |
26525 | (char *) "self",(char *) "item", NULL | |
26526 | }; | |
26527 | ||
26528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26531 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26532 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26533 | SWIG_fail; | |
d14a1e28 | 26534 | if (arg2 == NULL) { |
2f4c0a16 RD |
26535 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26536 | SWIG_fail; | |
d14a1e28 RD |
26537 | } |
26538 | { | |
26539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26540 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26541 | ||
26542 | wxPyEndAllowThreads(__tstate); | |
26543 | if (PyErr_Occurred()) SWIG_fail; | |
26544 | } | |
26545 | Py_INCREF(Py_None); resultobj = Py_None; | |
26546 | return resultobj; | |
26547 | fail: | |
26548 | return NULL; | |
26549 | } | |
26550 | ||
26551 | ||
26552 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26553 | PyObject *resultobj; | |
26554 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26555 | wxTreeItemId *arg2 = 0 ; | |
26556 | PyObject * obj0 = 0 ; | |
26557 | PyObject * obj1 = 0 ; | |
26558 | char *kwnames[] = { | |
26559 | (char *) "self",(char *) "item", NULL | |
26560 | }; | |
26561 | ||
26562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26565 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26566 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26567 | SWIG_fail; | |
d14a1e28 | 26568 | if (arg2 == NULL) { |
2f4c0a16 RD |
26569 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26570 | SWIG_fail; | |
d14a1e28 RD |
26571 | } |
26572 | { | |
26573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26574 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26575 | ||
26576 | wxPyEndAllowThreads(__tstate); | |
26577 | if (PyErr_Occurred()) SWIG_fail; | |
26578 | } | |
26579 | Py_INCREF(Py_None); resultobj = Py_None; | |
26580 | return resultobj; | |
26581 | fail: | |
26582 | return NULL; | |
26583 | } | |
26584 | ||
26585 | ||
26586 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26587 | PyObject *resultobj; | |
26588 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26589 | wxTreeItemId *arg2 = 0 ; | |
26590 | PyObject * obj0 = 0 ; | |
26591 | PyObject * obj1 = 0 ; | |
26592 | char *kwnames[] = { | |
26593 | (char *) "self",(char *) "item", NULL | |
26594 | }; | |
26595 | ||
26596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26599 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26600 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26601 | SWIG_fail; | |
d14a1e28 | 26602 | if (arg2 == NULL) { |
2f4c0a16 RD |
26603 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26604 | SWIG_fail; | |
d14a1e28 RD |
26605 | } |
26606 | { | |
26607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26608 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26609 | ||
26610 | wxPyEndAllowThreads(__tstate); | |
26611 | if (PyErr_Occurred()) SWIG_fail; | |
26612 | } | |
26613 | Py_INCREF(Py_None); resultobj = Py_None; | |
26614 | return resultobj; | |
26615 | fail: | |
26616 | return NULL; | |
26617 | } | |
26618 | ||
26619 | ||
26620 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26621 | PyObject *resultobj; | |
26622 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26623 | PyObject * obj0 = 0 ; | |
26624 | char *kwnames[] = { | |
26625 | (char *) "self", NULL | |
26626 | }; | |
26627 | ||
26628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26631 | { |
26632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26633 | (arg1)->Unselect(); | |
26634 | ||
26635 | wxPyEndAllowThreads(__tstate); | |
26636 | if (PyErr_Occurred()) SWIG_fail; | |
26637 | } | |
26638 | Py_INCREF(Py_None); resultobj = Py_None; | |
26639 | return resultobj; | |
26640 | fail: | |
26641 | return NULL; | |
26642 | } | |
26643 | ||
26644 | ||
db914595 RD |
26645 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
26646 | PyObject *resultobj; | |
26647 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26648 | wxTreeItemId *arg2 = 0 ; | |
26649 | PyObject * obj0 = 0 ; | |
26650 | PyObject * obj1 = 0 ; | |
26651 | char *kwnames[] = { | |
26652 | (char *) "self",(char *) "item", NULL | |
26653 | }; | |
26654 | ||
26655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26658 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26659 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26660 | SWIG_fail; | |
db914595 | 26661 | if (arg2 == NULL) { |
2f4c0a16 RD |
26662 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26663 | SWIG_fail; | |
db914595 RD |
26664 | } |
26665 | { | |
26666 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26667 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26668 | ||
26669 | wxPyEndAllowThreads(__tstate); | |
26670 | if (PyErr_Occurred()) SWIG_fail; | |
26671 | } | |
26672 | Py_INCREF(Py_None); resultobj = Py_None; | |
26673 | return resultobj; | |
26674 | fail: | |
26675 | return NULL; | |
26676 | } | |
26677 | ||
26678 | ||
d14a1e28 RD |
26679 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26680 | PyObject *resultobj; | |
26681 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26682 | PyObject * obj0 = 0 ; | |
26683 | char *kwnames[] = { | |
26684 | (char *) "self", NULL | |
26685 | }; | |
26686 | ||
26687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26690 | { |
26691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26692 | (arg1)->UnselectAll(); | |
26693 | ||
26694 | wxPyEndAllowThreads(__tstate); | |
26695 | if (PyErr_Occurred()) SWIG_fail; | |
26696 | } | |
26697 | Py_INCREF(Py_None); resultobj = Py_None; | |
26698 | return resultobj; | |
26699 | fail: | |
26700 | return NULL; | |
26701 | } | |
26702 | ||
26703 | ||
26704 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26705 | PyObject *resultobj; |
26706 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26707 | wxTreeItemId *arg2 = 0 ; | |
26708 | bool arg3 = (bool) True ; | |
26709 | PyObject * obj0 = 0 ; | |
26710 | PyObject * obj1 = 0 ; | |
26711 | PyObject * obj2 = 0 ; | |
26712 | char *kwnames[] = { | |
26713 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26714 | }; | |
26715 | ||
26716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26719 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26720 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26721 | SWIG_fail; | |
db914595 | 26722 | if (arg2 == NULL) { |
2f4c0a16 RD |
26723 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26724 | SWIG_fail; | |
db914595 RD |
26725 | } |
26726 | if (obj2) { | |
2f4c0a16 RD |
26727 | arg3 = (bool) SWIG_AsBool(obj2); |
26728 | if (PyErr_Occurred()) SWIG_fail; | |
db914595 RD |
26729 | } |
26730 | { | |
26731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26732 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26733 | ||
26734 | wxPyEndAllowThreads(__tstate); | |
26735 | if (PyErr_Occurred()) SWIG_fail; | |
26736 | } | |
26737 | Py_INCREF(Py_None); resultobj = Py_None; | |
26738 | return resultobj; | |
26739 | fail: | |
26740 | return NULL; | |
26741 | } | |
26742 | ||
26743 | ||
26744 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26745 | PyObject *resultobj; |
26746 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26747 | wxTreeItemId *arg2 = 0 ; | |
26748 | PyObject * obj0 = 0 ; | |
26749 | PyObject * obj1 = 0 ; | |
26750 | char *kwnames[] = { | |
26751 | (char *) "self",(char *) "item", NULL | |
26752 | }; | |
26753 | ||
db914595 | 26754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26759 | SWIG_fail; | |
d14a1e28 | 26760 | if (arg2 == NULL) { |
2f4c0a16 RD |
26761 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26762 | SWIG_fail; | |
d14a1e28 RD |
26763 | } |
26764 | { | |
26765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26766 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26767 | |
26768 | wxPyEndAllowThreads(__tstate); | |
26769 | if (PyErr_Occurred()) SWIG_fail; | |
26770 | } | |
26771 | Py_INCREF(Py_None); resultobj = Py_None; | |
26772 | return resultobj; | |
26773 | fail: | |
26774 | return NULL; | |
26775 | } | |
26776 | ||
26777 | ||
26778 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26779 | PyObject *resultobj; | |
26780 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26781 | wxTreeItemId *arg2 = 0 ; | |
26782 | PyObject * obj0 = 0 ; | |
26783 | PyObject * obj1 = 0 ; | |
26784 | char *kwnames[] = { | |
26785 | (char *) "self",(char *) "item", NULL | |
26786 | }; | |
26787 | ||
26788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26793 | SWIG_fail; | |
d14a1e28 | 26794 | if (arg2 == NULL) { |
2f4c0a16 RD |
26795 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26796 | SWIG_fail; | |
d14a1e28 RD |
26797 | } |
26798 | { | |
26799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26800 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26801 | ||
26802 | wxPyEndAllowThreads(__tstate); | |
26803 | if (PyErr_Occurred()) SWIG_fail; | |
26804 | } | |
26805 | Py_INCREF(Py_None); resultobj = Py_None; | |
26806 | return resultobj; | |
26807 | fail: | |
26808 | return NULL; | |
26809 | } | |
26810 | ||
26811 | ||
26812 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26813 | PyObject *resultobj; | |
26814 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26815 | wxTreeItemId *arg2 = 0 ; | |
26816 | PyObject * obj0 = 0 ; | |
26817 | PyObject * obj1 = 0 ; | |
26818 | char *kwnames[] = { | |
26819 | (char *) "self",(char *) "item", NULL | |
26820 | }; | |
26821 | ||
26822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26825 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26826 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26827 | SWIG_fail; | |
d14a1e28 | 26828 | if (arg2 == NULL) { |
2f4c0a16 RD |
26829 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26830 | SWIG_fail; | |
d14a1e28 RD |
26831 | } |
26832 | { | |
26833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26834 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26835 | ||
26836 | wxPyEndAllowThreads(__tstate); | |
26837 | if (PyErr_Occurred()) SWIG_fail; | |
26838 | } | |
26839 | Py_INCREF(Py_None); resultobj = Py_None; | |
26840 | return resultobj; | |
26841 | fail: | |
26842 | return NULL; | |
26843 | } | |
26844 | ||
26845 | ||
26846 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26847 | PyObject *resultobj; | |
26848 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26849 | wxTreeItemId *arg2 = 0 ; | |
26850 | PyObject * obj0 = 0 ; | |
26851 | PyObject * obj1 = 0 ; | |
26852 | char *kwnames[] = { | |
26853 | (char *) "self",(char *) "item", NULL | |
26854 | }; | |
26855 | ||
26856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26859 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26860 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26861 | SWIG_fail; | |
d14a1e28 | 26862 | if (arg2 == NULL) { |
2f4c0a16 RD |
26863 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26864 | SWIG_fail; | |
d14a1e28 RD |
26865 | } |
26866 | { | |
26867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26868 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26869 | ||
26870 | wxPyEndAllowThreads(__tstate); | |
26871 | if (PyErr_Occurred()) SWIG_fail; | |
26872 | } | |
26873 | Py_INCREF(Py_None); resultobj = Py_None; | |
26874 | return resultobj; | |
26875 | fail: | |
26876 | return NULL; | |
26877 | } | |
26878 | ||
26879 | ||
26880 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26881 | PyObject *resultobj; | |
26882 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26883 | wxTextCtrl *result; | |
26884 | PyObject * obj0 = 0 ; | |
26885 | char *kwnames[] = { | |
26886 | (char *) "self", NULL | |
26887 | }; | |
26888 | ||
26889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26892 | { |
26893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26894 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26895 | ||
26896 | wxPyEndAllowThreads(__tstate); | |
26897 | if (PyErr_Occurred()) SWIG_fail; | |
26898 | } | |
26899 | { | |
26900 | resultobj = wxPyMake_wxObject(result); | |
26901 | } | |
26902 | return resultobj; | |
26903 | fail: | |
26904 | return NULL; | |
26905 | } | |
26906 | ||
26907 | ||
26908 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26909 | PyObject *resultobj; | |
26910 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26911 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26912 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26913 | PyObject * obj0 = 0 ; |
26914 | PyObject * obj1 = 0 ; | |
26915 | PyObject * obj2 = 0 ; | |
26916 | char *kwnames[] = { | |
26917 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26918 | }; | |
26919 | ||
26920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26925 | SWIG_fail; | |
d14a1e28 | 26926 | if (arg2 == NULL) { |
2f4c0a16 RD |
26927 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26928 | SWIG_fail; | |
d14a1e28 RD |
26929 | } |
26930 | if (obj2) { | |
2f4c0a16 RD |
26931 | arg3 = (bool) SWIG_AsBool(obj2); |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26933 | } |
26934 | { | |
26935 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26936 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26937 | ||
26938 | wxPyEndAllowThreads(__tstate); | |
26939 | if (PyErr_Occurred()) SWIG_fail; | |
26940 | } | |
26941 | Py_INCREF(Py_None); resultobj = Py_None; | |
26942 | return resultobj; | |
26943 | fail: | |
26944 | return NULL; | |
26945 | } | |
26946 | ||
26947 | ||
26948 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26949 | PyObject *resultobj; | |
26950 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26951 | wxTreeItemId *arg2 = 0 ; | |
26952 | PyObject * obj0 = 0 ; | |
26953 | PyObject * obj1 = 0 ; | |
26954 | char *kwnames[] = { | |
26955 | (char *) "self",(char *) "item", NULL | |
26956 | }; | |
26957 | ||
26958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26961 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26962 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26963 | SWIG_fail; | |
d14a1e28 | 26964 | if (arg2 == NULL) { |
2f4c0a16 RD |
26965 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26966 | SWIG_fail; | |
d14a1e28 RD |
26967 | } |
26968 | { | |
26969 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26970 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26971 | ||
26972 | wxPyEndAllowThreads(__tstate); | |
26973 | if (PyErr_Occurred()) SWIG_fail; | |
26974 | } | |
26975 | Py_INCREF(Py_None); resultobj = Py_None; | |
26976 | return resultobj; | |
26977 | fail: | |
26978 | return NULL; | |
26979 | } | |
26980 | ||
26981 | ||
26982 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26983 | PyObject *resultobj; | |
26984 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26985 | wxPoint *arg2 = 0 ; | |
26986 | int *arg3 = 0 ; | |
26987 | wxTreeItemId result; | |
26988 | wxPoint temp2 ; | |
26989 | int temp3 ; | |
26990 | PyObject * obj0 = 0 ; | |
26991 | PyObject * obj1 = 0 ; | |
26992 | char *kwnames[] = { | |
26993 | (char *) "self",(char *) "point", NULL | |
26994 | }; | |
26995 | ||
26996 | arg3 = &temp3; | |
26997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27000 | { |
27001 | arg2 = &temp2; | |
27002 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27003 | } | |
27004 | { | |
27005 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27006 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27007 | ||
27008 | wxPyEndAllowThreads(__tstate); | |
27009 | if (PyErr_Occurred()) SWIG_fail; | |
27010 | } | |
27011 | { | |
27012 | wxTreeItemId * resultptr; | |
27013 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27014 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27015 | } |
27016 | { | |
27017 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27018 | resultobj = t_output_helper(resultobj,o); | |
27019 | } | |
27020 | return resultobj; | |
27021 | fail: | |
27022 | return NULL; | |
27023 | } | |
27024 | ||
27025 | ||
27026 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27027 | PyObject *resultobj; | |
27028 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27029 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 27030 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27031 | PyObject *result; |
27032 | PyObject * obj0 = 0 ; | |
27033 | PyObject * obj1 = 0 ; | |
27034 | PyObject * obj2 = 0 ; | |
27035 | char *kwnames[] = { | |
27036 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27037 | }; | |
27038 | ||
27039 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27040 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27042 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27043 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27044 | SWIG_fail; | |
d14a1e28 | 27045 | if (arg2 == NULL) { |
2f4c0a16 RD |
27046 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27047 | SWIG_fail; | |
d14a1e28 RD |
27048 | } |
27049 | if (obj2) { | |
2f4c0a16 RD |
27050 | arg3 = (bool) SWIG_AsBool(obj2); |
27051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27052 | } |
27053 | { | |
27054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27055 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27056 | ||
27057 | wxPyEndAllowThreads(__tstate); | |
27058 | if (PyErr_Occurred()) SWIG_fail; | |
27059 | } | |
27060 | resultobj = result; | |
27061 | return resultobj; | |
27062 | fail: | |
27063 | return NULL; | |
27064 | } | |
27065 | ||
27066 | ||
74a57fcd RD |
27067 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27068 | PyObject *resultobj; | |
27069 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27070 | wxVisualAttributes result; | |
27071 | PyObject * obj0 = 0 ; | |
27072 | char *kwnames[] = { | |
27073 | (char *) "variant", NULL | |
27074 | }; | |
27075 | ||
27076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27077 | if (obj0) { | |
27078 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27079 | if (PyErr_Occurred()) SWIG_fail; | |
27080 | } | |
27081 | { | |
27082 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27083 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27084 | ||
27085 | wxPyEndAllowThreads(__tstate); | |
27086 | if (PyErr_Occurred()) SWIG_fail; | |
27087 | } | |
27088 | { | |
27089 | wxVisualAttributes * resultptr; | |
27090 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27091 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27092 | } | |
27093 | return resultobj; | |
27094 | fail: | |
27095 | return NULL; | |
27096 | } | |
27097 | ||
27098 | ||
d14a1e28 RD |
27099 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { |
27100 | PyObject *obj; | |
27101 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27102 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27103 | Py_INCREF(obj); | |
27104 | return Py_BuildValue((char *)""); | |
27105 | } | |
2f4c0a16 | 27106 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
d03fd34d RD |
27107 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
27108 | return 1; | |
27109 | } | |
27110 | ||
27111 | ||
27112 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27113 | PyObject *pyobj; | |
27114 | ||
27115 | { | |
27116 | #if wxUSE_UNICODE | |
27117 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27118 | #else | |
27119 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27120 | #endif | |
27121 | } | |
27122 | return pyobj; | |
27123 | } | |
27124 | ||
27125 | ||
d14a1e28 RD |
27126 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27127 | PyObject *resultobj; | |
27128 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27129 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27130 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27131 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27132 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27133 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27134 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27135 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27136 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27137 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27138 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27139 | int arg8 = (int) 0 ; | |
d03fd34d | 27140 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27141 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27142 | wxGenericDirCtrl *result; | |
423f194a | 27143 | bool temp3 = False ; |
d14a1e28 RD |
27144 | wxPoint temp4 ; |
27145 | wxSize temp5 ; | |
423f194a RD |
27146 | bool temp7 = False ; |
27147 | bool temp9 = False ; | |
d14a1e28 | 27148 | PyObject * obj0 = 0 ; |
8edf1c75 | 27149 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27150 | PyObject * obj2 = 0 ; |
27151 | PyObject * obj3 = 0 ; | |
27152 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27153 | PyObject * obj5 = 0 ; |
d14a1e28 | 27154 | PyObject * obj6 = 0 ; |
8edf1c75 | 27155 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27156 | PyObject * obj8 = 0 ; |
27157 | char *kwnames[] = { | |
27158 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27159 | }; | |
27160 | ||
8edf1c75 | 27161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
27162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27164 | if (obj1) { |
2f4c0a16 RD |
27165 | arg2 = (int const) SWIG_AsInt(obj1); |
27166 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27167 | } |
d14a1e28 RD |
27168 | if (obj2) { |
27169 | { | |
27170 | arg3 = wxString_in_helper(obj2); | |
27171 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27172 | temp3 = True; |
d14a1e28 RD |
27173 | } |
27174 | } | |
27175 | if (obj3) { | |
27176 | { | |
27177 | arg4 = &temp4; | |
27178 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27179 | } | |
27180 | } | |
27181 | if (obj4) { | |
27182 | { | |
27183 | arg5 = &temp5; | |
27184 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27185 | } | |
27186 | } | |
8edf1c75 | 27187 | if (obj5) { |
2f4c0a16 RD |
27188 | arg6 = (long) SWIG_AsLong(obj5); |
27189 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27190 | } |
d14a1e28 RD |
27191 | if (obj6) { |
27192 | { | |
27193 | arg7 = wxString_in_helper(obj6); | |
27194 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27195 | temp7 = True; |
d14a1e28 RD |
27196 | } |
27197 | } | |
8edf1c75 | 27198 | if (obj7) { |
2f4c0a16 RD |
27199 | arg8 = (int) SWIG_AsInt(obj7); |
27200 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27201 | } |
d14a1e28 RD |
27202 | if (obj8) { |
27203 | { | |
27204 | arg9 = wxString_in_helper(obj8); | |
27205 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 27206 | temp9 = True; |
d14a1e28 RD |
27207 | } |
27208 | } | |
27209 | { | |
27210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27211 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27212 | ||
27213 | wxPyEndAllowThreads(__tstate); | |
27214 | if (PyErr_Occurred()) SWIG_fail; | |
27215 | } | |
2f4c0a16 | 27216 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27217 | { |
27218 | if (temp3) | |
27219 | delete arg3; | |
27220 | } | |
27221 | { | |
27222 | if (temp7) | |
27223 | delete arg7; | |
27224 | } | |
27225 | { | |
27226 | if (temp9) | |
27227 | delete arg9; | |
27228 | } | |
27229 | return resultobj; | |
27230 | fail: | |
27231 | { | |
27232 | if (temp3) | |
27233 | delete arg3; | |
27234 | } | |
27235 | { | |
27236 | if (temp7) | |
27237 | delete arg7; | |
27238 | } | |
27239 | { | |
27240 | if (temp9) | |
27241 | delete arg9; | |
27242 | } | |
27243 | return NULL; | |
27244 | } | |
27245 | ||
27246 | ||
27247 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27248 | PyObject *resultobj; | |
27249 | wxGenericDirCtrl *result; | |
27250 | char *kwnames[] = { | |
27251 | NULL | |
27252 | }; | |
27253 | ||
27254 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27255 | { | |
27256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27257 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27258 | ||
27259 | wxPyEndAllowThreads(__tstate); | |
27260 | if (PyErr_Occurred()) SWIG_fail; | |
27261 | } | |
2f4c0a16 | 27262 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27263 | return resultobj; |
27264 | fail: | |
27265 | return NULL; | |
27266 | } | |
27267 | ||
27268 | ||
27269 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27270 | PyObject *resultobj; | |
27271 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27272 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 27273 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27274 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27275 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27276 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27277 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27278 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27279 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27280 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27281 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27282 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27283 | int arg9 = (int) 0 ; | |
d03fd34d | 27284 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27285 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
27286 | bool result; | |
423f194a | 27287 | bool temp4 = False ; |
d14a1e28 RD |
27288 | wxPoint temp5 ; |
27289 | wxSize temp6 ; | |
423f194a RD |
27290 | bool temp8 = False ; |
27291 | bool temp10 = False ; | |
d14a1e28 RD |
27292 | PyObject * obj0 = 0 ; |
27293 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27294 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27295 | PyObject * obj3 = 0 ; |
27296 | PyObject * obj4 = 0 ; | |
27297 | PyObject * obj5 = 0 ; | |
8edf1c75 | 27298 | PyObject * obj6 = 0 ; |
d14a1e28 | 27299 | PyObject * obj7 = 0 ; |
8edf1c75 | 27300 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
27301 | PyObject * obj9 = 0 ; |
27302 | char *kwnames[] = { | |
27303 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27304 | }; | |
27305 | ||
8edf1c75 | 27306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
2f4c0a16 RD |
27307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27311 | if (obj2) { |
2f4c0a16 RD |
27312 | arg3 = (int const) SWIG_AsInt(obj2); |
27313 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27314 | } |
d14a1e28 RD |
27315 | if (obj3) { |
27316 | { | |
27317 | arg4 = wxString_in_helper(obj3); | |
27318 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27319 | temp4 = True; |
d14a1e28 RD |
27320 | } |
27321 | } | |
27322 | if (obj4) { | |
27323 | { | |
27324 | arg5 = &temp5; | |
27325 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27326 | } | |
27327 | } | |
27328 | if (obj5) { | |
27329 | { | |
27330 | arg6 = &temp6; | |
27331 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27332 | } | |
27333 | } | |
8edf1c75 | 27334 | if (obj6) { |
2f4c0a16 RD |
27335 | arg7 = (long) SWIG_AsLong(obj6); |
27336 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27337 | } |
d14a1e28 RD |
27338 | if (obj7) { |
27339 | { | |
27340 | arg8 = wxString_in_helper(obj7); | |
27341 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 27342 | temp8 = True; |
d14a1e28 RD |
27343 | } |
27344 | } | |
8edf1c75 | 27345 | if (obj8) { |
2f4c0a16 RD |
27346 | arg9 = (int) SWIG_AsInt(obj8); |
27347 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27348 | } |
d14a1e28 RD |
27349 | if (obj9) { |
27350 | { | |
27351 | arg10 = wxString_in_helper(obj9); | |
27352 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 27353 | temp10 = True; |
d14a1e28 RD |
27354 | } |
27355 | } | |
27356 | { | |
27357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27358 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27359 | ||
27360 | wxPyEndAllowThreads(__tstate); | |
27361 | if (PyErr_Occurred()) SWIG_fail; | |
27362 | } | |
4f89f6a3 RD |
27363 | { |
27364 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27365 | } | |
d14a1e28 RD |
27366 | { |
27367 | if (temp4) | |
27368 | delete arg4; | |
27369 | } | |
27370 | { | |
27371 | if (temp8) | |
27372 | delete arg8; | |
27373 | } | |
27374 | { | |
27375 | if (temp10) | |
27376 | delete arg10; | |
27377 | } | |
27378 | return resultobj; | |
27379 | fail: | |
27380 | { | |
27381 | if (temp4) | |
27382 | delete arg4; | |
27383 | } | |
27384 | { | |
27385 | if (temp8) | |
27386 | delete arg8; | |
27387 | } | |
27388 | { | |
27389 | if (temp10) | |
27390 | delete arg10; | |
27391 | } | |
27392 | return NULL; | |
27393 | } | |
27394 | ||
27395 | ||
27396 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27397 | PyObject *resultobj; | |
27398 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27399 | wxString *arg2 = 0 ; | |
27400 | bool result; | |
423f194a | 27401 | bool temp2 = False ; |
d14a1e28 RD |
27402 | PyObject * obj0 = 0 ; |
27403 | PyObject * obj1 = 0 ; | |
27404 | char *kwnames[] = { | |
27405 | (char *) "self",(char *) "path", NULL | |
27406 | }; | |
27407 | ||
27408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27411 | { |
27412 | arg2 = wxString_in_helper(obj1); | |
27413 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27414 | temp2 = True; |
d14a1e28 RD |
27415 | } |
27416 | { | |
27417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27418 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27419 | ||
27420 | wxPyEndAllowThreads(__tstate); | |
27421 | if (PyErr_Occurred()) SWIG_fail; | |
27422 | } | |
4f89f6a3 RD |
27423 | { |
27424 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27425 | } | |
d14a1e28 RD |
27426 | { |
27427 | if (temp2) | |
27428 | delete arg2; | |
27429 | } | |
27430 | return resultobj; | |
27431 | fail: | |
27432 | { | |
27433 | if (temp2) | |
27434 | delete arg2; | |
27435 | } | |
27436 | return NULL; | |
27437 | } | |
27438 | ||
27439 | ||
27440 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27441 | PyObject *resultobj; | |
27442 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27443 | wxString result; | |
27444 | PyObject * obj0 = 0 ; | |
27445 | char *kwnames[] = { | |
27446 | (char *) "self", NULL | |
27447 | }; | |
27448 | ||
27449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27452 | { |
27453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27454 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27455 | ||
27456 | wxPyEndAllowThreads(__tstate); | |
27457 | if (PyErr_Occurred()) SWIG_fail; | |
27458 | } | |
27459 | { | |
27460 | #if wxUSE_UNICODE | |
27461 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27462 | #else | |
27463 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27464 | #endif | |
27465 | } | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27473 | PyObject *resultobj; | |
27474 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27475 | wxString *arg2 = 0 ; | |
423f194a | 27476 | bool temp2 = False ; |
d14a1e28 RD |
27477 | PyObject * obj0 = 0 ; |
27478 | PyObject * obj1 = 0 ; | |
27479 | char *kwnames[] = { | |
27480 | (char *) "self",(char *) "path", NULL | |
27481 | }; | |
27482 | ||
27483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27486 | { |
27487 | arg2 = wxString_in_helper(obj1); | |
27488 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27489 | temp2 = True; |
d14a1e28 RD |
27490 | } |
27491 | { | |
27492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27493 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
27494 | ||
27495 | wxPyEndAllowThreads(__tstate); | |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
27497 | } | |
27498 | Py_INCREF(Py_None); resultobj = Py_None; | |
27499 | { | |
27500 | if (temp2) | |
27501 | delete arg2; | |
27502 | } | |
27503 | return resultobj; | |
27504 | fail: | |
27505 | { | |
27506 | if (temp2) | |
27507 | delete arg2; | |
27508 | } | |
27509 | return NULL; | |
27510 | } | |
27511 | ||
27512 | ||
27513 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27514 | PyObject *resultobj; | |
27515 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27516 | wxString result; | |
27517 | PyObject * obj0 = 0 ; | |
27518 | char *kwnames[] = { | |
27519 | (char *) "self", NULL | |
27520 | }; | |
27521 | ||
27522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27525 | { |
27526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27527 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
27528 | ||
27529 | wxPyEndAllowThreads(__tstate); | |
27530 | if (PyErr_Occurred()) SWIG_fail; | |
27531 | } | |
27532 | { | |
27533 | #if wxUSE_UNICODE | |
27534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27535 | #else | |
27536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27537 | #endif | |
27538 | } | |
27539 | return resultobj; | |
27540 | fail: | |
27541 | return NULL; | |
27542 | } | |
27543 | ||
27544 | ||
27545 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27546 | PyObject *resultobj; | |
27547 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27548 | wxString result; | |
27549 | PyObject * obj0 = 0 ; | |
27550 | char *kwnames[] = { | |
27551 | (char *) "self", NULL | |
27552 | }; | |
27553 | ||
27554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27557 | { |
27558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27559 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
27560 | ||
27561 | wxPyEndAllowThreads(__tstate); | |
27562 | if (PyErr_Occurred()) SWIG_fail; | |
27563 | } | |
27564 | { | |
27565 | #if wxUSE_UNICODE | |
27566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27567 | #else | |
27568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27569 | #endif | |
27570 | } | |
27571 | return resultobj; | |
27572 | fail: | |
27573 | return NULL; | |
27574 | } | |
27575 | ||
27576 | ||
27577 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27578 | PyObject *resultobj; | |
27579 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27580 | wxString *arg2 = 0 ; | |
423f194a | 27581 | bool temp2 = False ; |
d14a1e28 RD |
27582 | PyObject * obj0 = 0 ; |
27583 | PyObject * obj1 = 0 ; | |
27584 | char *kwnames[] = { | |
27585 | (char *) "self",(char *) "path", NULL | |
27586 | }; | |
27587 | ||
27588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27591 | { |
27592 | arg2 = wxString_in_helper(obj1); | |
27593 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27594 | temp2 = True; |
d14a1e28 RD |
27595 | } |
27596 | { | |
27597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27598 | (arg1)->SetPath((wxString const &)*arg2); | |
27599 | ||
27600 | wxPyEndAllowThreads(__tstate); | |
27601 | if (PyErr_Occurred()) SWIG_fail; | |
27602 | } | |
27603 | Py_INCREF(Py_None); resultobj = Py_None; | |
27604 | { | |
27605 | if (temp2) | |
27606 | delete arg2; | |
27607 | } | |
27608 | return resultobj; | |
27609 | fail: | |
27610 | { | |
27611 | if (temp2) | |
27612 | delete arg2; | |
27613 | } | |
27614 | return NULL; | |
27615 | } | |
27616 | ||
27617 | ||
27618 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27619 | PyObject *resultobj; | |
27620 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27621 | bool arg2 ; | |
27622 | PyObject * obj0 = 0 ; | |
27623 | PyObject * obj1 = 0 ; | |
27624 | char *kwnames[] = { | |
27625 | (char *) "self",(char *) "show", NULL | |
27626 | }; | |
27627 | ||
27628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27631 | arg2 = (bool) SWIG_AsBool(obj1); | |
27632 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27633 | { |
27634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27635 | (arg1)->ShowHidden(arg2); | |
27636 | ||
27637 | wxPyEndAllowThreads(__tstate); | |
27638 | if (PyErr_Occurred()) SWIG_fail; | |
27639 | } | |
27640 | Py_INCREF(Py_None); resultobj = Py_None; | |
27641 | return resultobj; | |
27642 | fail: | |
27643 | return NULL; | |
27644 | } | |
27645 | ||
27646 | ||
27647 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27648 | PyObject *resultobj; | |
27649 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27650 | bool result; | |
27651 | PyObject * obj0 = 0 ; | |
27652 | char *kwnames[] = { | |
27653 | (char *) "self", NULL | |
27654 | }; | |
27655 | ||
27656 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27657 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27658 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27659 | { |
27660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27661 | result = (bool)(arg1)->GetShowHidden(); | |
27662 | ||
27663 | wxPyEndAllowThreads(__tstate); | |
27664 | if (PyErr_Occurred()) SWIG_fail; | |
27665 | } | |
4f89f6a3 RD |
27666 | { |
27667 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27668 | } | |
d14a1e28 RD |
27669 | return resultobj; |
27670 | fail: | |
27671 | return NULL; | |
27672 | } | |
27673 | ||
27674 | ||
27675 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27676 | PyObject *resultobj; | |
27677 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27678 | wxString result; | |
27679 | PyObject * obj0 = 0 ; | |
27680 | char *kwnames[] = { | |
27681 | (char *) "self", NULL | |
27682 | }; | |
27683 | ||
27684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27687 | { |
27688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27689 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27690 | ||
27691 | wxPyEndAllowThreads(__tstate); | |
27692 | if (PyErr_Occurred()) SWIG_fail; | |
27693 | } | |
27694 | { | |
27695 | #if wxUSE_UNICODE | |
27696 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27697 | #else | |
27698 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27699 | #endif | |
27700 | } | |
27701 | return resultobj; | |
27702 | fail: | |
27703 | return NULL; | |
27704 | } | |
27705 | ||
27706 | ||
27707 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27708 | PyObject *resultobj; | |
27709 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27710 | wxString *arg2 = 0 ; | |
423f194a | 27711 | bool temp2 = False ; |
d14a1e28 RD |
27712 | PyObject * obj0 = 0 ; |
27713 | PyObject * obj1 = 0 ; | |
27714 | char *kwnames[] = { | |
27715 | (char *) "self",(char *) "filter", NULL | |
27716 | }; | |
27717 | ||
27718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27721 | { |
27722 | arg2 = wxString_in_helper(obj1); | |
27723 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27724 | temp2 = True; |
d14a1e28 RD |
27725 | } |
27726 | { | |
27727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27728 | (arg1)->SetFilter((wxString const &)*arg2); | |
27729 | ||
27730 | wxPyEndAllowThreads(__tstate); | |
27731 | if (PyErr_Occurred()) SWIG_fail; | |
27732 | } | |
27733 | Py_INCREF(Py_None); resultobj = Py_None; | |
27734 | { | |
27735 | if (temp2) | |
27736 | delete arg2; | |
27737 | } | |
27738 | return resultobj; | |
27739 | fail: | |
27740 | { | |
27741 | if (temp2) | |
27742 | delete arg2; | |
27743 | } | |
27744 | return NULL; | |
27745 | } | |
27746 | ||
27747 | ||
27748 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27749 | PyObject *resultobj; | |
27750 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27751 | int result; | |
27752 | PyObject * obj0 = 0 ; | |
27753 | char *kwnames[] = { | |
27754 | (char *) "self", NULL | |
27755 | }; | |
27756 | ||
27757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27760 | { |
27761 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27762 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27763 | ||
27764 | wxPyEndAllowThreads(__tstate); | |
27765 | if (PyErr_Occurred()) SWIG_fail; | |
27766 | } | |
2f4c0a16 | 27767 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27768 | return resultobj; |
27769 | fail: | |
27770 | return NULL; | |
27771 | } | |
27772 | ||
27773 | ||
27774 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27775 | PyObject *resultobj; | |
27776 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27777 | int arg2 ; | |
27778 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27779 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27780 | char *kwnames[] = { |
27781 | (char *) "self",(char *) "n", NULL | |
27782 | }; | |
27783 | ||
8edf1c75 | 27784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
27785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27787 | arg2 = (int) SWIG_AsInt(obj1); | |
27788 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27789 | { |
27790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27791 | (arg1)->SetFilterIndex(arg2); | |
27792 | ||
27793 | wxPyEndAllowThreads(__tstate); | |
27794 | if (PyErr_Occurred()) SWIG_fail; | |
27795 | } | |
27796 | Py_INCREF(Py_None); resultobj = Py_None; | |
27797 | return resultobj; | |
27798 | fail: | |
27799 | return NULL; | |
27800 | } | |
27801 | ||
27802 | ||
27803 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27804 | PyObject *resultobj; | |
27805 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27806 | wxTreeItemId result; | |
27807 | PyObject * obj0 = 0 ; | |
27808 | char *kwnames[] = { | |
27809 | (char *) "self", NULL | |
27810 | }; | |
27811 | ||
27812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27815 | { |
27816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27817 | result = (arg1)->GetRootId(); | |
27818 | ||
27819 | wxPyEndAllowThreads(__tstate); | |
27820 | if (PyErr_Occurred()) SWIG_fail; | |
27821 | } | |
27822 | { | |
27823 | wxTreeItemId * resultptr; | |
27824 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27826 | } |
27827 | return resultobj; | |
27828 | fail: | |
27829 | return NULL; | |
27830 | } | |
27831 | ||
27832 | ||
27833 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27834 | PyObject *resultobj; | |
27835 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27836 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27837 | PyObject * obj0 = 0 ; |
27838 | char *kwnames[] = { | |
27839 | (char *) "self", NULL | |
27840 | }; | |
27841 | ||
27842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27845 | { |
27846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27847 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27848 | |
27849 | wxPyEndAllowThreads(__tstate); | |
27850 | if (PyErr_Occurred()) SWIG_fail; | |
27851 | } | |
27852 | { | |
27853 | resultobj = wxPyMake_wxObject(result); | |
27854 | } | |
27855 | return resultobj; | |
27856 | fail: | |
27857 | return NULL; | |
27858 | } | |
27859 | ||
27860 | ||
27861 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27862 | PyObject *resultobj; | |
27863 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27864 | wxDirFilterListCtrl *result; | |
27865 | PyObject * obj0 = 0 ; | |
27866 | char *kwnames[] = { | |
27867 | (char *) "self", NULL | |
27868 | }; | |
27869 | ||
27870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27873 | { |
27874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27875 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27876 | ||
27877 | wxPyEndAllowThreads(__tstate); | |
27878 | if (PyErr_Occurred()) SWIG_fail; | |
27879 | } | |
2f4c0a16 | 27880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
27881 | return resultobj; |
27882 | fail: | |
27883 | return NULL; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27888 | PyObject *resultobj; | |
27889 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27890 | wxTreeItemId arg2 ; | |
27891 | wxString *arg3 = 0 ; | |
27892 | bool *arg4 = 0 ; | |
27893 | wxTreeItemId result; | |
27894 | wxTreeItemId *argp2 ; | |
423f194a | 27895 | bool temp3 = False ; |
d14a1e28 RD |
27896 | bool temp4 ; |
27897 | PyObject * obj0 = 0 ; | |
27898 | PyObject * obj1 = 0 ; | |
27899 | PyObject * obj2 = 0 ; | |
27900 | char *kwnames[] = { | |
27901 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27902 | }; | |
27903 | ||
27904 | arg4 = &temp4; | |
27905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27908 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
27909 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27910 | arg2 = *argp2; | |
d14a1e28 RD |
27911 | { |
27912 | arg3 = wxString_in_helper(obj2); | |
27913 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27914 | temp3 = True; |
d14a1e28 RD |
27915 | } |
27916 | { | |
27917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27918 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27919 | ||
27920 | wxPyEndAllowThreads(__tstate); | |
27921 | if (PyErr_Occurred()) SWIG_fail; | |
27922 | } | |
27923 | { | |
27924 | wxTreeItemId * resultptr; | |
27925 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27926 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27927 | } |
27928 | { | |
27929 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27930 | resultobj = t_output_helper(resultobj,o); | |
27931 | } | |
27932 | { | |
27933 | if (temp3) | |
27934 | delete arg3; | |
27935 | } | |
27936 | return resultobj; | |
27937 | fail: | |
27938 | { | |
27939 | if (temp3) | |
27940 | delete arg3; | |
27941 | } | |
27942 | return NULL; | |
27943 | } | |
27944 | ||
27945 | ||
27946 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27947 | PyObject *resultobj; | |
27948 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27949 | PyObject * obj0 = 0 ; | |
27950 | char *kwnames[] = { | |
27951 | (char *) "self", NULL | |
27952 | }; | |
27953 | ||
27954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27957 | { |
27958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27959 | (arg1)->DoResize(); | |
27960 | ||
27961 | wxPyEndAllowThreads(__tstate); | |
27962 | if (PyErr_Occurred()) SWIG_fail; | |
27963 | } | |
27964 | Py_INCREF(Py_None); resultobj = Py_None; | |
27965 | return resultobj; | |
27966 | fail: | |
27967 | return NULL; | |
27968 | } | |
27969 | ||
27970 | ||
27971 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27972 | PyObject *resultobj; | |
27973 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27974 | PyObject * obj0 = 0 ; | |
27975 | char *kwnames[] = { | |
27976 | (char *) "self", NULL | |
27977 | }; | |
27978 | ||
27979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27982 | { |
27983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27984 | (arg1)->ReCreateTree(); | |
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 * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27997 | PyObject *obj; | |
27998 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27999 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28000 | Py_INCREF(obj); | |
28001 | return Py_BuildValue((char *)""); | |
28002 | } | |
28003 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28004 | PyObject *resultobj; | |
28005 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 28006 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28007 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28008 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28009 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28010 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28011 | long arg5 = (long) 0 ; | |
28012 | wxDirFilterListCtrl *result; | |
28013 | wxPoint temp3 ; | |
28014 | wxSize temp4 ; | |
28015 | PyObject * obj0 = 0 ; | |
8edf1c75 | 28016 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28017 | PyObject * obj2 = 0 ; |
28018 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28019 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28020 | char *kwnames[] = { |
28021 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28022 | }; | |
28023 | ||
8edf1c75 | 28024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 28027 | if (obj1) { |
2f4c0a16 RD |
28028 | arg2 = (int const) SWIG_AsInt(obj1); |
28029 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28030 | } |
d14a1e28 RD |
28031 | if (obj2) { |
28032 | { | |
28033 | arg3 = &temp3; | |
28034 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28035 | } | |
28036 | } | |
28037 | if (obj3) { | |
28038 | { | |
28039 | arg4 = &temp4; | |
28040 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28041 | } | |
28042 | } | |
8edf1c75 | 28043 | if (obj4) { |
2f4c0a16 RD |
28044 | arg5 = (long) SWIG_AsLong(obj4); |
28045 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28046 | } |
d14a1e28 RD |
28047 | { |
28048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28049 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28050 | ||
28051 | wxPyEndAllowThreads(__tstate); | |
28052 | if (PyErr_Occurred()) SWIG_fail; | |
28053 | } | |
2f4c0a16 | 28054 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28055 | return resultobj; |
28056 | fail: | |
28057 | return NULL; | |
28058 | } | |
28059 | ||
28060 | ||
28061 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28062 | PyObject *resultobj; | |
28063 | wxDirFilterListCtrl *result; | |
28064 | char *kwnames[] = { | |
28065 | NULL | |
28066 | }; | |
28067 | ||
28068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28069 | { | |
28070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28071 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28072 | ||
28073 | wxPyEndAllowThreads(__tstate); | |
28074 | if (PyErr_Occurred()) SWIG_fail; | |
28075 | } | |
2f4c0a16 | 28076 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28077 | return resultobj; |
28078 | fail: | |
28079 | return NULL; | |
28080 | } | |
28081 | ||
28082 | ||
28083 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28084 | PyObject *resultobj; | |
28085 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28086 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 28087 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28088 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28089 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28090 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28091 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28092 | long arg6 = (long) 0 ; | |
28093 | bool result; | |
28094 | wxPoint temp4 ; | |
28095 | wxSize temp5 ; | |
28096 | PyObject * obj0 = 0 ; | |
28097 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28098 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28099 | PyObject * obj3 = 0 ; |
28100 | PyObject * obj4 = 0 ; | |
8edf1c75 | 28101 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28102 | char *kwnames[] = { |
28103 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28104 | }; | |
28105 | ||
8edf1c75 | 28106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 28111 | if (obj2) { |
2f4c0a16 RD |
28112 | arg3 = (int const) SWIG_AsInt(obj2); |
28113 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28114 | } |
d14a1e28 RD |
28115 | if (obj3) { |
28116 | { | |
28117 | arg4 = &temp4; | |
28118 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28119 | } | |
28120 | } | |
28121 | if (obj4) { | |
28122 | { | |
28123 | arg5 = &temp5; | |
28124 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28125 | } | |
28126 | } | |
8edf1c75 | 28127 | if (obj5) { |
2f4c0a16 RD |
28128 | arg6 = (long) SWIG_AsLong(obj5); |
28129 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28130 | } |
d14a1e28 RD |
28131 | { |
28132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28133 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28134 | ||
28135 | wxPyEndAllowThreads(__tstate); | |
28136 | if (PyErr_Occurred()) SWIG_fail; | |
28137 | } | |
4f89f6a3 RD |
28138 | { |
28139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28140 | } | |
d14a1e28 RD |
28141 | return resultobj; |
28142 | fail: | |
28143 | return NULL; | |
28144 | } | |
28145 | ||
28146 | ||
28147 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28148 | PyObject *resultobj; | |
28149 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28150 | wxString *arg2 = 0 ; | |
28151 | int arg3 ; | |
423f194a | 28152 | bool temp2 = False ; |
d14a1e28 RD |
28153 | PyObject * obj0 = 0 ; |
28154 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28155 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28156 | char *kwnames[] = { |
28157 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28158 | }; | |
28159 | ||
8edf1c75 | 28160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28163 | { |
28164 | arg2 = wxString_in_helper(obj1); | |
28165 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28166 | temp2 = True; |
d14a1e28 | 28167 | } |
2f4c0a16 RD |
28168 | arg3 = (int) SWIG_AsInt(obj2); |
28169 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28170 | { |
28171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28172 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28173 | ||
28174 | wxPyEndAllowThreads(__tstate); | |
28175 | if (PyErr_Occurred()) SWIG_fail; | |
28176 | } | |
28177 | Py_INCREF(Py_None); resultobj = Py_None; | |
28178 | { | |
28179 | if (temp2) | |
28180 | delete arg2; | |
28181 | } | |
28182 | return resultobj; | |
28183 | fail: | |
28184 | { | |
28185 | if (temp2) | |
28186 | delete arg2; | |
28187 | } | |
28188 | return NULL; | |
28189 | } | |
28190 | ||
28191 | ||
28192 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28193 | PyObject *obj; | |
28194 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28195 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28196 | Py_INCREF(obj); | |
28197 | return Py_BuildValue((char *)""); | |
28198 | } | |
28199 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28200 | PyObject *resultobj; | |
28201 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28202 | int arg2 ; |
d14a1e28 RD |
28203 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28204 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28205 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28206 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28207 | long arg5 = (long) 0 ; | |
28208 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28209 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28210 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28211 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28212 | wxPyControl *result; | |
28213 | wxPoint temp3 ; | |
28214 | wxSize temp4 ; | |
423f194a | 28215 | bool temp7 = False ; |
d14a1e28 | 28216 | PyObject * obj0 = 0 ; |
8edf1c75 | 28217 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28218 | PyObject * obj2 = 0 ; |
28219 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28220 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28221 | PyObject * obj5 = 0 ; |
28222 | PyObject * obj6 = 0 ; | |
28223 | char *kwnames[] = { | |
28224 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28225 | }; | |
28226 | ||
8edf1c75 | 28227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
28228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28230 | arg2 = (int const) SWIG_AsInt(obj1); | |
28231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28232 | if (obj2) { |
28233 | { | |
28234 | arg3 = &temp3; | |
28235 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28236 | } | |
28237 | } | |
28238 | if (obj3) { | |
28239 | { | |
28240 | arg4 = &temp4; | |
28241 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28242 | } | |
28243 | } | |
8edf1c75 | 28244 | if (obj4) { |
2f4c0a16 RD |
28245 | arg5 = (long) SWIG_AsLong(obj4); |
28246 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28247 | } |
d14a1e28 | 28248 | if (obj5) { |
2f4c0a16 RD |
28249 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28250 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28251 | SWIG_fail; | |
d14a1e28 | 28252 | if (arg6 == NULL) { |
2f4c0a16 RD |
28253 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28254 | SWIG_fail; | |
d14a1e28 RD |
28255 | } |
28256 | } | |
28257 | if (obj6) { | |
28258 | { | |
28259 | arg7 = wxString_in_helper(obj6); | |
28260 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 28261 | temp7 = True; |
d14a1e28 RD |
28262 | } |
28263 | } | |
28264 | { | |
28265 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28266 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28267 | ||
28268 | wxPyEndAllowThreads(__tstate); | |
28269 | if (PyErr_Occurred()) SWIG_fail; | |
28270 | } | |
2f4c0a16 | 28271 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28272 | { |
28273 | if (temp7) | |
28274 | delete arg7; | |
28275 | } | |
28276 | return resultobj; | |
28277 | fail: | |
28278 | { | |
28279 | if (temp7) | |
28280 | delete arg7; | |
28281 | } | |
28282 | return NULL; | |
28283 | } | |
28284 | ||
28285 | ||
e35a624d RD |
28286 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
28287 | PyObject *resultobj; | |
28288 | wxPyControl *result; | |
28289 | char *kwnames[] = { | |
28290 | NULL | |
28291 | }; | |
28292 | ||
28293 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28294 | { | |
28295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28296 | result = (wxPyControl *)new wxPyControl(); | |
28297 | ||
28298 | wxPyEndAllowThreads(__tstate); | |
28299 | if (PyErr_Occurred()) SWIG_fail; | |
28300 | } | |
28301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28302 | return resultobj; | |
28303 | fail: | |
28304 | return NULL; | |
28305 | } | |
28306 | ||
28307 | ||
d14a1e28 RD |
28308 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
28309 | PyObject *resultobj; | |
28310 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28311 | PyObject *arg2 = (PyObject *) 0 ; | |
28312 | PyObject *arg3 = (PyObject *) 0 ; | |
28313 | PyObject * obj0 = 0 ; | |
28314 | PyObject * obj1 = 0 ; | |
28315 | PyObject * obj2 = 0 ; | |
28316 | char *kwnames[] = { | |
28317 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28318 | }; | |
28319 | ||
28320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28323 | arg2 = obj1; |
28324 | arg3 = obj2; | |
28325 | { | |
28326 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28327 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28328 | ||
28329 | wxPyEndAllowThreads(__tstate); | |
28330 | if (PyErr_Occurred()) SWIG_fail; | |
28331 | } | |
28332 | Py_INCREF(Py_None); resultobj = Py_None; | |
28333 | return resultobj; | |
28334 | fail: | |
28335 | return NULL; | |
28336 | } | |
28337 | ||
28338 | ||
28339 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28340 | PyObject *resultobj; | |
28341 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28342 | int arg2 ; | |
28343 | int arg3 ; | |
28344 | int arg4 ; | |
28345 | int arg5 ; | |
28346 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28347 | PyObject * obj1 = 0 ; |
28348 | PyObject * obj2 = 0 ; | |
28349 | PyObject * obj3 = 0 ; | |
28350 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28351 | char *kwnames[] = { |
28352 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28353 | }; | |
28354 | ||
8edf1c75 | 28355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28358 | arg2 = (int) SWIG_AsInt(obj1); | |
28359 | if (PyErr_Occurred()) SWIG_fail; | |
28360 | arg3 = (int) SWIG_AsInt(obj2); | |
28361 | if (PyErr_Occurred()) SWIG_fail; | |
28362 | arg4 = (int) SWIG_AsInt(obj3); | |
28363 | if (PyErr_Occurred()) SWIG_fail; | |
28364 | arg5 = (int) SWIG_AsInt(obj4); | |
28365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28366 | { |
28367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28368 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28369 | ||
28370 | wxPyEndAllowThreads(__tstate); | |
28371 | if (PyErr_Occurred()) SWIG_fail; | |
28372 | } | |
28373 | Py_INCREF(Py_None); resultobj = Py_None; | |
28374 | return resultobj; | |
28375 | fail: | |
28376 | return NULL; | |
28377 | } | |
28378 | ||
28379 | ||
28380 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28381 | PyObject *resultobj; | |
28382 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28383 | int arg2 ; | |
28384 | int arg3 ; | |
28385 | int arg4 ; | |
28386 | int arg5 ; | |
28387 | int arg6 = (int) wxSIZE_AUTO ; | |
28388 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28389 | PyObject * obj1 = 0 ; |
28390 | PyObject * obj2 = 0 ; | |
28391 | PyObject * obj3 = 0 ; | |
28392 | PyObject * obj4 = 0 ; | |
28393 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
28394 | char *kwnames[] = { |
28395 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28396 | }; | |
28397 | ||
8edf1c75 | 28398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28401 | arg2 = (int) SWIG_AsInt(obj1); | |
28402 | if (PyErr_Occurred()) SWIG_fail; | |
28403 | arg3 = (int) SWIG_AsInt(obj2); | |
28404 | if (PyErr_Occurred()) SWIG_fail; | |
28405 | arg4 = (int) SWIG_AsInt(obj3); | |
28406 | if (PyErr_Occurred()) SWIG_fail; | |
28407 | arg5 = (int) SWIG_AsInt(obj4); | |
28408 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28409 | if (obj5) { |
2f4c0a16 RD |
28410 | arg6 = (int) SWIG_AsInt(obj5); |
28411 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28412 | } |
d14a1e28 RD |
28413 | { |
28414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28415 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28416 | ||
28417 | wxPyEndAllowThreads(__tstate); | |
28418 | if (PyErr_Occurred()) SWIG_fail; | |
28419 | } | |
28420 | Py_INCREF(Py_None); resultobj = Py_None; | |
28421 | return resultobj; | |
28422 | fail: | |
28423 | return NULL; | |
28424 | } | |
28425 | ||
28426 | ||
28427 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28428 | PyObject *resultobj; | |
28429 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28430 | int arg2 ; | |
28431 | int arg3 ; | |
28432 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28433 | PyObject * obj1 = 0 ; |
28434 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28435 | char *kwnames[] = { |
28436 | (char *) "self",(char *) "width",(char *) "height", NULL | |
28437 | }; | |
28438 | ||
8edf1c75 | 28439 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28440 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28441 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28442 | arg2 = (int) SWIG_AsInt(obj1); | |
28443 | if (PyErr_Occurred()) SWIG_fail; | |
28444 | arg3 = (int) SWIG_AsInt(obj2); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28446 | { |
28447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28448 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
28449 | ||
28450 | wxPyEndAllowThreads(__tstate); | |
28451 | if (PyErr_Occurred()) SWIG_fail; | |
28452 | } | |
28453 | Py_INCREF(Py_None); resultobj = Py_None; | |
28454 | return resultobj; | |
28455 | fail: | |
28456 | return NULL; | |
28457 | } | |
28458 | ||
28459 | ||
28460 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28461 | PyObject *resultobj; | |
28462 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28463 | int arg2 ; | |
28464 | int arg3 ; | |
28465 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28466 | PyObject * obj1 = 0 ; |
28467 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28468 | char *kwnames[] = { |
28469 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28470 | }; | |
28471 | ||
8edf1c75 | 28472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28475 | arg2 = (int) SWIG_AsInt(obj1); | |
28476 | if (PyErr_Occurred()) SWIG_fail; | |
28477 | arg3 = (int) SWIG_AsInt(obj2); | |
28478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28479 | { |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
28486 | Py_INCREF(Py_None); resultobj = Py_None; | |
28487 | return resultobj; | |
28488 | fail: | |
28489 | return NULL; | |
28490 | } | |
28491 | ||
28492 | ||
28493 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28494 | PyObject *resultobj; | |
28495 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28496 | int *arg2 = (int *) 0 ; | |
28497 | int *arg3 = (int *) 0 ; | |
28498 | int temp2 ; | |
28499 | int temp3 ; | |
28500 | PyObject * obj0 = 0 ; | |
28501 | char *kwnames[] = { | |
28502 | (char *) "self", NULL | |
28503 | }; | |
28504 | ||
28505 | arg2 = &temp2; | |
28506 | arg3 = &temp3; | |
28507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28510 | { |
28511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28512 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
28513 | ||
28514 | wxPyEndAllowThreads(__tstate); | |
28515 | if (PyErr_Occurred()) SWIG_fail; | |
28516 | } | |
28517 | Py_INCREF(Py_None); resultobj = Py_None; | |
28518 | { | |
28519 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28520 | resultobj = t_output_helper(resultobj,o); | |
28521 | } | |
28522 | { | |
28523 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28524 | resultobj = t_output_helper(resultobj,o); | |
28525 | } | |
28526 | return resultobj; | |
28527 | fail: | |
28528 | return NULL; | |
28529 | } | |
28530 | ||
28531 | ||
28532 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28533 | PyObject *resultobj; | |
28534 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28535 | int *arg2 = (int *) 0 ; | |
28536 | int *arg3 = (int *) 0 ; | |
28537 | int temp2 ; | |
28538 | int temp3 ; | |
28539 | PyObject * obj0 = 0 ; | |
28540 | char *kwnames[] = { | |
28541 | (char *) "self", NULL | |
28542 | }; | |
28543 | ||
28544 | arg2 = &temp2; | |
28545 | arg3 = &temp3; | |
28546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28549 | { |
28550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28551 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
28552 | ||
28553 | wxPyEndAllowThreads(__tstate); | |
28554 | if (PyErr_Occurred()) SWIG_fail; | |
28555 | } | |
28556 | Py_INCREF(Py_None); resultobj = Py_None; | |
28557 | { | |
28558 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28559 | resultobj = t_output_helper(resultobj,o); | |
28560 | } | |
28561 | { | |
28562 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28563 | resultobj = t_output_helper(resultobj,o); | |
28564 | } | |
28565 | return resultobj; | |
28566 | fail: | |
28567 | return NULL; | |
28568 | } | |
28569 | ||
28570 | ||
28571 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28572 | PyObject *resultobj; | |
28573 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28574 | int *arg2 = (int *) 0 ; | |
28575 | int *arg3 = (int *) 0 ; | |
28576 | int temp2 ; | |
28577 | int temp3 ; | |
28578 | PyObject * obj0 = 0 ; | |
28579 | char *kwnames[] = { | |
28580 | (char *) "self", NULL | |
28581 | }; | |
28582 | ||
28583 | arg2 = &temp2; | |
28584 | arg3 = &temp3; | |
28585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28588 | { |
28589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28590 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
28591 | ||
28592 | wxPyEndAllowThreads(__tstate); | |
28593 | if (PyErr_Occurred()) SWIG_fail; | |
28594 | } | |
28595 | Py_INCREF(Py_None); resultobj = Py_None; | |
28596 | { | |
28597 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28598 | resultobj = t_output_helper(resultobj,o); | |
28599 | } | |
28600 | { | |
28601 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28602 | resultobj = t_output_helper(resultobj,o); | |
28603 | } | |
28604 | return resultobj; | |
28605 | fail: | |
28606 | return NULL; | |
28607 | } | |
28608 | ||
28609 | ||
28610 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28611 | PyObject *resultobj; | |
28612 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28613 | wxSize result; | |
28614 | PyObject * obj0 = 0 ; | |
28615 | char *kwnames[] = { | |
28616 | (char *) "self", NULL | |
28617 | }; | |
28618 | ||
28619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28622 | { |
28623 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28624 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28625 | ||
28626 | wxPyEndAllowThreads(__tstate); | |
28627 | if (PyErr_Occurred()) SWIG_fail; | |
28628 | } | |
28629 | { | |
28630 | wxSize * resultptr; | |
28631 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28632 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28633 | } |
28634 | return resultobj; | |
28635 | fail: | |
28636 | return NULL; | |
28637 | } | |
28638 | ||
28639 | ||
28640 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28641 | PyObject *resultobj; | |
28642 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28643 | wxSize result; | |
28644 | PyObject * obj0 = 0 ; | |
28645 | char *kwnames[] = { | |
28646 | (char *) "self", NULL | |
28647 | }; | |
28648 | ||
28649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28652 | { |
28653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28654 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28655 | ||
28656 | wxPyEndAllowThreads(__tstate); | |
28657 | if (PyErr_Occurred()) SWIG_fail; | |
28658 | } | |
28659 | { | |
28660 | wxSize * resultptr; | |
28661 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28662 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28663 | } |
28664 | return resultobj; | |
28665 | fail: | |
28666 | return NULL; | |
28667 | } | |
28668 | ||
28669 | ||
28670 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28671 | PyObject *resultobj; | |
28672 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28673 | PyObject * obj0 = 0 ; | |
28674 | char *kwnames[] = { | |
28675 | (char *) "self", NULL | |
28676 | }; | |
28677 | ||
28678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28681 | { |
28682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28683 | (arg1)->base_InitDialog(); | |
28684 | ||
28685 | wxPyEndAllowThreads(__tstate); | |
28686 | if (PyErr_Occurred()) SWIG_fail; | |
28687 | } | |
28688 | Py_INCREF(Py_None); resultobj = Py_None; | |
28689 | return resultobj; | |
28690 | fail: | |
28691 | return NULL; | |
28692 | } | |
28693 | ||
28694 | ||
28695 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28696 | PyObject *resultobj; | |
28697 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28698 | bool result; | |
28699 | PyObject * obj0 = 0 ; | |
28700 | char *kwnames[] = { | |
28701 | (char *) "self", NULL | |
28702 | }; | |
28703 | ||
28704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28707 | { |
28708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28709 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28710 | ||
28711 | wxPyEndAllowThreads(__tstate); | |
28712 | if (PyErr_Occurred()) SWIG_fail; | |
28713 | } | |
4f89f6a3 RD |
28714 | { |
28715 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28716 | } | |
d14a1e28 RD |
28717 | return resultobj; |
28718 | fail: | |
28719 | return NULL; | |
28720 | } | |
28721 | ||
28722 | ||
28723 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28724 | PyObject *resultobj; | |
28725 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28726 | bool result; | |
28727 | PyObject * obj0 = 0 ; | |
28728 | char *kwnames[] = { | |
28729 | (char *) "self", NULL | |
28730 | }; | |
28731 | ||
28732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28735 | { |
28736 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28737 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28738 | ||
28739 | wxPyEndAllowThreads(__tstate); | |
28740 | if (PyErr_Occurred()) SWIG_fail; | |
28741 | } | |
4f89f6a3 RD |
28742 | { |
28743 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28744 | } | |
d14a1e28 RD |
28745 | return resultobj; |
28746 | fail: | |
28747 | return NULL; | |
28748 | } | |
28749 | ||
28750 | ||
28751 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28752 | PyObject *resultobj; | |
28753 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28754 | bool result; | |
28755 | PyObject * obj0 = 0 ; | |
28756 | char *kwnames[] = { | |
28757 | (char *) "self", NULL | |
28758 | }; | |
28759 | ||
28760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28763 | { |
28764 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28765 | result = (bool)(arg1)->base_Validate(); | |
28766 | ||
28767 | wxPyEndAllowThreads(__tstate); | |
28768 | if (PyErr_Occurred()) SWIG_fail; | |
28769 | } | |
4f89f6a3 RD |
28770 | { |
28771 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28772 | } | |
d14a1e28 RD |
28773 | return resultobj; |
28774 | fail: | |
28775 | return NULL; | |
28776 | } | |
28777 | ||
28778 | ||
28779 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28780 | PyObject *resultobj; | |
28781 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28782 | bool result; | |
28783 | PyObject * obj0 = 0 ; | |
28784 | char *kwnames[] = { | |
28785 | (char *) "self", NULL | |
28786 | }; | |
28787 | ||
28788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28791 | { |
28792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28793 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28794 | ||
28795 | wxPyEndAllowThreads(__tstate); | |
28796 | if (PyErr_Occurred()) SWIG_fail; | |
28797 | } | |
4f89f6a3 RD |
28798 | { |
28799 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28800 | } | |
d14a1e28 RD |
28801 | return resultobj; |
28802 | fail: | |
28803 | return NULL; | |
28804 | } | |
28805 | ||
28806 | ||
28807 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28808 | PyObject *resultobj; | |
28809 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28810 | bool result; | |
28811 | PyObject * obj0 = 0 ; | |
28812 | char *kwnames[] = { | |
28813 | (char *) "self", NULL | |
28814 | }; | |
28815 | ||
28816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28819 | { |
28820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28821 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28822 | ||
28823 | wxPyEndAllowThreads(__tstate); | |
28824 | if (PyErr_Occurred()) SWIG_fail; | |
28825 | } | |
4f89f6a3 RD |
28826 | { |
28827 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28828 | } | |
d14a1e28 RD |
28829 | return resultobj; |
28830 | fail: | |
28831 | return NULL; | |
28832 | } | |
28833 | ||
28834 | ||
28835 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28836 | PyObject *resultobj; | |
28837 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28838 | wxSize result; | |
28839 | PyObject * obj0 = 0 ; | |
28840 | char *kwnames[] = { | |
28841 | (char *) "self", NULL | |
28842 | }; | |
28843 | ||
28844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28847 | { |
28848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28849 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28850 | ||
28851 | wxPyEndAllowThreads(__tstate); | |
28852 | if (PyErr_Occurred()) SWIG_fail; | |
28853 | } | |
28854 | { | |
28855 | wxSize * resultptr; | |
28856 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28857 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28858 | } |
28859 | return resultobj; | |
28860 | fail: | |
28861 | return NULL; | |
28862 | } | |
28863 | ||
28864 | ||
28865 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28866 | PyObject *resultobj; | |
28867 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28868 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28869 | PyObject * obj0 = 0 ; | |
28870 | PyObject * obj1 = 0 ; | |
28871 | char *kwnames[] = { | |
28872 | (char *) "self",(char *) "child", NULL | |
28873 | }; | |
28874 | ||
28875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28878 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28880 | { |
28881 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28882 | (arg1)->base_AddChild(arg2); | |
28883 | ||
28884 | wxPyEndAllowThreads(__tstate); | |
28885 | if (PyErr_Occurred()) SWIG_fail; | |
28886 | } | |
28887 | Py_INCREF(Py_None); resultobj = Py_None; | |
28888 | return resultobj; | |
28889 | fail: | |
28890 | return NULL; | |
28891 | } | |
28892 | ||
28893 | ||
28894 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28895 | PyObject *resultobj; | |
28896 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28897 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28898 | PyObject * obj0 = 0 ; | |
28899 | PyObject * obj1 = 0 ; | |
28900 | char *kwnames[] = { | |
28901 | (char *) "self",(char *) "child", NULL | |
28902 | }; | |
28903 | ||
28904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28907 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28909 | { |
28910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28911 | (arg1)->base_RemoveChild(arg2); | |
28912 | ||
28913 | wxPyEndAllowThreads(__tstate); | |
28914 | if (PyErr_Occurred()) SWIG_fail; | |
28915 | } | |
28916 | Py_INCREF(Py_None); resultobj = Py_None; | |
28917 | return resultobj; | |
28918 | fail: | |
28919 | return NULL; | |
28920 | } | |
28921 | ||
28922 | ||
e35a624d RD |
28923 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
28924 | PyObject *resultobj; | |
28925 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28926 | bool result; | |
28927 | PyObject * obj0 = 0 ; | |
28928 | char *kwnames[] = { | |
28929 | (char *) "self", NULL | |
28930 | }; | |
28931 | ||
28932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28935 | { | |
28936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28937 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
28938 | ||
28939 | wxPyEndAllowThreads(__tstate); | |
28940 | if (PyErr_Occurred()) SWIG_fail; | |
28941 | } | |
28942 | { | |
28943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28944 | } | |
28945 | return resultobj; | |
28946 | fail: | |
28947 | return NULL; | |
28948 | } | |
28949 | ||
28950 | ||
28951 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28952 | PyObject *resultobj; | |
28953 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28954 | wxColour *arg2 = 0 ; | |
28955 | wxColour temp2 ; | |
28956 | PyObject * obj0 = 0 ; | |
28957 | PyObject * obj1 = 0 ; | |
28958 | char *kwnames[] = { | |
28959 | (char *) "self",(char *) "c", NULL | |
28960 | }; | |
28961 | ||
28962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
28963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28965 | { | |
28966 | arg2 = &temp2; | |
28967 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28968 | } | |
28969 | { | |
28970 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28971 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
28972 | ||
28973 | wxPyEndAllowThreads(__tstate); | |
28974 | if (PyErr_Occurred()) SWIG_fail; | |
28975 | } | |
28976 | Py_INCREF(Py_None); resultobj = Py_None; | |
28977 | return resultobj; | |
28978 | fail: | |
28979 | return NULL; | |
28980 | } | |
28981 | ||
28982 | ||
d14a1e28 RD |
28983 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
28984 | PyObject *obj; | |
28985 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28986 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28987 | Py_INCREF(obj); | |
28988 | return Py_BuildValue((char *)""); | |
28989 | } | |
28990 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28991 | PyObject *resultobj; | |
28992 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28993 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28994 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28995 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28996 | wxHelpEvent *result; | |
28997 | wxPoint temp3 ; | |
8edf1c75 RD |
28998 | PyObject * obj0 = 0 ; |
28999 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29000 | PyObject * obj2 = 0 ; |
29001 | char *kwnames[] = { | |
29002 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29003 | }; | |
29004 | ||
8edf1c75 RD |
29005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29006 | if (obj0) { | |
2f4c0a16 RD |
29007 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
29008 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
29009 | } |
29010 | if (obj1) { | |
2f4c0a16 RD |
29011 | arg2 = (int) SWIG_AsInt(obj1); |
29012 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29013 | } |
d14a1e28 RD |
29014 | if (obj2) { |
29015 | { | |
29016 | arg3 = &temp3; | |
29017 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29018 | } | |
29019 | } | |
29020 | { | |
29021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29022 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29023 | ||
29024 | wxPyEndAllowThreads(__tstate); | |
29025 | if (PyErr_Occurred()) SWIG_fail; | |
29026 | } | |
2f4c0a16 | 29027 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29028 | return resultobj; |
29029 | fail: | |
29030 | return NULL; | |
29031 | } | |
29032 | ||
29033 | ||
29034 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29035 | PyObject *resultobj; | |
29036 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
2f4c0a16 | 29037 | wxPoint result; |
d14a1e28 RD |
29038 | PyObject * obj0 = 0 ; |
29039 | char *kwnames[] = { | |
29040 | (char *) "self", NULL | |
29041 | }; | |
29042 | ||
29043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29046 | { |
29047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 29048 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29049 | |
29050 | wxPyEndAllowThreads(__tstate); | |
29051 | if (PyErr_Occurred()) SWIG_fail; | |
29052 | } | |
2f4c0a16 RD |
29053 | { |
29054 | wxPoint * resultptr; | |
29055 | resultptr = new wxPoint((wxPoint &) result); | |
29056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29057 | } | |
d14a1e28 RD |
29058 | return resultobj; |
29059 | fail: | |
29060 | return NULL; | |
29061 | } | |
29062 | ||
29063 | ||
29064 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29065 | PyObject *resultobj; | |
29066 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29067 | wxPoint *arg2 = 0 ; | |
29068 | wxPoint temp2 ; | |
29069 | PyObject * obj0 = 0 ; | |
29070 | PyObject * obj1 = 0 ; | |
29071 | char *kwnames[] = { | |
29072 | (char *) "self",(char *) "pos", NULL | |
29073 | }; | |
29074 | ||
29075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29078 | { |
29079 | arg2 = &temp2; | |
29080 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29081 | } | |
29082 | { | |
29083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29084 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29085 | ||
29086 | wxPyEndAllowThreads(__tstate); | |
29087 | if (PyErr_Occurred()) SWIG_fail; | |
29088 | } | |
29089 | Py_INCREF(Py_None); resultobj = Py_None; | |
29090 | return resultobj; | |
29091 | fail: | |
29092 | return NULL; | |
29093 | } | |
29094 | ||
29095 | ||
29096 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29097 | PyObject *resultobj; | |
29098 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29099 | wxString *result; | |
29100 | PyObject * obj0 = 0 ; | |
29101 | char *kwnames[] = { | |
29102 | (char *) "self", NULL | |
29103 | }; | |
29104 | ||
29105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29108 | { |
29109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29110 | { | |
29111 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29112 | result = (wxString *) &_result_ref; | |
29113 | } | |
29114 | ||
29115 | wxPyEndAllowThreads(__tstate); | |
29116 | if (PyErr_Occurred()) SWIG_fail; | |
29117 | } | |
f0983263 RD |
29118 | { |
29119 | #if wxUSE_UNICODE | |
29120 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29121 | #else | |
29122 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29123 | #endif | |
29124 | } | |
d14a1e28 RD |
29125 | return resultobj; |
29126 | fail: | |
29127 | return NULL; | |
29128 | } | |
29129 | ||
29130 | ||
29131 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29132 | PyObject *resultobj; | |
29133 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29134 | wxString *arg2 = 0 ; | |
423f194a | 29135 | bool temp2 = False ; |
d14a1e28 RD |
29136 | PyObject * obj0 = 0 ; |
29137 | PyObject * obj1 = 0 ; | |
29138 | char *kwnames[] = { | |
29139 | (char *) "self",(char *) "link", NULL | |
29140 | }; | |
29141 | ||
29142 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29143 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29145 | { |
29146 | arg2 = wxString_in_helper(obj1); | |
29147 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29148 | temp2 = True; |
d14a1e28 RD |
29149 | } |
29150 | { | |
29151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29152 | (arg1)->SetLink((wxString const &)*arg2); | |
29153 | ||
29154 | wxPyEndAllowThreads(__tstate); | |
29155 | if (PyErr_Occurred()) SWIG_fail; | |
29156 | } | |
29157 | Py_INCREF(Py_None); resultobj = Py_None; | |
29158 | { | |
29159 | if (temp2) | |
29160 | delete arg2; | |
29161 | } | |
29162 | return resultobj; | |
29163 | fail: | |
29164 | { | |
29165 | if (temp2) | |
29166 | delete arg2; | |
29167 | } | |
29168 | return NULL; | |
29169 | } | |
29170 | ||
29171 | ||
29172 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29173 | PyObject *resultobj; | |
29174 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29175 | wxString *result; | |
29176 | PyObject * obj0 = 0 ; | |
29177 | char *kwnames[] = { | |
29178 | (char *) "self", NULL | |
29179 | }; | |
29180 | ||
29181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29184 | { |
29185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29186 | { | |
29187 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29188 | result = (wxString *) &_result_ref; | |
29189 | } | |
29190 | ||
29191 | wxPyEndAllowThreads(__tstate); | |
29192 | if (PyErr_Occurred()) SWIG_fail; | |
29193 | } | |
f0983263 RD |
29194 | { |
29195 | #if wxUSE_UNICODE | |
29196 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29197 | #else | |
29198 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29199 | #endif | |
29200 | } | |
d14a1e28 RD |
29201 | return resultobj; |
29202 | fail: | |
29203 | return NULL; | |
29204 | } | |
29205 | ||
29206 | ||
29207 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29208 | PyObject *resultobj; | |
29209 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29210 | wxString *arg2 = 0 ; | |
423f194a | 29211 | bool temp2 = False ; |
d14a1e28 RD |
29212 | PyObject * obj0 = 0 ; |
29213 | PyObject * obj1 = 0 ; | |
29214 | char *kwnames[] = { | |
29215 | (char *) "self",(char *) "target", NULL | |
29216 | }; | |
29217 | ||
29218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29221 | { |
29222 | arg2 = wxString_in_helper(obj1); | |
29223 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29224 | temp2 = True; |
d14a1e28 RD |
29225 | } |
29226 | { | |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | (arg1)->SetTarget((wxString const &)*arg2); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
29233 | Py_INCREF(Py_None); resultobj = Py_None; | |
29234 | { | |
29235 | if (temp2) | |
29236 | delete arg2; | |
29237 | } | |
29238 | return resultobj; | |
29239 | fail: | |
29240 | { | |
29241 | if (temp2) | |
29242 | delete arg2; | |
29243 | } | |
29244 | return NULL; | |
29245 | } | |
29246 | ||
29247 | ||
29248 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29249 | PyObject *obj; | |
29250 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29251 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29252 | Py_INCREF(obj); | |
29253 | return Py_BuildValue((char *)""); | |
29254 | } | |
29255 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29256 | PyObject *resultobj; | |
29257 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 29258 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29259 | wxContextHelp *result; |
29260 | PyObject * obj0 = 0 ; | |
29261 | PyObject * obj1 = 0 ; | |
29262 | char *kwnames[] = { | |
29263 | (char *) "window",(char *) "doNow", NULL | |
29264 | }; | |
29265 | ||
29266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29267 | if (obj0) { | |
2f4c0a16 RD |
29268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29270 | } |
29271 | if (obj1) { | |
2f4c0a16 RD |
29272 | arg2 = (bool) SWIG_AsBool(obj1); |
29273 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29274 | } |
29275 | { | |
29276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29277 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29278 | ||
29279 | wxPyEndAllowThreads(__tstate); | |
29280 | if (PyErr_Occurred()) SWIG_fail; | |
29281 | } | |
2f4c0a16 | 29282 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
29283 | return resultobj; |
29284 | fail: | |
29285 | return NULL; | |
29286 | } | |
29287 | ||
29288 | ||
29289 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29290 | PyObject *resultobj; | |
29291 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29292 | PyObject * obj0 = 0 ; | |
29293 | char *kwnames[] = { | |
29294 | (char *) "self", NULL | |
29295 | }; | |
29296 | ||
29297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29300 | { |
29301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29302 | delete arg1; | |
29303 | ||
29304 | wxPyEndAllowThreads(__tstate); | |
29305 | if (PyErr_Occurred()) SWIG_fail; | |
29306 | } | |
29307 | Py_INCREF(Py_None); resultobj = Py_None; | |
29308 | return resultobj; | |
29309 | fail: | |
29310 | return NULL; | |
29311 | } | |
29312 | ||
29313 | ||
29314 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29315 | PyObject *resultobj; | |
29316 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29317 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29318 | bool result; | |
29319 | PyObject * obj0 = 0 ; | |
29320 | PyObject * obj1 = 0 ; | |
29321 | char *kwnames[] = { | |
29322 | (char *) "self",(char *) "window", NULL | |
29323 | }; | |
29324 | ||
29325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29328 | if (obj1) { |
2f4c0a16 RD |
29329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29331 | } |
29332 | { | |
29333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29334 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29335 | ||
29336 | wxPyEndAllowThreads(__tstate); | |
29337 | if (PyErr_Occurred()) SWIG_fail; | |
29338 | } | |
4f89f6a3 RD |
29339 | { |
29340 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29341 | } | |
d14a1e28 RD |
29342 | return resultobj; |
29343 | fail: | |
29344 | return NULL; | |
29345 | } | |
29346 | ||
29347 | ||
29348 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29349 | PyObject *resultobj; | |
29350 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29351 | bool result; | |
29352 | PyObject * obj0 = 0 ; | |
29353 | char *kwnames[] = { | |
29354 | (char *) "self", NULL | |
29355 | }; | |
29356 | ||
29357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29360 | { |
29361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29362 | result = (bool)(arg1)->EndContextHelp(); | |
29363 | ||
29364 | wxPyEndAllowThreads(__tstate); | |
29365 | if (PyErr_Occurred()) SWIG_fail; | |
29366 | } | |
4f89f6a3 RD |
29367 | { |
29368 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29369 | } | |
d14a1e28 RD |
29370 | return resultobj; |
29371 | fail: | |
29372 | return NULL; | |
29373 | } | |
29374 | ||
29375 | ||
29376 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29377 | PyObject *obj; | |
29378 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29379 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29380 | Py_INCREF(obj); | |
29381 | return Py_BuildValue((char *)""); | |
29382 | } | |
29383 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29384 | PyObject *resultobj; | |
29385 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 29386 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
29387 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29388 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29389 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29390 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29391 | long arg5 = (long) wxBU_AUTODRAW ; | |
29392 | wxContextHelpButton *result; | |
29393 | wxPoint temp3 ; | |
29394 | wxSize temp4 ; | |
29395 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29397 | PyObject * obj2 = 0 ; |
29398 | PyObject * obj3 = 0 ; | |
8edf1c75 | 29399 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29400 | char *kwnames[] = { |
29401 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29402 | }; | |
29403 | ||
8edf1c75 | 29404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 29407 | if (obj1) { |
2f4c0a16 RD |
29408 | arg2 = (int) SWIG_AsInt(obj1); |
29409 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29410 | } |
d14a1e28 RD |
29411 | if (obj2) { |
29412 | { | |
29413 | arg3 = &temp3; | |
29414 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29415 | } | |
29416 | } | |
29417 | if (obj3) { | |
29418 | { | |
29419 | arg4 = &temp4; | |
29420 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29421 | } | |
29422 | } | |
8edf1c75 | 29423 | if (obj4) { |
2f4c0a16 RD |
29424 | arg5 = (long) SWIG_AsLong(obj4); |
29425 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29426 | } |
d14a1e28 RD |
29427 | { |
29428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29429 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29430 | ||
29431 | wxPyEndAllowThreads(__tstate); | |
29432 | if (PyErr_Occurred()) SWIG_fail; | |
29433 | } | |
2f4c0a16 | 29434 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
29435 | return resultobj; |
29436 | fail: | |
29437 | return NULL; | |
29438 | } | |
29439 | ||
29440 | ||
29441 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
29442 | PyObject *obj; | |
29443 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29444 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
29445 | Py_INCREF(obj); | |
29446 | return Py_BuildValue((char *)""); | |
29447 | } | |
29448 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29449 | PyObject *resultobj; | |
29450 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29451 | wxHelpProvider *result; | |
29452 | PyObject * obj0 = 0 ; | |
29453 | char *kwnames[] = { | |
29454 | (char *) "helpProvider", NULL | |
29455 | }; | |
29456 | ||
29457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29460 | { |
29461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29462 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
29463 | ||
29464 | wxPyEndAllowThreads(__tstate); | |
29465 | if (PyErr_Occurred()) SWIG_fail; | |
29466 | } | |
2f4c0a16 | 29467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29468 | return resultobj; |
29469 | fail: | |
29470 | return NULL; | |
29471 | } | |
29472 | ||
29473 | ||
29474 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29475 | PyObject *resultobj; | |
29476 | wxHelpProvider *result; | |
29477 | char *kwnames[] = { | |
29478 | NULL | |
29479 | }; | |
29480 | ||
29481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
29482 | { | |
29483 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29484 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
29485 | ||
29486 | wxPyEndAllowThreads(__tstate); | |
29487 | if (PyErr_Occurred()) SWIG_fail; | |
29488 | } | |
2f4c0a16 | 29489 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29490 | return resultobj; |
29491 | fail: | |
29492 | return NULL; | |
29493 | } | |
29494 | ||
29495 | ||
29496 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29497 | PyObject *resultobj; | |
29498 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29499 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29500 | wxString result; | |
29501 | PyObject * obj0 = 0 ; | |
29502 | PyObject * obj1 = 0 ; | |
29503 | char *kwnames[] = { | |
29504 | (char *) "self",(char *) "window", NULL | |
29505 | }; | |
29506 | ||
29507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29512 | { |
29513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29514 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
29515 | ||
29516 | wxPyEndAllowThreads(__tstate); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
29518 | } | |
29519 | { | |
29520 | #if wxUSE_UNICODE | |
29521 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29522 | #else | |
29523 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29524 | #endif | |
29525 | } | |
29526 | return resultobj; | |
29527 | fail: | |
29528 | return NULL; | |
29529 | } | |
29530 | ||
29531 | ||
29532 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29533 | PyObject *resultobj; | |
29534 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29535 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29536 | bool result; | |
29537 | PyObject * obj0 = 0 ; | |
29538 | PyObject * obj1 = 0 ; | |
29539 | char *kwnames[] = { | |
29540 | (char *) "self",(char *) "window", NULL | |
29541 | }; | |
29542 | ||
29543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29546 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29548 | { |
29549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29550 | result = (bool)(arg1)->ShowHelp(arg2); | |
29551 | ||
29552 | wxPyEndAllowThreads(__tstate); | |
29553 | if (PyErr_Occurred()) SWIG_fail; | |
29554 | } | |
4f89f6a3 RD |
29555 | { |
29556 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29557 | } | |
d14a1e28 RD |
29558 | return resultobj; |
29559 | fail: | |
29560 | return NULL; | |
29561 | } | |
29562 | ||
29563 | ||
29564 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29565 | PyObject *resultobj; | |
29566 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29567 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29568 | wxString *arg3 = 0 ; | |
423f194a | 29569 | bool temp3 = False ; |
d14a1e28 RD |
29570 | PyObject * obj0 = 0 ; |
29571 | PyObject * obj1 = 0 ; | |
29572 | PyObject * obj2 = 0 ; | |
29573 | char *kwnames[] = { | |
29574 | (char *) "self",(char *) "window",(char *) "text", NULL | |
29575 | }; | |
29576 | ||
29577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29580 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29582 | { |
29583 | arg3 = wxString_in_helper(obj2); | |
29584 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29585 | temp3 = True; |
d14a1e28 RD |
29586 | } |
29587 | { | |
29588 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29589 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29590 | ||
29591 | wxPyEndAllowThreads(__tstate); | |
29592 | if (PyErr_Occurred()) SWIG_fail; | |
29593 | } | |
29594 | Py_INCREF(Py_None); resultobj = Py_None; | |
29595 | { | |
29596 | if (temp3) | |
29597 | delete arg3; | |
29598 | } | |
29599 | return resultobj; | |
29600 | fail: | |
29601 | { | |
29602 | if (temp3) | |
29603 | delete arg3; | |
29604 | } | |
29605 | return NULL; | |
29606 | } | |
29607 | ||
29608 | ||
29609 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29610 | PyObject *resultobj; | |
29611 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 29612 | int arg2 ; |
d14a1e28 | 29613 | wxString *arg3 = 0 ; |
423f194a | 29614 | bool temp3 = False ; |
d14a1e28 | 29615 | PyObject * obj0 = 0 ; |
8edf1c75 | 29616 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29617 | PyObject * obj2 = 0 ; |
29618 | char *kwnames[] = { | |
29619 | (char *) "self",(char *) "id",(char *) "text", NULL | |
29620 | }; | |
29621 | ||
8edf1c75 | 29622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29625 | arg2 = (int) SWIG_AsInt(obj1); | |
29626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29627 | { |
29628 | arg3 = wxString_in_helper(obj2); | |
29629 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29630 | temp3 = True; |
d14a1e28 RD |
29631 | } |
29632 | { | |
29633 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29634 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29635 | ||
29636 | wxPyEndAllowThreads(__tstate); | |
29637 | if (PyErr_Occurred()) SWIG_fail; | |
29638 | } | |
29639 | Py_INCREF(Py_None); resultobj = Py_None; | |
29640 | { | |
29641 | if (temp3) | |
29642 | delete arg3; | |
29643 | } | |
29644 | return resultobj; | |
29645 | fail: | |
29646 | { | |
29647 | if (temp3) | |
29648 | delete arg3; | |
29649 | } | |
29650 | return NULL; | |
29651 | } | |
29652 | ||
29653 | ||
2f4c0a16 RD |
29654 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
29655 | PyObject *resultobj; | |
29656 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29657 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29658 | PyObject * obj0 = 0 ; | |
29659 | PyObject * obj1 = 0 ; | |
29660 | char *kwnames[] = { | |
29661 | (char *) "self",(char *) "window", NULL | |
29662 | }; | |
29663 | ||
29664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
29665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29667 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29669 | { | |
29670 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29671 | (arg1)->RemoveHelp(arg2); | |
29672 | ||
29673 | wxPyEndAllowThreads(__tstate); | |
29674 | if (PyErr_Occurred()) SWIG_fail; | |
29675 | } | |
29676 | Py_INCREF(Py_None); resultobj = Py_None; | |
29677 | return resultobj; | |
29678 | fail: | |
29679 | return NULL; | |
29680 | } | |
29681 | ||
29682 | ||
d14a1e28 RD |
29683 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
29684 | PyObject *resultobj; | |
29685 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29686 | PyObject * obj0 = 0 ; | |
29687 | char *kwnames[] = { | |
29688 | (char *) "self", NULL | |
29689 | }; | |
29690 | ||
29691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29694 | { |
29695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29696 | wxHelpProvider_Destroy(arg1); | |
29697 | ||
29698 | wxPyEndAllowThreads(__tstate); | |
29699 | if (PyErr_Occurred()) SWIG_fail; | |
29700 | } | |
29701 | Py_INCREF(Py_None); resultobj = Py_None; | |
29702 | return resultobj; | |
29703 | fail: | |
29704 | return NULL; | |
29705 | } | |
29706 | ||
29707 | ||
29708 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29709 | PyObject *obj; | |
29710 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29711 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
29712 | Py_INCREF(obj); | |
29713 | return Py_BuildValue((char *)""); | |
29714 | } | |
29715 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29716 | PyObject *resultobj; | |
29717 | wxSimpleHelpProvider *result; | |
29718 | char *kwnames[] = { | |
29719 | NULL | |
29720 | }; | |
29721 | ||
29722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
29723 | { | |
29724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29725 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29726 | ||
29727 | wxPyEndAllowThreads(__tstate); | |
29728 | if (PyErr_Occurred()) SWIG_fail; | |
29729 | } | |
2f4c0a16 | 29730 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
29731 | return resultobj; |
29732 | fail: | |
29733 | return NULL; | |
29734 | } | |
29735 | ||
29736 | ||
29737 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29738 | PyObject *obj; | |
29739 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29740 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29741 | Py_INCREF(obj); | |
29742 | return Py_BuildValue((char *)""); | |
29743 | } | |
423f194a RD |
29744 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
29745 | PyObject *resultobj; | |
29746 | wxBitmap *arg1 = 0 ; | |
29747 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29748 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29749 | wxGenericDragImage *result; | |
29750 | PyObject * obj0 = 0 ; | |
29751 | PyObject * obj1 = 0 ; | |
29752 | char *kwnames[] = { | |
29753 | (char *) "image",(char *) "cursor", NULL | |
29754 | }; | |
29755 | ||
29756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
29758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29759 | SWIG_fail; | |
423f194a | 29760 | if (arg1 == NULL) { |
2f4c0a16 RD |
29761 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29762 | SWIG_fail; | |
423f194a RD |
29763 | } |
29764 | if (obj1) { | |
2f4c0a16 RD |
29765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29767 | SWIG_fail; | |
423f194a | 29768 | if (arg2 == NULL) { |
2f4c0a16 RD |
29769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29770 | SWIG_fail; | |
423f194a RD |
29771 | } |
29772 | } | |
29773 | { | |
29774 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29775 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29776 | ||
29777 | wxPyEndAllowThreads(__tstate); | |
29778 | if (PyErr_Occurred()) SWIG_fail; | |
29779 | } | |
2f4c0a16 | 29780 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29781 | return resultobj; |
29782 | fail: | |
29783 | return NULL; | |
29784 | } | |
29785 | ||
29786 | ||
29787 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29788 | PyObject *resultobj; | |
29789 | wxIcon *arg1 = 0 ; | |
29790 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29791 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29792 | wxGenericDragImage *result; | |
29793 | PyObject * obj0 = 0 ; | |
29794 | PyObject * obj1 = 0 ; | |
29795 | char *kwnames[] = { | |
29796 | (char *) "image",(char *) "cursor", NULL | |
29797 | }; | |
29798 | ||
29799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
29801 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29802 | SWIG_fail; | |
423f194a | 29803 | if (arg1 == NULL) { |
2f4c0a16 RD |
29804 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29805 | SWIG_fail; | |
423f194a RD |
29806 | } |
29807 | if (obj1) { | |
2f4c0a16 RD |
29808 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29809 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29810 | SWIG_fail; | |
423f194a | 29811 | if (arg2 == NULL) { |
2f4c0a16 RD |
29812 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29813 | SWIG_fail; | |
423f194a RD |
29814 | } |
29815 | } | |
29816 | { | |
29817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29818 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29819 | ||
29820 | wxPyEndAllowThreads(__tstate); | |
29821 | if (PyErr_Occurred()) SWIG_fail; | |
29822 | } | |
2f4c0a16 | 29823 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29824 | return resultobj; |
29825 | fail: | |
29826 | return NULL; | |
29827 | } | |
29828 | ||
29829 | ||
29830 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29831 | PyObject *resultobj; | |
29832 | wxString *arg1 = 0 ; | |
29833 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29834 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29835 | wxGenericDragImage *result; | |
29836 | bool temp1 = False ; | |
29837 | PyObject * obj0 = 0 ; | |
29838 | PyObject * obj1 = 0 ; | |
29839 | char *kwnames[] = { | |
29840 | (char *) "str",(char *) "cursor", NULL | |
29841 | }; | |
29842 | ||
29843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29844 | { | |
29845 | arg1 = wxString_in_helper(obj0); | |
29846 | if (arg1 == NULL) SWIG_fail; | |
29847 | temp1 = True; | |
29848 | } | |
29849 | if (obj1) { | |
2f4c0a16 RD |
29850 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29852 | SWIG_fail; | |
423f194a | 29853 | if (arg2 == NULL) { |
2f4c0a16 RD |
29854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29855 | SWIG_fail; | |
423f194a RD |
29856 | } |
29857 | } | |
29858 | { | |
29859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29860 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29861 | ||
29862 | wxPyEndAllowThreads(__tstate); | |
29863 | if (PyErr_Occurred()) SWIG_fail; | |
29864 | } | |
2f4c0a16 | 29865 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29866 | { |
29867 | if (temp1) | |
29868 | delete arg1; | |
29869 | } | |
29870 | return resultobj; | |
29871 | fail: | |
29872 | { | |
29873 | if (temp1) | |
29874 | delete arg1; | |
29875 | } | |
29876 | return NULL; | |
29877 | } | |
29878 | ||
29879 | ||
29880 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29881 | PyObject *resultobj; | |
29882 | wxPyTreeCtrl *arg1 = 0 ; | |
29883 | wxTreeItemId *arg2 = 0 ; | |
29884 | wxGenericDragImage *result; | |
29885 | PyObject * obj0 = 0 ; | |
29886 | PyObject * obj1 = 0 ; | |
29887 | char *kwnames[] = { | |
29888 | (char *) "treeCtrl",(char *) "id", NULL | |
29889 | }; | |
29890 | ||
29891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
29893 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29894 | SWIG_fail; | |
423f194a | 29895 | if (arg1 == NULL) { |
2f4c0a16 RD |
29896 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29897 | SWIG_fail; | |
423f194a | 29898 | } |
2f4c0a16 RD |
29899 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
29900 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29901 | SWIG_fail; | |
423f194a | 29902 | if (arg2 == NULL) { |
2f4c0a16 RD |
29903 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29904 | SWIG_fail; | |
423f194a RD |
29905 | } |
29906 | { | |
29907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29908 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29909 | ||
29910 | wxPyEndAllowThreads(__tstate); | |
29911 | if (PyErr_Occurred()) SWIG_fail; | |
29912 | } | |
2f4c0a16 | 29913 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29914 | return resultobj; |
29915 | fail: | |
29916 | return NULL; | |
29917 | } | |
29918 | ||
29919 | ||
29920 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29921 | PyObject *resultobj; | |
29922 | wxPyListCtrl *arg1 = 0 ; | |
29923 | long arg2 ; | |
29924 | wxGenericDragImage *result; | |
29925 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29926 | PyObject * obj1 = 0 ; |
423f194a RD |
29927 | char *kwnames[] = { |
29928 | (char *) "listCtrl",(char *) "id", NULL | |
29929 | }; | |
29930 | ||
8edf1c75 | 29931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
29933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29934 | SWIG_fail; | |
423f194a | 29935 | if (arg1 == NULL) { |
2f4c0a16 RD |
29936 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29937 | SWIG_fail; | |
8edf1c75 | 29938 | } |
2f4c0a16 RD |
29939 | arg2 = (long) SWIG_AsLong(obj1); |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
29941 | { |
29942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29943 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29944 | ||
29945 | wxPyEndAllowThreads(__tstate); | |
29946 | if (PyErr_Occurred()) SWIG_fail; | |
29947 | } | |
2f4c0a16 | 29948 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29949 | return resultobj; |
29950 | fail: | |
29951 | return NULL; | |
29952 | } | |
29953 | ||
29954 | ||
29955 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29956 | PyObject *resultobj; | |
29957 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29958 | PyObject * obj0 = 0 ; | |
29959 | char *kwnames[] = { | |
29960 | (char *) "self", NULL | |
29961 | }; | |
29962 | ||
29963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29966 | { |
29967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29968 | delete arg1; | |
29969 | ||
29970 | wxPyEndAllowThreads(__tstate); | |
29971 | if (PyErr_Occurred()) SWIG_fail; | |
29972 | } | |
29973 | Py_INCREF(Py_None); resultobj = Py_None; | |
29974 | return resultobj; | |
29975 | fail: | |
29976 | return NULL; | |
29977 | } | |
29978 | ||
29979 | ||
29980 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29981 | PyObject *resultobj; | |
29982 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29983 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29984 | PyObject * obj0 = 0 ; | |
29985 | PyObject * obj1 = 0 ; | |
29986 | char *kwnames[] = { | |
29987 | (char *) "self",(char *) "bitmap", NULL | |
29988 | }; | |
29989 | ||
29990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
29994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29995 | { |
29996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29997 | (arg1)->SetBackingBitmap(arg2); | |
29998 | ||
29999 | wxPyEndAllowThreads(__tstate); | |
30000 | if (PyErr_Occurred()) SWIG_fail; | |
30001 | } | |
30002 | Py_INCREF(Py_None); resultobj = Py_None; | |
30003 | return resultobj; | |
30004 | fail: | |
30005 | return NULL; | |
30006 | } | |
30007 | ||
30008 | ||
30009 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30010 | PyObject *resultobj; | |
30011 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30012 | wxPoint *arg2 = 0 ; | |
30013 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30014 | bool arg4 = (bool) False ; | |
30015 | wxRect *arg5 = (wxRect *) NULL ; | |
30016 | bool result; | |
30017 | wxPoint temp2 ; | |
30018 | PyObject * obj0 = 0 ; | |
30019 | PyObject * obj1 = 0 ; | |
30020 | PyObject * obj2 = 0 ; | |
30021 | PyObject * obj3 = 0 ; | |
30022 | PyObject * obj4 = 0 ; | |
30023 | char *kwnames[] = { | |
30024 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30025 | }; | |
30026 | ||
30027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30030 | { |
30031 | arg2 = &temp2; | |
30032 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30033 | } | |
2f4c0a16 RD |
30034 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 30036 | if (obj3) { |
2f4c0a16 RD |
30037 | arg4 = (bool) SWIG_AsBool(obj3); |
30038 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
30039 | } |
30040 | if (obj4) { | |
2f4c0a16 RD |
30041 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30043 | } |
30044 | { | |
30045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30046 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30047 | ||
30048 | wxPyEndAllowThreads(__tstate); | |
30049 | if (PyErr_Occurred()) SWIG_fail; | |
30050 | } | |
4f89f6a3 RD |
30051 | { |
30052 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30053 | } | |
423f194a RD |
30054 | return resultobj; |
30055 | fail: | |
30056 | return NULL; | |
30057 | } | |
30058 | ||
30059 | ||
30060 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30061 | PyObject *resultobj; | |
30062 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30063 | wxPoint *arg2 = 0 ; | |
30064 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30065 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30066 | bool result; | |
30067 | wxPoint temp2 ; | |
30068 | PyObject * obj0 = 0 ; | |
30069 | PyObject * obj1 = 0 ; | |
30070 | PyObject * obj2 = 0 ; | |
30071 | PyObject * obj3 = 0 ; | |
30072 | char *kwnames[] = { | |
30073 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30074 | }; | |
30075 | ||
30076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
30077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30079 | { |
30080 | arg2 = &temp2; | |
30081 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30082 | } | |
2f4c0a16 RD |
30083 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30085 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30087 | { |
30088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30089 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30090 | ||
30091 | wxPyEndAllowThreads(__tstate); | |
30092 | if (PyErr_Occurred()) SWIG_fail; | |
30093 | } | |
4f89f6a3 RD |
30094 | { |
30095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30096 | } | |
423f194a RD |
30097 | return resultobj; |
30098 | fail: | |
30099 | return NULL; | |
30100 | } | |
30101 | ||
30102 | ||
30103 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30104 | PyObject *resultobj; | |
30105 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30106 | bool result; | |
30107 | PyObject * obj0 = 0 ; | |
30108 | char *kwnames[] = { | |
30109 | (char *) "self", NULL | |
30110 | }; | |
30111 | ||
30112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30113 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30114 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30115 | { |
30116 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30117 | result = (bool)(arg1)->EndDrag(); | |
30118 | ||
30119 | wxPyEndAllowThreads(__tstate); | |
30120 | if (PyErr_Occurred()) SWIG_fail; | |
30121 | } | |
4f89f6a3 RD |
30122 | { |
30123 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30124 | } | |
423f194a RD |
30125 | return resultobj; |
30126 | fail: | |
30127 | return NULL; | |
30128 | } | |
30129 | ||
30130 | ||
30131 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30132 | PyObject *resultobj; | |
30133 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30134 | wxPoint *arg2 = 0 ; | |
30135 | bool result; | |
30136 | wxPoint temp2 ; | |
30137 | PyObject * obj0 = 0 ; | |
30138 | PyObject * obj1 = 0 ; | |
30139 | char *kwnames[] = { | |
30140 | (char *) "self",(char *) "pt", NULL | |
30141 | }; | |
30142 | ||
30143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30146 | { |
30147 | arg2 = &temp2; | |
30148 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30149 | } | |
30150 | { | |
30151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30152 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30153 | ||
30154 | wxPyEndAllowThreads(__tstate); | |
30155 | if (PyErr_Occurred()) SWIG_fail; | |
30156 | } | |
4f89f6a3 RD |
30157 | { |
30158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30159 | } | |
423f194a RD |
30160 | return resultobj; |
30161 | fail: | |
30162 | return NULL; | |
30163 | } | |
30164 | ||
30165 | ||
30166 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30167 | PyObject *resultobj; | |
30168 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30169 | bool result; | |
30170 | PyObject * obj0 = 0 ; | |
30171 | char *kwnames[] = { | |
30172 | (char *) "self", NULL | |
30173 | }; | |
30174 | ||
30175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30178 | { |
30179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30180 | result = (bool)(arg1)->Show(); | |
30181 | ||
30182 | wxPyEndAllowThreads(__tstate); | |
30183 | if (PyErr_Occurred()) SWIG_fail; | |
30184 | } | |
4f89f6a3 RD |
30185 | { |
30186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30187 | } | |
423f194a RD |
30188 | return resultobj; |
30189 | fail: | |
30190 | return NULL; | |
30191 | } | |
30192 | ||
30193 | ||
30194 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30195 | PyObject *resultobj; | |
30196 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30197 | bool result; | |
30198 | PyObject * obj0 = 0 ; | |
30199 | char *kwnames[] = { | |
30200 | (char *) "self", NULL | |
30201 | }; | |
30202 | ||
30203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30206 | { |
30207 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30208 | result = (bool)(arg1)->Hide(); | |
30209 | ||
30210 | wxPyEndAllowThreads(__tstate); | |
30211 | if (PyErr_Occurred()) SWIG_fail; | |
30212 | } | |
4f89f6a3 RD |
30213 | { |
30214 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30215 | } | |
423f194a RD |
30216 | return resultobj; |
30217 | fail: | |
30218 | return NULL; | |
30219 | } | |
30220 | ||
30221 | ||
30222 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30223 | PyObject *resultobj; | |
30224 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30225 | wxPoint *arg2 = 0 ; | |
30226 | wxRect result; | |
30227 | wxPoint temp2 ; | |
30228 | PyObject * obj0 = 0 ; | |
30229 | PyObject * obj1 = 0 ; | |
30230 | char *kwnames[] = { | |
30231 | (char *) "self",(char *) "pos", NULL | |
30232 | }; | |
30233 | ||
30234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30237 | { |
30238 | arg2 = &temp2; | |
30239 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30240 | } | |
30241 | { | |
30242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30243 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30244 | ||
30245 | wxPyEndAllowThreads(__tstate); | |
30246 | if (PyErr_Occurred()) SWIG_fail; | |
30247 | } | |
30248 | { | |
30249 | wxRect * resultptr; | |
30250 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 30251 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
423f194a RD |
30252 | } |
30253 | return resultobj; | |
30254 | fail: | |
30255 | return NULL; | |
30256 | } | |
30257 | ||
30258 | ||
30259 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30260 | PyObject *resultobj; | |
30261 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30262 | wxDC *arg2 = 0 ; | |
30263 | wxPoint *arg3 = 0 ; | |
30264 | bool result; | |
30265 | wxPoint temp3 ; | |
30266 | PyObject * obj0 = 0 ; | |
30267 | PyObject * obj1 = 0 ; | |
30268 | PyObject * obj2 = 0 ; | |
30269 | char *kwnames[] = { | |
30270 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30271 | }; | |
30272 | ||
30273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30276 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30277 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30278 | SWIG_fail; | |
423f194a | 30279 | if (arg2 == NULL) { |
2f4c0a16 RD |
30280 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30281 | SWIG_fail; | |
423f194a RD |
30282 | } |
30283 | { | |
30284 | arg3 = &temp3; | |
30285 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30286 | } | |
30287 | { | |
30288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30289 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30290 | ||
30291 | wxPyEndAllowThreads(__tstate); | |
30292 | if (PyErr_Occurred()) SWIG_fail; | |
30293 | } | |
4f89f6a3 RD |
30294 | { |
30295 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30296 | } | |
423f194a RD |
30297 | return resultobj; |
30298 | fail: | |
30299 | return NULL; | |
30300 | } | |
30301 | ||
30302 | ||
30303 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30304 | PyObject *resultobj; | |
30305 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30306 | wxDC *arg2 = 0 ; | |
30307 | wxMemoryDC *arg3 = 0 ; | |
30308 | wxRect *arg4 = 0 ; | |
30309 | wxRect *arg5 = 0 ; | |
30310 | bool result; | |
30311 | wxRect temp4 ; | |
30312 | wxRect temp5 ; | |
30313 | PyObject * obj0 = 0 ; | |
30314 | PyObject * obj1 = 0 ; | |
30315 | PyObject * obj2 = 0 ; | |
30316 | PyObject * obj3 = 0 ; | |
30317 | PyObject * obj4 = 0 ; | |
30318 | char *kwnames[] = { | |
30319 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30320 | }; | |
30321 | ||
30322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30326 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30327 | SWIG_fail; | |
423f194a | 30328 | if (arg2 == NULL) { |
2f4c0a16 RD |
30329 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30330 | SWIG_fail; | |
423f194a | 30331 | } |
2f4c0a16 RD |
30332 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
30333 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30334 | SWIG_fail; | |
423f194a | 30335 | if (arg3 == NULL) { |
2f4c0a16 RD |
30336 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30337 | SWIG_fail; | |
423f194a RD |
30338 | } |
30339 | { | |
30340 | arg4 = &temp4; | |
30341 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30342 | } | |
30343 | { | |
30344 | arg5 = &temp5; | |
30345 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30346 | } | |
30347 | { | |
30348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30349 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30350 | ||
30351 | wxPyEndAllowThreads(__tstate); | |
30352 | if (PyErr_Occurred()) SWIG_fail; | |
30353 | } | |
4f89f6a3 RD |
30354 | { |
30355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30356 | } | |
423f194a RD |
30357 | return resultobj; |
30358 | fail: | |
30359 | return NULL; | |
30360 | } | |
30361 | ||
30362 | ||
30363 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30364 | PyObject *resultobj; | |
30365 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30366 | wxPoint *arg2 = 0 ; | |
30367 | wxPoint *arg3 = 0 ; | |
30368 | bool arg4 ; | |
30369 | bool arg5 ; | |
30370 | bool result; | |
30371 | wxPoint temp2 ; | |
30372 | wxPoint temp3 ; | |
30373 | PyObject * obj0 = 0 ; | |
30374 | PyObject * obj1 = 0 ; | |
30375 | PyObject * obj2 = 0 ; | |
30376 | PyObject * obj3 = 0 ; | |
30377 | PyObject * obj4 = 0 ; | |
30378 | char *kwnames[] = { | |
30379 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30380 | }; | |
30381 | ||
30382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30385 | { |
30386 | arg2 = &temp2; | |
30387 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30388 | } | |
30389 | { | |
30390 | arg3 = &temp3; | |
30391 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30392 | } | |
2f4c0a16 RD |
30393 | arg4 = (bool) SWIG_AsBool(obj3); |
30394 | if (PyErr_Occurred()) SWIG_fail; | |
30395 | arg5 = (bool) SWIG_AsBool(obj4); | |
30396 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
30397 | { |
30398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30399 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
30400 | ||
30401 | wxPyEndAllowThreads(__tstate); | |
30402 | if (PyErr_Occurred()) SWIG_fail; | |
30403 | } | |
4f89f6a3 RD |
30404 | { |
30405 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30406 | } | |
423f194a RD |
30407 | return resultobj; |
30408 | fail: | |
30409 | return NULL; | |
30410 | } | |
30411 | ||
30412 | ||
30413 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
30414 | PyObject *obj; | |
30415 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30416 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
30417 | Py_INCREF(obj); | |
30418 | return Py_BuildValue((char *)""); | |
30419 | } | |
30420 | static PyMethodDef SwigMethods[] = { | |
30421 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
30422 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
30423 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
30424 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30425 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
30426 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
30427 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30428 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30429 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30430 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30431 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30432 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30433 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30434 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30435 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30436 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30437 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30438 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30439 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
30440 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
30441 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
30442 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30443 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30444 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30445 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30446 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30447 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30448 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30449 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30450 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
30451 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
30452 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
30453 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
30454 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
30455 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30456 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
30457 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30458 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30459 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
30460 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30461 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30462 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30463 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30464 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30465 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30466 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30467 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30468 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30469 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30470 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30471 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 30472 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30473 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
30474 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30475 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30476 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30477 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
30478 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
30479 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
30480 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
30481 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30482 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30483 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30484 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30485 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30486 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30487 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30488 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30489 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30490 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
30491 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30492 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30493 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30494 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
30495 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30496 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30497 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
30498 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30499 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30500 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
30501 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
30502 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
30503 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
30504 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
30505 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30506 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30507 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
30508 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30509 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30510 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
30511 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
30512 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
30513 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
30514 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30515 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
30516 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
30517 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
30518 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30519 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30520 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
30521 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
30522 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30523 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30524 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30525 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
30526 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
30527 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30528 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30529 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
30530 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
30531 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30532 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 30533 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30534 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
30535 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30536 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30537 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30538 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30539 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
30540 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
30541 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30542 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
30543 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
30544 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 30545 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30546 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
30547 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30548 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30549 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30550 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30551 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30552 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30553 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30554 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30555 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30556 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30557 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30558 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30559 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
30560 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30561 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30562 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
30563 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30564 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30565 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30566 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30567 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30568 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30569 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30570 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30571 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
30572 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
30573 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
30574 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30575 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30576 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30577 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30578 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30579 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30580 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
30581 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
30582 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
30583 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
30584 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
30585 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
30586 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
30587 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30588 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30589 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30590 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30591 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30592 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
30593 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
30594 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
30595 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
30596 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
30597 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
30598 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
30599 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
30600 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30601 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30602 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30603 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30604 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
30605 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
30606 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 30607 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 30608 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30609 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
30610 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30611 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
30612 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
30613 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
30614 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
30615 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
30616 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
30617 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
30618 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30619 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30620 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30621 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30622 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30623 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
30624 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30625 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30626 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30627 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
30628 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30629 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
30630 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30631 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
30632 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
30633 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
30634 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
30635 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30636 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30637 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30638 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30639 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
30640 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30641 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30642 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30643 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30644 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
30645 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
30646 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30647 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30648 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30649 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30650 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30651 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30652 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30653 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30654 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30655 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30656 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30657 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
30658 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30659 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30660 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30661 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30662 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30663 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
30664 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30665 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30666 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30667 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30668 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
30669 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
30670 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30671 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30672 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30673 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
30674 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30675 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30676 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30677 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30678 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30679 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30680 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30681 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
30682 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30683 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30684 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
30685 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
30686 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30687 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30688 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30689 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
30690 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30691 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30692 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30693 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30694 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30695 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
30696 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
30697 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
30698 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
30699 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30700 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30701 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30702 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30703 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30704 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30705 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30706 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30707 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30708 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30709 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30710 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30711 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30712 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30713 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30714 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
30715 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
30716 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
30717 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
30718 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
30719 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30720 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
30721 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30722 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30723 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30724 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30725 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30726 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30727 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
30728 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
30729 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
30730 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30731 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30732 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30733 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30734 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30735 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30736 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30737 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30738 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30739 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30740 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
30741 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
30742 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
30743 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
30744 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
30745 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30746 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
30747 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
30748 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30749 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30750 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30751 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30752 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30753 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
30754 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
30755 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30756 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30757 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30758 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
30759 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
30760 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30761 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30762 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
30763 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
30764 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30765 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
30766 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
30767 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
30768 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30769 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30770 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
30771 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30772 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
30773 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
30774 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30775 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30776 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30777 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
30778 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
30779 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30780 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30781 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30782 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30783 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30784 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30785 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30786 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30787 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30788 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30789 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30790 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30791 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30792 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30793 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30794 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30795 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30796 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30797 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30798 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30799 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30800 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30801 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30802 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30803 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30804 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30805 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30806 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30807 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30808 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30809 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30810 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30811 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30812 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30813 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30814 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
30815 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
30816 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
30817 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
30818 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30819 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30820 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30821 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30822 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30823 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30824 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30825 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30826 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30827 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30828 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30829 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30830 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30831 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30832 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30833 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30834 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30835 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30836 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30837 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30838 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30839 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30840 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30841 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30842 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30843 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30844 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30845 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30846 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30847 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30848 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30849 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30850 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30851 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30852 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30853 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30854 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 30855 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30856 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
30857 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30858 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30859 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30860 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30861 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30862 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30863 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30864 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30865 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30866 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30867 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30868 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30869 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30870 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30871 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30872 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30873 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30874 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30875 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30876 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30877 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30878 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30879 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30880 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30881 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30882 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30883 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30884 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30885 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30886 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30887 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30888 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30889 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30890 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30891 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30892 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30893 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30894 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30895 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30896 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30897 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30898 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30899 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30900 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30901 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30902 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30903 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30904 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30905 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30906 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30907 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30908 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30909 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30910 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30911 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30912 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30913 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30914 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30915 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30916 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30917 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30918 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30919 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30920 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30921 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30922 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30923 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30924 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30925 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30926 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30927 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30928 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30929 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30930 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30931 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30932 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30933 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30934 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30935 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30936 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30937 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30938 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30939 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30940 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30941 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30942 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30943 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30944 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30945 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30946 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30947 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30948 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30949 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30950 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30951 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30952 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30953 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30954 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30955 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30956 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30957 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30958 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30959 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30960 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30961 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30962 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30963 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30964 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30965 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30966 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30967 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30968 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30969 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30970 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30971 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30972 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30973 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30974 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30975 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30976 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30977 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30978 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30979 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30980 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30981 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30982 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30983 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30984 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30985 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30986 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30987 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30988 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30989 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30990 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30991 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30992 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 | 30993 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30994 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
30995 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30996 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30997 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30998 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30999 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31000 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31001 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31002 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31003 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31004 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31005 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31006 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31007 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31008 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31009 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31010 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31011 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31012 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31013 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31014 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31015 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31016 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31017 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31018 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31019 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31020 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31021 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31022 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31023 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31024 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31025 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, |
31026 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31027 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31028 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31029 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31030 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31031 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31032 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31033 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31034 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31035 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31036 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31037 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31038 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31039 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31040 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31041 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31042 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31043 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31044 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31045 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31046 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31047 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31048 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31049 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31050 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31051 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31052 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31053 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31054 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31055 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31056 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31057 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31058 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31059 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31060 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31061 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31062 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31063 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31064 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31065 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31066 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 31067 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31068 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
31069 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31070 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31071 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31072 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31073 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31074 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31075 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31076 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31077 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31078 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31079 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31080 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31081 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31082 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31083 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31084 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31085 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31086 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31087 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31088 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31089 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31090 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31091 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31092 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31093 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31094 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31095 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31096 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31097 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
31098 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31099 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31100 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31101 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31102 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31103 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31104 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31105 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31106 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31107 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31108 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31109 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31110 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31111 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31112 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31113 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31114 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31115 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31116 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31117 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31118 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31119 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31120 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31121 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31122 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31123 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31124 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31125 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31126 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31127 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31128 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31129 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31130 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31131 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 31132 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31133 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31134 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 31135 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31136 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31137 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31138 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31139 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31140 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31141 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31142 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31143 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31144 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31145 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, |
31146 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31147 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31148 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31149 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31150 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31151 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31152 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31153 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31154 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31155 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31156 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31157 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31158 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31159 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31160 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31161 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31162 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31163 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31164 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31165 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31166 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31167 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31168 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31169 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31170 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31171 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31172 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31173 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
e35a624d | 31174 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31175 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
31176 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
31177 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31178 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31179 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31180 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31181 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31182 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31183 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31184 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31185 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31186 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31187 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31188 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31189 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31190 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31191 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31192 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31193 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
e35a624d RD |
31194 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
31195 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31196 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
31197 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31198 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31199 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31200 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31201 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31202 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31203 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31204 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31205 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31206 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31207 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31208 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31209 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31210 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31211 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31212 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31213 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31214 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31215 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31216 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31217 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 31218 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31219 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
31220 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31221 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31222 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
31223 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
31224 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31225 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31226 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31227 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31228 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31232 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31233 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31234 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31241 | { NULL, NULL } |
31242 | }; | |
31243 | ||
31244 | ||
31245 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31246 | ||
31247 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31248 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31249 | } | |
31250 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31251 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31252 | } | |
31253 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31254 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31255 | } | |
31256 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31257 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31258 | } | |
31259 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31260 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31261 | } | |
31262 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31263 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31264 | } | |
31265 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31266 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31267 | } | |
31268 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31269 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31270 | } | |
31271 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31272 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31273 | } | |
31274 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31275 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31276 | } | |
31277 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31278 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31279 | } | |
31280 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31281 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31282 | } | |
31283 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31284 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31285 | } | |
31286 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31287 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31288 | } | |
31289 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31290 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31291 | } | |
31292 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31293 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31294 | } | |
31295 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31296 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31297 | } | |
31298 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31299 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31300 | } | |
31301 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31302 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31303 | } | |
31304 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31305 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31306 | } | |
31307 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31308 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31309 | } | |
31310 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31311 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31312 | } | |
31313 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31314 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31315 | } | |
31316 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31317 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31318 | } | |
31319 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31320 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31321 | } | |
31322 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31323 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31324 | } | |
31325 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31326 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31327 | } | |
31328 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31329 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31330 | } | |
31331 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31332 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31333 | } | |
31334 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31335 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31336 | } | |
31337 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31338 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31339 | } | |
31340 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31341 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31342 | } | |
31343 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31344 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31345 | } | |
31346 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31347 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31348 | } | |
31349 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31350 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31351 | } | |
31352 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31353 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31354 | } | |
31355 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31356 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31357 | } | |
31358 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31359 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31360 | } | |
31361 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31362 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31363 | } | |
31364 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31365 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31366 | } | |
31367 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31368 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31369 | } | |
31370 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31371 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31372 | } | |
31373 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31374 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31375 | } | |
31376 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31377 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31378 | } | |
31379 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31380 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31381 | } | |
31382 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31383 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31384 | } | |
31385 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31386 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31387 | } | |
31388 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31389 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31390 | } | |
31391 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31392 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31393 | } | |
31394 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31395 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31396 | } | |
31397 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31398 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31399 | } | |
31400 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31401 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31402 | } | |
eb9b6107 RD |
31403 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
31404 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31405 | } | |
d14a1e28 RD |
31406 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
31407 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31408 | } | |
31409 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
31410 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31411 | } | |
31412 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
31413 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
31414 | } | |
31415 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
31416 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
31417 | } | |
31418 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
31419 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
31420 | } | |
31421 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
31422 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31423 | } | |
31424 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
31425 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
31426 | } | |
31427 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
31428 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31429 | } | |
31430 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
31431 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
31432 | } | |
31433 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
31434 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
31435 | } | |
31436 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
31437 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
31438 | } | |
31439 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
31440 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
31441 | } | |
31442 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
31443 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31444 | } | |
31445 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
31446 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
31447 | } | |
31448 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
31449 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
31450 | } | |
31451 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
31452 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
31453 | } | |
31454 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
31455 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
31456 | } | |
31457 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
31458 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31459 | } | |
31460 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
31461 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
31462 | } | |
31463 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
31464 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
31465 | } | |
31466 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
31467 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
31468 | } | |
31469 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
31470 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
31471 | } | |
31472 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
31473 | return (void *)((wxControl *) ((wxGauge *) x)); | |
31474 | } | |
31475 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
31476 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
31477 | } | |
31478 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
31479 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
31480 | } | |
31481 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
31482 | return (void *)((wxControl *) ((wxButton *) x)); | |
31483 | } | |
31484 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
31485 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
31486 | } | |
31487 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
31488 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31489 | } | |
31490 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
31491 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
31492 | } | |
31493 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
31494 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
31495 | } | |
31496 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
31497 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
31498 | } | |
31499 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
31500 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
31501 | } | |
31502 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
31503 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
31504 | } | |
31505 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
31506 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
31507 | } | |
31508 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
31509 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
31510 | } | |
31511 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
31512 | return (void *)((wxControl *) ((wxSlider *) x)); | |
31513 | } | |
31514 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
31515 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
31516 | } | |
31517 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
31518 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
31519 | } | |
31520 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
31521 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
31522 | } | |
31523 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
31524 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
31525 | } | |
31526 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
31527 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
31528 | } | |
31529 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
31530 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
31531 | } | |
31532 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
31533 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31534 | } | |
31535 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
31536 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31537 | } | |
31538 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
31539 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31540 | } | |
31541 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
31542 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
31543 | } | |
eb9b6107 RD |
31544 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
31545 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31546 | } | |
d14a1e28 RD |
31547 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
31548 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31549 | } | |
31550 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
31551 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31552 | } | |
31553 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
31554 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31555 | } | |
31556 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31557 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31558 | } | |
31559 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31560 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31561 | } | |
31562 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31563 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31564 | } | |
31565 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
31566 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31567 | } | |
31568 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31569 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31570 | } | |
31571 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
31572 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31573 | } | |
31574 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
31575 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31576 | } | |
31577 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31578 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31579 | } | |
31580 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31581 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31582 | } | |
31583 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
31584 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31585 | } | |
31586 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
31587 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31588 | } | |
31589 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
31590 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31591 | } | |
31592 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
31593 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31594 | } | |
31595 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
31596 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31597 | } | |
31598 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31599 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31600 | } | |
31601 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
31602 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31603 | } | |
31604 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
31605 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31606 | } | |
31607 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31608 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31609 | } | |
31610 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
31611 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31612 | } | |
31613 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
31614 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31615 | } | |
31616 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
31617 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31618 | } | |
31619 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
31620 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31621 | } | |
31622 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
31623 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31624 | } | |
31625 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
31626 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31627 | } | |
31628 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
31629 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31630 | } | |
31631 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
31632 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31633 | } | |
31634 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
31635 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31636 | } | |
31637 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
31638 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31639 | } | |
31640 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
31641 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31642 | } | |
31643 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
31644 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31645 | } | |
31646 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
31647 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31648 | } | |
31649 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
31650 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31651 | } | |
31652 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
31653 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31654 | } | |
31655 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
31656 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31657 | } | |
31658 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
31659 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31660 | } | |
31661 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
31662 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
31663 | } | |
31664 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
31665 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31666 | } | |
31667 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
31668 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31669 | } | |
31670 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
31671 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31672 | } | |
31673 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
31674 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
31675 | } | |
31676 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
31677 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
31678 | } | |
31679 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
31680 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
31681 | } | |
31682 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
31683 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
31684 | } | |
31685 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
31686 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31687 | } | |
31688 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
31689 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31690 | } | |
31691 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
31692 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
31693 | } | |
31694 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31695 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31696 | } | |
31697 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31698 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31699 | } | |
31700 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31701 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31702 | } | |
31703 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31704 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31705 | } | |
31706 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31707 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31708 | } | |
31709 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
31710 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31711 | } | |
31712 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
31713 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31714 | } | |
31715 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31716 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31717 | } | |
31718 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31719 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31720 | } | |
31721 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31722 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31723 | } | |
31724 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31725 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31726 | } | |
31727 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
31728 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31729 | } | |
31730 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
31731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31732 | } | |
31733 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31734 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31735 | } | |
31736 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31737 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31738 | } | |
31739 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31740 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31741 | } | |
31742 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31743 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31744 | } | |
31745 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31746 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31747 | } | |
31748 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
31749 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31750 | } | |
31751 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
31752 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31753 | } | |
31754 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
31755 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31756 | } | |
31757 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31758 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31759 | } | |
31760 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31761 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31762 | } | |
31763 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31764 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31765 | } | |
31766 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31767 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31768 | } | |
31769 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31770 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31771 | } | |
31772 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31773 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31774 | } | |
31775 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
31776 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31777 | } | |
31778 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31779 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31780 | } | |
31781 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
31782 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31783 | } | |
31784 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
31785 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31786 | } | |
31787 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
31788 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31789 | } | |
31790 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31791 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31792 | } | |
31793 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31794 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31795 | } | |
31796 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31797 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31798 | } | |
31799 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31800 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31801 | } | |
31802 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31803 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31804 | } | |
31805 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31806 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31807 | } | |
31808 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31809 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31810 | } | |
31811 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31812 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31813 | } | |
31814 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31816 | } | |
31817 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31818 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31819 | } | |
31820 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31821 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31822 | } | |
31823 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31824 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31825 | } | |
31826 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31827 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31828 | } | |
31829 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31830 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31831 | } | |
31832 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31833 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31834 | } | |
31835 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31836 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31837 | } | |
31838 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31839 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31840 | } | |
31841 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31842 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31843 | } | |
31844 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31845 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31846 | } | |
31847 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31848 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31849 | } | |
31850 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31851 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31852 | } | |
31853 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31854 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31855 | } | |
31856 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31857 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31858 | } | |
31859 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31860 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31861 | } | |
31862 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31864 | } | |
31865 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31866 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31867 | } | |
31868 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31869 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31870 | } | |
31871 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31872 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31873 | } | |
31874 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31875 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31876 | } | |
31877 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31878 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31879 | } | |
31880 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31881 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31882 | } | |
31883 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31884 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31885 | } | |
31886 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31887 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31888 | } | |
31889 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31890 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31891 | } | |
31892 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31893 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31894 | } | |
31895 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31896 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31897 | } | |
31898 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31899 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31900 | } | |
31901 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31902 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31903 | } | |
31904 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31905 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31906 | } | |
31907 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31908 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31909 | } | |
31910 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31911 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31912 | } | |
31913 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31914 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31915 | } | |
31916 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31917 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31918 | } | |
d14a1e28 RD |
31919 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
31920 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31921 | } | |
41f1cec7 RD |
31922 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31923 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31924 | } | |
d14a1e28 RD |
31925 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31926 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31927 | } | |
31928 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31929 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31930 | } | |
41f1cec7 RD |
31931 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31932 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31933 | } | |
d14a1e28 RD |
31934 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31935 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31936 | } | |
31937 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31938 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31939 | } | |
31940 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31941 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31942 | } | |
31943 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31944 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31945 | } | |
31946 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31947 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31948 | } | |
31949 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31950 | return (void *)((wxObject *) ((wxImage *) x)); | |
31951 | } | |
31952 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31953 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31954 | } | |
31955 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31956 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31957 | } | |
eb9b6107 RD |
31958 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31959 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31960 | } | |
423f194a RD |
31961 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31962 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31963 | } | |
d14a1e28 RD |
31964 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31965 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31966 | } | |
31967 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31968 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31969 | } | |
31970 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31971 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31972 | } | |
31973 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31974 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31975 | } | |
31976 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31977 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31978 | } | |
31979 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31980 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31981 | } | |
31982 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31983 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31984 | } | |
31985 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31986 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31987 | } | |
31988 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31989 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31990 | } | |
31991 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31992 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31993 | } | |
31994 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31995 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31996 | } | |
31997 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31998 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31999 | } | |
32000 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32001 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32002 | } | |
32003 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32004 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32005 | } | |
32006 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32007 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32008 | } | |
32009 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32010 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32011 | } | |
32012 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32013 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32014 | } | |
32015 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32016 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32017 | } | |
32018 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32019 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32020 | } | |
32021 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32022 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32023 | } | |
32024 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32025 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32026 | } | |
32027 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32028 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32029 | } | |
32030 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32031 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32032 | } | |
32033 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32034 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32035 | } | |
32036 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32037 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32038 | } | |
32039 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32040 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32041 | } | |
32042 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32043 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32044 | } | |
32045 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32046 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32047 | } | |
32048 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32049 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32050 | } | |
32051 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32052 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32053 | } | |
32054 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32055 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32056 | } | |
32057 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32058 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32059 | } | |
32060 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32061 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32062 | } | |
32063 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32064 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32065 | } | |
32066 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32067 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32068 | } | |
32069 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32070 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32071 | } | |
32072 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32073 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32074 | } | |
32075 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32076 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32077 | } | |
32078 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32079 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32080 | } | |
32081 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32082 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
32083 | } | |
32084 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32085 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32086 | } | |
32087 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32088 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32089 | } | |
32090 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32091 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32092 | } | |
32093 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32094 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32095 | } | |
32096 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32097 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32098 | } | |
32099 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32100 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32101 | } | |
32102 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32103 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32104 | } | |
32105 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32106 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32107 | } | |
32108 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32109 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32110 | } | |
32111 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32112 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32113 | } | |
32114 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32115 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32116 | } | |
32117 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32118 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32119 | } | |
32120 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32121 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32122 | } | |
32123 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32124 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32125 | } | |
32126 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32127 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32128 | } | |
32129 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32130 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32131 | } | |
32132 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32133 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32134 | } | |
32135 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32136 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32137 | } | |
32138 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32139 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32140 | } | |
32141 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32142 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32143 | } | |
32144 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32145 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32146 | } | |
32147 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32148 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32149 | } | |
32150 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32151 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32152 | } | |
32153 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32154 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32155 | } | |
32156 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32157 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32158 | } | |
32159 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32160 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32161 | } | |
32162 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32163 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32164 | } | |
32165 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32166 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32167 | } | |
32168 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32169 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32170 | } | |
32171 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32172 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32173 | } | |
32174 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32175 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32176 | } | |
32177 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32178 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32179 | } | |
32180 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32181 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32182 | } | |
32183 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32184 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32185 | } | |
32186 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32187 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32188 | } | |
32189 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32190 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32191 | } | |
eb9b6107 RD |
32192 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
32193 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32194 | } | |
d14a1e28 RD |
32195 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
32196 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32197 | } | |
32198 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32199 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32200 | } | |
32201 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32202 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32203 | } | |
32204 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
32205 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
32206 | } | |
32207 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32208 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32209 | } | |
32210 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32211 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32212 | } | |
32213 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32214 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32215 | } | |
32216 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32217 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32218 | } | |
32219 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32220 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32221 | } | |
2f4c0a16 RD |
32222 | 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}}; |
32223 | 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}}; | |
32224 | 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}}; | |
32225 | 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}}; | |
32226 | 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}}; | |
32227 | 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}}; | |
32228 | 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}}; | |
32229 | 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}}; | |
32230 | 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}}; | |
32231 | 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}}; | |
2f4c0a16 | 32232 | 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}}; |
74a57fcd | 32233 | 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}}; |
2f4c0a16 RD |
32234 | 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}}; |
32235 | 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}}; | |
32236 | 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}}; | |
32237 | 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}}; | |
32238 | 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}}; | |
32239 | 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}}; | |
32240 | 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}}; | |
32241 | 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}}; | |
32242 | 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}}; | |
32243 | 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}}; | |
32244 | 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}}; | |
32245 | 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}}; | |
32246 | 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}}; | |
32247 | 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}}; | |
32248 | 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}}; | |
32249 | 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}}; | |
32250 | 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}}; | |
74a57fcd | 32251 | 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}}; |
2f4c0a16 RD |
32252 | 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}}; |
32253 | 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}}; | |
32254 | 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}}; | |
32255 | 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}}; | |
32256 | 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}}; | |
32257 | 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}}; | |
32258 | 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}}; | |
32259 | 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}}; | |
32260 | 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}}; | |
32261 | 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}}; | |
32262 | 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}}; | |
32263 | 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}}; | |
32264 | 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}}; | |
2f4c0a16 | 32265 | 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}}; |
74a57fcd | 32266 | 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}}; |
2f4c0a16 RD |
32267 | 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}}; |
32268 | 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}}; | |
32269 | 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}}; | |
32270 | 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}}; | |
32271 | 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}}; | |
32272 | 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}}; | |
32273 | 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}}; | |
32274 | 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}}; | |
32275 | 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}}; | |
32276 | 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}}; | |
32277 | 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}}; | |
32278 | 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}}; | |
32279 | 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}}; | |
32280 | 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}}; | |
32281 | 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}}; | |
32282 | 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}}; | |
32283 | 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}}; | |
32284 | 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}}; | |
32285 | 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}}; | |
32286 | 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}}; | |
32287 | 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}}; | |
32288 | 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}}; | |
32289 | 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}}; | |
32290 | 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}}; | |
32291 | 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}}; | |
32292 | 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}}; | |
32293 | 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}}; | |
32294 | 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}}; | |
32295 | 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}}; | |
32296 | 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}}; | |
32297 | 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}}; | |
32298 | 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}}; | |
32299 | 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}}; | |
32300 | 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}}; | |
32301 | 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}}; | |
32302 | 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}}; | |
32303 | 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}}; | |
32304 | 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}}; | |
32305 | 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}}; | |
32306 | 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}}; | |
d14a1e28 RD |
32307 | |
32308 | static swig_type_info *swig_types_initial[] = { | |
32309 | _swigt__p_wxTextUrlEvent, | |
32310 | _swigt__p_wxBookCtrlEvent, | |
32311 | _swigt__p_wxSizer, | |
d14a1e28 RD |
32312 | _swigt__p_wxCheckBox, |
32313 | _swigt__p_wxPyTreeCtrl, | |
32314 | _swigt__p_wxEvent, | |
32315 | _swigt__p_wxGenericDirCtrl, | |
32316 | _swigt__p_bool, | |
32317 | _swigt__p_wxPyTreeItemData, | |
32318 | _swigt__p_wxItemContainer, | |
d14a1e28 | 32319 | _swigt__p_wxPyListCtrl, |
74a57fcd | 32320 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
32321 | _swigt__p_wxStaticLine, |
32322 | _swigt__p_wxControl, | |
32323 | _swigt__p_wxPyControl, | |
32324 | _swigt__p_wxGauge, | |
32325 | _swigt__p_wxToolBarBase, | |
32326 | _swigt__p_wxFont, | |
32327 | _swigt__p_wxToggleButton, | |
32328 | _swigt__p_wxRadioButton, | |
32329 | _swigt__p_wxChoice, | |
423f194a | 32330 | _swigt__p_wxMemoryDC, |
d14a1e28 | 32331 | _swigt__p_wxListItemAttr, |
58203fa6 | 32332 | _swigt__p_void, |
d14a1e28 RD |
32333 | _swigt__p_int, |
32334 | _swigt__p_wxSize, | |
423f194a | 32335 | _swigt__p_wxDC, |
d14a1e28 RD |
32336 | _swigt__p_wxListView, |
32337 | _swigt__p_wxIcon, | |
74a57fcd | 32338 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
32339 | _swigt__p_wxTextCtrl, |
32340 | _swigt__p_wxNotebook, | |
32341 | _swigt__p_wxNotifyEvent, | |
32342 | _swigt__p_wxArrayString, | |
32343 | _swigt__p_wxListbook, | |
32344 | _swigt__p_wxStaticBitmap, | |
32345 | _swigt__p_wxSlider, | |
32346 | _swigt__p_wxStaticBox, | |
32347 | _swigt__p_wxArrayInt, | |
32348 | _swigt__p_wxContextHelp, | |
32349 | _swigt__p_long, | |
32350 | _swigt__p_wxEvtHandler, | |
32351 | _swigt__p_wxListEvent, | |
d14a1e28 | 32352 | _swigt__p_wxCheckListBox, |
74a57fcd | 32353 | _swigt__p_wxListBox, |
d14a1e28 RD |
32354 | _swigt__p_wxBookCtrl, |
32355 | _swigt__p_wxSpinButton, | |
32356 | _swigt__p_wxButton, | |
32357 | _swigt__p_wxBitmapButton, | |
32358 | _swigt__p_wxRect, | |
32359 | _swigt__p_wxContextHelpButton, | |
32360 | _swigt__p_wxRadioBox, | |
32361 | _swigt__p_wxScrollBar, | |
8edf1c75 | 32362 | _swigt__p_char, |
d14a1e28 RD |
32363 | _swigt__p_wxTreeItemId, |
32364 | _swigt__p_wxComboBox, | |
32365 | _swigt__p_wxHelpEvent, | |
32366 | _swigt__p_wxListItem, | |
32367 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 32368 | _swigt__p_wxSpinEvent, |
423f194a | 32369 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
32370 | _swigt__p_wxSpinCtrl, |
32371 | _swigt__p_wxImageList, | |
32372 | _swigt__p_wxHelpProvider, | |
32373 | _swigt__p_wxTextAttr, | |
32374 | _swigt__p_wxSimpleHelpProvider, | |
32375 | _swigt__p_wxPoint, | |
32376 | _swigt__p_wxListbookEvent, | |
32377 | _swigt__p_wxNotebookEvent, | |
32378 | _swigt__p_wxObject, | |
423f194a | 32379 | _swigt__p_wxCursor, |
d14a1e28 RD |
32380 | _swigt__p_wxKeyEvent, |
32381 | _swigt__p_wxWindow, | |
32382 | _swigt__p_wxString, | |
32383 | _swigt__p_wxBitmap, | |
32384 | _swigt__p_wxTreeEvent, | |
32385 | _swigt__p_wxMouseEvent, | |
32386 | _swigt__p_wxCommandEvent, | |
32387 | _swigt__p_wxStaticText, | |
32388 | _swigt__p_wxControlWithItems, | |
32389 | _swigt__p_wxToolBarToolBase, | |
32390 | _swigt__p_wxColour, | |
32391 | _swigt__p_wxToolBar, | |
32392 | _swigt__p_wxBookCtrlSizer, | |
32393 | _swigt__p_wxValidator, | |
32394 | 0 | |
32395 | }; | |
32396 | ||
32397 | ||
32398 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32399 | ||
32400 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
32401 | {0}}; |
32402 | ||
32403 | #ifdef __cplusplus | |
32404 | } | |
32405 | #endif | |
32406 | ||
32407 | #ifdef __cplusplus | |
32408 | extern "C" | |
32409 | #endif | |
32410 | SWIGEXPORT(void) SWIG_init(void) { | |
32411 | static PyObject *SWIG_globals = 0; | |
32412 | static int typeinit = 0; | |
32413 | PyObject *m, *d; | |
32414 | int i; | |
32415 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
32416 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
32417 | d = PyModule_GetDict(m); | |
32418 | ||
32419 | if (!typeinit) { | |
32420 | for (i = 0; swig_types_initial[i]; i++) { | |
32421 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
32422 | } | |
32423 | typeinit = 1; | |
32424 | } | |
32425 | SWIG_InstallConstants(d,swig_const_table); | |
32426 | ||
d03fd34d RD |
32427 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
32428 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
2f4c0a16 RD |
32429 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
32430 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
32431 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
32432 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
32433 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
32434 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 32435 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
2f4c0a16 RD |
32436 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
32437 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
32438 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
32439 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
32440 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
32441 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
32442 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
32443 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
32444 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
2f4c0a16 RD |
32445 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
32446 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
32447 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
32448 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
32449 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
32450 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
32451 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
32452 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
32453 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
2f4c0a16 RD |
32454 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
32455 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
32456 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
32457 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
32458 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
32459 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
32460 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
32461 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
32462 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
32463 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
32464 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
32465 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
32466 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
32467 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
32468 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
32469 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
32470 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
32471 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
32472 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
32473 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
32474 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
32475 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
32476 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
32477 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
32478 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
32479 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
32480 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
32481 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
32482 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
32483 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
32484 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
32485 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
32486 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
32487 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
32488 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
32489 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
32490 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
32491 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
32492 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
32493 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
32494 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
32495 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
32496 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
32497 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
32498 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
32499 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
32500 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
32501 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
2f4c0a16 RD |
32502 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
32503 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
32504 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
32505 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 32506 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
32507 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
32508 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
32509 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
32510 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 32511 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 32512 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
2f4c0a16 RD |
32513 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
32514 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
32515 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
32516 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
32517 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
32518 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
32519 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
32520 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
32521 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
32522 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
32523 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
32524 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32525 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
32526 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
32527 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
32528 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
32529 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
32530 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
32531 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
32532 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32533 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
32534 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
32535 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
32536 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
32537 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
32538 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
32539 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
32540 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
32541 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
32542 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
32543 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
32544 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
32545 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
32546 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 32547 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
2f4c0a16 RD |
32548 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
32549 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
32550 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
32551 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
32552 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
32553 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
32554 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
32555 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
32556 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
32557 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
32558 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
32559 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
32560 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
32561 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
32562 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
32563 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
32564 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
32565 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
32566 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
32567 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
32568 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
32569 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
32570 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
32571 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
32572 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
32573 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
32574 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
32575 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
32576 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
32577 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
32578 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
32579 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
32580 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
32581 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
32582 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
32583 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
32584 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
32585 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
32586 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
32587 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
32588 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
32589 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
32590 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
32591 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
32592 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
32593 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
32594 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
32595 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
32596 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
32597 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
32598 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
32599 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
32600 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
32601 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
32602 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
32603 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
32604 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
32605 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
32606 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
32607 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
32608 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
32609 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
32610 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
32611 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
32612 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
32613 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
32614 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
32615 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
32616 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
32617 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
32618 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
32619 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
32620 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
32621 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
32622 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
32623 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
32624 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
32625 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
32626 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
32627 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
32628 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
32629 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
32630 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
32631 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
32632 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
32633 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
32634 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
32635 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
32636 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
32637 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
32638 | ||
32639 | // Map renamed classes back to their common name for OOR | |
32640 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
32641 | ||
d03fd34d | 32642 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
2f4c0a16 RD |
32643 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
32644 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
32645 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
32646 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
32647 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
32648 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
32649 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
32650 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
32651 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
32652 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
32653 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
32654 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
32655 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
32656 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
32657 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
32658 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
32659 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
32660 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
32661 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
32662 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
32663 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
32664 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
32665 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
32666 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
32667 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
32668 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
32669 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
32670 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
32671 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
32672 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
32673 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
32674 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
32675 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
32676 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
32677 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
32678 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
32679 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
32680 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
32681 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
32682 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
32683 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
32684 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
32685 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
32686 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
32687 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
32688 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
32689 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
32690 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
32691 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
32692 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
32693 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
32694 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
32695 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
32696 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 32697 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
32698 | |
32699 | // Map renamed classes back to their common name for OOR | |
32700 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
32701 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
32702 | ||
d03fd34d | 32703 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
2f4c0a16 RD |
32704 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
32705 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
32706 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
32707 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
32708 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
32709 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
32710 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
32711 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
32712 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
32713 | |
32714 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
32715 | ||
d14a1e28 RD |
32716 | } |
32717 |