]>
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] | |
219 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[10] | |
220 | #define SWIGTYPE_p_wxPyListCtrl swig_types[11] | |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] | |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
238 | #define SWIGTYPE_p_wxTextCtrl swig_types[29] | |
239 | #define SWIGTYPE_p_wxNotebook swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotifyEvent swig_types[31] | |
241 | #define SWIGTYPE_p_wxArrayString swig_types[32] | |
242 | #define SWIGTYPE_p_wxListbook swig_types[33] | |
243 | #define SWIGTYPE_p_wxStaticBitmap swig_types[34] | |
244 | #define SWIGTYPE_p_wxSlider swig_types[35] | |
245 | #define SWIGTYPE_p_wxStaticBox swig_types[36] | |
246 | #define SWIGTYPE_p_wxArrayInt swig_types[37] | |
247 | #define SWIGTYPE_p_wxContextHelp swig_types[38] | |
248 | #define SWIGTYPE_p_long swig_types[39] | |
249 | #define SWIGTYPE_p_wxEvtHandler swig_types[40] | |
250 | #define SWIGTYPE_p_wxListEvent swig_types[41] | |
251 | #define SWIGTYPE_p_wxListBox swig_types[42] | |
252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] | |
253 | #define SWIGTYPE_p_wxBookCtrl swig_types[44] | |
254 | #define SWIGTYPE_p_wxSpinButton swig_types[45] | |
255 | #define SWIGTYPE_p_wxButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxBitmapButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxRect swig_types[48] | |
258 | #define SWIGTYPE_p_wxContextHelpButton swig_types[49] | |
259 | #define SWIGTYPE_p_wxRadioBox swig_types[50] | |
260 | #define SWIGTYPE_p_wxScrollBar swig_types[51] | |
8edf1c75 RD |
261 | #define SWIGTYPE_p_char swig_types[52] |
262 | #define SWIGTYPE_p_wxTreeItemId swig_types[53] | |
263 | #define SWIGTYPE_p_wxComboBox swig_types[54] | |
264 | #define SWIGTYPE_p_wxHelpEvent swig_types[55] | |
265 | #define SWIGTYPE_p_wxListItem swig_types[56] | |
266 | #define SWIGTYPE_p_wxNotebookSizer swig_types[57] | |
267 | #define SWIGTYPE_p_wxSpinEvent swig_types[58] | |
268 | #define SWIGTYPE_p_wxGenericDragImage swig_types[59] | |
269 | #define SWIGTYPE_p_wxSpinCtrl swig_types[60] | |
270 | #define SWIGTYPE_p_wxImageList swig_types[61] | |
271 | #define SWIGTYPE_p_wxHelpProvider swig_types[62] | |
272 | #define SWIGTYPE_p_wxTextAttr swig_types[63] | |
273 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[64] | |
274 | #define SWIGTYPE_p_wxPoint swig_types[65] | |
275 | #define SWIGTYPE_p_wxListbookEvent swig_types[66] | |
276 | #define SWIGTYPE_p_wxNotebookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxObject swig_types[68] | |
278 | #define SWIGTYPE_p_wxCursor swig_types[69] | |
279 | #define SWIGTYPE_p_wxKeyEvent swig_types[70] | |
280 | #define SWIGTYPE_p_wxWindow swig_types[71] | |
281 | #define SWIGTYPE_p_wxString swig_types[72] | |
282 | #define SWIGTYPE_p_wxBitmap swig_types[73] | |
283 | #define SWIGTYPE_p_wxTreeEvent swig_types[74] | |
284 | #define SWIGTYPE_p_wxMouseEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxCommandEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxStaticText swig_types[77] | |
287 | #define SWIGTYPE_p_wxControlWithItems swig_types[78] | |
288 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[79] | |
289 | #define SWIGTYPE_p_wxColour swig_types[80] | |
290 | #define SWIGTYPE_p_wxToolBar swig_types[81] | |
291 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[82] | |
292 | #define SWIGTYPE_p_wxValidator swig_types[83] | |
293 | static swig_type_info *swig_types[85]; | |
d14a1e28 RD |
294 | |
295 | /* -------- TYPES TABLE (END) -------- */ | |
296 | ||
297 | ||
298 | /*----------------------------------------------- | |
299 | @(target):= _controls.so | |
300 | ------------------------------------------------*/ | |
301 | #define SWIG_init init_controls | |
302 | ||
303 | #define SWIG_name "_controls" | |
304 | ||
2f4c0a16 | 305 | /* Auxiliar swig macros */ |
8edf1c75 | 306 | |
8edf1c75 | 307 | #ifdef __cplusplus |
2f4c0a16 | 308 | #define SWIGSTATICINLINE(a) static inline a |
8edf1c75 | 309 | #define SWIGSTATIC(a) static a |
2f4c0a16 RD |
310 | #define swig_new_array(type, size) (new type[(size)]) |
311 | #define swig_delete_array(cptr) delete[] cptr | |
312 | #define swig_const_cast(type,a) const_cast<type>(a) | |
313 | #define swig_static_cast(type,a) static_cast<type>(a) | |
314 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
8edf1c75 | 315 | |
8edf1c75 | 316 | #ifdef HAVE_NUMERIC_CAST |
2f4c0a16 | 317 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
8edf1c75 | 318 | #else |
2f4c0a16 | 319 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
8edf1c75 RD |
320 | #endif |
321 | ||
2f4c0a16 RD |
322 | #else /* C case */ |
323 | ||
324 | #define SWIGSTATICINLINE(a) static a | |
325 | #define SWIGSTATIC(a) static a | |
326 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
327 | #define swig_delete_array(cptr) free((char*)cptr) | |
328 | #define swig_const_cast(type,a) (type)(a) | |
329 | #define swig_static_cast(type,a) (type)(a) | |
330 | #define swig_reinterpret_cast(type,a) (type)(a) | |
331 | #define swig_numeric_cast(type,a) (type)(a) | |
332 | ||
333 | #endif /* __cplusplus */ | |
8edf1c75 RD |
334 | |
335 | ||
2f4c0a16 RD |
336 | #define SWIG_FromSignedChar PyInt_FromLong |
337 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
338 | #define SWIG_FromShort PyInt_FromLong | |
339 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
340 | #define SWIG_FromInt PyInt_FromLong | |
341 | #define SWIG_FromLong PyInt_FromLong | |
342 | #define SWIG_FromFloat PyFloat_FromDouble | |
343 | #define SWIG_FromDouble PyFloat_FromDouble | |
344 | #define SWIG_FromFloat PyFloat_FromDouble | |
345 | #define SWIG_FromDouble PyFloat_FromDouble | |
8edf1c75 RD |
346 | |
347 | ||
d14a1e28 RD |
348 | #include "wx/wxPython/wxPython.h" |
349 | #include "wx/wxPython/pyclasses.h" | |
350 | ||
d03fd34d RD |
351 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
352 | static const wxString wxPyEmptyString(wxEmptyString); | |
353 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4e760a36 RD |
354 | |
355 | const wxArrayString wxPyEmptyStringArray; | |
356 | ||
d03fd34d | 357 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
8edf1c75 | 358 | |
2f4c0a16 RD |
359 | #include <limits.h> |
360 | ||
361 | ||
362 | SWIGSTATICINLINE(long) | |
363 | SWIG_CheckLongInRange(long value, const char* type, | |
364 | long min_value, long max_value) | |
365 | { | |
366 | if (!PyErr_Occurred()) { | |
367 | if (value < min_value) { | |
368 | PyObject *err = | |
369 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
370 | value, type, min_value); | |
371 | ||
372 | PyErr_SetObject(PyExc_OverflowError, err); | |
373 | Py_DECREF(err); | |
374 | } else if (value > max_value) { | |
375 | PyObject *err = | |
376 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
377 | value, type, max_value); | |
378 | PyErr_SetObject(PyExc_OverflowError, err); | |
379 | Py_DECREF(err); | |
380 | } | |
381 | } | |
382 | return value; | |
383 | } | |
384 | ||
385 | ||
386 | SWIGSTATICINLINE(long) | |
387 | SWIG_AsLong(PyObject * obj) | |
388 | { | |
389 | return PyInt_Check(obj) ? PyInt_AsLong(obj) : PyLong_AsLong(obj); | |
390 | } | |
391 | ||
392 | ||
393 | #if INT_MAX != LONG_MAX | |
394 | SWIGSTATICINLINE(int) | |
395 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 396 | { |
2f4c0a16 RD |
397 | return swig_numeric_cast(int, |
398 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
399 | "int", INT_MIN, INT_MAX)); | |
8edf1c75 | 400 | } |
2f4c0a16 RD |
401 | #else |
402 | #define SWIG_AsInt SWIG_AsLong | |
403 | #endif | |
8edf1c75 RD |
404 | |
405 | ||
2f4c0a16 RD |
406 | SWIGSTATICINLINE(int) |
407 | SWIG_CheckInt(PyObject* obj) | |
8edf1c75 | 408 | { |
2f4c0a16 RD |
409 | SWIG_AsInt(obj); |
410 | if (PyErr_Occurred()) { | |
411 | PyErr_Clear(); | |
412 | return 0; | |
413 | } else { | |
414 | return 1; | |
415 | } | |
416 | } | |
417 | ||
418 | ||
419 | SWIGSTATICINLINE(int) | |
420 | SWIG_CheckLong(PyObject* obj) | |
421 | { | |
422 | SWIG_AsLong(obj); | |
423 | if (PyErr_Occurred()) { | |
424 | PyErr_Clear(); | |
425 | return 0; | |
426 | } else { | |
427 | return 1; | |
428 | } | |
8edf1c75 RD |
429 | } |
430 | ||
d03fd34d | 431 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 | 432 | |
2f4c0a16 RD |
433 | SWIGSTATICINLINE(bool) |
434 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
435 | { |
436 | return PyObject_IsTrue(obj) ? true : false; | |
437 | } | |
438 | ||
2f4c0a16 RD |
439 | |
440 | SWIGSTATICINLINE(int) | |
441 | SWIG_CheckBool(PyObject* obj) | |
442 | { | |
443 | SWIG_AsBool(obj); | |
444 | if (PyErr_Occurred()) { | |
445 | PyErr_Clear(); | |
446 | return 0; | |
447 | } else { | |
448 | return 1; | |
449 | } | |
450 | } | |
451 | ||
d03fd34d RD |
452 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
453 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
454 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
455 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
456 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
457 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
458 | |
459 | #include <wx/checklst.h> | |
460 | ||
d14a1e28 | 461 | |
d03fd34d | 462 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
463 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
464 | if (clientData) { | |
465 | wxPyClientData* data = new wxPyClientData(clientData); | |
466 | self->Insert(item, pos, data); | |
467 | } else | |
468 | self->Insert(item, pos); | |
469 | } | |
470 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
471 | wxArrayInt lst; | |
472 | self->GetSelections(lst); | |
473 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
474 | for(size_t i=0; i<lst.GetCount(); i++) { | |
475 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
476 | } | |
477 | return tup; | |
478 | } | |
0ffb2aa6 RD |
479 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
480 | #ifdef __WXMSW__ | |
481 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
482 | self->GetItem(item)->SetTextColour(c); | |
483 | #endif | |
484 | } | |
485 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
486 | #ifdef __WXMSW__ | |
487 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
488 | self->GetItem(item)->SetBackgroundColour(c); | |
489 | #endif | |
490 | } | |
491 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
492 | #ifdef __WXMSW__ | |
493 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
494 | self->GetItem(item)->SetFont(f); | |
495 | #endif | |
496 | } | |
d03fd34d | 497 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
498 | |
499 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
500 | PyObject* o2; | |
501 | PyObject* o3; | |
502 | ||
503 | if (!target) { | |
504 | target = o; | |
505 | } else if (target == Py_None) { | |
506 | Py_DECREF(Py_None); | |
507 | target = o; | |
508 | } else { | |
509 | if (!PyTuple_Check(target)) { | |
510 | o2 = target; | |
511 | target = PyTuple_New(1); | |
512 | PyTuple_SetItem(target, 0, o2); | |
513 | } | |
514 | o3 = PyTuple_New(1); | |
515 | PyTuple_SetItem(o3, 0, o); | |
516 | ||
517 | o2 = target; | |
518 | target = PySequence_Concat(o2, o3); | |
519 | Py_DECREF(o2); | |
520 | Py_DECREF(o3); | |
521 | } | |
522 | return target; | |
523 | } | |
524 | ||
2f4c0a16 RD |
525 | |
526 | SWIGSTATICINLINE(unsigned long) | |
527 | SWIG_AsUnsignedLong(PyObject * obj) | |
528 | { | |
529 | if (PyLong_Check(obj)) { | |
530 | return PyLong_AsUnsignedLong(obj); | |
531 | } else { | |
532 | long i = PyInt_AsLong(obj); | |
533 | if ( !PyErr_Occurred() && (i < 0)) { | |
534 | PyErr_SetString(PyExc_TypeError, "negative value for unsigned type"); | |
535 | } | |
536 | return i; | |
537 | } | |
538 | } | |
539 | ||
540 | ||
541 | SWIGSTATICINLINE(int) | |
542 | SWIG_CheckUnsignedLong(PyObject* obj) | |
543 | { | |
544 | SWIG_AsUnsignedLong(obj); | |
545 | if (PyErr_Occurred()) { | |
546 | PyErr_Clear(); | |
547 | return 0; | |
548 | } else { | |
549 | return 1; | |
550 | } | |
551 | } | |
552 | ||
d14a1e28 RD |
553 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
554 | self->AppendText(text); | |
555 | } | |
556 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
557 | return self->GetValue().Mid(from, to - from); | |
558 | } | |
d03fd34d RD |
559 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
560 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
eb9b6107 | 561 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
d03fd34d RD |
562 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
563 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
564 | |
565 | #include <wx/slider.h> | |
566 | ||
d14a1e28 | 567 | |
d03fd34d | 568 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
eb9b6107 | 569 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 570 | |
2f4c0a16 RD |
571 | #if !wxUSE_TOGGLEBTN |
572 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
573 | |
574 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
575 | ||
576 | class wxToggleButton : public wxControl | |
577 | { | |
578 | public: | |
579 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
580 | const wxPoint&, const wxSize&, long, | |
581 | const wxValidator&, const wxString&) | |
cbd72d4f | 582 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
583 | |
584 | wxToggleButton() | |
cbd72d4f | 585 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
586 | }; |
587 | #endif | |
588 | ||
d03fd34d | 589 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 | 590 | |
2f4c0a16 RD |
591 | SWIGSTATICINLINE(PyObject* ) |
592 | SWIG_FromUnsignedLong(unsigned long value) | |
8edf1c75 | 593 | { |
2f4c0a16 RD |
594 | return (value > LONG_MAX) ? |
595 | PyLong_FromUnsignedLong(value) | |
596 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
8edf1c75 RD |
597 | } |
598 | ||
d03fd34d | 599 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
600 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
601 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
602 | if (udata) { | |
603 | Py_INCREF(udata->m_obj); | |
604 | return udata->m_obj; | |
605 | } else { | |
606 | Py_INCREF(Py_None); | |
607 | return Py_None; | |
608 | } | |
609 | } | |
610 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
611 | self->SetClientData(new wxPyUserData(clientData)); | |
612 | } | |
613 | 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){ | |
614 | wxPyUserData* udata = NULL; | |
615 | if (clientData && clientData != Py_None) | |
616 | udata = new wxPyUserData(clientData); | |
617 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
618 | shortHelp, longHelp, udata); | |
619 | } | |
620 | 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){ | |
621 | wxPyUserData* udata = NULL; | |
622 | if (clientData && clientData != Py_None) | |
623 | udata = new wxPyUserData(clientData); | |
624 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
625 | shortHelp, longHelp, udata); | |
626 | } | |
627 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
628 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
629 | if (udata) { | |
630 | Py_INCREF(udata->m_obj); | |
631 | return udata->m_obj; | |
632 | } else { | |
633 | Py_INCREF(Py_None); | |
634 | return Py_None; | |
635 | } | |
636 | } | |
637 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
638 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
639 | } | |
640 | ||
641 | #include <wx/listctrl.h> | |
642 | ||
d14a1e28 | 643 | |
eb9b6107 | 644 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
645 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
646 | // Python aware sorting function for wxPyListCtrl | |
647 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
648 | int retval = 0; | |
649 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 650 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
651 | |
652 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
653 | PyObject* result = PyEval_CallObject(func, args); | |
654 | Py_DECREF(args); | |
655 | if (result) { | |
656 | retval = PyInt_AsLong(result); | |
657 | Py_DECREF(result); | |
658 | } | |
659 | ||
4f89f6a3 | 660 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
661 | return retval; |
662 | } | |
663 | ||
664 | // C++ Version of a Python aware class | |
665 | class wxPyListCtrl : public wxListCtrl { | |
666 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
667 | public: | |
668 | wxPyListCtrl() : wxListCtrl() {} | |
669 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
670 | const wxPoint& pos, | |
671 | const wxSize& size, | |
672 | long style, | |
673 | const wxValidator& validator, | |
674 | const wxString& name) : | |
675 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
676 | ||
677 | bool Create(wxWindow* parent, wxWindowID id, | |
678 | const wxPoint& pos, | |
679 | const wxSize& size, | |
680 | long style, | |
681 | const wxValidator& validator, | |
682 | const wxString& name) { | |
683 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
684 | } | |
685 | ||
686 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
687 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
688 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
689 | ||
690 | PYPRIVATE; | |
691 | }; | |
692 | ||
693 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
694 | ||
695 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
696 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
697 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
698 | ||
699 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
700 | wxListItem item; | |
701 | item.SetMask( wxLIST_MASK_STATE | | |
702 | wxLIST_MASK_TEXT | | |
703 | wxLIST_MASK_IMAGE | | |
704 | wxLIST_MASK_DATA | | |
705 | wxLIST_SET_ITEM | | |
706 | wxLIST_MASK_WIDTH | | |
707 | wxLIST_MASK_FORMAT | |
708 | ); | |
709 | if (self->GetColumn(col, item)) | |
710 | return new wxListItem(item); | |
711 | else | |
712 | return NULL; | |
713 | } | |
714 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
715 | wxListItem* info = new wxListItem; | |
716 | info->m_itemId = itemId; | |
717 | info->m_col = col; | |
718 | info->m_mask = 0xFFFF; | |
719 | self->GetItem(*info); | |
720 | return info; | |
721 | } | |
722 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
723 | wxPoint pos; | |
724 | self->GetItemPosition(item, pos); | |
725 | return pos; | |
726 | } | |
727 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
728 | wxRect rect; | |
729 | self->GetItemRect(item, rect, code); | |
730 | return rect; | |
731 | } | |
732 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
733 | if (!PyCallable_Check(func)) | |
423f194a | 734 | return False; |
d14a1e28 RD |
735 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
736 | } | |
737 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
738 | ||
739 | return self; | |
740 | ||
741 | ||
742 | ||
743 | } | |
744 | ||
745 | #include <wx/treectrl.h> | |
746 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 747 | |
eb9b6107 | 748 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
328fcd84 RD |
749 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
750 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
751 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
752 | // C++ version of Python aware wxTreeCtrl | |
753 | class wxPyTreeCtrl : public wxTreeCtrl { | |
754 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
755 | public: | |
756 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
757 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
758 | const wxPoint& pos, | |
759 | const wxSize& size, | |
760 | long style, | |
761 | const wxValidator& validator, | |
762 | const wxString& name) : | |
763 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
764 | ||
765 | bool Create(wxWindow *parent, wxWindowID id, | |
766 | const wxPoint& pos, | |
767 | const wxSize& size, | |
768 | long style, | |
769 | const wxValidator& validator, | |
770 | const wxString& name) { | |
771 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
772 | } | |
773 | ||
774 | ||
775 | int OnCompareItems(const wxTreeItemId& item1, | |
776 | const wxTreeItemId& item2) { | |
777 | int rval = 0; | |
778 | bool found; | |
4f89f6a3 | 779 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 780 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
423f194a RD |
781 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
782 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
783 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
784 | Py_DECREF(o1); | |
785 | Py_DECREF(o2); | |
786 | } | |
4f89f6a3 | 787 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
788 | if (! found) |
789 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
790 | return rval; | |
791 | } | |
792 | PYPRIVATE; | |
793 | }; | |
794 | ||
795 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
796 | ||
797 | ||
8edf1c75 | 798 | |
2f4c0a16 RD |
799 | #if UINT_MAX < LONG_MAX |
800 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
801 | #else | |
802 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
803 | #endif | |
804 | ||
805 | ||
806 | SWIGSTATICINLINE(unsigned long) | |
807 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
808 | unsigned long max_value) | |
809 | { | |
810 | if (!PyErr_Occurred()) { | |
811 | if (value > max_value) { | |
812 | PyObject *err = | |
813 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
814 | value, type, max_value); | |
815 | PyErr_SetObject(PyExc_OverflowError, err); | |
816 | Py_DECREF(err); | |
817 | } | |
818 | } | |
819 | return value; | |
820 | } | |
8edf1c75 RD |
821 | |
822 | ||
2f4c0a16 RD |
823 | #if UINT_MAX != ULONG_MAX |
824 | SWIGSTATICINLINE(unsigned int) | |
825 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 826 | { |
2f4c0a16 RD |
827 | return swig_numeric_cast(unsigned int, |
828 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
829 | "unsigned int", UINT_MAX)); | |
830 | } | |
831 | #else | |
832 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
833 | #endif | |
834 | ||
835 | ||
836 | SWIGSTATICINLINE(int) | |
837 | SWIG_CheckUnsignedInt(PyObject* obj) | |
838 | { | |
839 | SWIG_AsUnsignedInt(obj); | |
840 | if (PyErr_Occurred()) { | |
841 | PyErr_Clear(); | |
842 | return 0; | |
843 | } else { | |
844 | return 1; | |
845 | } | |
8edf1c75 RD |
846 | } |
847 | ||
d14a1e28 RD |
848 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
849 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
850 | if (data == NULL) { | |
851 | data = new wxPyTreeItemData(); | |
852 | data->SetId(item); // set the id | |
853 | self->SetItemData(item, data); | |
854 | } | |
855 | return data; | |
856 | } | |
857 | PyObject *wxPyTreeCtrl_GetItemPyData(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->GetData(); | |
865 | } | |
866 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
867 | data->SetId(item); // set the id | |
868 | self->SetItemData(item, data); | |
869 | } | |
870 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
871 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
872 | if (data == NULL) { | |
873 | data = new wxPyTreeItemData(obj); | |
874 | data->SetId(item); // set the id | |
875 | self->SetItemData(item, data); | |
876 | } else | |
877 | data->SetData(obj); | |
878 | } | |
879 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 880 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
881 | PyObject* rval = PyList_New(0); |
882 | wxArrayTreeItemIds array; | |
883 | size_t num, x; | |
884 | num = self->GetSelections(array); | |
885 | for (x=0; x < num; x++) { | |
886 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 887 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
888 | PyList_Append(rval, item); |
889 | } | |
4f89f6a3 | 890 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
891 | return rval; |
892 | } | |
893 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
894 | void* cookie = 0; |
895 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 896 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 897 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
898 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
899 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 900 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
901 | return tup; |
902 | } | |
58203fa6 RD |
903 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
904 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(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 | } | |
912 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
913 | wxRect rect; | |
914 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 915 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 916 | wxRect* r = new wxRect(rect); |
423f194a | 917 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 918 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
919 | return val; |
920 | } | |
921 | else | |
922 | RETURN_NONE(); | |
923 | } | |
d03fd34d | 924 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
925 | // C++ version of Python aware wxControl |
926 | class wxPyControl : public wxControl | |
927 | { | |
928 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
929 | public: | |
930 | wxPyControl() : wxControl() {} | |
931 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
932 | const wxPoint& pos = wxDefaultPosition, | |
933 | const wxSize& size = wxDefaultSize, | |
934 | long style = 0, | |
935 | const wxValidator& validator=wxDefaultValidator, | |
936 | const wxString& name = wxPyControlNameStr) | |
937 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
938 | ||
939 | ||
940 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
941 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
942 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
943 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
944 | ||
945 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
946 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
947 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
948 | ||
949 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
950 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
951 | ||
952 | DEC_PYCALLBACK__(InitDialog); | |
953 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
954 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
955 | DEC_PYCALLBACK_BOOL_(Validate); | |
956 | ||
957 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
958 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
959 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
960 | ||
961 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
962 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
963 | ||
fe763115 RD |
964 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); |
965 | ||
d14a1e28 RD |
966 | PYPRIVATE; |
967 | }; | |
968 | ||
969 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
970 | ||
971 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
972 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
973 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
974 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
975 | ||
976 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
977 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
978 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
979 | ||
980 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
981 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
982 | ||
983 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
984 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
985 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
986 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
987 | ||
988 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
989 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
990 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
991 | ||
992 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
993 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
994 | ||
fe763115 | 995 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); |
d14a1e28 RD |
996 | |
997 | ||
998 | ||
999 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
1000 | |
1001 | #include <wx/generic/dragimgg.h> | |
1002 | ||
d14a1e28 RD |
1003 | #ifdef __cplusplus |
1004 | extern "C" { | |
1005 | #endif | |
2f4c0a16 | 1006 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
1007 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1008 | return 1; | |
1009 | } | |
1010 | ||
1011 | ||
1012 | static PyObject *_wrap_ButtonNameStr_get() { | |
1013 | PyObject *pyobj; | |
1014 | ||
1015 | { | |
1016 | #if wxUSE_UNICODE | |
1017 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1018 | #else | |
1019 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1020 | #endif | |
1021 | } | |
1022 | return pyobj; | |
1023 | } | |
1024 | ||
1025 | ||
d14a1e28 RD |
1026 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1027 | PyObject *resultobj; | |
1028 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1029 | int arg2 ; |
d14a1e28 RD |
1030 | wxString *arg3 = 0 ; |
1031 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1032 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1033 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1034 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1035 | long arg6 = (long) 0 ; | |
1036 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1037 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1038 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1039 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1040 | wxButton *result; | |
423f194a | 1041 | bool temp3 = False ; |
d14a1e28 RD |
1042 | wxPoint temp4 ; |
1043 | wxSize temp5 ; | |
423f194a | 1044 | bool temp8 = False ; |
d14a1e28 | 1045 | PyObject * obj0 = 0 ; |
8edf1c75 | 1046 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1047 | PyObject * obj2 = 0 ; |
1048 | PyObject * obj3 = 0 ; | |
1049 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1050 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1051 | PyObject * obj6 = 0 ; |
1052 | PyObject * obj7 = 0 ; | |
1053 | char *kwnames[] = { | |
1054 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1055 | }; | |
1056 | ||
8edf1c75 | 1057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1060 | arg2 = (int) SWIG_AsInt(obj1); | |
1061 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1062 | { |
1063 | arg3 = wxString_in_helper(obj2); | |
1064 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1065 | temp3 = True; |
d14a1e28 RD |
1066 | } |
1067 | if (obj3) { | |
1068 | { | |
1069 | arg4 = &temp4; | |
1070 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1071 | } | |
1072 | } | |
1073 | if (obj4) { | |
1074 | { | |
1075 | arg5 = &temp5; | |
1076 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1077 | } | |
1078 | } | |
8edf1c75 | 1079 | if (obj5) { |
2f4c0a16 RD |
1080 | arg6 = (long) SWIG_AsLong(obj5); |
1081 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1082 | } |
d14a1e28 | 1083 | if (obj6) { |
2f4c0a16 RD |
1084 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1085 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1086 | SWIG_fail; | |
d14a1e28 | 1087 | if (arg7 == NULL) { |
2f4c0a16 RD |
1088 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1089 | SWIG_fail; | |
d14a1e28 RD |
1090 | } |
1091 | } | |
1092 | if (obj7) { | |
1093 | { | |
1094 | arg8 = wxString_in_helper(obj7); | |
1095 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1096 | temp8 = True; |
d14a1e28 RD |
1097 | } |
1098 | } | |
1099 | { | |
1100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1101 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1102 | ||
1103 | wxPyEndAllowThreads(__tstate); | |
1104 | if (PyErr_Occurred()) SWIG_fail; | |
1105 | } | |
1106 | { | |
1107 | resultobj = wxPyMake_wxObject(result); | |
1108 | } | |
1109 | { | |
1110 | if (temp3) | |
1111 | delete arg3; | |
1112 | } | |
1113 | { | |
1114 | if (temp8) | |
1115 | delete arg8; | |
1116 | } | |
1117 | return resultobj; | |
1118 | fail: | |
1119 | { | |
1120 | if (temp3) | |
1121 | delete arg3; | |
1122 | } | |
1123 | { | |
1124 | if (temp8) | |
1125 | delete arg8; | |
1126 | } | |
1127 | return NULL; | |
1128 | } | |
1129 | ||
1130 | ||
1131 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1132 | PyObject *resultobj; | |
1133 | wxButton *result; | |
1134 | char *kwnames[] = { | |
1135 | NULL | |
1136 | }; | |
1137 | ||
1138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1139 | { | |
1140 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1141 | result = (wxButton *)new wxButton(); | |
1142 | ||
1143 | wxPyEndAllowThreads(__tstate); | |
1144 | if (PyErr_Occurred()) SWIG_fail; | |
1145 | } | |
1146 | { | |
1147 | resultobj = wxPyMake_wxObject(result); | |
1148 | } | |
1149 | return resultobj; | |
1150 | fail: | |
1151 | return NULL; | |
1152 | } | |
1153 | ||
1154 | ||
1155 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1156 | PyObject *resultobj; | |
1157 | wxButton *arg1 = (wxButton *) 0 ; | |
1158 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1159 | int arg3 ; |
d14a1e28 RD |
1160 | wxString *arg4 = 0 ; |
1161 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1162 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1163 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1164 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1165 | long arg7 = (long) 0 ; | |
1166 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1167 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1168 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1169 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1170 | bool result; | |
423f194a | 1171 | bool temp4 = False ; |
d14a1e28 RD |
1172 | wxPoint temp5 ; |
1173 | wxSize temp6 ; | |
423f194a | 1174 | bool temp9 = False ; |
d14a1e28 RD |
1175 | PyObject * obj0 = 0 ; |
1176 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1177 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1178 | PyObject * obj3 = 0 ; |
1179 | PyObject * obj4 = 0 ; | |
1180 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1181 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1182 | PyObject * obj7 = 0 ; |
1183 | PyObject * obj8 = 0 ; | |
1184 | char *kwnames[] = { | |
1185 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1186 | }; | |
1187 | ||
8edf1c75 | 1188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1191 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1193 | arg3 = (int) SWIG_AsInt(obj2); | |
1194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1195 | { |
1196 | arg4 = wxString_in_helper(obj3); | |
1197 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1198 | temp4 = True; |
d14a1e28 RD |
1199 | } |
1200 | if (obj4) { | |
1201 | { | |
1202 | arg5 = &temp5; | |
1203 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1204 | } | |
1205 | } | |
1206 | if (obj5) { | |
1207 | { | |
1208 | arg6 = &temp6; | |
1209 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1210 | } | |
1211 | } | |
8edf1c75 | 1212 | if (obj6) { |
2f4c0a16 RD |
1213 | arg7 = (long) SWIG_AsLong(obj6); |
1214 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1215 | } |
d14a1e28 | 1216 | if (obj7) { |
2f4c0a16 RD |
1217 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1218 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1219 | SWIG_fail; | |
d14a1e28 | 1220 | if (arg8 == NULL) { |
2f4c0a16 RD |
1221 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1222 | SWIG_fail; | |
d14a1e28 RD |
1223 | } |
1224 | } | |
1225 | if (obj8) { | |
1226 | { | |
1227 | arg9 = wxString_in_helper(obj8); | |
1228 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1229 | temp9 = True; |
d14a1e28 RD |
1230 | } |
1231 | } | |
1232 | { | |
1233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1234 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1235 | ||
1236 | wxPyEndAllowThreads(__tstate); | |
1237 | if (PyErr_Occurred()) SWIG_fail; | |
1238 | } | |
4f89f6a3 RD |
1239 | { |
1240 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1241 | } | |
d14a1e28 RD |
1242 | { |
1243 | if (temp4) | |
1244 | delete arg4; | |
1245 | } | |
1246 | { | |
1247 | if (temp9) | |
1248 | delete arg9; | |
1249 | } | |
1250 | return resultobj; | |
1251 | fail: | |
1252 | { | |
1253 | if (temp4) | |
1254 | delete arg4; | |
1255 | } | |
1256 | { | |
1257 | if (temp9) | |
1258 | delete arg9; | |
1259 | } | |
1260 | return NULL; | |
1261 | } | |
1262 | ||
1263 | ||
1264 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1265 | PyObject *resultobj; | |
1266 | wxButton *arg1 = (wxButton *) 0 ; | |
1267 | PyObject * obj0 = 0 ; | |
1268 | char *kwnames[] = { | |
1269 | (char *) "self", NULL | |
1270 | }; | |
1271 | ||
1272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1275 | { |
1276 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1277 | (arg1)->SetDefault(); | |
1278 | ||
1279 | wxPyEndAllowThreads(__tstate); | |
1280 | if (PyErr_Occurred()) SWIG_fail; | |
1281 | } | |
1282 | Py_INCREF(Py_None); resultobj = Py_None; | |
1283 | return resultobj; | |
1284 | fail: | |
1285 | return NULL; | |
1286 | } | |
1287 | ||
1288 | ||
d14a1e28 RD |
1289 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1290 | PyObject *resultobj; | |
1291 | wxSize result; | |
1292 | char *kwnames[] = { | |
1293 | NULL | |
1294 | }; | |
1295 | ||
1296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1297 | { | |
1298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1299 | result = wxButton::GetDefaultSize(); | |
1300 | ||
1301 | wxPyEndAllowThreads(__tstate); | |
1302 | if (PyErr_Occurred()) SWIG_fail; | |
1303 | } | |
1304 | { | |
1305 | wxSize * resultptr; | |
1306 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 1307 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1308 | } |
1309 | return resultobj; | |
1310 | fail: | |
1311 | return NULL; | |
1312 | } | |
1313 | ||
1314 | ||
1315 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1316 | PyObject *obj; | |
1317 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1318 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1319 | Py_INCREF(obj); | |
1320 | return Py_BuildValue((char *)""); | |
1321 | } | |
1322 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1323 | PyObject *resultobj; | |
1324 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1325 | int arg2 ; |
d14a1e28 RD |
1326 | wxBitmap *arg3 = 0 ; |
1327 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1328 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1329 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1330 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1331 | long arg6 = (long) wxBU_AUTODRAW ; | |
1332 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1333 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1334 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1335 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1336 | wxBitmapButton *result; | |
1337 | wxPoint temp4 ; | |
1338 | wxSize temp5 ; | |
423f194a | 1339 | bool temp8 = False ; |
d14a1e28 | 1340 | PyObject * obj0 = 0 ; |
8edf1c75 | 1341 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1342 | PyObject * obj2 = 0 ; |
1343 | PyObject * obj3 = 0 ; | |
1344 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1345 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1346 | PyObject * obj6 = 0 ; |
1347 | PyObject * obj7 = 0 ; | |
1348 | char *kwnames[] = { | |
1349 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1350 | }; | |
1351 | ||
8edf1c75 | 1352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1355 | arg2 = (int) SWIG_AsInt(obj1); | |
1356 | if (PyErr_Occurred()) SWIG_fail; | |
1357 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1358 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1359 | SWIG_fail; | |
d14a1e28 | 1360 | if (arg3 == NULL) { |
2f4c0a16 RD |
1361 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1362 | SWIG_fail; | |
d14a1e28 RD |
1363 | } |
1364 | if (obj3) { | |
1365 | { | |
1366 | arg4 = &temp4; | |
1367 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1368 | } | |
1369 | } | |
1370 | if (obj4) { | |
1371 | { | |
1372 | arg5 = &temp5; | |
1373 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1374 | } | |
1375 | } | |
8edf1c75 | 1376 | if (obj5) { |
2f4c0a16 RD |
1377 | arg6 = (long) SWIG_AsLong(obj5); |
1378 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1379 | } |
d14a1e28 | 1380 | if (obj6) { |
2f4c0a16 RD |
1381 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1382 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1383 | SWIG_fail; | |
d14a1e28 | 1384 | if (arg7 == NULL) { |
2f4c0a16 RD |
1385 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1386 | SWIG_fail; | |
d14a1e28 RD |
1387 | } |
1388 | } | |
1389 | if (obj7) { | |
1390 | { | |
1391 | arg8 = wxString_in_helper(obj7); | |
1392 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1393 | temp8 = True; |
d14a1e28 RD |
1394 | } |
1395 | } | |
1396 | { | |
1397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1398 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1399 | ||
1400 | wxPyEndAllowThreads(__tstate); | |
1401 | if (PyErr_Occurred()) SWIG_fail; | |
1402 | } | |
1403 | { | |
1404 | resultobj = wxPyMake_wxObject(result); | |
1405 | } | |
1406 | { | |
1407 | if (temp8) | |
1408 | delete arg8; | |
1409 | } | |
1410 | return resultobj; | |
1411 | fail: | |
1412 | { | |
1413 | if (temp8) | |
1414 | delete arg8; | |
1415 | } | |
1416 | return NULL; | |
1417 | } | |
1418 | ||
1419 | ||
1420 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1421 | PyObject *resultobj; | |
1422 | wxBitmapButton *result; | |
1423 | char *kwnames[] = { | |
1424 | NULL | |
1425 | }; | |
1426 | ||
1427 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1428 | { | |
1429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1430 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1431 | ||
1432 | wxPyEndAllowThreads(__tstate); | |
1433 | if (PyErr_Occurred()) SWIG_fail; | |
1434 | } | |
1435 | { | |
1436 | resultobj = wxPyMake_wxObject(result); | |
1437 | } | |
1438 | return resultobj; | |
1439 | fail: | |
1440 | return NULL; | |
1441 | } | |
1442 | ||
1443 | ||
1444 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1445 | PyObject *resultobj; | |
1446 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1447 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1448 | int arg3 ; |
d14a1e28 RD |
1449 | wxBitmap *arg4 = 0 ; |
1450 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1451 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1452 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1453 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1454 | long arg7 = (long) wxBU_AUTODRAW ; | |
1455 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1456 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1457 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1458 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1459 | bool result; | |
1460 | wxPoint temp5 ; | |
1461 | wxSize temp6 ; | |
423f194a | 1462 | bool temp9 = False ; |
d14a1e28 RD |
1463 | PyObject * obj0 = 0 ; |
1464 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1465 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1466 | PyObject * obj3 = 0 ; |
1467 | PyObject * obj4 = 0 ; | |
1468 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1469 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1470 | PyObject * obj7 = 0 ; |
1471 | PyObject * obj8 = 0 ; | |
1472 | char *kwnames[] = { | |
1473 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1474 | }; | |
1475 | ||
8edf1c75 | 1476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1479 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1481 | arg3 = (int) SWIG_AsInt(obj2); | |
1482 | if (PyErr_Occurred()) SWIG_fail; | |
1483 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1484 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1485 | SWIG_fail; | |
d14a1e28 | 1486 | if (arg4 == NULL) { |
2f4c0a16 RD |
1487 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1488 | SWIG_fail; | |
d14a1e28 RD |
1489 | } |
1490 | if (obj4) { | |
1491 | { | |
1492 | arg5 = &temp5; | |
1493 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1494 | } | |
1495 | } | |
1496 | if (obj5) { | |
1497 | { | |
1498 | arg6 = &temp6; | |
1499 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1500 | } | |
1501 | } | |
8edf1c75 | 1502 | if (obj6) { |
2f4c0a16 RD |
1503 | arg7 = (long) SWIG_AsLong(obj6); |
1504 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1505 | } |
d14a1e28 | 1506 | if (obj7) { |
2f4c0a16 RD |
1507 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1508 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1509 | SWIG_fail; | |
d14a1e28 | 1510 | if (arg8 == NULL) { |
2f4c0a16 RD |
1511 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1512 | SWIG_fail; | |
d14a1e28 RD |
1513 | } |
1514 | } | |
1515 | if (obj8) { | |
1516 | { | |
1517 | arg9 = wxString_in_helper(obj8); | |
1518 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1519 | temp9 = True; |
d14a1e28 RD |
1520 | } |
1521 | } | |
1522 | { | |
1523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1524 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1525 | ||
1526 | wxPyEndAllowThreads(__tstate); | |
1527 | if (PyErr_Occurred()) SWIG_fail; | |
1528 | } | |
4f89f6a3 RD |
1529 | { |
1530 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1531 | } | |
d14a1e28 RD |
1532 | { |
1533 | if (temp9) | |
1534 | delete arg9; | |
1535 | } | |
1536 | return resultobj; | |
1537 | fail: | |
1538 | { | |
1539 | if (temp9) | |
1540 | delete arg9; | |
1541 | } | |
1542 | return NULL; | |
1543 | } | |
1544 | ||
1545 | ||
1546 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1547 | PyObject *resultobj; | |
1548 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1549 | wxBitmap result; | |
1550 | PyObject * obj0 = 0 ; | |
1551 | char *kwnames[] = { | |
1552 | (char *) "self", NULL | |
1553 | }; | |
1554 | ||
1555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1558 | { |
1559 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1560 | result = (arg1)->GetBitmapLabel(); | |
1561 | ||
1562 | wxPyEndAllowThreads(__tstate); | |
1563 | if (PyErr_Occurred()) SWIG_fail; | |
1564 | } | |
1565 | { | |
1566 | wxBitmap * resultptr; | |
1567 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1568 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1569 | } |
1570 | return resultobj; | |
1571 | fail: | |
1572 | return NULL; | |
1573 | } | |
1574 | ||
1575 | ||
1576 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1577 | PyObject *resultobj; | |
1578 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1579 | wxBitmap result; | |
1580 | PyObject * obj0 = 0 ; | |
1581 | char *kwnames[] = { | |
1582 | (char *) "self", NULL | |
1583 | }; | |
1584 | ||
1585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1588 | { |
1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1590 | result = (arg1)->GetBitmapDisabled(); | |
1591 | ||
1592 | wxPyEndAllowThreads(__tstate); | |
1593 | if (PyErr_Occurred()) SWIG_fail; | |
1594 | } | |
1595 | { | |
1596 | wxBitmap * resultptr; | |
1597 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1598 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1599 | } |
1600 | return resultobj; | |
1601 | fail: | |
1602 | return NULL; | |
1603 | } | |
1604 | ||
1605 | ||
1606 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1607 | PyObject *resultobj; | |
1608 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1609 | wxBitmap result; | |
1610 | PyObject * obj0 = 0 ; | |
1611 | char *kwnames[] = { | |
1612 | (char *) "self", NULL | |
1613 | }; | |
1614 | ||
1615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1618 | { |
1619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1620 | result = (arg1)->GetBitmapFocus(); | |
1621 | ||
1622 | wxPyEndAllowThreads(__tstate); | |
1623 | if (PyErr_Occurred()) SWIG_fail; | |
1624 | } | |
1625 | { | |
1626 | wxBitmap * resultptr; | |
1627 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1628 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1629 | } |
1630 | return resultobj; | |
1631 | fail: | |
1632 | return NULL; | |
1633 | } | |
1634 | ||
1635 | ||
1636 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1637 | PyObject *resultobj; | |
1638 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1639 | wxBitmap result; | |
1640 | PyObject * obj0 = 0 ; | |
1641 | char *kwnames[] = { | |
1642 | (char *) "self", NULL | |
1643 | }; | |
1644 | ||
1645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1648 | { |
1649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1650 | result = (arg1)->GetBitmapSelected(); | |
1651 | ||
1652 | wxPyEndAllowThreads(__tstate); | |
1653 | if (PyErr_Occurred()) SWIG_fail; | |
1654 | } | |
1655 | { | |
1656 | wxBitmap * resultptr; | |
1657 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1658 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1659 | } |
1660 | return resultobj; | |
1661 | fail: | |
1662 | return NULL; | |
1663 | } | |
1664 | ||
1665 | ||
1666 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1667 | PyObject *resultobj; | |
1668 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1669 | wxBitmap *arg2 = 0 ; | |
1670 | PyObject * obj0 = 0 ; | |
1671 | PyObject * obj1 = 0 ; | |
1672 | char *kwnames[] = { | |
1673 | (char *) "self",(char *) "bitmap", NULL | |
1674 | }; | |
1675 | ||
1676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1679 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1680 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1681 | SWIG_fail; | |
d14a1e28 | 1682 | if (arg2 == NULL) { |
2f4c0a16 RD |
1683 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1684 | SWIG_fail; | |
d14a1e28 RD |
1685 | } |
1686 | { | |
1687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1688 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1689 | ||
1690 | wxPyEndAllowThreads(__tstate); | |
1691 | if (PyErr_Occurred()) SWIG_fail; | |
1692 | } | |
1693 | Py_INCREF(Py_None); resultobj = Py_None; | |
1694 | return resultobj; | |
1695 | fail: | |
1696 | return NULL; | |
1697 | } | |
1698 | ||
1699 | ||
1700 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1701 | PyObject *resultobj; | |
1702 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1703 | wxBitmap *arg2 = 0 ; | |
1704 | PyObject * obj0 = 0 ; | |
1705 | PyObject * obj1 = 0 ; | |
1706 | char *kwnames[] = { | |
1707 | (char *) "self",(char *) "bitmap", NULL | |
1708 | }; | |
1709 | ||
1710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1713 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1714 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1715 | SWIG_fail; | |
d14a1e28 | 1716 | if (arg2 == NULL) { |
2f4c0a16 RD |
1717 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1718 | SWIG_fail; | |
d14a1e28 RD |
1719 | } |
1720 | { | |
1721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1722 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1723 | ||
1724 | wxPyEndAllowThreads(__tstate); | |
1725 | if (PyErr_Occurred()) SWIG_fail; | |
1726 | } | |
1727 | Py_INCREF(Py_None); resultobj = Py_None; | |
1728 | return resultobj; | |
1729 | fail: | |
1730 | return NULL; | |
1731 | } | |
1732 | ||
1733 | ||
1734 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1735 | PyObject *resultobj; | |
1736 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1737 | wxBitmap *arg2 = 0 ; | |
1738 | PyObject * obj0 = 0 ; | |
1739 | PyObject * obj1 = 0 ; | |
1740 | char *kwnames[] = { | |
1741 | (char *) "self",(char *) "bitmap", NULL | |
1742 | }; | |
1743 | ||
1744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1748 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1749 | SWIG_fail; | |
d14a1e28 | 1750 | if (arg2 == NULL) { |
2f4c0a16 RD |
1751 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1752 | SWIG_fail; | |
d14a1e28 RD |
1753 | } |
1754 | { | |
1755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1756 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1757 | ||
1758 | wxPyEndAllowThreads(__tstate); | |
1759 | if (PyErr_Occurred()) SWIG_fail; | |
1760 | } | |
1761 | Py_INCREF(Py_None); resultobj = Py_None; | |
1762 | return resultobj; | |
1763 | fail: | |
1764 | return NULL; | |
1765 | } | |
1766 | ||
1767 | ||
1768 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1769 | PyObject *resultobj; | |
1770 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1771 | wxBitmap *arg2 = 0 ; | |
1772 | PyObject * obj0 = 0 ; | |
1773 | PyObject * obj1 = 0 ; | |
1774 | char *kwnames[] = { | |
1775 | (char *) "self",(char *) "bitmap", NULL | |
1776 | }; | |
1777 | ||
1778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1781 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1782 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1783 | SWIG_fail; | |
d14a1e28 | 1784 | if (arg2 == NULL) { |
2f4c0a16 RD |
1785 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1786 | SWIG_fail; | |
d14a1e28 RD |
1787 | } |
1788 | { | |
1789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1790 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1791 | ||
1792 | wxPyEndAllowThreads(__tstate); | |
1793 | if (PyErr_Occurred()) SWIG_fail; | |
1794 | } | |
1795 | Py_INCREF(Py_None); resultobj = Py_None; | |
1796 | return resultobj; | |
1797 | fail: | |
1798 | return NULL; | |
1799 | } | |
1800 | ||
1801 | ||
1802 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1803 | PyObject *resultobj; | |
1804 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1805 | int arg2 ; | |
1806 | int arg3 ; | |
1807 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1808 | PyObject * obj1 = 0 ; |
1809 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1810 | char *kwnames[] = { |
1811 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1812 | }; | |
1813 | ||
8edf1c75 | 1814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1817 | arg2 = (int) SWIG_AsInt(obj1); | |
1818 | if (PyErr_Occurred()) SWIG_fail; | |
1819 | arg3 = (int) SWIG_AsInt(obj2); | |
1820 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1821 | { |
1822 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1823 | (arg1)->SetMargins(arg2,arg3); | |
1824 | ||
1825 | wxPyEndAllowThreads(__tstate); | |
1826 | if (PyErr_Occurred()) SWIG_fail; | |
1827 | } | |
1828 | Py_INCREF(Py_None); resultobj = Py_None; | |
1829 | return resultobj; | |
1830 | fail: | |
1831 | return NULL; | |
1832 | } | |
1833 | ||
1834 | ||
1835 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1836 | PyObject *resultobj; | |
1837 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1838 | int result; | |
1839 | PyObject * obj0 = 0 ; | |
1840 | char *kwnames[] = { | |
1841 | (char *) "self", NULL | |
1842 | }; | |
1843 | ||
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1847 | { |
1848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1849 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1850 | ||
1851 | wxPyEndAllowThreads(__tstate); | |
1852 | if (PyErr_Occurred()) SWIG_fail; | |
1853 | } | |
2f4c0a16 | 1854 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1855 | return resultobj; |
1856 | fail: | |
1857 | return NULL; | |
1858 | } | |
1859 | ||
1860 | ||
1861 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1862 | PyObject *resultobj; | |
1863 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1864 | int result; | |
1865 | PyObject * obj0 = 0 ; | |
1866 | char *kwnames[] = { | |
1867 | (char *) "self", NULL | |
1868 | }; | |
1869 | ||
1870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1873 | { |
1874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1875 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1876 | ||
1877 | wxPyEndAllowThreads(__tstate); | |
1878 | if (PyErr_Occurred()) SWIG_fail; | |
1879 | } | |
2f4c0a16 | 1880 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1881 | return resultobj; |
1882 | fail: | |
1883 | return NULL; | |
1884 | } | |
1885 | ||
1886 | ||
1887 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1888 | PyObject *obj; | |
1889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1890 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1891 | Py_INCREF(obj); | |
1892 | return Py_BuildValue((char *)""); | |
1893 | } | |
2f4c0a16 | 1894 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
1895 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1896 | return 1; | |
1897 | } | |
1898 | ||
1899 | ||
1900 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1901 | PyObject *pyobj; | |
1902 | ||
1903 | { | |
1904 | #if wxUSE_UNICODE | |
1905 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1906 | #else | |
1907 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1908 | #endif | |
1909 | } | |
1910 | return pyobj; | |
1911 | } | |
1912 | ||
1913 | ||
d14a1e28 RD |
1914 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1915 | PyObject *resultobj; | |
1916 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1917 | int arg2 ; |
d14a1e28 RD |
1918 | wxString *arg3 = 0 ; |
1919 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1920 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1921 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1922 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1923 | long arg6 = (long) 0 ; | |
1924 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1925 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1926 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1927 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1928 | wxCheckBox *result; | |
423f194a | 1929 | bool temp3 = False ; |
d14a1e28 RD |
1930 | wxPoint temp4 ; |
1931 | wxSize temp5 ; | |
423f194a | 1932 | bool temp8 = False ; |
d14a1e28 | 1933 | PyObject * obj0 = 0 ; |
8edf1c75 | 1934 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1935 | PyObject * obj2 = 0 ; |
1936 | PyObject * obj3 = 0 ; | |
1937 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1938 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1939 | PyObject * obj6 = 0 ; |
1940 | PyObject * obj7 = 0 ; | |
1941 | char *kwnames[] = { | |
1942 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1943 | }; | |
1944 | ||
8edf1c75 | 1945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1948 | arg2 = (int) SWIG_AsInt(obj1); | |
1949 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1950 | { |
1951 | arg3 = wxString_in_helper(obj2); | |
1952 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1953 | temp3 = True; |
d14a1e28 RD |
1954 | } |
1955 | if (obj3) { | |
1956 | { | |
1957 | arg4 = &temp4; | |
1958 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1959 | } | |
1960 | } | |
1961 | if (obj4) { | |
1962 | { | |
1963 | arg5 = &temp5; | |
1964 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1965 | } | |
1966 | } | |
8edf1c75 | 1967 | if (obj5) { |
2f4c0a16 RD |
1968 | arg6 = (long) SWIG_AsLong(obj5); |
1969 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1970 | } |
d14a1e28 | 1971 | if (obj6) { |
2f4c0a16 RD |
1972 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1973 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1974 | SWIG_fail; | |
d14a1e28 | 1975 | if (arg7 == NULL) { |
2f4c0a16 RD |
1976 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1977 | SWIG_fail; | |
d14a1e28 RD |
1978 | } |
1979 | } | |
1980 | if (obj7) { | |
1981 | { | |
1982 | arg8 = wxString_in_helper(obj7); | |
1983 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1984 | temp8 = True; |
d14a1e28 RD |
1985 | } |
1986 | } | |
1987 | { | |
1988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1989 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1990 | ||
1991 | wxPyEndAllowThreads(__tstate); | |
1992 | if (PyErr_Occurred()) SWIG_fail; | |
1993 | } | |
2f4c0a16 | 1994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
1995 | { |
1996 | if (temp3) | |
1997 | delete arg3; | |
1998 | } | |
1999 | { | |
2000 | if (temp8) | |
2001 | delete arg8; | |
2002 | } | |
2003 | return resultobj; | |
2004 | fail: | |
2005 | { | |
2006 | if (temp3) | |
2007 | delete arg3; | |
2008 | } | |
2009 | { | |
2010 | if (temp8) | |
2011 | delete arg8; | |
2012 | } | |
2013 | return NULL; | |
2014 | } | |
2015 | ||
2016 | ||
2017 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2018 | PyObject *resultobj; | |
2019 | wxCheckBox *result; | |
2020 | char *kwnames[] = { | |
2021 | NULL | |
2022 | }; | |
2023 | ||
2024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2025 | { | |
2026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2027 | result = (wxCheckBox *)new wxCheckBox(); | |
2028 | ||
2029 | wxPyEndAllowThreads(__tstate); | |
2030 | if (PyErr_Occurred()) SWIG_fail; | |
2031 | } | |
2f4c0a16 | 2032 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2033 | return resultobj; |
2034 | fail: | |
2035 | return NULL; | |
2036 | } | |
2037 | ||
2038 | ||
2039 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2040 | PyObject *resultobj; | |
2041 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2042 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2043 | int arg3 ; |
d14a1e28 RD |
2044 | wxString *arg4 = 0 ; |
2045 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2046 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2047 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2048 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2049 | long arg7 = (long) 0 ; | |
2050 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2051 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2052 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2053 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2054 | bool result; | |
423f194a | 2055 | bool temp4 = False ; |
d14a1e28 RD |
2056 | wxPoint temp5 ; |
2057 | wxSize temp6 ; | |
423f194a | 2058 | bool temp9 = False ; |
d14a1e28 RD |
2059 | PyObject * obj0 = 0 ; |
2060 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2061 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2062 | PyObject * obj3 = 0 ; |
2063 | PyObject * obj4 = 0 ; | |
2064 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2065 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2066 | PyObject * obj7 = 0 ; |
2067 | PyObject * obj8 = 0 ; | |
2068 | char *kwnames[] = { | |
2069 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2070 | }; | |
2071 | ||
8edf1c75 | 2072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2077 | arg3 = (int) SWIG_AsInt(obj2); | |
2078 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2079 | { |
2080 | arg4 = wxString_in_helper(obj3); | |
2081 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2082 | temp4 = True; |
d14a1e28 RD |
2083 | } |
2084 | if (obj4) { | |
2085 | { | |
2086 | arg5 = &temp5; | |
2087 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2088 | } | |
2089 | } | |
2090 | if (obj5) { | |
2091 | { | |
2092 | arg6 = &temp6; | |
2093 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2094 | } | |
2095 | } | |
8edf1c75 | 2096 | if (obj6) { |
2f4c0a16 RD |
2097 | arg7 = (long) SWIG_AsLong(obj6); |
2098 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2099 | } |
d14a1e28 | 2100 | if (obj7) { |
2f4c0a16 RD |
2101 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2102 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2103 | SWIG_fail; | |
d14a1e28 | 2104 | if (arg8 == NULL) { |
2f4c0a16 RD |
2105 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2106 | SWIG_fail; | |
d14a1e28 RD |
2107 | } |
2108 | } | |
2109 | if (obj8) { | |
2110 | { | |
2111 | arg9 = wxString_in_helper(obj8); | |
2112 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2113 | temp9 = True; |
d14a1e28 RD |
2114 | } |
2115 | } | |
2116 | { | |
2117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2118 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2119 | ||
2120 | wxPyEndAllowThreads(__tstate); | |
2121 | if (PyErr_Occurred()) SWIG_fail; | |
2122 | } | |
4f89f6a3 RD |
2123 | { |
2124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2125 | } | |
d14a1e28 RD |
2126 | { |
2127 | if (temp4) | |
2128 | delete arg4; | |
2129 | } | |
2130 | { | |
2131 | if (temp9) | |
2132 | delete arg9; | |
2133 | } | |
2134 | return resultobj; | |
2135 | fail: | |
2136 | { | |
2137 | if (temp4) | |
2138 | delete arg4; | |
2139 | } | |
2140 | { | |
2141 | if (temp9) | |
2142 | delete arg9; | |
2143 | } | |
2144 | return NULL; | |
2145 | } | |
2146 | ||
2147 | ||
2148 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2149 | PyObject *resultobj; | |
2150 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2151 | bool result; | |
2152 | PyObject * obj0 = 0 ; | |
2153 | char *kwnames[] = { | |
2154 | (char *) "self", NULL | |
2155 | }; | |
2156 | ||
2157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2160 | { |
2161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2162 | result = (bool)(arg1)->GetValue(); | |
2163 | ||
2164 | wxPyEndAllowThreads(__tstate); | |
2165 | if (PyErr_Occurred()) SWIG_fail; | |
2166 | } | |
4f89f6a3 RD |
2167 | { |
2168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2169 | } | |
d14a1e28 RD |
2170 | return resultobj; |
2171 | fail: | |
2172 | return NULL; | |
2173 | } | |
2174 | ||
2175 | ||
2176 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2177 | PyObject *resultobj; | |
2178 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2179 | bool result; | |
2180 | PyObject * obj0 = 0 ; | |
2181 | char *kwnames[] = { | |
2182 | (char *) "self", NULL | |
2183 | }; | |
2184 | ||
2185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2188 | { |
2189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2190 | result = (bool)(arg1)->IsChecked(); | |
2191 | ||
2192 | wxPyEndAllowThreads(__tstate); | |
2193 | if (PyErr_Occurred()) SWIG_fail; | |
2194 | } | |
4f89f6a3 RD |
2195 | { |
2196 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2197 | } | |
d14a1e28 RD |
2198 | return resultobj; |
2199 | fail: | |
2200 | return NULL; | |
2201 | } | |
2202 | ||
2203 | ||
2204 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2205 | PyObject *resultobj; | |
2206 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2207 | bool arg2 ; | |
2208 | PyObject * obj0 = 0 ; | |
2209 | PyObject * obj1 = 0 ; | |
2210 | char *kwnames[] = { | |
2211 | (char *) "self",(char *) "state", NULL | |
2212 | }; | |
2213 | ||
2214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2217 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2218 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2219 | { |
2220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2221 | (arg1)->SetValue(arg2); | |
2222 | ||
2223 | wxPyEndAllowThreads(__tstate); | |
2224 | if (PyErr_Occurred()) SWIG_fail; | |
2225 | } | |
2226 | Py_INCREF(Py_None); resultobj = Py_None; | |
2227 | return resultobj; | |
2228 | fail: | |
2229 | return NULL; | |
2230 | } | |
2231 | ||
2232 | ||
2233 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2234 | PyObject *resultobj; | |
2235 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2236 | int result; | |
2237 | PyObject * obj0 = 0 ; | |
2238 | char *kwnames[] = { | |
2239 | (char *) "self", NULL | |
2240 | }; | |
2241 | ||
2242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2245 | { |
2246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2247 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2248 | ||
2249 | wxPyEndAllowThreads(__tstate); | |
2250 | if (PyErr_Occurred()) SWIG_fail; | |
2251 | } | |
2f4c0a16 | 2252 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2253 | return resultobj; |
2254 | fail: | |
2255 | return NULL; | |
2256 | } | |
2257 | ||
2258 | ||
2259 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2260 | PyObject *resultobj; | |
2261 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2262 | int arg2 ; | |
2263 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2264 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2265 | char *kwnames[] = { |
2266 | (char *) "self",(char *) "state", NULL | |
2267 | }; | |
2268 | ||
8edf1c75 | 2269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2272 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2273 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2274 | { |
2275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2276 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2277 | ||
2278 | wxPyEndAllowThreads(__tstate); | |
2279 | if (PyErr_Occurred()) SWIG_fail; | |
2280 | } | |
2281 | Py_INCREF(Py_None); resultobj = Py_None; | |
2282 | return resultobj; | |
2283 | fail: | |
2284 | return NULL; | |
2285 | } | |
2286 | ||
2287 | ||
2288 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2289 | PyObject *resultobj; | |
2290 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2291 | bool result; | |
2292 | PyObject * obj0 = 0 ; | |
2293 | char *kwnames[] = { | |
2294 | (char *) "self", NULL | |
2295 | }; | |
2296 | ||
2297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2300 | { |
2301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2302 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2303 | ||
2304 | wxPyEndAllowThreads(__tstate); | |
2305 | if (PyErr_Occurred()) SWIG_fail; | |
2306 | } | |
4f89f6a3 RD |
2307 | { |
2308 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2309 | } | |
d14a1e28 RD |
2310 | return resultobj; |
2311 | fail: | |
2312 | return NULL; | |
2313 | } | |
2314 | ||
2315 | ||
2316 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2317 | PyObject *resultobj; | |
2318 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2319 | bool result; | |
2320 | PyObject * obj0 = 0 ; | |
2321 | char *kwnames[] = { | |
2322 | (char *) "self", NULL | |
2323 | }; | |
2324 | ||
2325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2328 | { |
2329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2330 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2331 | ||
2332 | wxPyEndAllowThreads(__tstate); | |
2333 | if (PyErr_Occurred()) SWIG_fail; | |
2334 | } | |
4f89f6a3 RD |
2335 | { |
2336 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2337 | } | |
d14a1e28 RD |
2338 | return resultobj; |
2339 | fail: | |
2340 | return NULL; | |
2341 | } | |
2342 | ||
2343 | ||
2344 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2345 | PyObject *obj; | |
2346 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2347 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2348 | Py_INCREF(obj); | |
2349 | return Py_BuildValue((char *)""); | |
2350 | } | |
2f4c0a16 | 2351 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
d03fd34d RD |
2352 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2353 | return 1; | |
2354 | } | |
2355 | ||
2356 | ||
2357 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2358 | PyObject *pyobj; | |
2359 | ||
2360 | { | |
2361 | #if wxUSE_UNICODE | |
2362 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2363 | #else | |
2364 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2365 | #endif | |
2366 | } | |
2367 | return pyobj; | |
2368 | } | |
2369 | ||
2370 | ||
d14a1e28 RD |
2371 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2372 | PyObject *resultobj; | |
2373 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2374 | int arg2 ; |
d14a1e28 RD |
2375 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2376 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2377 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2378 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
2379 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2380 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2381 | long arg6 = (long) 0 ; | |
2382 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2383 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2384 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2385 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2386 | wxChoice *result; |
2387 | wxPoint temp3 ; | |
2388 | wxSize temp4 ; | |
db914595 | 2389 | bool temp5 = False ; |
423f194a | 2390 | bool temp8 = False ; |
d14a1e28 | 2391 | PyObject * obj0 = 0 ; |
8edf1c75 | 2392 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2393 | PyObject * obj2 = 0 ; |
2394 | PyObject * obj3 = 0 ; | |
2395 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2396 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2397 | PyObject * obj6 = 0 ; |
2398 | PyObject * obj7 = 0 ; | |
2399 | char *kwnames[] = { | |
2400 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2401 | }; | |
2402 | ||
8edf1c75 | 2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
2404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2406 | arg2 = (int) SWIG_AsInt(obj1); | |
2407 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2408 | if (obj2) { |
2409 | { | |
2410 | arg3 = &temp3; | |
2411 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2412 | } | |
2413 | } | |
2414 | if (obj3) { | |
2415 | { | |
2416 | arg4 = &temp4; | |
2417 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2418 | } | |
2419 | } | |
2420 | if (obj4) { | |
2421 | { | |
4e760a36 RD |
2422 | if (! PySequence_Check(obj4)) { |
2423 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2424 | SWIG_fail; | |
2425 | } | |
2426 | arg5 = new wxArrayString; | |
db914595 | 2427 | temp5 = True; |
4e760a36 RD |
2428 | int i, len=PySequence_Length(obj4); |
2429 | for (i=0; i<len; i++) { | |
2430 | PyObject* item = PySequence_GetItem(obj4, i); | |
2431 | #if wxUSE_UNICODE | |
2432 | PyObject* str = PyObject_Unicode(item); | |
2433 | #else | |
2434 | PyObject* str = PyObject_Str(item); | |
2435 | #endif | |
2436 | arg5->Add(Py2wxString(str)); | |
2437 | Py_DECREF(item); | |
2438 | Py_DECREF(str); | |
2439 | } | |
d14a1e28 RD |
2440 | } |
2441 | } | |
8edf1c75 | 2442 | if (obj5) { |
2f4c0a16 RD |
2443 | arg6 = (long) SWIG_AsLong(obj5); |
2444 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2445 | } |
d14a1e28 | 2446 | if (obj6) { |
2f4c0a16 RD |
2447 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2448 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2449 | SWIG_fail; | |
4e760a36 | 2450 | if (arg7 == NULL) { |
2f4c0a16 RD |
2451 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2452 | SWIG_fail; | |
d14a1e28 RD |
2453 | } |
2454 | } | |
2455 | if (obj7) { | |
2456 | { | |
4e760a36 RD |
2457 | arg8 = wxString_in_helper(obj7); |
2458 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2459 | temp8 = True; |
d14a1e28 RD |
2460 | } |
2461 | } | |
2462 | { | |
2463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2464 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2465 | |
2466 | wxPyEndAllowThreads(__tstate); | |
2467 | if (PyErr_Occurred()) SWIG_fail; | |
2468 | } | |
2f4c0a16 | 2469 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2470 | { |
db914595 | 2471 | if (temp5) delete arg5; |
d14a1e28 RD |
2472 | } |
2473 | { | |
2474 | if (temp8) | |
4e760a36 | 2475 | delete arg8; |
d14a1e28 RD |
2476 | } |
2477 | return resultobj; | |
2478 | fail: | |
2479 | { | |
db914595 | 2480 | if (temp5) delete arg5; |
d14a1e28 RD |
2481 | } |
2482 | { | |
2483 | if (temp8) | |
4e760a36 | 2484 | delete arg8; |
d14a1e28 RD |
2485 | } |
2486 | return NULL; | |
2487 | } | |
2488 | ||
2489 | ||
2490 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2491 | PyObject *resultobj; | |
2492 | wxChoice *result; | |
2493 | char *kwnames[] = { | |
2494 | NULL | |
2495 | }; | |
2496 | ||
2497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2498 | { | |
2499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2500 | result = (wxChoice *)new wxChoice(); | |
2501 | ||
2502 | wxPyEndAllowThreads(__tstate); | |
2503 | if (PyErr_Occurred()) SWIG_fail; | |
2504 | } | |
2f4c0a16 | 2505 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2506 | return resultobj; |
2507 | fail: | |
2508 | return NULL; | |
2509 | } | |
2510 | ||
2511 | ||
2512 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2513 | PyObject *resultobj; | |
2514 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2515 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2516 | int arg3 ; |
d14a1e28 RD |
2517 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2518 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2519 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2520 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2521 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2522 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2523 | long arg7 = (long) 0 ; | |
2524 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2525 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2526 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2527 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2528 | bool result; |
2529 | wxPoint temp4 ; | |
2530 | wxSize temp5 ; | |
db914595 | 2531 | bool temp6 = False ; |
423f194a | 2532 | bool temp9 = False ; |
d14a1e28 RD |
2533 | PyObject * obj0 = 0 ; |
2534 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2535 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2536 | PyObject * obj3 = 0 ; |
2537 | PyObject * obj4 = 0 ; | |
2538 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2539 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2540 | PyObject * obj7 = 0 ; |
2541 | PyObject * obj8 = 0 ; | |
2542 | char *kwnames[] = { | |
2543 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2544 | }; | |
2545 | ||
8edf1c75 | 2546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2549 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2551 | arg3 = (int) SWIG_AsInt(obj2); | |
2552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2553 | if (obj3) { |
2554 | { | |
2555 | arg4 = &temp4; | |
2556 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2557 | } | |
2558 | } | |
2559 | if (obj4) { | |
2560 | { | |
2561 | arg5 = &temp5; | |
2562 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2563 | } | |
2564 | } | |
2565 | if (obj5) { | |
2566 | { | |
4e760a36 RD |
2567 | if (! PySequence_Check(obj5)) { |
2568 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2569 | SWIG_fail; | |
2570 | } | |
2571 | arg6 = new wxArrayString; | |
db914595 | 2572 | temp6 = True; |
4e760a36 RD |
2573 | int i, len=PySequence_Length(obj5); |
2574 | for (i=0; i<len; i++) { | |
2575 | PyObject* item = PySequence_GetItem(obj5, i); | |
2576 | #if wxUSE_UNICODE | |
2577 | PyObject* str = PyObject_Unicode(item); | |
2578 | #else | |
2579 | PyObject* str = PyObject_Str(item); | |
2580 | #endif | |
2581 | arg6->Add(Py2wxString(str)); | |
2582 | Py_DECREF(item); | |
2583 | Py_DECREF(str); | |
2584 | } | |
d14a1e28 RD |
2585 | } |
2586 | } | |
8edf1c75 | 2587 | if (obj6) { |
2f4c0a16 RD |
2588 | arg7 = (long) SWIG_AsLong(obj6); |
2589 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2590 | } |
d14a1e28 | 2591 | if (obj7) { |
2f4c0a16 RD |
2592 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2593 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2594 | SWIG_fail; | |
4e760a36 | 2595 | if (arg8 == NULL) { |
2f4c0a16 RD |
2596 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2597 | SWIG_fail; | |
d14a1e28 RD |
2598 | } |
2599 | } | |
2600 | if (obj8) { | |
2601 | { | |
4e760a36 RD |
2602 | arg9 = wxString_in_helper(obj8); |
2603 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2604 | temp9 = True; |
d14a1e28 RD |
2605 | } |
2606 | } | |
2607 | { | |
2608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2609 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2610 | |
2611 | wxPyEndAllowThreads(__tstate); | |
2612 | if (PyErr_Occurred()) SWIG_fail; | |
2613 | } | |
4f89f6a3 RD |
2614 | { |
2615 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2616 | } | |
d14a1e28 | 2617 | { |
db914595 | 2618 | if (temp6) delete arg6; |
d14a1e28 RD |
2619 | } |
2620 | { | |
2621 | if (temp9) | |
4e760a36 | 2622 | delete arg9; |
d14a1e28 RD |
2623 | } |
2624 | return resultobj; | |
2625 | fail: | |
2626 | { | |
db914595 | 2627 | if (temp6) delete arg6; |
d14a1e28 RD |
2628 | } |
2629 | { | |
2630 | if (temp9) | |
4e760a36 | 2631 | delete arg9; |
d14a1e28 RD |
2632 | } |
2633 | return NULL; | |
2634 | } | |
2635 | ||
2636 | ||
d14a1e28 RD |
2637 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2638 | PyObject *resultobj; | |
2639 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2640 | int arg2 ; | |
2641 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2642 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2643 | char *kwnames[] = { |
2644 | (char *) "self",(char *) "n", NULL | |
2645 | }; | |
2646 | ||
8edf1c75 | 2647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2650 | arg2 = (int const) SWIG_AsInt(obj1); | |
2651 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2652 | { |
2653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2654 | (arg1)->SetSelection(arg2); | |
2655 | ||
2656 | wxPyEndAllowThreads(__tstate); | |
2657 | if (PyErr_Occurred()) SWIG_fail; | |
2658 | } | |
2659 | Py_INCREF(Py_None); resultobj = Py_None; | |
2660 | return resultobj; | |
2661 | fail: | |
2662 | return NULL; | |
2663 | } | |
2664 | ||
2665 | ||
2666 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2667 | PyObject *resultobj; | |
2668 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2669 | wxString *arg2 = 0 ; | |
423f194a | 2670 | bool temp2 = False ; |
d14a1e28 RD |
2671 | PyObject * obj0 = 0 ; |
2672 | PyObject * obj1 = 0 ; | |
2673 | char *kwnames[] = { | |
2674 | (char *) "self",(char *) "string", NULL | |
2675 | }; | |
2676 | ||
2677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2680 | { |
2681 | arg2 = wxString_in_helper(obj1); | |
2682 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2683 | temp2 = True; |
d14a1e28 RD |
2684 | } |
2685 | { | |
2686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2687 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2688 | ||
2689 | wxPyEndAllowThreads(__tstate); | |
2690 | if (PyErr_Occurred()) SWIG_fail; | |
2691 | } | |
2692 | Py_INCREF(Py_None); resultobj = Py_None; | |
2693 | { | |
2694 | if (temp2) | |
2695 | delete arg2; | |
2696 | } | |
2697 | return resultobj; | |
2698 | fail: | |
2699 | { | |
2700 | if (temp2) | |
2701 | delete arg2; | |
2702 | } | |
2703 | return NULL; | |
2704 | } | |
2705 | ||
2706 | ||
2707 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2708 | PyObject *resultobj; | |
2709 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2710 | int arg2 ; | |
2711 | wxString *arg3 = 0 ; | |
423f194a | 2712 | bool temp3 = False ; |
d14a1e28 | 2713 | PyObject * obj0 = 0 ; |
8edf1c75 | 2714 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2715 | PyObject * obj2 = 0 ; |
2716 | char *kwnames[] = { | |
1f05e33b | 2717 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2718 | }; |
2719 | ||
8edf1c75 | 2720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2723 | arg2 = (int) SWIG_AsInt(obj1); | |
2724 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2725 | { |
2726 | arg3 = wxString_in_helper(obj2); | |
2727 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2728 | temp3 = True; |
d14a1e28 RD |
2729 | } |
2730 | { | |
2731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2732 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2733 | ||
2734 | wxPyEndAllowThreads(__tstate); | |
2735 | if (PyErr_Occurred()) SWIG_fail; | |
2736 | } | |
2737 | Py_INCREF(Py_None); resultobj = Py_None; | |
2738 | { | |
2739 | if (temp3) | |
2740 | delete arg3; | |
2741 | } | |
2742 | return resultobj; | |
2743 | fail: | |
2744 | { | |
2745 | if (temp3) | |
2746 | delete arg3; | |
2747 | } | |
2748 | return NULL; | |
2749 | } | |
2750 | ||
2751 | ||
2752 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2753 | PyObject *obj; | |
2754 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2755 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2756 | Py_INCREF(obj); | |
2757 | return Py_BuildValue((char *)""); | |
2758 | } | |
2f4c0a16 | 2759 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
2760 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2761 | return 1; | |
2762 | } | |
2763 | ||
2764 | ||
2765 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2766 | PyObject *pyobj; | |
2767 | ||
2768 | { | |
2769 | #if wxUSE_UNICODE | |
2770 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2771 | #else | |
2772 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2773 | #endif | |
2774 | } | |
2775 | return pyobj; | |
2776 | } | |
2777 | ||
2778 | ||
d14a1e28 RD |
2779 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2780 | PyObject *resultobj; | |
2781 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2782 | int arg2 ; |
d14a1e28 RD |
2783 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2784 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2785 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2786 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2787 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2788 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2789 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2790 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2791 | long arg7 = (long) 0 ; | |
2792 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2793 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2794 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2795 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2796 | wxComboBox *result; |
423f194a | 2797 | bool temp3 = False ; |
d14a1e28 RD |
2798 | wxPoint temp4 ; |
2799 | wxSize temp5 ; | |
db914595 | 2800 | bool temp6 = False ; |
423f194a | 2801 | bool temp9 = False ; |
d14a1e28 | 2802 | PyObject * obj0 = 0 ; |
8edf1c75 | 2803 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2804 | PyObject * obj2 = 0 ; |
2805 | PyObject * obj3 = 0 ; | |
2806 | PyObject * obj4 = 0 ; | |
2807 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2808 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2809 | PyObject * obj7 = 0 ; |
2810 | PyObject * obj8 = 0 ; | |
2811 | char *kwnames[] = { | |
2812 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2813 | }; | |
2814 | ||
8edf1c75 | 2815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2818 | arg2 = (int) SWIG_AsInt(obj1); | |
2819 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2820 | if (obj2) { |
2821 | { | |
2822 | arg3 = wxString_in_helper(obj2); | |
2823 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2824 | temp3 = True; |
d14a1e28 RD |
2825 | } |
2826 | } | |
2827 | if (obj3) { | |
2828 | { | |
2829 | arg4 = &temp4; | |
2830 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2831 | } | |
2832 | } | |
2833 | if (obj4) { | |
2834 | { | |
2835 | arg5 = &temp5; | |
2836 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2837 | } | |
2838 | } | |
2839 | if (obj5) { | |
2840 | { | |
4e760a36 RD |
2841 | if (! PySequence_Check(obj5)) { |
2842 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2843 | SWIG_fail; | |
2844 | } | |
2845 | arg6 = new wxArrayString; | |
db914595 | 2846 | temp6 = True; |
4e760a36 RD |
2847 | int i, len=PySequence_Length(obj5); |
2848 | for (i=0; i<len; i++) { | |
2849 | PyObject* item = PySequence_GetItem(obj5, i); | |
2850 | #if wxUSE_UNICODE | |
2851 | PyObject* str = PyObject_Unicode(item); | |
2852 | #else | |
2853 | PyObject* str = PyObject_Str(item); | |
2854 | #endif | |
2855 | arg6->Add(Py2wxString(str)); | |
2856 | Py_DECREF(item); | |
2857 | Py_DECREF(str); | |
2858 | } | |
d14a1e28 RD |
2859 | } |
2860 | } | |
8edf1c75 | 2861 | if (obj6) { |
2f4c0a16 RD |
2862 | arg7 = (long) SWIG_AsLong(obj6); |
2863 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2864 | } |
d14a1e28 | 2865 | if (obj7) { |
2f4c0a16 RD |
2866 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2867 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2868 | SWIG_fail; | |
4e760a36 | 2869 | if (arg8 == NULL) { |
2f4c0a16 RD |
2870 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2871 | SWIG_fail; | |
d14a1e28 RD |
2872 | } |
2873 | } | |
2874 | if (obj8) { | |
2875 | { | |
4e760a36 RD |
2876 | arg9 = wxString_in_helper(obj8); |
2877 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2878 | temp9 = True; |
d14a1e28 RD |
2879 | } |
2880 | } | |
2881 | { | |
2882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2883 | 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 |
2884 | |
2885 | wxPyEndAllowThreads(__tstate); | |
2886 | if (PyErr_Occurred()) SWIG_fail; | |
2887 | } | |
2f4c0a16 | 2888 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2889 | { |
2890 | if (temp3) | |
2891 | delete arg3; | |
2892 | } | |
2893 | { | |
db914595 | 2894 | if (temp6) delete arg6; |
d14a1e28 RD |
2895 | } |
2896 | { | |
2897 | if (temp9) | |
4e760a36 | 2898 | delete arg9; |
d14a1e28 RD |
2899 | } |
2900 | return resultobj; | |
2901 | fail: | |
2902 | { | |
2903 | if (temp3) | |
2904 | delete arg3; | |
2905 | } | |
2906 | { | |
db914595 | 2907 | if (temp6) delete arg6; |
d14a1e28 RD |
2908 | } |
2909 | { | |
2910 | if (temp9) | |
4e760a36 | 2911 | delete arg9; |
d14a1e28 RD |
2912 | } |
2913 | return NULL; | |
2914 | } | |
2915 | ||
2916 | ||
2917 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2918 | PyObject *resultobj; | |
2919 | wxComboBox *result; | |
2920 | char *kwnames[] = { | |
2921 | NULL | |
2922 | }; | |
2923 | ||
2924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2925 | { | |
2926 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2927 | result = (wxComboBox *)new wxComboBox(); | |
2928 | ||
2929 | wxPyEndAllowThreads(__tstate); | |
2930 | if (PyErr_Occurred()) SWIG_fail; | |
2931 | } | |
2f4c0a16 | 2932 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2933 | return resultobj; |
2934 | fail: | |
2935 | return NULL; | |
2936 | } | |
2937 | ||
2938 | ||
2939 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2940 | PyObject *resultobj; | |
2941 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2942 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2943 | int arg3 ; |
d14a1e28 RD |
2944 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2945 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2946 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2947 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2948 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2949 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
2950 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2951 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2952 | long arg8 = (long) 0 ; | |
2953 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2954 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
328fcd84 | 2955 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4e760a36 | 2956 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2957 | bool result; |
423f194a | 2958 | bool temp4 = False ; |
d14a1e28 RD |
2959 | wxPoint temp5 ; |
2960 | wxSize temp6 ; | |
db914595 | 2961 | bool temp7 = False ; |
423f194a | 2962 | bool temp10 = False ; |
d14a1e28 RD |
2963 | PyObject * obj0 = 0 ; |
2964 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2965 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2966 | PyObject * obj3 = 0 ; |
2967 | PyObject * obj4 = 0 ; | |
2968 | PyObject * obj5 = 0 ; | |
2969 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2970 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2971 | PyObject * obj8 = 0 ; |
2972 | PyObject * obj9 = 0 ; | |
2973 | char *kwnames[] = { | |
2974 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2975 | }; | |
2976 | ||
8edf1c75 | 2977 | 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 |
2978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
2979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2980 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2982 | arg3 = (int) SWIG_AsInt(obj2); | |
2983 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2984 | if (obj3) { |
2985 | { | |
2986 | arg4 = wxString_in_helper(obj3); | |
2987 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2988 | temp4 = True; |
d14a1e28 RD |
2989 | } |
2990 | } | |
2991 | if (obj4) { | |
2992 | { | |
2993 | arg5 = &temp5; | |
2994 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2995 | } | |
2996 | } | |
2997 | if (obj5) { | |
2998 | { | |
2999 | arg6 = &temp6; | |
3000 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3001 | } | |
3002 | } | |
3003 | if (obj6) { | |
3004 | { | |
4e760a36 RD |
3005 | if (! PySequence_Check(obj6)) { |
3006 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3007 | SWIG_fail; | |
3008 | } | |
3009 | arg7 = new wxArrayString; | |
db914595 | 3010 | temp7 = True; |
4e760a36 RD |
3011 | int i, len=PySequence_Length(obj6); |
3012 | for (i=0; i<len; i++) { | |
3013 | PyObject* item = PySequence_GetItem(obj6, i); | |
3014 | #if wxUSE_UNICODE | |
3015 | PyObject* str = PyObject_Unicode(item); | |
3016 | #else | |
3017 | PyObject* str = PyObject_Str(item); | |
3018 | #endif | |
3019 | arg7->Add(Py2wxString(str)); | |
3020 | Py_DECREF(item); | |
3021 | Py_DECREF(str); | |
3022 | } | |
d14a1e28 RD |
3023 | } |
3024 | } | |
8edf1c75 | 3025 | if (obj7) { |
2f4c0a16 RD |
3026 | arg8 = (long) SWIG_AsLong(obj7); |
3027 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3028 | } |
d14a1e28 | 3029 | if (obj8) { |
2f4c0a16 RD |
3030 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3031 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3032 | SWIG_fail; | |
4e760a36 | 3033 | if (arg9 == NULL) { |
2f4c0a16 RD |
3034 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3035 | SWIG_fail; | |
d14a1e28 RD |
3036 | } |
3037 | } | |
3038 | if (obj9) { | |
3039 | { | |
4e760a36 RD |
3040 | arg10 = wxString_in_helper(obj9); |
3041 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 3042 | temp10 = True; |
d14a1e28 RD |
3043 | } |
3044 | } | |
3045 | { | |
3046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 3047 | 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 |
3048 | |
3049 | wxPyEndAllowThreads(__tstate); | |
3050 | if (PyErr_Occurred()) SWIG_fail; | |
3051 | } | |
4f89f6a3 RD |
3052 | { |
3053 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3054 | } | |
d14a1e28 RD |
3055 | { |
3056 | if (temp4) | |
3057 | delete arg4; | |
3058 | } | |
3059 | { | |
db914595 | 3060 | if (temp7) delete arg7; |
d14a1e28 RD |
3061 | } |
3062 | { | |
3063 | if (temp10) | |
4e760a36 | 3064 | delete arg10; |
d14a1e28 RD |
3065 | } |
3066 | return resultobj; | |
3067 | fail: | |
3068 | { | |
3069 | if (temp4) | |
3070 | delete arg4; | |
3071 | } | |
3072 | { | |
db914595 | 3073 | if (temp7) delete arg7; |
d14a1e28 RD |
3074 | } |
3075 | { | |
3076 | if (temp10) | |
4e760a36 | 3077 | delete arg10; |
d14a1e28 RD |
3078 | } |
3079 | return NULL; | |
3080 | } | |
3081 | ||
3082 | ||
3083 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3084 | PyObject *resultobj; | |
3085 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3086 | wxString result; | |
3087 | PyObject * obj0 = 0 ; | |
3088 | char *kwnames[] = { | |
3089 | (char *) "self", NULL | |
3090 | }; | |
3091 | ||
3092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3095 | { |
3096 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3097 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3098 | ||
3099 | wxPyEndAllowThreads(__tstate); | |
3100 | if (PyErr_Occurred()) SWIG_fail; | |
3101 | } | |
3102 | { | |
3103 | #if wxUSE_UNICODE | |
3104 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3105 | #else | |
3106 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3107 | #endif | |
3108 | } | |
3109 | return resultobj; | |
3110 | fail: | |
3111 | return NULL; | |
3112 | } | |
3113 | ||
3114 | ||
3115 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3116 | PyObject *resultobj; | |
3117 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3118 | wxString *arg2 = 0 ; | |
423f194a | 3119 | bool temp2 = False ; |
d14a1e28 RD |
3120 | PyObject * obj0 = 0 ; |
3121 | PyObject * obj1 = 0 ; | |
3122 | char *kwnames[] = { | |
3123 | (char *) "self",(char *) "value", NULL | |
3124 | }; | |
3125 | ||
3126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3129 | { |
3130 | arg2 = wxString_in_helper(obj1); | |
3131 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3132 | temp2 = True; |
d14a1e28 RD |
3133 | } |
3134 | { | |
3135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3136 | (arg1)->SetValue((wxString const &)*arg2); | |
3137 | ||
3138 | wxPyEndAllowThreads(__tstate); | |
3139 | if (PyErr_Occurred()) SWIG_fail; | |
3140 | } | |
3141 | Py_INCREF(Py_None); resultobj = Py_None; | |
3142 | { | |
3143 | if (temp2) | |
3144 | delete arg2; | |
3145 | } | |
3146 | return resultobj; | |
3147 | fail: | |
3148 | { | |
3149 | if (temp2) | |
3150 | delete arg2; | |
3151 | } | |
3152 | return NULL; | |
3153 | } | |
3154 | ||
3155 | ||
3156 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3157 | PyObject *resultobj; | |
3158 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3159 | PyObject * obj0 = 0 ; | |
3160 | char *kwnames[] = { | |
3161 | (char *) "self", NULL | |
3162 | }; | |
3163 | ||
3164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3167 | { |
3168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3169 | (arg1)->Copy(); | |
3170 | ||
3171 | wxPyEndAllowThreads(__tstate); | |
3172 | if (PyErr_Occurred()) SWIG_fail; | |
3173 | } | |
3174 | Py_INCREF(Py_None); resultobj = Py_None; | |
3175 | return resultobj; | |
3176 | fail: | |
3177 | return NULL; | |
3178 | } | |
3179 | ||
3180 | ||
3181 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3182 | PyObject *resultobj; | |
3183 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3184 | PyObject * obj0 = 0 ; | |
3185 | char *kwnames[] = { | |
3186 | (char *) "self", NULL | |
3187 | }; | |
3188 | ||
3189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3192 | { |
3193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3194 | (arg1)->Cut(); | |
3195 | ||
3196 | wxPyEndAllowThreads(__tstate); | |
3197 | if (PyErr_Occurred()) SWIG_fail; | |
3198 | } | |
3199 | Py_INCREF(Py_None); resultobj = Py_None; | |
3200 | return resultobj; | |
3201 | fail: | |
3202 | return NULL; | |
3203 | } | |
3204 | ||
3205 | ||
3206 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3207 | PyObject *resultobj; | |
3208 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3209 | PyObject * obj0 = 0 ; | |
3210 | char *kwnames[] = { | |
3211 | (char *) "self", NULL | |
3212 | }; | |
3213 | ||
3214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3217 | { |
3218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3219 | (arg1)->Paste(); | |
3220 | ||
3221 | wxPyEndAllowThreads(__tstate); | |
3222 | if (PyErr_Occurred()) SWIG_fail; | |
3223 | } | |
3224 | Py_INCREF(Py_None); resultobj = Py_None; | |
3225 | return resultobj; | |
3226 | fail: | |
3227 | return NULL; | |
3228 | } | |
3229 | ||
3230 | ||
3231 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3232 | PyObject *resultobj; | |
3233 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3234 | long arg2 ; | |
3235 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3236 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3237 | char *kwnames[] = { |
3238 | (char *) "self",(char *) "pos", NULL | |
3239 | }; | |
3240 | ||
8edf1c75 | 3241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3244 | arg2 = (long) SWIG_AsLong(obj1); | |
3245 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3246 | { |
3247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3248 | (arg1)->SetInsertionPoint(arg2); | |
3249 | ||
3250 | wxPyEndAllowThreads(__tstate); | |
3251 | if (PyErr_Occurred()) SWIG_fail; | |
3252 | } | |
3253 | Py_INCREF(Py_None); resultobj = Py_None; | |
3254 | return resultobj; | |
3255 | fail: | |
3256 | return NULL; | |
3257 | } | |
3258 | ||
3259 | ||
3260 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3261 | PyObject *resultobj; | |
3262 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3263 | long result; | |
3264 | PyObject * obj0 = 0 ; | |
3265 | char *kwnames[] = { | |
3266 | (char *) "self", NULL | |
3267 | }; | |
3268 | ||
3269 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3270 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3272 | { |
3273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3274 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3275 | ||
3276 | wxPyEndAllowThreads(__tstate); | |
3277 | if (PyErr_Occurred()) SWIG_fail; | |
3278 | } | |
2f4c0a16 | 3279 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3280 | return resultobj; |
3281 | fail: | |
3282 | return NULL; | |
3283 | } | |
3284 | ||
3285 | ||
3286 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3287 | PyObject *resultobj; | |
3288 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3289 | long result; | |
3290 | PyObject * obj0 = 0 ; | |
3291 | char *kwnames[] = { | |
3292 | (char *) "self", NULL | |
3293 | }; | |
3294 | ||
3295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3298 | { |
3299 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3300 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3301 | ||
3302 | wxPyEndAllowThreads(__tstate); | |
3303 | if (PyErr_Occurred()) SWIG_fail; | |
3304 | } | |
2f4c0a16 | 3305 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3306 | return resultobj; |
3307 | fail: | |
3308 | return NULL; | |
3309 | } | |
3310 | ||
3311 | ||
3312 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3313 | PyObject *resultobj; | |
3314 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3315 | long arg2 ; | |
3316 | long arg3 ; | |
3317 | wxString *arg4 = 0 ; | |
423f194a | 3318 | bool temp4 = False ; |
d14a1e28 | 3319 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3320 | PyObject * obj1 = 0 ; |
3321 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3322 | PyObject * obj3 = 0 ; |
3323 | char *kwnames[] = { | |
3324 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3325 | }; | |
3326 | ||
8edf1c75 | 3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
3328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3330 | arg2 = (long) SWIG_AsLong(obj1); | |
3331 | if (PyErr_Occurred()) SWIG_fail; | |
3332 | arg3 = (long) SWIG_AsLong(obj2); | |
3333 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3334 | { |
3335 | arg4 = wxString_in_helper(obj3); | |
3336 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3337 | temp4 = True; |
d14a1e28 RD |
3338 | } |
3339 | { | |
3340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3341 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3342 | ||
3343 | wxPyEndAllowThreads(__tstate); | |
3344 | if (PyErr_Occurred()) SWIG_fail; | |
3345 | } | |
3346 | Py_INCREF(Py_None); resultobj = Py_None; | |
3347 | { | |
3348 | if (temp4) | |
3349 | delete arg4; | |
3350 | } | |
3351 | return resultobj; | |
3352 | fail: | |
3353 | { | |
3354 | if (temp4) | |
3355 | delete arg4; | |
3356 | } | |
3357 | return NULL; | |
3358 | } | |
3359 | ||
3360 | ||
8a0b029b RD |
3361 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3362 | PyObject *resultobj; | |
3363 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3364 | int arg2 ; | |
3365 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3366 | PyObject * obj1 = 0 ; |
8a0b029b RD |
3367 | char *kwnames[] = { |
3368 | (char *) "self",(char *) "n", NULL | |
3369 | }; | |
3370 | ||
8edf1c75 | 3371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3374 | arg2 = (int) SWIG_AsInt(obj1); | |
3375 | if (PyErr_Occurred()) SWIG_fail; | |
8a0b029b RD |
3376 | { |
3377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3378 | (arg1)->SetSelection(arg2); | |
3379 | ||
3380 | wxPyEndAllowThreads(__tstate); | |
3381 | if (PyErr_Occurred()) SWIG_fail; | |
3382 | } | |
3383 | Py_INCREF(Py_None); resultobj = Py_None; | |
3384 | return resultobj; | |
3385 | fail: | |
3386 | return NULL; | |
3387 | } | |
3388 | ||
3389 | ||
d14a1e28 RD |
3390 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3391 | PyObject *resultobj; | |
3392 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3393 | long arg2 ; | |
3394 | long arg3 ; | |
3395 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3396 | PyObject * obj1 = 0 ; |
3397 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3398 | char *kwnames[] = { |
3399 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3400 | }; | |
3401 | ||
8edf1c75 | 3402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3405 | arg2 = (long) SWIG_AsLong(obj1); | |
3406 | if (PyErr_Occurred()) SWIG_fail; | |
3407 | arg3 = (long) SWIG_AsLong(obj2); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3409 | { |
3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3411 | (arg1)->SetSelection(arg2,arg3); | |
3412 | ||
3413 | wxPyEndAllowThreads(__tstate); | |
3414 | if (PyErr_Occurred()) SWIG_fail; | |
3415 | } | |
3416 | Py_INCREF(Py_None); resultobj = Py_None; | |
3417 | return resultobj; | |
3418 | fail: | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
3423 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject *resultobj; | |
3425 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3426 | bool arg2 ; | |
3427 | PyObject * obj0 = 0 ; | |
3428 | PyObject * obj1 = 0 ; | |
3429 | char *kwnames[] = { | |
3430 | (char *) "self",(char *) "editable", NULL | |
3431 | }; | |
3432 | ||
3433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3436 | arg2 = (bool) SWIG_AsBool(obj1); | |
3437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3438 | { |
3439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3440 | (arg1)->SetEditable(arg2); | |
3441 | ||
3442 | wxPyEndAllowThreads(__tstate); | |
3443 | if (PyErr_Occurred()) SWIG_fail; | |
3444 | } | |
3445 | Py_INCREF(Py_None); resultobj = Py_None; | |
3446 | return resultobj; | |
3447 | fail: | |
3448 | return NULL; | |
3449 | } | |
3450 | ||
3451 | ||
3452 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3453 | PyObject *resultobj; | |
3454 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3455 | PyObject * obj0 = 0 ; | |
3456 | char *kwnames[] = { | |
3457 | (char *) "self", NULL | |
3458 | }; | |
3459 | ||
3460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3463 | { |
3464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3465 | (arg1)->SetInsertionPointEnd(); | |
3466 | ||
3467 | wxPyEndAllowThreads(__tstate); | |
3468 | if (PyErr_Occurred()) SWIG_fail; | |
3469 | } | |
3470 | Py_INCREF(Py_None); resultobj = Py_None; | |
3471 | return resultobj; | |
3472 | fail: | |
3473 | return NULL; | |
3474 | } | |
3475 | ||
3476 | ||
3477 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3478 | PyObject *resultobj; | |
3479 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3480 | long arg2 ; | |
3481 | long arg3 ; | |
3482 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3483 | PyObject * obj1 = 0 ; |
3484 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3485 | char *kwnames[] = { |
3486 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3487 | }; | |
3488 | ||
8edf1c75 | 3489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3492 | arg2 = (long) SWIG_AsLong(obj1); | |
3493 | if (PyErr_Occurred()) SWIG_fail; | |
3494 | arg3 = (long) SWIG_AsLong(obj2); | |
3495 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3496 | { |
3497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3498 | (arg1)->Remove(arg2,arg3); | |
3499 | ||
3500 | wxPyEndAllowThreads(__tstate); | |
3501 | if (PyErr_Occurred()) SWIG_fail; | |
3502 | } | |
3503 | Py_INCREF(Py_None); resultobj = Py_None; | |
3504 | return resultobj; | |
3505 | fail: | |
3506 | return NULL; | |
3507 | } | |
3508 | ||
3509 | ||
3510 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3511 | PyObject *obj; | |
3512 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3513 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3514 | Py_INCREF(obj); | |
3515 | return Py_BuildValue((char *)""); | |
3516 | } | |
2f4c0a16 | 3517 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
d03fd34d RD |
3518 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3519 | return 1; | |
3520 | } | |
3521 | ||
3522 | ||
3523 | static PyObject *_wrap_GaugeNameStr_get() { | |
3524 | PyObject *pyobj; | |
3525 | ||
3526 | { | |
3527 | #if wxUSE_UNICODE | |
3528 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3529 | #else | |
3530 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3531 | #endif | |
3532 | } | |
3533 | return pyobj; | |
3534 | } | |
3535 | ||
3536 | ||
d14a1e28 RD |
3537 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3538 | PyObject *resultobj; | |
3539 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3540 | int arg2 ; |
d14a1e28 RD |
3541 | int arg3 ; |
3542 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3543 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3544 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3545 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3546 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3547 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3548 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3549 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3550 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3551 | wxGauge *result; | |
3552 | wxPoint temp4 ; | |
3553 | wxSize temp5 ; | |
423f194a | 3554 | bool temp8 = False ; |
d14a1e28 | 3555 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3556 | PyObject * obj1 = 0 ; |
3557 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3558 | PyObject * obj3 = 0 ; |
3559 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3560 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3561 | PyObject * obj6 = 0 ; |
3562 | PyObject * obj7 = 0 ; | |
3563 | char *kwnames[] = { | |
3564 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3565 | }; | |
3566 | ||
8edf1c75 | 3567 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
3568 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3569 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3570 | arg2 = (int) SWIG_AsInt(obj1); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
3572 | arg3 = (int) SWIG_AsInt(obj2); | |
3573 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3574 | if (obj3) { |
3575 | { | |
3576 | arg4 = &temp4; | |
3577 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3578 | } | |
3579 | } | |
3580 | if (obj4) { | |
3581 | { | |
3582 | arg5 = &temp5; | |
3583 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3584 | } | |
3585 | } | |
8edf1c75 | 3586 | if (obj5) { |
2f4c0a16 RD |
3587 | arg6 = (long) SWIG_AsLong(obj5); |
3588 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3589 | } |
d14a1e28 | 3590 | if (obj6) { |
2f4c0a16 RD |
3591 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3592 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3593 | SWIG_fail; | |
d14a1e28 | 3594 | if (arg7 == NULL) { |
2f4c0a16 RD |
3595 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3596 | SWIG_fail; | |
d14a1e28 RD |
3597 | } |
3598 | } | |
3599 | if (obj7) { | |
3600 | { | |
3601 | arg8 = wxString_in_helper(obj7); | |
3602 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3603 | temp8 = True; |
d14a1e28 RD |
3604 | } |
3605 | } | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
2f4c0a16 | 3613 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3614 | { |
3615 | if (temp8) | |
3616 | delete arg8; | |
3617 | } | |
3618 | return resultobj; | |
3619 | fail: | |
3620 | { | |
3621 | if (temp8) | |
3622 | delete arg8; | |
3623 | } | |
3624 | return NULL; | |
3625 | } | |
3626 | ||
3627 | ||
3628 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3629 | PyObject *resultobj; | |
3630 | wxGauge *result; | |
3631 | char *kwnames[] = { | |
3632 | NULL | |
3633 | }; | |
3634 | ||
3635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3636 | { | |
3637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3638 | result = (wxGauge *)new wxGauge(); | |
3639 | ||
3640 | wxPyEndAllowThreads(__tstate); | |
3641 | if (PyErr_Occurred()) SWIG_fail; | |
3642 | } | |
2f4c0a16 | 3643 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3644 | return resultobj; |
3645 | fail: | |
3646 | return NULL; | |
3647 | } | |
3648 | ||
3649 | ||
3650 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3651 | PyObject *resultobj; | |
3652 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3653 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3654 | int arg3 ; |
d14a1e28 RD |
3655 | int arg4 ; |
3656 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3657 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3658 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3659 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3660 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3661 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3662 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3663 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3664 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3665 | bool result; | |
3666 | wxPoint temp5 ; | |
3667 | wxSize temp6 ; | |
423f194a | 3668 | bool temp9 = False ; |
d14a1e28 RD |
3669 | PyObject * obj0 = 0 ; |
3670 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3671 | PyObject * obj2 = 0 ; |
3672 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3673 | PyObject * obj4 = 0 ; |
3674 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3675 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3676 | PyObject * obj7 = 0 ; |
3677 | PyObject * obj8 = 0 ; | |
3678 | char *kwnames[] = { | |
3679 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3680 | }; | |
3681 | ||
8edf1c75 | 3682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
3683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3685 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3687 | arg3 = (int) SWIG_AsInt(obj2); | |
3688 | if (PyErr_Occurred()) SWIG_fail; | |
3689 | arg4 = (int) SWIG_AsInt(obj3); | |
3690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3691 | if (obj4) { |
3692 | { | |
3693 | arg5 = &temp5; | |
3694 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3695 | } | |
3696 | } | |
3697 | if (obj5) { | |
3698 | { | |
3699 | arg6 = &temp6; | |
3700 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3701 | } | |
3702 | } | |
8edf1c75 | 3703 | if (obj6) { |
2f4c0a16 RD |
3704 | arg7 = (long) SWIG_AsLong(obj6); |
3705 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3706 | } |
d14a1e28 | 3707 | if (obj7) { |
2f4c0a16 RD |
3708 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3709 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3710 | SWIG_fail; | |
d14a1e28 | 3711 | if (arg8 == NULL) { |
2f4c0a16 RD |
3712 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3713 | SWIG_fail; | |
d14a1e28 RD |
3714 | } |
3715 | } | |
3716 | if (obj8) { | |
3717 | { | |
3718 | arg9 = wxString_in_helper(obj8); | |
3719 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3720 | temp9 = True; |
d14a1e28 RD |
3721 | } |
3722 | } | |
3723 | { | |
3724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3725 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3726 | ||
3727 | wxPyEndAllowThreads(__tstate); | |
3728 | if (PyErr_Occurred()) SWIG_fail; | |
3729 | } | |
4f89f6a3 RD |
3730 | { |
3731 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3732 | } | |
d14a1e28 RD |
3733 | { |
3734 | if (temp9) | |
3735 | delete arg9; | |
3736 | } | |
3737 | return resultobj; | |
3738 | fail: | |
3739 | { | |
3740 | if (temp9) | |
3741 | delete arg9; | |
3742 | } | |
3743 | return NULL; | |
3744 | } | |
3745 | ||
3746 | ||
3747 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3748 | PyObject *resultobj; | |
3749 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3750 | int arg2 ; | |
3751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3753 | char *kwnames[] = { |
3754 | (char *) "self",(char *) "range", NULL | |
3755 | }; | |
3756 | ||
8edf1c75 | 3757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3760 | arg2 = (int) SWIG_AsInt(obj1); | |
3761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3762 | { |
3763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3764 | (arg1)->SetRange(arg2); | |
3765 | ||
3766 | wxPyEndAllowThreads(__tstate); | |
3767 | if (PyErr_Occurred()) SWIG_fail; | |
3768 | } | |
3769 | Py_INCREF(Py_None); resultobj = Py_None; | |
3770 | return resultobj; | |
3771 | fail: | |
3772 | return NULL; | |
3773 | } | |
3774 | ||
3775 | ||
3776 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3777 | PyObject *resultobj; | |
3778 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3779 | int result; | |
3780 | PyObject * obj0 = 0 ; | |
3781 | char *kwnames[] = { | |
3782 | (char *) "self", NULL | |
3783 | }; | |
3784 | ||
3785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3788 | { |
3789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3790 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3791 | ||
3792 | wxPyEndAllowThreads(__tstate); | |
3793 | if (PyErr_Occurred()) SWIG_fail; | |
3794 | } | |
2f4c0a16 | 3795 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3796 | return resultobj; |
3797 | fail: | |
3798 | return NULL; | |
3799 | } | |
3800 | ||
3801 | ||
3802 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3803 | PyObject *resultobj; | |
3804 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3805 | int arg2 ; | |
3806 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3808 | char *kwnames[] = { |
3809 | (char *) "self",(char *) "pos", NULL | |
3810 | }; | |
3811 | ||
8edf1c75 | 3812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3815 | arg2 = (int) SWIG_AsInt(obj1); | |
3816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3817 | { |
3818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3819 | (arg1)->SetValue(arg2); | |
3820 | ||
3821 | wxPyEndAllowThreads(__tstate); | |
3822 | if (PyErr_Occurred()) SWIG_fail; | |
3823 | } | |
3824 | Py_INCREF(Py_None); resultobj = Py_None; | |
3825 | return resultobj; | |
3826 | fail: | |
3827 | return NULL; | |
3828 | } | |
3829 | ||
3830 | ||
3831 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3832 | PyObject *resultobj; | |
3833 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3834 | int result; | |
3835 | PyObject * obj0 = 0 ; | |
3836 | char *kwnames[] = { | |
3837 | (char *) "self", NULL | |
3838 | }; | |
3839 | ||
3840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3843 | { |
3844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3845 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3846 | ||
3847 | wxPyEndAllowThreads(__tstate); | |
3848 | if (PyErr_Occurred()) SWIG_fail; | |
3849 | } | |
2f4c0a16 | 3850 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3851 | return resultobj; |
3852 | fail: | |
3853 | return NULL; | |
3854 | } | |
3855 | ||
3856 | ||
3857 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3858 | PyObject *resultobj; | |
3859 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3860 | bool result; | |
3861 | PyObject * obj0 = 0 ; | |
3862 | char *kwnames[] = { | |
3863 | (char *) "self", NULL | |
3864 | }; | |
3865 | ||
3866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3869 | { |
3870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3871 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3872 | ||
3873 | wxPyEndAllowThreads(__tstate); | |
3874 | if (PyErr_Occurred()) SWIG_fail; | |
3875 | } | |
4f89f6a3 RD |
3876 | { |
3877 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3878 | } | |
d14a1e28 RD |
3879 | return resultobj; |
3880 | fail: | |
3881 | return NULL; | |
3882 | } | |
3883 | ||
3884 | ||
3885 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3886 | PyObject *resultobj; | |
3887 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3888 | int arg2 ; | |
3889 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3890 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3891 | char *kwnames[] = { |
3892 | (char *) "self",(char *) "w", NULL | |
3893 | }; | |
3894 | ||
8edf1c75 | 3895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3898 | arg2 = (int) SWIG_AsInt(obj1); | |
3899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3900 | { |
3901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3902 | (arg1)->SetShadowWidth(arg2); | |
3903 | ||
3904 | wxPyEndAllowThreads(__tstate); | |
3905 | if (PyErr_Occurred()) SWIG_fail; | |
3906 | } | |
3907 | Py_INCREF(Py_None); resultobj = Py_None; | |
3908 | return resultobj; | |
3909 | fail: | |
3910 | return NULL; | |
3911 | } | |
3912 | ||
3913 | ||
3914 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3915 | PyObject *resultobj; | |
3916 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3917 | int result; | |
3918 | PyObject * obj0 = 0 ; | |
3919 | char *kwnames[] = { | |
3920 | (char *) "self", NULL | |
3921 | }; | |
3922 | ||
3923 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3924 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3925 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3926 | { |
3927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3928 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3929 | ||
3930 | wxPyEndAllowThreads(__tstate); | |
3931 | if (PyErr_Occurred()) SWIG_fail; | |
3932 | } | |
2f4c0a16 | 3933 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3934 | return resultobj; |
3935 | fail: | |
3936 | return NULL; | |
3937 | } | |
3938 | ||
3939 | ||
3940 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3941 | PyObject *resultobj; | |
3942 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3943 | int arg2 ; | |
3944 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3946 | char *kwnames[] = { |
3947 | (char *) "self",(char *) "w", NULL | |
3948 | }; | |
3949 | ||
8edf1c75 | 3950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3953 | arg2 = (int) SWIG_AsInt(obj1); | |
3954 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3955 | { |
3956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3957 | (arg1)->SetBezelFace(arg2); | |
3958 | ||
3959 | wxPyEndAllowThreads(__tstate); | |
3960 | if (PyErr_Occurred()) SWIG_fail; | |
3961 | } | |
3962 | Py_INCREF(Py_None); resultobj = Py_None; | |
3963 | return resultobj; | |
3964 | fail: | |
3965 | return NULL; | |
3966 | } | |
3967 | ||
3968 | ||
3969 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3970 | PyObject *resultobj; | |
3971 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3972 | int result; | |
3973 | PyObject * obj0 = 0 ; | |
3974 | char *kwnames[] = { | |
3975 | (char *) "self", NULL | |
3976 | }; | |
3977 | ||
3978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3981 | { |
3982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3983 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3984 | ||
3985 | wxPyEndAllowThreads(__tstate); | |
3986 | if (PyErr_Occurred()) SWIG_fail; | |
3987 | } | |
2f4c0a16 | 3988 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3989 | return resultobj; |
3990 | fail: | |
3991 | return NULL; | |
3992 | } | |
3993 | ||
3994 | ||
3995 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
3996 | PyObject *obj; | |
3997 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3998 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
3999 | Py_INCREF(obj); | |
4000 | return Py_BuildValue((char *)""); | |
4001 | } | |
2f4c0a16 | 4002 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
d03fd34d RD |
4003 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4004 | return 1; | |
4005 | } | |
4006 | ||
4007 | ||
4008 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4009 | PyObject *pyobj; | |
4010 | ||
4011 | { | |
4012 | #if wxUSE_UNICODE | |
4013 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4014 | #else | |
4015 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4016 | #endif | |
4017 | } | |
4018 | return pyobj; | |
4019 | } | |
4020 | ||
4021 | ||
2f4c0a16 | 4022 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
4023 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4024 | return 1; | |
4025 | } | |
4026 | ||
4027 | ||
4028 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4029 | PyObject *pyobj; | |
4030 | ||
4031 | { | |
4032 | #if wxUSE_UNICODE | |
4033 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4034 | #else | |
4035 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4036 | #endif | |
4037 | } | |
4038 | return pyobj; | |
4039 | } | |
4040 | ||
4041 | ||
2f4c0a16 | 4042 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { |
d03fd34d RD |
4043 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4044 | return 1; | |
4045 | } | |
4046 | ||
4047 | ||
4048 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4049 | PyObject *pyobj; | |
4050 | ||
4051 | { | |
4052 | #if wxUSE_UNICODE | |
4053 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4054 | #else | |
4055 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4056 | #endif | |
4057 | } | |
4058 | return pyobj; | |
4059 | } | |
4060 | ||
4061 | ||
d14a1e28 RD |
4062 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4063 | PyObject *resultobj; | |
4064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4065 | int arg2 ; |
d14a1e28 RD |
4066 | wxString *arg3 = 0 ; |
4067 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4068 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4069 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4070 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4071 | long arg6 = (long) 0 ; | |
4072 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4073 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4074 | wxStaticBox *result; | |
423f194a | 4075 | bool temp3 = False ; |
d14a1e28 RD |
4076 | wxPoint temp4 ; |
4077 | wxSize temp5 ; | |
423f194a | 4078 | bool temp7 = False ; |
d14a1e28 | 4079 | PyObject * obj0 = 0 ; |
8edf1c75 | 4080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4081 | PyObject * obj2 = 0 ; |
4082 | PyObject * obj3 = 0 ; | |
4083 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4084 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4085 | PyObject * obj6 = 0 ; |
4086 | char *kwnames[] = { | |
4087 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4088 | }; | |
4089 | ||
8edf1c75 | 4090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4093 | arg2 = (int) SWIG_AsInt(obj1); | |
4094 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4095 | { |
4096 | arg3 = wxString_in_helper(obj2); | |
4097 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4098 | temp3 = True; |
d14a1e28 RD |
4099 | } |
4100 | if (obj3) { | |
4101 | { | |
4102 | arg4 = &temp4; | |
4103 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4104 | } | |
4105 | } | |
4106 | if (obj4) { | |
4107 | { | |
4108 | arg5 = &temp5; | |
4109 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4110 | } | |
4111 | } | |
8edf1c75 | 4112 | if (obj5) { |
2f4c0a16 RD |
4113 | arg6 = (long) SWIG_AsLong(obj5); |
4114 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4115 | } |
d14a1e28 RD |
4116 | if (obj6) { |
4117 | { | |
4118 | arg7 = wxString_in_helper(obj6); | |
4119 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4120 | temp7 = True; |
d14a1e28 RD |
4121 | } |
4122 | } | |
4123 | { | |
4124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4125 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4126 | ||
4127 | wxPyEndAllowThreads(__tstate); | |
4128 | if (PyErr_Occurred()) SWIG_fail; | |
4129 | } | |
4130 | { | |
4131 | resultobj = wxPyMake_wxObject(result); | |
4132 | } | |
4133 | { | |
4134 | if (temp3) | |
4135 | delete arg3; | |
4136 | } | |
4137 | { | |
4138 | if (temp7) | |
4139 | delete arg7; | |
4140 | } | |
4141 | return resultobj; | |
4142 | fail: | |
4143 | { | |
4144 | if (temp3) | |
4145 | delete arg3; | |
4146 | } | |
4147 | { | |
4148 | if (temp7) | |
4149 | delete arg7; | |
4150 | } | |
4151 | return NULL; | |
4152 | } | |
4153 | ||
4154 | ||
4155 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4156 | PyObject *resultobj; | |
4157 | wxStaticBox *result; | |
4158 | char *kwnames[] = { | |
4159 | NULL | |
4160 | }; | |
4161 | ||
4162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4163 | { | |
4164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4165 | result = (wxStaticBox *)new wxStaticBox(); | |
4166 | ||
4167 | wxPyEndAllowThreads(__tstate); | |
4168 | if (PyErr_Occurred()) SWIG_fail; | |
4169 | } | |
4170 | { | |
4171 | resultobj = wxPyMake_wxObject(result); | |
4172 | } | |
4173 | return resultobj; | |
4174 | fail: | |
4175 | return NULL; | |
4176 | } | |
4177 | ||
4178 | ||
4179 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4180 | PyObject *resultobj; | |
4181 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4182 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4183 | int arg3 ; |
d14a1e28 RD |
4184 | wxString *arg4 = 0 ; |
4185 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4186 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4187 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4188 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4189 | long arg7 = (long) 0 ; | |
4190 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4191 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4192 | bool result; | |
423f194a | 4193 | bool temp4 = False ; |
d14a1e28 RD |
4194 | wxPoint temp5 ; |
4195 | wxSize temp6 ; | |
423f194a | 4196 | bool temp8 = False ; |
d14a1e28 RD |
4197 | PyObject * obj0 = 0 ; |
4198 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4199 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4200 | PyObject * obj3 = 0 ; |
4201 | PyObject * obj4 = 0 ; | |
4202 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4203 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4204 | PyObject * obj7 = 0 ; |
4205 | char *kwnames[] = { | |
4206 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4207 | }; | |
4208 | ||
8edf1c75 | 4209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4214 | arg3 = (int) SWIG_AsInt(obj2); | |
4215 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4216 | { |
4217 | arg4 = wxString_in_helper(obj3); | |
4218 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4219 | temp4 = True; |
d14a1e28 RD |
4220 | } |
4221 | if (obj4) { | |
4222 | { | |
4223 | arg5 = &temp5; | |
4224 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4225 | } | |
4226 | } | |
4227 | if (obj5) { | |
4228 | { | |
4229 | arg6 = &temp6; | |
4230 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4231 | } | |
4232 | } | |
8edf1c75 | 4233 | if (obj6) { |
2f4c0a16 RD |
4234 | arg7 = (long) SWIG_AsLong(obj6); |
4235 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4236 | } |
d14a1e28 RD |
4237 | if (obj7) { |
4238 | { | |
4239 | arg8 = wxString_in_helper(obj7); | |
4240 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4241 | temp8 = True; |
d14a1e28 RD |
4242 | } |
4243 | } | |
4244 | { | |
4245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4246 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4247 | ||
4248 | wxPyEndAllowThreads(__tstate); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
4250 | } | |
4f89f6a3 RD |
4251 | { |
4252 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4253 | } | |
d14a1e28 RD |
4254 | { |
4255 | if (temp4) | |
4256 | delete arg4; | |
4257 | } | |
4258 | { | |
4259 | if (temp8) | |
4260 | delete arg8; | |
4261 | } | |
4262 | return resultobj; | |
4263 | fail: | |
4264 | { | |
4265 | if (temp4) | |
4266 | delete arg4; | |
4267 | } | |
4268 | { | |
4269 | if (temp8) | |
4270 | delete arg8; | |
4271 | } | |
4272 | return NULL; | |
4273 | } | |
4274 | ||
4275 | ||
4276 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4277 | PyObject *obj; | |
4278 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4279 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4280 | Py_INCREF(obj); | |
4281 | return Py_BuildValue((char *)""); | |
4282 | } | |
4283 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4284 | PyObject *resultobj; | |
4285 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4286 | int arg2 ; |
d14a1e28 RD |
4287 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4288 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4289 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4290 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4291 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4292 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4293 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4294 | wxStaticLine *result; | |
4295 | wxPoint temp3 ; | |
4296 | wxSize temp4 ; | |
423f194a | 4297 | bool temp6 = False ; |
d14a1e28 | 4298 | PyObject * obj0 = 0 ; |
8edf1c75 | 4299 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4300 | PyObject * obj2 = 0 ; |
4301 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4302 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4303 | PyObject * obj5 = 0 ; |
4304 | char *kwnames[] = { | |
4305 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4306 | }; | |
4307 | ||
8edf1c75 | 4308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
4309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4311 | arg2 = (int) SWIG_AsInt(obj1); | |
4312 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4313 | if (obj2) { |
4314 | { | |
4315 | arg3 = &temp3; | |
4316 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4317 | } | |
4318 | } | |
4319 | if (obj3) { | |
4320 | { | |
4321 | arg4 = &temp4; | |
4322 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4323 | } | |
4324 | } | |
8edf1c75 | 4325 | if (obj4) { |
2f4c0a16 RD |
4326 | arg5 = (long) SWIG_AsLong(obj4); |
4327 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4328 | } |
d14a1e28 RD |
4329 | if (obj5) { |
4330 | { | |
4331 | arg6 = wxString_in_helper(obj5); | |
4332 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4333 | temp6 = True; |
d14a1e28 RD |
4334 | } |
4335 | } | |
4336 | { | |
4337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4338 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4339 | ||
4340 | wxPyEndAllowThreads(__tstate); | |
4341 | if (PyErr_Occurred()) SWIG_fail; | |
4342 | } | |
2f4c0a16 | 4343 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4344 | { |
4345 | if (temp6) | |
4346 | delete arg6; | |
4347 | } | |
4348 | return resultobj; | |
4349 | fail: | |
4350 | { | |
4351 | if (temp6) | |
4352 | delete arg6; | |
4353 | } | |
4354 | return NULL; | |
4355 | } | |
4356 | ||
4357 | ||
4358 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4359 | PyObject *resultobj; | |
4360 | wxStaticLine *result; | |
4361 | char *kwnames[] = { | |
4362 | NULL | |
4363 | }; | |
4364 | ||
4365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4366 | { | |
4367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4368 | result = (wxStaticLine *)new wxStaticLine(); | |
4369 | ||
4370 | wxPyEndAllowThreads(__tstate); | |
4371 | if (PyErr_Occurred()) SWIG_fail; | |
4372 | } | |
2f4c0a16 | 4373 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4374 | return resultobj; |
4375 | fail: | |
4376 | return NULL; | |
4377 | } | |
4378 | ||
4379 | ||
4380 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4381 | PyObject *resultobj; | |
4382 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4383 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4384 | int arg3 ; |
d14a1e28 RD |
4385 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4386 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4387 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4388 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4389 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4390 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4391 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4392 | bool result; | |
4393 | wxPoint temp4 ; | |
4394 | wxSize temp5 ; | |
423f194a | 4395 | bool temp7 = False ; |
d14a1e28 RD |
4396 | PyObject * obj0 = 0 ; |
4397 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4398 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4399 | PyObject * obj3 = 0 ; |
4400 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4401 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4402 | PyObject * obj6 = 0 ; |
4403 | char *kwnames[] = { | |
4404 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4405 | }; | |
4406 | ||
8edf1c75 | 4407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4412 | arg3 = (int) SWIG_AsInt(obj2); | |
4413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4414 | if (obj3) { |
4415 | { | |
4416 | arg4 = &temp4; | |
4417 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4418 | } | |
4419 | } | |
4420 | if (obj4) { | |
4421 | { | |
4422 | arg5 = &temp5; | |
4423 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4424 | } | |
4425 | } | |
8edf1c75 | 4426 | if (obj5) { |
2f4c0a16 RD |
4427 | arg6 = (long) SWIG_AsLong(obj5); |
4428 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4429 | } |
d14a1e28 RD |
4430 | if (obj6) { |
4431 | { | |
4432 | arg7 = wxString_in_helper(obj6); | |
4433 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4434 | temp7 = True; |
d14a1e28 RD |
4435 | } |
4436 | } | |
4437 | { | |
4438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4439 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4440 | ||
4441 | wxPyEndAllowThreads(__tstate); | |
4442 | if (PyErr_Occurred()) SWIG_fail; | |
4443 | } | |
4f89f6a3 RD |
4444 | { |
4445 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4446 | } | |
d14a1e28 RD |
4447 | { |
4448 | if (temp7) | |
4449 | delete arg7; | |
4450 | } | |
4451 | return resultobj; | |
4452 | fail: | |
4453 | { | |
4454 | if (temp7) | |
4455 | delete arg7; | |
4456 | } | |
4457 | return NULL; | |
4458 | } | |
4459 | ||
4460 | ||
4461 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4462 | PyObject *resultobj; | |
4463 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4464 | bool result; | |
4465 | PyObject * obj0 = 0 ; | |
4466 | char *kwnames[] = { | |
4467 | (char *) "self", NULL | |
4468 | }; | |
4469 | ||
4470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4473 | { |
4474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4475 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4476 | ||
4477 | wxPyEndAllowThreads(__tstate); | |
4478 | if (PyErr_Occurred()) SWIG_fail; | |
4479 | } | |
4f89f6a3 RD |
4480 | { |
4481 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4482 | } | |
d14a1e28 RD |
4483 | return resultobj; |
4484 | fail: | |
4485 | return NULL; | |
4486 | } | |
4487 | ||
4488 | ||
4489 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4490 | PyObject *resultobj; | |
4491 | int result; | |
4492 | char *kwnames[] = { | |
4493 | NULL | |
4494 | }; | |
4495 | ||
4496 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4497 | { | |
4498 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4499 | result = (int)wxStaticLine::GetDefaultSize(); | |
4500 | ||
4501 | wxPyEndAllowThreads(__tstate); | |
4502 | if (PyErr_Occurred()) SWIG_fail; | |
4503 | } | |
2f4c0a16 | 4504 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4505 | return resultobj; |
4506 | fail: | |
4507 | return NULL; | |
4508 | } | |
4509 | ||
4510 | ||
4511 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4512 | PyObject *obj; | |
4513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4514 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4515 | Py_INCREF(obj); | |
4516 | return Py_BuildValue((char *)""); | |
4517 | } | |
4518 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4519 | PyObject *resultobj; | |
4520 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4521 | int arg2 ; |
d14a1e28 RD |
4522 | wxString *arg3 = 0 ; |
4523 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4524 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4525 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4526 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4527 | long arg6 = (long) 0 ; | |
4528 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4529 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4530 | wxStaticText *result; | |
423f194a | 4531 | bool temp3 = False ; |
d14a1e28 RD |
4532 | wxPoint temp4 ; |
4533 | wxSize temp5 ; | |
423f194a | 4534 | bool temp7 = False ; |
d14a1e28 | 4535 | PyObject * obj0 = 0 ; |
8edf1c75 | 4536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4537 | PyObject * obj2 = 0 ; |
4538 | PyObject * obj3 = 0 ; | |
4539 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4540 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4541 | PyObject * obj6 = 0 ; |
4542 | char *kwnames[] = { | |
4543 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4544 | }; | |
4545 | ||
8edf1c75 | 4546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4549 | arg2 = (int) SWIG_AsInt(obj1); | |
4550 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4551 | { |
4552 | arg3 = wxString_in_helper(obj2); | |
4553 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4554 | temp3 = True; |
d14a1e28 RD |
4555 | } |
4556 | if (obj3) { | |
4557 | { | |
4558 | arg4 = &temp4; | |
4559 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4560 | } | |
4561 | } | |
4562 | if (obj4) { | |
4563 | { | |
4564 | arg5 = &temp5; | |
4565 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4566 | } | |
4567 | } | |
8edf1c75 | 4568 | if (obj5) { |
2f4c0a16 RD |
4569 | arg6 = (long) SWIG_AsLong(obj5); |
4570 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4571 | } |
d14a1e28 RD |
4572 | if (obj6) { |
4573 | { | |
4574 | arg7 = wxString_in_helper(obj6); | |
4575 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4576 | temp7 = True; |
d14a1e28 RD |
4577 | } |
4578 | } | |
4579 | { | |
4580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4581 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4582 | ||
4583 | wxPyEndAllowThreads(__tstate); | |
4584 | if (PyErr_Occurred()) SWIG_fail; | |
4585 | } | |
2f4c0a16 | 4586 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4587 | { |
4588 | if (temp3) | |
4589 | delete arg3; | |
4590 | } | |
4591 | { | |
4592 | if (temp7) | |
4593 | delete arg7; | |
4594 | } | |
4595 | return resultobj; | |
4596 | fail: | |
4597 | { | |
4598 | if (temp3) | |
4599 | delete arg3; | |
4600 | } | |
4601 | { | |
4602 | if (temp7) | |
4603 | delete arg7; | |
4604 | } | |
4605 | return NULL; | |
4606 | } | |
4607 | ||
4608 | ||
4609 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4610 | PyObject *resultobj; | |
4611 | wxStaticText *result; | |
4612 | char *kwnames[] = { | |
4613 | NULL | |
4614 | }; | |
4615 | ||
4616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4617 | { | |
4618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4619 | result = (wxStaticText *)new wxStaticText(); | |
4620 | ||
4621 | wxPyEndAllowThreads(__tstate); | |
4622 | if (PyErr_Occurred()) SWIG_fail; | |
4623 | } | |
2f4c0a16 | 4624 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4625 | return resultobj; |
4626 | fail: | |
4627 | return NULL; | |
4628 | } | |
4629 | ||
4630 | ||
4631 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4632 | PyObject *resultobj; | |
4633 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4634 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4635 | int arg3 ; |
d14a1e28 RD |
4636 | wxString *arg4 = 0 ; |
4637 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4638 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4639 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4640 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4641 | long arg7 = (long) 0 ; | |
4642 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4643 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4644 | bool result; | |
423f194a | 4645 | bool temp4 = False ; |
d14a1e28 RD |
4646 | wxPoint temp5 ; |
4647 | wxSize temp6 ; | |
423f194a | 4648 | bool temp8 = False ; |
d14a1e28 RD |
4649 | PyObject * obj0 = 0 ; |
4650 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4651 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4652 | PyObject * obj3 = 0 ; |
4653 | PyObject * obj4 = 0 ; | |
4654 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4655 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4656 | PyObject * obj7 = 0 ; |
4657 | char *kwnames[] = { | |
4658 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4659 | }; | |
4660 | ||
8edf1c75 | 4661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
4663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4664 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4666 | arg3 = (int) SWIG_AsInt(obj2); | |
4667 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4668 | { |
4669 | arg4 = wxString_in_helper(obj3); | |
4670 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4671 | temp4 = True; |
d14a1e28 RD |
4672 | } |
4673 | if (obj4) { | |
4674 | { | |
4675 | arg5 = &temp5; | |
4676 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4677 | } | |
4678 | } | |
4679 | if (obj5) { | |
4680 | { | |
4681 | arg6 = &temp6; | |
4682 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4683 | } | |
4684 | } | |
8edf1c75 | 4685 | if (obj6) { |
2f4c0a16 RD |
4686 | arg7 = (long) SWIG_AsLong(obj6); |
4687 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4688 | } |
d14a1e28 RD |
4689 | if (obj7) { |
4690 | { | |
4691 | arg8 = wxString_in_helper(obj7); | |
4692 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4693 | temp8 = True; |
d14a1e28 RD |
4694 | } |
4695 | } | |
4696 | { | |
4697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4698 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4699 | ||
4700 | wxPyEndAllowThreads(__tstate); | |
4701 | if (PyErr_Occurred()) SWIG_fail; | |
4702 | } | |
4f89f6a3 RD |
4703 | { |
4704 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4705 | } | |
d14a1e28 RD |
4706 | { |
4707 | if (temp4) | |
4708 | delete arg4; | |
4709 | } | |
4710 | { | |
4711 | if (temp8) | |
4712 | delete arg8; | |
4713 | } | |
4714 | return resultobj; | |
4715 | fail: | |
4716 | { | |
4717 | if (temp4) | |
4718 | delete arg4; | |
4719 | } | |
4720 | { | |
4721 | if (temp8) | |
4722 | delete arg8; | |
4723 | } | |
4724 | return NULL; | |
4725 | } | |
4726 | ||
4727 | ||
4728 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4729 | PyObject *obj; | |
4730 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4731 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4732 | Py_INCREF(obj); | |
4733 | return Py_BuildValue((char *)""); | |
4734 | } | |
4735 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4736 | PyObject *resultobj; | |
4737 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4738 | int arg2 ; |
d14a1e28 RD |
4739 | wxBitmap *arg3 = 0 ; |
4740 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4741 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4742 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4743 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4744 | long arg6 = (long) 0 ; | |
4745 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4746 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4747 | wxStaticBitmap *result; | |
4748 | wxPoint temp4 ; | |
4749 | wxSize temp5 ; | |
423f194a | 4750 | bool temp7 = False ; |
d14a1e28 | 4751 | PyObject * obj0 = 0 ; |
8edf1c75 | 4752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4753 | PyObject * obj2 = 0 ; |
4754 | PyObject * obj3 = 0 ; | |
4755 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4756 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4757 | PyObject * obj6 = 0 ; |
4758 | char *kwnames[] = { | |
4759 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4760 | }; | |
4761 | ||
8edf1c75 | 4762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4765 | arg2 = (int) SWIG_AsInt(obj1); | |
4766 | if (PyErr_Occurred()) SWIG_fail; | |
4767 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
4768 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4769 | SWIG_fail; | |
d14a1e28 | 4770 | if (arg3 == NULL) { |
2f4c0a16 RD |
4771 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4772 | SWIG_fail; | |
d14a1e28 RD |
4773 | } |
4774 | if (obj3) { | |
4775 | { | |
4776 | arg4 = &temp4; | |
4777 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4778 | } | |
4779 | } | |
4780 | if (obj4) { | |
4781 | { | |
4782 | arg5 = &temp5; | |
4783 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4784 | } | |
4785 | } | |
8edf1c75 | 4786 | if (obj5) { |
2f4c0a16 RD |
4787 | arg6 = (long) SWIG_AsLong(obj5); |
4788 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4789 | } |
d14a1e28 RD |
4790 | if (obj6) { |
4791 | { | |
4792 | arg7 = wxString_in_helper(obj6); | |
4793 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4794 | temp7 = True; |
d14a1e28 RD |
4795 | } |
4796 | } | |
4797 | { | |
4798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4799 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4800 | ||
4801 | wxPyEndAllowThreads(__tstate); | |
4802 | if (PyErr_Occurred()) SWIG_fail; | |
4803 | } | |
2f4c0a16 | 4804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4805 | { |
4806 | if (temp7) | |
4807 | delete arg7; | |
4808 | } | |
4809 | return resultobj; | |
4810 | fail: | |
4811 | { | |
4812 | if (temp7) | |
4813 | delete arg7; | |
4814 | } | |
4815 | return NULL; | |
4816 | } | |
4817 | ||
4818 | ||
4819 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4820 | PyObject *resultobj; | |
4821 | wxStaticBitmap *result; | |
4822 | char *kwnames[] = { | |
4823 | NULL | |
4824 | }; | |
4825 | ||
4826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4827 | { | |
4828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4829 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4830 | ||
4831 | wxPyEndAllowThreads(__tstate); | |
4832 | if (PyErr_Occurred()) SWIG_fail; | |
4833 | } | |
2f4c0a16 | 4834 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4835 | return resultobj; |
4836 | fail: | |
4837 | return NULL; | |
4838 | } | |
4839 | ||
4840 | ||
4841 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4842 | PyObject *resultobj; | |
4843 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4844 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4845 | int arg3 ; |
d14a1e28 RD |
4846 | wxBitmap *arg4 = 0 ; |
4847 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4848 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4849 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4850 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4851 | long arg7 = (long) 0 ; | |
4852 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4853 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4854 | bool result; | |
4855 | wxPoint temp5 ; | |
4856 | wxSize temp6 ; | |
423f194a | 4857 | bool temp8 = False ; |
d14a1e28 RD |
4858 | PyObject * obj0 = 0 ; |
4859 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4860 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4861 | PyObject * obj3 = 0 ; |
4862 | PyObject * obj4 = 0 ; | |
4863 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4864 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4865 | PyObject * obj7 = 0 ; |
4866 | char *kwnames[] = { | |
4867 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4868 | }; | |
4869 | ||
8edf1c75 | 4870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4873 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4875 | arg3 = (int) SWIG_AsInt(obj2); | |
4876 | if (PyErr_Occurred()) SWIG_fail; | |
4877 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
4878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4879 | SWIG_fail; | |
d14a1e28 | 4880 | if (arg4 == NULL) { |
2f4c0a16 RD |
4881 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4882 | SWIG_fail; | |
d14a1e28 RD |
4883 | } |
4884 | if (obj4) { | |
4885 | { | |
4886 | arg5 = &temp5; | |
4887 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4888 | } | |
4889 | } | |
4890 | if (obj5) { | |
4891 | { | |
4892 | arg6 = &temp6; | |
4893 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4894 | } | |
4895 | } | |
8edf1c75 | 4896 | if (obj6) { |
2f4c0a16 RD |
4897 | arg7 = (long) SWIG_AsLong(obj6); |
4898 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4899 | } |
d14a1e28 RD |
4900 | if (obj7) { |
4901 | { | |
4902 | arg8 = wxString_in_helper(obj7); | |
4903 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4904 | temp8 = True; |
d14a1e28 RD |
4905 | } |
4906 | } | |
4907 | { | |
4908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4909 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4910 | ||
4911 | wxPyEndAllowThreads(__tstate); | |
4912 | if (PyErr_Occurred()) SWIG_fail; | |
4913 | } | |
4f89f6a3 RD |
4914 | { |
4915 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4916 | } | |
d14a1e28 RD |
4917 | { |
4918 | if (temp8) | |
4919 | delete arg8; | |
4920 | } | |
4921 | return resultobj; | |
4922 | fail: | |
4923 | { | |
4924 | if (temp8) | |
4925 | delete arg8; | |
4926 | } | |
4927 | return NULL; | |
4928 | } | |
4929 | ||
4930 | ||
4931 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4932 | PyObject *resultobj; | |
4933 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4934 | wxBitmap result; | |
4935 | PyObject * obj0 = 0 ; | |
4936 | char *kwnames[] = { | |
4937 | (char *) "self", NULL | |
4938 | }; | |
4939 | ||
4940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4943 | { |
4944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4945 | result = (arg1)->GetBitmap(); | |
4946 | ||
4947 | wxPyEndAllowThreads(__tstate); | |
4948 | if (PyErr_Occurred()) SWIG_fail; | |
4949 | } | |
4950 | { | |
4951 | wxBitmap * resultptr; | |
4952 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 4953 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4954 | } |
4955 | return resultobj; | |
4956 | fail: | |
4957 | return NULL; | |
4958 | } | |
4959 | ||
4960 | ||
4961 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4962 | PyObject *resultobj; | |
4963 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4964 | wxBitmap *arg2 = 0 ; | |
4965 | PyObject * obj0 = 0 ; | |
4966 | PyObject * obj1 = 0 ; | |
4967 | char *kwnames[] = { | |
4968 | (char *) "self",(char *) "bitmap", NULL | |
4969 | }; | |
4970 | ||
4971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4974 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4975 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4976 | SWIG_fail; | |
d14a1e28 | 4977 | if (arg2 == NULL) { |
2f4c0a16 RD |
4978 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4979 | SWIG_fail; | |
d14a1e28 RD |
4980 | } |
4981 | { | |
4982 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4983 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4984 | ||
4985 | wxPyEndAllowThreads(__tstate); | |
4986 | if (PyErr_Occurred()) SWIG_fail; | |
4987 | } | |
4988 | Py_INCREF(Py_None); resultobj = Py_None; | |
4989 | return resultobj; | |
4990 | fail: | |
4991 | return NULL; | |
4992 | } | |
4993 | ||
4994 | ||
4995 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4996 | PyObject *resultobj; | |
4997 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4998 | wxIcon *arg2 = 0 ; | |
4999 | PyObject * obj0 = 0 ; | |
5000 | PyObject * obj1 = 0 ; | |
5001 | char *kwnames[] = { | |
5002 | (char *) "self",(char *) "icon", NULL | |
5003 | }; | |
5004 | ||
5005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5008 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5009 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5010 | SWIG_fail; | |
d14a1e28 | 5011 | if (arg2 == NULL) { |
2f4c0a16 RD |
5012 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5013 | SWIG_fail; | |
d14a1e28 RD |
5014 | } |
5015 | { | |
5016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5017 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5018 | ||
5019 | wxPyEndAllowThreads(__tstate); | |
5020 | if (PyErr_Occurred()) SWIG_fail; | |
5021 | } | |
5022 | Py_INCREF(Py_None); resultobj = Py_None; | |
5023 | return resultobj; | |
5024 | fail: | |
5025 | return NULL; | |
5026 | } | |
5027 | ||
5028 | ||
5029 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
5030 | PyObject *obj; | |
5031 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5032 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5033 | Py_INCREF(obj); | |
5034 | return Py_BuildValue((char *)""); | |
5035 | } | |
2f4c0a16 | 5036 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
5037 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5038 | return 1; | |
5039 | } | |
5040 | ||
5041 | ||
5042 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5043 | PyObject *pyobj; | |
5044 | ||
5045 | { | |
5046 | #if wxUSE_UNICODE | |
5047 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5048 | #else | |
5049 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5050 | #endif | |
5051 | } | |
5052 | return pyobj; | |
5053 | } | |
5054 | ||
5055 | ||
d14a1e28 RD |
5056 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5057 | PyObject *resultobj; | |
5058 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5059 | int arg2 ; |
d14a1e28 RD |
5060 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5061 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5062 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5063 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5064 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5065 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5066 | long arg6 = (long) 0 ; | |
5067 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5068 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5069 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5070 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5071 | wxListBox *result; |
5072 | wxPoint temp3 ; | |
5073 | wxSize temp4 ; | |
db914595 | 5074 | bool temp5 = False ; |
423f194a | 5075 | bool temp8 = False ; |
d14a1e28 | 5076 | PyObject * obj0 = 0 ; |
8edf1c75 | 5077 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5078 | PyObject * obj2 = 0 ; |
5079 | PyObject * obj3 = 0 ; | |
5080 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5081 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5082 | PyObject * obj6 = 0 ; |
5083 | PyObject * obj7 = 0 ; | |
5084 | char *kwnames[] = { | |
5085 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5086 | }; | |
5087 | ||
8edf1c75 | 5088 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
5089 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5090 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5091 | arg2 = (int) SWIG_AsInt(obj1); | |
5092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5093 | if (obj2) { |
5094 | { | |
5095 | arg3 = &temp3; | |
5096 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5097 | } | |
5098 | } | |
5099 | if (obj3) { | |
5100 | { | |
5101 | arg4 = &temp4; | |
5102 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5103 | } | |
5104 | } | |
5105 | if (obj4) { | |
5106 | { | |
4e760a36 RD |
5107 | if (! PySequence_Check(obj4)) { |
5108 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5109 | SWIG_fail; | |
5110 | } | |
5111 | arg5 = new wxArrayString; | |
db914595 | 5112 | temp5 = True; |
4e760a36 RD |
5113 | int i, len=PySequence_Length(obj4); |
5114 | for (i=0; i<len; i++) { | |
5115 | PyObject* item = PySequence_GetItem(obj4, i); | |
5116 | #if wxUSE_UNICODE | |
5117 | PyObject* str = PyObject_Unicode(item); | |
5118 | #else | |
5119 | PyObject* str = PyObject_Str(item); | |
5120 | #endif | |
5121 | arg5->Add(Py2wxString(str)); | |
5122 | Py_DECREF(item); | |
5123 | Py_DECREF(str); | |
5124 | } | |
d14a1e28 RD |
5125 | } |
5126 | } | |
8edf1c75 | 5127 | if (obj5) { |
2f4c0a16 RD |
5128 | arg6 = (long) SWIG_AsLong(obj5); |
5129 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5130 | } |
d14a1e28 | 5131 | if (obj6) { |
2f4c0a16 RD |
5132 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5133 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5134 | SWIG_fail; | |
4e760a36 | 5135 | if (arg7 == NULL) { |
2f4c0a16 RD |
5136 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5137 | SWIG_fail; | |
d14a1e28 RD |
5138 | } |
5139 | } | |
5140 | if (obj7) { | |
5141 | { | |
4e760a36 RD |
5142 | arg8 = wxString_in_helper(obj7); |
5143 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5144 | temp8 = True; |
d14a1e28 RD |
5145 | } |
5146 | } | |
5147 | { | |
5148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5149 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5150 | |
5151 | wxPyEndAllowThreads(__tstate); | |
5152 | if (PyErr_Occurred()) SWIG_fail; | |
5153 | } | |
2f4c0a16 | 5154 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5155 | { |
db914595 | 5156 | if (temp5) delete arg5; |
d14a1e28 RD |
5157 | } |
5158 | { | |
5159 | if (temp8) | |
4e760a36 | 5160 | delete arg8; |
d14a1e28 RD |
5161 | } |
5162 | return resultobj; | |
5163 | fail: | |
5164 | { | |
db914595 | 5165 | if (temp5) delete arg5; |
d14a1e28 RD |
5166 | } |
5167 | { | |
5168 | if (temp8) | |
4e760a36 | 5169 | delete arg8; |
d14a1e28 RD |
5170 | } |
5171 | return NULL; | |
5172 | } | |
5173 | ||
5174 | ||
5175 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5176 | PyObject *resultobj; | |
5177 | wxListBox *result; | |
5178 | char *kwnames[] = { | |
5179 | NULL | |
5180 | }; | |
5181 | ||
5182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5183 | { | |
5184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5185 | result = (wxListBox *)new wxListBox(); | |
5186 | ||
5187 | wxPyEndAllowThreads(__tstate); | |
5188 | if (PyErr_Occurred()) SWIG_fail; | |
5189 | } | |
2f4c0a16 | 5190 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5191 | return resultobj; |
5192 | fail: | |
5193 | return NULL; | |
5194 | } | |
5195 | ||
5196 | ||
5197 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5198 | PyObject *resultobj; | |
5199 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5200 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5201 | int arg3 ; |
d14a1e28 RD |
5202 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5203 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5204 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5205 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
5206 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5207 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5208 | long arg7 = (long) 0 ; | |
5209 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5210 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5211 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5212 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5213 | bool result; |
5214 | wxPoint temp4 ; | |
5215 | wxSize temp5 ; | |
db914595 | 5216 | bool temp6 = False ; |
423f194a | 5217 | bool temp9 = False ; |
d14a1e28 RD |
5218 | PyObject * obj0 = 0 ; |
5219 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5220 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5221 | PyObject * obj3 = 0 ; |
5222 | PyObject * obj4 = 0 ; | |
5223 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5224 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5225 | PyObject * obj7 = 0 ; |
5226 | PyObject * obj8 = 0 ; | |
5227 | char *kwnames[] = { | |
5228 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5229 | }; | |
5230 | ||
8edf1c75 | 5231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
5232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5234 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5236 | arg3 = (int) SWIG_AsInt(obj2); | |
5237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5238 | if (obj3) { |
5239 | { | |
5240 | arg4 = &temp4; | |
5241 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5242 | } | |
5243 | } | |
5244 | if (obj4) { | |
5245 | { | |
5246 | arg5 = &temp5; | |
5247 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5248 | } | |
5249 | } | |
5250 | if (obj5) { | |
5251 | { | |
4e760a36 RD |
5252 | if (! PySequence_Check(obj5)) { |
5253 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5254 | SWIG_fail; | |
5255 | } | |
5256 | arg6 = new wxArrayString; | |
db914595 | 5257 | temp6 = True; |
4e760a36 RD |
5258 | int i, len=PySequence_Length(obj5); |
5259 | for (i=0; i<len; i++) { | |
5260 | PyObject* item = PySequence_GetItem(obj5, i); | |
5261 | #if wxUSE_UNICODE | |
5262 | PyObject* str = PyObject_Unicode(item); | |
5263 | #else | |
5264 | PyObject* str = PyObject_Str(item); | |
5265 | #endif | |
5266 | arg6->Add(Py2wxString(str)); | |
5267 | Py_DECREF(item); | |
5268 | Py_DECREF(str); | |
5269 | } | |
d14a1e28 RD |
5270 | } |
5271 | } | |
8edf1c75 | 5272 | if (obj6) { |
2f4c0a16 RD |
5273 | arg7 = (long) SWIG_AsLong(obj6); |
5274 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5275 | } |
d14a1e28 | 5276 | if (obj7) { |
2f4c0a16 RD |
5277 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5278 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5279 | SWIG_fail; | |
4e760a36 | 5280 | if (arg8 == NULL) { |
2f4c0a16 RD |
5281 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5282 | SWIG_fail; | |
d14a1e28 RD |
5283 | } |
5284 | } | |
5285 | if (obj8) { | |
5286 | { | |
4e760a36 RD |
5287 | arg9 = wxString_in_helper(obj8); |
5288 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5289 | temp9 = True; |
d14a1e28 RD |
5290 | } |
5291 | } | |
5292 | { | |
5293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5294 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5295 | |
5296 | wxPyEndAllowThreads(__tstate); | |
5297 | if (PyErr_Occurred()) SWIG_fail; | |
5298 | } | |
4f89f6a3 RD |
5299 | { |
5300 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5301 | } | |
d14a1e28 | 5302 | { |
db914595 | 5303 | if (temp6) delete arg6; |
d14a1e28 RD |
5304 | } |
5305 | { | |
5306 | if (temp9) | |
4e760a36 | 5307 | delete arg9; |
d14a1e28 RD |
5308 | } |
5309 | return resultobj; | |
5310 | fail: | |
5311 | { | |
db914595 | 5312 | if (temp6) delete arg6; |
d14a1e28 RD |
5313 | } |
5314 | { | |
5315 | if (temp9) | |
4e760a36 | 5316 | delete arg9; |
d14a1e28 RD |
5317 | } |
5318 | return NULL; | |
5319 | } | |
5320 | ||
5321 | ||
5322 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5323 | PyObject *resultobj; | |
5324 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5325 | wxString *arg2 = 0 ; | |
5326 | int arg3 ; | |
5327 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5328 | bool temp2 = False ; |
d14a1e28 RD |
5329 | PyObject * obj0 = 0 ; |
5330 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5331 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5332 | PyObject * obj3 = 0 ; |
5333 | char *kwnames[] = { | |
5334 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5335 | }; | |
5336 | ||
8edf1c75 | 5337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5340 | { |
5341 | arg2 = wxString_in_helper(obj1); | |
5342 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5343 | temp2 = True; |
d14a1e28 | 5344 | } |
2f4c0a16 RD |
5345 | arg3 = (int) SWIG_AsInt(obj2); |
5346 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5347 | if (obj3) { |
5348 | arg4 = obj3; | |
5349 | } | |
5350 | { | |
5351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5352 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5353 | ||
5354 | wxPyEndAllowThreads(__tstate); | |
5355 | if (PyErr_Occurred()) SWIG_fail; | |
5356 | } | |
5357 | Py_INCREF(Py_None); resultobj = Py_None; | |
5358 | { | |
5359 | if (temp2) | |
5360 | delete arg2; | |
5361 | } | |
5362 | return resultobj; | |
5363 | fail: | |
5364 | { | |
5365 | if (temp2) | |
5366 | delete arg2; | |
5367 | } | |
5368 | return NULL; | |
5369 | } | |
5370 | ||
5371 | ||
5372 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5373 | PyObject *resultobj; | |
5374 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5375 | wxArrayString *arg2 = 0 ; | |
5376 | int arg3 ; | |
db914595 | 5377 | bool temp2 = False ; |
d14a1e28 RD |
5378 | PyObject * obj0 = 0 ; |
5379 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5380 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5381 | char *kwnames[] = { |
5382 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5383 | }; | |
5384 | ||
8edf1c75 | 5385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5388 | { |
5389 | if (! PySequence_Check(obj1)) { | |
5390 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5391 | SWIG_fail; | |
5392 | } | |
5393 | arg2 = new wxArrayString; | |
db914595 | 5394 | temp2 = True; |
d14a1e28 RD |
5395 | int i, len=PySequence_Length(obj1); |
5396 | for (i=0; i<len; i++) { | |
5397 | PyObject* item = PySequence_GetItem(obj1, i); | |
5398 | #if wxUSE_UNICODE | |
5399 | PyObject* str = PyObject_Unicode(item); | |
5400 | #else | |
5401 | PyObject* str = PyObject_Str(item); | |
5402 | #endif | |
5403 | arg2->Add(Py2wxString(str)); | |
5404 | Py_DECREF(item); | |
5405 | Py_DECREF(str); | |
5406 | } | |
5407 | } | |
2f4c0a16 RD |
5408 | arg3 = (int) SWIG_AsInt(obj2); |
5409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5410 | { |
5411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5412 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5413 | ||
5414 | wxPyEndAllowThreads(__tstate); | |
5415 | if (PyErr_Occurred()) SWIG_fail; | |
5416 | } | |
5417 | Py_INCREF(Py_None); resultobj = Py_None; | |
5418 | { | |
db914595 | 5419 | if (temp2) delete arg2; |
d14a1e28 RD |
5420 | } |
5421 | return resultobj; | |
5422 | fail: | |
5423 | { | |
db914595 | 5424 | if (temp2) delete arg2; |
d14a1e28 RD |
5425 | } |
5426 | return NULL; | |
5427 | } | |
5428 | ||
5429 | ||
5430 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5431 | PyObject *resultobj; | |
5432 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5433 | wxArrayString *arg2 = 0 ; | |
db914595 | 5434 | bool temp2 = False ; |
d14a1e28 RD |
5435 | PyObject * obj0 = 0 ; |
5436 | PyObject * obj1 = 0 ; | |
5437 | char *kwnames[] = { | |
5438 | (char *) "self",(char *) "items", NULL | |
5439 | }; | |
5440 | ||
5441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5444 | { |
5445 | if (! PySequence_Check(obj1)) { | |
5446 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5447 | SWIG_fail; | |
5448 | } | |
5449 | arg2 = new wxArrayString; | |
db914595 | 5450 | temp2 = True; |
d14a1e28 RD |
5451 | int i, len=PySequence_Length(obj1); |
5452 | for (i=0; i<len; i++) { | |
5453 | PyObject* item = PySequence_GetItem(obj1, i); | |
5454 | #if wxUSE_UNICODE | |
5455 | PyObject* str = PyObject_Unicode(item); | |
5456 | #else | |
5457 | PyObject* str = PyObject_Str(item); | |
5458 | #endif | |
5459 | arg2->Add(Py2wxString(str)); | |
5460 | Py_DECREF(item); | |
5461 | Py_DECREF(str); | |
5462 | } | |
5463 | } | |
5464 | { | |
5465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5466 | (arg1)->Set((wxArrayString const &)*arg2); | |
5467 | ||
5468 | wxPyEndAllowThreads(__tstate); | |
5469 | if (PyErr_Occurred()) SWIG_fail; | |
5470 | } | |
5471 | Py_INCREF(Py_None); resultobj = Py_None; | |
5472 | { | |
db914595 | 5473 | if (temp2) delete arg2; |
d14a1e28 RD |
5474 | } |
5475 | return resultobj; | |
5476 | fail: | |
5477 | { | |
db914595 | 5478 | if (temp2) delete arg2; |
d14a1e28 RD |
5479 | } |
5480 | return NULL; | |
5481 | } | |
5482 | ||
5483 | ||
5484 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5485 | PyObject *resultobj; | |
5486 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5487 | int arg2 ; | |
5488 | bool result; | |
5489 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5490 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5491 | char *kwnames[] = { |
5492 | (char *) "self",(char *) "n", NULL | |
5493 | }; | |
5494 | ||
8edf1c75 | 5495 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5496 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5497 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5498 | arg2 = (int) SWIG_AsInt(obj1); | |
5499 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5500 | { |
5501 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5502 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5503 | ||
5504 | wxPyEndAllowThreads(__tstate); | |
5505 | if (PyErr_Occurred()) SWIG_fail; | |
5506 | } | |
4f89f6a3 RD |
5507 | { |
5508 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5509 | } | |
d14a1e28 RD |
5510 | return resultobj; |
5511 | fail: | |
5512 | return NULL; | |
5513 | } | |
5514 | ||
5515 | ||
5516 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5517 | PyObject *resultobj; | |
5518 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5519 | int arg2 ; | |
423f194a | 5520 | bool arg3 = (bool) True ; |
d14a1e28 | 5521 | PyObject * obj0 = 0 ; |
8edf1c75 | 5522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5523 | PyObject * obj2 = 0 ; |
5524 | char *kwnames[] = { | |
5525 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5526 | }; | |
5527 | ||
8edf1c75 | 5528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5531 | arg2 = (int) SWIG_AsInt(obj1); | |
5532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 5533 | if (obj2) { |
2f4c0a16 RD |
5534 | arg3 = (bool) SWIG_AsBool(obj2); |
5535 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5536 | } |
5537 | { | |
5538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5539 | (arg1)->SetSelection(arg2,arg3); | |
5540 | ||
5541 | wxPyEndAllowThreads(__tstate); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
5543 | } | |
5544 | Py_INCREF(Py_None); resultobj = Py_None; | |
5545 | return resultobj; | |
5546 | fail: | |
5547 | return NULL; | |
5548 | } | |
5549 | ||
5550 | ||
5551 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5552 | PyObject *resultobj; | |
5553 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5554 | int arg2 ; | |
5555 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5556 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5557 | char *kwnames[] = { |
5558 | (char *) "self",(char *) "n", NULL | |
5559 | }; | |
5560 | ||
8edf1c75 | 5561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5564 | arg2 = (int) SWIG_AsInt(obj1); | |
5565 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5566 | { |
5567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5568 | (arg1)->Select(arg2); | |
5569 | ||
5570 | wxPyEndAllowThreads(__tstate); | |
5571 | if (PyErr_Occurred()) SWIG_fail; | |
5572 | } | |
5573 | Py_INCREF(Py_None); resultobj = Py_None; | |
5574 | return resultobj; | |
5575 | fail: | |
5576 | return NULL; | |
5577 | } | |
5578 | ||
5579 | ||
5580 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5581 | PyObject *resultobj; | |
5582 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5583 | int arg2 ; | |
5584 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5585 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5586 | char *kwnames[] = { |
5587 | (char *) "self",(char *) "n", NULL | |
5588 | }; | |
5589 | ||
8edf1c75 | 5590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5593 | arg2 = (int) SWIG_AsInt(obj1); | |
5594 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5595 | { |
5596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5597 | (arg1)->Deselect(arg2); | |
5598 | ||
5599 | wxPyEndAllowThreads(__tstate); | |
5600 | if (PyErr_Occurred()) SWIG_fail; | |
5601 | } | |
5602 | Py_INCREF(Py_None); resultobj = Py_None; | |
5603 | return resultobj; | |
5604 | fail: | |
5605 | return NULL; | |
5606 | } | |
5607 | ||
5608 | ||
5609 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5610 | PyObject *resultobj; | |
5611 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5612 | int arg2 = (int) -1 ; | |
5613 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5614 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5615 | char *kwnames[] = { |
5616 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5617 | }; | |
5618 | ||
8edf1c75 | 5619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5622 | if (obj1) { |
2f4c0a16 RD |
5623 | arg2 = (int) SWIG_AsInt(obj1); |
5624 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5625 | } |
d14a1e28 RD |
5626 | { |
5627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5628 | (arg1)->DeselectAll(arg2); | |
5629 | ||
5630 | wxPyEndAllowThreads(__tstate); | |
5631 | if (PyErr_Occurred()) SWIG_fail; | |
5632 | } | |
5633 | Py_INCREF(Py_None); resultobj = Py_None; | |
5634 | return resultobj; | |
5635 | fail: | |
5636 | return NULL; | |
5637 | } | |
5638 | ||
5639 | ||
5640 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5641 | PyObject *resultobj; | |
5642 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5643 | wxString *arg2 = 0 ; | |
423f194a | 5644 | bool arg3 = (bool) True ; |
d14a1e28 | 5645 | bool result; |
423f194a | 5646 | bool temp2 = False ; |
d14a1e28 RD |
5647 | PyObject * obj0 = 0 ; |
5648 | PyObject * obj1 = 0 ; | |
5649 | PyObject * obj2 = 0 ; | |
5650 | char *kwnames[] = { | |
5651 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5652 | }; | |
5653 | ||
5654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5657 | { |
5658 | arg2 = wxString_in_helper(obj1); | |
5659 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5660 | temp2 = True; |
d14a1e28 RD |
5661 | } |
5662 | if (obj2) { | |
2f4c0a16 RD |
5663 | arg3 = (bool) SWIG_AsBool(obj2); |
5664 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5665 | } |
5666 | { | |
5667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5668 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5669 | ||
5670 | wxPyEndAllowThreads(__tstate); | |
5671 | if (PyErr_Occurred()) SWIG_fail; | |
5672 | } | |
4f89f6a3 RD |
5673 | { |
5674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5675 | } | |
d14a1e28 RD |
5676 | { |
5677 | if (temp2) | |
5678 | delete arg2; | |
5679 | } | |
5680 | return resultobj; | |
5681 | fail: | |
5682 | { | |
5683 | if (temp2) | |
5684 | delete arg2; | |
5685 | } | |
5686 | return NULL; | |
5687 | } | |
5688 | ||
5689 | ||
5690 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5691 | PyObject *resultobj; | |
5692 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5693 | PyObject *result; | |
5694 | PyObject * obj0 = 0 ; | |
5695 | char *kwnames[] = { | |
5696 | (char *) "self", NULL | |
5697 | }; | |
5698 | ||
5699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5702 | { |
5703 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5704 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5705 | ||
5706 | wxPyEndAllowThreads(__tstate); | |
5707 | if (PyErr_Occurred()) SWIG_fail; | |
5708 | } | |
5709 | resultobj = result; | |
5710 | return resultobj; | |
5711 | fail: | |
5712 | return NULL; | |
5713 | } | |
5714 | ||
5715 | ||
5716 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5717 | PyObject *resultobj; | |
5718 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5719 | int arg2 ; | |
5720 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5721 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5722 | char *kwnames[] = { |
5723 | (char *) "self",(char *) "n", NULL | |
5724 | }; | |
5725 | ||
8edf1c75 | 5726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5729 | arg2 = (int) SWIG_AsInt(obj1); | |
5730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5731 | { |
5732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5733 | (arg1)->SetFirstItem(arg2); | |
5734 | ||
5735 | wxPyEndAllowThreads(__tstate); | |
5736 | if (PyErr_Occurred()) SWIG_fail; | |
5737 | } | |
5738 | Py_INCREF(Py_None); resultobj = Py_None; | |
5739 | return resultobj; | |
5740 | fail: | |
5741 | return NULL; | |
5742 | } | |
5743 | ||
5744 | ||
5745 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5746 | PyObject *resultobj; | |
5747 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5748 | wxString *arg2 = 0 ; | |
423f194a | 5749 | bool temp2 = False ; |
d14a1e28 RD |
5750 | PyObject * obj0 = 0 ; |
5751 | PyObject * obj1 = 0 ; | |
5752 | char *kwnames[] = { | |
5753 | (char *) "self",(char *) "s", NULL | |
5754 | }; | |
5755 | ||
5756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5759 | { |
5760 | arg2 = wxString_in_helper(obj1); | |
5761 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5762 | temp2 = True; |
d14a1e28 RD |
5763 | } |
5764 | { | |
5765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5766 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5767 | ||
5768 | wxPyEndAllowThreads(__tstate); | |
5769 | if (PyErr_Occurred()) SWIG_fail; | |
5770 | } | |
5771 | Py_INCREF(Py_None); resultobj = Py_None; | |
5772 | { | |
5773 | if (temp2) | |
5774 | delete arg2; | |
5775 | } | |
5776 | return resultobj; | |
5777 | fail: | |
5778 | { | |
5779 | if (temp2) | |
5780 | delete arg2; | |
5781 | } | |
5782 | return NULL; | |
5783 | } | |
5784 | ||
5785 | ||
5786 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5787 | PyObject *resultobj; | |
5788 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5789 | int arg2 ; | |
5790 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5791 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5792 | char *kwnames[] = { |
5793 | (char *) "self",(char *) "n", NULL | |
5794 | }; | |
5795 | ||
8edf1c75 | 5796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5799 | arg2 = (int) SWIG_AsInt(obj1); | |
5800 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5801 | { |
5802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5803 | (arg1)->EnsureVisible(arg2); | |
5804 | ||
5805 | wxPyEndAllowThreads(__tstate); | |
5806 | if (PyErr_Occurred()) SWIG_fail; | |
5807 | } | |
5808 | Py_INCREF(Py_None); resultobj = Py_None; | |
5809 | return resultobj; | |
5810 | fail: | |
5811 | return NULL; | |
5812 | } | |
5813 | ||
5814 | ||
5815 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5816 | PyObject *resultobj; | |
5817 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5818 | wxString *arg2 = 0 ; | |
423f194a | 5819 | bool temp2 = False ; |
d14a1e28 RD |
5820 | PyObject * obj0 = 0 ; |
5821 | PyObject * obj1 = 0 ; | |
5822 | char *kwnames[] = { | |
5823 | (char *) "self",(char *) "s", NULL | |
5824 | }; | |
5825 | ||
5826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5829 | { |
5830 | arg2 = wxString_in_helper(obj1); | |
5831 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5832 | temp2 = True; |
d14a1e28 RD |
5833 | } |
5834 | { | |
5835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5836 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5837 | ||
5838 | wxPyEndAllowThreads(__tstate); | |
5839 | if (PyErr_Occurred()) SWIG_fail; | |
5840 | } | |
5841 | Py_INCREF(Py_None); resultobj = Py_None; | |
5842 | { | |
5843 | if (temp2) | |
5844 | delete arg2; | |
5845 | } | |
5846 | return resultobj; | |
5847 | fail: | |
5848 | { | |
5849 | if (temp2) | |
5850 | delete arg2; | |
5851 | } | |
5852 | return NULL; | |
5853 | } | |
5854 | ||
5855 | ||
5856 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5857 | PyObject *resultobj; | |
5858 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5859 | bool result; | |
5860 | PyObject * obj0 = 0 ; | |
5861 | char *kwnames[] = { | |
5862 | (char *) "self", NULL | |
5863 | }; | |
5864 | ||
5865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5868 | { |
5869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5870 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5871 | ||
5872 | wxPyEndAllowThreads(__tstate); | |
5873 | if (PyErr_Occurred()) SWIG_fail; | |
5874 | } | |
4f89f6a3 RD |
5875 | { |
5876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5877 | } | |
d14a1e28 RD |
5878 | return resultobj; |
5879 | fail: | |
5880 | return NULL; | |
5881 | } | |
5882 | ||
5883 | ||
0ffb2aa6 RD |
5884 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5885 | PyObject *resultobj; | |
5886 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5887 | int arg2 ; | |
5888 | wxColour *arg3 = 0 ; | |
5889 | wxColour temp3 ; | |
5890 | PyObject * obj0 = 0 ; | |
5891 | PyObject * obj1 = 0 ; | |
5892 | PyObject * obj2 = 0 ; | |
5893 | char *kwnames[] = { | |
5894 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5895 | }; | |
5896 | ||
5897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5900 | arg2 = (int) SWIG_AsInt(obj1); | |
5901 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5902 | { |
5903 | arg3 = &temp3; | |
5904 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5905 | } | |
5906 | { | |
5907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5908 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5909 | ||
5910 | wxPyEndAllowThreads(__tstate); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
5912 | } | |
5913 | Py_INCREF(Py_None); resultobj = Py_None; | |
5914 | return resultobj; | |
5915 | fail: | |
5916 | return NULL; | |
5917 | } | |
5918 | ||
5919 | ||
5920 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5921 | PyObject *resultobj; | |
5922 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5923 | int arg2 ; | |
5924 | wxColour *arg3 = 0 ; | |
5925 | wxColour temp3 ; | |
5926 | PyObject * obj0 = 0 ; | |
5927 | PyObject * obj1 = 0 ; | |
5928 | PyObject * obj2 = 0 ; | |
5929 | char *kwnames[] = { | |
5930 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5931 | }; | |
5932 | ||
5933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5936 | arg2 = (int) SWIG_AsInt(obj1); | |
5937 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5938 | { |
5939 | arg3 = &temp3; | |
5940 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5941 | } | |
5942 | { | |
5943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5944 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5945 | ||
5946 | wxPyEndAllowThreads(__tstate); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
5948 | } | |
5949 | Py_INCREF(Py_None); resultobj = Py_None; | |
5950 | return resultobj; | |
5951 | fail: | |
5952 | return NULL; | |
5953 | } | |
5954 | ||
5955 | ||
5956 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5957 | PyObject *resultobj; | |
5958 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5959 | int arg2 ; | |
5960 | wxFont *arg3 = 0 ; | |
5961 | PyObject * obj0 = 0 ; | |
5962 | PyObject * obj1 = 0 ; | |
5963 | PyObject * obj2 = 0 ; | |
5964 | char *kwnames[] = { | |
5965 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5966 | }; | |
5967 | ||
5968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5971 | arg2 = (int) SWIG_AsInt(obj1); | |
5972 | if (PyErr_Occurred()) SWIG_fail; | |
5973 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
5974 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5975 | SWIG_fail; | |
0ffb2aa6 | 5976 | if (arg3 == NULL) { |
2f4c0a16 RD |
5977 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5978 | SWIG_fail; | |
0ffb2aa6 RD |
5979 | } |
5980 | { | |
5981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5982 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5983 | ||
5984 | wxPyEndAllowThreads(__tstate); | |
5985 | if (PyErr_Occurred()) SWIG_fail; | |
5986 | } | |
5987 | Py_INCREF(Py_None); resultobj = Py_None; | |
5988 | return resultobj; | |
5989 | fail: | |
5990 | return NULL; | |
5991 | } | |
5992 | ||
5993 | ||
d14a1e28 RD |
5994 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
5995 | PyObject *obj; | |
5996 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5997 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
5998 | Py_INCREF(obj); | |
5999 | return Py_BuildValue((char *)""); | |
6000 | } | |
6001 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6002 | PyObject *resultobj; | |
6003 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6004 | int arg2 ; |
d14a1e28 RD |
6005 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6006 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6007 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6008 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
6009 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6010 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6011 | long arg6 = (long) 0 ; | |
6012 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6013 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6014 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6015 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6016 | wxCheckListBox *result; |
6017 | wxPoint temp3 ; | |
6018 | wxSize temp4 ; | |
db914595 | 6019 | bool temp5 = False ; |
423f194a | 6020 | bool temp8 = False ; |
d14a1e28 | 6021 | PyObject * obj0 = 0 ; |
8edf1c75 | 6022 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6023 | PyObject * obj2 = 0 ; |
6024 | PyObject * obj3 = 0 ; | |
6025 | PyObject * obj4 = 0 ; | |
8edf1c75 | 6026 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6027 | PyObject * obj6 = 0 ; |
6028 | PyObject * obj7 = 0 ; | |
6029 | char *kwnames[] = { | |
6030 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6031 | }; | |
6032 | ||
8edf1c75 | 6033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
6034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6036 | arg2 = (int) SWIG_AsInt(obj1); | |
6037 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6038 | if (obj2) { |
6039 | { | |
6040 | arg3 = &temp3; | |
6041 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6042 | } | |
6043 | } | |
6044 | if (obj3) { | |
6045 | { | |
6046 | arg4 = &temp4; | |
6047 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6048 | } | |
6049 | } | |
6050 | if (obj4) { | |
6051 | { | |
4e760a36 RD |
6052 | if (! PySequence_Check(obj4)) { |
6053 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6054 | SWIG_fail; | |
6055 | } | |
6056 | arg5 = new wxArrayString; | |
db914595 | 6057 | temp5 = True; |
4e760a36 RD |
6058 | int i, len=PySequence_Length(obj4); |
6059 | for (i=0; i<len; i++) { | |
6060 | PyObject* item = PySequence_GetItem(obj4, i); | |
6061 | #if wxUSE_UNICODE | |
6062 | PyObject* str = PyObject_Unicode(item); | |
6063 | #else | |
6064 | PyObject* str = PyObject_Str(item); | |
6065 | #endif | |
6066 | arg5->Add(Py2wxString(str)); | |
6067 | Py_DECREF(item); | |
6068 | Py_DECREF(str); | |
6069 | } | |
d14a1e28 RD |
6070 | } |
6071 | } | |
8edf1c75 | 6072 | if (obj5) { |
2f4c0a16 RD |
6073 | arg6 = (long) SWIG_AsLong(obj5); |
6074 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6075 | } |
d14a1e28 | 6076 | if (obj6) { |
2f4c0a16 RD |
6077 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6078 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6079 | SWIG_fail; | |
4e760a36 | 6080 | if (arg7 == NULL) { |
2f4c0a16 RD |
6081 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6082 | SWIG_fail; | |
d14a1e28 RD |
6083 | } |
6084 | } | |
6085 | if (obj7) { | |
6086 | { | |
4e760a36 RD |
6087 | arg8 = wxString_in_helper(obj7); |
6088 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6089 | temp8 = True; |
d14a1e28 RD |
6090 | } |
6091 | } | |
6092 | { | |
6093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6094 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6095 | |
6096 | wxPyEndAllowThreads(__tstate); | |
6097 | if (PyErr_Occurred()) SWIG_fail; | |
6098 | } | |
2f4c0a16 | 6099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6100 | { |
db914595 | 6101 | if (temp5) delete arg5; |
d14a1e28 RD |
6102 | } |
6103 | { | |
6104 | if (temp8) | |
4e760a36 | 6105 | delete arg8; |
d14a1e28 RD |
6106 | } |
6107 | return resultobj; | |
6108 | fail: | |
6109 | { | |
db914595 | 6110 | if (temp5) delete arg5; |
d14a1e28 RD |
6111 | } |
6112 | { | |
6113 | if (temp8) | |
4e760a36 | 6114 | delete arg8; |
d14a1e28 RD |
6115 | } |
6116 | return NULL; | |
6117 | } | |
6118 | ||
6119 | ||
6120 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6121 | PyObject *resultobj; | |
6122 | wxCheckListBox *result; | |
6123 | char *kwnames[] = { | |
6124 | NULL | |
6125 | }; | |
6126 | ||
6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6128 | { | |
6129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6130 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6131 | ||
6132 | wxPyEndAllowThreads(__tstate); | |
6133 | if (PyErr_Occurred()) SWIG_fail; | |
6134 | } | |
2f4c0a16 | 6135 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6136 | return resultobj; |
6137 | fail: | |
6138 | return NULL; | |
6139 | } | |
6140 | ||
6141 | ||
6142 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6143 | PyObject *resultobj; | |
6144 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6145 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6146 | int arg3 ; |
d14a1e28 RD |
6147 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6148 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6149 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6150 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
6151 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6152 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6153 | long arg7 = (long) 0 ; | |
6154 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6155 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6156 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6157 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6158 | bool result; |
6159 | wxPoint temp4 ; | |
6160 | wxSize temp5 ; | |
db914595 | 6161 | bool temp6 = False ; |
423f194a | 6162 | bool temp9 = False ; |
d14a1e28 RD |
6163 | PyObject * obj0 = 0 ; |
6164 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6165 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6166 | PyObject * obj3 = 0 ; |
6167 | PyObject * obj4 = 0 ; | |
6168 | PyObject * obj5 = 0 ; | |
8edf1c75 | 6169 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6170 | PyObject * obj7 = 0 ; |
6171 | PyObject * obj8 = 0 ; | |
6172 | char *kwnames[] = { | |
6173 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6174 | }; | |
6175 | ||
8edf1c75 | 6176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
6177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6181 | arg3 = (int) SWIG_AsInt(obj2); | |
6182 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6183 | if (obj3) { |
6184 | { | |
6185 | arg4 = &temp4; | |
6186 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6187 | } | |
6188 | } | |
6189 | if (obj4) { | |
6190 | { | |
6191 | arg5 = &temp5; | |
6192 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6193 | } | |
6194 | } | |
6195 | if (obj5) { | |
6196 | { | |
4e760a36 RD |
6197 | if (! PySequence_Check(obj5)) { |
6198 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6199 | SWIG_fail; | |
6200 | } | |
6201 | arg6 = new wxArrayString; | |
db914595 | 6202 | temp6 = True; |
4e760a36 RD |
6203 | int i, len=PySequence_Length(obj5); |
6204 | for (i=0; i<len; i++) { | |
6205 | PyObject* item = PySequence_GetItem(obj5, i); | |
6206 | #if wxUSE_UNICODE | |
6207 | PyObject* str = PyObject_Unicode(item); | |
6208 | #else | |
6209 | PyObject* str = PyObject_Str(item); | |
6210 | #endif | |
6211 | arg6->Add(Py2wxString(str)); | |
6212 | Py_DECREF(item); | |
6213 | Py_DECREF(str); | |
6214 | } | |
d14a1e28 RD |
6215 | } |
6216 | } | |
8edf1c75 | 6217 | if (obj6) { |
2f4c0a16 RD |
6218 | arg7 = (long) SWIG_AsLong(obj6); |
6219 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6220 | } |
d14a1e28 | 6221 | if (obj7) { |
2f4c0a16 RD |
6222 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6223 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6224 | SWIG_fail; | |
4e760a36 | 6225 | if (arg8 == NULL) { |
2f4c0a16 RD |
6226 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6227 | SWIG_fail; | |
d14a1e28 RD |
6228 | } |
6229 | } | |
6230 | if (obj8) { | |
6231 | { | |
4e760a36 RD |
6232 | arg9 = wxString_in_helper(obj8); |
6233 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6234 | temp9 = True; |
d14a1e28 RD |
6235 | } |
6236 | } | |
6237 | { | |
6238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6239 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6240 | |
6241 | wxPyEndAllowThreads(__tstate); | |
6242 | if (PyErr_Occurred()) SWIG_fail; | |
6243 | } | |
4f89f6a3 RD |
6244 | { |
6245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6246 | } | |
d14a1e28 | 6247 | { |
db914595 | 6248 | if (temp6) delete arg6; |
d14a1e28 RD |
6249 | } |
6250 | { | |
6251 | if (temp9) | |
4e760a36 | 6252 | delete arg9; |
d14a1e28 RD |
6253 | } |
6254 | return resultobj; | |
6255 | fail: | |
6256 | { | |
db914595 | 6257 | if (temp6) delete arg6; |
d14a1e28 RD |
6258 | } |
6259 | { | |
6260 | if (temp9) | |
4e760a36 | 6261 | delete arg9; |
d14a1e28 RD |
6262 | } |
6263 | return NULL; | |
6264 | } | |
6265 | ||
6266 | ||
6267 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6268 | PyObject *resultobj; | |
6269 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6270 | int arg2 ; | |
6271 | bool result; | |
6272 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6273 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6274 | char *kwnames[] = { |
6275 | (char *) "self",(char *) "index", NULL | |
6276 | }; | |
6277 | ||
8edf1c75 | 6278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6281 | arg2 = (int) SWIG_AsInt(obj1); | |
6282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6283 | { |
6284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6285 | result = (bool)(arg1)->IsChecked(arg2); | |
6286 | ||
6287 | wxPyEndAllowThreads(__tstate); | |
6288 | if (PyErr_Occurred()) SWIG_fail; | |
6289 | } | |
4f89f6a3 RD |
6290 | { |
6291 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6292 | } | |
d14a1e28 RD |
6293 | return resultobj; |
6294 | fail: | |
6295 | return NULL; | |
6296 | } | |
6297 | ||
6298 | ||
6299 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6300 | PyObject *resultobj; | |
6301 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6302 | int arg2 ; | |
423f194a | 6303 | int arg3 = (int) True ; |
d14a1e28 | 6304 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6305 | PyObject * obj1 = 0 ; |
6306 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6307 | char *kwnames[] = { |
6308 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6309 | }; | |
6310 | ||
8edf1c75 | 6311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6314 | arg2 = (int) SWIG_AsInt(obj1); | |
6315 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6316 | if (obj2) { |
2f4c0a16 RD |
6317 | arg3 = (int) SWIG_AsInt(obj2); |
6318 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6319 | } |
d14a1e28 RD |
6320 | { |
6321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6322 | (arg1)->Check(arg2,arg3); | |
6323 | ||
6324 | wxPyEndAllowThreads(__tstate); | |
6325 | if (PyErr_Occurred()) SWIG_fail; | |
6326 | } | |
6327 | Py_INCREF(Py_None); resultobj = Py_None; | |
6328 | return resultobj; | |
6329 | fail: | |
6330 | return NULL; | |
6331 | } | |
6332 | ||
6333 | ||
6334 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6335 | PyObject *resultobj; | |
6336 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6337 | int result; | |
6338 | PyObject * obj0 = 0 ; | |
6339 | char *kwnames[] = { | |
6340 | (char *) "self", NULL | |
6341 | }; | |
6342 | ||
6343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6346 | { |
6347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6348 | result = (int)(arg1)->GetItemHeight(); | |
6349 | ||
6350 | wxPyEndAllowThreads(__tstate); | |
6351 | if (PyErr_Occurred()) SWIG_fail; | |
6352 | } | |
2f4c0a16 | 6353 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6354 | return resultobj; |
6355 | fail: | |
6356 | return NULL; | |
6357 | } | |
6358 | ||
6359 | ||
6360 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6361 | PyObject *resultobj; | |
6362 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6363 | wxPoint *arg2 = 0 ; | |
6364 | int result; | |
6365 | wxPoint temp2 ; | |
6366 | PyObject * obj0 = 0 ; | |
6367 | PyObject * obj1 = 0 ; | |
6368 | char *kwnames[] = { | |
6369 | (char *) "self",(char *) "pt", NULL | |
6370 | }; | |
6371 | ||
6372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6375 | { |
6376 | arg2 = &temp2; | |
6377 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6378 | } | |
6379 | { | |
6380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6381 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6382 | ||
6383 | wxPyEndAllowThreads(__tstate); | |
6384 | if (PyErr_Occurred()) SWIG_fail; | |
6385 | } | |
2f4c0a16 | 6386 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6387 | return resultobj; |
6388 | fail: | |
6389 | return NULL; | |
6390 | } | |
6391 | ||
6392 | ||
6393 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6394 | PyObject *resultobj; | |
6395 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6396 | int arg2 ; |
6397 | int arg3 ; | |
d14a1e28 RD |
6398 | int result; |
6399 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6400 | PyObject * obj1 = 0 ; |
6401 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6402 | char *kwnames[] = { |
6403 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6404 | }; | |
6405 | ||
8edf1c75 | 6406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6409 | arg2 = (int) SWIG_AsInt(obj1); | |
6410 | if (PyErr_Occurred()) SWIG_fail; | |
6411 | arg3 = (int) SWIG_AsInt(obj2); | |
6412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6413 | { |
6414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6415 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6416 | ||
6417 | wxPyEndAllowThreads(__tstate); | |
6418 | if (PyErr_Occurred()) SWIG_fail; | |
6419 | } | |
2f4c0a16 | 6420 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6421 | return resultobj; |
6422 | fail: | |
6423 | return NULL; | |
6424 | } | |
6425 | ||
6426 | ||
6427 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6428 | PyObject *obj; | |
6429 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6430 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6431 | Py_INCREF(obj); | |
6432 | return Py_BuildValue((char *)""); | |
6433 | } | |
2f4c0a16 | 6434 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
6435 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6436 | return 1; | |
6437 | } | |
6438 | ||
6439 | ||
6440 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6441 | PyObject *pyobj; | |
6442 | ||
6443 | { | |
6444 | #if wxUSE_UNICODE | |
6445 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6446 | #else | |
6447 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6448 | #endif | |
6449 | } | |
6450 | return pyobj; | |
6451 | } | |
6452 | ||
6453 | ||
d14a1e28 RD |
6454 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6455 | PyObject *resultobj; | |
6456 | wxTextAttr *result; | |
6457 | ||
6458 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6459 | { | |
6460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6461 | result = (wxTextAttr *)new wxTextAttr(); | |
6462 | ||
6463 | wxPyEndAllowThreads(__tstate); | |
6464 | if (PyErr_Occurred()) SWIG_fail; | |
6465 | } | |
2f4c0a16 | 6466 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6467 | return resultobj; |
6468 | fail: | |
6469 | return NULL; | |
6470 | } | |
6471 | ||
6472 | ||
6473 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6474 | PyObject *resultobj; | |
6475 | wxColour *arg1 = 0 ; | |
6476 | wxColour const &arg2_defvalue = wxNullColour ; | |
6477 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6478 | wxFont const &arg3_defvalue = wxNullFont ; | |
6479 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6480 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6481 | wxTextAttr *result; | |
6482 | wxColour temp1 ; | |
6483 | wxColour temp2 ; | |
6484 | PyObject * obj0 = 0 ; | |
6485 | PyObject * obj1 = 0 ; | |
6486 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6487 | PyObject * obj3 = 0 ; |
d14a1e28 | 6488 | |
8edf1c75 | 6489 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6490 | { |
6491 | arg1 = &temp1; | |
6492 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6493 | } | |
6494 | if (obj1) { | |
6495 | { | |
6496 | arg2 = &temp2; | |
6497 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6498 | } | |
6499 | } | |
6500 | if (obj2) { | |
2f4c0a16 RD |
6501 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
6502 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6503 | SWIG_fail; | |
d14a1e28 | 6504 | if (arg3 == NULL) { |
2f4c0a16 RD |
6505 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6506 | SWIG_fail; | |
d14a1e28 RD |
6507 | } |
6508 | } | |
8edf1c75 | 6509 | if (obj3) { |
2f4c0a16 RD |
6510 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
6511 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
6512 | } |
6513 | { | |
6514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6515 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6516 | |
6517 | wxPyEndAllowThreads(__tstate); | |
6518 | if (PyErr_Occurred()) SWIG_fail; | |
6519 | } | |
2f4c0a16 | 6520 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6521 | return resultobj; |
6522 | fail: | |
6523 | return NULL; | |
6524 | } | |
6525 | ||
6526 | ||
6527 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6528 | int argc; | |
6529 | PyObject *argv[5]; | |
6530 | int ii; | |
6531 | ||
6532 | argc = PyObject_Length(args); | |
6533 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6534 | argv[ii] = PyTuple_GetItem(args,ii); | |
6535 | } | |
6536 | if (argc == 0) { | |
6537 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6538 | } | |
6539 | if ((argc >= 1) && (argc <= 4)) { | |
6540 | int _v; | |
6541 | { | |
6542 | _v = wxColour_typecheck(argv[0]); | |
6543 | } | |
6544 | if (_v) { | |
6545 | if (argc <= 1) { | |
6546 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6547 | } | |
6548 | { | |
6549 | _v = wxColour_typecheck(argv[1]); | |
6550 | } | |
6551 | if (_v) { | |
6552 | if (argc <= 2) { | |
6553 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6554 | } | |
6555 | { | |
6556 | void *ptr; | |
2f4c0a16 | 6557 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { |
d14a1e28 RD |
6558 | _v = 0; |
6559 | PyErr_Clear(); | |
6560 | } else { | |
6561 | _v = 1; | |
6562 | } | |
6563 | } | |
6564 | if (_v) { | |
6565 | if (argc <= 3) { | |
6566 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6567 | } | |
2f4c0a16 | 6568 | _v = SWIG_CheckInt(argv[3]); |
8edf1c75 RD |
6569 | if (_v) { |
6570 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6571 | } | |
d14a1e28 RD |
6572 | } |
6573 | } | |
6574 | } | |
6575 | } | |
6576 | ||
6577 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6578 | return NULL; | |
6579 | } | |
6580 | ||
6581 | ||
8edf1c75 RD |
6582 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6583 | PyObject *resultobj; | |
6584 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6585 | PyObject * obj0 = 0 ; | |
6586 | char *kwnames[] = { | |
6587 | (char *) "self", NULL | |
6588 | }; | |
6589 | ||
6590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
6593 | { |
6594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6595 | delete arg1; | |
6596 | ||
6597 | wxPyEndAllowThreads(__tstate); | |
6598 | if (PyErr_Occurred()) SWIG_fail; | |
6599 | } | |
6600 | Py_INCREF(Py_None); resultobj = Py_None; | |
6601 | return resultobj; | |
6602 | fail: | |
6603 | return NULL; | |
6604 | } | |
6605 | ||
6606 | ||
d14a1e28 RD |
6607 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6608 | PyObject *resultobj; | |
6609 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6610 | PyObject * obj0 = 0 ; | |
6611 | char *kwnames[] = { | |
6612 | (char *) "self", NULL | |
6613 | }; | |
6614 | ||
6615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6618 | { |
6619 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6620 | (arg1)->Init(); | |
6621 | ||
6622 | wxPyEndAllowThreads(__tstate); | |
6623 | if (PyErr_Occurred()) SWIG_fail; | |
6624 | } | |
6625 | Py_INCREF(Py_None); resultobj = Py_None; | |
6626 | return resultobj; | |
6627 | fail: | |
6628 | return NULL; | |
6629 | } | |
6630 | ||
6631 | ||
6632 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6633 | PyObject *resultobj; | |
6634 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6635 | wxColour *arg2 = 0 ; | |
6636 | wxColour temp2 ; | |
6637 | PyObject * obj0 = 0 ; | |
6638 | PyObject * obj1 = 0 ; | |
6639 | char *kwnames[] = { | |
6640 | (char *) "self",(char *) "colText", NULL | |
6641 | }; | |
6642 | ||
6643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6646 | { |
6647 | arg2 = &temp2; | |
6648 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6649 | } | |
6650 | { | |
6651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6652 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6653 | ||
6654 | wxPyEndAllowThreads(__tstate); | |
6655 | if (PyErr_Occurred()) SWIG_fail; | |
6656 | } | |
6657 | Py_INCREF(Py_None); resultobj = Py_None; | |
6658 | return resultobj; | |
6659 | fail: | |
6660 | return NULL; | |
6661 | } | |
6662 | ||
6663 | ||
6664 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6665 | PyObject *resultobj; | |
6666 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6667 | wxColour *arg2 = 0 ; | |
6668 | wxColour temp2 ; | |
6669 | PyObject * obj0 = 0 ; | |
6670 | PyObject * obj1 = 0 ; | |
6671 | char *kwnames[] = { | |
6672 | (char *) "self",(char *) "colBack", NULL | |
6673 | }; | |
6674 | ||
6675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6678 | { |
6679 | arg2 = &temp2; | |
6680 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6681 | } | |
6682 | { | |
6683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6684 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6685 | ||
6686 | wxPyEndAllowThreads(__tstate); | |
6687 | if (PyErr_Occurred()) SWIG_fail; | |
6688 | } | |
6689 | Py_INCREF(Py_None); resultobj = Py_None; | |
6690 | return resultobj; | |
6691 | fail: | |
6692 | return NULL; | |
6693 | } | |
6694 | ||
6695 | ||
6696 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6697 | PyObject *resultobj; | |
6698 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6699 | wxFont *arg2 = 0 ; | |
6700 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6701 | PyObject * obj0 = 0 ; | |
6702 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6703 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6704 | char *kwnames[] = { |
6705 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6706 | }; | |
6707 | ||
8edf1c75 | 6708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6713 | SWIG_fail; | |
d14a1e28 | 6714 | if (arg2 == NULL) { |
2f4c0a16 RD |
6715 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6716 | SWIG_fail; | |
d14a1e28 | 6717 | } |
8edf1c75 | 6718 | if (obj2) { |
2f4c0a16 RD |
6719 | arg3 = (long) SWIG_AsLong(obj2); |
6720 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6721 | } |
d14a1e28 RD |
6722 | { |
6723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6724 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6725 | ||
6726 | wxPyEndAllowThreads(__tstate); | |
6727 | if (PyErr_Occurred()) SWIG_fail; | |
6728 | } | |
6729 | Py_INCREF(Py_None); resultobj = Py_None; | |
6730 | return resultobj; | |
6731 | fail: | |
6732 | return NULL; | |
6733 | } | |
6734 | ||
6735 | ||
6736 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6737 | PyObject *resultobj; | |
6738 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6739 | int arg2 ; | |
6740 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6741 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6742 | char *kwnames[] = { |
6743 | (char *) "self",(char *) "alignment", NULL | |
6744 | }; | |
6745 | ||
8edf1c75 | 6746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6749 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
6750 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6751 | { |
6752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6753 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6754 | ||
6755 | wxPyEndAllowThreads(__tstate); | |
6756 | if (PyErr_Occurred()) SWIG_fail; | |
6757 | } | |
6758 | Py_INCREF(Py_None); resultobj = Py_None; | |
6759 | return resultobj; | |
6760 | fail: | |
6761 | return NULL; | |
6762 | } | |
6763 | ||
6764 | ||
6765 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6766 | PyObject *resultobj; | |
6767 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6768 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6769 | bool temp2 = False ; |
d14a1e28 RD |
6770 | PyObject * obj0 = 0 ; |
6771 | PyObject * obj1 = 0 ; | |
6772 | char *kwnames[] = { | |
6773 | (char *) "self",(char *) "tabs", NULL | |
6774 | }; | |
6775 | ||
6776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6779 | { |
6780 | if (! PySequence_Check(obj1)) { | |
6781 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6782 | SWIG_fail; | |
6783 | } | |
6784 | arg2 = new wxArrayInt; | |
db914595 | 6785 | temp2 = True; |
d14a1e28 RD |
6786 | int i, len=PySequence_Length(obj1); |
6787 | for (i=0; i<len; i++) { | |
6788 | PyObject* item = PySequence_GetItem(obj1, i); | |
6789 | PyObject* number = PyNumber_Int(item); | |
6790 | arg2->Add(PyInt_AS_LONG(number)); | |
6791 | Py_DECREF(item); | |
6792 | Py_DECREF(number); | |
6793 | } | |
6794 | } | |
6795 | { | |
6796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6797 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6798 | ||
6799 | wxPyEndAllowThreads(__tstate); | |
6800 | if (PyErr_Occurred()) SWIG_fail; | |
6801 | } | |
6802 | Py_INCREF(Py_None); resultobj = Py_None; | |
6803 | { | |
db914595 | 6804 | if (temp2) delete arg2; |
d14a1e28 RD |
6805 | } |
6806 | return resultobj; | |
6807 | fail: | |
6808 | { | |
db914595 | 6809 | if (temp2) delete arg2; |
d14a1e28 RD |
6810 | } |
6811 | return NULL; | |
6812 | } | |
6813 | ||
6814 | ||
6815 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6816 | PyObject *resultobj; | |
6817 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6818 | int arg2 ; | |
6819 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6820 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6821 | char *kwnames[] = { |
6822 | (char *) "self",(char *) "indent", NULL | |
6823 | }; | |
6824 | ||
8edf1c75 | 6825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6828 | arg2 = (int) SWIG_AsInt(obj1); | |
6829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6830 | { |
6831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6832 | (arg1)->SetLeftIndent(arg2); | |
6833 | ||
6834 | wxPyEndAllowThreads(__tstate); | |
6835 | if (PyErr_Occurred()) SWIG_fail; | |
6836 | } | |
6837 | Py_INCREF(Py_None); resultobj = Py_None; | |
6838 | return resultobj; | |
6839 | fail: | |
6840 | return NULL; | |
6841 | } | |
6842 | ||
6843 | ||
6844 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6845 | PyObject *resultobj; | |
6846 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6847 | int arg2 ; | |
6848 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6849 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6850 | char *kwnames[] = { |
6851 | (char *) "self",(char *) "indent", NULL | |
6852 | }; | |
6853 | ||
8edf1c75 | 6854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6857 | arg2 = (int) SWIG_AsInt(obj1); | |
6858 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6859 | { |
6860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6861 | (arg1)->SetRightIndent(arg2); | |
6862 | ||
6863 | wxPyEndAllowThreads(__tstate); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
6865 | } | |
6866 | Py_INCREF(Py_None); resultobj = Py_None; | |
6867 | return resultobj; | |
6868 | fail: | |
6869 | return NULL; | |
6870 | } | |
6871 | ||
6872 | ||
6873 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6874 | PyObject *resultobj; | |
6875 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6876 | long arg2 ; | |
6877 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6879 | char *kwnames[] = { |
6880 | (char *) "self",(char *) "flags", NULL | |
6881 | }; | |
6882 | ||
8edf1c75 | 6883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6886 | arg2 = (long) SWIG_AsLong(obj1); | |
6887 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6888 | { |
6889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6890 | (arg1)->SetFlags(arg2); | |
6891 | ||
6892 | wxPyEndAllowThreads(__tstate); | |
6893 | if (PyErr_Occurred()) SWIG_fail; | |
6894 | } | |
6895 | Py_INCREF(Py_None); resultobj = Py_None; | |
6896 | return resultobj; | |
6897 | fail: | |
6898 | return NULL; | |
6899 | } | |
6900 | ||
6901 | ||
6902 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6903 | PyObject *resultobj; | |
6904 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6905 | bool result; | |
6906 | PyObject * obj0 = 0 ; | |
6907 | char *kwnames[] = { | |
6908 | (char *) "self", NULL | |
6909 | }; | |
6910 | ||
6911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6914 | { |
6915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6916 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6917 | ||
6918 | wxPyEndAllowThreads(__tstate); | |
6919 | if (PyErr_Occurred()) SWIG_fail; | |
6920 | } | |
4f89f6a3 RD |
6921 | { |
6922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6923 | } | |
d14a1e28 RD |
6924 | return resultobj; |
6925 | fail: | |
6926 | return NULL; | |
6927 | } | |
6928 | ||
6929 | ||
6930 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6931 | PyObject *resultobj; | |
6932 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6933 | bool result; | |
6934 | PyObject * obj0 = 0 ; | |
6935 | char *kwnames[] = { | |
6936 | (char *) "self", NULL | |
6937 | }; | |
6938 | ||
6939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6942 | { |
6943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6944 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6945 | ||
6946 | wxPyEndAllowThreads(__tstate); | |
6947 | if (PyErr_Occurred()) SWIG_fail; | |
6948 | } | |
4f89f6a3 RD |
6949 | { |
6950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6951 | } | |
d14a1e28 RD |
6952 | return resultobj; |
6953 | fail: | |
6954 | return NULL; | |
6955 | } | |
6956 | ||
6957 | ||
6958 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6959 | PyObject *resultobj; | |
6960 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6961 | bool result; | |
6962 | PyObject * obj0 = 0 ; | |
6963 | char *kwnames[] = { | |
6964 | (char *) "self", NULL | |
6965 | }; | |
6966 | ||
6967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6970 | { |
6971 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6972 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6973 | ||
6974 | wxPyEndAllowThreads(__tstate); | |
6975 | if (PyErr_Occurred()) SWIG_fail; | |
6976 | } | |
4f89f6a3 RD |
6977 | { |
6978 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6979 | } | |
d14a1e28 RD |
6980 | return resultobj; |
6981 | fail: | |
6982 | return NULL; | |
6983 | } | |
6984 | ||
6985 | ||
6986 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6987 | PyObject *resultobj; | |
6988 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6989 | bool result; | |
6990 | PyObject * obj0 = 0 ; | |
6991 | char *kwnames[] = { | |
6992 | (char *) "self", NULL | |
6993 | }; | |
6994 | ||
6995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6998 | { |
6999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7000 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7001 | ||
7002 | wxPyEndAllowThreads(__tstate); | |
7003 | if (PyErr_Occurred()) SWIG_fail; | |
7004 | } | |
4f89f6a3 RD |
7005 | { |
7006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7007 | } | |
d14a1e28 RD |
7008 | return resultobj; |
7009 | fail: | |
7010 | return NULL; | |
7011 | } | |
7012 | ||
7013 | ||
7014 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7015 | PyObject *resultobj; | |
7016 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7017 | bool result; | |
7018 | PyObject * obj0 = 0 ; | |
7019 | char *kwnames[] = { | |
7020 | (char *) "self", NULL | |
7021 | }; | |
7022 | ||
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7026 | { |
7027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7028 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7029 | ||
7030 | wxPyEndAllowThreads(__tstate); | |
7031 | if (PyErr_Occurred()) SWIG_fail; | |
7032 | } | |
4f89f6a3 RD |
7033 | { |
7034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7035 | } | |
d14a1e28 RD |
7036 | return resultobj; |
7037 | fail: | |
7038 | return NULL; | |
7039 | } | |
7040 | ||
7041 | ||
7042 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7043 | PyObject *resultobj; | |
7044 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7045 | bool result; | |
7046 | PyObject * obj0 = 0 ; | |
7047 | char *kwnames[] = { | |
7048 | (char *) "self", NULL | |
7049 | }; | |
7050 | ||
7051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7054 | { |
7055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7056 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7057 | ||
7058 | wxPyEndAllowThreads(__tstate); | |
7059 | if (PyErr_Occurred()) SWIG_fail; | |
7060 | } | |
4f89f6a3 RD |
7061 | { |
7062 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7063 | } | |
d14a1e28 RD |
7064 | return resultobj; |
7065 | fail: | |
7066 | return NULL; | |
7067 | } | |
7068 | ||
7069 | ||
7070 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7071 | PyObject *resultobj; | |
7072 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7073 | bool result; | |
7074 | PyObject * obj0 = 0 ; | |
7075 | char *kwnames[] = { | |
7076 | (char *) "self", NULL | |
7077 | }; | |
7078 | ||
7079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7082 | { |
7083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7084 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7085 | ||
7086 | wxPyEndAllowThreads(__tstate); | |
7087 | if (PyErr_Occurred()) SWIG_fail; | |
7088 | } | |
4f89f6a3 RD |
7089 | { |
7090 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7091 | } | |
d14a1e28 RD |
7092 | return resultobj; |
7093 | fail: | |
7094 | return NULL; | |
7095 | } | |
7096 | ||
7097 | ||
7098 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7099 | PyObject *resultobj; | |
7100 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7101 | long arg2 ; | |
7102 | bool result; | |
7103 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7104 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7105 | char *kwnames[] = { |
7106 | (char *) "self",(char *) "flag", NULL | |
7107 | }; | |
7108 | ||
8edf1c75 | 7109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7112 | arg2 = (long) SWIG_AsLong(obj1); | |
7113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7114 | { |
7115 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7116 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7117 | ||
7118 | wxPyEndAllowThreads(__tstate); | |
7119 | if (PyErr_Occurred()) SWIG_fail; | |
7120 | } | |
4f89f6a3 RD |
7121 | { |
7122 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7123 | } | |
d14a1e28 RD |
7124 | return resultobj; |
7125 | fail: | |
7126 | return NULL; | |
7127 | } | |
7128 | ||
7129 | ||
7130 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7131 | PyObject *resultobj; | |
7132 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7133 | wxColour *result; | |
7134 | PyObject * obj0 = 0 ; | |
7135 | char *kwnames[] = { | |
7136 | (char *) "self", NULL | |
7137 | }; | |
7138 | ||
7139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7142 | { |
7143 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7144 | { | |
7145 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7146 | result = (wxColour *) &_result_ref; | |
7147 | } | |
7148 | ||
7149 | wxPyEndAllowThreads(__tstate); | |
7150 | if (PyErr_Occurred()) SWIG_fail; | |
7151 | } | |
2f4c0a16 | 7152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7153 | return resultobj; |
7154 | fail: | |
7155 | return NULL; | |
7156 | } | |
7157 | ||
7158 | ||
7159 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7160 | PyObject *resultobj; | |
7161 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7162 | wxColour *result; | |
7163 | PyObject * obj0 = 0 ; | |
7164 | char *kwnames[] = { | |
7165 | (char *) "self", NULL | |
7166 | }; | |
7167 | ||
7168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7171 | { |
7172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7173 | { | |
7174 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7175 | result = (wxColour *) &_result_ref; | |
7176 | } | |
7177 | ||
7178 | wxPyEndAllowThreads(__tstate); | |
7179 | if (PyErr_Occurred()) SWIG_fail; | |
7180 | } | |
2f4c0a16 | 7181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7182 | return resultobj; |
7183 | fail: | |
7184 | return NULL; | |
7185 | } | |
7186 | ||
7187 | ||
7188 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7189 | PyObject *resultobj; | |
7190 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7191 | wxFont *result; | |
7192 | PyObject * obj0 = 0 ; | |
7193 | char *kwnames[] = { | |
7194 | (char *) "self", NULL | |
7195 | }; | |
7196 | ||
7197 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7200 | { |
7201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7202 | { | |
7203 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7204 | result = (wxFont *) &_result_ref; | |
7205 | } | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
fe763115 RD |
7210 | { |
7211 | wxFont* resultptr = new wxFont(*result); | |
7212 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7213 | } | |
d14a1e28 RD |
7214 | return resultobj; |
7215 | fail: | |
7216 | return NULL; | |
7217 | } | |
7218 | ||
7219 | ||
7220 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7221 | PyObject *resultobj; | |
7222 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7223 | int result; | |
7224 | PyObject * obj0 = 0 ; | |
7225 | char *kwnames[] = { | |
7226 | (char *) "self", NULL | |
7227 | }; | |
7228 | ||
7229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7232 | { |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7234 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7235 | ||
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
2f4c0a16 | 7239 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7240 | return resultobj; |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7249 | wxArrayInt *result; | |
7250 | PyObject * obj0 = 0 ; | |
7251 | char *kwnames[] = { | |
7252 | (char *) "self", NULL | |
7253 | }; | |
7254 | ||
7255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7258 | { |
7259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7260 | { | |
7261 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7262 | result = (wxArrayInt *) &_result_ref; | |
7263 | } | |
7264 | ||
7265 | wxPyEndAllowThreads(__tstate); | |
7266 | if (PyErr_Occurred()) SWIG_fail; | |
7267 | } | |
7268 | { | |
7269 | resultobj = PyList_New(0); | |
7270 | size_t idx; | |
7271 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7272 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7273 | PyList_Append(resultobj, val); | |
7274 | Py_DECREF(val); | |
7275 | } | |
7276 | } | |
7277 | return resultobj; | |
7278 | fail: | |
7279 | return NULL; | |
7280 | } | |
7281 | ||
7282 | ||
7283 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7284 | PyObject *resultobj; | |
7285 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7286 | long result; | |
7287 | PyObject * obj0 = 0 ; | |
7288 | char *kwnames[] = { | |
7289 | (char *) "self", NULL | |
7290 | }; | |
7291 | ||
7292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7295 | { |
7296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7297 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7298 | ||
7299 | wxPyEndAllowThreads(__tstate); | |
7300 | if (PyErr_Occurred()) SWIG_fail; | |
7301 | } | |
2f4c0a16 | 7302 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7303 | return resultobj; |
7304 | fail: | |
7305 | return NULL; | |
7306 | } | |
7307 | ||
7308 | ||
7309 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7310 | PyObject *resultobj; | |
7311 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7312 | long result; | |
7313 | PyObject * obj0 = 0 ; | |
7314 | char *kwnames[] = { | |
7315 | (char *) "self", NULL | |
7316 | }; | |
7317 | ||
7318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7321 | { |
7322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7323 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7324 | ||
7325 | wxPyEndAllowThreads(__tstate); | |
7326 | if (PyErr_Occurred()) SWIG_fail; | |
7327 | } | |
2f4c0a16 | 7328 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7329 | return resultobj; |
7330 | fail: | |
7331 | return NULL; | |
7332 | } | |
7333 | ||
7334 | ||
7335 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7336 | PyObject *resultobj; | |
7337 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7338 | long result; | |
7339 | PyObject * obj0 = 0 ; | |
7340 | char *kwnames[] = { | |
7341 | (char *) "self", NULL | |
7342 | }; | |
7343 | ||
7344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7347 | { |
7348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7349 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7350 | ||
7351 | wxPyEndAllowThreads(__tstate); | |
7352 | if (PyErr_Occurred()) SWIG_fail; | |
7353 | } | |
2f4c0a16 | 7354 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7355 | return resultobj; |
7356 | fail: | |
7357 | return NULL; | |
7358 | } | |
7359 | ||
7360 | ||
7361 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7362 | PyObject *resultobj; | |
7363 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7364 | bool result; | |
7365 | PyObject * obj0 = 0 ; | |
7366 | char *kwnames[] = { | |
7367 | (char *) "self", NULL | |
7368 | }; | |
7369 | ||
7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7373 | { |
7374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7375 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7376 | ||
7377 | wxPyEndAllowThreads(__tstate); | |
7378 | if (PyErr_Occurred()) SWIG_fail; | |
7379 | } | |
4f89f6a3 RD |
7380 | { |
7381 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7382 | } | |
d14a1e28 RD |
7383 | return resultobj; |
7384 | fail: | |
7385 | return NULL; | |
7386 | } | |
7387 | ||
7388 | ||
7389 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7390 | PyObject *resultobj; | |
7391 | wxTextAttr *arg1 = 0 ; | |
7392 | wxTextAttr *arg2 = 0 ; | |
7393 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7394 | wxTextAttr result; | |
7395 | PyObject * obj0 = 0 ; | |
7396 | PyObject * obj1 = 0 ; | |
7397 | PyObject * obj2 = 0 ; | |
7398 | char *kwnames[] = { | |
7399 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7400 | }; | |
7401 | ||
7402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7405 | SWIG_fail; | |
d14a1e28 | 7406 | if (arg1 == NULL) { |
2f4c0a16 RD |
7407 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7408 | SWIG_fail; | |
d14a1e28 | 7409 | } |
2f4c0a16 RD |
7410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7411 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7412 | SWIG_fail; | |
d14a1e28 | 7413 | if (arg2 == NULL) { |
2f4c0a16 RD |
7414 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7415 | SWIG_fail; | |
d14a1e28 | 7416 | } |
2f4c0a16 RD |
7417 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7419 | { |
7420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7421 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7422 | ||
7423 | wxPyEndAllowThreads(__tstate); | |
7424 | if (PyErr_Occurred()) SWIG_fail; | |
7425 | } | |
7426 | { | |
7427 | wxTextAttr * resultptr; | |
7428 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
2f4c0a16 | 7429 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7430 | } |
7431 | return resultobj; | |
7432 | fail: | |
7433 | return NULL; | |
7434 | } | |
7435 | ||
7436 | ||
7437 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7438 | PyObject *obj; | |
7439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7440 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7441 | Py_INCREF(obj); | |
7442 | return Py_BuildValue((char *)""); | |
7443 | } | |
7444 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7445 | PyObject *resultobj; | |
7446 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7447 | int arg2 ; |
d14a1e28 RD |
7448 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7449 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7450 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7451 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7452 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7453 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7454 | long arg6 = (long) 0 ; | |
7455 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7456 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7457 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7458 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7459 | wxTextCtrl *result; | |
423f194a | 7460 | bool temp3 = False ; |
d14a1e28 RD |
7461 | wxPoint temp4 ; |
7462 | wxSize temp5 ; | |
423f194a | 7463 | bool temp8 = False ; |
d14a1e28 | 7464 | PyObject * obj0 = 0 ; |
8edf1c75 | 7465 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7466 | PyObject * obj2 = 0 ; |
7467 | PyObject * obj3 = 0 ; | |
7468 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7469 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7470 | PyObject * obj6 = 0 ; |
7471 | PyObject * obj7 = 0 ; | |
7472 | char *kwnames[] = { | |
7473 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7474 | }; | |
7475 | ||
8edf1c75 | 7476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
7477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7479 | arg2 = (int) SWIG_AsInt(obj1); | |
7480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7481 | if (obj2) { |
7482 | { | |
7483 | arg3 = wxString_in_helper(obj2); | |
7484 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7485 | temp3 = True; |
d14a1e28 RD |
7486 | } |
7487 | } | |
7488 | if (obj3) { | |
7489 | { | |
7490 | arg4 = &temp4; | |
7491 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7492 | } | |
7493 | } | |
7494 | if (obj4) { | |
7495 | { | |
7496 | arg5 = &temp5; | |
7497 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7498 | } | |
7499 | } | |
8edf1c75 | 7500 | if (obj5) { |
2f4c0a16 RD |
7501 | arg6 = (long) SWIG_AsLong(obj5); |
7502 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7503 | } |
d14a1e28 | 7504 | if (obj6) { |
2f4c0a16 RD |
7505 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7506 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7507 | SWIG_fail; | |
d14a1e28 | 7508 | if (arg7 == NULL) { |
2f4c0a16 RD |
7509 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7510 | SWIG_fail; | |
d14a1e28 RD |
7511 | } |
7512 | } | |
7513 | if (obj7) { | |
7514 | { | |
7515 | arg8 = wxString_in_helper(obj7); | |
7516 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7517 | temp8 = True; |
d14a1e28 RD |
7518 | } |
7519 | } | |
7520 | { | |
7521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7522 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7523 | ||
7524 | wxPyEndAllowThreads(__tstate); | |
7525 | if (PyErr_Occurred()) SWIG_fail; | |
7526 | } | |
7527 | { | |
7528 | resultobj = wxPyMake_wxObject(result); | |
7529 | } | |
7530 | { | |
7531 | if (temp3) | |
7532 | delete arg3; | |
7533 | } | |
7534 | { | |
7535 | if (temp8) | |
7536 | delete arg8; | |
7537 | } | |
7538 | return resultobj; | |
7539 | fail: | |
7540 | { | |
7541 | if (temp3) | |
7542 | delete arg3; | |
7543 | } | |
7544 | { | |
7545 | if (temp8) | |
7546 | delete arg8; | |
7547 | } | |
7548 | return NULL; | |
7549 | } | |
7550 | ||
7551 | ||
7552 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7553 | PyObject *resultobj; | |
7554 | wxTextCtrl *result; | |
7555 | char *kwnames[] = { | |
7556 | NULL | |
7557 | }; | |
7558 | ||
7559 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7560 | { | |
7561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7562 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7563 | ||
7564 | wxPyEndAllowThreads(__tstate); | |
7565 | if (PyErr_Occurred()) SWIG_fail; | |
7566 | } | |
7567 | { | |
7568 | resultobj = wxPyMake_wxObject(result); | |
7569 | } | |
7570 | return resultobj; | |
7571 | fail: | |
7572 | return NULL; | |
7573 | } | |
7574 | ||
7575 | ||
7576 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7577 | PyObject *resultobj; | |
7578 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7579 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7580 | int arg3 ; |
d14a1e28 RD |
7581 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7582 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7583 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7584 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7585 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7586 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7587 | long arg7 = (long) 0 ; | |
7588 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7589 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7590 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7591 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7592 | bool result; | |
423f194a | 7593 | bool temp4 = False ; |
d14a1e28 RD |
7594 | wxPoint temp5 ; |
7595 | wxSize temp6 ; | |
423f194a | 7596 | bool temp9 = False ; |
d14a1e28 RD |
7597 | PyObject * obj0 = 0 ; |
7598 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7599 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7600 | PyObject * obj3 = 0 ; |
7601 | PyObject * obj4 = 0 ; | |
7602 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7603 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7604 | PyObject * obj7 = 0 ; |
7605 | PyObject * obj8 = 0 ; | |
7606 | char *kwnames[] = { | |
7607 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7608 | }; | |
7609 | ||
8edf1c75 | 7610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
7611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7613 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7614 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7615 | arg3 = (int) SWIG_AsInt(obj2); | |
7616 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7617 | if (obj3) { |
7618 | { | |
7619 | arg4 = wxString_in_helper(obj3); | |
7620 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7621 | temp4 = True; |
d14a1e28 RD |
7622 | } |
7623 | } | |
7624 | if (obj4) { | |
7625 | { | |
7626 | arg5 = &temp5; | |
7627 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7628 | } | |
7629 | } | |
7630 | if (obj5) { | |
7631 | { | |
7632 | arg6 = &temp6; | |
7633 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7634 | } | |
7635 | } | |
8edf1c75 | 7636 | if (obj6) { |
2f4c0a16 RD |
7637 | arg7 = (long) SWIG_AsLong(obj6); |
7638 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7639 | } |
d14a1e28 | 7640 | if (obj7) { |
2f4c0a16 RD |
7641 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
7642 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7643 | SWIG_fail; | |
d14a1e28 | 7644 | if (arg8 == NULL) { |
2f4c0a16 RD |
7645 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7646 | SWIG_fail; | |
d14a1e28 RD |
7647 | } |
7648 | } | |
7649 | if (obj8) { | |
7650 | { | |
7651 | arg9 = wxString_in_helper(obj8); | |
7652 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7653 | temp9 = True; |
d14a1e28 RD |
7654 | } |
7655 | } | |
7656 | { | |
7657 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7658 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7659 | ||
7660 | wxPyEndAllowThreads(__tstate); | |
7661 | if (PyErr_Occurred()) SWIG_fail; | |
7662 | } | |
4f89f6a3 RD |
7663 | { |
7664 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7665 | } | |
d14a1e28 RD |
7666 | { |
7667 | if (temp4) | |
7668 | delete arg4; | |
7669 | } | |
7670 | { | |
7671 | if (temp9) | |
7672 | delete arg9; | |
7673 | } | |
7674 | return resultobj; | |
7675 | fail: | |
7676 | { | |
7677 | if (temp4) | |
7678 | delete arg4; | |
7679 | } | |
7680 | { | |
7681 | if (temp9) | |
7682 | delete arg9; | |
7683 | } | |
7684 | return NULL; | |
7685 | } | |
7686 | ||
7687 | ||
7688 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7689 | PyObject *resultobj; | |
7690 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7691 | wxString result; | |
7692 | PyObject * obj0 = 0 ; | |
7693 | char *kwnames[] = { | |
7694 | (char *) "self", NULL | |
7695 | }; | |
7696 | ||
7697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7698 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7699 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7700 | { |
7701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7702 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7703 | ||
7704 | wxPyEndAllowThreads(__tstate); | |
7705 | if (PyErr_Occurred()) SWIG_fail; | |
7706 | } | |
7707 | { | |
7708 | #if wxUSE_UNICODE | |
7709 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7710 | #else | |
7711 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7712 | #endif | |
7713 | } | |
7714 | return resultobj; | |
7715 | fail: | |
7716 | return NULL; | |
7717 | } | |
7718 | ||
7719 | ||
7720 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7721 | PyObject *resultobj; | |
7722 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7723 | wxString *arg2 = 0 ; | |
423f194a | 7724 | bool temp2 = False ; |
d14a1e28 RD |
7725 | PyObject * obj0 = 0 ; |
7726 | PyObject * obj1 = 0 ; | |
7727 | char *kwnames[] = { | |
7728 | (char *) "self",(char *) "value", NULL | |
7729 | }; | |
7730 | ||
7731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7734 | { |
7735 | arg2 = wxString_in_helper(obj1); | |
7736 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7737 | temp2 = True; |
d14a1e28 RD |
7738 | } |
7739 | { | |
7740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7741 | (arg1)->SetValue((wxString const &)*arg2); | |
7742 | ||
7743 | wxPyEndAllowThreads(__tstate); | |
7744 | if (PyErr_Occurred()) SWIG_fail; | |
7745 | } | |
7746 | Py_INCREF(Py_None); resultobj = Py_None; | |
7747 | { | |
7748 | if (temp2) | |
7749 | delete arg2; | |
7750 | } | |
7751 | return resultobj; | |
7752 | fail: | |
7753 | { | |
7754 | if (temp2) | |
7755 | delete arg2; | |
7756 | } | |
7757 | return NULL; | |
7758 | } | |
7759 | ||
7760 | ||
7761 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7762 | PyObject *resultobj; | |
7763 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7764 | long arg2 ; | |
7765 | long arg3 ; | |
7766 | wxString result; | |
7767 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7768 | PyObject * obj1 = 0 ; |
7769 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7770 | char *kwnames[] = { |
7771 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7772 | }; | |
7773 | ||
8edf1c75 | 7774 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7775 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7776 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7777 | arg2 = (long) SWIG_AsLong(obj1); | |
7778 | if (PyErr_Occurred()) SWIG_fail; | |
7779 | arg3 = (long) SWIG_AsLong(obj2); | |
7780 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7781 | { |
7782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7783 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7784 | ||
7785 | wxPyEndAllowThreads(__tstate); | |
7786 | if (PyErr_Occurred()) SWIG_fail; | |
7787 | } | |
7788 | { | |
7789 | #if wxUSE_UNICODE | |
7790 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7791 | #else | |
7792 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7793 | #endif | |
7794 | } | |
7795 | return resultobj; | |
7796 | fail: | |
7797 | return NULL; | |
7798 | } | |
7799 | ||
7800 | ||
7801 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7802 | PyObject *resultobj; | |
7803 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7804 | long arg2 ; | |
7805 | int result; | |
7806 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7807 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7808 | char *kwnames[] = { |
7809 | (char *) "self",(char *) "lineNo", NULL | |
7810 | }; | |
7811 | ||
8edf1c75 | 7812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7815 | arg2 = (long) SWIG_AsLong(obj1); | |
7816 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7817 | { |
7818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7819 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7820 | ||
7821 | wxPyEndAllowThreads(__tstate); | |
7822 | if (PyErr_Occurred()) SWIG_fail; | |
7823 | } | |
2f4c0a16 | 7824 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7825 | return resultobj; |
7826 | fail: | |
7827 | return NULL; | |
7828 | } | |
7829 | ||
7830 | ||
7831 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7832 | PyObject *resultobj; | |
7833 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7834 | long arg2 ; | |
7835 | wxString result; | |
7836 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7837 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7838 | char *kwnames[] = { |
7839 | (char *) "self",(char *) "lineNo", NULL | |
7840 | }; | |
7841 | ||
8edf1c75 | 7842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7845 | arg2 = (long) SWIG_AsLong(obj1); | |
7846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7847 | { |
7848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7849 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7850 | ||
7851 | wxPyEndAllowThreads(__tstate); | |
7852 | if (PyErr_Occurred()) SWIG_fail; | |
7853 | } | |
7854 | { | |
7855 | #if wxUSE_UNICODE | |
7856 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7857 | #else | |
7858 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7859 | #endif | |
7860 | } | |
7861 | return resultobj; | |
7862 | fail: | |
7863 | return NULL; | |
7864 | } | |
7865 | ||
7866 | ||
7867 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7868 | PyObject *resultobj; | |
7869 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7870 | int result; | |
7871 | PyObject * obj0 = 0 ; | |
7872 | char *kwnames[] = { | |
7873 | (char *) "self", NULL | |
7874 | }; | |
7875 | ||
7876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7879 | { |
7880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7881 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7882 | ||
7883 | wxPyEndAllowThreads(__tstate); | |
7884 | if (PyErr_Occurred()) SWIG_fail; | |
7885 | } | |
2f4c0a16 | 7886 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7887 | return resultobj; |
7888 | fail: | |
7889 | return NULL; | |
7890 | } | |
7891 | ||
7892 | ||
7893 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7894 | PyObject *resultobj; | |
7895 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7896 | bool result; | |
7897 | PyObject * obj0 = 0 ; | |
7898 | char *kwnames[] = { | |
7899 | (char *) "self", NULL | |
7900 | }; | |
7901 | ||
7902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7905 | { |
7906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7907 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7908 | ||
7909 | wxPyEndAllowThreads(__tstate); | |
7910 | if (PyErr_Occurred()) SWIG_fail; | |
7911 | } | |
4f89f6a3 RD |
7912 | { |
7913 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7914 | } | |
d14a1e28 RD |
7915 | return resultobj; |
7916 | fail: | |
7917 | return NULL; | |
7918 | } | |
7919 | ||
7920 | ||
7921 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7922 | PyObject *resultobj; | |
7923 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7924 | bool result; | |
7925 | PyObject * obj0 = 0 ; | |
7926 | char *kwnames[] = { | |
7927 | (char *) "self", NULL | |
7928 | }; | |
7929 | ||
7930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7933 | { |
7934 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7935 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7936 | ||
7937 | wxPyEndAllowThreads(__tstate); | |
7938 | if (PyErr_Occurred()) SWIG_fail; | |
7939 | } | |
4f89f6a3 RD |
7940 | { |
7941 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7942 | } | |
d14a1e28 RD |
7943 | return resultobj; |
7944 | fail: | |
7945 | return NULL; | |
7946 | } | |
7947 | ||
7948 | ||
7949 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7950 | PyObject *resultobj; | |
7951 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7952 | bool result; | |
7953 | PyObject * obj0 = 0 ; | |
7954 | char *kwnames[] = { | |
7955 | (char *) "self", NULL | |
7956 | }; | |
7957 | ||
7958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7961 | { |
7962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7963 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7964 | ||
7965 | wxPyEndAllowThreads(__tstate); | |
7966 | if (PyErr_Occurred()) SWIG_fail; | |
7967 | } | |
4f89f6a3 RD |
7968 | { |
7969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7970 | } | |
d14a1e28 RD |
7971 | return resultobj; |
7972 | fail: | |
7973 | return NULL; | |
7974 | } | |
7975 | ||
7976 | ||
7977 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7978 | PyObject *resultobj; | |
7979 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7980 | bool result; | |
7981 | PyObject * obj0 = 0 ; | |
7982 | char *kwnames[] = { | |
7983 | (char *) "self", NULL | |
7984 | }; | |
7985 | ||
7986 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7987 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7988 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7989 | { |
7990 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7991 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
7992 | ||
7993 | wxPyEndAllowThreads(__tstate); | |
7994 | if (PyErr_Occurred()) SWIG_fail; | |
7995 | } | |
4f89f6a3 RD |
7996 | { |
7997 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7998 | } | |
d14a1e28 RD |
7999 | return resultobj; |
8000 | fail: | |
8001 | return NULL; | |
8002 | } | |
8003 | ||
8004 | ||
8005 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8006 | PyObject *resultobj; | |
8007 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8008 | long *arg2 = (long *) 0 ; | |
8009 | long *arg3 = (long *) 0 ; | |
8010 | long temp2 ; | |
8011 | long temp3 ; | |
8012 | PyObject * obj0 = 0 ; | |
8013 | char *kwnames[] = { | |
8014 | (char *) "self", NULL | |
8015 | }; | |
8016 | ||
8017 | arg2 = &temp2; | |
8018 | arg3 = &temp3; | |
8019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8022 | { |
8023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8024 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8025 | ||
8026 | wxPyEndAllowThreads(__tstate); | |
8027 | if (PyErr_Occurred()) SWIG_fail; | |
8028 | } | |
8029 | Py_INCREF(Py_None); resultobj = Py_None; | |
8030 | { | |
8031 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8032 | resultobj = t_output_helper(resultobj,o); | |
8033 | } | |
8034 | { | |
8035 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8036 | resultobj = t_output_helper(resultobj,o); | |
8037 | } | |
8038 | return resultobj; | |
8039 | fail: | |
8040 | return NULL; | |
8041 | } | |
8042 | ||
8043 | ||
8044 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8045 | PyObject *resultobj; | |
8046 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8047 | wxString result; | |
8048 | PyObject * obj0 = 0 ; | |
8049 | char *kwnames[] = { | |
8050 | (char *) "self", NULL | |
8051 | }; | |
8052 | ||
8053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8056 | { |
8057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8058 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8059 | ||
8060 | wxPyEndAllowThreads(__tstate); | |
8061 | if (PyErr_Occurred()) SWIG_fail; | |
8062 | } | |
8063 | { | |
8064 | #if wxUSE_UNICODE | |
8065 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8066 | #else | |
8067 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8068 | #endif | |
8069 | } | |
8070 | return resultobj; | |
8071 | fail: | |
8072 | return NULL; | |
8073 | } | |
8074 | ||
8075 | ||
8076 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8077 | PyObject *resultobj; | |
8078 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8079 | PyObject * obj0 = 0 ; | |
8080 | char *kwnames[] = { | |
8081 | (char *) "self", NULL | |
8082 | }; | |
8083 | ||
8084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8087 | { |
8088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8089 | (arg1)->Clear(); | |
8090 | ||
8091 | wxPyEndAllowThreads(__tstate); | |
8092 | if (PyErr_Occurred()) SWIG_fail; | |
8093 | } | |
8094 | Py_INCREF(Py_None); resultobj = Py_None; | |
8095 | return resultobj; | |
8096 | fail: | |
8097 | return NULL; | |
8098 | } | |
8099 | ||
8100 | ||
8101 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8102 | PyObject *resultobj; | |
8103 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8104 | long arg2 ; | |
8105 | long arg3 ; | |
8106 | wxString *arg4 = 0 ; | |
423f194a | 8107 | bool temp4 = False ; |
d14a1e28 | 8108 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8109 | PyObject * obj1 = 0 ; |
8110 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8111 | PyObject * obj3 = 0 ; |
8112 | char *kwnames[] = { | |
8113 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8114 | }; | |
8115 | ||
8edf1c75 | 8116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8119 | arg2 = (long) SWIG_AsLong(obj1); | |
8120 | if (PyErr_Occurred()) SWIG_fail; | |
8121 | arg3 = (long) SWIG_AsLong(obj2); | |
8122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8123 | { |
8124 | arg4 = wxString_in_helper(obj3); | |
8125 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8126 | temp4 = True; |
d14a1e28 RD |
8127 | } |
8128 | { | |
8129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8130 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8131 | ||
8132 | wxPyEndAllowThreads(__tstate); | |
8133 | if (PyErr_Occurred()) SWIG_fail; | |
8134 | } | |
8135 | Py_INCREF(Py_None); resultobj = Py_None; | |
8136 | { | |
8137 | if (temp4) | |
8138 | delete arg4; | |
8139 | } | |
8140 | return resultobj; | |
8141 | fail: | |
8142 | { | |
8143 | if (temp4) | |
8144 | delete arg4; | |
8145 | } | |
8146 | return NULL; | |
8147 | } | |
8148 | ||
8149 | ||
8150 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8151 | PyObject *resultobj; | |
8152 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8153 | long arg2 ; | |
8154 | long arg3 ; | |
8155 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8156 | PyObject * obj1 = 0 ; |
8157 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8158 | char *kwnames[] = { |
8159 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8160 | }; | |
8161 | ||
8edf1c75 | 8162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8165 | arg2 = (long) SWIG_AsLong(obj1); | |
8166 | if (PyErr_Occurred()) SWIG_fail; | |
8167 | arg3 = (long) SWIG_AsLong(obj2); | |
8168 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8169 | { |
8170 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8171 | (arg1)->Remove(arg2,arg3); | |
8172 | ||
8173 | wxPyEndAllowThreads(__tstate); | |
8174 | if (PyErr_Occurred()) SWIG_fail; | |
8175 | } | |
8176 | Py_INCREF(Py_None); resultobj = Py_None; | |
8177 | return resultobj; | |
8178 | fail: | |
8179 | return NULL; | |
8180 | } | |
8181 | ||
8182 | ||
8183 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8184 | PyObject *resultobj; | |
8185 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8186 | wxString *arg2 = 0 ; | |
8187 | bool result; | |
423f194a | 8188 | bool temp2 = False ; |
d14a1e28 RD |
8189 | PyObject * obj0 = 0 ; |
8190 | PyObject * obj1 = 0 ; | |
8191 | char *kwnames[] = { | |
8192 | (char *) "self",(char *) "file", NULL | |
8193 | }; | |
8194 | ||
8195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8198 | { |
8199 | arg2 = wxString_in_helper(obj1); | |
8200 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8201 | temp2 = True; |
d14a1e28 RD |
8202 | } |
8203 | { | |
8204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8205 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8206 | ||
8207 | wxPyEndAllowThreads(__tstate); | |
8208 | if (PyErr_Occurred()) SWIG_fail; | |
8209 | } | |
4f89f6a3 RD |
8210 | { |
8211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8212 | } | |
d14a1e28 RD |
8213 | { |
8214 | if (temp2) | |
8215 | delete arg2; | |
8216 | } | |
8217 | return resultobj; | |
8218 | fail: | |
8219 | { | |
8220 | if (temp2) | |
8221 | delete arg2; | |
8222 | } | |
8223 | return NULL; | |
8224 | } | |
8225 | ||
8226 | ||
8227 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8228 | PyObject *resultobj; | |
8229 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8230 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8231 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8232 | bool result; | |
423f194a | 8233 | bool temp2 = False ; |
d14a1e28 RD |
8234 | PyObject * obj0 = 0 ; |
8235 | PyObject * obj1 = 0 ; | |
8236 | char *kwnames[] = { | |
8237 | (char *) "self",(char *) "file", NULL | |
8238 | }; | |
8239 | ||
8240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8243 | if (obj1) { |
8244 | { | |
8245 | arg2 = wxString_in_helper(obj1); | |
8246 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8247 | temp2 = True; |
d14a1e28 RD |
8248 | } |
8249 | } | |
8250 | { | |
8251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8252 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8253 | ||
8254 | wxPyEndAllowThreads(__tstate); | |
8255 | if (PyErr_Occurred()) SWIG_fail; | |
8256 | } | |
4f89f6a3 RD |
8257 | { |
8258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8259 | } | |
d14a1e28 RD |
8260 | { |
8261 | if (temp2) | |
8262 | delete arg2; | |
8263 | } | |
8264 | return resultobj; | |
8265 | fail: | |
8266 | { | |
8267 | if (temp2) | |
8268 | delete arg2; | |
8269 | } | |
8270 | return NULL; | |
8271 | } | |
8272 | ||
8273 | ||
8274 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8275 | PyObject *resultobj; | |
8276 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8277 | PyObject * obj0 = 0 ; | |
8278 | char *kwnames[] = { | |
8279 | (char *) "self", NULL | |
8280 | }; | |
8281 | ||
8282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8285 | { |
8286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8287 | (arg1)->MarkDirty(); | |
8288 | ||
8289 | wxPyEndAllowThreads(__tstate); | |
8290 | if (PyErr_Occurred()) SWIG_fail; | |
8291 | } | |
8292 | Py_INCREF(Py_None); resultobj = Py_None; | |
8293 | return resultobj; | |
8294 | fail: | |
8295 | return NULL; | |
8296 | } | |
8297 | ||
8298 | ||
8299 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8300 | PyObject *resultobj; | |
8301 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8302 | PyObject * obj0 = 0 ; | |
8303 | char *kwnames[] = { | |
8304 | (char *) "self", NULL | |
8305 | }; | |
8306 | ||
8307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8310 | { |
8311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8312 | (arg1)->DiscardEdits(); | |
8313 | ||
8314 | wxPyEndAllowThreads(__tstate); | |
8315 | if (PyErr_Occurred()) SWIG_fail; | |
8316 | } | |
8317 | Py_INCREF(Py_None); resultobj = Py_None; | |
8318 | return resultobj; | |
8319 | fail: | |
8320 | return NULL; | |
8321 | } | |
8322 | ||
8323 | ||
8324 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8325 | PyObject *resultobj; | |
8326 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8327 | unsigned long arg2 ; | |
8328 | PyObject * obj0 = 0 ; | |
8329 | PyObject * obj1 = 0 ; | |
8330 | char *kwnames[] = { | |
8331 | (char *) "self",(char *) "len", NULL | |
8332 | }; | |
8333 | ||
8334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8337 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8338 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8339 | { |
8340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8341 | (arg1)->SetMaxLength(arg2); | |
8342 | ||
8343 | wxPyEndAllowThreads(__tstate); | |
8344 | if (PyErr_Occurred()) SWIG_fail; | |
8345 | } | |
8346 | Py_INCREF(Py_None); resultobj = Py_None; | |
8347 | return resultobj; | |
8348 | fail: | |
8349 | return NULL; | |
8350 | } | |
8351 | ||
8352 | ||
8353 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8354 | PyObject *resultobj; | |
8355 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8356 | wxString *arg2 = 0 ; | |
423f194a | 8357 | bool temp2 = False ; |
d14a1e28 RD |
8358 | PyObject * obj0 = 0 ; |
8359 | PyObject * obj1 = 0 ; | |
8360 | char *kwnames[] = { | |
8361 | (char *) "self",(char *) "text", NULL | |
8362 | }; | |
8363 | ||
8364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8367 | { |
8368 | arg2 = wxString_in_helper(obj1); | |
8369 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8370 | temp2 = True; |
d14a1e28 RD |
8371 | } |
8372 | { | |
8373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8374 | (arg1)->WriteText((wxString const &)*arg2); | |
8375 | ||
8376 | wxPyEndAllowThreads(__tstate); | |
8377 | if (PyErr_Occurred()) SWIG_fail; | |
8378 | } | |
8379 | Py_INCREF(Py_None); resultobj = Py_None; | |
8380 | { | |
8381 | if (temp2) | |
8382 | delete arg2; | |
8383 | } | |
8384 | return resultobj; | |
8385 | fail: | |
8386 | { | |
8387 | if (temp2) | |
8388 | delete arg2; | |
8389 | } | |
8390 | return NULL; | |
8391 | } | |
8392 | ||
8393 | ||
8394 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8395 | PyObject *resultobj; | |
8396 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8397 | wxString *arg2 = 0 ; | |
423f194a | 8398 | bool temp2 = False ; |
d14a1e28 RD |
8399 | PyObject * obj0 = 0 ; |
8400 | PyObject * obj1 = 0 ; | |
8401 | char *kwnames[] = { | |
8402 | (char *) "self",(char *) "text", NULL | |
8403 | }; | |
8404 | ||
8405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8408 | { |
8409 | arg2 = wxString_in_helper(obj1); | |
8410 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8411 | temp2 = True; |
d14a1e28 RD |
8412 | } |
8413 | { | |
8414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8415 | (arg1)->AppendText((wxString const &)*arg2); | |
8416 | ||
8417 | wxPyEndAllowThreads(__tstate); | |
8418 | if (PyErr_Occurred()) SWIG_fail; | |
8419 | } | |
8420 | Py_INCREF(Py_None); resultobj = Py_None; | |
8421 | { | |
8422 | if (temp2) | |
8423 | delete arg2; | |
8424 | } | |
8425 | return resultobj; | |
8426 | fail: | |
8427 | { | |
8428 | if (temp2) | |
8429 | delete arg2; | |
8430 | } | |
8431 | return NULL; | |
8432 | } | |
8433 | ||
8434 | ||
8435 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8436 | PyObject *resultobj; | |
8437 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8438 | wxKeyEvent *arg2 = 0 ; | |
8439 | bool result; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | PyObject * obj1 = 0 ; | |
8442 | char *kwnames[] = { | |
8443 | (char *) "self",(char *) "event", NULL | |
8444 | }; | |
8445 | ||
8446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8449 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8450 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8451 | SWIG_fail; | |
d14a1e28 | 8452 | if (arg2 == NULL) { |
2f4c0a16 RD |
8453 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8454 | SWIG_fail; | |
d14a1e28 RD |
8455 | } |
8456 | { | |
8457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8458 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8459 | ||
8460 | wxPyEndAllowThreads(__tstate); | |
8461 | if (PyErr_Occurred()) SWIG_fail; | |
8462 | } | |
4f89f6a3 RD |
8463 | { |
8464 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8465 | } | |
d14a1e28 RD |
8466 | return resultobj; |
8467 | fail: | |
8468 | return NULL; | |
8469 | } | |
8470 | ||
8471 | ||
8472 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8473 | PyObject *resultobj; | |
8474 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8475 | long arg2 ; | |
8476 | long arg3 ; | |
8477 | wxTextAttr *arg4 = 0 ; | |
8478 | bool result; | |
8479 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8480 | PyObject * obj1 = 0 ; |
8481 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8482 | PyObject * obj3 = 0 ; |
8483 | char *kwnames[] = { | |
8484 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8485 | }; | |
8486 | ||
8edf1c75 | 8487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8490 | arg2 = (long) SWIG_AsLong(obj1); | |
8491 | if (PyErr_Occurred()) SWIG_fail; | |
8492 | arg3 = (long) SWIG_AsLong(obj2); | |
8493 | if (PyErr_Occurred()) SWIG_fail; | |
8494 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8495 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8496 | SWIG_fail; | |
d14a1e28 | 8497 | if (arg4 == NULL) { |
2f4c0a16 RD |
8498 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8499 | SWIG_fail; | |
d14a1e28 RD |
8500 | } |
8501 | { | |
8502 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8503 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8504 | ||
8505 | wxPyEndAllowThreads(__tstate); | |
8506 | if (PyErr_Occurred()) SWIG_fail; | |
8507 | } | |
4f89f6a3 RD |
8508 | { |
8509 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8510 | } | |
d14a1e28 RD |
8511 | return resultobj; |
8512 | fail: | |
8513 | return NULL; | |
8514 | } | |
8515 | ||
8516 | ||
8517 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8518 | PyObject *resultobj; | |
8519 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8520 | long arg2 ; | |
8521 | wxTextAttr *arg3 = 0 ; | |
8522 | bool result; | |
8523 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8524 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8525 | PyObject * obj2 = 0 ; |
8526 | char *kwnames[] = { | |
8527 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8528 | }; | |
8529 | ||
8edf1c75 | 8530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8533 | arg2 = (long) SWIG_AsLong(obj1); | |
8534 | if (PyErr_Occurred()) SWIG_fail; | |
8535 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8536 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8537 | SWIG_fail; | |
d14a1e28 | 8538 | if (arg3 == NULL) { |
2f4c0a16 RD |
8539 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8540 | SWIG_fail; | |
d14a1e28 RD |
8541 | } |
8542 | { | |
8543 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8544 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8545 | ||
8546 | wxPyEndAllowThreads(__tstate); | |
8547 | if (PyErr_Occurred()) SWIG_fail; | |
8548 | } | |
4f89f6a3 RD |
8549 | { |
8550 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8551 | } | |
d14a1e28 RD |
8552 | return resultobj; |
8553 | fail: | |
8554 | return NULL; | |
8555 | } | |
8556 | ||
8557 | ||
8558 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8559 | PyObject *resultobj; | |
8560 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8561 | wxTextAttr *arg2 = 0 ; | |
8562 | bool result; | |
8563 | PyObject * obj0 = 0 ; | |
8564 | PyObject * obj1 = 0 ; | |
8565 | char *kwnames[] = { | |
8566 | (char *) "self",(char *) "style", NULL | |
8567 | }; | |
8568 | ||
8569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8572 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8573 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8574 | SWIG_fail; | |
d14a1e28 | 8575 | if (arg2 == NULL) { |
2f4c0a16 RD |
8576 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8577 | SWIG_fail; | |
d14a1e28 RD |
8578 | } |
8579 | { | |
8580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8581 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8582 | ||
8583 | wxPyEndAllowThreads(__tstate); | |
8584 | if (PyErr_Occurred()) SWIG_fail; | |
8585 | } | |
4f89f6a3 RD |
8586 | { |
8587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8588 | } | |
d14a1e28 RD |
8589 | return resultobj; |
8590 | fail: | |
8591 | return NULL; | |
8592 | } | |
8593 | ||
8594 | ||
8595 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8596 | PyObject *resultobj; | |
8597 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8598 | wxTextAttr *result; | |
8599 | PyObject * obj0 = 0 ; | |
8600 | char *kwnames[] = { | |
8601 | (char *) "self", NULL | |
8602 | }; | |
8603 | ||
8604 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8605 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8606 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8607 | { |
8608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8609 | { | |
8610 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8611 | result = (wxTextAttr *) &_result_ref; | |
8612 | } | |
8613 | ||
8614 | wxPyEndAllowThreads(__tstate); | |
8615 | if (PyErr_Occurred()) SWIG_fail; | |
8616 | } | |
2f4c0a16 | 8617 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
8618 | return resultobj; |
8619 | fail: | |
8620 | return NULL; | |
8621 | } | |
8622 | ||
8623 | ||
8624 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8625 | PyObject *resultobj; | |
8626 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8627 | long arg2 ; | |
8628 | long arg3 ; | |
8629 | long result; | |
8630 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8631 | PyObject * obj1 = 0 ; |
8632 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8633 | char *kwnames[] = { |
8634 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8635 | }; | |
8636 | ||
8edf1c75 | 8637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8640 | arg2 = (long) SWIG_AsLong(obj1); | |
8641 | if (PyErr_Occurred()) SWIG_fail; | |
8642 | arg3 = (long) SWIG_AsLong(obj2); | |
8643 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8644 | { |
8645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8646 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8647 | ||
8648 | wxPyEndAllowThreads(__tstate); | |
8649 | if (PyErr_Occurred()) SWIG_fail; | |
8650 | } | |
2f4c0a16 | 8651 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8652 | return resultobj; |
8653 | fail: | |
8654 | return NULL; | |
8655 | } | |
8656 | ||
8657 | ||
8658 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8659 | PyObject *resultobj; | |
8660 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8661 | long arg2 ; | |
8662 | long *arg3 = (long *) 0 ; | |
8663 | long *arg4 = (long *) 0 ; | |
8664 | long temp3 ; | |
8665 | long temp4 ; | |
8666 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8668 | char *kwnames[] = { |
8669 | (char *) "self",(char *) "pos", NULL | |
8670 | }; | |
8671 | ||
8672 | arg3 = &temp3; | |
8673 | arg4 = &temp4; | |
8edf1c75 | 8674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8677 | arg2 = (long) SWIG_AsLong(obj1); | |
8678 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8679 | { |
8680 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8681 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8682 | ||
8683 | wxPyEndAllowThreads(__tstate); | |
8684 | if (PyErr_Occurred()) SWIG_fail; | |
8685 | } | |
8686 | Py_INCREF(Py_None); resultobj = Py_None; | |
8687 | { | |
8688 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8689 | resultobj = t_output_helper(resultobj,o); | |
8690 | } | |
8691 | { | |
8692 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8693 | resultobj = t_output_helper(resultobj,o); | |
8694 | } | |
8695 | return resultobj; | |
8696 | fail: | |
8697 | return NULL; | |
8698 | } | |
8699 | ||
8700 | ||
8701 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8702 | PyObject *resultobj; | |
8703 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8704 | long arg2 ; | |
8705 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8706 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8707 | char *kwnames[] = { |
8708 | (char *) "self",(char *) "pos", NULL | |
8709 | }; | |
8710 | ||
8edf1c75 | 8711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8714 | arg2 = (long) SWIG_AsLong(obj1); | |
8715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8716 | { |
8717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8718 | (arg1)->ShowPosition(arg2); | |
8719 | ||
8720 | wxPyEndAllowThreads(__tstate); | |
8721 | if (PyErr_Occurred()) SWIG_fail; | |
8722 | } | |
8723 | Py_INCREF(Py_None); resultobj = Py_None; | |
8724 | return resultobj; | |
8725 | fail: | |
8726 | return NULL; | |
8727 | } | |
8728 | ||
8729 | ||
4e760a36 RD |
8730 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8731 | PyObject *resultobj; | |
8732 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8733 | wxPoint *arg2 = 0 ; | |
8734 | long *arg3 = (long *) 0 ; | |
8735 | long *arg4 = (long *) 0 ; | |
8736 | int result; | |
8737 | wxPoint temp2 ; | |
8738 | long temp3 ; | |
8739 | long temp4 ; | |
8740 | PyObject * obj0 = 0 ; | |
8741 | PyObject * obj1 = 0 ; | |
8742 | char *kwnames[] = { | |
8743 | (char *) "self",(char *) "pt", NULL | |
8744 | }; | |
8745 | ||
8746 | arg3 = &temp3; | |
8747 | arg4 = &temp4; | |
8748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
8751 | { |
8752 | arg2 = &temp2; | |
8753 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8754 | } | |
8755 | { | |
8756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8757 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8758 | ||
8759 | wxPyEndAllowThreads(__tstate); | |
8760 | if (PyErr_Occurred()) SWIG_fail; | |
8761 | } | |
2f4c0a16 | 8762 | resultobj = SWIG_FromInt((int)result); |
4e760a36 RD |
8763 | { |
8764 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8765 | resultobj = t_output_helper(resultobj,o); | |
8766 | } | |
8767 | { | |
8768 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8769 | resultobj = t_output_helper(resultobj,o); | |
8770 | } | |
8771 | return resultobj; | |
8772 | fail: | |
8773 | return NULL; | |
8774 | } | |
8775 | ||
8776 | ||
d14a1e28 RD |
8777 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8778 | PyObject *resultobj; | |
8779 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8780 | PyObject * obj0 = 0 ; | |
8781 | char *kwnames[] = { | |
8782 | (char *) "self", NULL | |
8783 | }; | |
8784 | ||
8785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8788 | { |
8789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8790 | (arg1)->Copy(); | |
8791 | ||
8792 | wxPyEndAllowThreads(__tstate); | |
8793 | if (PyErr_Occurred()) SWIG_fail; | |
8794 | } | |
8795 | Py_INCREF(Py_None); resultobj = Py_None; | |
8796 | return resultobj; | |
8797 | fail: | |
8798 | return NULL; | |
8799 | } | |
8800 | ||
8801 | ||
8802 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8803 | PyObject *resultobj; | |
8804 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8805 | PyObject * obj0 = 0 ; | |
8806 | char *kwnames[] = { | |
8807 | (char *) "self", NULL | |
8808 | }; | |
8809 | ||
8810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8813 | { |
8814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8815 | (arg1)->Cut(); | |
8816 | ||
8817 | wxPyEndAllowThreads(__tstate); | |
8818 | if (PyErr_Occurred()) SWIG_fail; | |
8819 | } | |
8820 | Py_INCREF(Py_None); resultobj = Py_None; | |
8821 | return resultobj; | |
8822 | fail: | |
8823 | return NULL; | |
8824 | } | |
8825 | ||
8826 | ||
8827 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8828 | PyObject *resultobj; | |
8829 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8830 | PyObject * obj0 = 0 ; | |
8831 | char *kwnames[] = { | |
8832 | (char *) "self", NULL | |
8833 | }; | |
8834 | ||
8835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8838 | { |
8839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8840 | (arg1)->Paste(); | |
8841 | ||
8842 | wxPyEndAllowThreads(__tstate); | |
8843 | if (PyErr_Occurred()) SWIG_fail; | |
8844 | } | |
8845 | Py_INCREF(Py_None); resultobj = Py_None; | |
8846 | return resultobj; | |
8847 | fail: | |
8848 | return NULL; | |
8849 | } | |
8850 | ||
8851 | ||
8852 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8853 | PyObject *resultobj; | |
8854 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8855 | bool result; | |
8856 | PyObject * obj0 = 0 ; | |
8857 | char *kwnames[] = { | |
8858 | (char *) "self", NULL | |
8859 | }; | |
8860 | ||
8861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8864 | { |
8865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8866 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8867 | ||
8868 | wxPyEndAllowThreads(__tstate); | |
8869 | if (PyErr_Occurred()) SWIG_fail; | |
8870 | } | |
4f89f6a3 RD |
8871 | { |
8872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8873 | } | |
d14a1e28 RD |
8874 | return resultobj; |
8875 | fail: | |
8876 | return NULL; | |
8877 | } | |
8878 | ||
8879 | ||
8880 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8881 | PyObject *resultobj; | |
8882 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8883 | bool result; | |
8884 | PyObject * obj0 = 0 ; | |
8885 | char *kwnames[] = { | |
8886 | (char *) "self", NULL | |
8887 | }; | |
8888 | ||
8889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8892 | { |
8893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8894 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8895 | ||
8896 | wxPyEndAllowThreads(__tstate); | |
8897 | if (PyErr_Occurred()) SWIG_fail; | |
8898 | } | |
4f89f6a3 RD |
8899 | { |
8900 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8901 | } | |
d14a1e28 RD |
8902 | return resultobj; |
8903 | fail: | |
8904 | return NULL; | |
8905 | } | |
8906 | ||
8907 | ||
8908 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8909 | PyObject *resultobj; | |
8910 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8911 | bool result; | |
8912 | PyObject * obj0 = 0 ; | |
8913 | char *kwnames[] = { | |
8914 | (char *) "self", NULL | |
8915 | }; | |
8916 | ||
8917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8920 | { |
8921 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8922 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8923 | ||
8924 | wxPyEndAllowThreads(__tstate); | |
8925 | if (PyErr_Occurred()) SWIG_fail; | |
8926 | } | |
4f89f6a3 RD |
8927 | { |
8928 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8929 | } | |
d14a1e28 RD |
8930 | return resultobj; |
8931 | fail: | |
8932 | return NULL; | |
8933 | } | |
8934 | ||
8935 | ||
8936 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8937 | PyObject *resultobj; | |
8938 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8939 | PyObject * obj0 = 0 ; | |
8940 | char *kwnames[] = { | |
8941 | (char *) "self", NULL | |
8942 | }; | |
8943 | ||
8944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8947 | { |
8948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8949 | (arg1)->Undo(); | |
8950 | ||
8951 | wxPyEndAllowThreads(__tstate); | |
8952 | if (PyErr_Occurred()) SWIG_fail; | |
8953 | } | |
8954 | Py_INCREF(Py_None); resultobj = Py_None; | |
8955 | return resultobj; | |
8956 | fail: | |
8957 | return NULL; | |
8958 | } | |
8959 | ||
8960 | ||
8961 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8962 | PyObject *resultobj; | |
8963 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8964 | PyObject * obj0 = 0 ; | |
8965 | char *kwnames[] = { | |
8966 | (char *) "self", NULL | |
8967 | }; | |
8968 | ||
8969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8972 | { |
8973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8974 | (arg1)->Redo(); | |
8975 | ||
8976 | wxPyEndAllowThreads(__tstate); | |
8977 | if (PyErr_Occurred()) SWIG_fail; | |
8978 | } | |
8979 | Py_INCREF(Py_None); resultobj = Py_None; | |
8980 | return resultobj; | |
8981 | fail: | |
8982 | return NULL; | |
8983 | } | |
8984 | ||
8985 | ||
8986 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8987 | PyObject *resultobj; | |
8988 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8989 | bool result; | |
8990 | PyObject * obj0 = 0 ; | |
8991 | char *kwnames[] = { | |
8992 | (char *) "self", NULL | |
8993 | }; | |
8994 | ||
8995 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8996 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8997 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8998 | { |
8999 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9000 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9001 | ||
9002 | wxPyEndAllowThreads(__tstate); | |
9003 | if (PyErr_Occurred()) SWIG_fail; | |
9004 | } | |
4f89f6a3 RD |
9005 | { |
9006 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9007 | } | |
d14a1e28 RD |
9008 | return resultobj; |
9009 | fail: | |
9010 | return NULL; | |
9011 | } | |
9012 | ||
9013 | ||
9014 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9015 | PyObject *resultobj; | |
9016 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9017 | bool result; | |
9018 | PyObject * obj0 = 0 ; | |
9019 | char *kwnames[] = { | |
9020 | (char *) "self", NULL | |
9021 | }; | |
9022 | ||
9023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9026 | { |
9027 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9028 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9029 | ||
9030 | wxPyEndAllowThreads(__tstate); | |
9031 | if (PyErr_Occurred()) SWIG_fail; | |
9032 | } | |
4f89f6a3 RD |
9033 | { |
9034 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9035 | } | |
d14a1e28 RD |
9036 | return resultobj; |
9037 | fail: | |
9038 | return NULL; | |
9039 | } | |
9040 | ||
9041 | ||
9042 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9043 | PyObject *resultobj; | |
9044 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9045 | long arg2 ; | |
9046 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9048 | char *kwnames[] = { |
9049 | (char *) "self",(char *) "pos", NULL | |
9050 | }; | |
9051 | ||
8edf1c75 | 9052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9055 | arg2 = (long) SWIG_AsLong(obj1); | |
9056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9057 | { |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | (arg1)->SetInsertionPoint(arg2); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
9064 | Py_INCREF(Py_None); resultobj = Py_None; | |
9065 | return resultobj; | |
9066 | fail: | |
9067 | return NULL; | |
9068 | } | |
9069 | ||
9070 | ||
9071 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9072 | PyObject *resultobj; | |
9073 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9074 | PyObject * obj0 = 0 ; | |
9075 | char *kwnames[] = { | |
9076 | (char *) "self", NULL | |
9077 | }; | |
9078 | ||
9079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9082 | { |
9083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9084 | (arg1)->SetInsertionPointEnd(); | |
9085 | ||
9086 | wxPyEndAllowThreads(__tstate); | |
9087 | if (PyErr_Occurred()) SWIG_fail; | |
9088 | } | |
9089 | Py_INCREF(Py_None); resultobj = Py_None; | |
9090 | return resultobj; | |
9091 | fail: | |
9092 | return NULL; | |
9093 | } | |
9094 | ||
9095 | ||
9096 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9097 | PyObject *resultobj; | |
9098 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9099 | long result; | |
9100 | PyObject * obj0 = 0 ; | |
9101 | char *kwnames[] = { | |
9102 | (char *) "self", NULL | |
9103 | }; | |
9104 | ||
9105 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9106 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9107 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9108 | { |
9109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9110 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9111 | ||
9112 | wxPyEndAllowThreads(__tstate); | |
9113 | if (PyErr_Occurred()) SWIG_fail; | |
9114 | } | |
2f4c0a16 | 9115 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9116 | return resultobj; |
9117 | fail: | |
9118 | return NULL; | |
9119 | } | |
9120 | ||
9121 | ||
9122 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9123 | PyObject *resultobj; | |
9124 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9125 | long result; | |
9126 | PyObject * obj0 = 0 ; | |
9127 | char *kwnames[] = { | |
9128 | (char *) "self", NULL | |
9129 | }; | |
9130 | ||
9131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9134 | { |
9135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9136 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9137 | ||
9138 | wxPyEndAllowThreads(__tstate); | |
9139 | if (PyErr_Occurred()) SWIG_fail; | |
9140 | } | |
2f4c0a16 | 9141 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9142 | return resultobj; |
9143 | fail: | |
9144 | return NULL; | |
9145 | } | |
9146 | ||
9147 | ||
9148 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9149 | PyObject *resultobj; | |
9150 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9151 | long arg2 ; | |
9152 | long arg3 ; | |
9153 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9154 | PyObject * obj1 = 0 ; |
9155 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9156 | char *kwnames[] = { |
9157 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9158 | }; | |
9159 | ||
8edf1c75 | 9160 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9161 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9162 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9163 | arg2 = (long) SWIG_AsLong(obj1); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | arg3 = (long) SWIG_AsLong(obj2); | |
9166 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9167 | { |
9168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9169 | (arg1)->SetSelection(arg2,arg3); | |
9170 | ||
9171 | wxPyEndAllowThreads(__tstate); | |
9172 | if (PyErr_Occurred()) SWIG_fail; | |
9173 | } | |
9174 | Py_INCREF(Py_None); resultobj = Py_None; | |
9175 | return resultobj; | |
9176 | fail: | |
9177 | return NULL; | |
9178 | } | |
9179 | ||
9180 | ||
9181 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9182 | PyObject *resultobj; | |
9183 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9184 | PyObject * obj0 = 0 ; | |
9185 | char *kwnames[] = { | |
9186 | (char *) "self", NULL | |
9187 | }; | |
9188 | ||
9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9192 | { |
9193 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9194 | (arg1)->SelectAll(); | |
9195 | ||
9196 | wxPyEndAllowThreads(__tstate); | |
9197 | if (PyErr_Occurred()) SWIG_fail; | |
9198 | } | |
9199 | Py_INCREF(Py_None); resultobj = Py_None; | |
9200 | return resultobj; | |
9201 | fail: | |
9202 | return NULL; | |
9203 | } | |
9204 | ||
9205 | ||
9206 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9207 | PyObject *resultobj; | |
9208 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9209 | bool arg2 ; | |
9210 | PyObject * obj0 = 0 ; | |
9211 | PyObject * obj1 = 0 ; | |
9212 | char *kwnames[] = { | |
9213 | (char *) "self",(char *) "editable", NULL | |
9214 | }; | |
9215 | ||
9216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9219 | arg2 = (bool) SWIG_AsBool(obj1); | |
9220 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9221 | { |
9222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9223 | (arg1)->SetEditable(arg2); | |
9224 | ||
9225 | wxPyEndAllowThreads(__tstate); | |
9226 | if (PyErr_Occurred()) SWIG_fail; | |
9227 | } | |
9228 | Py_INCREF(Py_None); resultobj = Py_None; | |
9229 | return resultobj; | |
9230 | fail: | |
9231 | return NULL; | |
9232 | } | |
9233 | ||
9234 | ||
9235 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9236 | PyObject *resultobj; | |
9237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 9238 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9239 | bool result; |
9240 | PyObject * obj0 = 0 ; | |
9241 | PyObject * obj1 = 0 ; | |
9242 | char *kwnames[] = { | |
9243 | (char *) "self",(char *) "show", NULL | |
9244 | }; | |
9245 | ||
9246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9249 | if (obj1) { |
2f4c0a16 RD |
9250 | arg2 = (bool) SWIG_AsBool(obj1); |
9251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9252 | } |
9253 | { | |
9254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9255 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9256 | ||
9257 | wxPyEndAllowThreads(__tstate); | |
9258 | if (PyErr_Occurred()) SWIG_fail; | |
9259 | } | |
4f89f6a3 RD |
9260 | { |
9261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9262 | } | |
d14a1e28 RD |
9263 | return resultobj; |
9264 | fail: | |
9265 | return NULL; | |
9266 | } | |
9267 | ||
9268 | ||
9269 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9270 | PyObject *resultobj; | |
9271 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9272 | bool result; | |
9273 | PyObject * obj0 = 0 ; | |
9274 | char *kwnames[] = { | |
9275 | (char *) "self", NULL | |
9276 | }; | |
9277 | ||
9278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9281 | { |
9282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9283 | result = (bool)(arg1)->HideNativeCaret(); | |
9284 | ||
9285 | wxPyEndAllowThreads(__tstate); | |
9286 | if (PyErr_Occurred()) SWIG_fail; | |
9287 | } | |
4f89f6a3 RD |
9288 | { |
9289 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9290 | } | |
d14a1e28 RD |
9291 | return resultobj; |
9292 | fail: | |
9293 | return NULL; | |
9294 | } | |
9295 | ||
9296 | ||
9297 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9298 | PyObject *resultobj; | |
9299 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9300 | wxString *arg2 = 0 ; | |
423f194a | 9301 | bool temp2 = False ; |
d14a1e28 RD |
9302 | PyObject * obj0 = 0 ; |
9303 | PyObject * obj1 = 0 ; | |
9304 | char *kwnames[] = { | |
9305 | (char *) "self",(char *) "text", NULL | |
9306 | }; | |
9307 | ||
9308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9311 | { |
9312 | arg2 = wxString_in_helper(obj1); | |
9313 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9314 | temp2 = True; |
d14a1e28 RD |
9315 | } |
9316 | { | |
9317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9318 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9319 | ||
9320 | wxPyEndAllowThreads(__tstate); | |
9321 | if (PyErr_Occurred()) SWIG_fail; | |
9322 | } | |
9323 | Py_INCREF(Py_None); resultobj = Py_None; | |
9324 | { | |
9325 | if (temp2) | |
9326 | delete arg2; | |
9327 | } | |
9328 | return resultobj; | |
9329 | fail: | |
9330 | { | |
9331 | if (temp2) | |
9332 | delete arg2; | |
9333 | } | |
9334 | return NULL; | |
9335 | } | |
9336 | ||
9337 | ||
9338 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9339 | PyObject *resultobj; | |
9340 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9341 | long arg2 ; | |
9342 | long arg3 ; | |
9343 | wxString result; | |
9344 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9345 | PyObject * obj1 = 0 ; |
9346 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9347 | char *kwnames[] = { |
9348 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9349 | }; | |
9350 | ||
8edf1c75 | 9351 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9352 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9353 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9354 | arg2 = (long) SWIG_AsLong(obj1); | |
9355 | if (PyErr_Occurred()) SWIG_fail; | |
9356 | arg3 = (long) SWIG_AsLong(obj2); | |
9357 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9358 | { |
9359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9360 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9361 | ||
9362 | wxPyEndAllowThreads(__tstate); | |
9363 | if (PyErr_Occurred()) SWIG_fail; | |
9364 | } | |
9365 | { | |
9366 | #if wxUSE_UNICODE | |
9367 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9368 | #else | |
9369 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9370 | #endif | |
9371 | } | |
9372 | return resultobj; | |
9373 | fail: | |
9374 | return NULL; | |
9375 | } | |
9376 | ||
9377 | ||
9378 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9379 | PyObject *obj; | |
9380 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9381 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9382 | Py_INCREF(obj); | |
9383 | return Py_BuildValue((char *)""); | |
9384 | } | |
9385 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9386 | PyObject *resultobj; | |
9387 | int arg1 ; | |
9388 | wxMouseEvent *arg2 = 0 ; | |
9389 | long arg3 ; | |
9390 | long arg4 ; | |
9391 | wxTextUrlEvent *result; | |
8edf1c75 | 9392 | PyObject * obj0 = 0 ; |
d14a1e28 | 9393 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9394 | PyObject * obj2 = 0 ; |
9395 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9396 | char *kwnames[] = { |
9397 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9398 | }; | |
9399 | ||
8edf1c75 | 9400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9401 | arg1 = (int) SWIG_AsInt(obj0); |
9402 | if (PyErr_Occurred()) SWIG_fail; | |
9403 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9404 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9405 | SWIG_fail; | |
d14a1e28 | 9406 | if (arg2 == NULL) { |
2f4c0a16 RD |
9407 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9408 | SWIG_fail; | |
8edf1c75 | 9409 | } |
2f4c0a16 RD |
9410 | arg3 = (long) SWIG_AsLong(obj2); |
9411 | if (PyErr_Occurred()) SWIG_fail; | |
9412 | arg4 = (long) SWIG_AsLong(obj3); | |
9413 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9414 | { |
9415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9416 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9417 | ||
9418 | wxPyEndAllowThreads(__tstate); | |
9419 | if (PyErr_Occurred()) SWIG_fail; | |
9420 | } | |
2f4c0a16 | 9421 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9422 | return resultobj; |
9423 | fail: | |
9424 | return NULL; | |
9425 | } | |
9426 | ||
9427 | ||
9428 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9429 | PyObject *resultobj; | |
9430 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9431 | wxMouseEvent *result; | |
9432 | PyObject * obj0 = 0 ; | |
9433 | char *kwnames[] = { | |
9434 | (char *) "self", NULL | |
9435 | }; | |
9436 | ||
9437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9440 | { |
9441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9442 | { | |
9443 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9444 | result = (wxMouseEvent *) &_result_ref; | |
9445 | } | |
9446 | ||
9447 | wxPyEndAllowThreads(__tstate); | |
9448 | if (PyErr_Occurred()) SWIG_fail; | |
9449 | } | |
2f4c0a16 | 9450 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9451 | return resultobj; |
9452 | fail: | |
9453 | return NULL; | |
9454 | } | |
9455 | ||
9456 | ||
9457 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9458 | PyObject *resultobj; | |
9459 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9460 | long result; | |
9461 | PyObject * obj0 = 0 ; | |
9462 | char *kwnames[] = { | |
9463 | (char *) "self", NULL | |
9464 | }; | |
9465 | ||
9466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9469 | { |
9470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9471 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9472 | ||
9473 | wxPyEndAllowThreads(__tstate); | |
9474 | if (PyErr_Occurred()) SWIG_fail; | |
9475 | } | |
2f4c0a16 | 9476 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9477 | return resultobj; |
9478 | fail: | |
9479 | return NULL; | |
9480 | } | |
9481 | ||
9482 | ||
9483 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9484 | PyObject *resultobj; | |
9485 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9486 | long result; | |
9487 | PyObject * obj0 = 0 ; | |
9488 | char *kwnames[] = { | |
9489 | (char *) "self", NULL | |
9490 | }; | |
9491 | ||
9492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9495 | { |
9496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9497 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9498 | ||
9499 | wxPyEndAllowThreads(__tstate); | |
9500 | if (PyErr_Occurred()) SWIG_fail; | |
9501 | } | |
2f4c0a16 | 9502 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9503 | return resultobj; |
9504 | fail: | |
9505 | return NULL; | |
9506 | } | |
9507 | ||
9508 | ||
9509 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9510 | PyObject *obj; | |
9511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9512 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9513 | Py_INCREF(obj); | |
9514 | return Py_BuildValue((char *)""); | |
9515 | } | |
2f4c0a16 | 9516 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
d03fd34d RD |
9517 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9518 | return 1; | |
9519 | } | |
9520 | ||
9521 | ||
9522 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9523 | PyObject *pyobj; | |
9524 | ||
9525 | { | |
9526 | #if wxUSE_UNICODE | |
9527 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9528 | #else | |
9529 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9530 | #endif | |
9531 | } | |
9532 | return pyobj; | |
9533 | } | |
9534 | ||
9535 | ||
d14a1e28 RD |
9536 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9537 | PyObject *resultobj; | |
9538 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9539 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9540 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9541 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9542 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9543 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9544 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9545 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9546 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9547 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9548 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9549 | wxScrollBar *result; | |
9550 | wxPoint temp3 ; | |
9551 | wxSize temp4 ; | |
423f194a | 9552 | bool temp7 = False ; |
d14a1e28 | 9553 | PyObject * obj0 = 0 ; |
8edf1c75 | 9554 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9555 | PyObject * obj2 = 0 ; |
9556 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9557 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9558 | PyObject * obj5 = 0 ; |
9559 | PyObject * obj6 = 0 ; | |
9560 | char *kwnames[] = { | |
9561 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9562 | }; | |
9563 | ||
8edf1c75 | 9564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
9565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
9566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9567 | if (obj1) { |
2f4c0a16 RD |
9568 | arg2 = (int) SWIG_AsInt(obj1); |
9569 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9570 | } |
d14a1e28 RD |
9571 | if (obj2) { |
9572 | { | |
9573 | arg3 = &temp3; | |
9574 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9575 | } | |
9576 | } | |
9577 | if (obj3) { | |
9578 | { | |
9579 | arg4 = &temp4; | |
9580 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9581 | } | |
9582 | } | |
8edf1c75 | 9583 | if (obj4) { |
2f4c0a16 RD |
9584 | arg5 = (long) SWIG_AsLong(obj4); |
9585 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9586 | } |
d14a1e28 | 9587 | if (obj5) { |
2f4c0a16 RD |
9588 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
9589 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9590 | SWIG_fail; | |
d14a1e28 | 9591 | if (arg6 == NULL) { |
2f4c0a16 RD |
9592 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9593 | SWIG_fail; | |
d14a1e28 RD |
9594 | } |
9595 | } | |
9596 | if (obj6) { | |
9597 | { | |
9598 | arg7 = wxString_in_helper(obj6); | |
9599 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9600 | temp7 = True; |
d14a1e28 RD |
9601 | } |
9602 | } | |
9603 | { | |
9604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9605 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9606 | ||
9607 | wxPyEndAllowThreads(__tstate); | |
9608 | if (PyErr_Occurred()) SWIG_fail; | |
9609 | } | |
2f4c0a16 | 9610 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9611 | { |
9612 | if (temp7) | |
9613 | delete arg7; | |
9614 | } | |
9615 | return resultobj; | |
9616 | fail: | |
9617 | { | |
9618 | if (temp7) | |
9619 | delete arg7; | |
9620 | } | |
9621 | return NULL; | |
9622 | } | |
9623 | ||
9624 | ||
9625 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9626 | PyObject *resultobj; | |
9627 | wxScrollBar *result; | |
9628 | char *kwnames[] = { | |
9629 | NULL | |
9630 | }; | |
9631 | ||
9632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9633 | { | |
9634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9635 | result = (wxScrollBar *)new wxScrollBar(); | |
9636 | ||
9637 | wxPyEndAllowThreads(__tstate); | |
9638 | if (PyErr_Occurred()) SWIG_fail; | |
9639 | } | |
2f4c0a16 | 9640 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9641 | return resultobj; |
9642 | fail: | |
9643 | return NULL; | |
9644 | } | |
9645 | ||
9646 | ||
9647 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9648 | PyObject *resultobj; | |
9649 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9650 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9651 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9652 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9653 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9654 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9655 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9656 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9657 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9658 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9659 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9660 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9661 | bool result; | |
9662 | wxPoint temp4 ; | |
9663 | wxSize temp5 ; | |
423f194a | 9664 | bool temp8 = False ; |
d14a1e28 RD |
9665 | PyObject * obj0 = 0 ; |
9666 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9667 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9668 | PyObject * obj3 = 0 ; |
9669 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9670 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9671 | PyObject * obj6 = 0 ; |
9672 | PyObject * obj7 = 0 ; | |
9673 | char *kwnames[] = { | |
9674 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9675 | }; | |
9676 | ||
8edf1c75 | 9677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
9678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9682 | if (obj2) { |
2f4c0a16 RD |
9683 | arg3 = (int) SWIG_AsInt(obj2); |
9684 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9685 | } |
d14a1e28 RD |
9686 | if (obj3) { |
9687 | { | |
9688 | arg4 = &temp4; | |
9689 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9690 | } | |
9691 | } | |
9692 | if (obj4) { | |
9693 | { | |
9694 | arg5 = &temp5; | |
9695 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9696 | } | |
9697 | } | |
8edf1c75 | 9698 | if (obj5) { |
2f4c0a16 RD |
9699 | arg6 = (long) SWIG_AsLong(obj5); |
9700 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9701 | } |
d14a1e28 | 9702 | if (obj6) { |
2f4c0a16 RD |
9703 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
9704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9705 | SWIG_fail; | |
d14a1e28 | 9706 | if (arg7 == NULL) { |
2f4c0a16 RD |
9707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9708 | SWIG_fail; | |
d14a1e28 RD |
9709 | } |
9710 | } | |
9711 | if (obj7) { | |
9712 | { | |
9713 | arg8 = wxString_in_helper(obj7); | |
9714 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9715 | temp8 = True; |
d14a1e28 RD |
9716 | } |
9717 | } | |
9718 | { | |
9719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9720 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9721 | ||
9722 | wxPyEndAllowThreads(__tstate); | |
9723 | if (PyErr_Occurred()) SWIG_fail; | |
9724 | } | |
4f89f6a3 RD |
9725 | { |
9726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9727 | } | |
d14a1e28 RD |
9728 | { |
9729 | if (temp8) | |
9730 | delete arg8; | |
9731 | } | |
9732 | return resultobj; | |
9733 | fail: | |
9734 | { | |
9735 | if (temp8) | |
9736 | delete arg8; | |
9737 | } | |
9738 | return NULL; | |
9739 | } | |
9740 | ||
9741 | ||
9742 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9743 | PyObject *resultobj; | |
9744 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9745 | int result; | |
9746 | PyObject * obj0 = 0 ; | |
9747 | char *kwnames[] = { | |
9748 | (char *) "self", NULL | |
9749 | }; | |
9750 | ||
9751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9754 | { |
9755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9756 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9757 | ||
9758 | wxPyEndAllowThreads(__tstate); | |
9759 | if (PyErr_Occurred()) SWIG_fail; | |
9760 | } | |
2f4c0a16 | 9761 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9762 | return resultobj; |
9763 | fail: | |
9764 | return NULL; | |
9765 | } | |
9766 | ||
9767 | ||
9768 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9769 | PyObject *resultobj; | |
9770 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9771 | int result; | |
9772 | PyObject * obj0 = 0 ; | |
9773 | char *kwnames[] = { | |
9774 | (char *) "self", NULL | |
9775 | }; | |
9776 | ||
9777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9780 | { |
9781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9782 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9783 | ||
9784 | wxPyEndAllowThreads(__tstate); | |
9785 | if (PyErr_Occurred()) SWIG_fail; | |
9786 | } | |
2f4c0a16 | 9787 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9788 | return resultobj; |
9789 | fail: | |
9790 | return NULL; | |
9791 | } | |
9792 | ||
9793 | ||
9794 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9795 | PyObject *resultobj; | |
9796 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9797 | int result; | |
9798 | PyObject * obj0 = 0 ; | |
9799 | char *kwnames[] = { | |
9800 | (char *) "self", NULL | |
9801 | }; | |
9802 | ||
9803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9806 | { |
9807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9808 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9809 | ||
9810 | wxPyEndAllowThreads(__tstate); | |
9811 | if (PyErr_Occurred()) SWIG_fail; | |
9812 | } | |
2f4c0a16 | 9813 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9814 | return resultobj; |
9815 | fail: | |
9816 | return NULL; | |
9817 | } | |
9818 | ||
9819 | ||
9820 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9821 | PyObject *resultobj; | |
9822 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9823 | int result; | |
9824 | PyObject * obj0 = 0 ; | |
9825 | char *kwnames[] = { | |
9826 | (char *) "self", NULL | |
9827 | }; | |
9828 | ||
9829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9832 | { |
9833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9834 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9835 | ||
9836 | wxPyEndAllowThreads(__tstate); | |
9837 | if (PyErr_Occurred()) SWIG_fail; | |
9838 | } | |
2f4c0a16 | 9839 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9840 | return resultobj; |
9841 | fail: | |
9842 | return NULL; | |
9843 | } | |
9844 | ||
9845 | ||
9846 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9847 | PyObject *resultobj; | |
9848 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9849 | bool result; | |
9850 | PyObject * obj0 = 0 ; | |
9851 | char *kwnames[] = { | |
9852 | (char *) "self", NULL | |
9853 | }; | |
9854 | ||
9855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9858 | { |
9859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9860 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9861 | ||
9862 | wxPyEndAllowThreads(__tstate); | |
9863 | if (PyErr_Occurred()) SWIG_fail; | |
9864 | } | |
4f89f6a3 RD |
9865 | { |
9866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9867 | } | |
d14a1e28 RD |
9868 | return resultobj; |
9869 | fail: | |
9870 | return NULL; | |
9871 | } | |
9872 | ||
9873 | ||
9874 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9875 | PyObject *resultobj; | |
9876 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9877 | int arg2 ; | |
9878 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9879 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9880 | char *kwnames[] = { |
9881 | (char *) "self",(char *) "viewStart", NULL | |
9882 | }; | |
9883 | ||
8edf1c75 | 9884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9887 | arg2 = (int) SWIG_AsInt(obj1); | |
9888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9889 | { |
9890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9891 | (arg1)->SetThumbPosition(arg2); | |
9892 | ||
9893 | wxPyEndAllowThreads(__tstate); | |
9894 | if (PyErr_Occurred()) SWIG_fail; | |
9895 | } | |
9896 | Py_INCREF(Py_None); resultobj = Py_None; | |
9897 | return resultobj; | |
9898 | fail: | |
9899 | return NULL; | |
9900 | } | |
9901 | ||
9902 | ||
9903 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9904 | PyObject *resultobj; | |
9905 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9906 | int arg2 ; | |
9907 | int arg3 ; | |
9908 | int arg4 ; | |
9909 | int arg5 ; | |
423f194a | 9910 | bool arg6 = (bool) True ; |
d14a1e28 | 9911 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9912 | PyObject * obj1 = 0 ; |
9913 | PyObject * obj2 = 0 ; | |
9914 | PyObject * obj3 = 0 ; | |
9915 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9916 | PyObject * obj5 = 0 ; |
9917 | char *kwnames[] = { | |
9918 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9919 | }; | |
9920 | ||
8edf1c75 | 9921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9924 | arg2 = (int) SWIG_AsInt(obj1); | |
9925 | if (PyErr_Occurred()) SWIG_fail; | |
9926 | arg3 = (int) SWIG_AsInt(obj2); | |
9927 | if (PyErr_Occurred()) SWIG_fail; | |
9928 | arg4 = (int) SWIG_AsInt(obj3); | |
9929 | if (PyErr_Occurred()) SWIG_fail; | |
9930 | arg5 = (int) SWIG_AsInt(obj4); | |
9931 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 9932 | if (obj5) { |
2f4c0a16 RD |
9933 | arg6 = (bool) SWIG_AsBool(obj5); |
9934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9935 | } |
9936 | { | |
9937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9938 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9939 | ||
9940 | wxPyEndAllowThreads(__tstate); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
9942 | } | |
9943 | Py_INCREF(Py_None); resultobj = Py_None; | |
9944 | return resultobj; | |
9945 | fail: | |
9946 | return NULL; | |
9947 | } | |
9948 | ||
9949 | ||
9950 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9951 | PyObject *obj; | |
9952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9953 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9954 | Py_INCREF(obj); | |
9955 | return Py_BuildValue((char *)""); | |
9956 | } | |
2f4c0a16 | 9957 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
d03fd34d RD |
9958 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9959 | return 1; | |
9960 | } | |
9961 | ||
9962 | ||
9963 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9964 | PyObject *pyobj; | |
9965 | ||
9966 | { | |
9967 | #if wxUSE_UNICODE | |
9968 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9969 | #else | |
9970 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9971 | #endif | |
9972 | } | |
9973 | return pyobj; | |
9974 | } | |
9975 | ||
9976 | ||
2f4c0a16 | 9977 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
9978 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9979 | return 1; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9984 | PyObject *pyobj; | |
9985 | ||
9986 | { | |
9987 | #if wxUSE_UNICODE | |
9988 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9989 | #else | |
9990 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9991 | #endif | |
9992 | } | |
9993 | return pyobj; | |
9994 | } | |
9995 | ||
9996 | ||
d14a1e28 RD |
9997 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
9998 | PyObject *resultobj; | |
9999 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10000 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10001 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10002 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10003 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10004 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10005 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10006 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10007 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10008 | wxSpinButton *result; | |
10009 | wxPoint temp3 ; | |
10010 | wxSize temp4 ; | |
423f194a | 10011 | bool temp6 = False ; |
d14a1e28 | 10012 | PyObject * obj0 = 0 ; |
8edf1c75 | 10013 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10014 | PyObject * obj2 = 0 ; |
10015 | PyObject * obj3 = 0 ; | |
8edf1c75 | 10016 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10017 | PyObject * obj5 = 0 ; |
10018 | char *kwnames[] = { | |
10019 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10020 | }; | |
10021 | ||
8edf1c75 | 10022 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
10023 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10024 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10025 | if (obj1) { |
2f4c0a16 RD |
10026 | arg2 = (int) SWIG_AsInt(obj1); |
10027 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10028 | } |
d14a1e28 RD |
10029 | if (obj2) { |
10030 | { | |
10031 | arg3 = &temp3; | |
10032 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10033 | } | |
10034 | } | |
10035 | if (obj3) { | |
10036 | { | |
10037 | arg4 = &temp4; | |
10038 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10039 | } | |
10040 | } | |
8edf1c75 | 10041 | if (obj4) { |
2f4c0a16 RD |
10042 | arg5 = (long) SWIG_AsLong(obj4); |
10043 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10044 | } |
d14a1e28 RD |
10045 | if (obj5) { |
10046 | { | |
10047 | arg6 = wxString_in_helper(obj5); | |
10048 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 10049 | temp6 = True; |
d14a1e28 RD |
10050 | } |
10051 | } | |
10052 | { | |
10053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10054 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10055 | ||
10056 | wxPyEndAllowThreads(__tstate); | |
10057 | if (PyErr_Occurred()) SWIG_fail; | |
10058 | } | |
2f4c0a16 | 10059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10060 | { |
10061 | if (temp6) | |
10062 | delete arg6; | |
10063 | } | |
10064 | return resultobj; | |
10065 | fail: | |
10066 | { | |
10067 | if (temp6) | |
10068 | delete arg6; | |
10069 | } | |
10070 | return NULL; | |
10071 | } | |
10072 | ||
10073 | ||
10074 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10075 | PyObject *resultobj; | |
10076 | wxSpinButton *result; | |
10077 | char *kwnames[] = { | |
10078 | NULL | |
10079 | }; | |
10080 | ||
10081 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10082 | { | |
10083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10084 | result = (wxSpinButton *)new wxSpinButton(); | |
10085 | ||
10086 | wxPyEndAllowThreads(__tstate); | |
10087 | if (PyErr_Occurred()) SWIG_fail; | |
10088 | } | |
2f4c0a16 | 10089 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10090 | return resultobj; |
10091 | fail: | |
10092 | return NULL; | |
10093 | } | |
10094 | ||
10095 | ||
10096 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10097 | PyObject *resultobj; | |
10098 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10099 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10100 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10101 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10102 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10103 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10104 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10105 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10106 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10107 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10108 | bool result; | |
10109 | wxPoint temp4 ; | |
10110 | wxSize temp5 ; | |
423f194a | 10111 | bool temp7 = False ; |
d14a1e28 RD |
10112 | PyObject * obj0 = 0 ; |
10113 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10114 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10115 | PyObject * obj3 = 0 ; |
10116 | PyObject * obj4 = 0 ; | |
8edf1c75 | 10117 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10118 | PyObject * obj6 = 0 ; |
10119 | char *kwnames[] = { | |
10120 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10121 | }; | |
10122 | ||
8edf1c75 | 10123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
10124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10128 | if (obj2) { |
2f4c0a16 RD |
10129 | arg3 = (int) SWIG_AsInt(obj2); |
10130 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10131 | } |
d14a1e28 RD |
10132 | if (obj3) { |
10133 | { | |
10134 | arg4 = &temp4; | |
10135 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10136 | } | |
10137 | } | |
10138 | if (obj4) { | |
10139 | { | |
10140 | arg5 = &temp5; | |
10141 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10142 | } | |
10143 | } | |
8edf1c75 | 10144 | if (obj5) { |
2f4c0a16 RD |
10145 | arg6 = (long) SWIG_AsLong(obj5); |
10146 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10147 | } |
d14a1e28 RD |
10148 | if (obj6) { |
10149 | { | |
10150 | arg7 = wxString_in_helper(obj6); | |
10151 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 10152 | temp7 = True; |
d14a1e28 RD |
10153 | } |
10154 | } | |
10155 | { | |
10156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10157 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10158 | ||
10159 | wxPyEndAllowThreads(__tstate); | |
10160 | if (PyErr_Occurred()) SWIG_fail; | |
10161 | } | |
4f89f6a3 RD |
10162 | { |
10163 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10164 | } | |
d14a1e28 RD |
10165 | { |
10166 | if (temp7) | |
10167 | delete arg7; | |
10168 | } | |
10169 | return resultobj; | |
10170 | fail: | |
10171 | { | |
10172 | if (temp7) | |
10173 | delete arg7; | |
10174 | } | |
10175 | return NULL; | |
10176 | } | |
10177 | ||
10178 | ||
10179 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10180 | PyObject *resultobj; | |
10181 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10182 | int result; | |
10183 | PyObject * obj0 = 0 ; | |
10184 | char *kwnames[] = { | |
10185 | (char *) "self", NULL | |
10186 | }; | |
10187 | ||
10188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10191 | { |
10192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10193 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10194 | ||
10195 | wxPyEndAllowThreads(__tstate); | |
10196 | if (PyErr_Occurred()) SWIG_fail; | |
10197 | } | |
2f4c0a16 | 10198 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10199 | return resultobj; |
10200 | fail: | |
10201 | return NULL; | |
10202 | } | |
10203 | ||
10204 | ||
10205 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10206 | PyObject *resultobj; | |
10207 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10208 | int result; | |
10209 | PyObject * obj0 = 0 ; | |
10210 | char *kwnames[] = { | |
10211 | (char *) "self", NULL | |
10212 | }; | |
10213 | ||
10214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10217 | { |
10218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10219 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10220 | ||
10221 | wxPyEndAllowThreads(__tstate); | |
10222 | if (PyErr_Occurred()) SWIG_fail; | |
10223 | } | |
2f4c0a16 | 10224 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10225 | return resultobj; |
10226 | fail: | |
10227 | return NULL; | |
10228 | } | |
10229 | ||
10230 | ||
10231 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10232 | PyObject *resultobj; | |
10233 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10234 | int result; | |
10235 | PyObject * obj0 = 0 ; | |
10236 | char *kwnames[] = { | |
10237 | (char *) "self", NULL | |
10238 | }; | |
10239 | ||
10240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10243 | { |
10244 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10245 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10246 | ||
10247 | wxPyEndAllowThreads(__tstate); | |
10248 | if (PyErr_Occurred()) SWIG_fail; | |
10249 | } | |
2f4c0a16 | 10250 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10251 | return resultobj; |
10252 | fail: | |
10253 | return NULL; | |
10254 | } | |
10255 | ||
10256 | ||
10257 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10258 | PyObject *resultobj; | |
10259 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10260 | int arg2 ; | |
10261 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10262 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10263 | char *kwnames[] = { |
10264 | (char *) "self",(char *) "val", NULL | |
10265 | }; | |
10266 | ||
8edf1c75 | 10267 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10270 | arg2 = (int) SWIG_AsInt(obj1); | |
10271 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10272 | { |
10273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10274 | (arg1)->SetValue(arg2); | |
10275 | ||
10276 | wxPyEndAllowThreads(__tstate); | |
10277 | if (PyErr_Occurred()) SWIG_fail; | |
10278 | } | |
10279 | Py_INCREF(Py_None); resultobj = Py_None; | |
10280 | return resultobj; | |
10281 | fail: | |
10282 | return NULL; | |
10283 | } | |
10284 | ||
10285 | ||
10286 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10287 | PyObject *resultobj; | |
10288 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10289 | int arg2 ; | |
10290 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10291 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10292 | char *kwnames[] = { |
10293 | (char *) "self",(char *) "minVal", NULL | |
10294 | }; | |
10295 | ||
8edf1c75 | 10296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10299 | arg2 = (int) SWIG_AsInt(obj1); | |
10300 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10301 | { |
10302 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10303 | (arg1)->SetMin(arg2); | |
10304 | ||
10305 | wxPyEndAllowThreads(__tstate); | |
10306 | if (PyErr_Occurred()) SWIG_fail; | |
10307 | } | |
10308 | Py_INCREF(Py_None); resultobj = Py_None; | |
10309 | return resultobj; | |
10310 | fail: | |
10311 | return NULL; | |
10312 | } | |
10313 | ||
10314 | ||
10315 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10316 | PyObject *resultobj; | |
10317 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10318 | int arg2 ; | |
10319 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10320 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10321 | char *kwnames[] = { |
10322 | (char *) "self",(char *) "maxVal", NULL | |
10323 | }; | |
10324 | ||
8edf1c75 | 10325 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10326 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10328 | arg2 = (int) SWIG_AsInt(obj1); | |
10329 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10330 | { |
10331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10332 | (arg1)->SetMax(arg2); | |
10333 | ||
10334 | wxPyEndAllowThreads(__tstate); | |
10335 | if (PyErr_Occurred()) SWIG_fail; | |
10336 | } | |
10337 | Py_INCREF(Py_None); resultobj = Py_None; | |
10338 | return resultobj; | |
10339 | fail: | |
10340 | return NULL; | |
10341 | } | |
10342 | ||
10343 | ||
10344 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10345 | PyObject *resultobj; | |
10346 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10347 | int arg2 ; | |
10348 | int arg3 ; | |
10349 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10350 | PyObject * obj1 = 0 ; |
10351 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10352 | char *kwnames[] = { |
10353 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10354 | }; | |
10355 | ||
8edf1c75 | 10356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10359 | arg2 = (int) SWIG_AsInt(obj1); | |
10360 | if (PyErr_Occurred()) SWIG_fail; | |
10361 | arg3 = (int) SWIG_AsInt(obj2); | |
10362 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10363 | { |
10364 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10365 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10366 | |
10367 | wxPyEndAllowThreads(__tstate); | |
10368 | if (PyErr_Occurred()) SWIG_fail; | |
10369 | } | |
10370 | Py_INCREF(Py_None); resultobj = Py_None; | |
10371 | return resultobj; | |
10372 | fail: | |
10373 | return NULL; | |
10374 | } | |
10375 | ||
10376 | ||
10377 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10378 | PyObject *resultobj; | |
10379 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10380 | bool result; | |
10381 | PyObject * obj0 = 0 ; | |
10382 | char *kwnames[] = { | |
10383 | (char *) "self", NULL | |
10384 | }; | |
10385 | ||
10386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10389 | { |
10390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10391 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10392 | ||
10393 | wxPyEndAllowThreads(__tstate); | |
10394 | if (PyErr_Occurred()) SWIG_fail; | |
10395 | } | |
4f89f6a3 RD |
10396 | { |
10397 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10398 | } | |
d14a1e28 RD |
10399 | return resultobj; |
10400 | fail: | |
10401 | return NULL; | |
10402 | } | |
10403 | ||
10404 | ||
10405 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10406 | PyObject *obj; | |
10407 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10408 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10409 | Py_INCREF(obj); | |
10410 | return Py_BuildValue((char *)""); | |
10411 | } | |
10412 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10413 | PyObject *resultobj; | |
10414 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10415 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10416 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10417 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10418 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10419 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10420 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10421 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10422 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10423 | int arg7 = (int) 0 ; | |
10424 | int arg8 = (int) 100 ; | |
10425 | int arg9 = (int) 0 ; | |
10426 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10427 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10428 | wxSpinCtrl *result; | |
423f194a | 10429 | bool temp3 = False ; |
d14a1e28 RD |
10430 | wxPoint temp4 ; |
10431 | wxSize temp5 ; | |
423f194a | 10432 | bool temp10 = False ; |
d14a1e28 | 10433 | PyObject * obj0 = 0 ; |
8edf1c75 | 10434 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10435 | PyObject * obj2 = 0 ; |
10436 | PyObject * obj3 = 0 ; | |
10437 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10438 | PyObject * obj5 = 0 ; |
10439 | PyObject * obj6 = 0 ; | |
10440 | PyObject * obj7 = 0 ; | |
10441 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10442 | PyObject * obj9 = 0 ; |
10443 | char *kwnames[] = { | |
10444 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10445 | }; | |
10446 | ||
8edf1c75 | 10447 | 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 |
10448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10450 | if (obj1) { |
2f4c0a16 RD |
10451 | arg2 = (int) SWIG_AsInt(obj1); |
10452 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10453 | } |
d14a1e28 RD |
10454 | if (obj2) { |
10455 | { | |
10456 | arg3 = wxString_in_helper(obj2); | |
10457 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10458 | temp3 = True; |
d14a1e28 RD |
10459 | } |
10460 | } | |
10461 | if (obj3) { | |
10462 | { | |
10463 | arg4 = &temp4; | |
10464 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10465 | } | |
10466 | } | |
10467 | if (obj4) { | |
10468 | { | |
10469 | arg5 = &temp5; | |
10470 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10471 | } | |
10472 | } | |
8edf1c75 | 10473 | if (obj5) { |
2f4c0a16 RD |
10474 | arg6 = (long) SWIG_AsLong(obj5); |
10475 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10476 | } |
10477 | if (obj6) { | |
2f4c0a16 RD |
10478 | arg7 = (int) SWIG_AsInt(obj6); |
10479 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10480 | } |
10481 | if (obj7) { | |
2f4c0a16 RD |
10482 | arg8 = (int) SWIG_AsInt(obj7); |
10483 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10484 | } |
10485 | if (obj8) { | |
2f4c0a16 RD |
10486 | arg9 = (int) SWIG_AsInt(obj8); |
10487 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10488 | } |
d14a1e28 RD |
10489 | if (obj9) { |
10490 | { | |
10491 | arg10 = wxString_in_helper(obj9); | |
10492 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10493 | temp10 = True; |
d14a1e28 RD |
10494 | } |
10495 | } | |
10496 | { | |
10497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10498 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10499 | ||
10500 | wxPyEndAllowThreads(__tstate); | |
10501 | if (PyErr_Occurred()) SWIG_fail; | |
10502 | } | |
2f4c0a16 | 10503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10504 | { |
10505 | if (temp3) | |
10506 | delete arg3; | |
10507 | } | |
10508 | { | |
10509 | if (temp10) | |
10510 | delete arg10; | |
10511 | } | |
10512 | return resultobj; | |
10513 | fail: | |
10514 | { | |
10515 | if (temp3) | |
10516 | delete arg3; | |
10517 | } | |
10518 | { | |
10519 | if (temp10) | |
10520 | delete arg10; | |
10521 | } | |
10522 | return NULL; | |
10523 | } | |
10524 | ||
10525 | ||
10526 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10527 | PyObject *resultobj; | |
10528 | wxSpinCtrl *result; | |
10529 | char *kwnames[] = { | |
10530 | NULL | |
10531 | }; | |
10532 | ||
10533 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10534 | { | |
10535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10536 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10537 | ||
10538 | wxPyEndAllowThreads(__tstate); | |
10539 | if (PyErr_Occurred()) SWIG_fail; | |
10540 | } | |
2f4c0a16 | 10541 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10542 | return resultobj; |
10543 | fail: | |
10544 | return NULL; | |
10545 | } | |
10546 | ||
10547 | ||
10548 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10549 | PyObject *resultobj; | |
10550 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10551 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10552 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10553 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10554 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10555 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10556 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10557 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10558 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10559 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10560 | int arg8 = (int) 0 ; | |
10561 | int arg9 = (int) 100 ; | |
10562 | int arg10 = (int) 0 ; | |
10563 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10564 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10565 | bool result; | |
423f194a | 10566 | bool temp4 = False ; |
d14a1e28 RD |
10567 | wxPoint temp5 ; |
10568 | wxSize temp6 ; | |
423f194a | 10569 | bool temp11 = False ; |
d14a1e28 RD |
10570 | PyObject * obj0 = 0 ; |
10571 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10572 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10573 | PyObject * obj3 = 0 ; |
10574 | PyObject * obj4 = 0 ; | |
10575 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10576 | PyObject * obj6 = 0 ; |
10577 | PyObject * obj7 = 0 ; | |
10578 | PyObject * obj8 = 0 ; | |
10579 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10580 | PyObject * obj10 = 0 ; |
10581 | char *kwnames[] = { | |
10582 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10583 | }; | |
10584 | ||
8edf1c75 | 10585 | 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 |
10586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10588 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10590 | if (obj2) { |
2f4c0a16 RD |
10591 | arg3 = (int) SWIG_AsInt(obj2); |
10592 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10593 | } |
d14a1e28 RD |
10594 | if (obj3) { |
10595 | { | |
10596 | arg4 = wxString_in_helper(obj3); | |
10597 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10598 | temp4 = True; |
d14a1e28 RD |
10599 | } |
10600 | } | |
10601 | if (obj4) { | |
10602 | { | |
10603 | arg5 = &temp5; | |
10604 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10605 | } | |
10606 | } | |
10607 | if (obj5) { | |
10608 | { | |
10609 | arg6 = &temp6; | |
10610 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10611 | } | |
10612 | } | |
8edf1c75 | 10613 | if (obj6) { |
2f4c0a16 RD |
10614 | arg7 = (long) SWIG_AsLong(obj6); |
10615 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10616 | } |
10617 | if (obj7) { | |
2f4c0a16 RD |
10618 | arg8 = (int) SWIG_AsInt(obj7); |
10619 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10620 | } |
10621 | if (obj8) { | |
2f4c0a16 RD |
10622 | arg9 = (int) SWIG_AsInt(obj8); |
10623 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10624 | } |
10625 | if (obj9) { | |
2f4c0a16 RD |
10626 | arg10 = (int) SWIG_AsInt(obj9); |
10627 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10628 | } |
d14a1e28 RD |
10629 | if (obj10) { |
10630 | { | |
10631 | arg11 = wxString_in_helper(obj10); | |
10632 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10633 | temp11 = True; |
d14a1e28 RD |
10634 | } |
10635 | } | |
10636 | { | |
10637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10638 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10639 | ||
10640 | wxPyEndAllowThreads(__tstate); | |
10641 | if (PyErr_Occurred()) SWIG_fail; | |
10642 | } | |
4f89f6a3 RD |
10643 | { |
10644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10645 | } | |
d14a1e28 RD |
10646 | { |
10647 | if (temp4) | |
10648 | delete arg4; | |
10649 | } | |
10650 | { | |
10651 | if (temp11) | |
10652 | delete arg11; | |
10653 | } | |
10654 | return resultobj; | |
10655 | fail: | |
10656 | { | |
10657 | if (temp4) | |
10658 | delete arg4; | |
10659 | } | |
10660 | { | |
10661 | if (temp11) | |
10662 | delete arg11; | |
10663 | } | |
10664 | return NULL; | |
10665 | } | |
10666 | ||
10667 | ||
10668 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10669 | PyObject *resultobj; | |
10670 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10671 | int result; | |
10672 | PyObject * obj0 = 0 ; | |
10673 | char *kwnames[] = { | |
10674 | (char *) "self", NULL | |
10675 | }; | |
10676 | ||
10677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10680 | { |
10681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10682 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10683 | ||
10684 | wxPyEndAllowThreads(__tstate); | |
10685 | if (PyErr_Occurred()) SWIG_fail; | |
10686 | } | |
2f4c0a16 | 10687 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10688 | return resultobj; |
10689 | fail: | |
10690 | return NULL; | |
10691 | } | |
10692 | ||
10693 | ||
10694 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10695 | PyObject *resultobj; | |
10696 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10697 | int arg2 ; | |
10698 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10699 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10700 | char *kwnames[] = { |
10701 | (char *) "self",(char *) "value", NULL | |
10702 | }; | |
10703 | ||
8edf1c75 | 10704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10707 | arg2 = (int) SWIG_AsInt(obj1); | |
10708 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10709 | { |
10710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10711 | (arg1)->SetValue(arg2); | |
10712 | ||
10713 | wxPyEndAllowThreads(__tstate); | |
10714 | if (PyErr_Occurred()) SWIG_fail; | |
10715 | } | |
10716 | Py_INCREF(Py_None); resultobj = Py_None; | |
10717 | return resultobj; | |
10718 | fail: | |
10719 | return NULL; | |
10720 | } | |
10721 | ||
10722 | ||
10723 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10724 | PyObject *resultobj; | |
10725 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10726 | wxString *arg2 = 0 ; | |
423f194a | 10727 | bool temp2 = False ; |
d14a1e28 RD |
10728 | PyObject * obj0 = 0 ; |
10729 | PyObject * obj1 = 0 ; | |
10730 | char *kwnames[] = { | |
10731 | (char *) "self",(char *) "text", NULL | |
10732 | }; | |
10733 | ||
10734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10737 | { |
10738 | arg2 = wxString_in_helper(obj1); | |
10739 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10740 | temp2 = True; |
d14a1e28 RD |
10741 | } |
10742 | { | |
10743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10744 | (arg1)->SetValue((wxString const &)*arg2); | |
10745 | ||
10746 | wxPyEndAllowThreads(__tstate); | |
10747 | if (PyErr_Occurred()) SWIG_fail; | |
10748 | } | |
10749 | Py_INCREF(Py_None); resultobj = Py_None; | |
10750 | { | |
10751 | if (temp2) | |
10752 | delete arg2; | |
10753 | } | |
10754 | return resultobj; | |
10755 | fail: | |
10756 | { | |
10757 | if (temp2) | |
10758 | delete arg2; | |
10759 | } | |
10760 | return NULL; | |
10761 | } | |
10762 | ||
10763 | ||
10764 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10765 | PyObject *resultobj; | |
10766 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10767 | int arg2 ; | |
10768 | int arg3 ; | |
10769 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10770 | PyObject * obj1 = 0 ; |
10771 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10772 | char *kwnames[] = { |
10773 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10774 | }; | |
10775 | ||
8edf1c75 | 10776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10779 | arg2 = (int) SWIG_AsInt(obj1); | |
10780 | if (PyErr_Occurred()) SWIG_fail; | |
10781 | arg3 = (int) SWIG_AsInt(obj2); | |
10782 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10783 | { |
10784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10785 | (arg1)->SetRange(arg2,arg3); | |
10786 | ||
10787 | wxPyEndAllowThreads(__tstate); | |
10788 | if (PyErr_Occurred()) SWIG_fail; | |
10789 | } | |
10790 | Py_INCREF(Py_None); resultobj = Py_None; | |
10791 | return resultobj; | |
10792 | fail: | |
10793 | return NULL; | |
10794 | } | |
10795 | ||
10796 | ||
10797 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10798 | PyObject *resultobj; | |
10799 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10800 | int result; | |
10801 | PyObject * obj0 = 0 ; | |
10802 | char *kwnames[] = { | |
10803 | (char *) "self", NULL | |
10804 | }; | |
10805 | ||
10806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10809 | { |
10810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10811 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10812 | ||
10813 | wxPyEndAllowThreads(__tstate); | |
10814 | if (PyErr_Occurred()) SWIG_fail; | |
10815 | } | |
2f4c0a16 | 10816 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10817 | return resultobj; |
10818 | fail: | |
10819 | return NULL; | |
10820 | } | |
10821 | ||
10822 | ||
10823 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10824 | PyObject *resultobj; | |
10825 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10826 | int result; | |
10827 | PyObject * obj0 = 0 ; | |
10828 | char *kwnames[] = { | |
10829 | (char *) "self", NULL | |
10830 | }; | |
10831 | ||
10832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10835 | { |
10836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10837 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10838 | ||
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
2f4c0a16 | 10842 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10843 | return resultobj; |
10844 | fail: | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
10849 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10850 | PyObject *resultobj; | |
10851 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10852 | long arg2 ; | |
10853 | long arg3 ; | |
10854 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10855 | PyObject * obj1 = 0 ; |
10856 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10857 | char *kwnames[] = { |
10858 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10859 | }; | |
10860 | ||
8edf1c75 | 10861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10864 | arg2 = (long) SWIG_AsLong(obj1); | |
10865 | if (PyErr_Occurred()) SWIG_fail; | |
10866 | arg3 = (long) SWIG_AsLong(obj2); | |
10867 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10868 | { |
10869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10870 | (arg1)->SetSelection(arg2,arg3); | |
10871 | ||
10872 | wxPyEndAllowThreads(__tstate); | |
10873 | if (PyErr_Occurred()) SWIG_fail; | |
10874 | } | |
10875 | Py_INCREF(Py_None); resultobj = Py_None; | |
10876 | return resultobj; | |
10877 | fail: | |
10878 | return NULL; | |
10879 | } | |
10880 | ||
10881 | ||
10882 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10883 | PyObject *obj; | |
10884 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10885 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10886 | Py_INCREF(obj); | |
10887 | return Py_BuildValue((char *)""); | |
10888 | } | |
eb9b6107 RD |
10889 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10890 | PyObject *resultobj; | |
10891 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10892 | int arg2 = (int) 0 ; | |
10893 | wxSpinEvent *result; | |
8edf1c75 RD |
10894 | PyObject * obj0 = 0 ; |
10895 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10896 | char *kwnames[] = { |
10897 | (char *) "commandType",(char *) "winid", NULL | |
10898 | }; | |
10899 | ||
8edf1c75 RD |
10900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10901 | if (obj0) { | |
2f4c0a16 RD |
10902 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10903 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10904 | } |
10905 | if (obj1) { | |
2f4c0a16 RD |
10906 | arg2 = (int) SWIG_AsInt(obj1); |
10907 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10908 | } |
eb9b6107 RD |
10909 | { |
10910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10911 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10912 | ||
10913 | wxPyEndAllowThreads(__tstate); | |
10914 | if (PyErr_Occurred()) SWIG_fail; | |
10915 | } | |
2f4c0a16 | 10916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
eb9b6107 RD |
10917 | return resultobj; |
10918 | fail: | |
10919 | return NULL; | |
10920 | } | |
10921 | ||
10922 | ||
10923 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10924 | PyObject *resultobj; | |
10925 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10926 | int result; | |
10927 | PyObject * obj0 = 0 ; | |
10928 | char *kwnames[] = { | |
10929 | (char *) "self", NULL | |
10930 | }; | |
10931 | ||
10932 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10933 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
10934 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
eb9b6107 RD |
10935 | { |
10936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10937 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10938 | ||
10939 | wxPyEndAllowThreads(__tstate); | |
10940 | if (PyErr_Occurred()) SWIG_fail; | |
10941 | } | |
2f4c0a16 | 10942 | resultobj = SWIG_FromInt((int)result); |
eb9b6107 RD |
10943 | return resultobj; |
10944 | fail: | |
10945 | return NULL; | |
10946 | } | |
10947 | ||
10948 | ||
10949 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10950 | PyObject *resultobj; | |
10951 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10952 | int arg2 ; | |
10953 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10954 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
10955 | char *kwnames[] = { |
10956 | (char *) "self",(char *) "pos", NULL | |
10957 | }; | |
10958 | ||
8edf1c75 | 10959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
10961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10962 | arg2 = (int) SWIG_AsInt(obj1); | |
10963 | if (PyErr_Occurred()) SWIG_fail; | |
eb9b6107 RD |
10964 | { |
10965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10966 | (arg1)->SetPosition(arg2); | |
10967 | ||
10968 | wxPyEndAllowThreads(__tstate); | |
10969 | if (PyErr_Occurred()) SWIG_fail; | |
10970 | } | |
10971 | Py_INCREF(Py_None); resultobj = Py_None; | |
10972 | return resultobj; | |
10973 | fail: | |
10974 | return NULL; | |
10975 | } | |
10976 | ||
10977 | ||
10978 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10979 | PyObject *obj; | |
10980 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10981 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10982 | Py_INCREF(obj); | |
10983 | return Py_BuildValue((char *)""); | |
10984 | } | |
2f4c0a16 | 10985 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
10986 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10987 | return 1; | |
10988 | } | |
10989 | ||
10990 | ||
10991 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
10992 | PyObject *pyobj; | |
10993 | ||
10994 | { | |
10995 | #if wxUSE_UNICODE | |
10996 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10997 | #else | |
10998 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
10999 | #endif | |
11000 | } | |
11001 | return pyobj; | |
11002 | } | |
11003 | ||
11004 | ||
2f4c0a16 | 11005 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
11006 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11007 | return 1; | |
11008 | } | |
11009 | ||
11010 | ||
11011 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11012 | PyObject *pyobj; | |
11013 | ||
11014 | { | |
11015 | #if wxUSE_UNICODE | |
11016 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11017 | #else | |
11018 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11019 | #endif | |
11020 | } | |
11021 | return pyobj; | |
11022 | } | |
11023 | ||
11024 | ||
d14a1e28 RD |
11025 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11026 | PyObject *resultobj; | |
11027 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11028 | int arg2 ; |
d14a1e28 RD |
11029 | wxString *arg3 = 0 ; |
11030 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11031 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11032 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11033 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
11034 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11035 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11036 | int arg7 = (int) 0 ; | |
11037 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11038 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11039 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11040 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11041 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11042 | wxRadioBox *result; |
423f194a | 11043 | bool temp3 = False ; |
d14a1e28 RD |
11044 | wxPoint temp4 ; |
11045 | wxSize temp5 ; | |
db914595 | 11046 | bool temp6 = False ; |
423f194a | 11047 | bool temp10 = False ; |
d14a1e28 | 11048 | PyObject * obj0 = 0 ; |
8edf1c75 | 11049 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11050 | PyObject * obj2 = 0 ; |
11051 | PyObject * obj3 = 0 ; | |
11052 | PyObject * obj4 = 0 ; | |
11053 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
11054 | PyObject * obj6 = 0 ; |
11055 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11056 | PyObject * obj8 = 0 ; |
11057 | PyObject * obj9 = 0 ; | |
11058 | char *kwnames[] = { | |
8edf1c75 | 11059 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11060 | }; |
11061 | ||
8edf1c75 | 11062 | 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 |
11063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11065 | arg2 = (int) SWIG_AsInt(obj1); | |
11066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11067 | { |
11068 | arg3 = wxString_in_helper(obj2); | |
11069 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11070 | temp3 = True; |
d14a1e28 RD |
11071 | } |
11072 | if (obj3) { | |
11073 | { | |
11074 | arg4 = &temp4; | |
11075 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11076 | } | |
11077 | } | |
11078 | if (obj4) { | |
11079 | { | |
11080 | arg5 = &temp5; | |
11081 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11082 | } | |
11083 | } | |
11084 | if (obj5) { | |
11085 | { | |
4e760a36 RD |
11086 | if (! PySequence_Check(obj5)) { |
11087 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11088 | SWIG_fail; | |
11089 | } | |
11090 | arg6 = new wxArrayString; | |
db914595 | 11091 | temp6 = True; |
4e760a36 RD |
11092 | int i, len=PySequence_Length(obj5); |
11093 | for (i=0; i<len; i++) { | |
11094 | PyObject* item = PySequence_GetItem(obj5, i); | |
11095 | #if wxUSE_UNICODE | |
11096 | PyObject* str = PyObject_Unicode(item); | |
11097 | #else | |
11098 | PyObject* str = PyObject_Str(item); | |
11099 | #endif | |
11100 | arg6->Add(Py2wxString(str)); | |
11101 | Py_DECREF(item); | |
11102 | Py_DECREF(str); | |
11103 | } | |
d14a1e28 RD |
11104 | } |
11105 | } | |
8edf1c75 | 11106 | if (obj6) { |
2f4c0a16 RD |
11107 | arg7 = (int) SWIG_AsInt(obj6); |
11108 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11109 | } |
11110 | if (obj7) { | |
2f4c0a16 RD |
11111 | arg8 = (long) SWIG_AsLong(obj7); |
11112 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11113 | } |
d14a1e28 | 11114 | if (obj8) { |
2f4c0a16 RD |
11115 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11116 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11117 | SWIG_fail; | |
4e760a36 | 11118 | if (arg9 == NULL) { |
2f4c0a16 RD |
11119 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11120 | SWIG_fail; | |
d14a1e28 RD |
11121 | } |
11122 | } | |
11123 | if (obj9) { | |
11124 | { | |
4e760a36 RD |
11125 | arg10 = wxString_in_helper(obj9); |
11126 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11127 | temp10 = True; |
d14a1e28 RD |
11128 | } |
11129 | } | |
11130 | { | |
11131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11132 | 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 |
11133 | |
11134 | wxPyEndAllowThreads(__tstate); | |
11135 | if (PyErr_Occurred()) SWIG_fail; | |
11136 | } | |
2f4c0a16 | 11137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11138 | { |
11139 | if (temp3) | |
11140 | delete arg3; | |
11141 | } | |
11142 | { | |
db914595 | 11143 | if (temp6) delete arg6; |
d14a1e28 RD |
11144 | } |
11145 | { | |
11146 | if (temp10) | |
4e760a36 | 11147 | delete arg10; |
d14a1e28 RD |
11148 | } |
11149 | return resultobj; | |
11150 | fail: | |
11151 | { | |
11152 | if (temp3) | |
11153 | delete arg3; | |
11154 | } | |
11155 | { | |
db914595 | 11156 | if (temp6) delete arg6; |
d14a1e28 RD |
11157 | } |
11158 | { | |
11159 | if (temp10) | |
4e760a36 | 11160 | delete arg10; |
d14a1e28 RD |
11161 | } |
11162 | return NULL; | |
11163 | } | |
11164 | ||
11165 | ||
11166 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11167 | PyObject *resultobj; | |
11168 | wxRadioBox *result; | |
11169 | char *kwnames[] = { | |
11170 | NULL | |
11171 | }; | |
11172 | ||
11173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11174 | { | |
11175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11176 | result = (wxRadioBox *)new wxRadioBox(); | |
11177 | ||
11178 | wxPyEndAllowThreads(__tstate); | |
11179 | if (PyErr_Occurred()) SWIG_fail; | |
11180 | } | |
2f4c0a16 | 11181 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11182 | return resultobj; |
11183 | fail: | |
11184 | return NULL; | |
11185 | } | |
11186 | ||
11187 | ||
11188 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11189 | PyObject *resultobj; | |
11190 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11191 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11192 | int arg3 ; |
d14a1e28 RD |
11193 | wxString *arg4 = 0 ; |
11194 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11195 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11196 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11197 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
11198 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11199 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11200 | int arg8 = (int) 0 ; | |
11201 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11202 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11203 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11204 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11205 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11206 | bool result; |
423f194a | 11207 | bool temp4 = False ; |
d14a1e28 RD |
11208 | wxPoint temp5 ; |
11209 | wxSize temp6 ; | |
db914595 | 11210 | bool temp7 = False ; |
423f194a | 11211 | bool temp11 = False ; |
d14a1e28 RD |
11212 | PyObject * obj0 = 0 ; |
11213 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11214 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11215 | PyObject * obj3 = 0 ; |
11216 | PyObject * obj4 = 0 ; | |
11217 | PyObject * obj5 = 0 ; | |
11218 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
11219 | PyObject * obj7 = 0 ; |
11220 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11221 | PyObject * obj9 = 0 ; |
11222 | PyObject * obj10 = 0 ; | |
11223 | char *kwnames[] = { | |
8edf1c75 | 11224 | (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 |
11225 | }; |
11226 | ||
8edf1c75 | 11227 | 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 |
11228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11230 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11232 | arg3 = (int) SWIG_AsInt(obj2); | |
11233 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11234 | { |
11235 | arg4 = wxString_in_helper(obj3); | |
11236 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11237 | temp4 = True; |
d14a1e28 RD |
11238 | } |
11239 | if (obj4) { | |
11240 | { | |
11241 | arg5 = &temp5; | |
11242 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11243 | } | |
11244 | } | |
11245 | if (obj5) { | |
11246 | { | |
11247 | arg6 = &temp6; | |
11248 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11249 | } | |
11250 | } | |
11251 | if (obj6) { | |
11252 | { | |
4e760a36 RD |
11253 | if (! PySequence_Check(obj6)) { |
11254 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11255 | SWIG_fail; | |
11256 | } | |
11257 | arg7 = new wxArrayString; | |
db914595 | 11258 | temp7 = True; |
4e760a36 RD |
11259 | int i, len=PySequence_Length(obj6); |
11260 | for (i=0; i<len; i++) { | |
11261 | PyObject* item = PySequence_GetItem(obj6, i); | |
11262 | #if wxUSE_UNICODE | |
11263 | PyObject* str = PyObject_Unicode(item); | |
11264 | #else | |
11265 | PyObject* str = PyObject_Str(item); | |
11266 | #endif | |
11267 | arg7->Add(Py2wxString(str)); | |
11268 | Py_DECREF(item); | |
11269 | Py_DECREF(str); | |
11270 | } | |
d14a1e28 RD |
11271 | } |
11272 | } | |
8edf1c75 | 11273 | if (obj7) { |
2f4c0a16 RD |
11274 | arg8 = (int) SWIG_AsInt(obj7); |
11275 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11276 | } |
11277 | if (obj8) { | |
2f4c0a16 RD |
11278 | arg9 = (long) SWIG_AsLong(obj8); |
11279 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11280 | } |
d14a1e28 | 11281 | if (obj9) { |
2f4c0a16 RD |
11282 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11283 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11284 | SWIG_fail; | |
4e760a36 | 11285 | if (arg10 == NULL) { |
2f4c0a16 RD |
11286 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11287 | SWIG_fail; | |
d14a1e28 RD |
11288 | } |
11289 | } | |
11290 | if (obj10) { | |
11291 | { | |
4e760a36 RD |
11292 | arg11 = wxString_in_helper(obj10); |
11293 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11294 | temp11 = True; |
d14a1e28 RD |
11295 | } |
11296 | } | |
11297 | { | |
11298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11299 | 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 |
11300 | |
11301 | wxPyEndAllowThreads(__tstate); | |
11302 | if (PyErr_Occurred()) SWIG_fail; | |
11303 | } | |
4f89f6a3 RD |
11304 | { |
11305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11306 | } | |
d14a1e28 RD |
11307 | { |
11308 | if (temp4) | |
11309 | delete arg4; | |
11310 | } | |
11311 | { | |
db914595 | 11312 | if (temp7) delete arg7; |
d14a1e28 RD |
11313 | } |
11314 | { | |
11315 | if (temp11) | |
4e760a36 | 11316 | delete arg11; |
d14a1e28 RD |
11317 | } |
11318 | return resultobj; | |
11319 | fail: | |
11320 | { | |
11321 | if (temp4) | |
11322 | delete arg4; | |
11323 | } | |
11324 | { | |
db914595 | 11325 | if (temp7) delete arg7; |
d14a1e28 RD |
11326 | } |
11327 | { | |
11328 | if (temp11) | |
4e760a36 | 11329 | delete arg11; |
d14a1e28 RD |
11330 | } |
11331 | return NULL; | |
11332 | } | |
11333 | ||
11334 | ||
11335 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11336 | PyObject *resultobj; | |
11337 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11338 | int arg2 ; | |
11339 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11341 | char *kwnames[] = { |
11342 | (char *) "self",(char *) "n", NULL | |
11343 | }; | |
11344 | ||
8edf1c75 | 11345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11348 | arg2 = (int) SWIG_AsInt(obj1); | |
11349 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11350 | { |
11351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11352 | (arg1)->SetSelection(arg2); | |
11353 | ||
11354 | wxPyEndAllowThreads(__tstate); | |
11355 | if (PyErr_Occurred()) SWIG_fail; | |
11356 | } | |
11357 | Py_INCREF(Py_None); resultobj = Py_None; | |
11358 | return resultobj; | |
11359 | fail: | |
11360 | return NULL; | |
11361 | } | |
11362 | ||
11363 | ||
11364 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11365 | PyObject *resultobj; | |
11366 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11367 | int result; | |
11368 | PyObject * obj0 = 0 ; | |
11369 | char *kwnames[] = { | |
11370 | (char *) "self", NULL | |
11371 | }; | |
11372 | ||
11373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11376 | { |
11377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11378 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11379 | ||
11380 | wxPyEndAllowThreads(__tstate); | |
11381 | if (PyErr_Occurred()) SWIG_fail; | |
11382 | } | |
2f4c0a16 | 11383 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11384 | return resultobj; |
11385 | fail: | |
11386 | return NULL; | |
11387 | } | |
11388 | ||
11389 | ||
11390 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11391 | PyObject *resultobj; | |
11392 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11393 | wxString result; | |
11394 | PyObject * obj0 = 0 ; | |
11395 | char *kwnames[] = { | |
11396 | (char *) "self", NULL | |
11397 | }; | |
11398 | ||
11399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11402 | { |
11403 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11404 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11405 | ||
11406 | wxPyEndAllowThreads(__tstate); | |
11407 | if (PyErr_Occurred()) SWIG_fail; | |
11408 | } | |
11409 | { | |
11410 | #if wxUSE_UNICODE | |
11411 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11412 | #else | |
11413 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11414 | #endif | |
11415 | } | |
11416 | return resultobj; | |
11417 | fail: | |
11418 | return NULL; | |
11419 | } | |
11420 | ||
11421 | ||
11422 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11423 | PyObject *resultobj; | |
11424 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11425 | wxString *arg2 = 0 ; | |
11426 | bool result; | |
423f194a | 11427 | bool temp2 = False ; |
d14a1e28 RD |
11428 | PyObject * obj0 = 0 ; |
11429 | PyObject * obj1 = 0 ; | |
11430 | char *kwnames[] = { | |
11431 | (char *) "self",(char *) "s", NULL | |
11432 | }; | |
11433 | ||
11434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11437 | { |
11438 | arg2 = wxString_in_helper(obj1); | |
11439 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11440 | temp2 = True; |
d14a1e28 RD |
11441 | } |
11442 | { | |
11443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11444 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11445 | ||
11446 | wxPyEndAllowThreads(__tstate); | |
11447 | if (PyErr_Occurred()) SWIG_fail; | |
11448 | } | |
4f89f6a3 RD |
11449 | { |
11450 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11451 | } | |
d14a1e28 RD |
11452 | { |
11453 | if (temp2) | |
11454 | delete arg2; | |
11455 | } | |
11456 | return resultobj; | |
11457 | fail: | |
11458 | { | |
11459 | if (temp2) | |
11460 | delete arg2; | |
11461 | } | |
11462 | return NULL; | |
11463 | } | |
11464 | ||
11465 | ||
11466 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11467 | PyObject *resultobj; | |
11468 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11469 | int result; | |
11470 | PyObject * obj0 = 0 ; | |
11471 | char *kwnames[] = { | |
11472 | (char *) "self", NULL | |
11473 | }; | |
11474 | ||
11475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11478 | { |
11479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11480 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11481 | ||
11482 | wxPyEndAllowThreads(__tstate); | |
11483 | if (PyErr_Occurred()) SWIG_fail; | |
11484 | } | |
2f4c0a16 | 11485 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11486 | return resultobj; |
11487 | fail: | |
11488 | return NULL; | |
11489 | } | |
11490 | ||
11491 | ||
11492 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11493 | PyObject *resultobj; | |
11494 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11495 | wxString *arg2 = 0 ; | |
11496 | int result; | |
423f194a | 11497 | bool temp2 = False ; |
d14a1e28 RD |
11498 | PyObject * obj0 = 0 ; |
11499 | PyObject * obj1 = 0 ; | |
11500 | char *kwnames[] = { | |
11501 | (char *) "self",(char *) "s", NULL | |
11502 | }; | |
11503 | ||
11504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11507 | { |
11508 | arg2 = wxString_in_helper(obj1); | |
11509 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11510 | temp2 = True; |
d14a1e28 RD |
11511 | } |
11512 | { | |
11513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11514 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11515 | ||
11516 | wxPyEndAllowThreads(__tstate); | |
11517 | if (PyErr_Occurred()) SWIG_fail; | |
11518 | } | |
2f4c0a16 | 11519 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11520 | { |
11521 | if (temp2) | |
11522 | delete arg2; | |
11523 | } | |
11524 | return resultobj; | |
11525 | fail: | |
11526 | { | |
11527 | if (temp2) | |
11528 | delete arg2; | |
11529 | } | |
11530 | return NULL; | |
11531 | } | |
11532 | ||
11533 | ||
11534 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11535 | PyObject *resultobj; | |
11536 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11537 | int arg2 ; | |
11538 | wxString result; | |
11539 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11540 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11541 | char *kwnames[] = { |
11542 | (char *) "self",(char *) "n", NULL | |
11543 | }; | |
11544 | ||
8edf1c75 | 11545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11548 | arg2 = (int) SWIG_AsInt(obj1); | |
11549 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11550 | { |
11551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11552 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11553 | ||
11554 | wxPyEndAllowThreads(__tstate); | |
11555 | if (PyErr_Occurred()) SWIG_fail; | |
11556 | } | |
11557 | { | |
11558 | #if wxUSE_UNICODE | |
11559 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11560 | #else | |
11561 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11562 | #endif | |
11563 | } | |
11564 | return resultobj; | |
11565 | fail: | |
11566 | return NULL; | |
11567 | } | |
11568 | ||
11569 | ||
11570 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11571 | PyObject *resultobj; | |
11572 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11573 | int arg2 ; | |
11574 | wxString *arg3 = 0 ; | |
423f194a | 11575 | bool temp3 = False ; |
d14a1e28 | 11576 | PyObject * obj0 = 0 ; |
8edf1c75 | 11577 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11578 | PyObject * obj2 = 0 ; |
11579 | char *kwnames[] = { | |
11580 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11581 | }; | |
11582 | ||
8edf1c75 | 11583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11586 | arg2 = (int) SWIG_AsInt(obj1); | |
11587 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11588 | { |
11589 | arg3 = wxString_in_helper(obj2); | |
11590 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11591 | temp3 = True; |
d14a1e28 RD |
11592 | } |
11593 | { | |
11594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11595 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11596 | ||
11597 | wxPyEndAllowThreads(__tstate); | |
11598 | if (PyErr_Occurred()) SWIG_fail; | |
11599 | } | |
11600 | Py_INCREF(Py_None); resultobj = Py_None; | |
11601 | { | |
11602 | if (temp3) | |
11603 | delete arg3; | |
11604 | } | |
11605 | return resultobj; | |
11606 | fail: | |
11607 | { | |
11608 | if (temp3) | |
11609 | delete arg3; | |
11610 | } | |
11611 | return NULL; | |
11612 | } | |
11613 | ||
11614 | ||
11615 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11616 | PyObject *resultobj; | |
11617 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11618 | int arg2 ; | |
423f194a | 11619 | bool arg3 = (bool) True ; |
d14a1e28 | 11620 | PyObject * obj0 = 0 ; |
8edf1c75 | 11621 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11622 | PyObject * obj2 = 0 ; |
11623 | char *kwnames[] = { | |
11624 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11625 | }; | |
11626 | ||
8edf1c75 | 11627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11630 | arg2 = (int) SWIG_AsInt(obj1); | |
11631 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11632 | if (obj2) { |
2f4c0a16 RD |
11633 | arg3 = (bool) SWIG_AsBool(obj2); |
11634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11635 | } |
11636 | { | |
11637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11638 | (arg1)->Enable(arg2,arg3); | |
11639 | ||
11640 | wxPyEndAllowThreads(__tstate); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
11642 | } | |
11643 | Py_INCREF(Py_None); resultobj = Py_None; | |
11644 | return resultobj; | |
11645 | fail: | |
11646 | return NULL; | |
11647 | } | |
11648 | ||
11649 | ||
11650 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11651 | PyObject *resultobj; | |
11652 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11653 | int arg2 ; | |
423f194a | 11654 | bool arg3 = (bool) True ; |
d14a1e28 | 11655 | PyObject * obj0 = 0 ; |
8edf1c75 | 11656 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11657 | PyObject * obj2 = 0 ; |
11658 | char *kwnames[] = { | |
11659 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11660 | }; | |
11661 | ||
8edf1c75 | 11662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11665 | arg2 = (int) SWIG_AsInt(obj1); | |
11666 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11667 | if (obj2) { |
2f4c0a16 RD |
11668 | arg3 = (bool) SWIG_AsBool(obj2); |
11669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11670 | } |
11671 | { | |
11672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11673 | (arg1)->Show(arg2,arg3); | |
11674 | ||
11675 | wxPyEndAllowThreads(__tstate); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
11677 | } | |
11678 | Py_INCREF(Py_None); resultobj = Py_None; | |
11679 | return resultobj; | |
11680 | fail: | |
11681 | return NULL; | |
11682 | } | |
11683 | ||
11684 | ||
11685 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11686 | PyObject *resultobj; | |
11687 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11688 | int result; | |
11689 | PyObject * obj0 = 0 ; | |
11690 | char *kwnames[] = { | |
11691 | (char *) "self", NULL | |
11692 | }; | |
11693 | ||
11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11697 | { |
11698 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11699 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11700 | ||
11701 | wxPyEndAllowThreads(__tstate); | |
11702 | if (PyErr_Occurred()) SWIG_fail; | |
11703 | } | |
2f4c0a16 | 11704 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11705 | return resultobj; |
11706 | fail: | |
11707 | return NULL; | |
11708 | } | |
11709 | ||
11710 | ||
11711 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11712 | PyObject *resultobj; | |
11713 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11714 | int result; | |
11715 | PyObject * obj0 = 0 ; | |
11716 | char *kwnames[] = { | |
11717 | (char *) "self", NULL | |
11718 | }; | |
11719 | ||
11720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11723 | { |
11724 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11725 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11726 | ||
11727 | wxPyEndAllowThreads(__tstate); | |
11728 | if (PyErr_Occurred()) SWIG_fail; | |
11729 | } | |
2f4c0a16 | 11730 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11731 | return resultobj; |
11732 | fail: | |
11733 | return NULL; | |
11734 | } | |
11735 | ||
11736 | ||
11737 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11738 | PyObject *resultobj; | |
11739 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11740 | int arg2 ; | |
11741 | int arg3 ; | |
11742 | long arg4 ; | |
11743 | int result; | |
11744 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11745 | PyObject * obj1 = 0 ; |
11746 | PyObject * obj2 = 0 ; | |
11747 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11748 | char *kwnames[] = { |
11749 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11750 | }; | |
11751 | ||
8edf1c75 | 11752 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11753 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11754 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11755 | arg2 = (int) SWIG_AsInt(obj1); | |
11756 | if (PyErr_Occurred()) SWIG_fail; | |
11757 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
11758 | if (PyErr_Occurred()) SWIG_fail; | |
11759 | arg4 = (long) SWIG_AsLong(obj3); | |
11760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11761 | { |
11762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11763 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11764 | ||
11765 | wxPyEndAllowThreads(__tstate); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | } | |
2f4c0a16 | 11768 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11769 | return resultobj; |
11770 | fail: | |
11771 | return NULL; | |
11772 | } | |
11773 | ||
11774 | ||
11775 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11776 | PyObject *obj; | |
11777 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11778 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11779 | Py_INCREF(obj); | |
11780 | return Py_BuildValue((char *)""); | |
11781 | } | |
11782 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11783 | PyObject *resultobj; | |
11784 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11785 | int arg2 ; |
d14a1e28 RD |
11786 | wxString *arg3 = 0 ; |
11787 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11788 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11789 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11790 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11791 | long arg6 = (long) 0 ; | |
11792 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11793 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11794 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11795 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11796 | wxRadioButton *result; | |
423f194a | 11797 | bool temp3 = False ; |
d14a1e28 RD |
11798 | wxPoint temp4 ; |
11799 | wxSize temp5 ; | |
423f194a | 11800 | bool temp8 = False ; |
d14a1e28 | 11801 | PyObject * obj0 = 0 ; |
8edf1c75 | 11802 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11803 | PyObject * obj2 = 0 ; |
11804 | PyObject * obj3 = 0 ; | |
11805 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11806 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11807 | PyObject * obj6 = 0 ; |
11808 | PyObject * obj7 = 0 ; | |
11809 | char *kwnames[] = { | |
11810 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11811 | }; | |
11812 | ||
8edf1c75 | 11813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
11814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11816 | arg2 = (int) SWIG_AsInt(obj1); | |
11817 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11818 | { |
11819 | arg3 = wxString_in_helper(obj2); | |
11820 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11821 | temp3 = True; |
d14a1e28 RD |
11822 | } |
11823 | if (obj3) { | |
11824 | { | |
11825 | arg4 = &temp4; | |
11826 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11827 | } | |
11828 | } | |
11829 | if (obj4) { | |
11830 | { | |
11831 | arg5 = &temp5; | |
11832 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11833 | } | |
11834 | } | |
8edf1c75 | 11835 | if (obj5) { |
2f4c0a16 RD |
11836 | arg6 = (long) SWIG_AsLong(obj5); |
11837 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11838 | } |
d14a1e28 | 11839 | if (obj6) { |
2f4c0a16 RD |
11840 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
11841 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11842 | SWIG_fail; | |
d14a1e28 | 11843 | if (arg7 == NULL) { |
2f4c0a16 RD |
11844 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11845 | SWIG_fail; | |
d14a1e28 RD |
11846 | } |
11847 | } | |
11848 | if (obj7) { | |
11849 | { | |
11850 | arg8 = wxString_in_helper(obj7); | |
11851 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11852 | temp8 = True; |
d14a1e28 RD |
11853 | } |
11854 | } | |
11855 | { | |
11856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11857 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11858 | ||
11859 | wxPyEndAllowThreads(__tstate); | |
11860 | if (PyErr_Occurred()) SWIG_fail; | |
11861 | } | |
2f4c0a16 | 11862 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11863 | { |
11864 | if (temp3) | |
11865 | delete arg3; | |
11866 | } | |
11867 | { | |
11868 | if (temp8) | |
11869 | delete arg8; | |
11870 | } | |
11871 | return resultobj; | |
11872 | fail: | |
11873 | { | |
11874 | if (temp3) | |
11875 | delete arg3; | |
11876 | } | |
11877 | { | |
11878 | if (temp8) | |
11879 | delete arg8; | |
11880 | } | |
11881 | return NULL; | |
11882 | } | |
11883 | ||
11884 | ||
11885 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11886 | PyObject *resultobj; | |
11887 | wxRadioButton *result; | |
11888 | char *kwnames[] = { | |
11889 | NULL | |
11890 | }; | |
11891 | ||
11892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11893 | { | |
11894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11895 | result = (wxRadioButton *)new wxRadioButton(); | |
11896 | ||
11897 | wxPyEndAllowThreads(__tstate); | |
11898 | if (PyErr_Occurred()) SWIG_fail; | |
11899 | } | |
2f4c0a16 | 11900 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11901 | return resultobj; |
11902 | fail: | |
11903 | return NULL; | |
11904 | } | |
11905 | ||
11906 | ||
11907 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11908 | PyObject *resultobj; | |
11909 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11910 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11911 | int arg3 ; |
d14a1e28 RD |
11912 | wxString *arg4 = 0 ; |
11913 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11914 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11915 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11916 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11917 | long arg7 = (long) 0 ; | |
11918 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11919 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11920 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11921 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11922 | bool result; | |
423f194a | 11923 | bool temp4 = False ; |
d14a1e28 RD |
11924 | wxPoint temp5 ; |
11925 | wxSize temp6 ; | |
423f194a | 11926 | bool temp9 = False ; |
d14a1e28 RD |
11927 | PyObject * obj0 = 0 ; |
11928 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11929 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11930 | PyObject * obj3 = 0 ; |
11931 | PyObject * obj4 = 0 ; | |
11932 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11933 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11934 | PyObject * obj7 = 0 ; |
11935 | PyObject * obj8 = 0 ; | |
11936 | char *kwnames[] = { | |
11937 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11938 | }; | |
11939 | ||
8edf1c75 | 11940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
11941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
11942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11943 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11945 | arg3 = (int) SWIG_AsInt(obj2); | |
11946 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11947 | { |
11948 | arg4 = wxString_in_helper(obj3); | |
11949 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11950 | temp4 = True; |
d14a1e28 RD |
11951 | } |
11952 | if (obj4) { | |
11953 | { | |
11954 | arg5 = &temp5; | |
11955 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11956 | } | |
11957 | } | |
11958 | if (obj5) { | |
11959 | { | |
11960 | arg6 = &temp6; | |
11961 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11962 | } | |
11963 | } | |
8edf1c75 | 11964 | if (obj6) { |
2f4c0a16 RD |
11965 | arg7 = (long) SWIG_AsLong(obj6); |
11966 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11967 | } |
d14a1e28 | 11968 | if (obj7) { |
2f4c0a16 RD |
11969 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
11970 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11971 | SWIG_fail; | |
d14a1e28 | 11972 | if (arg8 == NULL) { |
2f4c0a16 RD |
11973 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11974 | SWIG_fail; | |
d14a1e28 RD |
11975 | } |
11976 | } | |
11977 | if (obj8) { | |
11978 | { | |
11979 | arg9 = wxString_in_helper(obj8); | |
11980 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11981 | temp9 = True; |
d14a1e28 RD |
11982 | } |
11983 | } | |
11984 | { | |
11985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11986 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11987 | ||
11988 | wxPyEndAllowThreads(__tstate); | |
11989 | if (PyErr_Occurred()) SWIG_fail; | |
11990 | } | |
4f89f6a3 RD |
11991 | { |
11992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11993 | } | |
d14a1e28 RD |
11994 | { |
11995 | if (temp4) | |
11996 | delete arg4; | |
11997 | } | |
11998 | { | |
11999 | if (temp9) | |
12000 | delete arg9; | |
12001 | } | |
12002 | return resultobj; | |
12003 | fail: | |
12004 | { | |
12005 | if (temp4) | |
12006 | delete arg4; | |
12007 | } | |
12008 | { | |
12009 | if (temp9) | |
12010 | delete arg9; | |
12011 | } | |
12012 | return NULL; | |
12013 | } | |
12014 | ||
12015 | ||
12016 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12017 | PyObject *resultobj; | |
12018 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12019 | bool result; | |
12020 | PyObject * obj0 = 0 ; | |
12021 | char *kwnames[] = { | |
12022 | (char *) "self", NULL | |
12023 | }; | |
12024 | ||
12025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12028 | { |
12029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12030 | result = (bool)(arg1)->GetValue(); | |
12031 | ||
12032 | wxPyEndAllowThreads(__tstate); | |
12033 | if (PyErr_Occurred()) SWIG_fail; | |
12034 | } | |
4f89f6a3 RD |
12035 | { |
12036 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12037 | } | |
d14a1e28 RD |
12038 | return resultobj; |
12039 | fail: | |
12040 | return NULL; | |
12041 | } | |
12042 | ||
12043 | ||
12044 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12045 | PyObject *resultobj; | |
12046 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12047 | bool arg2 ; | |
12048 | PyObject * obj0 = 0 ; | |
12049 | PyObject * obj1 = 0 ; | |
12050 | char *kwnames[] = { | |
12051 | (char *) "self",(char *) "value", NULL | |
12052 | }; | |
12053 | ||
12054 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12055 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12056 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12057 | arg2 = (bool) SWIG_AsBool(obj1); | |
12058 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12059 | { |
12060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12061 | (arg1)->SetValue(arg2); | |
12062 | ||
12063 | wxPyEndAllowThreads(__tstate); | |
12064 | if (PyErr_Occurred()) SWIG_fail; | |
12065 | } | |
12066 | Py_INCREF(Py_None); resultobj = Py_None; | |
12067 | return resultobj; | |
12068 | fail: | |
12069 | return NULL; | |
12070 | } | |
12071 | ||
12072 | ||
12073 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
12074 | PyObject *obj; | |
12075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12076 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12077 | Py_INCREF(obj); | |
12078 | return Py_BuildValue((char *)""); | |
12079 | } | |
2f4c0a16 | 12080 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
d03fd34d RD |
12081 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12082 | return 1; | |
12083 | } | |
12084 | ||
12085 | ||
12086 | static PyObject *_wrap_SliderNameStr_get() { | |
12087 | PyObject *pyobj; | |
12088 | ||
12089 | { | |
12090 | #if wxUSE_UNICODE | |
12091 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12092 | #else | |
12093 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12094 | #endif | |
12095 | } | |
12096 | return pyobj; | |
12097 | } | |
12098 | ||
12099 | ||
d14a1e28 RD |
12100 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12101 | PyObject *resultobj; | |
12102 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12103 | int arg2 ; |
d14a1e28 RD |
12104 | int arg3 ; |
12105 | int arg4 ; | |
12106 | int arg5 ; | |
12107 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12108 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12109 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12110 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12111 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12112 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12113 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12114 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12115 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12116 | wxSlider *result; | |
12117 | wxPoint temp6 ; | |
12118 | wxSize temp7 ; | |
423f194a | 12119 | bool temp10 = False ; |
d14a1e28 | 12120 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12121 | PyObject * obj1 = 0 ; |
12122 | PyObject * obj2 = 0 ; | |
12123 | PyObject * obj3 = 0 ; | |
12124 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12125 | PyObject * obj5 = 0 ; |
12126 | PyObject * obj6 = 0 ; | |
8edf1c75 | 12127 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12128 | PyObject * obj8 = 0 ; |
12129 | PyObject * obj9 = 0 ; | |
12130 | char *kwnames[] = { | |
8edf1c75 | 12131 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12132 | }; |
12133 | ||
8edf1c75 | 12134 | 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 |
12135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12137 | arg2 = (int) SWIG_AsInt(obj1); | |
12138 | if (PyErr_Occurred()) SWIG_fail; | |
12139 | arg3 = (int) SWIG_AsInt(obj2); | |
12140 | if (PyErr_Occurred()) SWIG_fail; | |
12141 | arg4 = (int) SWIG_AsInt(obj3); | |
12142 | if (PyErr_Occurred()) SWIG_fail; | |
12143 | arg5 = (int) SWIG_AsInt(obj4); | |
12144 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12145 | if (obj5) { |
12146 | { | |
12147 | arg6 = &temp6; | |
12148 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12149 | } | |
12150 | } | |
12151 | if (obj6) { | |
12152 | { | |
12153 | arg7 = &temp7; | |
12154 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12155 | } | |
12156 | } | |
8edf1c75 | 12157 | if (obj7) { |
2f4c0a16 RD |
12158 | arg8 = (long) SWIG_AsLong(obj7); |
12159 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12160 | } |
d14a1e28 | 12161 | if (obj8) { |
2f4c0a16 RD |
12162 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12163 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12164 | SWIG_fail; | |
d14a1e28 | 12165 | if (arg9 == NULL) { |
2f4c0a16 RD |
12166 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12167 | SWIG_fail; | |
d14a1e28 RD |
12168 | } |
12169 | } | |
12170 | if (obj9) { | |
12171 | { | |
12172 | arg10 = wxString_in_helper(obj9); | |
12173 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 12174 | temp10 = True; |
d14a1e28 RD |
12175 | } |
12176 | } | |
12177 | { | |
12178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12179 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12180 | ||
12181 | wxPyEndAllowThreads(__tstate); | |
12182 | if (PyErr_Occurred()) SWIG_fail; | |
12183 | } | |
2f4c0a16 | 12184 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12185 | { |
12186 | if (temp10) | |
12187 | delete arg10; | |
12188 | } | |
12189 | return resultobj; | |
12190 | fail: | |
12191 | { | |
12192 | if (temp10) | |
12193 | delete arg10; | |
12194 | } | |
12195 | return NULL; | |
12196 | } | |
12197 | ||
12198 | ||
12199 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12200 | PyObject *resultobj; | |
12201 | wxSlider *result; | |
12202 | char *kwnames[] = { | |
12203 | NULL | |
12204 | }; | |
12205 | ||
12206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12207 | { | |
12208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12209 | result = (wxSlider *)new wxSlider(); | |
12210 | ||
12211 | wxPyEndAllowThreads(__tstate); | |
12212 | if (PyErr_Occurred()) SWIG_fail; | |
12213 | } | |
2f4c0a16 | 12214 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12215 | return resultobj; |
12216 | fail: | |
12217 | return NULL; | |
12218 | } | |
12219 | ||
12220 | ||
12221 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12222 | PyObject *resultobj; | |
12223 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12224 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12225 | int arg3 ; |
d14a1e28 RD |
12226 | int arg4 ; |
12227 | int arg5 ; | |
12228 | int arg6 ; | |
12229 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12230 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12231 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12232 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12233 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12234 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12235 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12236 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12237 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12238 | bool result; | |
12239 | wxPoint temp7 ; | |
12240 | wxSize temp8 ; | |
423f194a | 12241 | bool temp11 = False ; |
d14a1e28 RD |
12242 | PyObject * obj0 = 0 ; |
12243 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12244 | PyObject * obj2 = 0 ; |
12245 | PyObject * obj3 = 0 ; | |
12246 | PyObject * obj4 = 0 ; | |
12247 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12248 | PyObject * obj6 = 0 ; |
12249 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12250 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12251 | PyObject * obj9 = 0 ; |
12252 | PyObject * obj10 = 0 ; | |
12253 | char *kwnames[] = { | |
8edf1c75 | 12254 | (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 |
12255 | }; |
12256 | ||
8edf1c75 | 12257 | 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 |
12258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12260 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12261 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12262 | arg3 = (int) SWIG_AsInt(obj2); | |
12263 | if (PyErr_Occurred()) SWIG_fail; | |
12264 | arg4 = (int) SWIG_AsInt(obj3); | |
12265 | if (PyErr_Occurred()) SWIG_fail; | |
12266 | arg5 = (int) SWIG_AsInt(obj4); | |
12267 | if (PyErr_Occurred()) SWIG_fail; | |
12268 | arg6 = (int) SWIG_AsInt(obj5); | |
12269 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12270 | if (obj6) { |
12271 | { | |
12272 | arg7 = &temp7; | |
12273 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12274 | } | |
12275 | } | |
12276 | if (obj7) { | |
12277 | { | |
12278 | arg8 = &temp8; | |
12279 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12280 | } | |
12281 | } | |
8edf1c75 | 12282 | if (obj8) { |
2f4c0a16 RD |
12283 | arg9 = (long) SWIG_AsLong(obj8); |
12284 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12285 | } |
d14a1e28 | 12286 | if (obj9) { |
2f4c0a16 RD |
12287 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12288 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12289 | SWIG_fail; | |
d14a1e28 | 12290 | if (arg10 == NULL) { |
2f4c0a16 RD |
12291 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12292 | SWIG_fail; | |
d14a1e28 RD |
12293 | } |
12294 | } | |
12295 | if (obj10) { | |
12296 | { | |
12297 | arg11 = wxString_in_helper(obj10); | |
12298 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12299 | temp11 = True; |
d14a1e28 RD |
12300 | } |
12301 | } | |
12302 | { | |
12303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12304 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12305 | ||
12306 | wxPyEndAllowThreads(__tstate); | |
12307 | if (PyErr_Occurred()) SWIG_fail; | |
12308 | } | |
4f89f6a3 RD |
12309 | { |
12310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12311 | } | |
d14a1e28 RD |
12312 | { |
12313 | if (temp11) | |
12314 | delete arg11; | |
12315 | } | |
12316 | return resultobj; | |
12317 | fail: | |
12318 | { | |
12319 | if (temp11) | |
12320 | delete arg11; | |
12321 | } | |
12322 | return NULL; | |
12323 | } | |
12324 | ||
12325 | ||
12326 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12327 | PyObject *resultobj; | |
12328 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12329 | int result; | |
12330 | PyObject * obj0 = 0 ; | |
12331 | char *kwnames[] = { | |
12332 | (char *) "self", NULL | |
12333 | }; | |
12334 | ||
12335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12338 | { |
12339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12340 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12341 | ||
12342 | wxPyEndAllowThreads(__tstate); | |
12343 | if (PyErr_Occurred()) SWIG_fail; | |
12344 | } | |
2f4c0a16 | 12345 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12346 | return resultobj; |
12347 | fail: | |
12348 | return NULL; | |
12349 | } | |
12350 | ||
12351 | ||
12352 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12353 | PyObject *resultobj; | |
12354 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12355 | int arg2 ; | |
12356 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12357 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12358 | char *kwnames[] = { |
12359 | (char *) "self",(char *) "value", NULL | |
12360 | }; | |
12361 | ||
8edf1c75 | 12362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12365 | arg2 = (int) SWIG_AsInt(obj1); | |
12366 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12367 | { |
12368 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12369 | (arg1)->SetValue(arg2); | |
12370 | ||
12371 | wxPyEndAllowThreads(__tstate); | |
12372 | if (PyErr_Occurred()) SWIG_fail; | |
12373 | } | |
12374 | Py_INCREF(Py_None); resultobj = Py_None; | |
12375 | return resultobj; | |
12376 | fail: | |
12377 | return NULL; | |
12378 | } | |
12379 | ||
12380 | ||
12381 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12382 | PyObject *resultobj; | |
12383 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12384 | int arg2 ; | |
12385 | int arg3 ; | |
12386 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12387 | PyObject * obj1 = 0 ; |
12388 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12389 | char *kwnames[] = { |
12390 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12391 | }; | |
12392 | ||
8edf1c75 | 12393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12396 | arg2 = (int) SWIG_AsInt(obj1); | |
12397 | if (PyErr_Occurred()) SWIG_fail; | |
12398 | arg3 = (int) SWIG_AsInt(obj2); | |
12399 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12400 | { |
12401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12402 | (arg1)->SetRange(arg2,arg3); | |
12403 | ||
12404 | wxPyEndAllowThreads(__tstate); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
12406 | } | |
12407 | Py_INCREF(Py_None); resultobj = Py_None; | |
12408 | return resultobj; | |
12409 | fail: | |
12410 | return NULL; | |
12411 | } | |
12412 | ||
12413 | ||
12414 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12415 | PyObject *resultobj; | |
12416 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12417 | int result; | |
12418 | PyObject * obj0 = 0 ; | |
12419 | char *kwnames[] = { | |
12420 | (char *) "self", NULL | |
12421 | }; | |
12422 | ||
12423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12426 | { |
12427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12428 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12429 | ||
12430 | wxPyEndAllowThreads(__tstate); | |
12431 | if (PyErr_Occurred()) SWIG_fail; | |
12432 | } | |
2f4c0a16 | 12433 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12434 | return resultobj; |
12435 | fail: | |
12436 | return NULL; | |
12437 | } | |
12438 | ||
12439 | ||
12440 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12441 | PyObject *resultobj; | |
12442 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12443 | int result; | |
12444 | PyObject * obj0 = 0 ; | |
12445 | char *kwnames[] = { | |
12446 | (char *) "self", NULL | |
12447 | }; | |
12448 | ||
12449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12452 | { |
12453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12454 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12455 | ||
12456 | wxPyEndAllowThreads(__tstate); | |
12457 | if (PyErr_Occurred()) SWIG_fail; | |
12458 | } | |
2f4c0a16 | 12459 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12460 | return resultobj; |
12461 | fail: | |
12462 | return NULL; | |
12463 | } | |
12464 | ||
12465 | ||
12466 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12467 | PyObject *resultobj; | |
12468 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12469 | int arg2 ; | |
12470 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12471 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12472 | char *kwnames[] = { |
12473 | (char *) "self",(char *) "minValue", NULL | |
12474 | }; | |
12475 | ||
8edf1c75 | 12476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12479 | arg2 = (int) SWIG_AsInt(obj1); | |
12480 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12481 | { |
12482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12483 | (arg1)->SetMin(arg2); | |
12484 | ||
12485 | wxPyEndAllowThreads(__tstate); | |
12486 | if (PyErr_Occurred()) SWIG_fail; | |
12487 | } | |
12488 | Py_INCREF(Py_None); resultobj = Py_None; | |
12489 | return resultobj; | |
12490 | fail: | |
12491 | return NULL; | |
12492 | } | |
12493 | ||
12494 | ||
12495 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12496 | PyObject *resultobj; | |
12497 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12498 | int arg2 ; | |
12499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12501 | char *kwnames[] = { |
12502 | (char *) "self",(char *) "maxValue", NULL | |
12503 | }; | |
12504 | ||
8edf1c75 | 12505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12508 | arg2 = (int) SWIG_AsInt(obj1); | |
12509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12510 | { |
12511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12512 | (arg1)->SetMax(arg2); | |
12513 | ||
12514 | wxPyEndAllowThreads(__tstate); | |
12515 | if (PyErr_Occurred()) SWIG_fail; | |
12516 | } | |
12517 | Py_INCREF(Py_None); resultobj = Py_None; | |
12518 | return resultobj; | |
12519 | fail: | |
12520 | return NULL; | |
12521 | } | |
12522 | ||
12523 | ||
12524 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12525 | PyObject *resultobj; | |
12526 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12527 | int arg2 ; | |
12528 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12529 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12530 | char *kwnames[] = { |
12531 | (char *) "self",(char *) "lineSize", NULL | |
12532 | }; | |
12533 | ||
8edf1c75 | 12534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12537 | arg2 = (int) SWIG_AsInt(obj1); | |
12538 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12539 | { |
12540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12541 | (arg1)->SetLineSize(arg2); | |
12542 | ||
12543 | wxPyEndAllowThreads(__tstate); | |
12544 | if (PyErr_Occurred()) SWIG_fail; | |
12545 | } | |
12546 | Py_INCREF(Py_None); resultobj = Py_None; | |
12547 | return resultobj; | |
12548 | fail: | |
12549 | return NULL; | |
12550 | } | |
12551 | ||
12552 | ||
12553 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12554 | PyObject *resultobj; | |
12555 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12556 | int arg2 ; | |
12557 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12558 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12559 | char *kwnames[] = { |
12560 | (char *) "self",(char *) "pageSize", NULL | |
12561 | }; | |
12562 | ||
8edf1c75 | 12563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12566 | arg2 = (int) SWIG_AsInt(obj1); | |
12567 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12568 | { |
12569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12570 | (arg1)->SetPageSize(arg2); | |
12571 | ||
12572 | wxPyEndAllowThreads(__tstate); | |
12573 | if (PyErr_Occurred()) SWIG_fail; | |
12574 | } | |
12575 | Py_INCREF(Py_None); resultobj = Py_None; | |
12576 | return resultobj; | |
12577 | fail: | |
12578 | return NULL; | |
12579 | } | |
12580 | ||
12581 | ||
12582 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12583 | PyObject *resultobj; | |
12584 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12585 | int result; | |
12586 | PyObject * obj0 = 0 ; | |
12587 | char *kwnames[] = { | |
12588 | (char *) "self", NULL | |
12589 | }; | |
12590 | ||
12591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12594 | { |
12595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12596 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12597 | ||
12598 | wxPyEndAllowThreads(__tstate); | |
12599 | if (PyErr_Occurred()) SWIG_fail; | |
12600 | } | |
2f4c0a16 | 12601 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12602 | return resultobj; |
12603 | fail: | |
12604 | return NULL; | |
12605 | } | |
12606 | ||
12607 | ||
12608 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12609 | PyObject *resultobj; | |
12610 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12611 | int result; | |
12612 | PyObject * obj0 = 0 ; | |
12613 | char *kwnames[] = { | |
12614 | (char *) "self", NULL | |
12615 | }; | |
12616 | ||
12617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12620 | { |
12621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12622 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12623 | ||
12624 | wxPyEndAllowThreads(__tstate); | |
12625 | if (PyErr_Occurred()) SWIG_fail; | |
12626 | } | |
2f4c0a16 | 12627 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12628 | return resultobj; |
12629 | fail: | |
12630 | return NULL; | |
12631 | } | |
12632 | ||
12633 | ||
12634 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12635 | PyObject *resultobj; | |
12636 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12637 | int arg2 ; | |
12638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12640 | char *kwnames[] = { |
12641 | (char *) "self",(char *) "lenPixels", NULL | |
12642 | }; | |
12643 | ||
8edf1c75 | 12644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12647 | arg2 = (int) SWIG_AsInt(obj1); | |
12648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12649 | { |
12650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12651 | (arg1)->SetThumbLength(arg2); | |
12652 | ||
12653 | wxPyEndAllowThreads(__tstate); | |
12654 | if (PyErr_Occurred()) SWIG_fail; | |
12655 | } | |
12656 | Py_INCREF(Py_None); resultobj = Py_None; | |
12657 | return resultobj; | |
12658 | fail: | |
12659 | return NULL; | |
12660 | } | |
12661 | ||
12662 | ||
12663 | static PyObject *_wrap_Slider_GetThumbLength(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_GetThumbLength",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)->GetThumbLength(); | |
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_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12690 | PyObject *resultobj; | |
12691 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12692 | int arg2 ; | |
8edf1c75 | 12693 | int arg3 = (int) 1 ; |
d14a1e28 | 12694 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12695 | PyObject * obj1 = 0 ; |
12696 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12697 | char *kwnames[] = { |
12698 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12699 | }; | |
12700 | ||
8edf1c75 | 12701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12704 | arg2 = (int) SWIG_AsInt(obj1); | |
12705 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12706 | if (obj2) { |
2f4c0a16 RD |
12707 | arg3 = (int) SWIG_AsInt(obj2); |
12708 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12709 | } |
d14a1e28 RD |
12710 | { |
12711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12712 | (arg1)->SetTickFreq(arg2,arg3); | |
12713 | ||
12714 | wxPyEndAllowThreads(__tstate); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
12716 | } | |
12717 | Py_INCREF(Py_None); resultobj = Py_None; | |
12718 | return resultobj; | |
12719 | fail: | |
12720 | return NULL; | |
12721 | } | |
12722 | ||
12723 | ||
12724 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12725 | PyObject *resultobj; | |
12726 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12727 | int result; | |
12728 | PyObject * obj0 = 0 ; | |
12729 | char *kwnames[] = { | |
12730 | (char *) "self", NULL | |
12731 | }; | |
12732 | ||
12733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12736 | { |
12737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12738 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12739 | ||
12740 | wxPyEndAllowThreads(__tstate); | |
12741 | if (PyErr_Occurred()) SWIG_fail; | |
12742 | } | |
2f4c0a16 | 12743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12744 | return resultobj; |
12745 | fail: | |
12746 | return NULL; | |
12747 | } | |
12748 | ||
12749 | ||
12750 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12751 | PyObject *resultobj; | |
12752 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12753 | PyObject * obj0 = 0 ; | |
12754 | char *kwnames[] = { | |
12755 | (char *) "self", NULL | |
12756 | }; | |
12757 | ||
12758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12761 | { |
12762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12763 | (arg1)->ClearTicks(); | |
12764 | ||
12765 | wxPyEndAllowThreads(__tstate); | |
12766 | if (PyErr_Occurred()) SWIG_fail; | |
12767 | } | |
12768 | Py_INCREF(Py_None); resultobj = Py_None; | |
12769 | return resultobj; | |
12770 | fail: | |
12771 | return NULL; | |
12772 | } | |
12773 | ||
12774 | ||
12775 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12776 | PyObject *resultobj; | |
12777 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12778 | int arg2 ; | |
12779 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12780 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12781 | char *kwnames[] = { |
12782 | (char *) "self",(char *) "tickPos", NULL | |
12783 | }; | |
12784 | ||
8edf1c75 | 12785 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12786 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12787 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12788 | arg2 = (int) SWIG_AsInt(obj1); | |
12789 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12790 | { |
12791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12792 | (arg1)->SetTick(arg2); | |
12793 | ||
12794 | wxPyEndAllowThreads(__tstate); | |
12795 | if (PyErr_Occurred()) SWIG_fail; | |
12796 | } | |
12797 | Py_INCREF(Py_None); resultobj = Py_None; | |
12798 | return resultobj; | |
12799 | fail: | |
12800 | return NULL; | |
12801 | } | |
12802 | ||
12803 | ||
12804 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12805 | PyObject *resultobj; | |
12806 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12807 | PyObject * obj0 = 0 ; | |
12808 | char *kwnames[] = { | |
12809 | (char *) "self", NULL | |
12810 | }; | |
12811 | ||
12812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12815 | { |
12816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12817 | (arg1)->ClearSel(); | |
12818 | ||
12819 | wxPyEndAllowThreads(__tstate); | |
12820 | if (PyErr_Occurred()) SWIG_fail; | |
12821 | } | |
12822 | Py_INCREF(Py_None); resultobj = Py_None; | |
12823 | return resultobj; | |
12824 | fail: | |
12825 | return NULL; | |
12826 | } | |
12827 | ||
12828 | ||
12829 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12830 | PyObject *resultobj; | |
12831 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12832 | int result; | |
12833 | PyObject * obj0 = 0 ; | |
12834 | char *kwnames[] = { | |
12835 | (char *) "self", NULL | |
12836 | }; | |
12837 | ||
12838 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12839 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12840 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12841 | { |
12842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12843 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12844 | ||
12845 | wxPyEndAllowThreads(__tstate); | |
12846 | if (PyErr_Occurred()) SWIG_fail; | |
12847 | } | |
2f4c0a16 | 12848 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12849 | return resultobj; |
12850 | fail: | |
12851 | return NULL; | |
12852 | } | |
12853 | ||
12854 | ||
12855 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12856 | PyObject *resultobj; | |
12857 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12858 | int result; | |
12859 | PyObject * obj0 = 0 ; | |
12860 | char *kwnames[] = { | |
12861 | (char *) "self", NULL | |
12862 | }; | |
12863 | ||
12864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12867 | { |
12868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12869 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12870 | ||
12871 | wxPyEndAllowThreads(__tstate); | |
12872 | if (PyErr_Occurred()) SWIG_fail; | |
12873 | } | |
2f4c0a16 | 12874 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12875 | return resultobj; |
12876 | fail: | |
12877 | return NULL; | |
12878 | } | |
12879 | ||
12880 | ||
12881 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12882 | PyObject *resultobj; | |
12883 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12884 | int arg2 ; | |
12885 | int arg3 ; | |
12886 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12887 | PyObject * obj1 = 0 ; |
12888 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12889 | char *kwnames[] = { |
12890 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12891 | }; | |
12892 | ||
8edf1c75 | 12893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12896 | arg2 = (int) SWIG_AsInt(obj1); | |
12897 | if (PyErr_Occurred()) SWIG_fail; | |
12898 | arg3 = (int) SWIG_AsInt(obj2); | |
12899 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12900 | { |
12901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12902 | (arg1)->SetSelection(arg2,arg3); | |
12903 | ||
12904 | wxPyEndAllowThreads(__tstate); | |
12905 | if (PyErr_Occurred()) SWIG_fail; | |
12906 | } | |
12907 | Py_INCREF(Py_None); resultobj = Py_None; | |
12908 | return resultobj; | |
12909 | fail: | |
12910 | return NULL; | |
12911 | } | |
12912 | ||
12913 | ||
12914 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12915 | PyObject *obj; | |
12916 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12917 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12918 | Py_INCREF(obj); | |
12919 | return Py_BuildValue((char *)""); | |
12920 | } | |
2f4c0a16 | 12921 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
12922 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12923 | return 1; | |
12924 | } | |
12925 | ||
12926 | ||
12927 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12928 | PyObject *pyobj; | |
12929 | ||
12930 | { | |
12931 | #if wxUSE_UNICODE | |
12932 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12933 | #else | |
12934 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12935 | #endif | |
12936 | } | |
12937 | return pyobj; | |
12938 | } | |
12939 | ||
12940 | ||
d14a1e28 RD |
12941 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12942 | PyObject *resultobj; | |
12943 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12944 | int arg2 ; |
d14a1e28 RD |
12945 | wxString *arg3 = 0 ; |
12946 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12947 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12948 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12949 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12950 | long arg6 = (long) 0 ; | |
12951 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12952 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12953 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12954 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12955 | wxToggleButton *result; | |
423f194a | 12956 | bool temp3 = False ; |
d14a1e28 RD |
12957 | wxPoint temp4 ; |
12958 | wxSize temp5 ; | |
423f194a | 12959 | bool temp8 = False ; |
d14a1e28 | 12960 | PyObject * obj0 = 0 ; |
8edf1c75 | 12961 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12962 | PyObject * obj2 = 0 ; |
12963 | PyObject * obj3 = 0 ; | |
12964 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12965 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12966 | PyObject * obj6 = 0 ; |
12967 | PyObject * obj7 = 0 ; | |
12968 | char *kwnames[] = { | |
12969 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12970 | }; | |
12971 | ||
8edf1c75 | 12972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
12973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12975 | arg2 = (int) SWIG_AsInt(obj1); | |
12976 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12977 | { |
12978 | arg3 = wxString_in_helper(obj2); | |
12979 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12980 | temp3 = True; |
d14a1e28 RD |
12981 | } |
12982 | if (obj3) { | |
12983 | { | |
12984 | arg4 = &temp4; | |
12985 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12986 | } | |
12987 | } | |
12988 | if (obj4) { | |
12989 | { | |
12990 | arg5 = &temp5; | |
12991 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12992 | } | |
12993 | } | |
8edf1c75 | 12994 | if (obj5) { |
2f4c0a16 RD |
12995 | arg6 = (long) SWIG_AsLong(obj5); |
12996 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12997 | } |
d14a1e28 | 12998 | if (obj6) { |
2f4c0a16 RD |
12999 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13000 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13001 | SWIG_fail; | |
d14a1e28 | 13002 | if (arg7 == NULL) { |
2f4c0a16 RD |
13003 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13004 | SWIG_fail; | |
d14a1e28 RD |
13005 | } |
13006 | } | |
13007 | if (obj7) { | |
13008 | { | |
13009 | arg8 = wxString_in_helper(obj7); | |
13010 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13011 | temp8 = True; |
d14a1e28 RD |
13012 | } |
13013 | } | |
13014 | { | |
13015 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13016 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13017 | ||
13018 | wxPyEndAllowThreads(__tstate); | |
13019 | if (PyErr_Occurred()) SWIG_fail; | |
13020 | } | |
2f4c0a16 | 13021 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13022 | { |
13023 | if (temp3) | |
13024 | delete arg3; | |
13025 | } | |
13026 | { | |
13027 | if (temp8) | |
13028 | delete arg8; | |
13029 | } | |
13030 | return resultobj; | |
13031 | fail: | |
13032 | { | |
13033 | if (temp3) | |
13034 | delete arg3; | |
13035 | } | |
13036 | { | |
13037 | if (temp8) | |
13038 | delete arg8; | |
13039 | } | |
13040 | return NULL; | |
13041 | } | |
13042 | ||
13043 | ||
13044 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13045 | PyObject *resultobj; | |
13046 | wxToggleButton *result; | |
13047 | char *kwnames[] = { | |
13048 | NULL | |
13049 | }; | |
13050 | ||
13051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13052 | { | |
13053 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13054 | result = (wxToggleButton *)new wxToggleButton(); | |
13055 | ||
13056 | wxPyEndAllowThreads(__tstate); | |
13057 | if (PyErr_Occurred()) SWIG_fail; | |
13058 | } | |
2f4c0a16 | 13059 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13060 | return resultobj; |
13061 | fail: | |
13062 | return NULL; | |
13063 | } | |
13064 | ||
13065 | ||
13066 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13067 | PyObject *resultobj; | |
13068 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13069 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13070 | int arg3 ; |
d14a1e28 RD |
13071 | wxString *arg4 = 0 ; |
13072 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13073 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13074 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13075 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13076 | long arg7 = (long) 0 ; | |
13077 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13078 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13079 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13080 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13081 | bool result; | |
423f194a | 13082 | bool temp4 = False ; |
d14a1e28 RD |
13083 | wxPoint temp5 ; |
13084 | wxSize temp6 ; | |
423f194a | 13085 | bool temp9 = False ; |
d14a1e28 RD |
13086 | PyObject * obj0 = 0 ; |
13087 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13088 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13089 | PyObject * obj3 = 0 ; |
13090 | PyObject * obj4 = 0 ; | |
13091 | PyObject * obj5 = 0 ; | |
8edf1c75 | 13092 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13093 | PyObject * obj7 = 0 ; |
13094 | PyObject * obj8 = 0 ; | |
13095 | char *kwnames[] = { | |
13096 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13097 | }; | |
13098 | ||
8edf1c75 | 13099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
13100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13102 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13103 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13104 | arg3 = (int) SWIG_AsInt(obj2); | |
13105 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13106 | { |
13107 | arg4 = wxString_in_helper(obj3); | |
13108 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13109 | temp4 = True; |
d14a1e28 RD |
13110 | } |
13111 | if (obj4) { | |
13112 | { | |
13113 | arg5 = &temp5; | |
13114 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13115 | } | |
13116 | } | |
13117 | if (obj5) { | |
13118 | { | |
13119 | arg6 = &temp6; | |
13120 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13121 | } | |
13122 | } | |
8edf1c75 | 13123 | if (obj6) { |
2f4c0a16 RD |
13124 | arg7 = (long) SWIG_AsLong(obj6); |
13125 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13126 | } |
d14a1e28 | 13127 | if (obj7) { |
2f4c0a16 RD |
13128 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13129 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13130 | SWIG_fail; | |
d14a1e28 | 13131 | if (arg8 == NULL) { |
2f4c0a16 RD |
13132 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13133 | SWIG_fail; | |
d14a1e28 RD |
13134 | } |
13135 | } | |
13136 | if (obj8) { | |
13137 | { | |
13138 | arg9 = wxString_in_helper(obj8); | |
13139 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13140 | temp9 = True; |
d14a1e28 RD |
13141 | } |
13142 | } | |
13143 | { | |
13144 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13145 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13146 | ||
13147 | wxPyEndAllowThreads(__tstate); | |
13148 | if (PyErr_Occurred()) SWIG_fail; | |
13149 | } | |
4f89f6a3 RD |
13150 | { |
13151 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13152 | } | |
d14a1e28 RD |
13153 | { |
13154 | if (temp4) | |
13155 | delete arg4; | |
13156 | } | |
13157 | { | |
13158 | if (temp9) | |
13159 | delete arg9; | |
13160 | } | |
13161 | return resultobj; | |
13162 | fail: | |
13163 | { | |
13164 | if (temp4) | |
13165 | delete arg4; | |
13166 | } | |
13167 | { | |
13168 | if (temp9) | |
13169 | delete arg9; | |
13170 | } | |
13171 | return NULL; | |
13172 | } | |
13173 | ||
13174 | ||
13175 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13176 | PyObject *resultobj; | |
13177 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13178 | bool arg2 ; | |
13179 | PyObject * obj0 = 0 ; | |
13180 | PyObject * obj1 = 0 ; | |
13181 | char *kwnames[] = { | |
13182 | (char *) "self",(char *) "value", NULL | |
13183 | }; | |
13184 | ||
13185 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13186 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13188 | arg2 = (bool) SWIG_AsBool(obj1); | |
13189 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13190 | { |
13191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13192 | (arg1)->SetValue(arg2); | |
13193 | ||
13194 | wxPyEndAllowThreads(__tstate); | |
13195 | if (PyErr_Occurred()) SWIG_fail; | |
13196 | } | |
13197 | Py_INCREF(Py_None); resultobj = Py_None; | |
13198 | return resultobj; | |
13199 | fail: | |
13200 | return NULL; | |
13201 | } | |
13202 | ||
13203 | ||
13204 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13205 | PyObject *resultobj; | |
13206 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13207 | bool result; | |
13208 | PyObject * obj0 = 0 ; | |
13209 | char *kwnames[] = { | |
13210 | (char *) "self", NULL | |
13211 | }; | |
13212 | ||
13213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13216 | { |
13217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13218 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13219 | ||
13220 | wxPyEndAllowThreads(__tstate); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
13222 | } | |
4f89f6a3 RD |
13223 | { |
13224 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13225 | } | |
d14a1e28 RD |
13226 | return resultobj; |
13227 | fail: | |
13228 | return NULL; | |
13229 | } | |
13230 | ||
13231 | ||
13232 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13233 | PyObject *resultobj; | |
13234 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13235 | wxString *arg2 = 0 ; | |
423f194a | 13236 | bool temp2 = False ; |
d14a1e28 RD |
13237 | PyObject * obj0 = 0 ; |
13238 | PyObject * obj1 = 0 ; | |
13239 | char *kwnames[] = { | |
13240 | (char *) "self",(char *) "label", NULL | |
13241 | }; | |
13242 | ||
13243 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13244 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13246 | { |
13247 | arg2 = wxString_in_helper(obj1); | |
13248 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13249 | temp2 = True; |
d14a1e28 RD |
13250 | } |
13251 | { | |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | (arg1)->SetLabel((wxString const &)*arg2); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
13258 | Py_INCREF(Py_None); resultobj = Py_None; | |
13259 | { | |
13260 | if (temp2) | |
13261 | delete arg2; | |
13262 | } | |
13263 | return resultobj; | |
13264 | fail: | |
13265 | { | |
13266 | if (temp2) | |
13267 | delete arg2; | |
13268 | } | |
13269 | return NULL; | |
13270 | } | |
13271 | ||
13272 | ||
13273 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13274 | PyObject *obj; | |
13275 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13276 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13277 | Py_INCREF(obj); | |
13278 | return Py_BuildValue((char *)""); | |
13279 | } | |
2f4c0a16 | 13280 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
d03fd34d RD |
13281 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13282 | return 1; | |
13283 | } | |
13284 | ||
13285 | ||
13286 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13287 | PyObject *pyobj; | |
13288 | ||
13289 | { | |
13290 | #if wxUSE_UNICODE | |
13291 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13292 | #else | |
13293 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13294 | #endif | |
13295 | } | |
13296 | return pyobj; | |
13297 | } | |
13298 | ||
13299 | ||
d14a1e28 RD |
13300 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13301 | PyObject *resultobj; | |
13302 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13303 | size_t result; | |
13304 | PyObject * obj0 = 0 ; | |
13305 | char *kwnames[] = { | |
13306 | (char *) "self", NULL | |
13307 | }; | |
13308 | ||
13309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13312 | { |
13313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13314 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13315 | ||
13316 | wxPyEndAllowThreads(__tstate); | |
13317 | if (PyErr_Occurred()) SWIG_fail; | |
13318 | } | |
2f4c0a16 | 13319 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13320 | return resultobj; |
13321 | fail: | |
13322 | return NULL; | |
13323 | } | |
13324 | ||
13325 | ||
13326 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13327 | PyObject *resultobj; | |
13328 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13329 | size_t arg2 ; | |
13330 | wxWindow *result; | |
13331 | PyObject * obj0 = 0 ; | |
13332 | PyObject * obj1 = 0 ; | |
13333 | char *kwnames[] = { | |
13334 | (char *) "self",(char *) "n", NULL | |
13335 | }; | |
13336 | ||
13337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13340 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13341 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13342 | { |
13343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13344 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13345 | ||
13346 | wxPyEndAllowThreads(__tstate); | |
13347 | if (PyErr_Occurred()) SWIG_fail; | |
13348 | } | |
13349 | { | |
13350 | resultobj = wxPyMake_wxObject(result); | |
13351 | } | |
13352 | return resultobj; | |
13353 | fail: | |
13354 | return NULL; | |
13355 | } | |
13356 | ||
13357 | ||
13358 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13359 | PyObject *resultobj; | |
13360 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13361 | int result; | |
13362 | PyObject * obj0 = 0 ; | |
13363 | char *kwnames[] = { | |
13364 | (char *) "self", NULL | |
13365 | }; | |
13366 | ||
13367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13370 | { |
13371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13372 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13373 | ||
13374 | wxPyEndAllowThreads(__tstate); | |
13375 | if (PyErr_Occurred()) SWIG_fail; | |
13376 | } | |
2f4c0a16 | 13377 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13378 | return resultobj; |
13379 | fail: | |
13380 | return NULL; | |
13381 | } | |
13382 | ||
13383 | ||
13384 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13385 | PyObject *resultobj; | |
13386 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13387 | size_t arg2 ; | |
13388 | wxString *arg3 = 0 ; | |
13389 | bool result; | |
423f194a | 13390 | bool temp3 = False ; |
d14a1e28 RD |
13391 | PyObject * obj0 = 0 ; |
13392 | PyObject * obj1 = 0 ; | |
13393 | PyObject * obj2 = 0 ; | |
13394 | char *kwnames[] = { | |
13395 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13396 | }; | |
13397 | ||
13398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13401 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13402 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13403 | { |
13404 | arg3 = wxString_in_helper(obj2); | |
13405 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13406 | temp3 = True; |
d14a1e28 RD |
13407 | } |
13408 | { | |
13409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13410 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13411 | ||
13412 | wxPyEndAllowThreads(__tstate); | |
13413 | if (PyErr_Occurred()) SWIG_fail; | |
13414 | } | |
4f89f6a3 RD |
13415 | { |
13416 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13417 | } | |
d14a1e28 RD |
13418 | { |
13419 | if (temp3) | |
13420 | delete arg3; | |
13421 | } | |
13422 | return resultobj; | |
13423 | fail: | |
13424 | { | |
13425 | if (temp3) | |
13426 | delete arg3; | |
13427 | } | |
13428 | return NULL; | |
13429 | } | |
13430 | ||
13431 | ||
13432 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13433 | PyObject *resultobj; | |
13434 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13435 | size_t arg2 ; | |
13436 | wxString result; | |
13437 | PyObject * obj0 = 0 ; | |
13438 | PyObject * obj1 = 0 ; | |
13439 | char *kwnames[] = { | |
13440 | (char *) "self",(char *) "n", NULL | |
13441 | }; | |
13442 | ||
13443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13446 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13447 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13448 | { |
13449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13450 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13451 | ||
13452 | wxPyEndAllowThreads(__tstate); | |
13453 | if (PyErr_Occurred()) SWIG_fail; | |
13454 | } | |
13455 | { | |
13456 | #if wxUSE_UNICODE | |
13457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13458 | #else | |
13459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13460 | #endif | |
13461 | } | |
13462 | return resultobj; | |
13463 | fail: | |
13464 | return NULL; | |
13465 | } | |
13466 | ||
13467 | ||
13468 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13469 | PyObject *resultobj; | |
13470 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13471 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13472 | PyObject * obj0 = 0 ; | |
13473 | PyObject * obj1 = 0 ; | |
13474 | char *kwnames[] = { | |
13475 | (char *) "self",(char *) "imageList", NULL | |
13476 | }; | |
13477 | ||
13478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13481 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13483 | { |
13484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13485 | (arg1)->SetImageList(arg2); | |
13486 | ||
13487 | wxPyEndAllowThreads(__tstate); | |
13488 | if (PyErr_Occurred()) SWIG_fail; | |
13489 | } | |
13490 | Py_INCREF(Py_None); resultobj = Py_None; | |
13491 | return resultobj; | |
13492 | fail: | |
13493 | return NULL; | |
13494 | } | |
13495 | ||
13496 | ||
13497 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13498 | PyObject *resultobj; | |
13499 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13500 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13501 | PyObject * obj0 = 0 ; | |
13502 | PyObject * obj1 = 0 ; | |
13503 | char *kwnames[] = { | |
13504 | (char *) "self",(char *) "imageList", NULL | |
13505 | }; | |
13506 | ||
13507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13511 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
13512 | { |
13513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13514 | (arg1)->AssignImageList(arg2); | |
13515 | ||
13516 | wxPyEndAllowThreads(__tstate); | |
13517 | if (PyErr_Occurred()) SWIG_fail; | |
13518 | } | |
13519 | Py_INCREF(Py_None); resultobj = Py_None; | |
13520 | return resultobj; | |
13521 | fail: | |
13522 | return NULL; | |
13523 | } | |
13524 | ||
13525 | ||
13526 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13527 | PyObject *resultobj; | |
13528 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13529 | wxImageList *result; | |
13530 | PyObject * obj0 = 0 ; | |
13531 | char *kwnames[] = { | |
13532 | (char *) "self", NULL | |
13533 | }; | |
13534 | ||
13535 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13536 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13537 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13538 | { |
13539 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13540 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13541 | ||
13542 | wxPyEndAllowThreads(__tstate); | |
13543 | if (PyErr_Occurred()) SWIG_fail; | |
13544 | } | |
13545 | { | |
13546 | resultobj = wxPyMake_wxObject(result); | |
13547 | } | |
13548 | return resultobj; | |
13549 | fail: | |
13550 | return NULL; | |
13551 | } | |
13552 | ||
13553 | ||
13554 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13555 | PyObject *resultobj; | |
13556 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13557 | size_t arg2 ; | |
13558 | int result; | |
13559 | PyObject * obj0 = 0 ; | |
13560 | PyObject * obj1 = 0 ; | |
13561 | char *kwnames[] = { | |
13562 | (char *) "self",(char *) "n", NULL | |
13563 | }; | |
13564 | ||
13565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13568 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13569 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13570 | { |
13571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13572 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13573 | ||
13574 | wxPyEndAllowThreads(__tstate); | |
13575 | if (PyErr_Occurred()) SWIG_fail; | |
13576 | } | |
2f4c0a16 | 13577 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13578 | return resultobj; |
13579 | fail: | |
13580 | return NULL; | |
13581 | } | |
13582 | ||
13583 | ||
13584 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13585 | PyObject *resultobj; | |
13586 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13587 | size_t arg2 ; | |
13588 | int arg3 ; | |
13589 | bool result; | |
13590 | PyObject * obj0 = 0 ; | |
13591 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13592 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13593 | char *kwnames[] = { |
13594 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13595 | }; | |
13596 | ||
8edf1c75 | 13597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13600 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13601 | if (PyErr_Occurred()) SWIG_fail; | |
13602 | arg3 = (int) SWIG_AsInt(obj2); | |
13603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13604 | { |
13605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13606 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13607 | ||
13608 | wxPyEndAllowThreads(__tstate); | |
13609 | if (PyErr_Occurred()) SWIG_fail; | |
13610 | } | |
4f89f6a3 RD |
13611 | { |
13612 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13613 | } | |
d14a1e28 RD |
13614 | return resultobj; |
13615 | fail: | |
13616 | return NULL; | |
13617 | } | |
13618 | ||
13619 | ||
13620 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13621 | PyObject *resultobj; | |
13622 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13623 | wxSize *arg2 = 0 ; | |
13624 | wxSize temp2 ; | |
13625 | PyObject * obj0 = 0 ; | |
13626 | PyObject * obj1 = 0 ; | |
13627 | char *kwnames[] = { | |
13628 | (char *) "self",(char *) "size", NULL | |
13629 | }; | |
13630 | ||
13631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13634 | { |
13635 | arg2 = &temp2; | |
13636 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13637 | } | |
13638 | { | |
13639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13640 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13641 | ||
13642 | wxPyEndAllowThreads(__tstate); | |
13643 | if (PyErr_Occurred()) SWIG_fail; | |
13644 | } | |
13645 | Py_INCREF(Py_None); resultobj = Py_None; | |
13646 | return resultobj; | |
13647 | fail: | |
13648 | return NULL; | |
13649 | } | |
13650 | ||
13651 | ||
13652 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13653 | PyObject *resultobj; | |
13654 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13655 | wxSize *arg2 = 0 ; | |
13656 | wxSize result; | |
13657 | wxSize temp2 ; | |
13658 | PyObject * obj0 = 0 ; | |
13659 | PyObject * obj1 = 0 ; | |
13660 | char *kwnames[] = { | |
13661 | (char *) "self",(char *) "sizePage", NULL | |
13662 | }; | |
13663 | ||
13664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13667 | { |
13668 | arg2 = &temp2; | |
13669 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13670 | } | |
13671 | { | |
13672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13673 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13674 | ||
13675 | wxPyEndAllowThreads(__tstate); | |
13676 | if (PyErr_Occurred()) SWIG_fail; | |
13677 | } | |
13678 | { | |
13679 | wxSize * resultptr; | |
13680 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13682 | } |
13683 | return resultobj; | |
13684 | fail: | |
13685 | return NULL; | |
13686 | } | |
13687 | ||
13688 | ||
13689 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13690 | PyObject *resultobj; | |
13691 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13692 | size_t arg2 ; | |
13693 | bool result; | |
13694 | PyObject * obj0 = 0 ; | |
13695 | PyObject * obj1 = 0 ; | |
13696 | char *kwnames[] = { | |
13697 | (char *) "self",(char *) "n", NULL | |
13698 | }; | |
13699 | ||
13700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13703 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13704 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13705 | { |
13706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13707 | result = (bool)(arg1)->DeletePage(arg2); | |
13708 | ||
13709 | wxPyEndAllowThreads(__tstate); | |
13710 | if (PyErr_Occurred()) SWIG_fail; | |
13711 | } | |
4f89f6a3 RD |
13712 | { |
13713 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13714 | } | |
d14a1e28 RD |
13715 | return resultobj; |
13716 | fail: | |
13717 | return NULL; | |
13718 | } | |
13719 | ||
13720 | ||
13721 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13722 | PyObject *resultobj; | |
13723 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13724 | size_t arg2 ; | |
13725 | bool result; | |
13726 | PyObject * obj0 = 0 ; | |
13727 | PyObject * obj1 = 0 ; | |
13728 | char *kwnames[] = { | |
13729 | (char *) "self",(char *) "n", NULL | |
13730 | }; | |
13731 | ||
13732 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13733 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13734 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13735 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13736 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13737 | { |
13738 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13739 | result = (bool)(arg1)->RemovePage(arg2); | |
13740 | ||
13741 | wxPyEndAllowThreads(__tstate); | |
13742 | if (PyErr_Occurred()) SWIG_fail; | |
13743 | } | |
4f89f6a3 RD |
13744 | { |
13745 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13746 | } | |
d14a1e28 RD |
13747 | return resultobj; |
13748 | fail: | |
13749 | return NULL; | |
13750 | } | |
13751 | ||
13752 | ||
13753 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13754 | PyObject *resultobj; | |
13755 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13756 | bool result; | |
13757 | PyObject * obj0 = 0 ; | |
13758 | char *kwnames[] = { | |
13759 | (char *) "self", NULL | |
13760 | }; | |
13761 | ||
13762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13765 | { |
13766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13767 | result = (bool)(arg1)->DeleteAllPages(); | |
13768 | ||
13769 | wxPyEndAllowThreads(__tstate); | |
13770 | if (PyErr_Occurred()) SWIG_fail; | |
13771 | } | |
4f89f6a3 RD |
13772 | { |
13773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13774 | } | |
d14a1e28 RD |
13775 | return resultobj; |
13776 | fail: | |
13777 | return NULL; | |
13778 | } | |
13779 | ||
13780 | ||
13781 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13782 | PyObject *resultobj; | |
13783 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13784 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13785 | wxString *arg3 = 0 ; | |
423f194a | 13786 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13787 | int arg5 = (int) -1 ; |
13788 | bool result; | |
423f194a | 13789 | bool temp3 = False ; |
d14a1e28 RD |
13790 | PyObject * obj0 = 0 ; |
13791 | PyObject * obj1 = 0 ; | |
13792 | PyObject * obj2 = 0 ; | |
13793 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13794 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13795 | char *kwnames[] = { |
13796 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13797 | }; | |
13798 | ||
8edf1c75 | 13799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13804 | { |
13805 | arg3 = wxString_in_helper(obj2); | |
13806 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13807 | temp3 = True; |
d14a1e28 RD |
13808 | } |
13809 | if (obj3) { | |
2f4c0a16 RD |
13810 | arg4 = (bool) SWIG_AsBool(obj3); |
13811 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13812 | } |
13813 | if (obj4) { | |
2f4c0a16 RD |
13814 | arg5 = (int) SWIG_AsInt(obj4); |
13815 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13816 | } |
13817 | { | |
13818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13819 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13820 | ||
13821 | wxPyEndAllowThreads(__tstate); | |
13822 | if (PyErr_Occurred()) SWIG_fail; | |
13823 | } | |
4f89f6a3 RD |
13824 | { |
13825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13826 | } | |
d14a1e28 RD |
13827 | { |
13828 | if (temp3) | |
13829 | delete arg3; | |
13830 | } | |
13831 | return resultobj; | |
13832 | fail: | |
13833 | { | |
13834 | if (temp3) | |
13835 | delete arg3; | |
13836 | } | |
13837 | return NULL; | |
13838 | } | |
13839 | ||
13840 | ||
13841 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13842 | PyObject *resultobj; | |
13843 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13844 | size_t arg2 ; | |
13845 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13846 | wxString *arg4 = 0 ; | |
423f194a | 13847 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13848 | int arg6 = (int) -1 ; |
13849 | bool result; | |
423f194a | 13850 | bool temp4 = False ; |
d14a1e28 RD |
13851 | PyObject * obj0 = 0 ; |
13852 | PyObject * obj1 = 0 ; | |
13853 | PyObject * obj2 = 0 ; | |
13854 | PyObject * obj3 = 0 ; | |
13855 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13856 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13857 | char *kwnames[] = { |
13858 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13859 | }; | |
13860 | ||
8edf1c75 | 13861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13864 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13865 | if (PyErr_Occurred()) SWIG_fail; | |
13866 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
13867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13868 | { |
13869 | arg4 = wxString_in_helper(obj3); | |
13870 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13871 | temp4 = True; |
d14a1e28 RD |
13872 | } |
13873 | if (obj4) { | |
2f4c0a16 RD |
13874 | arg5 = (bool) SWIG_AsBool(obj4); |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13876 | } |
13877 | if (obj5) { | |
2f4c0a16 RD |
13878 | arg6 = (int) SWIG_AsInt(obj5); |
13879 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13880 | } |
13881 | { | |
13882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13883 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13884 | ||
13885 | wxPyEndAllowThreads(__tstate); | |
13886 | if (PyErr_Occurred()) SWIG_fail; | |
13887 | } | |
4f89f6a3 RD |
13888 | { |
13889 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13890 | } | |
d14a1e28 RD |
13891 | { |
13892 | if (temp4) | |
13893 | delete arg4; | |
13894 | } | |
13895 | return resultobj; | |
13896 | fail: | |
13897 | { | |
13898 | if (temp4) | |
13899 | delete arg4; | |
13900 | } | |
13901 | return NULL; | |
13902 | } | |
13903 | ||
13904 | ||
13905 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13906 | PyObject *resultobj; | |
13907 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13908 | size_t arg2 ; | |
13909 | int result; | |
13910 | PyObject * obj0 = 0 ; | |
13911 | PyObject * obj1 = 0 ; | |
13912 | char *kwnames[] = { | |
13913 | (char *) "self",(char *) "n", NULL | |
13914 | }; | |
13915 | ||
13916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) 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; | |
d14a1e28 RD |
13921 | { |
13922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13923 | result = (int)(arg1)->SetSelection(arg2); | |
13924 | ||
13925 | wxPyEndAllowThreads(__tstate); | |
13926 | if (PyErr_Occurred()) SWIG_fail; | |
13927 | } | |
2f4c0a16 | 13928 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13929 | return resultobj; |
13930 | fail: | |
13931 | return NULL; | |
13932 | } | |
13933 | ||
13934 | ||
13935 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13936 | PyObject *resultobj; | |
13937 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13938 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13939 | PyObject * obj0 = 0 ; |
13940 | PyObject * obj1 = 0 ; | |
13941 | char *kwnames[] = { | |
13942 | (char *) "self",(char *) "forward", NULL | |
13943 | }; | |
13944 | ||
13945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 13948 | if (obj1) { |
2f4c0a16 RD |
13949 | arg2 = (bool) SWIG_AsBool(obj1); |
13950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13951 | } |
13952 | { | |
13953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13954 | (arg1)->AdvanceSelection(arg2); | |
13955 | ||
13956 | wxPyEndAllowThreads(__tstate); | |
13957 | if (PyErr_Occurred()) SWIG_fail; | |
13958 | } | |
13959 | Py_INCREF(Py_None); resultobj = Py_None; | |
13960 | return resultobj; | |
13961 | fail: | |
13962 | return NULL; | |
13963 | } | |
13964 | ||
13965 | ||
13966 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13967 | PyObject *obj; | |
13968 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13969 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13970 | Py_INCREF(obj); | |
13971 | return Py_BuildValue((char *)""); | |
13972 | } | |
13973 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13974 | PyObject *resultobj; | |
13975 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13976 | int arg2 = (int) 0 ; | |
13977 | int arg3 = (int) -1 ; | |
13978 | int arg4 = (int) -1 ; | |
13979 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13980 | PyObject * obj0 = 0 ; |
13981 | PyObject * obj1 = 0 ; | |
13982 | PyObject * obj2 = 0 ; | |
13983 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13984 | char *kwnames[] = { |
13985 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13986 | }; | |
13987 | ||
8edf1c75 RD |
13988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13989 | if (obj0) { | |
2f4c0a16 RD |
13990 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
13991 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13992 | } |
13993 | if (obj1) { | |
2f4c0a16 RD |
13994 | arg2 = (int) SWIG_AsInt(obj1); |
13995 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13996 | } |
13997 | if (obj2) { | |
2f4c0a16 RD |
13998 | arg3 = (int) SWIG_AsInt(obj2); |
13999 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14000 | } |
14001 | if (obj3) { | |
2f4c0a16 RD |
14002 | arg4 = (int) SWIG_AsInt(obj3); |
14003 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14004 | } |
d14a1e28 RD |
14005 | { |
14006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14007 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14008 | ||
14009 | wxPyEndAllowThreads(__tstate); | |
14010 | if (PyErr_Occurred()) SWIG_fail; | |
14011 | } | |
2f4c0a16 | 14012 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14013 | return resultobj; |
14014 | fail: | |
14015 | return NULL; | |
14016 | } | |
14017 | ||
14018 | ||
14019 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14020 | PyObject *resultobj; | |
14021 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14022 | int result; | |
14023 | PyObject * obj0 = 0 ; | |
14024 | char *kwnames[] = { | |
14025 | (char *) "self", NULL | |
14026 | }; | |
14027 | ||
14028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14031 | { |
14032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14033 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14034 | ||
14035 | wxPyEndAllowThreads(__tstate); | |
14036 | if (PyErr_Occurred()) SWIG_fail; | |
14037 | } | |
2f4c0a16 | 14038 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14039 | return resultobj; |
14040 | fail: | |
14041 | return NULL; | |
14042 | } | |
14043 | ||
14044 | ||
14045 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14046 | PyObject *resultobj; | |
14047 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14048 | int arg2 ; | |
14049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14051 | char *kwnames[] = { |
14052 | (char *) "self",(char *) "nSel", NULL | |
14053 | }; | |
14054 | ||
8edf1c75 | 14055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14058 | arg2 = (int) SWIG_AsInt(obj1); | |
14059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14060 | { |
14061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14062 | (arg1)->SetSelection(arg2); | |
14063 | ||
14064 | wxPyEndAllowThreads(__tstate); | |
14065 | if (PyErr_Occurred()) SWIG_fail; | |
14066 | } | |
14067 | Py_INCREF(Py_None); resultobj = Py_None; | |
14068 | return resultobj; | |
14069 | fail: | |
14070 | return NULL; | |
14071 | } | |
14072 | ||
14073 | ||
14074 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(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_GetOldSelection",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)->GetOldSelection(); | |
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_SetOldSelection(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 *) "nOldSel", NULL | |
14108 | }; | |
14109 | ||
8edf1c75 | 14110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",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)->SetOldSelection(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 * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14130 | PyObject *obj; | |
14131 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14132 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14133 | Py_INCREF(obj); | |
14134 | return Py_BuildValue((char *)""); | |
14135 | } | |
14136 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14137 | PyObject *resultobj; | |
14138 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14139 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14140 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14141 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14142 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14143 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14144 | long arg5 = (long) 0 ; | |
14145 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14146 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14147 | wxNotebook *result; | |
14148 | wxPoint temp3 ; | |
14149 | wxSize temp4 ; | |
423f194a | 14150 | bool temp6 = False ; |
d14a1e28 | 14151 | PyObject * obj0 = 0 ; |
8edf1c75 | 14152 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14153 | PyObject * obj2 = 0 ; |
14154 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14155 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14156 | PyObject * obj5 = 0 ; |
14157 | char *kwnames[] = { | |
14158 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14159 | }; | |
14160 | ||
4f89f6a3 | 14161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14164 | if (obj1) { |
14165 | arg2 = (int) SWIG_AsInt(obj1); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
d14a1e28 RD |
14168 | if (obj2) { |
14169 | { | |
14170 | arg3 = &temp3; | |
14171 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14172 | } | |
14173 | } | |
14174 | if (obj3) { | |
14175 | { | |
14176 | arg4 = &temp4; | |
14177 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14178 | } | |
14179 | } | |
8edf1c75 | 14180 | if (obj4) { |
2f4c0a16 RD |
14181 | arg5 = (long) SWIG_AsLong(obj4); |
14182 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14183 | } |
d14a1e28 RD |
14184 | if (obj5) { |
14185 | { | |
14186 | arg6 = wxString_in_helper(obj5); | |
14187 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14188 | temp6 = True; |
d14a1e28 RD |
14189 | } |
14190 | } | |
14191 | { | |
14192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14193 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14194 | ||
14195 | wxPyEndAllowThreads(__tstate); | |
14196 | if (PyErr_Occurred()) SWIG_fail; | |
14197 | } | |
14198 | { | |
14199 | resultobj = wxPyMake_wxObject(result); | |
14200 | } | |
14201 | { | |
14202 | if (temp6) | |
14203 | delete arg6; | |
14204 | } | |
14205 | return resultobj; | |
14206 | fail: | |
14207 | { | |
14208 | if (temp6) | |
14209 | delete arg6; | |
14210 | } | |
14211 | return NULL; | |
14212 | } | |
14213 | ||
14214 | ||
14215 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14216 | PyObject *resultobj; | |
14217 | wxNotebook *result; | |
14218 | char *kwnames[] = { | |
14219 | NULL | |
14220 | }; | |
14221 | ||
14222 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14223 | { | |
14224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14225 | result = (wxNotebook *)new wxNotebook(); | |
14226 | ||
14227 | wxPyEndAllowThreads(__tstate); | |
14228 | if (PyErr_Occurred()) SWIG_fail; | |
14229 | } | |
14230 | { | |
14231 | resultobj = wxPyMake_wxObject(result); | |
14232 | } | |
14233 | return resultobj; | |
14234 | fail: | |
14235 | return NULL; | |
14236 | } | |
14237 | ||
14238 | ||
14239 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14240 | PyObject *resultobj; | |
14241 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14242 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14243 | int arg3 ; |
d14a1e28 RD |
14244 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14245 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14246 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14247 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14248 | long arg6 = (long) 0 ; | |
14249 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14250 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14251 | bool result; | |
14252 | wxPoint temp4 ; | |
14253 | wxSize temp5 ; | |
423f194a | 14254 | bool temp7 = False ; |
d14a1e28 RD |
14255 | PyObject * obj0 = 0 ; |
14256 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14257 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14258 | PyObject * obj3 = 0 ; |
14259 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14260 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14261 | PyObject * obj6 = 0 ; |
14262 | char *kwnames[] = { | |
14263 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14264 | }; | |
14265 | ||
8edf1c75 | 14266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14269 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14271 | arg3 = (int) SWIG_AsInt(obj2); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14273 | if (obj3) { |
14274 | { | |
14275 | arg4 = &temp4; | |
14276 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14277 | } | |
14278 | } | |
14279 | if (obj4) { | |
14280 | { | |
14281 | arg5 = &temp5; | |
14282 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14283 | } | |
14284 | } | |
8edf1c75 | 14285 | if (obj5) { |
2f4c0a16 RD |
14286 | arg6 = (long) SWIG_AsLong(obj5); |
14287 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14288 | } |
d14a1e28 RD |
14289 | if (obj6) { |
14290 | { | |
14291 | arg7 = wxString_in_helper(obj6); | |
14292 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14293 | temp7 = True; |
d14a1e28 RD |
14294 | } |
14295 | } | |
14296 | { | |
14297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14298 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14299 | ||
14300 | wxPyEndAllowThreads(__tstate); | |
14301 | if (PyErr_Occurred()) SWIG_fail; | |
14302 | } | |
4f89f6a3 RD |
14303 | { |
14304 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14305 | } | |
d14a1e28 RD |
14306 | { |
14307 | if (temp7) | |
14308 | delete arg7; | |
14309 | } | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | { | |
14313 | if (temp7) | |
14314 | delete arg7; | |
14315 | } | |
14316 | return NULL; | |
14317 | } | |
14318 | ||
14319 | ||
14320 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14321 | PyObject *resultobj; | |
14322 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14323 | int result; | |
14324 | PyObject * obj0 = 0 ; | |
14325 | char *kwnames[] = { | |
14326 | (char *) "self", NULL | |
14327 | }; | |
14328 | ||
14329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14332 | { |
14333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14334 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14335 | ||
14336 | wxPyEndAllowThreads(__tstate); | |
14337 | if (PyErr_Occurred()) SWIG_fail; | |
14338 | } | |
2f4c0a16 | 14339 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14340 | return resultobj; |
14341 | fail: | |
14342 | return NULL; | |
14343 | } | |
14344 | ||
14345 | ||
14346 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14347 | PyObject *resultobj; | |
14348 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14349 | wxSize *arg2 = 0 ; | |
14350 | wxSize temp2 ; | |
14351 | PyObject * obj0 = 0 ; | |
14352 | PyObject * obj1 = 0 ; | |
14353 | char *kwnames[] = { | |
14354 | (char *) "self",(char *) "padding", NULL | |
14355 | }; | |
14356 | ||
14357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14360 | { |
14361 | arg2 = &temp2; | |
14362 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14363 | } | |
14364 | { | |
14365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14366 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14367 | ||
14368 | wxPyEndAllowThreads(__tstate); | |
14369 | if (PyErr_Occurred()) SWIG_fail; | |
14370 | } | |
14371 | Py_INCREF(Py_None); resultobj = Py_None; | |
14372 | return resultobj; | |
14373 | fail: | |
14374 | return NULL; | |
14375 | } | |
14376 | ||
14377 | ||
14378 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14379 | PyObject *resultobj; | |
14380 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14381 | wxSize *arg2 = 0 ; | |
14382 | wxSize temp2 ; | |
14383 | PyObject * obj0 = 0 ; | |
14384 | PyObject * obj1 = 0 ; | |
14385 | char *kwnames[] = { | |
14386 | (char *) "self",(char *) "sz", NULL | |
14387 | }; | |
14388 | ||
14389 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14390 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14391 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14392 | { |
14393 | arg2 = &temp2; | |
14394 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14395 | } | |
14396 | { | |
14397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14398 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14399 | ||
14400 | wxPyEndAllowThreads(__tstate); | |
14401 | if (PyErr_Occurred()) SWIG_fail; | |
14402 | } | |
14403 | Py_INCREF(Py_None); resultobj = Py_None; | |
14404 | return resultobj; | |
14405 | fail: | |
14406 | return NULL; | |
14407 | } | |
14408 | ||
14409 | ||
14410 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14411 | PyObject *resultobj; | |
14412 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14413 | wxPoint *arg2 = 0 ; | |
14414 | long *arg3 = (long *) 0 ; | |
14415 | int result; | |
14416 | wxPoint temp2 ; | |
14417 | long temp3 ; | |
14418 | PyObject * obj0 = 0 ; | |
14419 | PyObject * obj1 = 0 ; | |
14420 | char *kwnames[] = { | |
14421 | (char *) "self",(char *) "pt", NULL | |
14422 | }; | |
14423 | ||
14424 | arg3 = &temp3; | |
14425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14428 | { |
14429 | arg2 = &temp2; | |
14430 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14431 | } | |
14432 | { | |
14433 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14434 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14435 | ||
14436 | wxPyEndAllowThreads(__tstate); | |
14437 | if (PyErr_Occurred()) SWIG_fail; | |
14438 | } | |
2f4c0a16 | 14439 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14440 | { |
14441 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14442 | resultobj = t_output_helper(resultobj,o); | |
14443 | } | |
14444 | return resultobj; | |
14445 | fail: | |
14446 | return NULL; | |
14447 | } | |
14448 | ||
14449 | ||
14450 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14451 | PyObject *resultobj; | |
14452 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14453 | wxSize *arg2 = 0 ; | |
14454 | wxSize result; | |
14455 | wxSize temp2 ; | |
14456 | PyObject * obj0 = 0 ; | |
14457 | PyObject * obj1 = 0 ; | |
14458 | char *kwnames[] = { | |
14459 | (char *) "self",(char *) "sizePage", NULL | |
14460 | }; | |
14461 | ||
14462 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14463 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14464 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14465 | { |
14466 | arg2 = &temp2; | |
14467 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14468 | } | |
14469 | { | |
14470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14471 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14472 | ||
14473 | wxPyEndAllowThreads(__tstate); | |
14474 | if (PyErr_Occurred()) SWIG_fail; | |
14475 | } | |
14476 | { | |
14477 | wxSize * resultptr; | |
14478 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14479 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14480 | } |
14481 | return resultobj; | |
14482 | fail: | |
14483 | return NULL; | |
14484 | } | |
14485 | ||
14486 | ||
14487 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14488 | PyObject *resultobj; | |
14489 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14490 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14491 | wxColour *arg3 = 0 ; | |
14492 | wxColour temp3 ; | |
14493 | PyObject * obj0 = 0 ; | |
14494 | PyObject * obj1 = 0 ; | |
14495 | PyObject * obj2 = 0 ; | |
14496 | char *kwnames[] = { | |
14497 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14498 | }; | |
14499 | ||
14500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14503 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14505 | { |
14506 | arg3 = &temp3; | |
14507 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14508 | } | |
14509 | { | |
14510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14511 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14512 | ||
14513 | wxPyEndAllowThreads(__tstate); | |
14514 | if (PyErr_Occurred()) SWIG_fail; | |
14515 | } | |
14516 | Py_INCREF(Py_None); resultobj = Py_None; | |
14517 | return resultobj; | |
14518 | fail: | |
14519 | return NULL; | |
14520 | } | |
14521 | ||
14522 | ||
14523 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14524 | PyObject *obj; | |
14525 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14526 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14527 | Py_INCREF(obj); | |
14528 | return Py_BuildValue((char *)""); | |
14529 | } | |
14530 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14531 | PyObject *resultobj; | |
14532 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14533 | int arg2 = (int) 0 ; | |
14534 | int arg3 = (int) -1 ; | |
14535 | int arg4 = (int) -1 ; | |
14536 | wxNotebookEvent *result; | |
8edf1c75 RD |
14537 | PyObject * obj0 = 0 ; |
14538 | PyObject * obj1 = 0 ; | |
14539 | PyObject * obj2 = 0 ; | |
14540 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14541 | char *kwnames[] = { |
14542 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14543 | }; | |
14544 | ||
8edf1c75 RD |
14545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14546 | if (obj0) { | |
2f4c0a16 RD |
14547 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14548 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14549 | } |
14550 | if (obj1) { | |
2f4c0a16 RD |
14551 | arg2 = (int) SWIG_AsInt(obj1); |
14552 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14553 | } |
14554 | if (obj2) { | |
2f4c0a16 RD |
14555 | arg3 = (int) SWIG_AsInt(obj2); |
14556 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14557 | } |
14558 | if (obj3) { | |
2f4c0a16 RD |
14559 | arg4 = (int) SWIG_AsInt(obj3); |
14560 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14561 | } |
d14a1e28 RD |
14562 | { |
14563 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14564 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14565 | ||
14566 | wxPyEndAllowThreads(__tstate); | |
14567 | if (PyErr_Occurred()) SWIG_fail; | |
14568 | } | |
2f4c0a16 | 14569 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
14570 | return resultobj; |
14571 | fail: | |
14572 | return NULL; | |
14573 | } | |
14574 | ||
14575 | ||
14576 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14577 | PyObject *obj; | |
14578 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14579 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14580 | Py_INCREF(obj); | |
14581 | return Py_BuildValue((char *)""); | |
14582 | } | |
14583 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14584 | PyObject *resultobj; | |
14585 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14586 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14587 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14588 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14589 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14590 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14591 | long arg5 = (long) 0 ; | |
14592 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14593 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14594 | wxListbook *result; | |
14595 | wxPoint temp3 ; | |
14596 | wxSize temp4 ; | |
423f194a | 14597 | bool temp6 = False ; |
d14a1e28 | 14598 | PyObject * obj0 = 0 ; |
8edf1c75 | 14599 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14600 | PyObject * obj2 = 0 ; |
14601 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14602 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14603 | PyObject * obj5 = 0 ; |
14604 | char *kwnames[] = { | |
14605 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14606 | }; | |
14607 | ||
4f89f6a3 | 14608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14611 | if (obj1) { |
14612 | arg2 = (int) SWIG_AsInt(obj1); | |
14613 | if (PyErr_Occurred()) SWIG_fail; | |
14614 | } | |
d14a1e28 RD |
14615 | if (obj2) { |
14616 | { | |
14617 | arg3 = &temp3; | |
14618 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14619 | } | |
14620 | } | |
14621 | if (obj3) { | |
14622 | { | |
14623 | arg4 = &temp4; | |
14624 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14625 | } | |
14626 | } | |
8edf1c75 | 14627 | if (obj4) { |
2f4c0a16 RD |
14628 | arg5 = (long) SWIG_AsLong(obj4); |
14629 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14630 | } |
d14a1e28 RD |
14631 | if (obj5) { |
14632 | { | |
14633 | arg6 = wxString_in_helper(obj5); | |
14634 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14635 | temp6 = True; |
d14a1e28 RD |
14636 | } |
14637 | } | |
14638 | { | |
14639 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14640 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14641 | ||
14642 | wxPyEndAllowThreads(__tstate); | |
14643 | if (PyErr_Occurred()) SWIG_fail; | |
14644 | } | |
2f4c0a16 | 14645 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14646 | { |
14647 | if (temp6) | |
14648 | delete arg6; | |
14649 | } | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | { | |
14653 | if (temp6) | |
14654 | delete arg6; | |
14655 | } | |
14656 | return NULL; | |
14657 | } | |
14658 | ||
14659 | ||
14660 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14661 | PyObject *resultobj; | |
14662 | wxListbook *result; | |
14663 | char *kwnames[] = { | |
14664 | NULL | |
14665 | }; | |
14666 | ||
14667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14668 | { | |
14669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14670 | result = (wxListbook *)new wxListbook(); | |
14671 | ||
14672 | wxPyEndAllowThreads(__tstate); | |
14673 | if (PyErr_Occurred()) SWIG_fail; | |
14674 | } | |
2f4c0a16 | 14675 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14676 | return resultobj; |
14677 | fail: | |
14678 | return NULL; | |
14679 | } | |
14680 | ||
14681 | ||
14682 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14683 | PyObject *resultobj; | |
14684 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14685 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14686 | int arg3 ; |
d14a1e28 RD |
14687 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14688 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14689 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14690 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14691 | long arg6 = (long) 0 ; | |
14692 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14693 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14694 | bool result; | |
14695 | wxPoint temp4 ; | |
14696 | wxSize temp5 ; | |
423f194a | 14697 | bool temp7 = False ; |
d14a1e28 RD |
14698 | PyObject * obj0 = 0 ; |
14699 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14700 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14701 | PyObject * obj3 = 0 ; |
14702 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14703 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14704 | PyObject * obj6 = 0 ; |
14705 | char *kwnames[] = { | |
14706 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14707 | }; | |
14708 | ||
8edf1c75 | 14709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14712 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14714 | arg3 = (int) SWIG_AsInt(obj2); | |
14715 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14716 | if (obj3) { |
14717 | { | |
14718 | arg4 = &temp4; | |
14719 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14720 | } | |
14721 | } | |
14722 | if (obj4) { | |
14723 | { | |
14724 | arg5 = &temp5; | |
14725 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14726 | } | |
14727 | } | |
8edf1c75 | 14728 | if (obj5) { |
2f4c0a16 RD |
14729 | arg6 = (long) SWIG_AsLong(obj5); |
14730 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14731 | } |
d14a1e28 RD |
14732 | if (obj6) { |
14733 | { | |
14734 | arg7 = wxString_in_helper(obj6); | |
14735 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14736 | temp7 = True; |
d14a1e28 RD |
14737 | } |
14738 | } | |
14739 | { | |
14740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14741 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14742 | ||
14743 | wxPyEndAllowThreads(__tstate); | |
14744 | if (PyErr_Occurred()) SWIG_fail; | |
14745 | } | |
4f89f6a3 RD |
14746 | { |
14747 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14748 | } | |
d14a1e28 RD |
14749 | { |
14750 | if (temp7) | |
14751 | delete arg7; | |
14752 | } | |
14753 | return resultobj; | |
14754 | fail: | |
14755 | { | |
14756 | if (temp7) | |
14757 | delete arg7; | |
14758 | } | |
14759 | return NULL; | |
14760 | } | |
14761 | ||
14762 | ||
14763 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14764 | PyObject *resultobj; | |
14765 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14766 | bool result; | |
14767 | PyObject * obj0 = 0 ; | |
14768 | char *kwnames[] = { | |
14769 | (char *) "self", NULL | |
14770 | }; | |
14771 | ||
14772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14775 | { |
14776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14777 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14778 | ||
14779 | wxPyEndAllowThreads(__tstate); | |
14780 | if (PyErr_Occurred()) SWIG_fail; | |
14781 | } | |
4f89f6a3 RD |
14782 | { |
14783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14784 | } | |
d14a1e28 RD |
14785 | return resultobj; |
14786 | fail: | |
14787 | return NULL; | |
14788 | } | |
14789 | ||
14790 | ||
14791 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14792 | PyObject *obj; | |
14793 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14794 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14795 | Py_INCREF(obj); | |
14796 | return Py_BuildValue((char *)""); | |
14797 | } | |
14798 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14799 | PyObject *resultobj; | |
14800 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14801 | int arg2 = (int) 0 ; | |
14802 | int arg3 = (int) -1 ; | |
14803 | int arg4 = (int) -1 ; | |
14804 | wxListbookEvent *result; | |
8edf1c75 RD |
14805 | PyObject * obj0 = 0 ; |
14806 | PyObject * obj1 = 0 ; | |
14807 | PyObject * obj2 = 0 ; | |
14808 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14809 | char *kwnames[] = { |
14810 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14811 | }; | |
14812 | ||
8edf1c75 RD |
14813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14814 | if (obj0) { | |
2f4c0a16 RD |
14815 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14816 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14817 | } |
14818 | if (obj1) { | |
2f4c0a16 RD |
14819 | arg2 = (int) SWIG_AsInt(obj1); |
14820 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14821 | } |
14822 | if (obj2) { | |
2f4c0a16 RD |
14823 | arg3 = (int) SWIG_AsInt(obj2); |
14824 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14825 | } |
14826 | if (obj3) { | |
2f4c0a16 RD |
14827 | arg4 = (int) SWIG_AsInt(obj3); |
14828 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14829 | } |
d14a1e28 RD |
14830 | { |
14831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14832 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14833 | ||
14834 | wxPyEndAllowThreads(__tstate); | |
14835 | if (PyErr_Occurred()) SWIG_fail; | |
14836 | } | |
2f4c0a16 | 14837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
14838 | return resultobj; |
14839 | fail: | |
14840 | return NULL; | |
14841 | } | |
14842 | ||
14843 | ||
14844 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14845 | PyObject *obj; | |
14846 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14847 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14848 | Py_INCREF(obj); | |
14849 | return Py_BuildValue((char *)""); | |
14850 | } | |
14851 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14852 | PyObject *resultobj; | |
14853 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14854 | wxBookCtrlSizer *result; | |
14855 | PyObject * obj0 = 0 ; | |
14856 | char *kwnames[] = { | |
14857 | (char *) "nb", NULL | |
14858 | }; | |
14859 | ||
14860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14863 | { |
14864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14865 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14866 | ||
14867 | wxPyEndAllowThreads(__tstate); | |
14868 | if (PyErr_Occurred()) SWIG_fail; | |
14869 | } | |
2f4c0a16 | 14870 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
14871 | return resultobj; |
14872 | fail: | |
14873 | return NULL; | |
14874 | } | |
14875 | ||
14876 | ||
14877 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14878 | PyObject *resultobj; | |
14879 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14880 | PyObject * obj0 = 0 ; | |
14881 | char *kwnames[] = { | |
14882 | (char *) "self", NULL | |
14883 | }; | |
14884 | ||
14885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14888 | { |
14889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14890 | (arg1)->RecalcSizes(); | |
14891 | ||
14892 | wxPyEndAllowThreads(__tstate); | |
14893 | if (PyErr_Occurred()) SWIG_fail; | |
14894 | } | |
14895 | Py_INCREF(Py_None); resultobj = Py_None; | |
14896 | return resultobj; | |
14897 | fail: | |
14898 | return NULL; | |
14899 | } | |
14900 | ||
14901 | ||
14902 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14903 | PyObject *resultobj; | |
14904 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14905 | wxSize result; | |
14906 | PyObject * obj0 = 0 ; | |
14907 | char *kwnames[] = { | |
14908 | (char *) "self", NULL | |
14909 | }; | |
14910 | ||
14911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14914 | { |
14915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14916 | result = (arg1)->CalcMin(); | |
14917 | ||
14918 | wxPyEndAllowThreads(__tstate); | |
14919 | if (PyErr_Occurred()) SWIG_fail; | |
14920 | } | |
14921 | { | |
14922 | wxSize * resultptr; | |
14923 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14924 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14925 | } |
14926 | return resultobj; | |
14927 | fail: | |
14928 | return NULL; | |
14929 | } | |
14930 | ||
14931 | ||
14932 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14933 | PyObject *resultobj; | |
14934 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14935 | wxBookCtrl *result; | |
14936 | PyObject * obj0 = 0 ; | |
14937 | char *kwnames[] = { | |
14938 | (char *) "self", NULL | |
14939 | }; | |
14940 | ||
14941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14944 | { |
14945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14946 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14947 | ||
14948 | wxPyEndAllowThreads(__tstate); | |
14949 | if (PyErr_Occurred()) SWIG_fail; | |
14950 | } | |
2f4c0a16 | 14951 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
14952 | return resultobj; |
14953 | fail: | |
14954 | return NULL; | |
14955 | } | |
14956 | ||
14957 | ||
14958 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14959 | PyObject *obj; | |
14960 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14961 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14962 | Py_INCREF(obj); | |
14963 | return Py_BuildValue((char *)""); | |
14964 | } | |
14965 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14966 | PyObject *resultobj; | |
14967 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14968 | wxNotebookSizer *result; | |
14969 | PyObject * obj0 = 0 ; | |
14970 | char *kwnames[] = { | |
14971 | (char *) "nb", NULL | |
14972 | }; | |
14973 | ||
14974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14977 | { |
14978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14979 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14980 | ||
14981 | wxPyEndAllowThreads(__tstate); | |
14982 | if (PyErr_Occurred()) SWIG_fail; | |
14983 | } | |
2f4c0a16 | 14984 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
14985 | return resultobj; |
14986 | fail: | |
14987 | return NULL; | |
14988 | } | |
14989 | ||
14990 | ||
14991 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14992 | PyObject *resultobj; | |
14993 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
14994 | PyObject * obj0 = 0 ; | |
14995 | char *kwnames[] = { | |
14996 | (char *) "self", NULL | |
14997 | }; | |
14998 | ||
14999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15002 | { |
15003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15004 | (arg1)->RecalcSizes(); | |
15005 | ||
15006 | wxPyEndAllowThreads(__tstate); | |
15007 | if (PyErr_Occurred()) SWIG_fail; | |
15008 | } | |
15009 | Py_INCREF(Py_None); resultobj = Py_None; | |
15010 | return resultobj; | |
15011 | fail: | |
15012 | return NULL; | |
15013 | } | |
15014 | ||
15015 | ||
15016 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15017 | PyObject *resultobj; | |
15018 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15019 | wxSize result; | |
15020 | PyObject * obj0 = 0 ; | |
15021 | char *kwnames[] = { | |
15022 | (char *) "self", NULL | |
15023 | }; | |
15024 | ||
15025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15028 | { |
15029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15030 | result = (arg1)->CalcMin(); | |
15031 | ||
15032 | wxPyEndAllowThreads(__tstate); | |
15033 | if (PyErr_Occurred()) SWIG_fail; | |
15034 | } | |
15035 | { | |
15036 | wxSize * resultptr; | |
15037 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 15038 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15039 | } |
15040 | return resultobj; | |
15041 | fail: | |
15042 | return NULL; | |
15043 | } | |
15044 | ||
15045 | ||
15046 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15047 | PyObject *resultobj; | |
15048 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15049 | wxNotebook *result; | |
15050 | PyObject * obj0 = 0 ; | |
15051 | char *kwnames[] = { | |
15052 | (char *) "self", NULL | |
15053 | }; | |
15054 | ||
15055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15058 | { |
15059 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15060 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15061 | ||
15062 | wxPyEndAllowThreads(__tstate); | |
15063 | if (PyErr_Occurred()) SWIG_fail; | |
15064 | } | |
15065 | { | |
15066 | resultobj = wxPyMake_wxObject(result); | |
15067 | } | |
15068 | return resultobj; | |
15069 | fail: | |
15070 | return NULL; | |
15071 | } | |
15072 | ||
15073 | ||
15074 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15075 | PyObject *obj; | |
15076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15077 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15078 | Py_INCREF(obj); | |
15079 | return Py_BuildValue((char *)""); | |
15080 | } | |
15081 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15082 | PyObject *resultobj; | |
15083 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15084 | int result; | |
15085 | PyObject * obj0 = 0 ; | |
15086 | char *kwnames[] = { | |
15087 | (char *) "self", NULL | |
15088 | }; | |
15089 | ||
15090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15093 | { |
15094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15095 | result = (int)(arg1)->GetId(); | |
15096 | ||
15097 | wxPyEndAllowThreads(__tstate); | |
15098 | if (PyErr_Occurred()) SWIG_fail; | |
15099 | } | |
2f4c0a16 | 15100 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15101 | return resultobj; |
15102 | fail: | |
15103 | return NULL; | |
15104 | } | |
15105 | ||
15106 | ||
15107 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15108 | PyObject *resultobj; | |
15109 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15110 | wxControl *result; | |
15111 | PyObject * obj0 = 0 ; | |
15112 | char *kwnames[] = { | |
15113 | (char *) "self", NULL | |
15114 | }; | |
15115 | ||
15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15119 | { |
15120 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15121 | result = (wxControl *)(arg1)->GetControl(); | |
15122 | ||
15123 | wxPyEndAllowThreads(__tstate); | |
15124 | if (PyErr_Occurred()) SWIG_fail; | |
15125 | } | |
15126 | { | |
15127 | resultobj = wxPyMake_wxObject(result); | |
15128 | } | |
15129 | return resultobj; | |
15130 | fail: | |
15131 | return NULL; | |
15132 | } | |
15133 | ||
15134 | ||
15135 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15136 | PyObject *resultobj; | |
15137 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15138 | wxToolBarBase *result; | |
15139 | PyObject * obj0 = 0 ; | |
15140 | char *kwnames[] = { | |
15141 | (char *) "self", NULL | |
15142 | }; | |
15143 | ||
15144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15147 | { |
15148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15149 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15150 | ||
15151 | wxPyEndAllowThreads(__tstate); | |
15152 | if (PyErr_Occurred()) SWIG_fail; | |
15153 | } | |
15154 | { | |
15155 | resultobj = wxPyMake_wxObject(result); | |
15156 | } | |
15157 | return resultobj; | |
15158 | fail: | |
15159 | return NULL; | |
15160 | } | |
15161 | ||
15162 | ||
15163 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15164 | PyObject *resultobj; | |
15165 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15166 | int result; | |
15167 | PyObject * obj0 = 0 ; | |
15168 | char *kwnames[] = { | |
15169 | (char *) "self", NULL | |
15170 | }; | |
15171 | ||
15172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15175 | { |
15176 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15177 | result = (int)(arg1)->IsButton(); | |
15178 | ||
15179 | wxPyEndAllowThreads(__tstate); | |
15180 | if (PyErr_Occurred()) SWIG_fail; | |
15181 | } | |
2f4c0a16 | 15182 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15183 | return resultobj; |
15184 | fail: | |
15185 | return NULL; | |
15186 | } | |
15187 | ||
15188 | ||
15189 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15190 | PyObject *resultobj; | |
15191 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15192 | int result; | |
15193 | PyObject * obj0 = 0 ; | |
15194 | char *kwnames[] = { | |
15195 | (char *) "self", NULL | |
15196 | }; | |
15197 | ||
15198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15201 | { |
15202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15203 | result = (int)(arg1)->IsControl(); | |
15204 | ||
15205 | wxPyEndAllowThreads(__tstate); | |
15206 | if (PyErr_Occurred()) SWIG_fail; | |
15207 | } | |
2f4c0a16 | 15208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15209 | return resultobj; |
15210 | fail: | |
15211 | return NULL; | |
15212 | } | |
15213 | ||
15214 | ||
15215 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15216 | PyObject *resultobj; | |
15217 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15218 | int result; | |
15219 | PyObject * obj0 = 0 ; | |
15220 | char *kwnames[] = { | |
15221 | (char *) "self", NULL | |
15222 | }; | |
15223 | ||
15224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15227 | { |
15228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15229 | result = (int)(arg1)->IsSeparator(); | |
15230 | ||
15231 | wxPyEndAllowThreads(__tstate); | |
15232 | if (PyErr_Occurred()) SWIG_fail; | |
15233 | } | |
2f4c0a16 | 15234 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15235 | return resultobj; |
15236 | fail: | |
15237 | return NULL; | |
15238 | } | |
15239 | ||
15240 | ||
15241 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15242 | PyObject *resultobj; | |
15243 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15244 | int result; | |
15245 | PyObject * obj0 = 0 ; | |
15246 | char *kwnames[] = { | |
15247 | (char *) "self", NULL | |
15248 | }; | |
15249 | ||
15250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15253 | { |
15254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15255 | result = (int)(arg1)->GetStyle(); | |
15256 | ||
15257 | wxPyEndAllowThreads(__tstate); | |
15258 | if (PyErr_Occurred()) SWIG_fail; | |
15259 | } | |
2f4c0a16 | 15260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15261 | return resultobj; |
15262 | fail: | |
15263 | return NULL; | |
15264 | } | |
15265 | ||
15266 | ||
15267 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15268 | PyObject *resultobj; | |
15269 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15270 | int result; | |
15271 | PyObject * obj0 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self", NULL | |
15274 | }; | |
15275 | ||
15276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15279 | { |
15280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15281 | result = (int)(arg1)->GetKind(); | |
15282 | ||
15283 | wxPyEndAllowThreads(__tstate); | |
15284 | if (PyErr_Occurred()) SWIG_fail; | |
15285 | } | |
2f4c0a16 | 15286 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15287 | return resultobj; |
15288 | fail: | |
15289 | return NULL; | |
15290 | } | |
15291 | ||
15292 | ||
15293 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15294 | PyObject *resultobj; | |
15295 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15296 | bool result; | |
15297 | PyObject * obj0 = 0 ; | |
15298 | char *kwnames[] = { | |
15299 | (char *) "self", NULL | |
15300 | }; | |
15301 | ||
15302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15305 | { |
15306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15307 | result = (bool)(arg1)->IsEnabled(); | |
15308 | ||
15309 | wxPyEndAllowThreads(__tstate); | |
15310 | if (PyErr_Occurred()) SWIG_fail; | |
15311 | } | |
4f89f6a3 RD |
15312 | { |
15313 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15314 | } | |
d14a1e28 RD |
15315 | return resultobj; |
15316 | fail: | |
15317 | return NULL; | |
15318 | } | |
15319 | ||
15320 | ||
15321 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15322 | PyObject *resultobj; | |
15323 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15324 | bool result; | |
15325 | PyObject * obj0 = 0 ; | |
15326 | char *kwnames[] = { | |
15327 | (char *) "self", NULL | |
15328 | }; | |
15329 | ||
15330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15333 | { |
15334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15335 | result = (bool)(arg1)->IsToggled(); | |
15336 | ||
15337 | wxPyEndAllowThreads(__tstate); | |
15338 | if (PyErr_Occurred()) SWIG_fail; | |
15339 | } | |
4f89f6a3 RD |
15340 | { |
15341 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15342 | } | |
d14a1e28 RD |
15343 | return resultobj; |
15344 | fail: | |
15345 | return NULL; | |
15346 | } | |
15347 | ||
15348 | ||
15349 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15350 | PyObject *resultobj; | |
15351 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15352 | bool result; | |
15353 | PyObject * obj0 = 0 ; | |
15354 | char *kwnames[] = { | |
15355 | (char *) "self", NULL | |
15356 | }; | |
15357 | ||
15358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15361 | { |
15362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15363 | result = (bool)(arg1)->CanBeToggled(); | |
15364 | ||
15365 | wxPyEndAllowThreads(__tstate); | |
15366 | if (PyErr_Occurred()) SWIG_fail; | |
15367 | } | |
4f89f6a3 RD |
15368 | { |
15369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15370 | } | |
d14a1e28 RD |
15371 | return resultobj; |
15372 | fail: | |
15373 | return NULL; | |
15374 | } | |
15375 | ||
15376 | ||
15377 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15378 | PyObject *resultobj; | |
15379 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15380 | wxBitmap *result; | |
15381 | PyObject * obj0 = 0 ; | |
15382 | char *kwnames[] = { | |
15383 | (char *) "self", NULL | |
15384 | }; | |
15385 | ||
15386 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15387 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15388 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15389 | { |
15390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15391 | { | |
15392 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15393 | result = (wxBitmap *) &_result_ref; | |
15394 | } | |
15395 | ||
15396 | wxPyEndAllowThreads(__tstate); | |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
15398 | } | |
fe763115 RD |
15399 | { |
15400 | wxBitmap* resultptr = new wxBitmap(*result); | |
15401 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15402 | } | |
d14a1e28 RD |
15403 | return resultobj; |
15404 | fail: | |
15405 | return NULL; | |
15406 | } | |
15407 | ||
15408 | ||
15409 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15410 | PyObject *resultobj; | |
15411 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15412 | wxBitmap *result; | |
15413 | PyObject * obj0 = 0 ; | |
15414 | char *kwnames[] = { | |
15415 | (char *) "self", NULL | |
15416 | }; | |
15417 | ||
15418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15421 | { |
15422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15423 | { | |
15424 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15425 | result = (wxBitmap *) &_result_ref; | |
15426 | } | |
15427 | ||
15428 | wxPyEndAllowThreads(__tstate); | |
15429 | if (PyErr_Occurred()) SWIG_fail; | |
15430 | } | |
fe763115 RD |
15431 | { |
15432 | wxBitmap* resultptr = new wxBitmap(*result); | |
15433 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15434 | } | |
d14a1e28 RD |
15435 | return resultobj; |
15436 | fail: | |
15437 | return NULL; | |
15438 | } | |
15439 | ||
15440 | ||
15441 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15442 | PyObject *resultobj; | |
15443 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15444 | wxBitmap result; | |
15445 | PyObject * obj0 = 0 ; | |
15446 | char *kwnames[] = { | |
15447 | (char *) "self", NULL | |
15448 | }; | |
15449 | ||
15450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15453 | { |
15454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15455 | result = (arg1)->GetBitmap(); | |
15456 | ||
15457 | wxPyEndAllowThreads(__tstate); | |
15458 | if (PyErr_Occurred()) SWIG_fail; | |
15459 | } | |
15460 | { | |
15461 | wxBitmap * resultptr; | |
15462 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 15463 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
15464 | } |
15465 | return resultobj; | |
15466 | fail: | |
15467 | return NULL; | |
15468 | } | |
15469 | ||
15470 | ||
15471 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15472 | PyObject *resultobj; | |
15473 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15474 | wxString result; | |
15475 | PyObject * obj0 = 0 ; | |
15476 | char *kwnames[] = { | |
15477 | (char *) "self", NULL | |
15478 | }; | |
15479 | ||
15480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15483 | { |
15484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15485 | result = (arg1)->GetLabel(); | |
15486 | ||
15487 | wxPyEndAllowThreads(__tstate); | |
15488 | if (PyErr_Occurred()) SWIG_fail; | |
15489 | } | |
15490 | { | |
15491 | #if wxUSE_UNICODE | |
15492 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15493 | #else | |
15494 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15495 | #endif | |
15496 | } | |
15497 | return resultobj; | |
15498 | fail: | |
15499 | return NULL; | |
15500 | } | |
15501 | ||
15502 | ||
15503 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15504 | PyObject *resultobj; | |
15505 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15506 | wxString result; | |
15507 | PyObject * obj0 = 0 ; | |
15508 | char *kwnames[] = { | |
15509 | (char *) "self", NULL | |
15510 | }; | |
15511 | ||
15512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15515 | { |
15516 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15517 | result = (arg1)->GetShortHelp(); | |
15518 | ||
15519 | wxPyEndAllowThreads(__tstate); | |
15520 | if (PyErr_Occurred()) SWIG_fail; | |
15521 | } | |
15522 | { | |
15523 | #if wxUSE_UNICODE | |
15524 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15525 | #else | |
15526 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15527 | #endif | |
15528 | } | |
15529 | return resultobj; | |
15530 | fail: | |
15531 | return NULL; | |
15532 | } | |
15533 | ||
15534 | ||
15535 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15536 | PyObject *resultobj; | |
15537 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15538 | wxString result; | |
15539 | PyObject * obj0 = 0 ; | |
15540 | char *kwnames[] = { | |
15541 | (char *) "self", NULL | |
15542 | }; | |
15543 | ||
15544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15547 | { |
15548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15549 | result = (arg1)->GetLongHelp(); | |
15550 | ||
15551 | wxPyEndAllowThreads(__tstate); | |
15552 | if (PyErr_Occurred()) SWIG_fail; | |
15553 | } | |
15554 | { | |
15555 | #if wxUSE_UNICODE | |
15556 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15557 | #else | |
15558 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15559 | #endif | |
15560 | } | |
15561 | return resultobj; | |
15562 | fail: | |
15563 | return NULL; | |
15564 | } | |
15565 | ||
15566 | ||
15567 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15568 | PyObject *resultobj; | |
15569 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15570 | bool arg2 ; | |
15571 | bool result; | |
15572 | PyObject * obj0 = 0 ; | |
15573 | PyObject * obj1 = 0 ; | |
15574 | char *kwnames[] = { | |
15575 | (char *) "self",(char *) "enable", NULL | |
15576 | }; | |
15577 | ||
15578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15581 | arg2 = (bool) SWIG_AsBool(obj1); | |
15582 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15583 | { |
15584 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15585 | result = (bool)(arg1)->Enable(arg2); | |
15586 | ||
15587 | wxPyEndAllowThreads(__tstate); | |
15588 | if (PyErr_Occurred()) SWIG_fail; | |
15589 | } | |
4f89f6a3 RD |
15590 | { |
15591 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15592 | } | |
d14a1e28 RD |
15593 | return resultobj; |
15594 | fail: | |
15595 | return NULL; | |
15596 | } | |
15597 | ||
15598 | ||
15599 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15600 | PyObject *resultobj; | |
15601 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15602 | PyObject * obj0 = 0 ; | |
15603 | char *kwnames[] = { | |
15604 | (char *) "self", NULL | |
15605 | }; | |
15606 | ||
15607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15610 | { |
15611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15612 | (arg1)->Toggle(); | |
15613 | ||
15614 | wxPyEndAllowThreads(__tstate); | |
15615 | if (PyErr_Occurred()) SWIG_fail; | |
15616 | } | |
15617 | Py_INCREF(Py_None); resultobj = Py_None; | |
15618 | return resultobj; | |
15619 | fail: | |
15620 | return NULL; | |
15621 | } | |
15622 | ||
15623 | ||
15624 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15625 | PyObject *resultobj; | |
15626 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15627 | bool arg2 ; | |
15628 | bool result; | |
15629 | PyObject * obj0 = 0 ; | |
15630 | PyObject * obj1 = 0 ; | |
15631 | char *kwnames[] = { | |
15632 | (char *) "self",(char *) "toggle", NULL | |
15633 | }; | |
15634 | ||
15635 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15636 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15637 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15638 | arg2 = (bool) SWIG_AsBool(obj1); | |
15639 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15640 | { |
15641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15642 | result = (bool)(arg1)->SetToggle(arg2); | |
15643 | ||
15644 | wxPyEndAllowThreads(__tstate); | |
15645 | if (PyErr_Occurred()) SWIG_fail; | |
15646 | } | |
4f89f6a3 RD |
15647 | { |
15648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15649 | } | |
d14a1e28 RD |
15650 | return resultobj; |
15651 | fail: | |
15652 | return NULL; | |
15653 | } | |
15654 | ||
15655 | ||
15656 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15657 | PyObject *resultobj; | |
15658 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15659 | wxString *arg2 = 0 ; | |
15660 | bool result; | |
423f194a | 15661 | bool temp2 = False ; |
d14a1e28 RD |
15662 | PyObject * obj0 = 0 ; |
15663 | PyObject * obj1 = 0 ; | |
15664 | char *kwnames[] = { | |
15665 | (char *) "self",(char *) "help", NULL | |
15666 | }; | |
15667 | ||
15668 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15669 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15670 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15671 | { |
15672 | arg2 = wxString_in_helper(obj1); | |
15673 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15674 | temp2 = True; |
d14a1e28 RD |
15675 | } |
15676 | { | |
15677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15678 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15679 | ||
15680 | wxPyEndAllowThreads(__tstate); | |
15681 | if (PyErr_Occurred()) SWIG_fail; | |
15682 | } | |
4f89f6a3 RD |
15683 | { |
15684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15685 | } | |
d14a1e28 RD |
15686 | { |
15687 | if (temp2) | |
15688 | delete arg2; | |
15689 | } | |
15690 | return resultobj; | |
15691 | fail: | |
15692 | { | |
15693 | if (temp2) | |
15694 | delete arg2; | |
15695 | } | |
15696 | return NULL; | |
15697 | } | |
15698 | ||
15699 | ||
15700 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15701 | PyObject *resultobj; | |
15702 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15703 | wxString *arg2 = 0 ; | |
15704 | bool result; | |
423f194a | 15705 | bool temp2 = False ; |
d14a1e28 RD |
15706 | PyObject * obj0 = 0 ; |
15707 | PyObject * obj1 = 0 ; | |
15708 | char *kwnames[] = { | |
15709 | (char *) "self",(char *) "help", NULL | |
15710 | }; | |
15711 | ||
15712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15715 | { |
15716 | arg2 = wxString_in_helper(obj1); | |
15717 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15718 | temp2 = True; |
d14a1e28 RD |
15719 | } |
15720 | { | |
15721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15722 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15723 | ||
15724 | wxPyEndAllowThreads(__tstate); | |
15725 | if (PyErr_Occurred()) SWIG_fail; | |
15726 | } | |
4f89f6a3 RD |
15727 | { |
15728 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15729 | } | |
d14a1e28 RD |
15730 | { |
15731 | if (temp2) | |
15732 | delete arg2; | |
15733 | } | |
15734 | return resultobj; | |
15735 | fail: | |
15736 | { | |
15737 | if (temp2) | |
15738 | delete arg2; | |
15739 | } | |
15740 | return NULL; | |
15741 | } | |
15742 | ||
15743 | ||
15744 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15745 | PyObject *resultobj; | |
15746 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15747 | wxBitmap *arg2 = 0 ; | |
15748 | PyObject * obj0 = 0 ; | |
15749 | PyObject * obj1 = 0 ; | |
15750 | char *kwnames[] = { | |
15751 | (char *) "self",(char *) "bmp", NULL | |
15752 | }; | |
15753 | ||
15754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15759 | SWIG_fail; | |
d14a1e28 | 15760 | if (arg2 == NULL) { |
2f4c0a16 RD |
15761 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15762 | SWIG_fail; | |
d14a1e28 RD |
15763 | } |
15764 | { | |
15765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15766 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15767 | ||
15768 | wxPyEndAllowThreads(__tstate); | |
15769 | if (PyErr_Occurred()) SWIG_fail; | |
15770 | } | |
15771 | Py_INCREF(Py_None); resultobj = Py_None; | |
15772 | return resultobj; | |
15773 | fail: | |
15774 | return NULL; | |
15775 | } | |
15776 | ||
15777 | ||
15778 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15779 | PyObject *resultobj; | |
15780 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15781 | wxBitmap *arg2 = 0 ; | |
15782 | PyObject * obj0 = 0 ; | |
15783 | PyObject * obj1 = 0 ; | |
15784 | char *kwnames[] = { | |
15785 | (char *) "self",(char *) "bmp", NULL | |
15786 | }; | |
15787 | ||
15788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15793 | SWIG_fail; | |
d14a1e28 | 15794 | if (arg2 == NULL) { |
2f4c0a16 RD |
15795 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15796 | SWIG_fail; | |
d14a1e28 RD |
15797 | } |
15798 | { | |
15799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15800 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15801 | ||
15802 | wxPyEndAllowThreads(__tstate); | |
15803 | if (PyErr_Occurred()) SWIG_fail; | |
15804 | } | |
15805 | Py_INCREF(Py_None); resultobj = Py_None; | |
15806 | return resultobj; | |
15807 | fail: | |
15808 | return NULL; | |
15809 | } | |
15810 | ||
15811 | ||
15812 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15813 | PyObject *resultobj; | |
15814 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15815 | wxString *arg2 = 0 ; | |
423f194a | 15816 | bool temp2 = False ; |
d14a1e28 RD |
15817 | PyObject * obj0 = 0 ; |
15818 | PyObject * obj1 = 0 ; | |
15819 | char *kwnames[] = { | |
15820 | (char *) "self",(char *) "label", NULL | |
15821 | }; | |
15822 | ||
15823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15826 | { |
15827 | arg2 = wxString_in_helper(obj1); | |
15828 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15829 | temp2 = True; |
d14a1e28 RD |
15830 | } |
15831 | { | |
15832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15833 | (arg1)->SetLabel((wxString const &)*arg2); | |
15834 | ||
15835 | wxPyEndAllowThreads(__tstate); | |
15836 | if (PyErr_Occurred()) SWIG_fail; | |
15837 | } | |
15838 | Py_INCREF(Py_None); resultobj = Py_None; | |
15839 | { | |
15840 | if (temp2) | |
15841 | delete arg2; | |
15842 | } | |
15843 | return resultobj; | |
15844 | fail: | |
15845 | { | |
15846 | if (temp2) | |
15847 | delete arg2; | |
15848 | } | |
15849 | return NULL; | |
15850 | } | |
15851 | ||
15852 | ||
15853 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15854 | PyObject *resultobj; | |
15855 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15856 | PyObject * obj0 = 0 ; | |
15857 | char *kwnames[] = { | |
15858 | (char *) "self", NULL | |
15859 | }; | |
15860 | ||
15861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15864 | { |
15865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15866 | (arg1)->Detach(); | |
15867 | ||
15868 | wxPyEndAllowThreads(__tstate); | |
15869 | if (PyErr_Occurred()) SWIG_fail; | |
15870 | } | |
15871 | Py_INCREF(Py_None); resultobj = Py_None; | |
15872 | return resultobj; | |
15873 | fail: | |
15874 | return NULL; | |
15875 | } | |
15876 | ||
15877 | ||
15878 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15879 | PyObject *resultobj; | |
15880 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15881 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15882 | PyObject * obj0 = 0 ; | |
15883 | PyObject * obj1 = 0 ; | |
15884 | char *kwnames[] = { | |
15885 | (char *) "self",(char *) "tbar", NULL | |
15886 | }; | |
15887 | ||
15888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15891 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
15892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15893 | { |
15894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15895 | (arg1)->Attach(arg2); | |
15896 | ||
15897 | wxPyEndAllowThreads(__tstate); | |
15898 | if (PyErr_Occurred()) SWIG_fail; | |
15899 | } | |
15900 | Py_INCREF(Py_None); resultobj = Py_None; | |
15901 | return resultobj; | |
15902 | fail: | |
15903 | return NULL; | |
15904 | } | |
15905 | ||
15906 | ||
15907 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15908 | PyObject *resultobj; | |
15909 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15910 | PyObject *result; | |
15911 | PyObject * obj0 = 0 ; | |
15912 | char *kwnames[] = { | |
15913 | (char *) "self", NULL | |
15914 | }; | |
15915 | ||
15916 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",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 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15922 | ||
15923 | wxPyEndAllowThreads(__tstate); | |
15924 | if (PyErr_Occurred()) SWIG_fail; | |
15925 | } | |
15926 | resultobj = result; | |
15927 | return resultobj; | |
15928 | fail: | |
15929 | return NULL; | |
15930 | } | |
15931 | ||
15932 | ||
15933 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15934 | PyObject *resultobj; | |
15935 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15936 | PyObject *arg2 = (PyObject *) 0 ; | |
15937 | PyObject * obj0 = 0 ; | |
15938 | PyObject * obj1 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self",(char *) "clientData", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",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; | |
d14a1e28 RD |
15946 | arg2 = obj1; |
15947 | { | |
15948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15949 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15950 | ||
15951 | wxPyEndAllowThreads(__tstate); | |
15952 | if (PyErr_Occurred()) SWIG_fail; | |
15953 | } | |
15954 | Py_INCREF(Py_None); resultobj = Py_None; | |
15955 | return resultobj; | |
15956 | fail: | |
15957 | return NULL; | |
15958 | } | |
15959 | ||
15960 | ||
15961 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15962 | PyObject *obj; | |
15963 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15964 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15965 | Py_INCREF(obj); | |
15966 | return Py_BuildValue((char *)""); | |
15967 | } | |
15968 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15969 | PyObject *resultobj; | |
15970 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15971 | int arg2 ; | |
15972 | wxString *arg3 = 0 ; | |
15973 | wxBitmap *arg4 = 0 ; | |
15974 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15975 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15976 | int arg6 = (int) wxITEM_NORMAL ; | |
15977 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15978 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15979 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15980 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15981 | PyObject *arg9 = (PyObject *) NULL ; | |
15982 | wxToolBarToolBase *result; | |
423f194a RD |
15983 | bool temp3 = False ; |
15984 | bool temp7 = False ; | |
15985 | bool temp8 = False ; | |
d14a1e28 | 15986 | PyObject * obj0 = 0 ; |
8edf1c75 | 15987 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15988 | PyObject * obj2 = 0 ; |
15989 | PyObject * obj3 = 0 ; | |
15990 | PyObject * obj4 = 0 ; | |
8edf1c75 | 15991 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15992 | PyObject * obj6 = 0 ; |
15993 | PyObject * obj7 = 0 ; | |
15994 | PyObject * obj8 = 0 ; | |
15995 | char *kwnames[] = { | |
15996 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
15997 | }; | |
15998 | ||
8edf1c75 | 15999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
16000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16002 | arg2 = (int) SWIG_AsInt(obj1); | |
16003 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16004 | { |
16005 | arg3 = wxString_in_helper(obj2); | |
16006 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16007 | temp3 = True; |
d14a1e28 | 16008 | } |
2f4c0a16 RD |
16009 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16011 | SWIG_fail; | |
d14a1e28 | 16012 | if (arg4 == NULL) { |
2f4c0a16 RD |
16013 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16014 | SWIG_fail; | |
d14a1e28 RD |
16015 | } |
16016 | if (obj4) { | |
2f4c0a16 RD |
16017 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16018 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16019 | SWIG_fail; | |
d14a1e28 | 16020 | if (arg5 == NULL) { |
2f4c0a16 RD |
16021 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16022 | SWIG_fail; | |
d14a1e28 RD |
16023 | } |
16024 | } | |
8edf1c75 | 16025 | if (obj5) { |
2f4c0a16 RD |
16026 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16027 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16028 | } |
d14a1e28 RD |
16029 | if (obj6) { |
16030 | { | |
16031 | arg7 = wxString_in_helper(obj6); | |
16032 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 16033 | temp7 = True; |
d14a1e28 RD |
16034 | } |
16035 | } | |
16036 | if (obj7) { | |
16037 | { | |
16038 | arg8 = wxString_in_helper(obj7); | |
16039 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16040 | temp8 = True; |
d14a1e28 RD |
16041 | } |
16042 | } | |
16043 | if (obj8) { | |
16044 | arg9 = obj8; | |
16045 | } | |
16046 | { | |
16047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16048 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16049 | ||
16050 | wxPyEndAllowThreads(__tstate); | |
16051 | if (PyErr_Occurred()) SWIG_fail; | |
16052 | } | |
16053 | { | |
16054 | resultobj = wxPyMake_wxObject(result); | |
16055 | } | |
16056 | { | |
16057 | if (temp3) | |
16058 | delete arg3; | |
16059 | } | |
16060 | { | |
16061 | if (temp7) | |
16062 | delete arg7; | |
16063 | } | |
16064 | { | |
16065 | if (temp8) | |
16066 | delete arg8; | |
16067 | } | |
16068 | return resultobj; | |
16069 | fail: | |
16070 | { | |
16071 | if (temp3) | |
16072 | delete arg3; | |
16073 | } | |
16074 | { | |
16075 | if (temp7) | |
16076 | delete arg7; | |
16077 | } | |
16078 | { | |
16079 | if (temp8) | |
16080 | delete arg8; | |
16081 | } | |
16082 | return NULL; | |
16083 | } | |
16084 | ||
16085 | ||
16086 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16087 | PyObject *resultobj; | |
16088 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16089 | size_t arg2 ; | |
16090 | int arg3 ; | |
16091 | wxString *arg4 = 0 ; | |
16092 | wxBitmap *arg5 = 0 ; | |
16093 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16094 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16095 | int arg7 = (int) wxITEM_NORMAL ; | |
16096 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16097 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16098 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16099 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16100 | PyObject *arg10 = (PyObject *) NULL ; | |
16101 | wxToolBarToolBase *result; | |
423f194a RD |
16102 | bool temp4 = False ; |
16103 | bool temp8 = False ; | |
16104 | bool temp9 = False ; | |
d14a1e28 RD |
16105 | PyObject * obj0 = 0 ; |
16106 | PyObject * obj1 = 0 ; | |
8edf1c75 | 16107 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16108 | PyObject * obj3 = 0 ; |
16109 | PyObject * obj4 = 0 ; | |
16110 | PyObject * obj5 = 0 ; | |
8edf1c75 | 16111 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16112 | PyObject * obj7 = 0 ; |
16113 | PyObject * obj8 = 0 ; | |
16114 | PyObject * obj9 = 0 ; | |
16115 | char *kwnames[] = { | |
16116 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16117 | }; | |
16118 | ||
8edf1c75 | 16119 | 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 |
16120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16122 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16123 | if (PyErr_Occurred()) SWIG_fail; | |
16124 | arg3 = (int) SWIG_AsInt(obj2); | |
16125 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16126 | { |
16127 | arg4 = wxString_in_helper(obj3); | |
16128 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16129 | temp4 = True; |
d14a1e28 | 16130 | } |
2f4c0a16 RD |
16131 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16133 | SWIG_fail; | |
d14a1e28 | 16134 | if (arg5 == NULL) { |
2f4c0a16 RD |
16135 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16136 | SWIG_fail; | |
d14a1e28 RD |
16137 | } |
16138 | if (obj5) { | |
2f4c0a16 RD |
16139 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16140 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16141 | SWIG_fail; | |
d14a1e28 | 16142 | if (arg6 == NULL) { |
2f4c0a16 RD |
16143 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16144 | SWIG_fail; | |
d14a1e28 RD |
16145 | } |
16146 | } | |
8edf1c75 | 16147 | if (obj6) { |
2f4c0a16 RD |
16148 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16149 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16150 | } |
d14a1e28 RD |
16151 | if (obj7) { |
16152 | { | |
16153 | arg8 = wxString_in_helper(obj7); | |
16154 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16155 | temp8 = True; |
d14a1e28 RD |
16156 | } |
16157 | } | |
16158 | if (obj8) { | |
16159 | { | |
16160 | arg9 = wxString_in_helper(obj8); | |
16161 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 16162 | temp9 = True; |
d14a1e28 RD |
16163 | } |
16164 | } | |
16165 | if (obj9) { | |
16166 | arg10 = obj9; | |
16167 | } | |
16168 | { | |
16169 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16170 | 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); | |
16171 | ||
16172 | wxPyEndAllowThreads(__tstate); | |
16173 | if (PyErr_Occurred()) SWIG_fail; | |
16174 | } | |
16175 | { | |
16176 | resultobj = wxPyMake_wxObject(result); | |
16177 | } | |
16178 | { | |
16179 | if (temp4) | |
16180 | delete arg4; | |
16181 | } | |
16182 | { | |
16183 | if (temp8) | |
16184 | delete arg8; | |
16185 | } | |
16186 | { | |
16187 | if (temp9) | |
16188 | delete arg9; | |
16189 | } | |
16190 | return resultobj; | |
16191 | fail: | |
16192 | { | |
16193 | if (temp4) | |
16194 | delete arg4; | |
16195 | } | |
16196 | { | |
16197 | if (temp8) | |
16198 | delete arg8; | |
16199 | } | |
16200 | { | |
16201 | if (temp9) | |
16202 | delete arg9; | |
16203 | } | |
16204 | return NULL; | |
16205 | } | |
16206 | ||
16207 | ||
d03fd34d RD |
16208 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16209 | PyObject *resultobj; | |
16210 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16211 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16212 | wxToolBarToolBase *result; | |
16213 | PyObject * obj0 = 0 ; | |
16214 | PyObject * obj1 = 0 ; | |
16215 | char *kwnames[] = { | |
16216 | (char *) "self",(char *) "tool", NULL | |
16217 | }; | |
16218 | ||
16219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16224 | { |
16225 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16226 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16227 | ||
16228 | wxPyEndAllowThreads(__tstate); | |
16229 | if (PyErr_Occurred()) SWIG_fail; | |
16230 | } | |
16231 | { | |
16232 | resultobj = wxPyMake_wxObject(result); | |
16233 | } | |
16234 | return resultobj; | |
16235 | fail: | |
16236 | return NULL; | |
16237 | } | |
16238 | ||
16239 | ||
16240 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16241 | PyObject *resultobj; | |
16242 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16243 | size_t arg2 ; | |
16244 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16245 | wxToolBarToolBase *result; | |
16246 | PyObject * obj0 = 0 ; | |
16247 | PyObject * obj1 = 0 ; | |
16248 | PyObject * obj2 = 0 ; | |
16249 | char *kwnames[] = { | |
16250 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16251 | }; | |
16252 | ||
16253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16256 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16257 | if (PyErr_Occurred()) SWIG_fail; | |
16258 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16260 | { |
16261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16262 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16263 | ||
16264 | wxPyEndAllowThreads(__tstate); | |
16265 | if (PyErr_Occurred()) SWIG_fail; | |
16266 | } | |
16267 | { | |
16268 | resultobj = wxPyMake_wxObject(result); | |
16269 | } | |
16270 | return resultobj; | |
16271 | fail: | |
16272 | return NULL; | |
16273 | } | |
16274 | ||
16275 | ||
d14a1e28 RD |
16276 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16277 | PyObject *resultobj; | |
16278 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16279 | wxControl *arg2 = (wxControl *) 0 ; | |
16280 | wxToolBarToolBase *result; | |
16281 | PyObject * obj0 = 0 ; | |
16282 | PyObject * obj1 = 0 ; | |
16283 | char *kwnames[] = { | |
16284 | (char *) "self",(char *) "control", NULL | |
16285 | }; | |
16286 | ||
16287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16290 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16292 | { |
16293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16294 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16295 | ||
16296 | wxPyEndAllowThreads(__tstate); | |
16297 | if (PyErr_Occurred()) SWIG_fail; | |
16298 | } | |
16299 | { | |
16300 | resultobj = wxPyMake_wxObject(result); | |
16301 | } | |
16302 | return resultobj; | |
16303 | fail: | |
16304 | return NULL; | |
16305 | } | |
16306 | ||
16307 | ||
16308 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16309 | PyObject *resultobj; | |
16310 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16311 | size_t arg2 ; | |
16312 | wxControl *arg3 = (wxControl *) 0 ; | |
16313 | wxToolBarToolBase *result; | |
16314 | PyObject * obj0 = 0 ; | |
16315 | PyObject * obj1 = 0 ; | |
16316 | PyObject * obj2 = 0 ; | |
16317 | char *kwnames[] = { | |
16318 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16319 | }; | |
16320 | ||
16321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16324 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16325 | if (PyErr_Occurred()) SWIG_fail; | |
16326 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16327 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16328 | { |
16329 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16330 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16331 | ||
16332 | wxPyEndAllowThreads(__tstate); | |
16333 | if (PyErr_Occurred()) SWIG_fail; | |
16334 | } | |
16335 | { | |
16336 | resultobj = wxPyMake_wxObject(result); | |
16337 | } | |
16338 | return resultobj; | |
16339 | fail: | |
16340 | return NULL; | |
16341 | } | |
16342 | ||
16343 | ||
16344 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16345 | PyObject *resultobj; | |
16346 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16347 | int arg2 ; | |
16348 | wxControl *result; | |
16349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16351 | char *kwnames[] = { |
16352 | (char *) "self",(char *) "id", NULL | |
16353 | }; | |
16354 | ||
8edf1c75 | 16355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16358 | arg2 = (int) SWIG_AsInt(obj1); | |
16359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16360 | { |
16361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16362 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16363 | ||
16364 | wxPyEndAllowThreads(__tstate); | |
16365 | if (PyErr_Occurred()) SWIG_fail; | |
16366 | } | |
16367 | { | |
16368 | resultobj = wxPyMake_wxObject(result); | |
16369 | } | |
16370 | return resultobj; | |
16371 | fail: | |
16372 | return NULL; | |
16373 | } | |
16374 | ||
16375 | ||
16376 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16377 | PyObject *resultobj; | |
16378 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16379 | wxToolBarToolBase *result; | |
16380 | PyObject * obj0 = 0 ; | |
16381 | char *kwnames[] = { | |
16382 | (char *) "self", NULL | |
16383 | }; | |
16384 | ||
16385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16388 | { |
16389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16390 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16391 | ||
16392 | wxPyEndAllowThreads(__tstate); | |
16393 | if (PyErr_Occurred()) SWIG_fail; | |
16394 | } | |
16395 | { | |
16396 | resultobj = wxPyMake_wxObject(result); | |
16397 | } | |
16398 | return resultobj; | |
16399 | fail: | |
16400 | return NULL; | |
16401 | } | |
16402 | ||
16403 | ||
16404 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16405 | PyObject *resultobj; | |
16406 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16407 | size_t arg2 ; | |
16408 | wxToolBarToolBase *result; | |
16409 | PyObject * obj0 = 0 ; | |
16410 | PyObject * obj1 = 0 ; | |
16411 | char *kwnames[] = { | |
16412 | (char *) "self",(char *) "pos", NULL | |
16413 | }; | |
16414 | ||
16415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16418 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16420 | { |
16421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16422 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16423 | ||
16424 | wxPyEndAllowThreads(__tstate); | |
16425 | if (PyErr_Occurred()) SWIG_fail; | |
16426 | } | |
16427 | { | |
16428 | resultobj = wxPyMake_wxObject(result); | |
16429 | } | |
16430 | return resultobj; | |
16431 | fail: | |
16432 | return NULL; | |
16433 | } | |
16434 | ||
16435 | ||
16436 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16437 | PyObject *resultobj; | |
16438 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16439 | int arg2 ; | |
16440 | wxToolBarToolBase *result; | |
16441 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16442 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16443 | char *kwnames[] = { |
16444 | (char *) "self",(char *) "id", NULL | |
16445 | }; | |
16446 | ||
8edf1c75 | 16447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16450 | arg2 = (int) SWIG_AsInt(obj1); | |
16451 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16452 | { |
16453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16454 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16455 | ||
16456 | wxPyEndAllowThreads(__tstate); | |
16457 | if (PyErr_Occurred()) SWIG_fail; | |
16458 | } | |
16459 | { | |
16460 | resultobj = wxPyMake_wxObject(result); | |
16461 | } | |
16462 | return resultobj; | |
16463 | fail: | |
16464 | return NULL; | |
16465 | } | |
16466 | ||
16467 | ||
16468 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16469 | PyObject *resultobj; | |
16470 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16471 | size_t arg2 ; | |
16472 | bool result; | |
16473 | PyObject * obj0 = 0 ; | |
16474 | PyObject * obj1 = 0 ; | |
16475 | char *kwnames[] = { | |
16476 | (char *) "self",(char *) "pos", NULL | |
16477 | }; | |
16478 | ||
16479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16482 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16484 | { |
16485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16486 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16487 | ||
16488 | wxPyEndAllowThreads(__tstate); | |
16489 | if (PyErr_Occurred()) SWIG_fail; | |
16490 | } | |
4f89f6a3 RD |
16491 | { |
16492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16493 | } | |
d14a1e28 RD |
16494 | return resultobj; |
16495 | fail: | |
16496 | return NULL; | |
16497 | } | |
16498 | ||
16499 | ||
16500 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16501 | PyObject *resultobj; | |
16502 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16503 | int arg2 ; | |
16504 | bool result; | |
16505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16507 | char *kwnames[] = { |
16508 | (char *) "self",(char *) "id", NULL | |
16509 | }; | |
16510 | ||
8edf1c75 | 16511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16514 | arg2 = (int) SWIG_AsInt(obj1); | |
16515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16516 | { |
16517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16518 | result = (bool)(arg1)->DeleteTool(arg2); | |
16519 | ||
16520 | wxPyEndAllowThreads(__tstate); | |
16521 | if (PyErr_Occurred()) SWIG_fail; | |
16522 | } | |
4f89f6a3 RD |
16523 | { |
16524 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16525 | } | |
d14a1e28 RD |
16526 | return resultobj; |
16527 | fail: | |
16528 | return NULL; | |
16529 | } | |
16530 | ||
16531 | ||
16532 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16533 | PyObject *resultobj; | |
16534 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16535 | PyObject * obj0 = 0 ; | |
16536 | char *kwnames[] = { | |
16537 | (char *) "self", NULL | |
16538 | }; | |
16539 | ||
16540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16543 | { |
16544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16545 | (arg1)->ClearTools(); | |
16546 | ||
16547 | wxPyEndAllowThreads(__tstate); | |
16548 | if (PyErr_Occurred()) SWIG_fail; | |
16549 | } | |
16550 | Py_INCREF(Py_None); resultobj = Py_None; | |
16551 | return resultobj; | |
16552 | fail: | |
16553 | return NULL; | |
16554 | } | |
16555 | ||
16556 | ||
16557 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16558 | PyObject *resultobj; | |
16559 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16560 | bool result; | |
16561 | PyObject * obj0 = 0 ; | |
16562 | char *kwnames[] = { | |
16563 | (char *) "self", NULL | |
16564 | }; | |
16565 | ||
16566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16569 | { |
16570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16571 | result = (bool)(arg1)->Realize(); | |
16572 | ||
16573 | wxPyEndAllowThreads(__tstate); | |
16574 | if (PyErr_Occurred()) SWIG_fail; | |
16575 | } | |
4f89f6a3 RD |
16576 | { |
16577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16578 | } | |
d14a1e28 RD |
16579 | return resultobj; |
16580 | fail: | |
16581 | return NULL; | |
16582 | } | |
16583 | ||
16584 | ||
16585 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16586 | PyObject *resultobj; | |
16587 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16588 | int arg2 ; | |
16589 | bool arg3 ; | |
16590 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16592 | PyObject * obj2 = 0 ; |
16593 | char *kwnames[] = { | |
16594 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16595 | }; | |
16596 | ||
8edf1c75 | 16597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16600 | arg2 = (int) SWIG_AsInt(obj1); | |
16601 | if (PyErr_Occurred()) SWIG_fail; | |
16602 | arg3 = (bool) SWIG_AsBool(obj2); | |
16603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16604 | { |
16605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16606 | (arg1)->EnableTool(arg2,arg3); | |
16607 | ||
16608 | wxPyEndAllowThreads(__tstate); | |
16609 | if (PyErr_Occurred()) SWIG_fail; | |
16610 | } | |
16611 | Py_INCREF(Py_None); resultobj = Py_None; | |
16612 | return resultobj; | |
16613 | fail: | |
16614 | return NULL; | |
16615 | } | |
16616 | ||
16617 | ||
16618 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16619 | PyObject *resultobj; | |
16620 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16621 | int arg2 ; | |
16622 | bool arg3 ; | |
16623 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16625 | PyObject * obj2 = 0 ; |
16626 | char *kwnames[] = { | |
16627 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16628 | }; | |
16629 | ||
8edf1c75 | 16630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16631 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16632 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16633 | arg2 = (int) SWIG_AsInt(obj1); | |
16634 | if (PyErr_Occurred()) SWIG_fail; | |
16635 | arg3 = (bool) SWIG_AsBool(obj2); | |
16636 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16637 | { |
16638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16639 | (arg1)->ToggleTool(arg2,arg3); | |
16640 | ||
16641 | wxPyEndAllowThreads(__tstate); | |
16642 | if (PyErr_Occurred()) SWIG_fail; | |
16643 | } | |
16644 | Py_INCREF(Py_None); resultobj = Py_None; | |
16645 | return resultobj; | |
16646 | fail: | |
16647 | return NULL; | |
16648 | } | |
16649 | ||
16650 | ||
16651 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16652 | PyObject *resultobj; | |
16653 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16654 | int arg2 ; | |
16655 | bool arg3 ; | |
16656 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16657 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16658 | PyObject * obj2 = 0 ; |
16659 | char *kwnames[] = { | |
16660 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16661 | }; | |
16662 | ||
8edf1c75 | 16663 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16664 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16665 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16666 | arg2 = (int) SWIG_AsInt(obj1); | |
16667 | if (PyErr_Occurred()) SWIG_fail; | |
16668 | arg3 = (bool) SWIG_AsBool(obj2); | |
16669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16670 | { |
16671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16672 | (arg1)->SetToggle(arg2,arg3); | |
16673 | ||
16674 | wxPyEndAllowThreads(__tstate); | |
16675 | if (PyErr_Occurred()) SWIG_fail; | |
16676 | } | |
16677 | Py_INCREF(Py_None); resultobj = Py_None; | |
16678 | return resultobj; | |
16679 | fail: | |
16680 | return NULL; | |
16681 | } | |
16682 | ||
16683 | ||
16684 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16685 | PyObject *resultobj; | |
16686 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16687 | int arg2 ; | |
16688 | PyObject *result; | |
16689 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16690 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16691 | char *kwnames[] = { |
16692 | (char *) "self",(char *) "id", NULL | |
16693 | }; | |
16694 | ||
8edf1c75 | 16695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16698 | arg2 = (int) SWIG_AsInt(obj1); | |
16699 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16700 | { |
16701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16702 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16703 | ||
16704 | wxPyEndAllowThreads(__tstate); | |
16705 | if (PyErr_Occurred()) SWIG_fail; | |
16706 | } | |
16707 | resultobj = result; | |
16708 | return resultobj; | |
16709 | fail: | |
16710 | return NULL; | |
16711 | } | |
16712 | ||
16713 | ||
16714 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16715 | PyObject *resultobj; | |
16716 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16717 | int arg2 ; | |
16718 | PyObject *arg3 = (PyObject *) 0 ; | |
16719 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16720 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16721 | PyObject * obj2 = 0 ; |
16722 | char *kwnames[] = { | |
16723 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16724 | }; | |
16725 | ||
8edf1c75 | 16726 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16727 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16728 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16729 | arg2 = (int) SWIG_AsInt(obj1); | |
16730 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16731 | arg3 = obj2; |
16732 | { | |
16733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16734 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16735 | ||
16736 | wxPyEndAllowThreads(__tstate); | |
16737 | if (PyErr_Occurred()) SWIG_fail; | |
16738 | } | |
16739 | Py_INCREF(Py_None); resultobj = Py_None; | |
16740 | return resultobj; | |
16741 | fail: | |
16742 | return NULL; | |
16743 | } | |
16744 | ||
16745 | ||
16746 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16747 | PyObject *resultobj; | |
16748 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16749 | int arg2 ; | |
16750 | int result; | |
16751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16753 | char *kwnames[] = { |
16754 | (char *) "self",(char *) "id", NULL | |
16755 | }; | |
16756 | ||
8edf1c75 | 16757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16760 | arg2 = (int) SWIG_AsInt(obj1); | |
16761 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16762 | { |
16763 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16764 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16765 | ||
16766 | wxPyEndAllowThreads(__tstate); | |
16767 | if (PyErr_Occurred()) SWIG_fail; | |
16768 | } | |
2f4c0a16 | 16769 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16770 | return resultobj; |
16771 | fail: | |
16772 | return NULL; | |
16773 | } | |
16774 | ||
16775 | ||
16776 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16777 | PyObject *resultobj; | |
16778 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16779 | int arg2 ; | |
16780 | bool result; | |
16781 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16782 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16783 | char *kwnames[] = { |
16784 | (char *) "self",(char *) "id", NULL | |
16785 | }; | |
16786 | ||
8edf1c75 | 16787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16790 | arg2 = (int) SWIG_AsInt(obj1); | |
16791 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16792 | { |
16793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16794 | result = (bool)(arg1)->GetToolState(arg2); | |
16795 | ||
16796 | wxPyEndAllowThreads(__tstate); | |
16797 | if (PyErr_Occurred()) SWIG_fail; | |
16798 | } | |
4f89f6a3 RD |
16799 | { |
16800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16801 | } | |
d14a1e28 RD |
16802 | return resultobj; |
16803 | fail: | |
16804 | return NULL; | |
16805 | } | |
16806 | ||
16807 | ||
16808 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16809 | PyObject *resultobj; | |
16810 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16811 | int arg2 ; | |
16812 | bool result; | |
16813 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16814 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16815 | char *kwnames[] = { |
16816 | (char *) "self",(char *) "id", NULL | |
16817 | }; | |
16818 | ||
8edf1c75 | 16819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16820 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16821 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16822 | arg2 = (int) SWIG_AsInt(obj1); | |
16823 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16824 | { |
16825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16826 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16827 | ||
16828 | wxPyEndAllowThreads(__tstate); | |
16829 | if (PyErr_Occurred()) SWIG_fail; | |
16830 | } | |
4f89f6a3 RD |
16831 | { |
16832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16833 | } | |
d14a1e28 RD |
16834 | return resultobj; |
16835 | fail: | |
16836 | return NULL; | |
16837 | } | |
16838 | ||
16839 | ||
16840 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16841 | PyObject *resultobj; | |
16842 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16843 | int arg2 ; | |
16844 | wxString *arg3 = 0 ; | |
423f194a | 16845 | bool temp3 = False ; |
d14a1e28 | 16846 | PyObject * obj0 = 0 ; |
8edf1c75 | 16847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16848 | PyObject * obj2 = 0 ; |
16849 | char *kwnames[] = { | |
16850 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16851 | }; | |
16852 | ||
8edf1c75 | 16853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16856 | arg2 = (int) SWIG_AsInt(obj1); | |
16857 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16858 | { |
16859 | arg3 = wxString_in_helper(obj2); | |
16860 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16861 | temp3 = True; |
d14a1e28 RD |
16862 | } |
16863 | { | |
16864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16865 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16866 | ||
16867 | wxPyEndAllowThreads(__tstate); | |
16868 | if (PyErr_Occurred()) SWIG_fail; | |
16869 | } | |
16870 | Py_INCREF(Py_None); resultobj = Py_None; | |
16871 | { | |
16872 | if (temp3) | |
16873 | delete arg3; | |
16874 | } | |
16875 | return resultobj; | |
16876 | fail: | |
16877 | { | |
16878 | if (temp3) | |
16879 | delete arg3; | |
16880 | } | |
16881 | return NULL; | |
16882 | } | |
16883 | ||
16884 | ||
16885 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16886 | PyObject *resultobj; | |
16887 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16888 | int arg2 ; | |
16889 | wxString result; | |
16890 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16891 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16892 | char *kwnames[] = { |
16893 | (char *) "self",(char *) "id", NULL | |
16894 | }; | |
16895 | ||
8edf1c75 | 16896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16899 | arg2 = (int) SWIG_AsInt(obj1); | |
16900 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16901 | { |
16902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16903 | result = (arg1)->GetToolShortHelp(arg2); | |
16904 | ||
16905 | wxPyEndAllowThreads(__tstate); | |
16906 | if (PyErr_Occurred()) SWIG_fail; | |
16907 | } | |
16908 | { | |
16909 | #if wxUSE_UNICODE | |
16910 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16911 | #else | |
16912 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16913 | #endif | |
16914 | } | |
16915 | return resultobj; | |
16916 | fail: | |
16917 | return NULL; | |
16918 | } | |
16919 | ||
16920 | ||
16921 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16922 | PyObject *resultobj; | |
16923 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16924 | int arg2 ; | |
16925 | wxString *arg3 = 0 ; | |
423f194a | 16926 | bool temp3 = False ; |
d14a1e28 | 16927 | PyObject * obj0 = 0 ; |
8edf1c75 | 16928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16929 | PyObject * obj2 = 0 ; |
16930 | char *kwnames[] = { | |
16931 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16932 | }; | |
16933 | ||
8edf1c75 | 16934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16937 | arg2 = (int) SWIG_AsInt(obj1); | |
16938 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16939 | { |
16940 | arg3 = wxString_in_helper(obj2); | |
16941 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16942 | temp3 = True; |
d14a1e28 RD |
16943 | } |
16944 | { | |
16945 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16946 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16947 | ||
16948 | wxPyEndAllowThreads(__tstate); | |
16949 | if (PyErr_Occurred()) SWIG_fail; | |
16950 | } | |
16951 | Py_INCREF(Py_None); resultobj = Py_None; | |
16952 | { | |
16953 | if (temp3) | |
16954 | delete arg3; | |
16955 | } | |
16956 | return resultobj; | |
16957 | fail: | |
16958 | { | |
16959 | if (temp3) | |
16960 | delete arg3; | |
16961 | } | |
16962 | return NULL; | |
16963 | } | |
16964 | ||
16965 | ||
16966 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16967 | PyObject *resultobj; | |
16968 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16969 | int arg2 ; | |
16970 | wxString result; | |
16971 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16972 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16973 | char *kwnames[] = { |
16974 | (char *) "self",(char *) "id", NULL | |
16975 | }; | |
16976 | ||
8edf1c75 | 16977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16980 | arg2 = (int) SWIG_AsInt(obj1); | |
16981 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16982 | { |
16983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16984 | result = (arg1)->GetToolLongHelp(arg2); | |
16985 | ||
16986 | wxPyEndAllowThreads(__tstate); | |
16987 | if (PyErr_Occurred()) SWIG_fail; | |
16988 | } | |
16989 | { | |
16990 | #if wxUSE_UNICODE | |
16991 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16992 | #else | |
16993 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16994 | #endif | |
16995 | } | |
16996 | return resultobj; | |
16997 | fail: | |
16998 | return NULL; | |
16999 | } | |
17000 | ||
17001 | ||
17002 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17003 | PyObject *resultobj; | |
17004 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17005 | int arg2 ; | |
17006 | int arg3 ; | |
17007 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17008 | PyObject * obj1 = 0 ; |
17009 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17010 | char *kwnames[] = { |
17011 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17012 | }; | |
17013 | ||
8edf1c75 | 17014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17017 | arg2 = (int) SWIG_AsInt(obj1); | |
17018 | if (PyErr_Occurred()) SWIG_fail; | |
17019 | arg3 = (int) SWIG_AsInt(obj2); | |
17020 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17021 | { |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | (arg1)->SetMargins(arg2,arg3); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | Py_INCREF(Py_None); resultobj = Py_None; | |
17029 | return resultobj; | |
17030 | fail: | |
17031 | return NULL; | |
17032 | } | |
17033 | ||
17034 | ||
17035 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17036 | PyObject *resultobj; | |
17037 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17038 | wxSize *arg2 = 0 ; | |
17039 | wxSize temp2 ; | |
17040 | PyObject * obj0 = 0 ; | |
17041 | PyObject * obj1 = 0 ; | |
17042 | char *kwnames[] = { | |
17043 | (char *) "self",(char *) "size", NULL | |
17044 | }; | |
17045 | ||
17046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17049 | { |
17050 | arg2 = &temp2; | |
17051 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17052 | } | |
17053 | { | |
17054 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17055 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17056 | ||
17057 | wxPyEndAllowThreads(__tstate); | |
17058 | if (PyErr_Occurred()) SWIG_fail; | |
17059 | } | |
17060 | Py_INCREF(Py_None); resultobj = Py_None; | |
17061 | return resultobj; | |
17062 | fail: | |
17063 | return NULL; | |
17064 | } | |
17065 | ||
17066 | ||
17067 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17068 | PyObject *resultobj; | |
17069 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17070 | int arg2 ; | |
17071 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17072 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17073 | char *kwnames[] = { |
17074 | (char *) "self",(char *) "packing", NULL | |
17075 | }; | |
17076 | ||
8edf1c75 | 17077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17080 | arg2 = (int) SWIG_AsInt(obj1); | |
17081 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17082 | { |
17083 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17084 | (arg1)->SetToolPacking(arg2); | |
17085 | ||
17086 | wxPyEndAllowThreads(__tstate); | |
17087 | if (PyErr_Occurred()) SWIG_fail; | |
17088 | } | |
17089 | Py_INCREF(Py_None); resultobj = Py_None; | |
17090 | return resultobj; | |
17091 | fail: | |
17092 | return NULL; | |
17093 | } | |
17094 | ||
17095 | ||
17096 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17097 | PyObject *resultobj; | |
17098 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17099 | int arg2 ; | |
17100 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17101 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17102 | char *kwnames[] = { |
17103 | (char *) "self",(char *) "separation", NULL | |
17104 | }; | |
17105 | ||
8edf1c75 | 17106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17109 | arg2 = (int) SWIG_AsInt(obj1); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17111 | { |
17112 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17113 | (arg1)->SetToolSeparation(arg2); | |
17114 | ||
17115 | wxPyEndAllowThreads(__tstate); | |
17116 | if (PyErr_Occurred()) SWIG_fail; | |
17117 | } | |
17118 | Py_INCREF(Py_None); resultobj = Py_None; | |
17119 | return resultobj; | |
17120 | fail: | |
17121 | return NULL; | |
17122 | } | |
17123 | ||
17124 | ||
17125 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17126 | PyObject *resultobj; | |
17127 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17128 | wxSize result; | |
17129 | PyObject * obj0 = 0 ; | |
17130 | char *kwnames[] = { | |
17131 | (char *) "self", NULL | |
17132 | }; | |
17133 | ||
17134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17137 | { |
17138 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17139 | result = (arg1)->GetToolMargins(); | |
17140 | ||
17141 | wxPyEndAllowThreads(__tstate); | |
17142 | if (PyErr_Occurred()) SWIG_fail; | |
17143 | } | |
17144 | { | |
17145 | wxSize * resultptr; | |
17146 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17147 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17148 | } |
17149 | return resultobj; | |
17150 | fail: | |
17151 | return NULL; | |
17152 | } | |
17153 | ||
17154 | ||
17155 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17156 | PyObject *resultobj; | |
17157 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17158 | wxSize result; | |
17159 | PyObject * obj0 = 0 ; | |
17160 | char *kwnames[] = { | |
17161 | (char *) "self", NULL | |
17162 | }; | |
17163 | ||
17164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17167 | { |
17168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17169 | result = (arg1)->GetMargins(); | |
17170 | ||
17171 | wxPyEndAllowThreads(__tstate); | |
17172 | if (PyErr_Occurred()) SWIG_fail; | |
17173 | } | |
17174 | { | |
17175 | wxSize * resultptr; | |
17176 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17177 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17178 | } |
17179 | return resultobj; | |
17180 | fail: | |
17181 | return NULL; | |
17182 | } | |
17183 | ||
17184 | ||
17185 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17186 | PyObject *resultobj; | |
17187 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17188 | int result; | |
17189 | PyObject * obj0 = 0 ; | |
17190 | char *kwnames[] = { | |
17191 | (char *) "self", NULL | |
17192 | }; | |
17193 | ||
17194 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17195 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17196 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17197 | { |
17198 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17199 | result = (int)(arg1)->GetToolPacking(); | |
17200 | ||
17201 | wxPyEndAllowThreads(__tstate); | |
17202 | if (PyErr_Occurred()) SWIG_fail; | |
17203 | } | |
2f4c0a16 | 17204 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17205 | return resultobj; |
17206 | fail: | |
17207 | return NULL; | |
17208 | } | |
17209 | ||
17210 | ||
17211 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17212 | PyObject *resultobj; | |
17213 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17214 | int result; | |
17215 | PyObject * obj0 = 0 ; | |
17216 | char *kwnames[] = { | |
17217 | (char *) "self", NULL | |
17218 | }; | |
17219 | ||
17220 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17221 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17222 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17223 | { |
17224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17225 | result = (int)(arg1)->GetToolSeparation(); | |
17226 | ||
17227 | wxPyEndAllowThreads(__tstate); | |
17228 | if (PyErr_Occurred()) SWIG_fail; | |
17229 | } | |
2f4c0a16 | 17230 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17231 | return resultobj; |
17232 | fail: | |
17233 | return NULL; | |
17234 | } | |
17235 | ||
17236 | ||
17237 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17238 | PyObject *resultobj; | |
17239 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17240 | int arg2 ; | |
17241 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17242 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17243 | char *kwnames[] = { |
17244 | (char *) "self",(char *) "nRows", NULL | |
17245 | }; | |
17246 | ||
8edf1c75 | 17247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17250 | arg2 = (int) SWIG_AsInt(obj1); | |
17251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17252 | { |
17253 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17254 | (arg1)->SetRows(arg2); | |
17255 | ||
17256 | wxPyEndAllowThreads(__tstate); | |
17257 | if (PyErr_Occurred()) SWIG_fail; | |
17258 | } | |
17259 | Py_INCREF(Py_None); resultobj = Py_None; | |
17260 | return resultobj; | |
17261 | fail: | |
17262 | return NULL; | |
17263 | } | |
17264 | ||
17265 | ||
17266 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17267 | PyObject *resultobj; | |
17268 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17269 | int arg2 ; | |
17270 | int arg3 ; | |
17271 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17272 | PyObject * obj1 = 0 ; |
17273 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17274 | char *kwnames[] = { |
17275 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17276 | }; | |
17277 | ||
8edf1c75 | 17278 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17279 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17281 | arg2 = (int) SWIG_AsInt(obj1); | |
17282 | if (PyErr_Occurred()) SWIG_fail; | |
17283 | arg3 = (int) SWIG_AsInt(obj2); | |
17284 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17285 | { |
17286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17287 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17288 | ||
17289 | wxPyEndAllowThreads(__tstate); | |
17290 | if (PyErr_Occurred()) SWIG_fail; | |
17291 | } | |
17292 | Py_INCREF(Py_None); resultobj = Py_None; | |
17293 | return resultobj; | |
17294 | fail: | |
17295 | return NULL; | |
17296 | } | |
17297 | ||
17298 | ||
17299 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17300 | PyObject *resultobj; | |
17301 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17302 | int result; | |
17303 | PyObject * obj0 = 0 ; | |
17304 | char *kwnames[] = { | |
17305 | (char *) "self", NULL | |
17306 | }; | |
17307 | ||
17308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17311 | { |
17312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17313 | result = (int)(arg1)->GetMaxRows(); | |
17314 | ||
17315 | wxPyEndAllowThreads(__tstate); | |
17316 | if (PyErr_Occurred()) SWIG_fail; | |
17317 | } | |
2f4c0a16 | 17318 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17319 | return resultobj; |
17320 | fail: | |
17321 | return NULL; | |
17322 | } | |
17323 | ||
17324 | ||
17325 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17326 | PyObject *resultobj; | |
17327 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17328 | int result; | |
17329 | PyObject * obj0 = 0 ; | |
17330 | char *kwnames[] = { | |
17331 | (char *) "self", NULL | |
17332 | }; | |
17333 | ||
17334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17337 | { |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | result = (int)(arg1)->GetMaxCols(); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
2f4c0a16 | 17344 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17345 | return resultobj; |
17346 | fail: | |
17347 | return NULL; | |
17348 | } | |
17349 | ||
17350 | ||
17351 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17352 | PyObject *resultobj; | |
17353 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17354 | wxSize *arg2 = 0 ; | |
17355 | wxSize temp2 ; | |
17356 | PyObject * obj0 = 0 ; | |
17357 | PyObject * obj1 = 0 ; | |
17358 | char *kwnames[] = { | |
17359 | (char *) "self",(char *) "size", NULL | |
17360 | }; | |
17361 | ||
17362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17365 | { |
17366 | arg2 = &temp2; | |
17367 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17368 | } | |
17369 | { | |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17372 | ||
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
17376 | Py_INCREF(Py_None); resultobj = Py_None; | |
17377 | return resultobj; | |
17378 | fail: | |
17379 | return NULL; | |
17380 | } | |
17381 | ||
17382 | ||
17383 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17384 | PyObject *resultobj; | |
17385 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17386 | wxSize result; | |
17387 | PyObject * obj0 = 0 ; | |
17388 | char *kwnames[] = { | |
17389 | (char *) "self", NULL | |
17390 | }; | |
17391 | ||
17392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17395 | { |
17396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17397 | result = (arg1)->GetToolBitmapSize(); | |
17398 | ||
17399 | wxPyEndAllowThreads(__tstate); | |
17400 | if (PyErr_Occurred()) SWIG_fail; | |
17401 | } | |
17402 | { | |
17403 | wxSize * resultptr; | |
17404 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17405 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17406 | } |
17407 | return resultobj; | |
17408 | fail: | |
17409 | return NULL; | |
17410 | } | |
17411 | ||
17412 | ||
17413 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17414 | PyObject *resultobj; | |
17415 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17416 | wxSize result; | |
17417 | PyObject * obj0 = 0 ; | |
17418 | char *kwnames[] = { | |
17419 | (char *) "self", NULL | |
17420 | }; | |
17421 | ||
17422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17425 | { |
17426 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17427 | result = (arg1)->GetToolSize(); | |
17428 | ||
17429 | wxPyEndAllowThreads(__tstate); | |
17430 | if (PyErr_Occurred()) SWIG_fail; | |
17431 | } | |
17432 | { | |
17433 | wxSize * resultptr; | |
17434 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17435 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17436 | } |
17437 | return resultobj; | |
17438 | fail: | |
17439 | return NULL; | |
17440 | } | |
17441 | ||
17442 | ||
17443 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17444 | PyObject *resultobj; | |
17445 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17446 | int arg2 ; |
17447 | int arg3 ; | |
d14a1e28 RD |
17448 | wxToolBarToolBase *result; |
17449 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17450 | PyObject * obj1 = 0 ; |
17451 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17452 | char *kwnames[] = { |
17453 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17454 | }; | |
17455 | ||
8edf1c75 | 17456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17459 | arg2 = (int) SWIG_AsInt(obj1); | |
17460 | if (PyErr_Occurred()) SWIG_fail; | |
17461 | arg3 = (int) SWIG_AsInt(obj2); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17463 | { |
17464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17465 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17466 | ||
17467 | wxPyEndAllowThreads(__tstate); | |
17468 | if (PyErr_Occurred()) SWIG_fail; | |
17469 | } | |
17470 | { | |
17471 | resultobj = wxPyMake_wxObject(result); | |
17472 | } | |
17473 | return resultobj; | |
17474 | fail: | |
17475 | return NULL; | |
17476 | } | |
17477 | ||
17478 | ||
d03fd34d RD |
17479 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17480 | PyObject *resultobj; | |
17481 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17482 | int arg2 ; | |
17483 | wxToolBarToolBase *result; | |
17484 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17485 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17486 | char *kwnames[] = { |
17487 | (char *) "self",(char *) "toolid", NULL | |
17488 | }; | |
17489 | ||
8edf1c75 | 17490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17493 | arg2 = (int) SWIG_AsInt(obj1); | |
17494 | if (PyErr_Occurred()) SWIG_fail; | |
d03fd34d RD |
17495 | { |
17496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17497 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17498 | ||
17499 | wxPyEndAllowThreads(__tstate); | |
17500 | if (PyErr_Occurred()) SWIG_fail; | |
17501 | } | |
17502 | { | |
17503 | resultobj = wxPyMake_wxObject(result); | |
17504 | } | |
17505 | return resultobj; | |
17506 | fail: | |
17507 | return NULL; | |
17508 | } | |
17509 | ||
17510 | ||
d14a1e28 RD |
17511 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17512 | PyObject *resultobj; | |
17513 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17514 | bool result; | |
17515 | PyObject * obj0 = 0 ; | |
17516 | char *kwnames[] = { | |
17517 | (char *) "self", NULL | |
17518 | }; | |
17519 | ||
17520 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17521 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17522 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | result = (bool)(arg1)->IsVertical(); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
4f89f6a3 RD |
17530 | { |
17531 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17532 | } | |
d14a1e28 RD |
17533 | return resultobj; |
17534 | fail: | |
17535 | return NULL; | |
17536 | } | |
17537 | ||
17538 | ||
17539 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17540 | PyObject *obj; | |
17541 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17542 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17543 | Py_INCREF(obj); | |
17544 | return Py_BuildValue((char *)""); | |
17545 | } | |
17546 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17547 | PyObject *resultobj; | |
17548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17549 | int arg2 ; |
d14a1e28 RD |
17550 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17551 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17552 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17553 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17554 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17555 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17556 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17557 | wxToolBar *result; | |
17558 | wxPoint temp3 ; | |
17559 | wxSize temp4 ; | |
423f194a | 17560 | bool temp6 = False ; |
d14a1e28 | 17561 | PyObject * obj0 = 0 ; |
8edf1c75 | 17562 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17563 | PyObject * obj2 = 0 ; |
17564 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17565 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17566 | PyObject * obj5 = 0 ; |
17567 | char *kwnames[] = { | |
17568 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17569 | }; | |
17570 | ||
8edf1c75 | 17571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
17572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17574 | arg2 = (int) SWIG_AsInt(obj1); | |
17575 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17576 | if (obj2) { |
17577 | { | |
17578 | arg3 = &temp3; | |
17579 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17580 | } | |
17581 | } | |
17582 | if (obj3) { | |
17583 | { | |
17584 | arg4 = &temp4; | |
17585 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17586 | } | |
17587 | } | |
8edf1c75 | 17588 | if (obj4) { |
2f4c0a16 RD |
17589 | arg5 = (long) SWIG_AsLong(obj4); |
17590 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17591 | } |
d14a1e28 RD |
17592 | if (obj5) { |
17593 | { | |
17594 | arg6 = wxString_in_helper(obj5); | |
17595 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17596 | temp6 = True; |
d14a1e28 RD |
17597 | } |
17598 | } | |
17599 | { | |
17600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17601 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17602 | ||
17603 | wxPyEndAllowThreads(__tstate); | |
17604 | if (PyErr_Occurred()) SWIG_fail; | |
17605 | } | |
17606 | { | |
17607 | resultobj = wxPyMake_wxObject(result); | |
17608 | } | |
17609 | { | |
17610 | if (temp6) | |
17611 | delete arg6; | |
17612 | } | |
17613 | return resultobj; | |
17614 | fail: | |
17615 | { | |
17616 | if (temp6) | |
17617 | delete arg6; | |
17618 | } | |
17619 | return NULL; | |
17620 | } | |
17621 | ||
17622 | ||
17623 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17624 | PyObject *resultobj; | |
17625 | wxToolBar *result; | |
17626 | char *kwnames[] = { | |
17627 | NULL | |
17628 | }; | |
17629 | ||
17630 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17631 | { | |
17632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17633 | result = (wxToolBar *)new wxToolBar(); | |
17634 | ||
17635 | wxPyEndAllowThreads(__tstate); | |
17636 | if (PyErr_Occurred()) SWIG_fail; | |
17637 | } | |
17638 | { | |
17639 | resultobj = wxPyMake_wxObject(result); | |
17640 | } | |
17641 | return resultobj; | |
17642 | fail: | |
17643 | return NULL; | |
17644 | } | |
17645 | ||
17646 | ||
17647 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17648 | PyObject *resultobj; | |
17649 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17650 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17651 | int arg3 ; |
d14a1e28 RD |
17652 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17653 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17654 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17655 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17656 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17657 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17658 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17659 | bool result; | |
17660 | wxPoint temp4 ; | |
17661 | wxSize temp5 ; | |
423f194a | 17662 | bool temp7 = False ; |
d14a1e28 RD |
17663 | PyObject * obj0 = 0 ; |
17664 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17665 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17666 | PyObject * obj3 = 0 ; |
17667 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17668 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17669 | PyObject * obj6 = 0 ; |
17670 | char *kwnames[] = { | |
17671 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17672 | }; | |
17673 | ||
8edf1c75 | 17674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
17675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17677 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17679 | arg3 = (int) SWIG_AsInt(obj2); | |
17680 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17681 | if (obj3) { |
17682 | { | |
17683 | arg4 = &temp4; | |
17684 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17685 | } | |
17686 | } | |
17687 | if (obj4) { | |
17688 | { | |
17689 | arg5 = &temp5; | |
17690 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17691 | } | |
17692 | } | |
8edf1c75 | 17693 | if (obj5) { |
2f4c0a16 RD |
17694 | arg6 = (long) SWIG_AsLong(obj5); |
17695 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17696 | } |
d14a1e28 RD |
17697 | if (obj6) { |
17698 | { | |
17699 | arg7 = wxString_in_helper(obj6); | |
17700 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17701 | temp7 = True; |
d14a1e28 RD |
17702 | } |
17703 | } | |
17704 | { | |
17705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17706 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17707 | ||
17708 | wxPyEndAllowThreads(__tstate); | |
17709 | if (PyErr_Occurred()) SWIG_fail; | |
17710 | } | |
4f89f6a3 RD |
17711 | { |
17712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17713 | } | |
d14a1e28 RD |
17714 | { |
17715 | if (temp7) | |
17716 | delete arg7; | |
17717 | } | |
17718 | return resultobj; | |
17719 | fail: | |
17720 | { | |
17721 | if (temp7) | |
17722 | delete arg7; | |
17723 | } | |
17724 | return NULL; | |
17725 | } | |
17726 | ||
17727 | ||
17728 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17729 | PyObject *resultobj; | |
17730 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17731 | int arg2 ; |
17732 | int arg3 ; | |
d14a1e28 RD |
17733 | wxToolBarToolBase *result; |
17734 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17735 | PyObject * obj1 = 0 ; |
17736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17737 | char *kwnames[] = { |
17738 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17739 | }; | |
17740 | ||
8edf1c75 | 17741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17744 | arg2 = (int) SWIG_AsInt(obj1); | |
17745 | if (PyErr_Occurred()) SWIG_fail; | |
17746 | arg3 = (int) SWIG_AsInt(obj2); | |
17747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17748 | { |
17749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17750 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17751 | ||
17752 | wxPyEndAllowThreads(__tstate); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
17754 | } | |
17755 | { | |
17756 | resultobj = wxPyMake_wxObject(result); | |
17757 | } | |
17758 | return resultobj; | |
17759 | fail: | |
17760 | return NULL; | |
17761 | } | |
17762 | ||
17763 | ||
17764 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17765 | PyObject *obj; | |
17766 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17767 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17768 | Py_INCREF(obj); | |
17769 | return Py_BuildValue((char *)""); | |
17770 | } | |
2f4c0a16 | 17771 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
17772 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17773 | return 1; | |
17774 | } | |
17775 | ||
17776 | ||
17777 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17778 | PyObject *pyobj; | |
17779 | ||
17780 | { | |
17781 | #if wxUSE_UNICODE | |
17782 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17783 | #else | |
17784 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17785 | #endif | |
17786 | } | |
17787 | return pyobj; | |
17788 | } | |
17789 | ||
17790 | ||
d14a1e28 RD |
17791 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17792 | PyObject *resultobj; | |
17793 | wxColour const &arg1_defvalue = wxNullColour ; | |
17794 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17795 | wxColour const &arg2_defvalue = wxNullColour ; | |
17796 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17797 | wxFont const &arg3_defvalue = wxNullFont ; | |
17798 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17799 | wxListItemAttr *result; | |
17800 | wxColour temp1 ; | |
17801 | wxColour temp2 ; | |
17802 | PyObject * obj0 = 0 ; | |
17803 | PyObject * obj1 = 0 ; | |
17804 | PyObject * obj2 = 0 ; | |
17805 | char *kwnames[] = { | |
17806 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17807 | }; | |
17808 | ||
17809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17810 | if (obj0) { | |
17811 | { | |
17812 | arg1 = &temp1; | |
17813 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17814 | } | |
17815 | } | |
17816 | if (obj1) { | |
17817 | { | |
17818 | arg2 = &temp2; | |
17819 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17820 | } | |
17821 | } | |
17822 | if (obj2) { | |
2f4c0a16 RD |
17823 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
17824 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17825 | SWIG_fail; | |
d14a1e28 | 17826 | if (arg3 == NULL) { |
2f4c0a16 RD |
17827 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17828 | SWIG_fail; | |
d14a1e28 RD |
17829 | } |
17830 | } | |
17831 | { | |
17832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17833 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17834 | ||
17835 | wxPyEndAllowThreads(__tstate); | |
17836 | if (PyErr_Occurred()) SWIG_fail; | |
17837 | } | |
2f4c0a16 | 17838 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
17839 | return resultobj; |
17840 | fail: | |
17841 | return NULL; | |
17842 | } | |
17843 | ||
17844 | ||
17845 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17846 | PyObject *resultobj; | |
17847 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17848 | wxColour *arg2 = 0 ; | |
17849 | wxColour temp2 ; | |
17850 | PyObject * obj0 = 0 ; | |
17851 | PyObject * obj1 = 0 ; | |
17852 | char *kwnames[] = { | |
17853 | (char *) "self",(char *) "colText", NULL | |
17854 | }; | |
17855 | ||
17856 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17857 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17858 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17859 | { |
17860 | arg2 = &temp2; | |
17861 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17862 | } | |
17863 | { | |
17864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17865 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17866 | ||
17867 | wxPyEndAllowThreads(__tstate); | |
17868 | if (PyErr_Occurred()) SWIG_fail; | |
17869 | } | |
17870 | Py_INCREF(Py_None); resultobj = Py_None; | |
17871 | return resultobj; | |
17872 | fail: | |
17873 | return NULL; | |
17874 | } | |
17875 | ||
17876 | ||
17877 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17878 | PyObject *resultobj; | |
17879 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17880 | wxColour *arg2 = 0 ; | |
17881 | wxColour temp2 ; | |
17882 | PyObject * obj0 = 0 ; | |
17883 | PyObject * obj1 = 0 ; | |
17884 | char *kwnames[] = { | |
17885 | (char *) "self",(char *) "colBack", NULL | |
17886 | }; | |
17887 | ||
17888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17891 | { |
17892 | arg2 = &temp2; | |
17893 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17894 | } | |
17895 | { | |
17896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17897 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17898 | ||
17899 | wxPyEndAllowThreads(__tstate); | |
17900 | if (PyErr_Occurred()) SWIG_fail; | |
17901 | } | |
17902 | Py_INCREF(Py_None); resultobj = Py_None; | |
17903 | return resultobj; | |
17904 | fail: | |
17905 | return NULL; | |
17906 | } | |
17907 | ||
17908 | ||
17909 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17910 | PyObject *resultobj; | |
17911 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17912 | wxFont *arg2 = 0 ; | |
17913 | PyObject * obj0 = 0 ; | |
17914 | PyObject * obj1 = 0 ; | |
17915 | char *kwnames[] = { | |
17916 | (char *) "self",(char *) "font", NULL | |
17917 | }; | |
17918 | ||
17919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17922 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17923 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17924 | SWIG_fail; | |
d14a1e28 | 17925 | if (arg2 == NULL) { |
2f4c0a16 RD |
17926 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17927 | SWIG_fail; | |
d14a1e28 RD |
17928 | } |
17929 | { | |
17930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17931 | (arg1)->SetFont((wxFont const &)*arg2); | |
17932 | ||
17933 | wxPyEndAllowThreads(__tstate); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
17935 | } | |
17936 | Py_INCREF(Py_None); resultobj = Py_None; | |
17937 | return resultobj; | |
17938 | fail: | |
17939 | return NULL; | |
17940 | } | |
17941 | ||
17942 | ||
17943 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17944 | PyObject *resultobj; | |
17945 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17946 | bool result; | |
17947 | PyObject * obj0 = 0 ; | |
17948 | char *kwnames[] = { | |
17949 | (char *) "self", NULL | |
17950 | }; | |
17951 | ||
17952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17955 | { |
17956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17957 | result = (bool)(arg1)->HasTextColour(); | |
17958 | ||
17959 | wxPyEndAllowThreads(__tstate); | |
17960 | if (PyErr_Occurred()) SWIG_fail; | |
17961 | } | |
4f89f6a3 RD |
17962 | { |
17963 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17964 | } | |
d14a1e28 RD |
17965 | return resultobj; |
17966 | fail: | |
17967 | return NULL; | |
17968 | } | |
17969 | ||
17970 | ||
17971 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17972 | PyObject *resultobj; | |
17973 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17974 | bool result; | |
17975 | PyObject * obj0 = 0 ; | |
17976 | char *kwnames[] = { | |
17977 | (char *) "self", NULL | |
17978 | }; | |
17979 | ||
17980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17983 | { |
17984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17985 | result = (bool)(arg1)->HasBackgroundColour(); | |
17986 | ||
17987 | wxPyEndAllowThreads(__tstate); | |
17988 | if (PyErr_Occurred()) SWIG_fail; | |
17989 | } | |
4f89f6a3 RD |
17990 | { |
17991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17992 | } | |
d14a1e28 RD |
17993 | return resultobj; |
17994 | fail: | |
17995 | return NULL; | |
17996 | } | |
17997 | ||
17998 | ||
17999 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18000 | PyObject *resultobj; | |
18001 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18002 | bool result; | |
18003 | PyObject * obj0 = 0 ; | |
18004 | char *kwnames[] = { | |
18005 | (char *) "self", NULL | |
18006 | }; | |
18007 | ||
18008 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18009 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18010 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18011 | { |
18012 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18013 | result = (bool)(arg1)->HasFont(); | |
18014 | ||
18015 | wxPyEndAllowThreads(__tstate); | |
18016 | if (PyErr_Occurred()) SWIG_fail; | |
18017 | } | |
4f89f6a3 RD |
18018 | { |
18019 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18020 | } | |
d14a1e28 RD |
18021 | return resultobj; |
18022 | fail: | |
18023 | return NULL; | |
18024 | } | |
18025 | ||
18026 | ||
18027 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18028 | PyObject *resultobj; | |
18029 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18030 | wxColour result; | |
18031 | PyObject * obj0 = 0 ; | |
18032 | char *kwnames[] = { | |
18033 | (char *) "self", NULL | |
18034 | }; | |
18035 | ||
18036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18039 | { |
18040 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18041 | result = (arg1)->GetTextColour(); | |
18042 | ||
18043 | wxPyEndAllowThreads(__tstate); | |
18044 | if (PyErr_Occurred()) SWIG_fail; | |
18045 | } | |
18046 | { | |
18047 | wxColour * resultptr; | |
18048 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18049 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18050 | } |
18051 | return resultobj; | |
18052 | fail: | |
18053 | return NULL; | |
18054 | } | |
18055 | ||
18056 | ||
18057 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18058 | PyObject *resultobj; | |
18059 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18060 | wxColour result; | |
18061 | PyObject * obj0 = 0 ; | |
18062 | char *kwnames[] = { | |
18063 | (char *) "self", NULL | |
18064 | }; | |
18065 | ||
18066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18069 | { |
18070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18071 | result = (arg1)->GetBackgroundColour(); | |
18072 | ||
18073 | wxPyEndAllowThreads(__tstate); | |
18074 | if (PyErr_Occurred()) SWIG_fail; | |
18075 | } | |
18076 | { | |
18077 | wxColour * resultptr; | |
18078 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18079 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18080 | } |
18081 | return resultobj; | |
18082 | fail: | |
18083 | return NULL; | |
18084 | } | |
18085 | ||
18086 | ||
18087 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18088 | PyObject *resultobj; | |
18089 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18090 | wxFont result; | |
18091 | PyObject * obj0 = 0 ; | |
18092 | char *kwnames[] = { | |
18093 | (char *) "self", NULL | |
18094 | }; | |
18095 | ||
18096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18099 | { |
18100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18101 | result = (arg1)->GetFont(); | |
18102 | ||
18103 | wxPyEndAllowThreads(__tstate); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
18105 | } | |
18106 | { | |
18107 | wxFont * resultptr; | |
18108 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 18109 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18110 | } |
18111 | return resultobj; | |
18112 | fail: | |
18113 | return NULL; | |
18114 | } | |
18115 | ||
18116 | ||
18117 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18118 | PyObject *resultobj; | |
18119 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18120 | PyObject * obj0 = 0 ; | |
18121 | char *kwnames[] = { | |
18122 | (char *) "self", NULL | |
18123 | }; | |
18124 | ||
18125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18128 | { |
18129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18130 | wxListItemAttr_Destroy(arg1); | |
18131 | ||
18132 | wxPyEndAllowThreads(__tstate); | |
18133 | if (PyErr_Occurred()) SWIG_fail; | |
18134 | } | |
18135 | Py_INCREF(Py_None); resultobj = Py_None; | |
18136 | return resultobj; | |
18137 | fail: | |
18138 | return NULL; | |
18139 | } | |
18140 | ||
18141 | ||
18142 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18143 | PyObject *obj; | |
18144 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18145 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18146 | Py_INCREF(obj); | |
18147 | return Py_BuildValue((char *)""); | |
18148 | } | |
18149 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18150 | PyObject *resultobj; | |
18151 | wxListItem *result; | |
18152 | char *kwnames[] = { | |
18153 | NULL | |
18154 | }; | |
18155 | ||
18156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18157 | { | |
18158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18159 | result = (wxListItem *)new wxListItem(); | |
18160 | ||
18161 | wxPyEndAllowThreads(__tstate); | |
18162 | if (PyErr_Occurred()) SWIG_fail; | |
18163 | } | |
18164 | { | |
18165 | resultobj = wxPyMake_wxObject(result); | |
18166 | } | |
18167 | return resultobj; | |
18168 | fail: | |
18169 | return NULL; | |
18170 | } | |
18171 | ||
18172 | ||
18173 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18174 | PyObject *resultobj; | |
18175 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18176 | PyObject * obj0 = 0 ; | |
18177 | char *kwnames[] = { | |
18178 | (char *) "self", NULL | |
18179 | }; | |
18180 | ||
18181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18184 | { |
18185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18186 | delete arg1; | |
18187 | ||
18188 | wxPyEndAllowThreads(__tstate); | |
18189 | if (PyErr_Occurred()) SWIG_fail; | |
18190 | } | |
18191 | Py_INCREF(Py_None); resultobj = Py_None; | |
18192 | return resultobj; | |
18193 | fail: | |
18194 | return NULL; | |
18195 | } | |
18196 | ||
18197 | ||
18198 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18199 | PyObject *resultobj; | |
18200 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18201 | PyObject * obj0 = 0 ; | |
18202 | char *kwnames[] = { | |
18203 | (char *) "self", NULL | |
18204 | }; | |
18205 | ||
18206 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18207 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18208 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18209 | { |
18210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18211 | (arg1)->Clear(); | |
18212 | ||
18213 | wxPyEndAllowThreads(__tstate); | |
18214 | if (PyErr_Occurred()) SWIG_fail; | |
18215 | } | |
18216 | Py_INCREF(Py_None); resultobj = Py_None; | |
18217 | return resultobj; | |
18218 | fail: | |
18219 | return NULL; | |
18220 | } | |
18221 | ||
18222 | ||
18223 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18224 | PyObject *resultobj; | |
18225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18226 | PyObject * obj0 = 0 ; | |
18227 | char *kwnames[] = { | |
18228 | (char *) "self", NULL | |
18229 | }; | |
18230 | ||
18231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18234 | { |
18235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18236 | (arg1)->ClearAttributes(); | |
18237 | ||
18238 | wxPyEndAllowThreads(__tstate); | |
18239 | if (PyErr_Occurred()) SWIG_fail; | |
18240 | } | |
18241 | Py_INCREF(Py_None); resultobj = Py_None; | |
18242 | return resultobj; | |
18243 | fail: | |
18244 | return NULL; | |
18245 | } | |
18246 | ||
18247 | ||
18248 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18249 | PyObject *resultobj; | |
18250 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18251 | long arg2 ; | |
18252 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18253 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18254 | char *kwnames[] = { |
18255 | (char *) "self",(char *) "mask", NULL | |
18256 | }; | |
18257 | ||
8edf1c75 | 18258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18261 | arg2 = (long) SWIG_AsLong(obj1); | |
18262 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18263 | { |
18264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18265 | (arg1)->SetMask(arg2); | |
18266 | ||
18267 | wxPyEndAllowThreads(__tstate); | |
18268 | if (PyErr_Occurred()) SWIG_fail; | |
18269 | } | |
18270 | Py_INCREF(Py_None); resultobj = Py_None; | |
18271 | return resultobj; | |
18272 | fail: | |
18273 | return NULL; | |
18274 | } | |
18275 | ||
18276 | ||
18277 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18278 | PyObject *resultobj; | |
18279 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18280 | long arg2 ; | |
18281 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18282 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18283 | char *kwnames[] = { |
18284 | (char *) "self",(char *) "id", NULL | |
18285 | }; | |
18286 | ||
8edf1c75 | 18287 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18288 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18289 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18290 | arg2 = (long) SWIG_AsLong(obj1); | |
18291 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18292 | { |
18293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18294 | (arg1)->SetId(arg2); | |
18295 | ||
18296 | wxPyEndAllowThreads(__tstate); | |
18297 | if (PyErr_Occurred()) SWIG_fail; | |
18298 | } | |
18299 | Py_INCREF(Py_None); resultobj = Py_None; | |
18300 | return resultobj; | |
18301 | fail: | |
18302 | return NULL; | |
18303 | } | |
18304 | ||
18305 | ||
18306 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18307 | PyObject *resultobj; | |
18308 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18309 | int arg2 ; | |
18310 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18311 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18312 | char *kwnames[] = { |
18313 | (char *) "self",(char *) "col", NULL | |
18314 | }; | |
18315 | ||
8edf1c75 | 18316 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18317 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18318 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18319 | arg2 = (int) SWIG_AsInt(obj1); | |
18320 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18321 | { |
18322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18323 | (arg1)->SetColumn(arg2); | |
18324 | ||
18325 | wxPyEndAllowThreads(__tstate); | |
18326 | if (PyErr_Occurred()) SWIG_fail; | |
18327 | } | |
18328 | Py_INCREF(Py_None); resultobj = Py_None; | |
18329 | return resultobj; | |
18330 | fail: | |
18331 | return NULL; | |
18332 | } | |
18333 | ||
18334 | ||
18335 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18336 | PyObject *resultobj; | |
18337 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18338 | long arg2 ; | |
18339 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18340 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18341 | char *kwnames[] = { |
18342 | (char *) "self",(char *) "state", NULL | |
18343 | }; | |
18344 | ||
8edf1c75 | 18345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18348 | arg2 = (long) SWIG_AsLong(obj1); | |
18349 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18350 | { |
18351 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18352 | (arg1)->SetState(arg2); | |
18353 | ||
18354 | wxPyEndAllowThreads(__tstate); | |
18355 | if (PyErr_Occurred()) SWIG_fail; | |
18356 | } | |
18357 | Py_INCREF(Py_None); resultobj = Py_None; | |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
18364 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18365 | PyObject *resultobj; | |
18366 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18367 | long arg2 ; | |
18368 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18369 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18370 | char *kwnames[] = { |
18371 | (char *) "self",(char *) "stateMask", NULL | |
18372 | }; | |
18373 | ||
8edf1c75 | 18374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18377 | arg2 = (long) SWIG_AsLong(obj1); | |
18378 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18379 | { |
18380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18381 | (arg1)->SetStateMask(arg2); | |
18382 | ||
18383 | wxPyEndAllowThreads(__tstate); | |
18384 | if (PyErr_Occurred()) SWIG_fail; | |
18385 | } | |
18386 | Py_INCREF(Py_None); resultobj = Py_None; | |
18387 | return resultobj; | |
18388 | fail: | |
18389 | return NULL; | |
18390 | } | |
18391 | ||
18392 | ||
18393 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18394 | PyObject *resultobj; | |
18395 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18396 | wxString *arg2 = 0 ; | |
423f194a | 18397 | bool temp2 = False ; |
d14a1e28 RD |
18398 | PyObject * obj0 = 0 ; |
18399 | PyObject * obj1 = 0 ; | |
18400 | char *kwnames[] = { | |
18401 | (char *) "self",(char *) "text", NULL | |
18402 | }; | |
18403 | ||
18404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18407 | { |
18408 | arg2 = wxString_in_helper(obj1); | |
18409 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18410 | temp2 = True; |
d14a1e28 RD |
18411 | } |
18412 | { | |
18413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18414 | (arg1)->SetText((wxString const &)*arg2); | |
18415 | ||
18416 | wxPyEndAllowThreads(__tstate); | |
18417 | if (PyErr_Occurred()) SWIG_fail; | |
18418 | } | |
18419 | Py_INCREF(Py_None); resultobj = Py_None; | |
18420 | { | |
18421 | if (temp2) | |
18422 | delete arg2; | |
18423 | } | |
18424 | return resultobj; | |
18425 | fail: | |
18426 | { | |
18427 | if (temp2) | |
18428 | delete arg2; | |
18429 | } | |
18430 | return NULL; | |
18431 | } | |
18432 | ||
18433 | ||
18434 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18435 | PyObject *resultobj; | |
18436 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18437 | int arg2 ; | |
18438 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18439 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18440 | char *kwnames[] = { |
18441 | (char *) "self",(char *) "image", NULL | |
18442 | }; | |
18443 | ||
8edf1c75 | 18444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18447 | arg2 = (int) SWIG_AsInt(obj1); | |
18448 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18449 | { |
18450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18451 | (arg1)->SetImage(arg2); | |
18452 | ||
18453 | wxPyEndAllowThreads(__tstate); | |
18454 | if (PyErr_Occurred()) SWIG_fail; | |
18455 | } | |
18456 | Py_INCREF(Py_None); resultobj = Py_None; | |
18457 | return resultobj; | |
18458 | fail: | |
18459 | return NULL; | |
18460 | } | |
18461 | ||
18462 | ||
18463 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18464 | PyObject *resultobj; | |
18465 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18466 | long arg2 ; | |
18467 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18468 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18469 | char *kwnames[] = { |
18470 | (char *) "self",(char *) "data", NULL | |
18471 | }; | |
18472 | ||
8edf1c75 | 18473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18476 | arg2 = (long) SWIG_AsLong(obj1); | |
18477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18478 | { |
18479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18480 | (arg1)->SetData(arg2); | |
18481 | ||
18482 | wxPyEndAllowThreads(__tstate); | |
18483 | if (PyErr_Occurred()) SWIG_fail; | |
18484 | } | |
18485 | Py_INCREF(Py_None); resultobj = Py_None; | |
18486 | return resultobj; | |
18487 | fail: | |
18488 | return NULL; | |
18489 | } | |
18490 | ||
18491 | ||
18492 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18493 | PyObject *resultobj; | |
18494 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18495 | int arg2 ; | |
18496 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18497 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18498 | char *kwnames[] = { |
18499 | (char *) "self",(char *) "width", NULL | |
18500 | }; | |
18501 | ||
8edf1c75 | 18502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18505 | arg2 = (int) SWIG_AsInt(obj1); | |
18506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18507 | { |
18508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18509 | (arg1)->SetWidth(arg2); | |
18510 | ||
18511 | wxPyEndAllowThreads(__tstate); | |
18512 | if (PyErr_Occurred()) SWIG_fail; | |
18513 | } | |
18514 | Py_INCREF(Py_None); resultobj = Py_None; | |
18515 | return resultobj; | |
18516 | fail: | |
18517 | return NULL; | |
18518 | } | |
18519 | ||
18520 | ||
18521 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18522 | PyObject *resultobj; | |
18523 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18524 | int arg2 ; | |
18525 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18526 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18527 | char *kwnames[] = { |
18528 | (char *) "self",(char *) "align", NULL | |
18529 | }; | |
18530 | ||
8edf1c75 | 18531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18534 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
18535 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18536 | { |
18537 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18538 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18539 | ||
18540 | wxPyEndAllowThreads(__tstate); | |
18541 | if (PyErr_Occurred()) SWIG_fail; | |
18542 | } | |
18543 | Py_INCREF(Py_None); resultobj = Py_None; | |
18544 | return resultobj; | |
18545 | fail: | |
18546 | return NULL; | |
18547 | } | |
18548 | ||
18549 | ||
18550 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18551 | PyObject *resultobj; | |
18552 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18553 | wxColour *arg2 = 0 ; | |
18554 | wxColour temp2 ; | |
18555 | PyObject * obj0 = 0 ; | |
18556 | PyObject * obj1 = 0 ; | |
18557 | char *kwnames[] = { | |
18558 | (char *) "self",(char *) "colText", NULL | |
18559 | }; | |
18560 | ||
18561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18564 | { |
18565 | arg2 = &temp2; | |
18566 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18567 | } | |
18568 | { | |
18569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18570 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18571 | ||
18572 | wxPyEndAllowThreads(__tstate); | |
18573 | if (PyErr_Occurred()) SWIG_fail; | |
18574 | } | |
18575 | Py_INCREF(Py_None); resultobj = Py_None; | |
18576 | return resultobj; | |
18577 | fail: | |
18578 | return NULL; | |
18579 | } | |
18580 | ||
18581 | ||
18582 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18583 | PyObject *resultobj; | |
18584 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18585 | wxColour *arg2 = 0 ; | |
18586 | wxColour temp2 ; | |
18587 | PyObject * obj0 = 0 ; | |
18588 | PyObject * obj1 = 0 ; | |
18589 | char *kwnames[] = { | |
18590 | (char *) "self",(char *) "colBack", NULL | |
18591 | }; | |
18592 | ||
18593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18596 | { |
18597 | arg2 = &temp2; | |
18598 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18599 | } | |
18600 | { | |
18601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18602 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18603 | ||
18604 | wxPyEndAllowThreads(__tstate); | |
18605 | if (PyErr_Occurred()) SWIG_fail; | |
18606 | } | |
18607 | Py_INCREF(Py_None); resultobj = Py_None; | |
18608 | return resultobj; | |
18609 | fail: | |
18610 | return NULL; | |
18611 | } | |
18612 | ||
18613 | ||
18614 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18615 | PyObject *resultobj; | |
18616 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18617 | wxFont *arg2 = 0 ; | |
18618 | PyObject * obj0 = 0 ; | |
18619 | PyObject * obj1 = 0 ; | |
18620 | char *kwnames[] = { | |
18621 | (char *) "self",(char *) "font", NULL | |
18622 | }; | |
18623 | ||
18624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18629 | SWIG_fail; | |
d14a1e28 | 18630 | if (arg2 == NULL) { |
2f4c0a16 RD |
18631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18632 | SWIG_fail; | |
d14a1e28 RD |
18633 | } |
18634 | { | |
18635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18636 | (arg1)->SetFont((wxFont const &)*arg2); | |
18637 | ||
18638 | wxPyEndAllowThreads(__tstate); | |
18639 | if (PyErr_Occurred()) SWIG_fail; | |
18640 | } | |
18641 | Py_INCREF(Py_None); resultobj = Py_None; | |
18642 | return resultobj; | |
18643 | fail: | |
18644 | return NULL; | |
18645 | } | |
18646 | ||
18647 | ||
18648 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18649 | PyObject *resultobj; | |
18650 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18651 | long result; | |
18652 | PyObject * obj0 = 0 ; | |
18653 | char *kwnames[] = { | |
18654 | (char *) "self", NULL | |
18655 | }; | |
18656 | ||
18657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18660 | { |
18661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18662 | result = (long)(arg1)->GetMask(); | |
18663 | ||
18664 | wxPyEndAllowThreads(__tstate); | |
18665 | if (PyErr_Occurred()) SWIG_fail; | |
18666 | } | |
2f4c0a16 | 18667 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18668 | return resultobj; |
18669 | fail: | |
18670 | return NULL; | |
18671 | } | |
18672 | ||
18673 | ||
18674 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18675 | PyObject *resultobj; | |
18676 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18677 | long result; | |
18678 | PyObject * obj0 = 0 ; | |
18679 | char *kwnames[] = { | |
18680 | (char *) "self", NULL | |
18681 | }; | |
18682 | ||
18683 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18684 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18685 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18686 | { |
18687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18688 | result = (long)(arg1)->GetId(); | |
18689 | ||
18690 | wxPyEndAllowThreads(__tstate); | |
18691 | if (PyErr_Occurred()) SWIG_fail; | |
18692 | } | |
2f4c0a16 | 18693 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18694 | return resultobj; |
18695 | fail: | |
18696 | return NULL; | |
18697 | } | |
18698 | ||
18699 | ||
18700 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18701 | PyObject *resultobj; | |
18702 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18703 | int result; | |
18704 | PyObject * obj0 = 0 ; | |
18705 | char *kwnames[] = { | |
18706 | (char *) "self", NULL | |
18707 | }; | |
18708 | ||
18709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18712 | { |
18713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18714 | result = (int)(arg1)->GetColumn(); | |
18715 | ||
18716 | wxPyEndAllowThreads(__tstate); | |
18717 | if (PyErr_Occurred()) SWIG_fail; | |
18718 | } | |
2f4c0a16 | 18719 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18720 | return resultobj; |
18721 | fail: | |
18722 | return NULL; | |
18723 | } | |
18724 | ||
18725 | ||
18726 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18727 | PyObject *resultobj; | |
18728 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18729 | long result; | |
18730 | PyObject * obj0 = 0 ; | |
18731 | char *kwnames[] = { | |
18732 | (char *) "self", NULL | |
18733 | }; | |
18734 | ||
18735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18738 | { |
18739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18740 | result = (long)(arg1)->GetState(); | |
18741 | ||
18742 | wxPyEndAllowThreads(__tstate); | |
18743 | if (PyErr_Occurred()) SWIG_fail; | |
18744 | } | |
2f4c0a16 | 18745 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18746 | return resultobj; |
18747 | fail: | |
18748 | return NULL; | |
18749 | } | |
18750 | ||
18751 | ||
18752 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18753 | PyObject *resultobj; | |
18754 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18755 | wxString *result; | |
18756 | PyObject * obj0 = 0 ; | |
18757 | char *kwnames[] = { | |
18758 | (char *) "self", NULL | |
18759 | }; | |
18760 | ||
18761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18764 | { |
18765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18766 | { | |
18767 | wxString const &_result_ref = (arg1)->GetText(); | |
18768 | result = (wxString *) &_result_ref; | |
18769 | } | |
18770 | ||
18771 | wxPyEndAllowThreads(__tstate); | |
18772 | if (PyErr_Occurred()) SWIG_fail; | |
18773 | } | |
f0983263 RD |
18774 | { |
18775 | #if wxUSE_UNICODE | |
18776 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18777 | #else | |
18778 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18779 | #endif | |
18780 | } | |
d14a1e28 RD |
18781 | return resultobj; |
18782 | fail: | |
18783 | return NULL; | |
18784 | } | |
18785 | ||
18786 | ||
18787 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18788 | PyObject *resultobj; | |
18789 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18790 | int result; | |
18791 | PyObject * obj0 = 0 ; | |
18792 | char *kwnames[] = { | |
18793 | (char *) "self", NULL | |
18794 | }; | |
18795 | ||
18796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18799 | { |
18800 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18801 | result = (int)(arg1)->GetImage(); | |
18802 | ||
18803 | wxPyEndAllowThreads(__tstate); | |
18804 | if (PyErr_Occurred()) SWIG_fail; | |
18805 | } | |
2f4c0a16 | 18806 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18807 | return resultobj; |
18808 | fail: | |
18809 | return NULL; | |
18810 | } | |
18811 | ||
18812 | ||
18813 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18814 | PyObject *resultobj; | |
18815 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18816 | long result; | |
18817 | PyObject * obj0 = 0 ; | |
18818 | char *kwnames[] = { | |
18819 | (char *) "self", NULL | |
18820 | }; | |
18821 | ||
18822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18825 | { |
18826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18827 | result = (long)(arg1)->GetData(); | |
18828 | ||
18829 | wxPyEndAllowThreads(__tstate); | |
18830 | if (PyErr_Occurred()) SWIG_fail; | |
18831 | } | |
2f4c0a16 | 18832 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18833 | return resultobj; |
18834 | fail: | |
18835 | return NULL; | |
18836 | } | |
18837 | ||
18838 | ||
18839 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18840 | PyObject *resultobj; | |
18841 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18842 | int result; | |
18843 | PyObject * obj0 = 0 ; | |
18844 | char *kwnames[] = { | |
18845 | (char *) "self", NULL | |
18846 | }; | |
18847 | ||
18848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18851 | { |
18852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18853 | result = (int)(arg1)->GetWidth(); | |
18854 | ||
18855 | wxPyEndAllowThreads(__tstate); | |
18856 | if (PyErr_Occurred()) SWIG_fail; | |
18857 | } | |
2f4c0a16 | 18858 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18859 | return resultobj; |
18860 | fail: | |
18861 | return NULL; | |
18862 | } | |
18863 | ||
18864 | ||
18865 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18866 | PyObject *resultobj; | |
18867 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18868 | int result; | |
18869 | PyObject * obj0 = 0 ; | |
18870 | char *kwnames[] = { | |
18871 | (char *) "self", NULL | |
18872 | }; | |
18873 | ||
18874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18877 | { |
18878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18879 | result = (int)(arg1)->GetAlign(); | |
18880 | ||
18881 | wxPyEndAllowThreads(__tstate); | |
18882 | if (PyErr_Occurred()) SWIG_fail; | |
18883 | } | |
2f4c0a16 | 18884 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18885 | return resultobj; |
18886 | fail: | |
18887 | return NULL; | |
18888 | } | |
18889 | ||
18890 | ||
18891 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18892 | PyObject *resultobj; | |
18893 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18894 | wxListItemAttr *result; | |
18895 | PyObject * obj0 = 0 ; | |
18896 | char *kwnames[] = { | |
18897 | (char *) "self", NULL | |
18898 | }; | |
18899 | ||
18900 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18901 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18903 | { |
18904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18905 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18906 | ||
18907 | wxPyEndAllowThreads(__tstate); | |
18908 | if (PyErr_Occurred()) SWIG_fail; | |
18909 | } | |
2f4c0a16 | 18910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
18911 | return resultobj; |
18912 | fail: | |
18913 | return NULL; | |
18914 | } | |
18915 | ||
18916 | ||
18917 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18918 | PyObject *resultobj; | |
18919 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18920 | bool result; | |
18921 | PyObject * obj0 = 0 ; | |
18922 | char *kwnames[] = { | |
18923 | (char *) "self", NULL | |
18924 | }; | |
18925 | ||
18926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18929 | { |
18930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18931 | result = (bool)(arg1)->HasAttributes(); | |
18932 | ||
18933 | wxPyEndAllowThreads(__tstate); | |
18934 | if (PyErr_Occurred()) SWIG_fail; | |
18935 | } | |
4f89f6a3 RD |
18936 | { |
18937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18938 | } | |
d14a1e28 RD |
18939 | return resultobj; |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
18945 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18946 | PyObject *resultobj; | |
18947 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18948 | wxColour result; | |
18949 | PyObject * obj0 = 0 ; | |
18950 | char *kwnames[] = { | |
18951 | (char *) "self", NULL | |
18952 | }; | |
18953 | ||
18954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18957 | { |
18958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18959 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18960 | ||
18961 | wxPyEndAllowThreads(__tstate); | |
18962 | if (PyErr_Occurred()) SWIG_fail; | |
18963 | } | |
18964 | { | |
18965 | wxColour * resultptr; | |
18966 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18968 | } |
18969 | return resultobj; | |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj; | |
18977 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18978 | wxColour result; | |
18979 | PyObject * obj0 = 0 ; | |
18980 | char *kwnames[] = { | |
18981 | (char *) "self", NULL | |
18982 | }; | |
18983 | ||
18984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18987 | { |
18988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18989 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
18990 | ||
18991 | wxPyEndAllowThreads(__tstate); | |
18992 | if (PyErr_Occurred()) SWIG_fail; | |
18993 | } | |
18994 | { | |
18995 | wxColour * resultptr; | |
18996 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18997 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18998 | } |
18999 | return resultobj; | |
19000 | fail: | |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj; | |
19007 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19008 | wxFont result; | |
19009 | PyObject * obj0 = 0 ; | |
19010 | char *kwnames[] = { | |
19011 | (char *) "self", NULL | |
19012 | }; | |
19013 | ||
19014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19017 | { |
19018 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19019 | result = ((wxListItem const *)arg1)->GetFont(); | |
19020 | ||
19021 | wxPyEndAllowThreads(__tstate); | |
19022 | if (PyErr_Occurred()) SWIG_fail; | |
19023 | } | |
19024 | { | |
19025 | wxFont * resultptr; | |
19026 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 19027 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19028 | } |
19029 | return resultobj; | |
19030 | fail: | |
19031 | return NULL; | |
19032 | } | |
19033 | ||
19034 | ||
19035 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19036 | PyObject *resultobj; | |
19037 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19038 | long arg2 ; | |
19039 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19041 | char *kwnames[] = { |
19042 | (char *) "self",(char *) "m_mask", NULL | |
19043 | }; | |
19044 | ||
8edf1c75 | 19045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19048 | arg2 = (long) SWIG_AsLong(obj1); | |
19049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19050 | if (arg1) (arg1)->m_mask = arg2; |
19051 | ||
19052 | Py_INCREF(Py_None); resultobj = Py_None; | |
19053 | return resultobj; | |
19054 | fail: | |
19055 | return NULL; | |
19056 | } | |
19057 | ||
19058 | ||
19059 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19060 | PyObject *resultobj; | |
19061 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19062 | long result; | |
19063 | PyObject * obj0 = 0 ; | |
19064 | char *kwnames[] = { | |
19065 | (char *) "self", NULL | |
19066 | }; | |
19067 | ||
19068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19071 | result = (long) ((arg1)->m_mask); |
19072 | ||
2f4c0a16 | 19073 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19074 | return resultobj; |
19075 | fail: | |
19076 | return NULL; | |
19077 | } | |
19078 | ||
19079 | ||
19080 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19081 | PyObject *resultobj; | |
19082 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19083 | long arg2 ; | |
19084 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19085 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19086 | char *kwnames[] = { |
19087 | (char *) "self",(char *) "m_itemId", NULL | |
19088 | }; | |
19089 | ||
8edf1c75 | 19090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19093 | arg2 = (long) SWIG_AsLong(obj1); | |
19094 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19095 | if (arg1) (arg1)->m_itemId = arg2; |
19096 | ||
19097 | Py_INCREF(Py_None); resultobj = Py_None; | |
19098 | return resultobj; | |
19099 | fail: | |
19100 | return NULL; | |
19101 | } | |
19102 | ||
19103 | ||
19104 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19105 | PyObject *resultobj; | |
19106 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19107 | long result; | |
19108 | PyObject * obj0 = 0 ; | |
19109 | char *kwnames[] = { | |
19110 | (char *) "self", NULL | |
19111 | }; | |
19112 | ||
19113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19116 | result = (long) ((arg1)->m_itemId); |
19117 | ||
2f4c0a16 | 19118 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19119 | return resultobj; |
19120 | fail: | |
19121 | return NULL; | |
19122 | } | |
19123 | ||
19124 | ||
19125 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19126 | PyObject *resultobj; | |
19127 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19128 | int arg2 ; | |
19129 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19130 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19131 | char *kwnames[] = { |
19132 | (char *) "self",(char *) "m_col", NULL | |
19133 | }; | |
19134 | ||
8edf1c75 | 19135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19138 | arg2 = (int) SWIG_AsInt(obj1); | |
19139 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19140 | if (arg1) (arg1)->m_col = arg2; |
19141 | ||
19142 | Py_INCREF(Py_None); resultobj = Py_None; | |
19143 | return resultobj; | |
19144 | fail: | |
19145 | return NULL; | |
19146 | } | |
19147 | ||
19148 | ||
19149 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19150 | PyObject *resultobj; | |
19151 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19152 | int result; | |
19153 | PyObject * obj0 = 0 ; | |
19154 | char *kwnames[] = { | |
19155 | (char *) "self", NULL | |
19156 | }; | |
19157 | ||
19158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19161 | result = (int) ((arg1)->m_col); |
19162 | ||
2f4c0a16 | 19163 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19164 | return resultobj; |
19165 | fail: | |
19166 | return NULL; | |
19167 | } | |
19168 | ||
19169 | ||
19170 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19171 | PyObject *resultobj; | |
19172 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19173 | long arg2 ; | |
19174 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19175 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19176 | char *kwnames[] = { |
19177 | (char *) "self",(char *) "m_state", NULL | |
19178 | }; | |
19179 | ||
8edf1c75 | 19180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19183 | arg2 = (long) SWIG_AsLong(obj1); | |
19184 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19185 | if (arg1) (arg1)->m_state = arg2; |
19186 | ||
19187 | Py_INCREF(Py_None); resultobj = Py_None; | |
19188 | return resultobj; | |
19189 | fail: | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
19194 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19195 | PyObject *resultobj; | |
19196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19197 | long result; | |
19198 | PyObject * obj0 = 0 ; | |
19199 | char *kwnames[] = { | |
19200 | (char *) "self", NULL | |
19201 | }; | |
19202 | ||
19203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19206 | result = (long) ((arg1)->m_state); |
19207 | ||
2f4c0a16 | 19208 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19209 | return resultobj; |
19210 | fail: | |
19211 | return NULL; | |
19212 | } | |
19213 | ||
19214 | ||
19215 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19216 | PyObject *resultobj; | |
19217 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19218 | long arg2 ; | |
19219 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19220 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19221 | char *kwnames[] = { |
19222 | (char *) "self",(char *) "m_stateMask", NULL | |
19223 | }; | |
19224 | ||
8edf1c75 | 19225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19228 | arg2 = (long) SWIG_AsLong(obj1); | |
19229 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19230 | if (arg1) (arg1)->m_stateMask = arg2; |
19231 | ||
19232 | Py_INCREF(Py_None); resultobj = Py_None; | |
19233 | return resultobj; | |
19234 | fail: | |
19235 | return NULL; | |
19236 | } | |
19237 | ||
19238 | ||
19239 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19240 | PyObject *resultobj; | |
19241 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19242 | long result; | |
19243 | PyObject * obj0 = 0 ; | |
19244 | char *kwnames[] = { | |
19245 | (char *) "self", NULL | |
19246 | }; | |
19247 | ||
19248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19251 | result = (long) ((arg1)->m_stateMask); |
19252 | ||
2f4c0a16 | 19253 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19254 | return resultobj; |
19255 | fail: | |
19256 | return NULL; | |
19257 | } | |
19258 | ||
19259 | ||
19260 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19261 | PyObject *resultobj; | |
19262 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19263 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 19264 | bool temp2 = False ; |
d14a1e28 RD |
19265 | PyObject * obj0 = 0 ; |
19266 | PyObject * obj1 = 0 ; | |
19267 | char *kwnames[] = { | |
19268 | (char *) "self",(char *) "m_text", NULL | |
19269 | }; | |
19270 | ||
19271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
19274 | { |
19275 | arg2 = wxString_in_helper(obj1); | |
19276 | if (arg2 == NULL) SWIG_fail; | |
19277 | temp2 = True; | |
19278 | } | |
d03fd34d | 19279 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19280 | |
19281 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
19282 | { |
19283 | if (temp2) | |
19284 | delete arg2; | |
19285 | } | |
d14a1e28 RD |
19286 | return resultobj; |
19287 | fail: | |
f775c30d RD |
19288 | { |
19289 | if (temp2) | |
19290 | delete arg2; | |
19291 | } | |
d14a1e28 RD |
19292 | return NULL; |
19293 | } | |
19294 | ||
19295 | ||
19296 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19297 | PyObject *resultobj; | |
19298 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19299 | wxString *result; |
d14a1e28 RD |
19300 | PyObject * obj0 = 0 ; |
19301 | char *kwnames[] = { | |
19302 | (char *) "self", NULL | |
19303 | }; | |
19304 | ||
19305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 19308 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
19309 | |
19310 | { | |
19311 | #if wxUSE_UNICODE | |
d03fd34d | 19312 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 19313 | #else |
d03fd34d | 19314 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
19315 | #endif |
19316 | } | |
19317 | return resultobj; | |
19318 | fail: | |
19319 | return NULL; | |
19320 | } | |
19321 | ||
19322 | ||
19323 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19324 | PyObject *resultobj; | |
19325 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19326 | int arg2 ; | |
19327 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19328 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19329 | char *kwnames[] = { |
19330 | (char *) "self",(char *) "m_image", NULL | |
19331 | }; | |
19332 | ||
8edf1c75 | 19333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19336 | arg2 = (int) SWIG_AsInt(obj1); | |
19337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19338 | if (arg1) (arg1)->m_image = arg2; |
19339 | ||
19340 | Py_INCREF(Py_None); resultobj = Py_None; | |
19341 | return resultobj; | |
19342 | fail: | |
19343 | return NULL; | |
19344 | } | |
19345 | ||
19346 | ||
19347 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19348 | PyObject *resultobj; | |
19349 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19350 | int result; | |
19351 | PyObject * obj0 = 0 ; | |
19352 | char *kwnames[] = { | |
19353 | (char *) "self", NULL | |
19354 | }; | |
19355 | ||
19356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19359 | result = (int) ((arg1)->m_image); |
19360 | ||
2f4c0a16 | 19361 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19362 | return resultobj; |
19363 | fail: | |
19364 | return NULL; | |
19365 | } | |
19366 | ||
19367 | ||
19368 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19369 | PyObject *resultobj; | |
19370 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19371 | long arg2 ; | |
19372 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19373 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19374 | char *kwnames[] = { |
19375 | (char *) "self",(char *) "m_data", NULL | |
19376 | }; | |
19377 | ||
8edf1c75 | 19378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19381 | arg2 = (long) SWIG_AsLong(obj1); | |
19382 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19383 | if (arg1) (arg1)->m_data = arg2; |
19384 | ||
19385 | Py_INCREF(Py_None); resultobj = Py_None; | |
19386 | return resultobj; | |
19387 | fail: | |
19388 | return NULL; | |
19389 | } | |
19390 | ||
19391 | ||
19392 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19393 | PyObject *resultobj; | |
19394 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19395 | long result; | |
19396 | PyObject * obj0 = 0 ; | |
19397 | char *kwnames[] = { | |
19398 | (char *) "self", NULL | |
19399 | }; | |
19400 | ||
19401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19404 | result = (long) ((arg1)->m_data); |
19405 | ||
2f4c0a16 | 19406 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19407 | return resultobj; |
19408 | fail: | |
19409 | return NULL; | |
19410 | } | |
19411 | ||
19412 | ||
19413 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19414 | PyObject *resultobj; | |
19415 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19416 | int arg2 ; | |
19417 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19418 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19419 | char *kwnames[] = { |
19420 | (char *) "self",(char *) "m_format", NULL | |
19421 | }; | |
19422 | ||
8edf1c75 | 19423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19426 | arg2 = (int) SWIG_AsInt(obj1); | |
19427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19428 | if (arg1) (arg1)->m_format = arg2; |
19429 | ||
19430 | Py_INCREF(Py_None); resultobj = Py_None; | |
19431 | return resultobj; | |
19432 | fail: | |
19433 | return NULL; | |
19434 | } | |
19435 | ||
19436 | ||
19437 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19438 | PyObject *resultobj; | |
19439 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19440 | int result; | |
19441 | PyObject * obj0 = 0 ; | |
19442 | char *kwnames[] = { | |
19443 | (char *) "self", NULL | |
19444 | }; | |
19445 | ||
19446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19449 | result = (int) ((arg1)->m_format); |
19450 | ||
2f4c0a16 | 19451 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19452 | return resultobj; |
19453 | fail: | |
19454 | return NULL; | |
19455 | } | |
19456 | ||
19457 | ||
19458 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19459 | PyObject *resultobj; | |
19460 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19461 | int arg2 ; | |
19462 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19463 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19464 | char *kwnames[] = { |
19465 | (char *) "self",(char *) "m_width", NULL | |
19466 | }; | |
19467 | ||
8edf1c75 | 19468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19471 | arg2 = (int) SWIG_AsInt(obj1); | |
19472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19473 | if (arg1) (arg1)->m_width = arg2; |
19474 | ||
19475 | Py_INCREF(Py_None); resultobj = Py_None; | |
19476 | return resultobj; | |
19477 | fail: | |
19478 | return NULL; | |
19479 | } | |
19480 | ||
19481 | ||
19482 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19483 | PyObject *resultobj; | |
19484 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19485 | int result; | |
19486 | PyObject * obj0 = 0 ; | |
19487 | char *kwnames[] = { | |
19488 | (char *) "self", NULL | |
19489 | }; | |
19490 | ||
19491 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19492 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19493 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19494 | result = (int) ((arg1)->m_width); |
19495 | ||
2f4c0a16 | 19496 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19497 | return resultobj; |
19498 | fail: | |
19499 | return NULL; | |
19500 | } | |
19501 | ||
19502 | ||
19503 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19504 | PyObject *obj; | |
19505 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19506 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19507 | Py_INCREF(obj); | |
19508 | return Py_BuildValue((char *)""); | |
19509 | } | |
19510 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19511 | PyObject *resultobj; | |
19512 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19513 | int arg2 = (int) 0 ; | |
19514 | wxListEvent *result; | |
8edf1c75 RD |
19515 | PyObject * obj0 = 0 ; |
19516 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19517 | char *kwnames[] = { |
19518 | (char *) "commandType",(char *) "id", NULL | |
19519 | }; | |
19520 | ||
8edf1c75 RD |
19521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19522 | if (obj0) { | |
2f4c0a16 RD |
19523 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19524 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19525 | } |
19526 | if (obj1) { | |
2f4c0a16 RD |
19527 | arg2 = (int) SWIG_AsInt(obj1); |
19528 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19529 | } |
d14a1e28 RD |
19530 | { |
19531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19532 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19533 | ||
19534 | wxPyEndAllowThreads(__tstate); | |
19535 | if (PyErr_Occurred()) SWIG_fail; | |
19536 | } | |
2f4c0a16 | 19537 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
19538 | return resultobj; |
19539 | fail: | |
19540 | return NULL; | |
19541 | } | |
19542 | ||
19543 | ||
19544 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19545 | PyObject *resultobj; | |
19546 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19547 | int arg2 ; | |
19548 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19550 | char *kwnames[] = { |
19551 | (char *) "self",(char *) "m_code", NULL | |
19552 | }; | |
19553 | ||
8edf1c75 | 19554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19557 | arg2 = (int) SWIG_AsInt(obj1); | |
19558 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19559 | if (arg1) (arg1)->m_code = arg2; |
19560 | ||
19561 | Py_INCREF(Py_None); resultobj = Py_None; | |
19562 | return resultobj; | |
19563 | fail: | |
19564 | return NULL; | |
19565 | } | |
19566 | ||
19567 | ||
19568 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19569 | PyObject *resultobj; | |
19570 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19571 | int result; | |
19572 | PyObject * obj0 = 0 ; | |
19573 | char *kwnames[] = { | |
19574 | (char *) "self", NULL | |
19575 | }; | |
19576 | ||
19577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19580 | result = (int) ((arg1)->m_code); |
19581 | ||
2f4c0a16 | 19582 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19583 | return resultobj; |
19584 | fail: | |
19585 | return NULL; | |
19586 | } | |
19587 | ||
19588 | ||
19589 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19590 | PyObject *resultobj; | |
19591 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19592 | long arg2 ; | |
19593 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19594 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19595 | char *kwnames[] = { |
19596 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19597 | }; | |
19598 | ||
8edf1c75 | 19599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19602 | arg2 = (long) SWIG_AsLong(obj1); | |
19603 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19604 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19605 | ||
19606 | Py_INCREF(Py_None); resultobj = Py_None; | |
19607 | return resultobj; | |
19608 | fail: | |
19609 | return NULL; | |
19610 | } | |
19611 | ||
19612 | ||
19613 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19614 | PyObject *resultobj; | |
19615 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19616 | long result; | |
19617 | PyObject * obj0 = 0 ; | |
19618 | char *kwnames[] = { | |
19619 | (char *) "self", NULL | |
19620 | }; | |
19621 | ||
19622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19625 | result = (long) ((arg1)->m_oldItemIndex); |
19626 | ||
2f4c0a16 | 19627 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19628 | return resultobj; |
19629 | fail: | |
19630 | return NULL; | |
19631 | } | |
19632 | ||
19633 | ||
19634 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19635 | PyObject *resultobj; | |
19636 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19637 | long arg2 ; | |
19638 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19639 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19640 | char *kwnames[] = { |
19641 | (char *) "self",(char *) "m_itemIndex", NULL | |
19642 | }; | |
19643 | ||
8edf1c75 | 19644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19647 | arg2 = (long) SWIG_AsLong(obj1); | |
19648 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19649 | if (arg1) (arg1)->m_itemIndex = arg2; |
19650 | ||
19651 | Py_INCREF(Py_None); resultobj = Py_None; | |
19652 | return resultobj; | |
19653 | fail: | |
19654 | return NULL; | |
19655 | } | |
19656 | ||
19657 | ||
19658 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19659 | PyObject *resultobj; | |
19660 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19661 | long result; | |
19662 | PyObject * obj0 = 0 ; | |
19663 | char *kwnames[] = { | |
19664 | (char *) "self", NULL | |
19665 | }; | |
19666 | ||
19667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19670 | result = (long) ((arg1)->m_itemIndex); |
19671 | ||
2f4c0a16 | 19672 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19673 | return resultobj; |
19674 | fail: | |
19675 | return NULL; | |
19676 | } | |
19677 | ||
19678 | ||
19679 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19680 | PyObject *resultobj; | |
19681 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19682 | int arg2 ; | |
19683 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19684 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19685 | char *kwnames[] = { |
19686 | (char *) "self",(char *) "m_col", NULL | |
19687 | }; | |
19688 | ||
8edf1c75 | 19689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19692 | arg2 = (int) SWIG_AsInt(obj1); | |
19693 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19694 | if (arg1) (arg1)->m_col = arg2; |
19695 | ||
19696 | Py_INCREF(Py_None); resultobj = Py_None; | |
19697 | return resultobj; | |
19698 | fail: | |
19699 | return NULL; | |
19700 | } | |
19701 | ||
19702 | ||
19703 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19704 | PyObject *resultobj; | |
19705 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19706 | int result; | |
19707 | PyObject * obj0 = 0 ; | |
19708 | char *kwnames[] = { | |
19709 | (char *) "self", NULL | |
19710 | }; | |
19711 | ||
19712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19715 | result = (int) ((arg1)->m_col); |
19716 | ||
2f4c0a16 | 19717 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19718 | return resultobj; |
19719 | fail: | |
19720 | return NULL; | |
19721 | } | |
19722 | ||
19723 | ||
19724 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19725 | PyObject *resultobj; | |
19726 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19727 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19728 | PyObject * obj0 = 0 ; | |
19729 | PyObject * obj1 = 0 ; | |
19730 | char *kwnames[] = { | |
19731 | (char *) "self",(char *) "m_pointDrag", NULL | |
19732 | }; | |
19733 | ||
19734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
19738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19739 | if (arg1) (arg1)->m_pointDrag = *arg2; |
19740 | ||
19741 | Py_INCREF(Py_None); resultobj = Py_None; | |
19742 | return resultobj; | |
19743 | fail: | |
19744 | return NULL; | |
19745 | } | |
19746 | ||
19747 | ||
19748 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19749 | PyObject *resultobj; | |
19750 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19751 | wxPoint *result; | |
19752 | PyObject * obj0 = 0 ; | |
19753 | char *kwnames[] = { | |
19754 | (char *) "self", NULL | |
19755 | }; | |
19756 | ||
19757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19760 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
19761 | ||
2f4c0a16 | 19762 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
19763 | return resultobj; |
19764 | fail: | |
19765 | return NULL; | |
19766 | } | |
19767 | ||
19768 | ||
19769 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19770 | PyObject *resultobj; | |
19771 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19772 | wxListItem *result; | |
19773 | PyObject * obj0 = 0 ; | |
19774 | char *kwnames[] = { | |
19775 | (char *) "self", NULL | |
19776 | }; | |
19777 | ||
19778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19781 | result = (wxListItem *)& ((arg1)->m_item); |
19782 | ||
19783 | { | |
19784 | resultobj = wxPyMake_wxObject(result); | |
19785 | } | |
19786 | return resultobj; | |
19787 | fail: | |
19788 | return NULL; | |
19789 | } | |
19790 | ||
19791 | ||
19792 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19793 | PyObject *resultobj; | |
19794 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19795 | int result; | |
19796 | PyObject * obj0 = 0 ; | |
19797 | char *kwnames[] = { | |
19798 | (char *) "self", NULL | |
19799 | }; | |
19800 | ||
19801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19804 | { |
19805 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19806 | result = (int)(arg1)->GetKeyCode(); | |
19807 | ||
19808 | wxPyEndAllowThreads(__tstate); | |
19809 | if (PyErr_Occurred()) SWIG_fail; | |
19810 | } | |
2f4c0a16 | 19811 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19812 | return resultobj; |
19813 | fail: | |
19814 | return NULL; | |
19815 | } | |
19816 | ||
19817 | ||
19818 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19819 | PyObject *resultobj; | |
19820 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19821 | long result; | |
19822 | PyObject * obj0 = 0 ; | |
19823 | char *kwnames[] = { | |
19824 | (char *) "self", NULL | |
19825 | }; | |
19826 | ||
19827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19830 | { |
19831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19832 | result = (long)(arg1)->GetIndex(); | |
19833 | ||
19834 | wxPyEndAllowThreads(__tstate); | |
19835 | if (PyErr_Occurred()) SWIG_fail; | |
19836 | } | |
2f4c0a16 | 19837 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19838 | return resultobj; |
19839 | fail: | |
19840 | return NULL; | |
19841 | } | |
19842 | ||
19843 | ||
19844 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19845 | PyObject *resultobj; | |
19846 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19847 | int result; | |
19848 | PyObject * obj0 = 0 ; | |
19849 | char *kwnames[] = { | |
19850 | (char *) "self", NULL | |
19851 | }; | |
19852 | ||
19853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19856 | { |
19857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19858 | result = (int)(arg1)->GetColumn(); | |
19859 | ||
19860 | wxPyEndAllowThreads(__tstate); | |
19861 | if (PyErr_Occurred()) SWIG_fail; | |
19862 | } | |
2f4c0a16 | 19863 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19864 | return resultobj; |
19865 | fail: | |
19866 | return NULL; | |
19867 | } | |
19868 | ||
19869 | ||
19870 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19871 | PyObject *resultobj; | |
19872 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19873 | wxPoint result; | |
19874 | PyObject * obj0 = 0 ; | |
19875 | char *kwnames[] = { | |
19876 | (char *) "self", NULL | |
19877 | }; | |
19878 | ||
19879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19882 | { |
19883 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19884 | result = (arg1)->GetPoint(); | |
19885 | ||
19886 | wxPyEndAllowThreads(__tstate); | |
19887 | if (PyErr_Occurred()) SWIG_fail; | |
19888 | } | |
19889 | { | |
19890 | wxPoint * resultptr; | |
19891 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 19892 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
19893 | } |
19894 | return resultobj; | |
19895 | fail: | |
19896 | return NULL; | |
19897 | } | |
19898 | ||
19899 | ||
19900 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19901 | PyObject *resultobj; | |
19902 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19903 | wxString *result; | |
19904 | PyObject * obj0 = 0 ; | |
19905 | char *kwnames[] = { | |
19906 | (char *) "self", NULL | |
19907 | }; | |
19908 | ||
19909 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19910 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19911 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19912 | { |
19913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19914 | { | |
19915 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19916 | result = (wxString *) &_result_ref; | |
19917 | } | |
19918 | ||
19919 | wxPyEndAllowThreads(__tstate); | |
19920 | if (PyErr_Occurred()) SWIG_fail; | |
19921 | } | |
f0983263 RD |
19922 | { |
19923 | #if wxUSE_UNICODE | |
19924 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19925 | #else | |
19926 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19927 | #endif | |
19928 | } | |
d14a1e28 RD |
19929 | return resultobj; |
19930 | fail: | |
19931 | return NULL; | |
19932 | } | |
19933 | ||
19934 | ||
19935 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19936 | PyObject *resultobj; | |
19937 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19938 | wxString *result; | |
19939 | PyObject * obj0 = 0 ; | |
19940 | char *kwnames[] = { | |
19941 | (char *) "self", NULL | |
19942 | }; | |
19943 | ||
19944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19947 | { |
19948 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19949 | { | |
19950 | wxString const &_result_ref = (arg1)->GetText(); | |
19951 | result = (wxString *) &_result_ref; | |
19952 | } | |
19953 | ||
19954 | wxPyEndAllowThreads(__tstate); | |
19955 | if (PyErr_Occurred()) SWIG_fail; | |
19956 | } | |
f0983263 RD |
19957 | { |
19958 | #if wxUSE_UNICODE | |
19959 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19960 | #else | |
19961 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19962 | #endif | |
19963 | } | |
d14a1e28 RD |
19964 | return resultobj; |
19965 | fail: | |
19966 | return NULL; | |
19967 | } | |
19968 | ||
19969 | ||
19970 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19971 | PyObject *resultobj; | |
19972 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19973 | int result; | |
19974 | PyObject * obj0 = 0 ; | |
19975 | char *kwnames[] = { | |
19976 | (char *) "self", NULL | |
19977 | }; | |
19978 | ||
19979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19982 | { |
19983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19984 | result = (int)(arg1)->GetImage(); | |
19985 | ||
19986 | wxPyEndAllowThreads(__tstate); | |
19987 | if (PyErr_Occurred()) SWIG_fail; | |
19988 | } | |
2f4c0a16 | 19989 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19990 | return resultobj; |
19991 | fail: | |
19992 | return NULL; | |
19993 | } | |
19994 | ||
19995 | ||
19996 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19997 | PyObject *resultobj; | |
19998 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19999 | long result; | |
20000 | PyObject * obj0 = 0 ; | |
20001 | char *kwnames[] = { | |
20002 | (char *) "self", NULL | |
20003 | }; | |
20004 | ||
20005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20008 | { |
20009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20010 | result = (long)(arg1)->GetData(); | |
20011 | ||
20012 | wxPyEndAllowThreads(__tstate); | |
20013 | if (PyErr_Occurred()) SWIG_fail; | |
20014 | } | |
2f4c0a16 | 20015 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20016 | return resultobj; |
20017 | fail: | |
20018 | return NULL; | |
20019 | } | |
20020 | ||
20021 | ||
20022 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20023 | PyObject *resultobj; | |
20024 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20025 | long result; | |
20026 | PyObject * obj0 = 0 ; | |
20027 | char *kwnames[] = { | |
20028 | (char *) "self", NULL | |
20029 | }; | |
20030 | ||
20031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20034 | { |
20035 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20036 | result = (long)(arg1)->GetMask(); | |
20037 | ||
20038 | wxPyEndAllowThreads(__tstate); | |
20039 | if (PyErr_Occurred()) SWIG_fail; | |
20040 | } | |
2f4c0a16 | 20041 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20042 | return resultobj; |
20043 | fail: | |
20044 | return NULL; | |
20045 | } | |
20046 | ||
20047 | ||
20048 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20049 | PyObject *resultobj; | |
20050 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20051 | wxListItem *result; | |
20052 | PyObject * obj0 = 0 ; | |
20053 | char *kwnames[] = { | |
20054 | (char *) "self", NULL | |
20055 | }; | |
20056 | ||
20057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20060 | { |
20061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20062 | { | |
20063 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20064 | result = (wxListItem *) &_result_ref; | |
20065 | } | |
20066 | ||
20067 | wxPyEndAllowThreads(__tstate); | |
20068 | if (PyErr_Occurred()) SWIG_fail; | |
20069 | } | |
2f4c0a16 | 20070 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20071 | return resultobj; |
20072 | fail: | |
20073 | return NULL; | |
20074 | } | |
20075 | ||
20076 | ||
20077 | static PyObject *_wrap_ListEvent_GetCacheFrom(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_GetCacheFrom",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)->GetCacheFrom(); | |
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_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20104 | PyObject *resultobj; | |
20105 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20106 | long result; | |
20107 | PyObject * obj0 = 0 ; | |
20108 | char *kwnames[] = { | |
20109 | (char *) "self", NULL | |
20110 | }; | |
20111 | ||
20112 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",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 | result = (long)(arg1)->GetCacheTo(); | |
20118 | ||
20119 | wxPyEndAllowThreads(__tstate); | |
20120 | if (PyErr_Occurred()) SWIG_fail; | |
20121 | } | |
2f4c0a16 | 20122 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20123 | return resultobj; |
20124 | fail: | |
20125 | return NULL; | |
20126 | } | |
20127 | ||
20128 | ||
20129 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20130 | PyObject *resultobj; | |
20131 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20132 | bool result; | |
20133 | PyObject * obj0 = 0 ; | |
20134 | char *kwnames[] = { | |
20135 | (char *) "self", NULL | |
20136 | }; | |
20137 | ||
20138 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20139 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20140 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20141 | { |
20142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20143 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20144 | ||
20145 | wxPyEndAllowThreads(__tstate); | |
20146 | if (PyErr_Occurred()) SWIG_fail; | |
20147 | } | |
4f89f6a3 RD |
20148 | { |
20149 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20150 | } | |
d14a1e28 RD |
20151 | return resultobj; |
20152 | fail: | |
20153 | return NULL; | |
20154 | } | |
20155 | ||
20156 | ||
20157 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20158 | PyObject *resultobj; | |
20159 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20160 | bool arg2 ; | |
20161 | PyObject * obj0 = 0 ; | |
20162 | PyObject * obj1 = 0 ; | |
20163 | char *kwnames[] = { | |
20164 | (char *) "self",(char *) "editCancelled", NULL | |
20165 | }; | |
20166 | ||
20167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20170 | arg2 = (bool) SWIG_AsBool(obj1); | |
20171 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20172 | { |
20173 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20174 | (arg1)->SetEditCanceled(arg2); | |
20175 | ||
20176 | wxPyEndAllowThreads(__tstate); | |
20177 | if (PyErr_Occurred()) SWIG_fail; | |
20178 | } | |
20179 | Py_INCREF(Py_None); resultobj = Py_None; | |
20180 | return resultobj; | |
20181 | fail: | |
20182 | return NULL; | |
20183 | } | |
20184 | ||
20185 | ||
20186 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20187 | PyObject *obj; | |
20188 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20189 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20190 | Py_INCREF(obj); | |
20191 | return Py_BuildValue((char *)""); | |
20192 | } | |
20193 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20194 | PyObject *resultobj; | |
20195 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20196 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20197 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20198 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20199 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20200 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20201 | long arg5 = (long) wxLC_ICON ; | |
20202 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20203 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20204 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20205 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20206 | wxPyListCtrl *result; | |
20207 | wxPoint temp3 ; | |
20208 | wxSize temp4 ; | |
423f194a | 20209 | bool temp7 = False ; |
d14a1e28 | 20210 | PyObject * obj0 = 0 ; |
8edf1c75 | 20211 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20212 | PyObject * obj2 = 0 ; |
20213 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20214 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20215 | PyObject * obj5 = 0 ; |
20216 | PyObject * obj6 = 0 ; | |
20217 | char *kwnames[] = { | |
20218 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20219 | }; | |
20220 | ||
8edf1c75 | 20221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20224 | if (obj1) { |
2f4c0a16 RD |
20225 | arg2 = (int) SWIG_AsInt(obj1); |
20226 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20227 | } |
d14a1e28 RD |
20228 | if (obj2) { |
20229 | { | |
20230 | arg3 = &temp3; | |
20231 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20232 | } | |
20233 | } | |
20234 | if (obj3) { | |
20235 | { | |
20236 | arg4 = &temp4; | |
20237 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20238 | } | |
20239 | } | |
8edf1c75 | 20240 | if (obj4) { |
2f4c0a16 RD |
20241 | arg5 = (long) SWIG_AsLong(obj4); |
20242 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20243 | } |
d14a1e28 | 20244 | if (obj5) { |
2f4c0a16 RD |
20245 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
20246 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20247 | SWIG_fail; | |
d14a1e28 | 20248 | if (arg6 == NULL) { |
2f4c0a16 RD |
20249 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20250 | SWIG_fail; | |
d14a1e28 RD |
20251 | } |
20252 | } | |
20253 | if (obj6) { | |
20254 | { | |
20255 | arg7 = wxString_in_helper(obj6); | |
20256 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20257 | temp7 = True; |
d14a1e28 RD |
20258 | } |
20259 | } | |
20260 | { | |
20261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20262 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20263 | ||
20264 | wxPyEndAllowThreads(__tstate); | |
20265 | if (PyErr_Occurred()) SWIG_fail; | |
20266 | } | |
2f4c0a16 | 20267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20268 | { |
20269 | if (temp7) | |
20270 | delete arg7; | |
20271 | } | |
20272 | return resultobj; | |
20273 | fail: | |
20274 | { | |
20275 | if (temp7) | |
20276 | delete arg7; | |
20277 | } | |
20278 | return NULL; | |
20279 | } | |
20280 | ||
20281 | ||
20282 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20283 | PyObject *resultobj; | |
20284 | wxPyListCtrl *result; | |
20285 | char *kwnames[] = { | |
20286 | NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20290 | { | |
20291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20292 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20293 | ||
20294 | wxPyEndAllowThreads(__tstate); | |
20295 | if (PyErr_Occurred()) SWIG_fail; | |
20296 | } | |
2f4c0a16 | 20297 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20298 | return resultobj; |
20299 | fail: | |
20300 | return NULL; | |
20301 | } | |
20302 | ||
20303 | ||
20304 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20305 | PyObject *resultobj; | |
20306 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20307 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20308 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20309 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20310 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20311 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20312 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20313 | long arg6 = (long) wxLC_ICON ; | |
20314 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20315 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20316 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20317 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20318 | bool result; | |
20319 | wxPoint temp4 ; | |
20320 | wxSize temp5 ; | |
423f194a | 20321 | bool temp8 = False ; |
d14a1e28 RD |
20322 | PyObject * obj0 = 0 ; |
20323 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20324 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20325 | PyObject * obj3 = 0 ; |
20326 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20327 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20328 | PyObject * obj6 = 0 ; |
20329 | PyObject * obj7 = 0 ; | |
20330 | char *kwnames[] = { | |
20331 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20332 | }; | |
20333 | ||
8edf1c75 | 20334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
20335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20338 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20339 | if (obj2) { |
2f4c0a16 RD |
20340 | arg3 = (int) SWIG_AsInt(obj2); |
20341 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20342 | } |
d14a1e28 RD |
20343 | if (obj3) { |
20344 | { | |
20345 | arg4 = &temp4; | |
20346 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20347 | } | |
20348 | } | |
20349 | if (obj4) { | |
20350 | { | |
20351 | arg5 = &temp5; | |
20352 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20353 | } | |
20354 | } | |
8edf1c75 | 20355 | if (obj5) { |
2f4c0a16 RD |
20356 | arg6 = (long) SWIG_AsLong(obj5); |
20357 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20358 | } |
d14a1e28 | 20359 | if (obj6) { |
2f4c0a16 RD |
20360 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
20361 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20362 | SWIG_fail; | |
d14a1e28 | 20363 | if (arg7 == NULL) { |
2f4c0a16 RD |
20364 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20365 | SWIG_fail; | |
d14a1e28 RD |
20366 | } |
20367 | } | |
20368 | if (obj7) { | |
20369 | { | |
20370 | arg8 = wxString_in_helper(obj7); | |
20371 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20372 | temp8 = True; |
d14a1e28 RD |
20373 | } |
20374 | } | |
20375 | { | |
20376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20377 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20378 | ||
20379 | wxPyEndAllowThreads(__tstate); | |
20380 | if (PyErr_Occurred()) SWIG_fail; | |
20381 | } | |
4f89f6a3 RD |
20382 | { |
20383 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20384 | } | |
d14a1e28 RD |
20385 | { |
20386 | if (temp8) | |
20387 | delete arg8; | |
20388 | } | |
20389 | return resultobj; | |
20390 | fail: | |
20391 | { | |
20392 | if (temp8) | |
20393 | delete arg8; | |
20394 | } | |
20395 | return NULL; | |
20396 | } | |
20397 | ||
20398 | ||
20399 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20400 | PyObject *resultobj; | |
20401 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20402 | PyObject *arg2 = (PyObject *) 0 ; | |
20403 | PyObject *arg3 = (PyObject *) 0 ; | |
20404 | PyObject * obj0 = 0 ; | |
20405 | PyObject * obj1 = 0 ; | |
20406 | PyObject * obj2 = 0 ; | |
20407 | char *kwnames[] = { | |
20408 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20409 | }; | |
20410 | ||
20411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
20412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20414 | arg2 = obj1; |
20415 | arg3 = obj2; | |
20416 | { | |
20417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20418 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20419 | ||
20420 | wxPyEndAllowThreads(__tstate); | |
20421 | if (PyErr_Occurred()) SWIG_fail; | |
20422 | } | |
20423 | Py_INCREF(Py_None); resultobj = Py_None; | |
20424 | return resultobj; | |
20425 | fail: | |
20426 | return NULL; | |
20427 | } | |
20428 | ||
20429 | ||
20430 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20431 | PyObject *resultobj; | |
20432 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20433 | wxColour *arg2 = 0 ; | |
20434 | bool result; | |
20435 | wxColour temp2 ; | |
20436 | PyObject * obj0 = 0 ; | |
20437 | PyObject * obj1 = 0 ; | |
20438 | char *kwnames[] = { | |
20439 | (char *) "self",(char *) "col", NULL | |
20440 | }; | |
20441 | ||
20442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20445 | { |
20446 | arg2 = &temp2; | |
20447 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20448 | } | |
20449 | { | |
20450 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20451 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20452 | ||
20453 | wxPyEndAllowThreads(__tstate); | |
20454 | if (PyErr_Occurred()) SWIG_fail; | |
20455 | } | |
4f89f6a3 RD |
20456 | { |
20457 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20458 | } | |
d14a1e28 RD |
20459 | return resultobj; |
20460 | fail: | |
20461 | return NULL; | |
20462 | } | |
20463 | ||
20464 | ||
20465 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20466 | PyObject *resultobj; | |
20467 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20468 | wxColour *arg2 = 0 ; | |
20469 | bool result; | |
20470 | wxColour temp2 ; | |
20471 | PyObject * obj0 = 0 ; | |
20472 | PyObject * obj1 = 0 ; | |
20473 | char *kwnames[] = { | |
20474 | (char *) "self",(char *) "col", NULL | |
20475 | }; | |
20476 | ||
20477 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20478 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20479 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20480 | { |
20481 | arg2 = &temp2; | |
20482 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20483 | } | |
20484 | { | |
20485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20486 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20487 | ||
20488 | wxPyEndAllowThreads(__tstate); | |
20489 | if (PyErr_Occurred()) SWIG_fail; | |
20490 | } | |
4f89f6a3 RD |
20491 | { |
20492 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20493 | } | |
d14a1e28 RD |
20494 | return resultobj; |
20495 | fail: | |
20496 | return NULL; | |
20497 | } | |
20498 | ||
20499 | ||
20500 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20501 | PyObject *resultobj; | |
20502 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20503 | int arg2 ; | |
20504 | wxListItem *result; | |
20505 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20506 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20507 | char *kwnames[] = { |
20508 | (char *) "self",(char *) "col", NULL | |
20509 | }; | |
20510 | ||
8edf1c75 | 20511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20512 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20513 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20514 | arg2 = (int) SWIG_AsInt(obj1); | |
20515 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20516 | { |
20517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20518 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20519 | ||
20520 | wxPyEndAllowThreads(__tstate); | |
20521 | if (PyErr_Occurred()) SWIG_fail; | |
20522 | } | |
20523 | { | |
20524 | resultobj = wxPyMake_wxObject(result); | |
20525 | } | |
20526 | return resultobj; | |
20527 | fail: | |
20528 | return NULL; | |
20529 | } | |
20530 | ||
20531 | ||
20532 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20533 | PyObject *resultobj; | |
20534 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20535 | int arg2 ; | |
20536 | wxListItem *arg3 = 0 ; | |
20537 | bool result; | |
20538 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20540 | PyObject * obj2 = 0 ; |
20541 | char *kwnames[] = { | |
20542 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20543 | }; | |
20544 | ||
8edf1c75 | 20545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20548 | arg2 = (int) SWIG_AsInt(obj1); | |
20549 | if (PyErr_Occurred()) SWIG_fail; | |
20550 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
20551 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20552 | SWIG_fail; | |
d14a1e28 | 20553 | if (arg3 == NULL) { |
2f4c0a16 RD |
20554 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20555 | SWIG_fail; | |
d14a1e28 RD |
20556 | } |
20557 | { | |
20558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20559 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20560 | ||
20561 | wxPyEndAllowThreads(__tstate); | |
20562 | if (PyErr_Occurred()) SWIG_fail; | |
20563 | } | |
4f89f6a3 RD |
20564 | { |
20565 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20566 | } | |
d14a1e28 RD |
20567 | return resultobj; |
20568 | fail: | |
20569 | return NULL; | |
20570 | } | |
20571 | ||
20572 | ||
20573 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20574 | PyObject *resultobj; | |
20575 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20576 | int arg2 ; | |
20577 | int result; | |
20578 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20579 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20580 | char *kwnames[] = { |
20581 | (char *) "self",(char *) "col", NULL | |
20582 | }; | |
20583 | ||
8edf1c75 | 20584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20587 | arg2 = (int) SWIG_AsInt(obj1); | |
20588 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20589 | { |
20590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20591 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20592 | ||
20593 | wxPyEndAllowThreads(__tstate); | |
20594 | if (PyErr_Occurred()) SWIG_fail; | |
20595 | } | |
2f4c0a16 | 20596 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20597 | return resultobj; |
20598 | fail: | |
20599 | return NULL; | |
20600 | } | |
20601 | ||
20602 | ||
20603 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20604 | PyObject *resultobj; | |
20605 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20606 | int arg2 ; | |
20607 | int arg3 ; | |
20608 | bool result; | |
20609 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20610 | PyObject * obj1 = 0 ; |
20611 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20612 | char *kwnames[] = { |
20613 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20614 | }; | |
20615 | ||
8edf1c75 | 20616 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20617 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20618 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20619 | arg2 = (int) SWIG_AsInt(obj1); | |
20620 | if (PyErr_Occurred()) SWIG_fail; | |
20621 | arg3 = (int) SWIG_AsInt(obj2); | |
20622 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20623 | { |
20624 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20625 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20626 | ||
20627 | wxPyEndAllowThreads(__tstate); | |
20628 | if (PyErr_Occurred()) SWIG_fail; | |
20629 | } | |
4f89f6a3 RD |
20630 | { |
20631 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20632 | } | |
d14a1e28 RD |
20633 | return resultobj; |
20634 | fail: | |
20635 | return NULL; | |
20636 | } | |
20637 | ||
20638 | ||
20639 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20640 | PyObject *resultobj; | |
20641 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20642 | int result; | |
20643 | PyObject * obj0 = 0 ; | |
20644 | char *kwnames[] = { | |
20645 | (char *) "self", NULL | |
20646 | }; | |
20647 | ||
20648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20651 | { |
20652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20653 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20654 | ||
20655 | wxPyEndAllowThreads(__tstate); | |
20656 | if (PyErr_Occurred()) SWIG_fail; | |
20657 | } | |
2f4c0a16 | 20658 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20659 | return resultobj; |
20660 | fail: | |
20661 | return NULL; | |
20662 | } | |
20663 | ||
20664 | ||
20665 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20666 | PyObject *resultobj; | |
20667 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20668 | wxRect result; | |
20669 | PyObject * obj0 = 0 ; | |
20670 | char *kwnames[] = { | |
20671 | (char *) "self", NULL | |
20672 | }; | |
20673 | ||
20674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20677 | { |
20678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20679 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20680 | ||
20681 | wxPyEndAllowThreads(__tstate); | |
20682 | if (PyErr_Occurred()) SWIG_fail; | |
20683 | } | |
20684 | { | |
20685 | wxRect * resultptr; | |
20686 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 20687 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
20688 | } |
20689 | return resultobj; | |
20690 | fail: | |
20691 | return NULL; | |
20692 | } | |
20693 | ||
20694 | ||
20695 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20696 | PyObject *resultobj; | |
20697 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20698 | wxTextCtrl *result; | |
20699 | PyObject * obj0 = 0 ; | |
20700 | char *kwnames[] = { | |
20701 | (char *) "self", NULL | |
20702 | }; | |
20703 | ||
20704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20707 | { |
20708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20709 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20710 | ||
20711 | wxPyEndAllowThreads(__tstate); | |
20712 | if (PyErr_Occurred()) SWIG_fail; | |
20713 | } | |
20714 | { | |
20715 | resultobj = wxPyMake_wxObject(result); | |
20716 | } | |
20717 | return resultobj; | |
20718 | fail: | |
20719 | return NULL; | |
20720 | } | |
20721 | ||
20722 | ||
20723 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20724 | PyObject *resultobj; | |
20725 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20726 | long arg2 ; | |
20727 | int arg3 = (int) 0 ; | |
20728 | wxListItem *result; | |
20729 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20730 | PyObject * obj1 = 0 ; |
20731 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20732 | char *kwnames[] = { |
20733 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20734 | }; | |
20735 | ||
8edf1c75 | 20736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20739 | arg2 = (long) SWIG_AsLong(obj1); | |
20740 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20741 | if (obj2) { |
2f4c0a16 RD |
20742 | arg3 = (int) SWIG_AsInt(obj2); |
20743 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20744 | } |
d14a1e28 RD |
20745 | { |
20746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20747 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20748 | ||
20749 | wxPyEndAllowThreads(__tstate); | |
20750 | if (PyErr_Occurred()) SWIG_fail; | |
20751 | } | |
20752 | { | |
20753 | resultobj = wxPyMake_wxObject(result); | |
20754 | } | |
20755 | return resultobj; | |
20756 | fail: | |
20757 | return NULL; | |
20758 | } | |
20759 | ||
20760 | ||
20761 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20762 | PyObject *resultobj; | |
20763 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20764 | wxListItem *arg2 = 0 ; | |
20765 | bool result; | |
20766 | PyObject * obj0 = 0 ; | |
20767 | PyObject * obj1 = 0 ; | |
20768 | char *kwnames[] = { | |
20769 | (char *) "self",(char *) "info", NULL | |
20770 | }; | |
20771 | ||
20772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20775 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
20776 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20777 | SWIG_fail; | |
d14a1e28 | 20778 | if (arg2 == NULL) { |
2f4c0a16 RD |
20779 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20780 | SWIG_fail; | |
d14a1e28 RD |
20781 | } |
20782 | { | |
20783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20784 | result = (bool)(arg1)->SetItem(*arg2); | |
20785 | ||
20786 | wxPyEndAllowThreads(__tstate); | |
20787 | if (PyErr_Occurred()) SWIG_fail; | |
20788 | } | |
4f89f6a3 RD |
20789 | { |
20790 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20791 | } | |
d14a1e28 RD |
20792 | return resultobj; |
20793 | fail: | |
20794 | return NULL; | |
20795 | } | |
20796 | ||
20797 | ||
20798 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20799 | PyObject *resultobj; | |
20800 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20801 | long arg2 ; | |
20802 | int arg3 ; | |
20803 | wxString *arg4 = 0 ; | |
20804 | int arg5 = (int) -1 ; | |
20805 | long result; | |
423f194a | 20806 | bool temp4 = False ; |
d14a1e28 | 20807 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20808 | PyObject * obj1 = 0 ; |
20809 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20810 | PyObject * obj3 = 0 ; |
8edf1c75 | 20811 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20812 | char *kwnames[] = { |
20813 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20814 | }; | |
20815 | ||
8edf1c75 | 20816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20819 | arg2 = (long) SWIG_AsLong(obj1); | |
20820 | if (PyErr_Occurred()) SWIG_fail; | |
20821 | arg3 = (int) SWIG_AsInt(obj2); | |
20822 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20823 | { |
20824 | arg4 = wxString_in_helper(obj3); | |
20825 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20826 | temp4 = True; |
d14a1e28 | 20827 | } |
8edf1c75 | 20828 | if (obj4) { |
2f4c0a16 RD |
20829 | arg5 = (int) SWIG_AsInt(obj4); |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20831 | } |
d14a1e28 RD |
20832 | { |
20833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20834 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20835 | ||
20836 | wxPyEndAllowThreads(__tstate); | |
20837 | if (PyErr_Occurred()) SWIG_fail; | |
20838 | } | |
2f4c0a16 | 20839 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20840 | { |
20841 | if (temp4) | |
20842 | delete arg4; | |
20843 | } | |
20844 | return resultobj; | |
20845 | fail: | |
20846 | { | |
20847 | if (temp4) | |
20848 | delete arg4; | |
20849 | } | |
20850 | return NULL; | |
20851 | } | |
20852 | ||
20853 | ||
20854 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20855 | PyObject *resultobj; | |
20856 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20857 | long arg2 ; | |
20858 | long arg3 ; | |
20859 | int result; | |
20860 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20861 | PyObject * obj1 = 0 ; |
20862 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20863 | char *kwnames[] = { |
20864 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20865 | }; | |
20866 | ||
8edf1c75 | 20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20870 | arg2 = (long) SWIG_AsLong(obj1); | |
20871 | if (PyErr_Occurred()) SWIG_fail; | |
20872 | arg3 = (long) SWIG_AsLong(obj2); | |
20873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20874 | { |
20875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20876 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20877 | ||
20878 | wxPyEndAllowThreads(__tstate); | |
20879 | if (PyErr_Occurred()) SWIG_fail; | |
20880 | } | |
2f4c0a16 | 20881 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20882 | return resultobj; |
20883 | fail: | |
20884 | return NULL; | |
20885 | } | |
20886 | ||
20887 | ||
20888 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20889 | PyObject *resultobj; | |
20890 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20891 | long arg2 ; | |
20892 | long arg3 ; | |
20893 | long arg4 ; | |
20894 | bool result; | |
20895 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20896 | PyObject * obj1 = 0 ; |
20897 | PyObject * obj2 = 0 ; | |
20898 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20899 | char *kwnames[] = { |
20900 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20901 | }; | |
20902 | ||
8edf1c75 | 20903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20906 | arg2 = (long) SWIG_AsLong(obj1); | |
20907 | if (PyErr_Occurred()) SWIG_fail; | |
20908 | arg3 = (long) SWIG_AsLong(obj2); | |
20909 | if (PyErr_Occurred()) SWIG_fail; | |
20910 | arg4 = (long) SWIG_AsLong(obj3); | |
20911 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20912 | { |
20913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20914 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20915 | ||
20916 | wxPyEndAllowThreads(__tstate); | |
20917 | if (PyErr_Occurred()) SWIG_fail; | |
20918 | } | |
4f89f6a3 RD |
20919 | { |
20920 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20921 | } | |
d14a1e28 RD |
20922 | return resultobj; |
20923 | fail: | |
20924 | return NULL; | |
20925 | } | |
20926 | ||
20927 | ||
20928 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20929 | PyObject *resultobj; | |
20930 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20931 | long arg2 ; | |
20932 | int arg3 ; | |
20933 | int arg4 ; | |
20934 | bool result; | |
20935 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20936 | PyObject * obj1 = 0 ; |
20937 | PyObject * obj2 = 0 ; | |
20938 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20939 | char *kwnames[] = { |
20940 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20941 | }; | |
20942 | ||
8edf1c75 | 20943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20946 | arg2 = (long) SWIG_AsLong(obj1); | |
20947 | if (PyErr_Occurred()) SWIG_fail; | |
20948 | arg3 = (int) SWIG_AsInt(obj2); | |
20949 | if (PyErr_Occurred()) SWIG_fail; | |
20950 | arg4 = (int) SWIG_AsInt(obj3); | |
20951 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20952 | { |
20953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20954 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20955 | ||
20956 | wxPyEndAllowThreads(__tstate); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | } | |
4f89f6a3 RD |
20959 | { |
20960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20961 | } | |
d14a1e28 RD |
20962 | return resultobj; |
20963 | fail: | |
20964 | return NULL; | |
20965 | } | |
20966 | ||
20967 | ||
20968 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20969 | PyObject *resultobj; | |
20970 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20971 | long arg2 ; | |
20972 | wxString result; | |
20973 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20974 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20975 | char *kwnames[] = { |
20976 | (char *) "self",(char *) "item", NULL | |
20977 | }; | |
20978 | ||
8edf1c75 | 20979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20982 | arg2 = (long) SWIG_AsLong(obj1); | |
20983 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20984 | { |
20985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20986 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20987 | ||
20988 | wxPyEndAllowThreads(__tstate); | |
20989 | if (PyErr_Occurred()) SWIG_fail; | |
20990 | } | |
20991 | { | |
20992 | #if wxUSE_UNICODE | |
20993 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
20994 | #else | |
20995 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
20996 | #endif | |
20997 | } | |
20998 | return resultobj; | |
20999 | fail: | |
21000 | return NULL; | |
21001 | } | |
21002 | ||
21003 | ||
21004 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21005 | PyObject *resultobj; | |
21006 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21007 | long arg2 ; | |
21008 | wxString *arg3 = 0 ; | |
423f194a | 21009 | bool temp3 = False ; |
d14a1e28 | 21010 | PyObject * obj0 = 0 ; |
8edf1c75 | 21011 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21012 | PyObject * obj2 = 0 ; |
21013 | char *kwnames[] = { | |
21014 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21015 | }; | |
21016 | ||
8edf1c75 | 21017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21020 | arg2 = (long) SWIG_AsLong(obj1); | |
21021 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21022 | { |
21023 | arg3 = wxString_in_helper(obj2); | |
21024 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21025 | temp3 = True; |
d14a1e28 RD |
21026 | } |
21027 | { | |
21028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21029 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21030 | ||
21031 | wxPyEndAllowThreads(__tstate); | |
21032 | if (PyErr_Occurred()) SWIG_fail; | |
21033 | } | |
21034 | Py_INCREF(Py_None); resultobj = Py_None; | |
21035 | { | |
21036 | if (temp3) | |
21037 | delete arg3; | |
21038 | } | |
21039 | return resultobj; | |
21040 | fail: | |
21041 | { | |
21042 | if (temp3) | |
21043 | delete arg3; | |
21044 | } | |
21045 | return NULL; | |
21046 | } | |
21047 | ||
21048 | ||
21049 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21050 | PyObject *resultobj; | |
21051 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21052 | long arg2 ; | |
21053 | long result; | |
21054 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21055 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21056 | char *kwnames[] = { |
21057 | (char *) "self",(char *) "item", NULL | |
21058 | }; | |
21059 | ||
8edf1c75 | 21060 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21061 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21062 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21063 | arg2 = (long) SWIG_AsLong(obj1); | |
21064 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21065 | { |
21066 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21067 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21068 | ||
21069 | wxPyEndAllowThreads(__tstate); | |
21070 | if (PyErr_Occurred()) SWIG_fail; | |
21071 | } | |
2f4c0a16 | 21072 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21073 | return resultobj; |
21074 | fail: | |
21075 | return NULL; | |
21076 | } | |
21077 | ||
21078 | ||
21079 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21080 | PyObject *resultobj; | |
21081 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21082 | long arg2 ; | |
21083 | long arg3 ; | |
21084 | bool result; | |
21085 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21086 | PyObject * obj1 = 0 ; |
21087 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21088 | char *kwnames[] = { |
21089 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21090 | }; | |
21091 | ||
8edf1c75 | 21092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21095 | arg2 = (long) SWIG_AsLong(obj1); | |
21096 | if (PyErr_Occurred()) SWIG_fail; | |
21097 | arg3 = (long) SWIG_AsLong(obj2); | |
21098 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21099 | { |
21100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21101 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21102 | ||
21103 | wxPyEndAllowThreads(__tstate); | |
21104 | if (PyErr_Occurred()) SWIG_fail; | |
21105 | } | |
4f89f6a3 RD |
21106 | { |
21107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21108 | } | |
d14a1e28 RD |
21109 | return resultobj; |
21110 | fail: | |
21111 | return NULL; | |
21112 | } | |
21113 | ||
21114 | ||
21115 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21116 | PyObject *resultobj; | |
21117 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21118 | long arg2 ; | |
21119 | wxPoint result; | |
21120 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21121 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21122 | char *kwnames[] = { |
21123 | (char *) "self",(char *) "item", NULL | |
21124 | }; | |
21125 | ||
8edf1c75 | 21126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21129 | arg2 = (long) SWIG_AsLong(obj1); | |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21131 | { |
21132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21133 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21134 | ||
21135 | wxPyEndAllowThreads(__tstate); | |
21136 | if (PyErr_Occurred()) SWIG_fail; | |
21137 | } | |
21138 | { | |
21139 | wxPoint * resultptr; | |
21140 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 21141 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21142 | } |
21143 | return resultobj; | |
21144 | fail: | |
21145 | return NULL; | |
21146 | } | |
21147 | ||
21148 | ||
21149 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21150 | PyObject *resultobj; | |
21151 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21152 | long arg2 ; | |
21153 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21154 | wxRect result; | |
21155 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21156 | PyObject * obj1 = 0 ; |
21157 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21158 | char *kwnames[] = { |
21159 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21160 | }; | |
21161 | ||
8edf1c75 | 21162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21165 | arg2 = (long) SWIG_AsLong(obj1); | |
21166 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21167 | if (obj2) { |
2f4c0a16 RD |
21168 | arg3 = (int) SWIG_AsInt(obj2); |
21169 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21170 | } |
d14a1e28 RD |
21171 | { |
21172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21173 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21174 | ||
21175 | wxPyEndAllowThreads(__tstate); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
21177 | } | |
21178 | { | |
21179 | wxRect * resultptr; | |
21180 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 21181 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21182 | } |
21183 | return resultobj; | |
21184 | fail: | |
21185 | return NULL; | |
21186 | } | |
21187 | ||
21188 | ||
21189 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21190 | PyObject *resultobj; | |
21191 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21192 | long arg2 ; | |
21193 | wxPoint *arg3 = 0 ; | |
21194 | bool result; | |
21195 | wxPoint temp3 ; | |
21196 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21197 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21198 | PyObject * obj2 = 0 ; |
21199 | char *kwnames[] = { | |
21200 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21201 | }; | |
21202 | ||
8edf1c75 | 21203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21206 | arg2 = (long) SWIG_AsLong(obj1); | |
21207 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21208 | { |
21209 | arg3 = &temp3; | |
21210 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21211 | } | |
21212 | { | |
21213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21214 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21215 | ||
21216 | wxPyEndAllowThreads(__tstate); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
21218 | } | |
4f89f6a3 RD |
21219 | { |
21220 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21221 | } | |
d14a1e28 RD |
21222 | return resultobj; |
21223 | fail: | |
21224 | return NULL; | |
21225 | } | |
21226 | ||
21227 | ||
21228 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21229 | PyObject *resultobj; | |
21230 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21231 | int result; | |
21232 | PyObject * obj0 = 0 ; | |
21233 | char *kwnames[] = { | |
21234 | (char *) "self", NULL | |
21235 | }; | |
21236 | ||
21237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21240 | { |
21241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21242 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21243 | ||
21244 | wxPyEndAllowThreads(__tstate); | |
21245 | if (PyErr_Occurred()) SWIG_fail; | |
21246 | } | |
2f4c0a16 | 21247 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21248 | return resultobj; |
21249 | fail: | |
21250 | return NULL; | |
21251 | } | |
21252 | ||
21253 | ||
21254 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21255 | PyObject *resultobj; | |
21256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21257 | int result; | |
21258 | PyObject * obj0 = 0 ; | |
21259 | char *kwnames[] = { | |
21260 | (char *) "self", NULL | |
21261 | }; | |
21262 | ||
21263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21266 | { |
21267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21268 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21269 | ||
21270 | wxPyEndAllowThreads(__tstate); | |
21271 | if (PyErr_Occurred()) SWIG_fail; | |
21272 | } | |
2f4c0a16 | 21273 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21274 | return resultobj; |
21275 | fail: | |
21276 | return NULL; | |
21277 | } | |
21278 | ||
21279 | ||
21280 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21281 | PyObject *resultobj; | |
21282 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21283 | wxSize result; | |
21284 | PyObject * obj0 = 0 ; | |
21285 | char *kwnames[] = { | |
21286 | (char *) "self", NULL | |
21287 | }; | |
21288 | ||
21289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21292 | { |
21293 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21294 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21295 | ||
21296 | wxPyEndAllowThreads(__tstate); | |
21297 | if (PyErr_Occurred()) SWIG_fail; | |
21298 | } | |
21299 | { | |
21300 | wxSize * resultptr; | |
21301 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 21302 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21303 | } |
21304 | return resultobj; | |
21305 | fail: | |
21306 | return NULL; | |
21307 | } | |
21308 | ||
21309 | ||
21310 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21311 | PyObject *resultobj; | |
21312 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21313 | int result; | |
21314 | PyObject * obj0 = 0 ; | |
21315 | char *kwnames[] = { | |
21316 | (char *) "self", NULL | |
21317 | }; | |
21318 | ||
21319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21322 | { |
21323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21324 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21325 | ||
21326 | wxPyEndAllowThreads(__tstate); | |
21327 | if (PyErr_Occurred()) SWIG_fail; | |
21328 | } | |
2f4c0a16 | 21329 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21330 | return resultobj; |
21331 | fail: | |
21332 | return NULL; | |
21333 | } | |
21334 | ||
21335 | ||
21336 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21337 | PyObject *resultobj; | |
21338 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21339 | wxColour result; | |
21340 | PyObject * obj0 = 0 ; | |
21341 | char *kwnames[] = { | |
21342 | (char *) "self", NULL | |
21343 | }; | |
21344 | ||
21345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21348 | { |
21349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21350 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21351 | ||
21352 | wxPyEndAllowThreads(__tstate); | |
21353 | if (PyErr_Occurred()) SWIG_fail; | |
21354 | } | |
21355 | { | |
21356 | wxColour * resultptr; | |
21357 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 21358 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21359 | } |
21360 | return resultobj; | |
21361 | fail: | |
21362 | return NULL; | |
21363 | } | |
21364 | ||
21365 | ||
21366 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21367 | PyObject *resultobj; | |
21368 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21369 | wxColour *arg2 = 0 ; | |
21370 | wxColour temp2 ; | |
21371 | PyObject * obj0 = 0 ; | |
21372 | PyObject * obj1 = 0 ; | |
21373 | char *kwnames[] = { | |
21374 | (char *) "self",(char *) "col", NULL | |
21375 | }; | |
21376 | ||
21377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21380 | { |
21381 | arg2 = &temp2; | |
21382 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21383 | } | |
21384 | { | |
21385 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21386 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21387 | ||
21388 | wxPyEndAllowThreads(__tstate); | |
21389 | if (PyErr_Occurred()) SWIG_fail; | |
21390 | } | |
21391 | Py_INCREF(Py_None); resultobj = Py_None; | |
21392 | return resultobj; | |
21393 | fail: | |
21394 | return NULL; | |
21395 | } | |
21396 | ||
21397 | ||
21398 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21399 | PyObject *resultobj; | |
21400 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21401 | long result; | |
21402 | PyObject * obj0 = 0 ; | |
21403 | char *kwnames[] = { | |
21404 | (char *) "self", NULL | |
21405 | }; | |
21406 | ||
21407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21410 | { |
21411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21412 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21413 | ||
21414 | wxPyEndAllowThreads(__tstate); | |
21415 | if (PyErr_Occurred()) SWIG_fail; | |
21416 | } | |
2f4c0a16 | 21417 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21418 | return resultobj; |
21419 | fail: | |
21420 | return NULL; | |
21421 | } | |
21422 | ||
21423 | ||
21424 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21425 | PyObject *resultobj; | |
21426 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21427 | long arg2 ; | |
423f194a | 21428 | bool arg3 = (bool) True ; |
d14a1e28 | 21429 | PyObject * obj0 = 0 ; |
8edf1c75 | 21430 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21431 | PyObject * obj2 = 0 ; |
21432 | char *kwnames[] = { | |
21433 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21434 | }; | |
21435 | ||
8edf1c75 | 21436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21439 | arg2 = (long) SWIG_AsLong(obj1); | |
21440 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 21441 | if (obj2) { |
2f4c0a16 RD |
21442 | arg3 = (bool) SWIG_AsBool(obj2); |
21443 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21444 | } |
21445 | { | |
21446 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21447 | (arg1)->SetSingleStyle(arg2,arg3); | |
21448 | ||
21449 | wxPyEndAllowThreads(__tstate); | |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
21451 | } | |
21452 | Py_INCREF(Py_None); resultobj = Py_None; | |
21453 | return resultobj; | |
21454 | fail: | |
21455 | return NULL; | |
21456 | } | |
21457 | ||
21458 | ||
21459 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21460 | PyObject *resultobj; | |
21461 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21462 | long arg2 ; | |
21463 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21464 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21465 | char *kwnames[] = { |
21466 | (char *) "self",(char *) "style", NULL | |
21467 | }; | |
21468 | ||
8edf1c75 | 21469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21472 | arg2 = (long) SWIG_AsLong(obj1); | |
21473 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21474 | { |
21475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21476 | (arg1)->SetWindowStyleFlag(arg2); | |
21477 | ||
21478 | wxPyEndAllowThreads(__tstate); | |
21479 | if (PyErr_Occurred()) SWIG_fail; | |
21480 | } | |
21481 | Py_INCREF(Py_None); resultobj = Py_None; | |
21482 | return resultobj; | |
21483 | fail: | |
21484 | return NULL; | |
21485 | } | |
21486 | ||
21487 | ||
21488 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21489 | PyObject *resultobj; | |
21490 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21491 | long arg2 ; | |
21492 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21493 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21494 | long result; | |
21495 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21496 | PyObject * obj1 = 0 ; |
21497 | PyObject * obj2 = 0 ; | |
21498 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21499 | char *kwnames[] = { |
21500 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21501 | }; | |
21502 | ||
8edf1c75 | 21503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21506 | arg2 = (long) SWIG_AsLong(obj1); | |
21507 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21508 | if (obj2) { |
2f4c0a16 RD |
21509 | arg3 = (int) SWIG_AsInt(obj2); |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21511 | } |
21512 | if (obj3) { | |
2f4c0a16 RD |
21513 | arg4 = (int) SWIG_AsInt(obj3); |
21514 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21515 | } |
d14a1e28 RD |
21516 | { |
21517 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21518 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21519 | ||
21520 | wxPyEndAllowThreads(__tstate); | |
21521 | if (PyErr_Occurred()) SWIG_fail; | |
21522 | } | |
2f4c0a16 | 21523 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21524 | return resultobj; |
21525 | fail: | |
21526 | return NULL; | |
21527 | } | |
21528 | ||
21529 | ||
21530 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21531 | PyObject *resultobj; | |
21532 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21533 | int arg2 ; | |
21534 | wxImageList *result; | |
21535 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21537 | char *kwnames[] = { |
21538 | (char *) "self",(char *) "which", NULL | |
21539 | }; | |
21540 | ||
8edf1c75 | 21541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21544 | arg2 = (int) SWIG_AsInt(obj1); | |
21545 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21546 | { |
21547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21548 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21549 | ||
21550 | wxPyEndAllowThreads(__tstate); | |
21551 | if (PyErr_Occurred()) SWIG_fail; | |
21552 | } | |
21553 | { | |
21554 | resultobj = wxPyMake_wxObject(result); | |
21555 | } | |
21556 | return resultobj; | |
21557 | fail: | |
21558 | return NULL; | |
21559 | } | |
21560 | ||
21561 | ||
21562 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21563 | PyObject *resultobj; | |
21564 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21565 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21566 | int arg3 ; | |
21567 | PyObject * obj0 = 0 ; | |
21568 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21569 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21570 | char *kwnames[] = { |
21571 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21572 | }; | |
21573 | ||
8edf1c75 | 21574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21577 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21579 | arg3 = (int) SWIG_AsInt(obj2); | |
21580 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21581 | { |
21582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21583 | (arg1)->SetImageList(arg2,arg3); | |
21584 | ||
21585 | wxPyEndAllowThreads(__tstate); | |
21586 | if (PyErr_Occurred()) SWIG_fail; | |
21587 | } | |
21588 | Py_INCREF(Py_None); resultobj = Py_None; | |
21589 | return resultobj; | |
21590 | fail: | |
21591 | return NULL; | |
21592 | } | |
21593 | ||
21594 | ||
21595 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21596 | PyObject *resultobj; | |
21597 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21598 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21599 | int arg3 ; | |
21600 | PyObject * obj0 = 0 ; | |
21601 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21602 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21603 | char *kwnames[] = { |
21604 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21605 | }; | |
21606 | ||
8edf1c75 | 21607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21611 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
21612 | arg3 = (int) SWIG_AsInt(obj2); | |
21613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21614 | { |
21615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21616 | (arg1)->AssignImageList(arg2,arg3); | |
21617 | ||
21618 | wxPyEndAllowThreads(__tstate); | |
21619 | if (PyErr_Occurred()) SWIG_fail; | |
21620 | } | |
21621 | Py_INCREF(Py_None); resultobj = Py_None; | |
21622 | return resultobj; | |
21623 | fail: | |
21624 | return NULL; | |
21625 | } | |
21626 | ||
21627 | ||
fe763115 RD |
21628 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
21629 | PyObject *resultobj; | |
21630 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21631 | bool result; | |
21632 | PyObject * obj0 = 0 ; | |
21633 | char *kwnames[] = { | |
21634 | (char *) "self", NULL | |
21635 | }; | |
21636 | ||
21637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
21638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21640 | { | |
21641 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21642 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
21643 | ||
21644 | wxPyEndAllowThreads(__tstate); | |
21645 | if (PyErr_Occurred()) SWIG_fail; | |
21646 | } | |
4f89f6a3 RD |
21647 | { |
21648 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21649 | } | |
fe763115 RD |
21650 | return resultobj; |
21651 | fail: | |
21652 | return NULL; | |
21653 | } | |
21654 | ||
21655 | ||
d14a1e28 RD |
21656 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
21657 | PyObject *resultobj; | |
21658 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21659 | bool result; | |
21660 | PyObject * obj0 = 0 ; | |
21661 | char *kwnames[] = { | |
21662 | (char *) "self", NULL | |
21663 | }; | |
21664 | ||
21665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21668 | { |
21669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21670 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21671 | ||
21672 | wxPyEndAllowThreads(__tstate); | |
21673 | if (PyErr_Occurred()) SWIG_fail; | |
21674 | } | |
4f89f6a3 RD |
21675 | { |
21676 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21677 | } | |
d14a1e28 RD |
21678 | return resultobj; |
21679 | fail: | |
21680 | return NULL; | |
21681 | } | |
21682 | ||
21683 | ||
21684 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21685 | PyObject *resultobj; | |
21686 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21687 | long arg2 ; | |
21688 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21689 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21690 | char *kwnames[] = { |
21691 | (char *) "self",(char *) "item", NULL | |
21692 | }; | |
21693 | ||
8edf1c75 | 21694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21697 | arg2 = (long) SWIG_AsLong(obj1); | |
21698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21699 | { |
21700 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21701 | (arg1)->RefreshItem(arg2); | |
21702 | ||
21703 | wxPyEndAllowThreads(__tstate); | |
21704 | if (PyErr_Occurred()) SWIG_fail; | |
21705 | } | |
21706 | Py_INCREF(Py_None); resultobj = Py_None; | |
21707 | return resultobj; | |
21708 | fail: | |
21709 | return NULL; | |
21710 | } | |
21711 | ||
21712 | ||
21713 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21714 | PyObject *resultobj; | |
21715 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21716 | long arg2 ; | |
21717 | long arg3 ; | |
21718 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21719 | PyObject * obj1 = 0 ; |
21720 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21721 | char *kwnames[] = { |
21722 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21723 | }; | |
21724 | ||
8edf1c75 | 21725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21728 | arg2 = (long) SWIG_AsLong(obj1); | |
21729 | if (PyErr_Occurred()) SWIG_fail; | |
21730 | arg3 = (long) SWIG_AsLong(obj2); | |
21731 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21732 | { |
21733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21734 | (arg1)->RefreshItems(arg2,arg3); | |
21735 | ||
21736 | wxPyEndAllowThreads(__tstate); | |
21737 | if (PyErr_Occurred()) SWIG_fail; | |
21738 | } | |
21739 | Py_INCREF(Py_None); resultobj = Py_None; | |
21740 | return resultobj; | |
21741 | fail: | |
21742 | return NULL; | |
21743 | } | |
21744 | ||
21745 | ||
21746 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21747 | PyObject *resultobj; | |
21748 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21749 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21750 | bool result; | |
21751 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21752 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21753 | char *kwnames[] = { |
21754 | (char *) "self",(char *) "flag", NULL | |
21755 | }; | |
21756 | ||
8edf1c75 | 21757 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21758 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21759 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 21760 | if (obj1) { |
2f4c0a16 RD |
21761 | arg2 = (int) SWIG_AsInt(obj1); |
21762 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21763 | } |
d14a1e28 RD |
21764 | { |
21765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21766 | result = (bool)(arg1)->Arrange(arg2); | |
21767 | ||
21768 | wxPyEndAllowThreads(__tstate); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | } | |
4f89f6a3 RD |
21771 | { |
21772 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21773 | } | |
d14a1e28 RD |
21774 | return resultobj; |
21775 | fail: | |
21776 | return NULL; | |
21777 | } | |
21778 | ||
21779 | ||
21780 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21781 | PyObject *resultobj; | |
21782 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21783 | long arg2 ; | |
21784 | bool result; | |
21785 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21786 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21787 | char *kwnames[] = { |
21788 | (char *) "self",(char *) "item", NULL | |
21789 | }; | |
21790 | ||
8edf1c75 | 21791 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21792 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21794 | arg2 = (long) SWIG_AsLong(obj1); | |
21795 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21796 | { |
21797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21798 | result = (bool)(arg1)->DeleteItem(arg2); | |
21799 | ||
21800 | wxPyEndAllowThreads(__tstate); | |
21801 | if (PyErr_Occurred()) SWIG_fail; | |
21802 | } | |
4f89f6a3 RD |
21803 | { |
21804 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21805 | } | |
d14a1e28 RD |
21806 | return resultobj; |
21807 | fail: | |
21808 | return NULL; | |
21809 | } | |
21810 | ||
21811 | ||
21812 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21813 | PyObject *resultobj; | |
21814 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21815 | bool result; | |
21816 | PyObject * obj0 = 0 ; | |
21817 | char *kwnames[] = { | |
21818 | (char *) "self", NULL | |
21819 | }; | |
21820 | ||
21821 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21822 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21823 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21824 | { |
21825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21826 | result = (bool)(arg1)->DeleteAllItems(); | |
21827 | ||
21828 | wxPyEndAllowThreads(__tstate); | |
21829 | if (PyErr_Occurred()) SWIG_fail; | |
21830 | } | |
4f89f6a3 RD |
21831 | { |
21832 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21833 | } | |
d14a1e28 RD |
21834 | return resultobj; |
21835 | fail: | |
21836 | return NULL; | |
21837 | } | |
21838 | ||
21839 | ||
21840 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21841 | PyObject *resultobj; | |
21842 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21843 | int arg2 ; | |
21844 | bool result; | |
21845 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21846 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21847 | char *kwnames[] = { |
21848 | (char *) "self",(char *) "col", NULL | |
21849 | }; | |
21850 | ||
8edf1c75 | 21851 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21852 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21853 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21854 | arg2 = (int) SWIG_AsInt(obj1); | |
21855 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21856 | { |
21857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21858 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21859 | ||
21860 | wxPyEndAllowThreads(__tstate); | |
21861 | if (PyErr_Occurred()) SWIG_fail; | |
21862 | } | |
4f89f6a3 RD |
21863 | { |
21864 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21865 | } | |
d14a1e28 RD |
21866 | return resultobj; |
21867 | fail: | |
21868 | return NULL; | |
21869 | } | |
21870 | ||
21871 | ||
21872 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21873 | PyObject *resultobj; | |
21874 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21875 | bool result; | |
21876 | PyObject * obj0 = 0 ; | |
21877 | char *kwnames[] = { | |
21878 | (char *) "self", NULL | |
21879 | }; | |
21880 | ||
21881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21884 | { |
21885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21886 | result = (bool)(arg1)->DeleteAllColumns(); | |
21887 | ||
21888 | wxPyEndAllowThreads(__tstate); | |
21889 | if (PyErr_Occurred()) SWIG_fail; | |
21890 | } | |
4f89f6a3 RD |
21891 | { |
21892 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21893 | } | |
d14a1e28 RD |
21894 | return resultobj; |
21895 | fail: | |
21896 | return NULL; | |
21897 | } | |
21898 | ||
21899 | ||
21900 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21901 | PyObject *resultobj; | |
21902 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21903 | PyObject * obj0 = 0 ; | |
21904 | char *kwnames[] = { | |
21905 | (char *) "self", NULL | |
21906 | }; | |
21907 | ||
21908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21911 | { |
21912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21913 | (arg1)->ClearAll(); | |
21914 | ||
21915 | wxPyEndAllowThreads(__tstate); | |
21916 | if (PyErr_Occurred()) SWIG_fail; | |
21917 | } | |
21918 | Py_INCREF(Py_None); resultobj = Py_None; | |
21919 | return resultobj; | |
21920 | fail: | |
21921 | return NULL; | |
21922 | } | |
21923 | ||
21924 | ||
21925 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21926 | PyObject *resultobj; | |
21927 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21928 | long arg2 ; | |
21929 | wxTextCtrl *result; | |
21930 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21931 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21932 | char *kwnames[] = { |
21933 | (char *) "self",(char *) "item", NULL | |
21934 | }; | |
21935 | ||
8edf1c75 | 21936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21939 | arg2 = (long) SWIG_AsLong(obj1); | |
21940 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21941 | { |
21942 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21943 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21944 | ||
21945 | wxPyEndAllowThreads(__tstate); | |
21946 | if (PyErr_Occurred()) SWIG_fail; | |
21947 | } | |
21948 | { | |
21949 | resultobj = wxPyMake_wxObject(result); | |
21950 | } | |
21951 | return resultobj; | |
21952 | fail: | |
21953 | return NULL; | |
21954 | } | |
21955 | ||
21956 | ||
21957 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21958 | PyObject *resultobj; | |
21959 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21960 | bool arg2 ; | |
21961 | bool result; | |
21962 | PyObject * obj0 = 0 ; | |
21963 | PyObject * obj1 = 0 ; | |
21964 | char *kwnames[] = { | |
21965 | (char *) "self",(char *) "cancel", NULL | |
21966 | }; | |
21967 | ||
21968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21971 | arg2 = (bool) SWIG_AsBool(obj1); | |
21972 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21973 | { |
21974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21975 | result = (bool)(arg1)->EndEditLabel(arg2); | |
21976 | ||
21977 | wxPyEndAllowThreads(__tstate); | |
21978 | if (PyErr_Occurred()) SWIG_fail; | |
21979 | } | |
4f89f6a3 RD |
21980 | { |
21981 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21982 | } | |
d14a1e28 RD |
21983 | return resultobj; |
21984 | fail: | |
21985 | return NULL; | |
21986 | } | |
21987 | ||
21988 | ||
21989 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21990 | PyObject *resultobj; | |
21991 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21992 | long arg2 ; | |
21993 | bool result; | |
21994 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21995 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21996 | char *kwnames[] = { |
21997 | (char *) "self",(char *) "item", NULL | |
21998 | }; | |
21999 | ||
8edf1c75 | 22000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22003 | arg2 = (long) SWIG_AsLong(obj1); | |
22004 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22005 | { |
22006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22007 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22008 | ||
22009 | wxPyEndAllowThreads(__tstate); | |
22010 | if (PyErr_Occurred()) SWIG_fail; | |
22011 | } | |
4f89f6a3 RD |
22012 | { |
22013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22014 | } | |
d14a1e28 RD |
22015 | return resultobj; |
22016 | fail: | |
22017 | return NULL; | |
22018 | } | |
22019 | ||
22020 | ||
22021 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22022 | PyObject *resultobj; | |
22023 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22024 | long arg2 ; | |
22025 | wxString *arg3 = 0 ; | |
423f194a | 22026 | bool arg4 = (bool) False ; |
d14a1e28 | 22027 | long result; |
423f194a | 22028 | bool temp3 = False ; |
d14a1e28 | 22029 | PyObject * obj0 = 0 ; |
8edf1c75 | 22030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22031 | PyObject * obj2 = 0 ; |
22032 | PyObject * obj3 = 0 ; | |
22033 | char *kwnames[] = { | |
22034 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22035 | }; | |
22036 | ||
8edf1c75 | 22037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22040 | arg2 = (long) SWIG_AsLong(obj1); | |
22041 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22042 | { |
22043 | arg3 = wxString_in_helper(obj2); | |
22044 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22045 | temp3 = True; |
d14a1e28 RD |
22046 | } |
22047 | if (obj3) { | |
2f4c0a16 RD |
22048 | arg4 = (bool) SWIG_AsBool(obj3); |
22049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22050 | } |
22051 | { | |
22052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22053 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22054 | ||
22055 | wxPyEndAllowThreads(__tstate); | |
22056 | if (PyErr_Occurred()) SWIG_fail; | |
22057 | } | |
2f4c0a16 | 22058 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22059 | { |
22060 | if (temp3) | |
22061 | delete arg3; | |
22062 | } | |
22063 | return resultobj; | |
22064 | fail: | |
22065 | { | |
22066 | if (temp3) | |
22067 | delete arg3; | |
22068 | } | |
22069 | return NULL; | |
22070 | } | |
22071 | ||
22072 | ||
22073 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22074 | PyObject *resultobj; | |
22075 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22076 | long arg2 ; | |
22077 | long arg3 ; | |
22078 | long result; | |
22079 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22080 | PyObject * obj1 = 0 ; |
22081 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22082 | char *kwnames[] = { |
22083 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22084 | }; | |
22085 | ||
8edf1c75 | 22086 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22087 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22088 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22089 | arg2 = (long) SWIG_AsLong(obj1); | |
22090 | if (PyErr_Occurred()) SWIG_fail; | |
22091 | arg3 = (long) SWIG_AsLong(obj2); | |
22092 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22093 | { |
22094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22095 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22096 | ||
22097 | wxPyEndAllowThreads(__tstate); | |
22098 | if (PyErr_Occurred()) SWIG_fail; | |
22099 | } | |
2f4c0a16 | 22100 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22101 | return resultobj; |
22102 | fail: | |
22103 | return NULL; | |
22104 | } | |
22105 | ||
22106 | ||
22107 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22108 | PyObject *resultobj; | |
22109 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22110 | long arg2 ; | |
22111 | wxPoint *arg3 = 0 ; | |
22112 | int arg4 ; | |
22113 | long result; | |
22114 | wxPoint temp3 ; | |
22115 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22116 | PyObject * obj1 = 0 ; |
d14a1e28 | 22117 | PyObject * obj2 = 0 ; |
8edf1c75 | 22118 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22119 | char *kwnames[] = { |
22120 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22121 | }; | |
22122 | ||
8edf1c75 | 22123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22126 | arg2 = (long) SWIG_AsLong(obj1); | |
22127 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22128 | { |
22129 | arg3 = &temp3; | |
22130 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22131 | } | |
2f4c0a16 RD |
22132 | arg4 = (int) SWIG_AsInt(obj3); |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22134 | { |
22135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22136 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22137 | ||
22138 | wxPyEndAllowThreads(__tstate); | |
22139 | if (PyErr_Occurred()) SWIG_fail; | |
22140 | } | |
2f4c0a16 | 22141 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22142 | return resultobj; |
22143 | fail: | |
22144 | return NULL; | |
22145 | } | |
22146 | ||
22147 | ||
22148 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22149 | PyObject *resultobj; | |
22150 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22151 | wxPoint *arg2 = 0 ; | |
22152 | int *arg3 = 0 ; | |
22153 | long result; | |
22154 | wxPoint temp2 ; | |
22155 | int temp3 ; | |
22156 | PyObject * obj0 = 0 ; | |
22157 | PyObject * obj1 = 0 ; | |
22158 | char *kwnames[] = { | |
22159 | (char *) "self",(char *) "point", NULL | |
22160 | }; | |
22161 | ||
22162 | arg3 = &temp3; | |
22163 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22164 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22165 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22166 | { |
22167 | arg2 = &temp2; | |
22168 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22169 | } | |
22170 | { | |
22171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22172 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22173 | ||
22174 | wxPyEndAllowThreads(__tstate); | |
22175 | if (PyErr_Occurred()) SWIG_fail; | |
22176 | } | |
2f4c0a16 | 22177 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22178 | { |
22179 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22180 | resultobj = t_output_helper(resultobj,o); | |
22181 | } | |
22182 | return resultobj; | |
22183 | fail: | |
22184 | return NULL; | |
22185 | } | |
22186 | ||
22187 | ||
22188 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22189 | PyObject *resultobj; | |
22190 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22191 | wxListItem *arg2 = 0 ; | |
22192 | long result; | |
22193 | PyObject * obj0 = 0 ; | |
22194 | PyObject * obj1 = 0 ; | |
22195 | char *kwnames[] = { | |
22196 | (char *) "self",(char *) "info", NULL | |
22197 | }; | |
22198 | ||
22199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22203 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22204 | SWIG_fail; | |
d14a1e28 | 22205 | if (arg2 == NULL) { |
2f4c0a16 RD |
22206 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22207 | SWIG_fail; | |
d14a1e28 RD |
22208 | } |
22209 | { | |
22210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22211 | result = (long)(arg1)->InsertItem(*arg2); | |
22212 | ||
22213 | wxPyEndAllowThreads(__tstate); | |
22214 | if (PyErr_Occurred()) SWIG_fail; | |
22215 | } | |
2f4c0a16 | 22216 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22217 | return resultobj; |
22218 | fail: | |
22219 | return NULL; | |
22220 | } | |
22221 | ||
22222 | ||
22223 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22224 | PyObject *resultobj; | |
22225 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22226 | long arg2 ; | |
22227 | wxString *arg3 = 0 ; | |
22228 | long result; | |
423f194a | 22229 | bool temp3 = False ; |
d14a1e28 | 22230 | PyObject * obj0 = 0 ; |
8edf1c75 | 22231 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22232 | PyObject * obj2 = 0 ; |
22233 | char *kwnames[] = { | |
22234 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22235 | }; | |
22236 | ||
8edf1c75 | 22237 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22240 | arg2 = (long) SWIG_AsLong(obj1); | |
22241 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22242 | { |
22243 | arg3 = wxString_in_helper(obj2); | |
22244 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22245 | temp3 = True; |
d14a1e28 RD |
22246 | } |
22247 | { | |
22248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22249 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22250 | ||
22251 | wxPyEndAllowThreads(__tstate); | |
22252 | if (PyErr_Occurred()) SWIG_fail; | |
22253 | } | |
2f4c0a16 | 22254 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22255 | { |
22256 | if (temp3) | |
22257 | delete arg3; | |
22258 | } | |
22259 | return resultobj; | |
22260 | fail: | |
22261 | { | |
22262 | if (temp3) | |
22263 | delete arg3; | |
22264 | } | |
22265 | return NULL; | |
22266 | } | |
22267 | ||
22268 | ||
22269 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22270 | PyObject *resultobj; | |
22271 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22272 | long arg2 ; | |
22273 | int arg3 ; | |
22274 | long result; | |
22275 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22276 | PyObject * obj1 = 0 ; |
22277 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22278 | char *kwnames[] = { |
22279 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22280 | }; | |
22281 | ||
8edf1c75 | 22282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22285 | arg2 = (long) SWIG_AsLong(obj1); | |
22286 | if (PyErr_Occurred()) SWIG_fail; | |
22287 | arg3 = (int) SWIG_AsInt(obj2); | |
22288 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22289 | { |
22290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22291 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22292 | ||
22293 | wxPyEndAllowThreads(__tstate); | |
22294 | if (PyErr_Occurred()) SWIG_fail; | |
22295 | } | |
2f4c0a16 | 22296 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22297 | return resultobj; |
22298 | fail: | |
22299 | return NULL; | |
22300 | } | |
22301 | ||
22302 | ||
22303 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22304 | PyObject *resultobj; | |
22305 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22306 | long arg2 ; | |
22307 | wxString *arg3 = 0 ; | |
22308 | int arg4 ; | |
22309 | long result; | |
423f194a | 22310 | bool temp3 = False ; |
d14a1e28 | 22311 | PyObject * obj0 = 0 ; |
8edf1c75 | 22312 | PyObject * obj1 = 0 ; |
d14a1e28 | 22313 | PyObject * obj2 = 0 ; |
8edf1c75 | 22314 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22315 | char *kwnames[] = { |
22316 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22317 | }; | |
22318 | ||
8edf1c75 | 22319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22322 | arg2 = (long) SWIG_AsLong(obj1); | |
22323 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22324 | { |
22325 | arg3 = wxString_in_helper(obj2); | |
22326 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22327 | temp3 = True; |
d14a1e28 | 22328 | } |
2f4c0a16 RD |
22329 | arg4 = (int) SWIG_AsInt(obj3); |
22330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22331 | { |
22332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22333 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22334 | ||
22335 | wxPyEndAllowThreads(__tstate); | |
22336 | if (PyErr_Occurred()) SWIG_fail; | |
22337 | } | |
2f4c0a16 | 22338 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22339 | { |
22340 | if (temp3) | |
22341 | delete arg3; | |
22342 | } | |
22343 | return resultobj; | |
22344 | fail: | |
22345 | { | |
22346 | if (temp3) | |
22347 | delete arg3; | |
22348 | } | |
22349 | return NULL; | |
22350 | } | |
22351 | ||
22352 | ||
22353 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22354 | PyObject *resultobj; | |
22355 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22356 | long arg2 ; | |
22357 | wxListItem *arg3 = 0 ; | |
22358 | long result; | |
22359 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22361 | PyObject * obj2 = 0 ; |
22362 | char *kwnames[] = { | |
22363 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22364 | }; | |
22365 | ||
8edf1c75 | 22366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22369 | arg2 = (long) SWIG_AsLong(obj1); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
22371 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22372 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22373 | SWIG_fail; | |
d14a1e28 | 22374 | if (arg3 == NULL) { |
2f4c0a16 RD |
22375 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22376 | SWIG_fail; | |
d14a1e28 RD |
22377 | } |
22378 | { | |
22379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22380 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22381 | ||
22382 | wxPyEndAllowThreads(__tstate); | |
22383 | if (PyErr_Occurred()) SWIG_fail; | |
22384 | } | |
2f4c0a16 | 22385 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22386 | return resultobj; |
22387 | fail: | |
22388 | return NULL; | |
22389 | } | |
22390 | ||
22391 | ||
22392 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22393 | PyObject *resultobj; | |
22394 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22395 | long arg2 ; | |
22396 | wxString *arg3 = 0 ; | |
22397 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22398 | int arg5 = (int) -1 ; | |
22399 | long result; | |
423f194a | 22400 | bool temp3 = False ; |
d14a1e28 | 22401 | PyObject * obj0 = 0 ; |
8edf1c75 | 22402 | PyObject * obj1 = 0 ; |
d14a1e28 | 22403 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22404 | PyObject * obj3 = 0 ; |
22405 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22406 | char *kwnames[] = { |
22407 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22408 | }; | |
22409 | ||
8edf1c75 | 22410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22411 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22412 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22413 | arg2 = (long) SWIG_AsLong(obj1); | |
22414 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22415 | { |
22416 | arg3 = wxString_in_helper(obj2); | |
22417 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22418 | temp3 = True; |
d14a1e28 | 22419 | } |
8edf1c75 | 22420 | if (obj3) { |
2f4c0a16 RD |
22421 | arg4 = (int) SWIG_AsInt(obj3); |
22422 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22423 | } |
22424 | if (obj4) { | |
2f4c0a16 RD |
22425 | arg5 = (int) SWIG_AsInt(obj4); |
22426 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22427 | } |
d14a1e28 RD |
22428 | { |
22429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22430 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22431 | ||
22432 | wxPyEndAllowThreads(__tstate); | |
22433 | if (PyErr_Occurred()) SWIG_fail; | |
22434 | } | |
2f4c0a16 | 22435 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22436 | { |
22437 | if (temp3) | |
22438 | delete arg3; | |
22439 | } | |
22440 | return resultobj; | |
22441 | fail: | |
22442 | { | |
22443 | if (temp3) | |
22444 | delete arg3; | |
22445 | } | |
22446 | return NULL; | |
22447 | } | |
22448 | ||
22449 | ||
22450 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22451 | PyObject *resultobj; | |
22452 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22453 | long arg2 ; | |
22454 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22455 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22456 | char *kwnames[] = { |
22457 | (char *) "self",(char *) "count", NULL | |
22458 | }; | |
22459 | ||
8edf1c75 | 22460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22463 | arg2 = (long) SWIG_AsLong(obj1); | |
22464 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22465 | { |
22466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22467 | (arg1)->SetItemCount(arg2); | |
22468 | ||
22469 | wxPyEndAllowThreads(__tstate); | |
22470 | if (PyErr_Occurred()) SWIG_fail; | |
22471 | } | |
22472 | Py_INCREF(Py_None); resultobj = Py_None; | |
22473 | return resultobj; | |
22474 | fail: | |
22475 | return NULL; | |
22476 | } | |
22477 | ||
22478 | ||
22479 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22480 | PyObject *resultobj; | |
22481 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22482 | int arg2 ; | |
22483 | int arg3 ; | |
22484 | bool result; | |
22485 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22486 | PyObject * obj1 = 0 ; |
22487 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22488 | char *kwnames[] = { |
22489 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22490 | }; | |
22491 | ||
8edf1c75 | 22492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22495 | arg2 = (int) SWIG_AsInt(obj1); | |
22496 | if (PyErr_Occurred()) SWIG_fail; | |
22497 | arg3 = (int) SWIG_AsInt(obj2); | |
22498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22499 | { |
22500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22501 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22502 | ||
22503 | wxPyEndAllowThreads(__tstate); | |
22504 | if (PyErr_Occurred()) SWIG_fail; | |
22505 | } | |
4f89f6a3 RD |
22506 | { |
22507 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22508 | } | |
d14a1e28 RD |
22509 | return resultobj; |
22510 | fail: | |
22511 | return NULL; | |
22512 | } | |
22513 | ||
22514 | ||
22515 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22516 | PyObject *resultobj; | |
22517 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22518 | long arg2 ; | |
22519 | wxColour *arg3 = 0 ; | |
22520 | wxColour temp3 ; | |
22521 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22522 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22523 | PyObject * obj2 = 0 ; |
22524 | char *kwnames[] = { | |
22525 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22526 | }; | |
22527 | ||
8edf1c75 | 22528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22531 | arg2 = (long) SWIG_AsLong(obj1); | |
22532 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22533 | { |
22534 | arg3 = &temp3; | |
22535 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22536 | } | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
22544 | Py_INCREF(Py_None); resultobj = Py_None; | |
22545 | return resultobj; | |
22546 | fail: | |
22547 | return NULL; | |
22548 | } | |
22549 | ||
22550 | ||
22551 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22552 | PyObject *resultobj; | |
22553 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22554 | long arg2 ; | |
22555 | wxColour result; | |
22556 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22557 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22558 | char *kwnames[] = { |
22559 | (char *) "self",(char *) "item", NULL | |
22560 | }; | |
22561 | ||
8edf1c75 | 22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22565 | arg2 = (long) SWIG_AsLong(obj1); | |
22566 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22567 | { |
22568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22569 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22570 | ||
22571 | wxPyEndAllowThreads(__tstate); | |
22572 | if (PyErr_Occurred()) SWIG_fail; | |
22573 | } | |
22574 | { | |
22575 | wxColour * resultptr; | |
22576 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22578 | } |
22579 | return resultobj; | |
22580 | fail: | |
22581 | return NULL; | |
22582 | } | |
22583 | ||
22584 | ||
22585 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22586 | PyObject *resultobj; | |
22587 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22588 | long arg2 ; | |
22589 | wxColour *arg3 = 0 ; | |
22590 | wxColour temp3 ; | |
22591 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22592 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22593 | PyObject * obj2 = 0 ; |
22594 | char *kwnames[] = { | |
22595 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22596 | }; | |
22597 | ||
8edf1c75 | 22598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22601 | arg2 = (long) SWIG_AsLong(obj1); | |
22602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22603 | { |
22604 | arg3 = &temp3; | |
22605 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22606 | } | |
22607 | { | |
22608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22609 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22610 | ||
22611 | wxPyEndAllowThreads(__tstate); | |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
22613 | } | |
22614 | Py_INCREF(Py_None); resultobj = Py_None; | |
22615 | return resultobj; | |
22616 | fail: | |
22617 | return NULL; | |
22618 | } | |
22619 | ||
22620 | ||
22621 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22622 | PyObject *resultobj; | |
22623 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22624 | long arg2 ; | |
22625 | wxColour result; | |
22626 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22627 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22628 | char *kwnames[] = { |
22629 | (char *) "self",(char *) "item", NULL | |
22630 | }; | |
22631 | ||
8edf1c75 | 22632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22635 | arg2 = (long) SWIG_AsLong(obj1); | |
22636 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22637 | { |
22638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22639 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22640 | ||
22641 | wxPyEndAllowThreads(__tstate); | |
22642 | if (PyErr_Occurred()) SWIG_fail; | |
22643 | } | |
22644 | { | |
22645 | wxColour * resultptr; | |
22646 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22647 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22648 | } |
22649 | return resultobj; | |
22650 | fail: | |
22651 | return NULL; | |
22652 | } | |
22653 | ||
22654 | ||
22655 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22656 | PyObject *resultobj; | |
22657 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22658 | PyObject *arg2 = (PyObject *) 0 ; | |
22659 | bool result; | |
22660 | PyObject * obj0 = 0 ; | |
22661 | PyObject * obj1 = 0 ; | |
22662 | char *kwnames[] = { | |
22663 | (char *) "self",(char *) "func", NULL | |
22664 | }; | |
22665 | ||
22666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22669 | arg2 = obj1; |
22670 | { | |
22671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22672 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22673 | ||
22674 | wxPyEndAllowThreads(__tstate); | |
22675 | if (PyErr_Occurred()) SWIG_fail; | |
22676 | } | |
4f89f6a3 RD |
22677 | { |
22678 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22679 | } | |
d14a1e28 RD |
22680 | return resultobj; |
22681 | fail: | |
22682 | return NULL; | |
22683 | } | |
22684 | ||
22685 | ||
22686 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22687 | PyObject *resultobj; | |
22688 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22689 | wxWindow *result; | |
22690 | PyObject * obj0 = 0 ; | |
22691 | char *kwnames[] = { | |
22692 | (char *) "self", NULL | |
22693 | }; | |
22694 | ||
22695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22698 | { |
22699 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22700 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22701 | ||
22702 | wxPyEndAllowThreads(__tstate); | |
22703 | if (PyErr_Occurred()) SWIG_fail; | |
22704 | } | |
22705 | { | |
22706 | resultobj = wxPyMake_wxObject(result); | |
22707 | } | |
22708 | return resultobj; | |
22709 | fail: | |
22710 | return NULL; | |
22711 | } | |
22712 | ||
22713 | ||
22714 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22715 | PyObject *obj; | |
22716 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22717 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22718 | Py_INCREF(obj); | |
22719 | return Py_BuildValue((char *)""); | |
22720 | } | |
22721 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22722 | PyObject *resultobj; | |
22723 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22724 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22725 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22726 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22727 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22728 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22729 | long arg5 = (long) wxLC_REPORT ; | |
22730 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22731 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22732 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22733 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22734 | wxListView *result; | |
22735 | wxPoint temp3 ; | |
22736 | wxSize temp4 ; | |
423f194a | 22737 | bool temp7 = False ; |
d14a1e28 | 22738 | PyObject * obj0 = 0 ; |
8edf1c75 | 22739 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22740 | PyObject * obj2 = 0 ; |
22741 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22742 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22743 | PyObject * obj5 = 0 ; |
22744 | PyObject * obj6 = 0 ; | |
22745 | char *kwnames[] = { | |
22746 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22747 | }; | |
22748 | ||
8edf1c75 | 22749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22752 | if (obj1) { |
2f4c0a16 RD |
22753 | arg2 = (int) SWIG_AsInt(obj1); |
22754 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22755 | } |
d14a1e28 RD |
22756 | if (obj2) { |
22757 | { | |
22758 | arg3 = &temp3; | |
22759 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22760 | } | |
22761 | } | |
22762 | if (obj3) { | |
22763 | { | |
22764 | arg4 = &temp4; | |
22765 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22766 | } | |
22767 | } | |
8edf1c75 | 22768 | if (obj4) { |
2f4c0a16 RD |
22769 | arg5 = (long) SWIG_AsLong(obj4); |
22770 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22771 | } |
d14a1e28 | 22772 | if (obj5) { |
2f4c0a16 RD |
22773 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
22774 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22775 | SWIG_fail; | |
d14a1e28 | 22776 | if (arg6 == NULL) { |
2f4c0a16 RD |
22777 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22778 | SWIG_fail; | |
d14a1e28 RD |
22779 | } |
22780 | } | |
22781 | if (obj6) { | |
22782 | { | |
22783 | arg7 = wxString_in_helper(obj6); | |
22784 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22785 | temp7 = True; |
d14a1e28 RD |
22786 | } |
22787 | } | |
22788 | { | |
22789 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22790 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22791 | ||
22792 | wxPyEndAllowThreads(__tstate); | |
22793 | if (PyErr_Occurred()) SWIG_fail; | |
22794 | } | |
2f4c0a16 | 22795 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22796 | { |
22797 | if (temp7) | |
22798 | delete arg7; | |
22799 | } | |
22800 | return resultobj; | |
22801 | fail: | |
22802 | { | |
22803 | if (temp7) | |
22804 | delete arg7; | |
22805 | } | |
22806 | return NULL; | |
22807 | } | |
22808 | ||
22809 | ||
22810 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22811 | PyObject *resultobj; | |
22812 | wxListView *result; | |
22813 | char *kwnames[] = { | |
22814 | NULL | |
22815 | }; | |
22816 | ||
22817 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22818 | { | |
22819 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22820 | result = (wxListView *)new wxListView(); | |
22821 | ||
22822 | wxPyEndAllowThreads(__tstate); | |
22823 | if (PyErr_Occurred()) SWIG_fail; | |
22824 | } | |
2f4c0a16 | 22825 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22826 | return resultobj; |
22827 | fail: | |
22828 | return NULL; | |
22829 | } | |
22830 | ||
22831 | ||
22832 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22833 | PyObject *resultobj; | |
22834 | wxListView *arg1 = (wxListView *) 0 ; | |
22835 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22836 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22837 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22838 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22839 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22840 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22841 | long arg6 = (long) wxLC_REPORT ; | |
22842 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22843 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22844 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22845 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22846 | bool result; | |
22847 | wxPoint temp4 ; | |
22848 | wxSize temp5 ; | |
423f194a | 22849 | bool temp8 = False ; |
d14a1e28 RD |
22850 | PyObject * obj0 = 0 ; |
22851 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22852 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22853 | PyObject * obj3 = 0 ; |
22854 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22855 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22856 | PyObject * obj6 = 0 ; |
22857 | PyObject * obj7 = 0 ; | |
22858 | char *kwnames[] = { | |
22859 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22860 | }; | |
22861 | ||
8edf1c75 | 22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
22863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
22864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22865 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22867 | if (obj2) { |
2f4c0a16 RD |
22868 | arg3 = (int) SWIG_AsInt(obj2); |
22869 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22870 | } |
d14a1e28 RD |
22871 | if (obj3) { |
22872 | { | |
22873 | arg4 = &temp4; | |
22874 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22875 | } | |
22876 | } | |
22877 | if (obj4) { | |
22878 | { | |
22879 | arg5 = &temp5; | |
22880 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22881 | } | |
22882 | } | |
8edf1c75 | 22883 | if (obj5) { |
2f4c0a16 RD |
22884 | arg6 = (long) SWIG_AsLong(obj5); |
22885 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22886 | } |
d14a1e28 | 22887 | if (obj6) { |
2f4c0a16 RD |
22888 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
22889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22890 | SWIG_fail; | |
d14a1e28 | 22891 | if (arg7 == NULL) { |
2f4c0a16 RD |
22892 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22893 | SWIG_fail; | |
d14a1e28 RD |
22894 | } |
22895 | } | |
22896 | if (obj7) { | |
22897 | { | |
22898 | arg8 = wxString_in_helper(obj7); | |
22899 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22900 | temp8 = True; |
d14a1e28 RD |
22901 | } |
22902 | } | |
22903 | { | |
22904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22905 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22906 | ||
22907 | wxPyEndAllowThreads(__tstate); | |
22908 | if (PyErr_Occurred()) SWIG_fail; | |
22909 | } | |
4f89f6a3 RD |
22910 | { |
22911 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22912 | } | |
d14a1e28 RD |
22913 | { |
22914 | if (temp8) | |
22915 | delete arg8; | |
22916 | } | |
22917 | return resultobj; | |
22918 | fail: | |
22919 | { | |
22920 | if (temp8) | |
22921 | delete arg8; | |
22922 | } | |
22923 | return NULL; | |
22924 | } | |
22925 | ||
22926 | ||
22927 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22928 | PyObject *resultobj; | |
22929 | wxListView *arg1 = (wxListView *) 0 ; | |
22930 | long arg2 ; | |
423f194a | 22931 | bool arg3 = (bool) True ; |
d14a1e28 | 22932 | PyObject * obj0 = 0 ; |
8edf1c75 | 22933 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22934 | PyObject * obj2 = 0 ; |
22935 | char *kwnames[] = { | |
22936 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22937 | }; | |
22938 | ||
8edf1c75 | 22939 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22940 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
22941 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22942 | arg2 = (long) SWIG_AsLong(obj1); | |
22943 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22944 | if (obj2) { |
2f4c0a16 RD |
22945 | arg3 = (bool) SWIG_AsBool(obj2); |
22946 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22947 | } |
22948 | { | |
22949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22950 | (arg1)->Select(arg2,arg3); | |
22951 | ||
22952 | wxPyEndAllowThreads(__tstate); | |
22953 | if (PyErr_Occurred()) SWIG_fail; | |
22954 | } | |
22955 | Py_INCREF(Py_None); resultobj = Py_None; | |
22956 | return resultobj; | |
22957 | fail: | |
22958 | return NULL; | |
22959 | } | |
22960 | ||
22961 | ||
22962 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22963 | PyObject *resultobj; | |
22964 | wxListView *arg1 = (wxListView *) 0 ; | |
22965 | long arg2 ; | |
22966 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22967 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22968 | char *kwnames[] = { |
22969 | (char *) "self",(char *) "index", NULL | |
22970 | }; | |
22971 | ||
2f4c0a16 RD |
22972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
22973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22975 | arg2 = (long) SWIG_AsLong(obj1); | |
22976 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22977 | { |
22978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22979 | (arg1)->Focus(arg2); | |
22980 | ||
22981 | wxPyEndAllowThreads(__tstate); | |
22982 | if (PyErr_Occurred()) SWIG_fail; | |
22983 | } | |
22984 | Py_INCREF(Py_None); resultobj = Py_None; | |
22985 | return resultobj; | |
22986 | fail: | |
22987 | return NULL; | |
22988 | } | |
22989 | ||
22990 | ||
22991 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22992 | PyObject *resultobj; | |
22993 | wxListView *arg1 = (wxListView *) 0 ; | |
22994 | long result; | |
22995 | PyObject * obj0 = 0 ; | |
22996 | char *kwnames[] = { | |
22997 | (char *) "self", NULL | |
22998 | }; | |
22999 | ||
23000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23003 | { |
23004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23005 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23006 | ||
23007 | wxPyEndAllowThreads(__tstate); | |
23008 | if (PyErr_Occurred()) SWIG_fail; | |
23009 | } | |
2f4c0a16 | 23010 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23011 | return resultobj; |
23012 | fail: | |
23013 | return NULL; | |
23014 | } | |
23015 | ||
23016 | ||
23017 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23018 | PyObject *resultobj; | |
23019 | wxListView *arg1 = (wxListView *) 0 ; | |
23020 | long arg2 ; | |
23021 | long result; | |
23022 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23023 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23024 | char *kwnames[] = { |
23025 | (char *) "self",(char *) "item", NULL | |
23026 | }; | |
23027 | ||
8edf1c75 | 23028 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23029 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23030 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23031 | arg2 = (long) SWIG_AsLong(obj1); | |
23032 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23033 | { |
23034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23035 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23036 | ||
23037 | wxPyEndAllowThreads(__tstate); | |
23038 | if (PyErr_Occurred()) SWIG_fail; | |
23039 | } | |
2f4c0a16 | 23040 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23041 | return resultobj; |
23042 | fail: | |
23043 | return NULL; | |
23044 | } | |
23045 | ||
23046 | ||
23047 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23048 | PyObject *resultobj; | |
23049 | wxListView *arg1 = (wxListView *) 0 ; | |
23050 | long result; | |
23051 | PyObject * obj0 = 0 ; | |
23052 | char *kwnames[] = { | |
23053 | (char *) "self", NULL | |
23054 | }; | |
23055 | ||
23056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23059 | { |
23060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23061 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23062 | ||
23063 | wxPyEndAllowThreads(__tstate); | |
23064 | if (PyErr_Occurred()) SWIG_fail; | |
23065 | } | |
2f4c0a16 | 23066 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23067 | return resultobj; |
23068 | fail: | |
23069 | return NULL; | |
23070 | } | |
23071 | ||
23072 | ||
23073 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23074 | PyObject *resultobj; | |
23075 | wxListView *arg1 = (wxListView *) 0 ; | |
23076 | long arg2 ; | |
23077 | bool result; | |
23078 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23079 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23080 | char *kwnames[] = { |
23081 | (char *) "self",(char *) "index", NULL | |
23082 | }; | |
23083 | ||
8edf1c75 | 23084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23087 | arg2 = (long) SWIG_AsLong(obj1); | |
23088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23089 | { |
23090 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23091 | result = (bool)(arg1)->IsSelected(arg2); | |
23092 | ||
23093 | wxPyEndAllowThreads(__tstate); | |
23094 | if (PyErr_Occurred()) SWIG_fail; | |
23095 | } | |
4f89f6a3 RD |
23096 | { |
23097 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23098 | } | |
d14a1e28 RD |
23099 | return resultobj; |
23100 | fail: | |
23101 | return NULL; | |
23102 | } | |
23103 | ||
23104 | ||
23105 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23106 | PyObject *resultobj; | |
23107 | wxListView *arg1 = (wxListView *) 0 ; | |
23108 | int arg2 ; | |
23109 | int arg3 ; | |
23110 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23111 | PyObject * obj1 = 0 ; |
23112 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23113 | char *kwnames[] = { |
23114 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23115 | }; | |
23116 | ||
8edf1c75 | 23117 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23118 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23119 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23120 | arg2 = (int) SWIG_AsInt(obj1); | |
23121 | if (PyErr_Occurred()) SWIG_fail; | |
23122 | arg3 = (int) SWIG_AsInt(obj2); | |
23123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23124 | { |
23125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23126 | (arg1)->SetColumnImage(arg2,arg3); | |
23127 | ||
23128 | wxPyEndAllowThreads(__tstate); | |
23129 | if (PyErr_Occurred()) SWIG_fail; | |
23130 | } | |
23131 | Py_INCREF(Py_None); resultobj = Py_None; | |
23132 | return resultobj; | |
23133 | fail: | |
23134 | return NULL; | |
23135 | } | |
23136 | ||
23137 | ||
23138 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23139 | PyObject *resultobj; | |
23140 | wxListView *arg1 = (wxListView *) 0 ; | |
23141 | int arg2 ; | |
23142 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23143 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23144 | char *kwnames[] = { |
23145 | (char *) "self",(char *) "col", NULL | |
23146 | }; | |
23147 | ||
8edf1c75 | 23148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23151 | arg2 = (int) SWIG_AsInt(obj1); | |
23152 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23153 | { |
23154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23155 | (arg1)->ClearColumnImage(arg2); | |
23156 | ||
23157 | wxPyEndAllowThreads(__tstate); | |
23158 | if (PyErr_Occurred()) SWIG_fail; | |
23159 | } | |
23160 | Py_INCREF(Py_None); resultobj = Py_None; | |
23161 | return resultobj; | |
23162 | fail: | |
23163 | return NULL; | |
23164 | } | |
23165 | ||
23166 | ||
23167 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23168 | PyObject *obj; | |
23169 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23170 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23171 | Py_INCREF(obj); | |
23172 | return Py_BuildValue((char *)""); | |
23173 | } | |
2f4c0a16 | 23174 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
23175 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
23176 | return 1; | |
23177 | } | |
23178 | ||
23179 | ||
23180 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23181 | PyObject *pyobj; | |
23182 | ||
23183 | { | |
23184 | #if wxUSE_UNICODE | |
23185 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23186 | #else | |
23187 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23188 | #endif | |
23189 | } | |
23190 | return pyobj; | |
23191 | } | |
23192 | ||
23193 | ||
d14a1e28 RD |
23194 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
23195 | PyObject *resultobj; | |
23196 | wxTreeItemId *result; | |
23197 | char *kwnames[] = { | |
23198 | NULL | |
23199 | }; | |
23200 | ||
23201 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23202 | { | |
23203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23204 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23205 | ||
23206 | wxPyEndAllowThreads(__tstate); | |
23207 | if (PyErr_Occurred()) SWIG_fail; | |
23208 | } | |
2f4c0a16 | 23209 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23210 | return resultobj; |
23211 | fail: | |
23212 | return NULL; | |
23213 | } | |
23214 | ||
23215 | ||
23216 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23217 | PyObject *resultobj; | |
23218 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23219 | PyObject * obj0 = 0 ; | |
23220 | char *kwnames[] = { | |
23221 | (char *) "self", NULL | |
23222 | }; | |
23223 | ||
23224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23227 | { |
23228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23229 | delete arg1; | |
23230 | ||
23231 | wxPyEndAllowThreads(__tstate); | |
23232 | if (PyErr_Occurred()) SWIG_fail; | |
23233 | } | |
23234 | Py_INCREF(Py_None); resultobj = Py_None; | |
23235 | return resultobj; | |
23236 | fail: | |
23237 | return NULL; | |
23238 | } | |
23239 | ||
23240 | ||
23241 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23242 | PyObject *resultobj; | |
23243 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23244 | bool result; | |
23245 | PyObject * obj0 = 0 ; | |
23246 | char *kwnames[] = { | |
23247 | (char *) "self", NULL | |
23248 | }; | |
23249 | ||
23250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23253 | { |
23254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23255 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23256 | ||
23257 | wxPyEndAllowThreads(__tstate); | |
23258 | if (PyErr_Occurred()) SWIG_fail; | |
23259 | } | |
4f89f6a3 RD |
23260 | { |
23261 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23262 | } | |
d14a1e28 RD |
23263 | return resultobj; |
23264 | fail: | |
23265 | return NULL; | |
23266 | } | |
23267 | ||
23268 | ||
23269 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23270 | PyObject *resultobj; | |
23271 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23272 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23273 | bool result; | |
23274 | PyObject * obj0 = 0 ; | |
23275 | PyObject * obj1 = 0 ; | |
23276 | char *kwnames[] = { | |
23277 | (char *) "self",(char *) "other", NULL | |
23278 | }; | |
23279 | ||
23280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23283 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23285 | { |
23286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23287 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23288 | |
23289 | wxPyEndAllowThreads(__tstate); | |
23290 | if (PyErr_Occurred()) SWIG_fail; | |
23291 | } | |
4f89f6a3 RD |
23292 | { |
23293 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23294 | } | |
d14a1e28 RD |
23295 | return resultobj; |
23296 | fail: | |
23297 | return NULL; | |
23298 | } | |
23299 | ||
23300 | ||
23301 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23302 | PyObject *resultobj; | |
23303 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23304 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23305 | bool result; | |
23306 | PyObject * obj0 = 0 ; | |
23307 | PyObject * obj1 = 0 ; | |
23308 | char *kwnames[] = { | |
23309 | (char *) "self",(char *) "other", NULL | |
23310 | }; | |
23311 | ||
23312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23315 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23317 | { |
23318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23319 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23320 | |
23321 | wxPyEndAllowThreads(__tstate); | |
23322 | if (PyErr_Occurred()) SWIG_fail; | |
23323 | } | |
4f89f6a3 RD |
23324 | { |
23325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23326 | } | |
d14a1e28 RD |
23327 | return resultobj; |
23328 | fail: | |
23329 | return NULL; | |
23330 | } | |
23331 | ||
23332 | ||
23333 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23334 | PyObject *resultobj; | |
23335 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23336 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
23337 | PyObject * obj0 = 0 ; |
23338 | PyObject * obj1 = 0 ; | |
23339 | char *kwnames[] = { | |
23340 | (char *) "self",(char *) "m_pItem", NULL | |
23341 | }; | |
23342 | ||
23343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23346 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
23347 | if (arg1) (arg1)->m_pItem = arg2; |
23348 | ||
23349 | Py_INCREF(Py_None); resultobj = Py_None; | |
23350 | return resultobj; | |
23351 | fail: | |
23352 | return NULL; | |
23353 | } | |
23354 | ||
23355 | ||
23356 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23357 | PyObject *resultobj; | |
23358 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23359 | void *result; |
d14a1e28 RD |
23360 | PyObject * obj0 = 0 ; |
23361 | char *kwnames[] = { | |
23362 | (char *) "self", NULL | |
23363 | }; | |
23364 | ||
23365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 23368 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23369 | |
2f4c0a16 | 23370 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23371 | return resultobj; |
23372 | fail: | |
23373 | return NULL; | |
23374 | } | |
23375 | ||
23376 | ||
23377 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23378 | PyObject *obj; | |
23379 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23380 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23381 | Py_INCREF(obj); | |
23382 | return Py_BuildValue((char *)""); | |
23383 | } | |
23384 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23385 | PyObject *resultobj; | |
23386 | PyObject *arg1 = (PyObject *) NULL ; | |
23387 | wxPyTreeItemData *result; | |
23388 | PyObject * obj0 = 0 ; | |
23389 | char *kwnames[] = { | |
23390 | (char *) "obj", NULL | |
23391 | }; | |
23392 | ||
23393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23394 | if (obj0) { | |
23395 | arg1 = obj0; | |
23396 | } | |
23397 | { | |
23398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23399 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23400 | ||
23401 | wxPyEndAllowThreads(__tstate); | |
23402 | if (PyErr_Occurred()) SWIG_fail; | |
23403 | } | |
2f4c0a16 | 23404 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
23405 | return resultobj; |
23406 | fail: | |
23407 | return NULL; | |
23408 | } | |
23409 | ||
23410 | ||
23411 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23412 | PyObject *resultobj; | |
23413 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23414 | PyObject *result; | |
23415 | PyObject * obj0 = 0 ; | |
23416 | char *kwnames[] = { | |
23417 | (char *) "self", NULL | |
23418 | }; | |
23419 | ||
23420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23423 | { |
23424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23425 | result = (PyObject *)(arg1)->GetData(); | |
23426 | ||
23427 | wxPyEndAllowThreads(__tstate); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
23429 | } | |
23430 | resultobj = result; | |
23431 | return resultobj; | |
23432 | fail: | |
23433 | return NULL; | |
23434 | } | |
23435 | ||
23436 | ||
23437 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23438 | PyObject *resultobj; | |
23439 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23440 | PyObject *arg2 = (PyObject *) 0 ; | |
23441 | PyObject * obj0 = 0 ; | |
23442 | PyObject * obj1 = 0 ; | |
23443 | char *kwnames[] = { | |
23444 | (char *) "self",(char *) "obj", NULL | |
23445 | }; | |
23446 | ||
23447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23450 | arg2 = obj1; |
23451 | { | |
23452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23453 | (arg1)->SetData(arg2); | |
23454 | ||
23455 | wxPyEndAllowThreads(__tstate); | |
23456 | if (PyErr_Occurred()) SWIG_fail; | |
23457 | } | |
23458 | Py_INCREF(Py_None); resultobj = Py_None; | |
23459 | return resultobj; | |
23460 | fail: | |
23461 | return NULL; | |
23462 | } | |
23463 | ||
23464 | ||
23465 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23466 | PyObject *resultobj; | |
23467 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23468 | wxTreeItemId *result; | |
23469 | PyObject * obj0 = 0 ; | |
23470 | char *kwnames[] = { | |
23471 | (char *) "self", NULL | |
23472 | }; | |
23473 | ||
23474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23477 | { |
23478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23479 | { | |
23480 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23481 | result = (wxTreeItemId *) &_result_ref; | |
23482 | } | |
23483 | ||
23484 | wxPyEndAllowThreads(__tstate); | |
23485 | if (PyErr_Occurred()) SWIG_fail; | |
23486 | } | |
2f4c0a16 | 23487 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
23488 | return resultobj; |
23489 | fail: | |
23490 | return NULL; | |
23491 | } | |
23492 | ||
23493 | ||
23494 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23495 | PyObject *resultobj; | |
23496 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23497 | wxTreeItemId *arg2 = 0 ; | |
23498 | PyObject * obj0 = 0 ; | |
23499 | PyObject * obj1 = 0 ; | |
23500 | char *kwnames[] = { | |
23501 | (char *) "self",(char *) "id", NULL | |
23502 | }; | |
23503 | ||
23504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23507 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23508 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23509 | SWIG_fail; | |
d14a1e28 | 23510 | if (arg2 == NULL) { |
2f4c0a16 RD |
23511 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23512 | SWIG_fail; | |
d14a1e28 RD |
23513 | } |
23514 | { | |
23515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23516 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23517 | ||
23518 | wxPyEndAllowThreads(__tstate); | |
23519 | if (PyErr_Occurred()) SWIG_fail; | |
23520 | } | |
23521 | Py_INCREF(Py_None); resultobj = Py_None; | |
23522 | return resultobj; | |
23523 | fail: | |
23524 | return NULL; | |
23525 | } | |
23526 | ||
23527 | ||
23528 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23529 | PyObject *resultobj; | |
23530 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23531 | PyObject * obj0 = 0 ; | |
23532 | char *kwnames[] = { | |
23533 | (char *) "self", NULL | |
23534 | }; | |
23535 | ||
23536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23539 | { |
23540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23541 | wxPyTreeItemData_Destroy(arg1); | |
23542 | ||
23543 | wxPyEndAllowThreads(__tstate); | |
23544 | if (PyErr_Occurred()) SWIG_fail; | |
23545 | } | |
23546 | Py_INCREF(Py_None); resultobj = Py_None; | |
23547 | return resultobj; | |
23548 | fail: | |
23549 | return NULL; | |
23550 | } | |
23551 | ||
23552 | ||
23553 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23554 | PyObject *obj; | |
23555 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23556 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23557 | Py_INCREF(obj); | |
23558 | return Py_BuildValue((char *)""); | |
23559 | } | |
23560 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23561 | PyObject *resultobj; | |
23562 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23563 | int arg2 = (int) 0 ; | |
23564 | wxTreeEvent *result; | |
8edf1c75 RD |
23565 | PyObject * obj0 = 0 ; |
23566 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23567 | char *kwnames[] = { |
23568 | (char *) "commandType",(char *) "id", NULL | |
23569 | }; | |
23570 | ||
8edf1c75 RD |
23571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23572 | if (obj0) { | |
2f4c0a16 RD |
23573 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
23574 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
23575 | } |
23576 | if (obj1) { | |
2f4c0a16 RD |
23577 | arg2 = (int) SWIG_AsInt(obj1); |
23578 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 23579 | } |
d14a1e28 RD |
23580 | { |
23581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23582 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23583 | ||
23584 | wxPyEndAllowThreads(__tstate); | |
23585 | if (PyErr_Occurred()) SWIG_fail; | |
23586 | } | |
2f4c0a16 | 23587 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
23588 | return resultobj; |
23589 | fail: | |
23590 | return NULL; | |
23591 | } | |
23592 | ||
23593 | ||
23594 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23595 | PyObject *resultobj; | |
23596 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23597 | wxTreeItemId result; | |
23598 | PyObject * obj0 = 0 ; | |
23599 | char *kwnames[] = { | |
23600 | (char *) "self", NULL | |
23601 | }; | |
23602 | ||
23603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23606 | { |
23607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23608 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23609 | ||
23610 | wxPyEndAllowThreads(__tstate); | |
23611 | if (PyErr_Occurred()) SWIG_fail; | |
23612 | } | |
23613 | { | |
23614 | wxTreeItemId * resultptr; | |
23615 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23616 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23617 | } |
23618 | return resultobj; | |
23619 | fail: | |
23620 | return NULL; | |
23621 | } | |
23622 | ||
23623 | ||
23624 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23625 | PyObject *resultobj; | |
23626 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23627 | wxTreeItemId *arg2 = 0 ; | |
23628 | PyObject * obj0 = 0 ; | |
23629 | PyObject * obj1 = 0 ; | |
23630 | char *kwnames[] = { | |
23631 | (char *) "self",(char *) "item", NULL | |
23632 | }; | |
23633 | ||
23634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23639 | SWIG_fail; | |
d14a1e28 | 23640 | if (arg2 == NULL) { |
2f4c0a16 RD |
23641 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23642 | SWIG_fail; | |
d14a1e28 RD |
23643 | } |
23644 | { | |
23645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23646 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23647 | ||
23648 | wxPyEndAllowThreads(__tstate); | |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
23650 | } | |
23651 | Py_INCREF(Py_None); resultobj = Py_None; | |
23652 | return resultobj; | |
23653 | fail: | |
23654 | return NULL; | |
23655 | } | |
23656 | ||
23657 | ||
23658 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23659 | PyObject *resultobj; | |
23660 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23661 | wxTreeItemId result; | |
23662 | PyObject * obj0 = 0 ; | |
23663 | char *kwnames[] = { | |
23664 | (char *) "self", NULL | |
23665 | }; | |
23666 | ||
23667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23670 | { |
23671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23672 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23673 | ||
23674 | wxPyEndAllowThreads(__tstate); | |
23675 | if (PyErr_Occurred()) SWIG_fail; | |
23676 | } | |
23677 | { | |
23678 | wxTreeItemId * resultptr; | |
23679 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23680 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23681 | } |
23682 | return resultobj; | |
23683 | fail: | |
23684 | return NULL; | |
23685 | } | |
23686 | ||
23687 | ||
23688 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23689 | PyObject *resultobj; | |
23690 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23691 | wxTreeItemId *arg2 = 0 ; | |
23692 | PyObject * obj0 = 0 ; | |
23693 | PyObject * obj1 = 0 ; | |
23694 | char *kwnames[] = { | |
23695 | (char *) "self",(char *) "item", NULL | |
23696 | }; | |
23697 | ||
23698 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23699 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23700 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23701 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23702 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23703 | SWIG_fail; | |
d14a1e28 | 23704 | if (arg2 == NULL) { |
2f4c0a16 RD |
23705 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23706 | SWIG_fail; | |
d14a1e28 RD |
23707 | } |
23708 | { | |
23709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23710 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23711 | ||
23712 | wxPyEndAllowThreads(__tstate); | |
23713 | if (PyErr_Occurred()) SWIG_fail; | |
23714 | } | |
23715 | Py_INCREF(Py_None); resultobj = Py_None; | |
23716 | return resultobj; | |
23717 | fail: | |
23718 | return NULL; | |
23719 | } | |
23720 | ||
23721 | ||
23722 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23723 | PyObject *resultobj; | |
23724 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23725 | wxPoint result; | |
23726 | PyObject * obj0 = 0 ; | |
23727 | char *kwnames[] = { | |
23728 | (char *) "self", NULL | |
23729 | }; | |
23730 | ||
23731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23734 | { |
23735 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23736 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23737 | ||
23738 | wxPyEndAllowThreads(__tstate); | |
23739 | if (PyErr_Occurred()) SWIG_fail; | |
23740 | } | |
23741 | { | |
23742 | wxPoint * resultptr; | |
23743 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 23744 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23745 | } |
23746 | return resultobj; | |
23747 | fail: | |
23748 | return NULL; | |
23749 | } | |
23750 | ||
23751 | ||
23752 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23753 | PyObject *resultobj; | |
23754 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23755 | wxPoint *arg2 = 0 ; | |
23756 | wxPoint temp2 ; | |
23757 | PyObject * obj0 = 0 ; | |
23758 | PyObject * obj1 = 0 ; | |
23759 | char *kwnames[] = { | |
23760 | (char *) "self",(char *) "pt", NULL | |
23761 | }; | |
23762 | ||
23763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23766 | { |
23767 | arg2 = &temp2; | |
23768 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23769 | } | |
23770 | { | |
23771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23772 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23773 | ||
23774 | wxPyEndAllowThreads(__tstate); | |
23775 | if (PyErr_Occurred()) SWIG_fail; | |
23776 | } | |
23777 | Py_INCREF(Py_None); resultobj = Py_None; | |
23778 | return resultobj; | |
23779 | fail: | |
23780 | return NULL; | |
23781 | } | |
23782 | ||
23783 | ||
23784 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23785 | PyObject *resultobj; | |
23786 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23787 | wxKeyEvent *result; | |
23788 | PyObject * obj0 = 0 ; | |
23789 | char *kwnames[] = { | |
23790 | (char *) "self", NULL | |
23791 | }; | |
23792 | ||
23793 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23794 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23795 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23796 | { |
23797 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23798 | { | |
23799 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23800 | result = (wxKeyEvent *) &_result_ref; | |
23801 | } | |
23802 | ||
23803 | wxPyEndAllowThreads(__tstate); | |
23804 | if (PyErr_Occurred()) SWIG_fail; | |
23805 | } | |
2f4c0a16 | 23806 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
23807 | return resultobj; |
23808 | fail: | |
23809 | return NULL; | |
23810 | } | |
23811 | ||
23812 | ||
23813 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23814 | PyObject *resultobj; | |
23815 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23816 | int result; | |
23817 | PyObject * obj0 = 0 ; | |
23818 | char *kwnames[] = { | |
23819 | (char *) "self", NULL | |
23820 | }; | |
23821 | ||
23822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23825 | { |
23826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23827 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23828 | ||
23829 | wxPyEndAllowThreads(__tstate); | |
23830 | if (PyErr_Occurred()) SWIG_fail; | |
23831 | } | |
2f4c0a16 | 23832 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23833 | return resultobj; |
23834 | fail: | |
23835 | return NULL; | |
23836 | } | |
23837 | ||
23838 | ||
23839 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23840 | PyObject *resultobj; | |
23841 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23842 | wxKeyEvent *arg2 = 0 ; | |
23843 | PyObject * obj0 = 0 ; | |
23844 | PyObject * obj1 = 0 ; | |
23845 | char *kwnames[] = { | |
23846 | (char *) "self",(char *) "evt", NULL | |
23847 | }; | |
23848 | ||
23849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23852 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
23853 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23854 | SWIG_fail; | |
d14a1e28 | 23855 | if (arg2 == NULL) { |
2f4c0a16 RD |
23856 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23857 | SWIG_fail; | |
d14a1e28 RD |
23858 | } |
23859 | { | |
23860 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23861 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23862 | ||
23863 | wxPyEndAllowThreads(__tstate); | |
23864 | if (PyErr_Occurred()) SWIG_fail; | |
23865 | } | |
23866 | Py_INCREF(Py_None); resultobj = Py_None; | |
23867 | return resultobj; | |
23868 | fail: | |
23869 | return NULL; | |
23870 | } | |
23871 | ||
23872 | ||
23873 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23874 | PyObject *resultobj; | |
23875 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23876 | wxString *result; | |
23877 | PyObject * obj0 = 0 ; | |
23878 | char *kwnames[] = { | |
23879 | (char *) "self", NULL | |
23880 | }; | |
23881 | ||
23882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23885 | { |
23886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23887 | { | |
23888 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23889 | result = (wxString *) &_result_ref; | |
23890 | } | |
23891 | ||
23892 | wxPyEndAllowThreads(__tstate); | |
23893 | if (PyErr_Occurred()) SWIG_fail; | |
23894 | } | |
f0983263 RD |
23895 | { |
23896 | #if wxUSE_UNICODE | |
23897 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23898 | #else | |
23899 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23900 | #endif | |
23901 | } | |
d14a1e28 RD |
23902 | return resultobj; |
23903 | fail: | |
23904 | return NULL; | |
23905 | } | |
23906 | ||
23907 | ||
23908 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23909 | PyObject *resultobj; | |
23910 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23911 | wxString *arg2 = 0 ; | |
423f194a | 23912 | bool temp2 = False ; |
d14a1e28 RD |
23913 | PyObject * obj0 = 0 ; |
23914 | PyObject * obj1 = 0 ; | |
23915 | char *kwnames[] = { | |
23916 | (char *) "self",(char *) "label", NULL | |
23917 | }; | |
23918 | ||
23919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23922 | { |
23923 | arg2 = wxString_in_helper(obj1); | |
23924 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23925 | temp2 = True; |
d14a1e28 RD |
23926 | } |
23927 | { | |
23928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23929 | (arg1)->SetLabel((wxString const &)*arg2); | |
23930 | ||
23931 | wxPyEndAllowThreads(__tstate); | |
23932 | if (PyErr_Occurred()) SWIG_fail; | |
23933 | } | |
23934 | Py_INCREF(Py_None); resultobj = Py_None; | |
23935 | { | |
23936 | if (temp2) | |
23937 | delete arg2; | |
23938 | } | |
23939 | return resultobj; | |
23940 | fail: | |
23941 | { | |
23942 | if (temp2) | |
23943 | delete arg2; | |
23944 | } | |
23945 | return NULL; | |
23946 | } | |
23947 | ||
23948 | ||
23949 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23950 | PyObject *resultobj; | |
23951 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23952 | bool result; | |
23953 | PyObject * obj0 = 0 ; | |
23954 | char *kwnames[] = { | |
23955 | (char *) "self", NULL | |
23956 | }; | |
23957 | ||
23958 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23959 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23960 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23961 | { |
23962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23963 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23964 | ||
23965 | wxPyEndAllowThreads(__tstate); | |
23966 | if (PyErr_Occurred()) SWIG_fail; | |
23967 | } | |
4f89f6a3 RD |
23968 | { |
23969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23970 | } | |
d14a1e28 RD |
23971 | return resultobj; |
23972 | fail: | |
23973 | return NULL; | |
23974 | } | |
23975 | ||
23976 | ||
23977 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23978 | PyObject *resultobj; | |
23979 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23980 | bool arg2 ; | |
23981 | PyObject * obj0 = 0 ; | |
23982 | PyObject * obj1 = 0 ; | |
23983 | char *kwnames[] = { | |
23984 | (char *) "self",(char *) "editCancelled", NULL | |
23985 | }; | |
23986 | ||
23987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23990 | arg2 = (bool) SWIG_AsBool(obj1); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23992 | { |
23993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23994 | (arg1)->SetEditCanceled(arg2); | |
23995 | ||
23996 | wxPyEndAllowThreads(__tstate); | |
23997 | if (PyErr_Occurred()) SWIG_fail; | |
23998 | } | |
23999 | Py_INCREF(Py_None); resultobj = Py_None; | |
24000 | return resultobj; | |
24001 | fail: | |
24002 | return NULL; | |
24003 | } | |
24004 | ||
24005 | ||
9fd4be55 RD |
24006 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24007 | PyObject *resultobj; | |
24008 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24009 | wxString *arg2 = 0 ; | |
24010 | bool temp2 = False ; | |
24011 | PyObject * obj0 = 0 ; | |
24012 | PyObject * obj1 = 0 ; | |
24013 | char *kwnames[] = { | |
24014 | (char *) "self",(char *) "toolTip", NULL | |
24015 | }; | |
24016 | ||
24017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
24020 | { |
24021 | arg2 = wxString_in_helper(obj1); | |
24022 | if (arg2 == NULL) SWIG_fail; | |
24023 | temp2 = True; | |
24024 | } | |
24025 | { | |
24026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24027 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24028 | ||
24029 | wxPyEndAllowThreads(__tstate); | |
24030 | if (PyErr_Occurred()) SWIG_fail; | |
24031 | } | |
24032 | Py_INCREF(Py_None); resultobj = Py_None; | |
24033 | { | |
24034 | if (temp2) | |
24035 | delete arg2; | |
24036 | } | |
24037 | return resultobj; | |
24038 | fail: | |
24039 | { | |
24040 | if (temp2) | |
24041 | delete arg2; | |
24042 | } | |
24043 | return NULL; | |
24044 | } | |
24045 | ||
24046 | ||
d14a1e28 RD |
24047 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24048 | PyObject *obj; | |
24049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24050 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24051 | Py_INCREF(obj); | |
24052 | return Py_BuildValue((char *)""); | |
24053 | } | |
24054 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24055 | PyObject *resultobj; | |
24056 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24057 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24058 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24059 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24060 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24061 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24062 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24063 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24064 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 24065 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24066 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24067 | wxPyTreeCtrl *result; | |
24068 | wxPoint temp3 ; | |
24069 | wxSize temp4 ; | |
423f194a | 24070 | bool temp7 = False ; |
d14a1e28 | 24071 | PyObject * obj0 = 0 ; |
8edf1c75 | 24072 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24073 | PyObject * obj2 = 0 ; |
24074 | PyObject * obj3 = 0 ; | |
8edf1c75 | 24075 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24076 | PyObject * obj5 = 0 ; |
24077 | PyObject * obj6 = 0 ; | |
24078 | char *kwnames[] = { | |
24079 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24080 | }; | |
24081 | ||
8edf1c75 | 24082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24085 | if (obj1) { |
2f4c0a16 RD |
24086 | arg2 = (int) SWIG_AsInt(obj1); |
24087 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24088 | } |
d14a1e28 RD |
24089 | if (obj2) { |
24090 | { | |
24091 | arg3 = &temp3; | |
24092 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24093 | } | |
24094 | } | |
24095 | if (obj3) { | |
24096 | { | |
8edf1c75 RD |
24097 | arg4 = &temp4; |
24098 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24099 | } | |
24100 | } | |
24101 | if (obj4) { | |
2f4c0a16 RD |
24102 | arg5 = (long) SWIG_AsLong(obj4); |
24103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24104 | } |
24105 | if (obj5) { | |
2f4c0a16 RD |
24106 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24108 | SWIG_fail; | |
d14a1e28 | 24109 | if (arg6 == NULL) { |
2f4c0a16 RD |
24110 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24111 | SWIG_fail; | |
d14a1e28 RD |
24112 | } |
24113 | } | |
24114 | if (obj6) { | |
24115 | { | |
24116 | arg7 = wxString_in_helper(obj6); | |
24117 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 24118 | temp7 = True; |
d14a1e28 RD |
24119 | } |
24120 | } | |
24121 | { | |
24122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24123 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24124 | ||
24125 | wxPyEndAllowThreads(__tstate); | |
24126 | if (PyErr_Occurred()) SWIG_fail; | |
24127 | } | |
d03fd34d RD |
24128 | { |
24129 | resultobj = wxPyMake_wxObject(result); | |
24130 | } | |
d14a1e28 RD |
24131 | { |
24132 | if (temp7) | |
24133 | delete arg7; | |
24134 | } | |
24135 | return resultobj; | |
24136 | fail: | |
24137 | { | |
24138 | if (temp7) | |
24139 | delete arg7; | |
24140 | } | |
24141 | return NULL; | |
24142 | } | |
24143 | ||
24144 | ||
24145 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24146 | PyObject *resultobj; | |
24147 | wxPyTreeCtrl *result; | |
24148 | char *kwnames[] = { | |
24149 | NULL | |
24150 | }; | |
24151 | ||
24152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24153 | { | |
24154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24155 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24156 | ||
24157 | wxPyEndAllowThreads(__tstate); | |
24158 | if (PyErr_Occurred()) SWIG_fail; | |
24159 | } | |
d03fd34d RD |
24160 | { |
24161 | resultobj = wxPyMake_wxObject(result); | |
24162 | } | |
d14a1e28 RD |
24163 | return resultobj; |
24164 | fail: | |
24165 | return NULL; | |
24166 | } | |
24167 | ||
24168 | ||
24169 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24170 | PyObject *resultobj; | |
24171 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24172 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 24173 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24174 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24175 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24176 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24177 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24178 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24179 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24180 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 24181 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24182 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
24183 | bool result; | |
24184 | wxPoint temp4 ; | |
24185 | wxSize temp5 ; | |
423f194a | 24186 | bool temp8 = False ; |
d14a1e28 RD |
24187 | PyObject * obj0 = 0 ; |
24188 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24189 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24190 | PyObject * obj3 = 0 ; |
24191 | PyObject * obj4 = 0 ; | |
8edf1c75 | 24192 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24193 | PyObject * obj6 = 0 ; |
24194 | PyObject * obj7 = 0 ; | |
24195 | char *kwnames[] = { | |
24196 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24197 | }; | |
24198 | ||
8edf1c75 | 24199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
24200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24202 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24204 | if (obj2) { |
2f4c0a16 RD |
24205 | arg3 = (int) SWIG_AsInt(obj2); |
24206 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24207 | } |
d14a1e28 RD |
24208 | if (obj3) { |
24209 | { | |
24210 | arg4 = &temp4; | |
24211 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24212 | } | |
24213 | } | |
24214 | if (obj4) { | |
24215 | { | |
24216 | arg5 = &temp5; | |
24217 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24218 | } | |
24219 | } | |
8edf1c75 | 24220 | if (obj5) { |
2f4c0a16 RD |
24221 | arg6 = (long) SWIG_AsLong(obj5); |
24222 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24223 | } |
d14a1e28 | 24224 | if (obj6) { |
2f4c0a16 RD |
24225 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24226 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24227 | SWIG_fail; | |
d14a1e28 | 24228 | if (arg7 == NULL) { |
2f4c0a16 RD |
24229 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24230 | SWIG_fail; | |
d14a1e28 RD |
24231 | } |
24232 | } | |
24233 | if (obj7) { | |
24234 | { | |
24235 | arg8 = wxString_in_helper(obj7); | |
24236 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 24237 | temp8 = True; |
d14a1e28 RD |
24238 | } |
24239 | } | |
24240 | { | |
24241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24242 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24243 | ||
24244 | wxPyEndAllowThreads(__tstate); | |
24245 | if (PyErr_Occurred()) SWIG_fail; | |
24246 | } | |
4f89f6a3 RD |
24247 | { |
24248 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24249 | } | |
d14a1e28 RD |
24250 | { |
24251 | if (temp8) | |
24252 | delete arg8; | |
24253 | } | |
24254 | return resultobj; | |
24255 | fail: | |
24256 | { | |
24257 | if (temp8) | |
24258 | delete arg8; | |
24259 | } | |
24260 | return NULL; | |
24261 | } | |
24262 | ||
24263 | ||
24264 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24265 | PyObject *resultobj; | |
24266 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24267 | PyObject *arg2 = (PyObject *) 0 ; | |
24268 | PyObject *arg3 = (PyObject *) 0 ; | |
24269 | PyObject * obj0 = 0 ; | |
24270 | PyObject * obj1 = 0 ; | |
24271 | PyObject * obj2 = 0 ; | |
24272 | char *kwnames[] = { | |
24273 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24274 | }; | |
24275 | ||
24276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24279 | arg2 = obj1; |
24280 | arg3 = obj2; | |
24281 | { | |
24282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24283 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24284 | ||
24285 | wxPyEndAllowThreads(__tstate); | |
24286 | if (PyErr_Occurred()) SWIG_fail; | |
24287 | } | |
24288 | Py_INCREF(Py_None); resultobj = Py_None; | |
24289 | return resultobj; | |
24290 | fail: | |
24291 | return NULL; | |
24292 | } | |
24293 | ||
24294 | ||
24295 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24296 | PyObject *resultobj; | |
24297 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24298 | size_t result; | |
24299 | PyObject * obj0 = 0 ; | |
24300 | char *kwnames[] = { | |
24301 | (char *) "self", NULL | |
24302 | }; | |
24303 | ||
24304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24307 | { |
24308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24309 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24310 | ||
24311 | wxPyEndAllowThreads(__tstate); | |
24312 | if (PyErr_Occurred()) SWIG_fail; | |
24313 | } | |
2f4c0a16 | 24314 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24315 | return resultobj; |
24316 | fail: | |
24317 | return NULL; | |
24318 | } | |
24319 | ||
24320 | ||
24321 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24322 | PyObject *resultobj; | |
24323 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24324 | unsigned int result; | |
24325 | PyObject * obj0 = 0 ; | |
24326 | char *kwnames[] = { | |
24327 | (char *) "self", NULL | |
24328 | }; | |
24329 | ||
24330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24333 | { |
24334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24335 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24336 | ||
24337 | wxPyEndAllowThreads(__tstate); | |
24338 | if (PyErr_Occurred()) SWIG_fail; | |
24339 | } | |
2f4c0a16 | 24340 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24341 | return resultobj; |
24342 | fail: | |
24343 | return NULL; | |
24344 | } | |
24345 | ||
24346 | ||
24347 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24348 | PyObject *resultobj; | |
24349 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24350 | unsigned int arg2 ; | |
24351 | PyObject * obj0 = 0 ; | |
24352 | PyObject * obj1 = 0 ; | |
24353 | char *kwnames[] = { | |
24354 | (char *) "self",(char *) "indent", NULL | |
24355 | }; | |
24356 | ||
24357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24360 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24362 | { |
24363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24364 | (arg1)->SetIndent(arg2); | |
24365 | ||
24366 | wxPyEndAllowThreads(__tstate); | |
24367 | if (PyErr_Occurred()) SWIG_fail; | |
24368 | } | |
24369 | Py_INCREF(Py_None); resultobj = Py_None; | |
24370 | return resultobj; | |
24371 | fail: | |
24372 | return NULL; | |
24373 | } | |
24374 | ||
24375 | ||
24376 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24377 | PyObject *resultobj; | |
24378 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24379 | unsigned int result; | |
24380 | PyObject * obj0 = 0 ; | |
24381 | char *kwnames[] = { | |
24382 | (char *) "self", NULL | |
24383 | }; | |
24384 | ||
24385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24388 | { |
24389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24390 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24391 | ||
24392 | wxPyEndAllowThreads(__tstate); | |
24393 | if (PyErr_Occurred()) SWIG_fail; | |
24394 | } | |
2f4c0a16 | 24395 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24396 | return resultobj; |
24397 | fail: | |
24398 | return NULL; | |
24399 | } | |
24400 | ||
24401 | ||
24402 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24403 | PyObject *resultobj; | |
24404 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24405 | unsigned int arg2 ; | |
24406 | PyObject * obj0 = 0 ; | |
24407 | PyObject * obj1 = 0 ; | |
24408 | char *kwnames[] = { | |
24409 | (char *) "self",(char *) "spacing", NULL | |
24410 | }; | |
24411 | ||
24412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24415 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24417 | { |
24418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24419 | (arg1)->SetSpacing(arg2); | |
24420 | ||
24421 | wxPyEndAllowThreads(__tstate); | |
24422 | if (PyErr_Occurred()) SWIG_fail; | |
24423 | } | |
24424 | Py_INCREF(Py_None); resultobj = Py_None; | |
24425 | return resultobj; | |
24426 | fail: | |
24427 | return NULL; | |
24428 | } | |
24429 | ||
24430 | ||
24431 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24432 | PyObject *resultobj; | |
24433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24434 | wxImageList *result; | |
24435 | PyObject * obj0 = 0 ; | |
24436 | char *kwnames[] = { | |
24437 | (char *) "self", NULL | |
24438 | }; | |
24439 | ||
24440 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24441 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24442 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24443 | { |
24444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24445 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24446 | ||
24447 | wxPyEndAllowThreads(__tstate); | |
24448 | if (PyErr_Occurred()) SWIG_fail; | |
24449 | } | |
24450 | { | |
24451 | resultobj = wxPyMake_wxObject(result); | |
24452 | } | |
24453 | return resultobj; | |
24454 | fail: | |
24455 | return NULL; | |
24456 | } | |
24457 | ||
24458 | ||
24459 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24460 | PyObject *resultobj; | |
24461 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24462 | wxImageList *result; | |
24463 | PyObject * obj0 = 0 ; | |
24464 | char *kwnames[] = { | |
24465 | (char *) "self", NULL | |
24466 | }; | |
24467 | ||
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24471 | { |
24472 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24473 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24474 | ||
24475 | wxPyEndAllowThreads(__tstate); | |
24476 | if (PyErr_Occurred()) SWIG_fail; | |
24477 | } | |
24478 | { | |
24479 | resultobj = wxPyMake_wxObject(result); | |
24480 | } | |
24481 | return resultobj; | |
24482 | fail: | |
24483 | return NULL; | |
24484 | } | |
24485 | ||
24486 | ||
24487 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24488 | PyObject *resultobj; | |
24489 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24490 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24491 | PyObject * obj0 = 0 ; | |
24492 | PyObject * obj1 = 0 ; | |
24493 | char *kwnames[] = { | |
24494 | (char *) "self",(char *) "imageList", NULL | |
24495 | }; | |
24496 | ||
24497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24500 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24502 | { |
24503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24504 | (arg1)->SetImageList(arg2); | |
24505 | ||
24506 | wxPyEndAllowThreads(__tstate); | |
24507 | if (PyErr_Occurred()) SWIG_fail; | |
24508 | } | |
24509 | Py_INCREF(Py_None); resultobj = Py_None; | |
24510 | return resultobj; | |
24511 | fail: | |
24512 | return NULL; | |
24513 | } | |
24514 | ||
24515 | ||
24516 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24517 | PyObject *resultobj; | |
24518 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24519 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24520 | PyObject * obj0 = 0 ; | |
24521 | PyObject * obj1 = 0 ; | |
24522 | char *kwnames[] = { | |
24523 | (char *) "self",(char *) "imageList", NULL | |
24524 | }; | |
24525 | ||
24526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24529 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24531 | { |
24532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24533 | (arg1)->SetStateImageList(arg2); | |
24534 | ||
24535 | wxPyEndAllowThreads(__tstate); | |
24536 | if (PyErr_Occurred()) SWIG_fail; | |
24537 | } | |
24538 | Py_INCREF(Py_None); resultobj = Py_None; | |
24539 | return resultobj; | |
24540 | fail: | |
24541 | return NULL; | |
24542 | } | |
24543 | ||
24544 | ||
24545 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24546 | PyObject *resultobj; | |
24547 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24548 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24549 | PyObject * obj0 = 0 ; | |
24550 | PyObject * obj1 = 0 ; | |
24551 | char *kwnames[] = { | |
24552 | (char *) "self",(char *) "imageList", NULL | |
24553 | }; | |
24554 | ||
24555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24559 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24560 | { |
24561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24562 | (arg1)->AssignImageList(arg2); | |
24563 | ||
24564 | wxPyEndAllowThreads(__tstate); | |
24565 | if (PyErr_Occurred()) SWIG_fail; | |
24566 | } | |
24567 | Py_INCREF(Py_None); resultobj = Py_None; | |
24568 | return resultobj; | |
24569 | fail: | |
24570 | return NULL; | |
24571 | } | |
24572 | ||
24573 | ||
24574 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(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_AssignStateImageList",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 | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24589 | { |
24590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24591 | (arg1)->AssignStateImageList(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_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24604 | PyObject *resultobj; | |
24605 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24606 | wxTreeItemId *arg2 = 0 ; | |
24607 | wxString result; | |
24608 | PyObject * obj0 = 0 ; | |
24609 | PyObject * obj1 = 0 ; | |
24610 | char *kwnames[] = { | |
24611 | (char *) "self",(char *) "item", NULL | |
24612 | }; | |
24613 | ||
24614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24617 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24618 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24619 | SWIG_fail; | |
d14a1e28 | 24620 | if (arg2 == NULL) { |
2f4c0a16 RD |
24621 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24622 | SWIG_fail; | |
d14a1e28 RD |
24623 | } |
24624 | { | |
24625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24626 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24627 | ||
24628 | wxPyEndAllowThreads(__tstate); | |
24629 | if (PyErr_Occurred()) SWIG_fail; | |
24630 | } | |
24631 | { | |
24632 | #if wxUSE_UNICODE | |
24633 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24634 | #else | |
24635 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24636 | #endif | |
24637 | } | |
24638 | return resultobj; | |
24639 | fail: | |
24640 | return NULL; | |
24641 | } | |
24642 | ||
24643 | ||
24644 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24645 | PyObject *resultobj; | |
24646 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24647 | wxTreeItemId *arg2 = 0 ; | |
24648 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24649 | int result; | |
24650 | PyObject * obj0 = 0 ; | |
24651 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24652 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24653 | char *kwnames[] = { |
24654 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24655 | }; | |
24656 | ||
8edf1c75 | 24657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24660 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24661 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24662 | SWIG_fail; | |
d14a1e28 | 24663 | if (arg2 == NULL) { |
2f4c0a16 RD |
24664 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24665 | SWIG_fail; | |
d14a1e28 | 24666 | } |
8edf1c75 | 24667 | if (obj2) { |
2f4c0a16 RD |
24668 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
24669 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24670 | } |
d14a1e28 RD |
24671 | { |
24672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24673 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24674 | ||
24675 | wxPyEndAllowThreads(__tstate); | |
24676 | if (PyErr_Occurred()) SWIG_fail; | |
24677 | } | |
2f4c0a16 | 24678 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24679 | return resultobj; |
24680 | fail: | |
24681 | return NULL; | |
24682 | } | |
24683 | ||
24684 | ||
24685 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24686 | PyObject *resultobj; | |
24687 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24688 | wxTreeItemId *arg2 = 0 ; | |
24689 | wxPyTreeItemData *result; | |
24690 | PyObject * obj0 = 0 ; | |
24691 | PyObject * obj1 = 0 ; | |
24692 | char *kwnames[] = { | |
24693 | (char *) "self",(char *) "item", NULL | |
24694 | }; | |
24695 | ||
24696 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24697 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24698 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24701 | SWIG_fail; | |
d14a1e28 | 24702 | if (arg2 == NULL) { |
2f4c0a16 RD |
24703 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24704 | SWIG_fail; | |
d14a1e28 RD |
24705 | } |
24706 | { | |
24707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24708 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24709 | ||
24710 | wxPyEndAllowThreads(__tstate); | |
24711 | if (PyErr_Occurred()) SWIG_fail; | |
24712 | } | |
2f4c0a16 | 24713 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
24714 | return resultobj; |
24715 | fail: | |
24716 | return NULL; | |
24717 | } | |
24718 | ||
24719 | ||
24720 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24721 | PyObject *resultobj; | |
24722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24723 | wxTreeItemId *arg2 = 0 ; | |
24724 | PyObject *result; | |
24725 | PyObject * obj0 = 0 ; | |
24726 | PyObject * obj1 = 0 ; | |
24727 | char *kwnames[] = { | |
24728 | (char *) "self",(char *) "item", NULL | |
24729 | }; | |
24730 | ||
24731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24735 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24736 | SWIG_fail; | |
d14a1e28 | 24737 | if (arg2 == NULL) { |
2f4c0a16 RD |
24738 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24739 | SWIG_fail; | |
d14a1e28 RD |
24740 | } |
24741 | { | |
24742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24743 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24744 | ||
24745 | wxPyEndAllowThreads(__tstate); | |
24746 | if (PyErr_Occurred()) SWIG_fail; | |
24747 | } | |
24748 | resultobj = result; | |
24749 | return resultobj; | |
24750 | fail: | |
24751 | return NULL; | |
24752 | } | |
24753 | ||
24754 | ||
24755 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24756 | PyObject *resultobj; | |
24757 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24758 | wxTreeItemId *arg2 = 0 ; | |
24759 | wxColour result; | |
24760 | PyObject * obj0 = 0 ; | |
24761 | PyObject * obj1 = 0 ; | |
24762 | char *kwnames[] = { | |
24763 | (char *) "self",(char *) "item", NULL | |
24764 | }; | |
24765 | ||
24766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24770 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24771 | SWIG_fail; | |
d14a1e28 | 24772 | if (arg2 == NULL) { |
2f4c0a16 RD |
24773 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24774 | SWIG_fail; | |
d14a1e28 RD |
24775 | } |
24776 | { | |
24777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24778 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24779 | ||
24780 | wxPyEndAllowThreads(__tstate); | |
24781 | if (PyErr_Occurred()) SWIG_fail; | |
24782 | } | |
24783 | { | |
24784 | wxColour * resultptr; | |
24785 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24786 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24787 | } |
24788 | return resultobj; | |
24789 | fail: | |
24790 | return NULL; | |
24791 | } | |
24792 | ||
24793 | ||
24794 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24795 | PyObject *resultobj; | |
24796 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24797 | wxTreeItemId *arg2 = 0 ; | |
24798 | wxColour result; | |
24799 | PyObject * obj0 = 0 ; | |
24800 | PyObject * obj1 = 0 ; | |
24801 | char *kwnames[] = { | |
24802 | (char *) "self",(char *) "item", NULL | |
24803 | }; | |
24804 | ||
24805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24808 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24809 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24810 | SWIG_fail; | |
d14a1e28 | 24811 | if (arg2 == NULL) { |
2f4c0a16 RD |
24812 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24813 | SWIG_fail; | |
d14a1e28 RD |
24814 | } |
24815 | { | |
24816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24817 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24818 | ||
24819 | wxPyEndAllowThreads(__tstate); | |
24820 | if (PyErr_Occurred()) SWIG_fail; | |
24821 | } | |
24822 | { | |
24823 | wxColour * resultptr; | |
24824 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24825 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24826 | } |
24827 | return resultobj; | |
24828 | fail: | |
24829 | return NULL; | |
24830 | } | |
24831 | ||
24832 | ||
24833 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24834 | PyObject *resultobj; | |
24835 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24836 | wxTreeItemId *arg2 = 0 ; | |
24837 | wxFont result; | |
24838 | PyObject * obj0 = 0 ; | |
24839 | PyObject * obj1 = 0 ; | |
24840 | char *kwnames[] = { | |
24841 | (char *) "self",(char *) "item", NULL | |
24842 | }; | |
24843 | ||
24844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24849 | SWIG_fail; | |
d14a1e28 | 24850 | if (arg2 == NULL) { |
2f4c0a16 RD |
24851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24852 | SWIG_fail; | |
d14a1e28 RD |
24853 | } |
24854 | { | |
24855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24856 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24857 | ||
24858 | wxPyEndAllowThreads(__tstate); | |
24859 | if (PyErr_Occurred()) SWIG_fail; | |
24860 | } | |
24861 | { | |
24862 | wxFont * resultptr; | |
24863 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 24864 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
24865 | } |
24866 | return resultobj; | |
24867 | fail: | |
24868 | return NULL; | |
24869 | } | |
24870 | ||
24871 | ||
24872 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24873 | PyObject *resultobj; | |
24874 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24875 | wxTreeItemId *arg2 = 0 ; | |
24876 | wxString *arg3 = 0 ; | |
423f194a | 24877 | bool temp3 = False ; |
d14a1e28 RD |
24878 | PyObject * obj0 = 0 ; |
24879 | PyObject * obj1 = 0 ; | |
24880 | PyObject * obj2 = 0 ; | |
24881 | char *kwnames[] = { | |
24882 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24883 | }; | |
24884 | ||
24885 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24886 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24887 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24888 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24889 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24890 | SWIG_fail; | |
d14a1e28 | 24891 | if (arg2 == NULL) { |
2f4c0a16 RD |
24892 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24893 | SWIG_fail; | |
d14a1e28 RD |
24894 | } |
24895 | { | |
24896 | arg3 = wxString_in_helper(obj2); | |
24897 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24898 | temp3 = True; |
d14a1e28 RD |
24899 | } |
24900 | { | |
24901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24902 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24903 | ||
24904 | wxPyEndAllowThreads(__tstate); | |
24905 | if (PyErr_Occurred()) SWIG_fail; | |
24906 | } | |
24907 | Py_INCREF(Py_None); resultobj = Py_None; | |
24908 | { | |
24909 | if (temp3) | |
24910 | delete arg3; | |
24911 | } | |
24912 | return resultobj; | |
24913 | fail: | |
24914 | { | |
24915 | if (temp3) | |
24916 | delete arg3; | |
24917 | } | |
24918 | return NULL; | |
24919 | } | |
24920 | ||
24921 | ||
24922 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24923 | PyObject *resultobj; | |
24924 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24925 | wxTreeItemId *arg2 = 0 ; | |
24926 | int arg3 ; | |
24927 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24928 | PyObject * obj0 = 0 ; | |
24929 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24930 | PyObject * obj2 = 0 ; |
24931 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24932 | char *kwnames[] = { |
24933 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24934 | }; | |
24935 | ||
8edf1c75 | 24936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
24937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24939 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24940 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24941 | SWIG_fail; | |
d14a1e28 | 24942 | if (arg2 == NULL) { |
2f4c0a16 RD |
24943 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24944 | SWIG_fail; | |
8edf1c75 | 24945 | } |
2f4c0a16 RD |
24946 | arg3 = (int) SWIG_AsInt(obj2); |
24947 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24948 | if (obj3) { |
2f4c0a16 RD |
24949 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
24950 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24951 | } |
d14a1e28 RD |
24952 | { |
24953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24954 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24955 | ||
24956 | wxPyEndAllowThreads(__tstate); | |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
24958 | } | |
24959 | Py_INCREF(Py_None); resultobj = Py_None; | |
24960 | return resultobj; | |
24961 | fail: | |
24962 | return NULL; | |
24963 | } | |
24964 | ||
24965 | ||
24966 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24967 | PyObject *resultobj; | |
24968 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24969 | wxTreeItemId *arg2 = 0 ; | |
24970 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24971 | PyObject * obj0 = 0 ; | |
24972 | PyObject * obj1 = 0 ; | |
24973 | PyObject * obj2 = 0 ; | |
24974 | char *kwnames[] = { | |
24975 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24976 | }; | |
24977 | ||
24978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24981 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24982 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24983 | SWIG_fail; | |
d14a1e28 | 24984 | if (arg2 == NULL) { |
2f4c0a16 RD |
24985 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24986 | SWIG_fail; | |
d14a1e28 | 24987 | } |
2f4c0a16 RD |
24988 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
24989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24990 | { |
24991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24992 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
24993 | ||
24994 | wxPyEndAllowThreads(__tstate); | |
24995 | if (PyErr_Occurred()) SWIG_fail; | |
24996 | } | |
24997 | Py_INCREF(Py_None); resultobj = Py_None; | |
24998 | return resultobj; | |
24999 | fail: | |
25000 | return NULL; | |
25001 | } | |
25002 | ||
25003 | ||
25004 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25005 | PyObject *resultobj; | |
25006 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25007 | wxTreeItemId *arg2 = 0 ; | |
25008 | PyObject *arg3 = (PyObject *) 0 ; | |
25009 | PyObject * obj0 = 0 ; | |
25010 | PyObject * obj1 = 0 ; | |
25011 | PyObject * obj2 = 0 ; | |
25012 | char *kwnames[] = { | |
25013 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25014 | }; | |
25015 | ||
25016 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25017 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25018 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25019 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25021 | SWIG_fail; | |
d14a1e28 | 25022 | if (arg2 == NULL) { |
2f4c0a16 RD |
25023 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25024 | SWIG_fail; | |
d14a1e28 RD |
25025 | } |
25026 | arg3 = obj2; | |
25027 | { | |
25028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25029 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25030 | ||
25031 | wxPyEndAllowThreads(__tstate); | |
25032 | if (PyErr_Occurred()) SWIG_fail; | |
25033 | } | |
25034 | Py_INCREF(Py_None); resultobj = Py_None; | |
25035 | return resultobj; | |
25036 | fail: | |
25037 | return NULL; | |
25038 | } | |
25039 | ||
25040 | ||
25041 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25042 | PyObject *resultobj; | |
25043 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25044 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25045 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25046 | PyObject * obj0 = 0 ; |
25047 | PyObject * obj1 = 0 ; | |
25048 | PyObject * obj2 = 0 ; | |
25049 | char *kwnames[] = { | |
25050 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25051 | }; | |
25052 | ||
25053 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25054 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25055 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25056 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25057 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25058 | SWIG_fail; | |
d14a1e28 | 25059 | if (arg2 == NULL) { |
2f4c0a16 RD |
25060 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25061 | SWIG_fail; | |
d14a1e28 RD |
25062 | } |
25063 | if (obj2) { | |
2f4c0a16 RD |
25064 | arg3 = (bool) SWIG_AsBool(obj2); |
25065 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25066 | } |
25067 | { | |
25068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25069 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25070 | ||
25071 | wxPyEndAllowThreads(__tstate); | |
25072 | if (PyErr_Occurred()) SWIG_fail; | |
25073 | } | |
25074 | Py_INCREF(Py_None); resultobj = Py_None; | |
25075 | return resultobj; | |
25076 | fail: | |
25077 | return NULL; | |
25078 | } | |
25079 | ||
25080 | ||
25081 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25082 | PyObject *resultobj; | |
25083 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25084 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25085 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25086 | PyObject * obj0 = 0 ; |
25087 | PyObject * obj1 = 0 ; | |
25088 | PyObject * obj2 = 0 ; | |
25089 | char *kwnames[] = { | |
25090 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25091 | }; | |
25092 | ||
25093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25096 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25097 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25098 | SWIG_fail; | |
d14a1e28 | 25099 | if (arg2 == NULL) { |
2f4c0a16 RD |
25100 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25101 | SWIG_fail; | |
d14a1e28 RD |
25102 | } |
25103 | if (obj2) { | |
2f4c0a16 RD |
25104 | arg3 = (bool) SWIG_AsBool(obj2); |
25105 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25106 | } |
25107 | { | |
25108 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25109 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25110 | ||
25111 | wxPyEndAllowThreads(__tstate); | |
25112 | if (PyErr_Occurred()) SWIG_fail; | |
25113 | } | |
25114 | Py_INCREF(Py_None); resultobj = Py_None; | |
25115 | return resultobj; | |
25116 | fail: | |
25117 | return NULL; | |
25118 | } | |
25119 | ||
25120 | ||
25121 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25122 | PyObject *resultobj; | |
25123 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25124 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25125 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25126 | PyObject * obj0 = 0 ; |
25127 | PyObject * obj1 = 0 ; | |
25128 | PyObject * obj2 = 0 ; | |
25129 | char *kwnames[] = { | |
25130 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
25131 | }; | |
25132 | ||
25133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25137 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25138 | SWIG_fail; | |
d14a1e28 | 25139 | if (arg2 == NULL) { |
2f4c0a16 RD |
25140 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25141 | SWIG_fail; | |
d14a1e28 RD |
25142 | } |
25143 | if (obj2) { | |
2f4c0a16 RD |
25144 | arg3 = (bool) SWIG_AsBool(obj2); |
25145 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25146 | } |
25147 | { | |
25148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25149 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
25150 | ||
25151 | wxPyEndAllowThreads(__tstate); | |
25152 | if (PyErr_Occurred()) SWIG_fail; | |
25153 | } | |
25154 | Py_INCREF(Py_None); resultobj = Py_None; | |
25155 | return resultobj; | |
25156 | fail: | |
25157 | return NULL; | |
25158 | } | |
25159 | ||
25160 | ||
25161 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25162 | PyObject *resultobj; | |
25163 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25164 | wxTreeItemId *arg2 = 0 ; | |
25165 | wxColour *arg3 = 0 ; | |
25166 | wxColour temp3 ; | |
25167 | PyObject * obj0 = 0 ; | |
25168 | PyObject * obj1 = 0 ; | |
25169 | PyObject * obj2 = 0 ; | |
25170 | char *kwnames[] = { | |
25171 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25172 | }; | |
25173 | ||
25174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25177 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25178 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25179 | SWIG_fail; | |
d14a1e28 | 25180 | if (arg2 == NULL) { |
2f4c0a16 RD |
25181 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25182 | SWIG_fail; | |
d14a1e28 RD |
25183 | } |
25184 | { | |
25185 | arg3 = &temp3; | |
25186 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25187 | } | |
25188 | { | |
25189 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25190 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25191 | ||
25192 | wxPyEndAllowThreads(__tstate); | |
25193 | if (PyErr_Occurred()) SWIG_fail; | |
25194 | } | |
25195 | Py_INCREF(Py_None); resultobj = Py_None; | |
25196 | return resultobj; | |
25197 | fail: | |
25198 | return NULL; | |
25199 | } | |
25200 | ||
25201 | ||
25202 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25203 | PyObject *resultobj; | |
25204 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25205 | wxTreeItemId *arg2 = 0 ; | |
25206 | wxColour *arg3 = 0 ; | |
25207 | wxColour temp3 ; | |
25208 | PyObject * obj0 = 0 ; | |
25209 | PyObject * obj1 = 0 ; | |
25210 | PyObject * obj2 = 0 ; | |
25211 | char *kwnames[] = { | |
25212 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25213 | }; | |
25214 | ||
25215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25218 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25219 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25220 | SWIG_fail; | |
d14a1e28 | 25221 | if (arg2 == NULL) { |
2f4c0a16 RD |
25222 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25223 | SWIG_fail; | |
d14a1e28 RD |
25224 | } |
25225 | { | |
25226 | arg3 = &temp3; | |
25227 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25228 | } | |
25229 | { | |
25230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25231 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25232 | ||
25233 | wxPyEndAllowThreads(__tstate); | |
25234 | if (PyErr_Occurred()) SWIG_fail; | |
25235 | } | |
25236 | Py_INCREF(Py_None); resultobj = Py_None; | |
25237 | return resultobj; | |
25238 | fail: | |
25239 | return NULL; | |
25240 | } | |
25241 | ||
25242 | ||
25243 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25244 | PyObject *resultobj; | |
25245 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25246 | wxTreeItemId *arg2 = 0 ; | |
25247 | wxFont *arg3 = 0 ; | |
25248 | PyObject * obj0 = 0 ; | |
25249 | PyObject * obj1 = 0 ; | |
25250 | PyObject * obj2 = 0 ; | |
25251 | char *kwnames[] = { | |
25252 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25253 | }; | |
25254 | ||
25255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25258 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25259 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25260 | SWIG_fail; | |
d14a1e28 | 25261 | if (arg2 == NULL) { |
2f4c0a16 RD |
25262 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25263 | SWIG_fail; | |
d14a1e28 | 25264 | } |
2f4c0a16 RD |
25265 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
25266 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25267 | SWIG_fail; | |
d14a1e28 | 25268 | if (arg3 == NULL) { |
2f4c0a16 RD |
25269 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25270 | SWIG_fail; | |
d14a1e28 RD |
25271 | } |
25272 | { | |
25273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25274 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25275 | ||
25276 | wxPyEndAllowThreads(__tstate); | |
25277 | if (PyErr_Occurred()) SWIG_fail; | |
25278 | } | |
25279 | Py_INCREF(Py_None); resultobj = Py_None; | |
25280 | return resultobj; | |
25281 | fail: | |
25282 | return NULL; | |
25283 | } | |
25284 | ||
25285 | ||
25286 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25287 | PyObject *resultobj; | |
25288 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25289 | wxTreeItemId *arg2 = 0 ; | |
25290 | bool result; | |
25291 | PyObject * obj0 = 0 ; | |
25292 | PyObject * obj1 = 0 ; | |
25293 | char *kwnames[] = { | |
25294 | (char *) "self",(char *) "item", NULL | |
25295 | }; | |
25296 | ||
25297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25301 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25302 | SWIG_fail; | |
d14a1e28 | 25303 | if (arg2 == NULL) { |
2f4c0a16 RD |
25304 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25305 | SWIG_fail; | |
d14a1e28 RD |
25306 | } |
25307 | { | |
25308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25309 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25310 | ||
25311 | wxPyEndAllowThreads(__tstate); | |
25312 | if (PyErr_Occurred()) SWIG_fail; | |
25313 | } | |
4f89f6a3 RD |
25314 | { |
25315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25316 | } | |
d14a1e28 RD |
25317 | return resultobj; |
25318 | fail: | |
25319 | return NULL; | |
25320 | } | |
25321 | ||
25322 | ||
25323 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25324 | PyObject *resultobj; | |
25325 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25326 | wxTreeItemId *arg2 = 0 ; | |
25327 | bool result; | |
25328 | PyObject * obj0 = 0 ; | |
25329 | PyObject * obj1 = 0 ; | |
25330 | char *kwnames[] = { | |
25331 | (char *) "self",(char *) "item", NULL | |
25332 | }; | |
25333 | ||
25334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25337 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25338 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25339 | SWIG_fail; | |
d14a1e28 | 25340 | if (arg2 == NULL) { |
2f4c0a16 RD |
25341 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25342 | SWIG_fail; | |
d14a1e28 RD |
25343 | } |
25344 | { | |
25345 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25346 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25347 | ||
25348 | wxPyEndAllowThreads(__tstate); | |
25349 | if (PyErr_Occurred()) SWIG_fail; | |
25350 | } | |
4f89f6a3 RD |
25351 | { |
25352 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25353 | } | |
d14a1e28 RD |
25354 | return resultobj; |
25355 | fail: | |
25356 | return NULL; | |
25357 | } | |
25358 | ||
25359 | ||
25360 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25361 | PyObject *resultobj; | |
25362 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25363 | wxTreeItemId *arg2 = 0 ; | |
25364 | bool result; | |
25365 | PyObject * obj0 = 0 ; | |
25366 | PyObject * obj1 = 0 ; | |
25367 | char *kwnames[] = { | |
25368 | (char *) "self",(char *) "item", NULL | |
25369 | }; | |
25370 | ||
25371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25374 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25375 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25376 | SWIG_fail; | |
d14a1e28 | 25377 | if (arg2 == NULL) { |
2f4c0a16 RD |
25378 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25379 | SWIG_fail; | |
d14a1e28 RD |
25380 | } |
25381 | { | |
25382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25383 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25384 | ||
25385 | wxPyEndAllowThreads(__tstate); | |
25386 | if (PyErr_Occurred()) SWIG_fail; | |
25387 | } | |
4f89f6a3 RD |
25388 | { |
25389 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25390 | } | |
d14a1e28 RD |
25391 | return resultobj; |
25392 | fail: | |
25393 | return NULL; | |
25394 | } | |
25395 | ||
25396 | ||
25397 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25398 | PyObject *resultobj; | |
25399 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25400 | wxTreeItemId *arg2 = 0 ; | |
25401 | bool result; | |
25402 | PyObject * obj0 = 0 ; | |
25403 | PyObject * obj1 = 0 ; | |
25404 | char *kwnames[] = { | |
25405 | (char *) "self",(char *) "item", NULL | |
25406 | }; | |
25407 | ||
25408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25411 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25412 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25413 | SWIG_fail; | |
d14a1e28 | 25414 | if (arg2 == NULL) { |
2f4c0a16 RD |
25415 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25416 | SWIG_fail; | |
d14a1e28 RD |
25417 | } |
25418 | { | |
25419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25420 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25421 | ||
25422 | wxPyEndAllowThreads(__tstate); | |
25423 | if (PyErr_Occurred()) SWIG_fail; | |
25424 | } | |
4f89f6a3 RD |
25425 | { |
25426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25427 | } | |
d14a1e28 RD |
25428 | return resultobj; |
25429 | fail: | |
25430 | return NULL; | |
25431 | } | |
25432 | ||
25433 | ||
25434 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25435 | PyObject *resultobj; | |
25436 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25437 | wxTreeItemId *arg2 = 0 ; | |
25438 | bool result; | |
25439 | PyObject * obj0 = 0 ; | |
25440 | PyObject * obj1 = 0 ; | |
25441 | char *kwnames[] = { | |
25442 | (char *) "self",(char *) "item", NULL | |
25443 | }; | |
25444 | ||
25445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25448 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25449 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25450 | SWIG_fail; | |
d14a1e28 | 25451 | if (arg2 == NULL) { |
2f4c0a16 RD |
25452 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25453 | SWIG_fail; | |
d14a1e28 RD |
25454 | } |
25455 | { | |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25457 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25458 | ||
25459 | wxPyEndAllowThreads(__tstate); | |
25460 | if (PyErr_Occurred()) SWIG_fail; | |
25461 | } | |
4f89f6a3 RD |
25462 | { |
25463 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25464 | } | |
d14a1e28 RD |
25465 | return resultobj; |
25466 | fail: | |
25467 | return NULL; | |
25468 | } | |
25469 | ||
25470 | ||
25471 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25472 | PyObject *resultobj; | |
25473 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25474 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25475 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25476 | size_t result; |
25477 | PyObject * obj0 = 0 ; | |
25478 | PyObject * obj1 = 0 ; | |
25479 | PyObject * obj2 = 0 ; | |
25480 | char *kwnames[] = { | |
25481 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25482 | }; | |
25483 | ||
25484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25489 | SWIG_fail; | |
d14a1e28 | 25490 | if (arg2 == NULL) { |
2f4c0a16 RD |
25491 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25492 | SWIG_fail; | |
d14a1e28 RD |
25493 | } |
25494 | if (obj2) { | |
2f4c0a16 RD |
25495 | arg3 = (bool) SWIG_AsBool(obj2); |
25496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25497 | } |
25498 | { | |
25499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25500 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25501 | ||
25502 | wxPyEndAllowThreads(__tstate); | |
25503 | if (PyErr_Occurred()) SWIG_fail; | |
25504 | } | |
2f4c0a16 | 25505 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25506 | return resultobj; |
25507 | fail: | |
25508 | return NULL; | |
25509 | } | |
25510 | ||
25511 | ||
25512 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25513 | PyObject *resultobj; | |
25514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25515 | wxTreeItemId result; | |
25516 | PyObject * obj0 = 0 ; | |
25517 | char *kwnames[] = { | |
25518 | (char *) "self", NULL | |
25519 | }; | |
25520 | ||
25521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25524 | { |
25525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25526 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25527 | ||
25528 | wxPyEndAllowThreads(__tstate); | |
25529 | if (PyErr_Occurred()) SWIG_fail; | |
25530 | } | |
25531 | { | |
25532 | wxTreeItemId * resultptr; | |
25533 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25534 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25535 | } |
25536 | return resultobj; | |
25537 | fail: | |
25538 | return NULL; | |
25539 | } | |
25540 | ||
25541 | ||
25542 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25543 | PyObject *resultobj; | |
25544 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25545 | wxTreeItemId result; | |
25546 | PyObject * obj0 = 0 ; | |
25547 | char *kwnames[] = { | |
25548 | (char *) "self", NULL | |
25549 | }; | |
25550 | ||
25551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25554 | { |
25555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25556 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25557 | ||
25558 | wxPyEndAllowThreads(__tstate); | |
25559 | if (PyErr_Occurred()) SWIG_fail; | |
25560 | } | |
25561 | { | |
25562 | wxTreeItemId * resultptr; | |
25563 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25564 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25565 | } |
25566 | return resultobj; | |
25567 | fail: | |
25568 | return NULL; | |
25569 | } | |
25570 | ||
25571 | ||
25572 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25573 | PyObject *resultobj; | |
25574 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25575 | PyObject *result; | |
25576 | PyObject * obj0 = 0 ; | |
25577 | char *kwnames[] = { | |
25578 | (char *) "self", NULL | |
25579 | }; | |
25580 | ||
25581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25584 | { |
25585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25586 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25587 | ||
25588 | wxPyEndAllowThreads(__tstate); | |
25589 | if (PyErr_Occurred()) SWIG_fail; | |
25590 | } | |
25591 | resultobj = result; | |
25592 | return resultobj; | |
25593 | fail: | |
25594 | return NULL; | |
25595 | } | |
25596 | ||
25597 | ||
25598 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25599 | PyObject *resultobj; | |
25600 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25601 | wxTreeItemId *arg2 = 0 ; | |
25602 | wxTreeItemId result; | |
25603 | PyObject * obj0 = 0 ; | |
25604 | PyObject * obj1 = 0 ; | |
25605 | char *kwnames[] = { | |
25606 | (char *) "self",(char *) "item", NULL | |
25607 | }; | |
25608 | ||
25609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25612 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25613 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25614 | SWIG_fail; | |
d14a1e28 | 25615 | if (arg2 == NULL) { |
2f4c0a16 RD |
25616 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25617 | SWIG_fail; | |
d14a1e28 RD |
25618 | } |
25619 | { | |
25620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25621 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25622 | ||
25623 | wxPyEndAllowThreads(__tstate); | |
25624 | if (PyErr_Occurred()) SWIG_fail; | |
25625 | } | |
25626 | { | |
25627 | wxTreeItemId * resultptr; | |
25628 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25629 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25630 | } |
25631 | return resultobj; | |
25632 | fail: | |
25633 | return NULL; | |
25634 | } | |
25635 | ||
25636 | ||
25637 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25638 | PyObject *resultobj; | |
25639 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25640 | wxTreeItemId *arg2 = 0 ; | |
25641 | PyObject *result; | |
25642 | PyObject * obj0 = 0 ; | |
25643 | PyObject * obj1 = 0 ; | |
25644 | char *kwnames[] = { | |
25645 | (char *) "self",(char *) "item", NULL | |
25646 | }; | |
25647 | ||
25648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25651 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25653 | SWIG_fail; | |
d14a1e28 | 25654 | if (arg2 == NULL) { |
2f4c0a16 RD |
25655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25656 | SWIG_fail; | |
d14a1e28 RD |
25657 | } |
25658 | { | |
25659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25660 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25661 | ||
25662 | wxPyEndAllowThreads(__tstate); | |
25663 | if (PyErr_Occurred()) SWIG_fail; | |
25664 | } | |
25665 | resultobj = result; | |
25666 | return resultobj; | |
25667 | fail: | |
25668 | return NULL; | |
25669 | } | |
25670 | ||
25671 | ||
25672 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25673 | PyObject *resultobj; | |
25674 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25675 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25676 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25677 | PyObject *result; |
25678 | PyObject * obj0 = 0 ; | |
25679 | PyObject * obj1 = 0 ; | |
25680 | PyObject * obj2 = 0 ; | |
25681 | char *kwnames[] = { | |
25682 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25683 | }; | |
25684 | ||
25685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25688 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25689 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25690 | SWIG_fail; | |
d14a1e28 | 25691 | if (arg2 == NULL) { |
2f4c0a16 RD |
25692 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25693 | SWIG_fail; | |
d14a1e28 | 25694 | } |
2f4c0a16 | 25695 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
25696 | { |
25697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25698 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25699 | |
25700 | wxPyEndAllowThreads(__tstate); | |
25701 | if (PyErr_Occurred()) SWIG_fail; | |
25702 | } | |
25703 | resultobj = result; | |
25704 | return resultobj; | |
25705 | fail: | |
25706 | return NULL; | |
25707 | } | |
25708 | ||
25709 | ||
25710 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25711 | PyObject *resultobj; | |
25712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25713 | wxTreeItemId *arg2 = 0 ; | |
25714 | wxTreeItemId result; | |
25715 | PyObject * obj0 = 0 ; | |
25716 | PyObject * obj1 = 0 ; | |
25717 | char *kwnames[] = { | |
25718 | (char *) "self",(char *) "item", NULL | |
25719 | }; | |
25720 | ||
25721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25724 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25725 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25726 | SWIG_fail; | |
d14a1e28 | 25727 | if (arg2 == NULL) { |
2f4c0a16 RD |
25728 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25729 | SWIG_fail; | |
d14a1e28 RD |
25730 | } |
25731 | { | |
25732 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25733 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25734 | ||
25735 | wxPyEndAllowThreads(__tstate); | |
25736 | if (PyErr_Occurred()) SWIG_fail; | |
25737 | } | |
25738 | { | |
25739 | wxTreeItemId * resultptr; | |
25740 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25741 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25742 | } |
25743 | return resultobj; | |
25744 | fail: | |
25745 | return NULL; | |
25746 | } | |
25747 | ||
25748 | ||
25749 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25750 | PyObject *resultobj; | |
25751 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25752 | wxTreeItemId *arg2 = 0 ; | |
25753 | wxTreeItemId result; | |
25754 | PyObject * obj0 = 0 ; | |
25755 | PyObject * obj1 = 0 ; | |
25756 | char *kwnames[] = { | |
25757 | (char *) "self",(char *) "item", NULL | |
25758 | }; | |
25759 | ||
25760 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25761 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25762 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25763 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25764 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25765 | SWIG_fail; | |
d14a1e28 | 25766 | if (arg2 == NULL) { |
2f4c0a16 RD |
25767 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25768 | SWIG_fail; | |
d14a1e28 RD |
25769 | } |
25770 | { | |
25771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25772 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25773 | ||
25774 | wxPyEndAllowThreads(__tstate); | |
25775 | if (PyErr_Occurred()) SWIG_fail; | |
25776 | } | |
25777 | { | |
25778 | wxTreeItemId * resultptr; | |
25779 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25781 | } |
25782 | return resultobj; | |
25783 | fail: | |
25784 | return NULL; | |
25785 | } | |
25786 | ||
25787 | ||
25788 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25789 | PyObject *resultobj; | |
25790 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25791 | wxTreeItemId *arg2 = 0 ; | |
25792 | wxTreeItemId result; | |
25793 | PyObject * obj0 = 0 ; | |
25794 | PyObject * obj1 = 0 ; | |
25795 | char *kwnames[] = { | |
25796 | (char *) "self",(char *) "item", NULL | |
25797 | }; | |
25798 | ||
25799 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25800 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25801 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25802 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25803 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25804 | SWIG_fail; | |
d14a1e28 | 25805 | if (arg2 == NULL) { |
2f4c0a16 RD |
25806 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25807 | SWIG_fail; | |
d14a1e28 RD |
25808 | } |
25809 | { | |
25810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25811 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25812 | ||
25813 | wxPyEndAllowThreads(__tstate); | |
25814 | if (PyErr_Occurred()) SWIG_fail; | |
25815 | } | |
25816 | { | |
25817 | wxTreeItemId * resultptr; | |
25818 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25819 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25820 | } |
25821 | return resultobj; | |
25822 | fail: | |
25823 | return NULL; | |
25824 | } | |
25825 | ||
25826 | ||
25827 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25828 | PyObject *resultobj; | |
25829 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25830 | wxTreeItemId result; | |
25831 | PyObject * obj0 = 0 ; | |
25832 | char *kwnames[] = { | |
25833 | (char *) "self", NULL | |
25834 | }; | |
25835 | ||
25836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25839 | { |
25840 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25841 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25842 | ||
25843 | wxPyEndAllowThreads(__tstate); | |
25844 | if (PyErr_Occurred()) SWIG_fail; | |
25845 | } | |
25846 | { | |
25847 | wxTreeItemId * resultptr; | |
25848 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25849 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25850 | } |
25851 | return resultobj; | |
25852 | fail: | |
25853 | return NULL; | |
25854 | } | |
25855 | ||
25856 | ||
25857 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25858 | PyObject *resultobj; | |
25859 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25860 | wxTreeItemId *arg2 = 0 ; | |
25861 | wxTreeItemId result; | |
25862 | PyObject * obj0 = 0 ; | |
25863 | PyObject * obj1 = 0 ; | |
25864 | char *kwnames[] = { | |
25865 | (char *) "self",(char *) "item", NULL | |
25866 | }; | |
25867 | ||
25868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25871 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25872 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25873 | SWIG_fail; | |
d14a1e28 | 25874 | if (arg2 == NULL) { |
2f4c0a16 RD |
25875 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25876 | SWIG_fail; | |
d14a1e28 RD |
25877 | } |
25878 | { | |
25879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25880 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25881 | ||
25882 | wxPyEndAllowThreads(__tstate); | |
25883 | if (PyErr_Occurred()) SWIG_fail; | |
25884 | } | |
25885 | { | |
25886 | wxTreeItemId * resultptr; | |
25887 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25888 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25889 | } |
25890 | return resultobj; | |
25891 | fail: | |
25892 | return NULL; | |
25893 | } | |
25894 | ||
25895 | ||
25896 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25897 | PyObject *resultobj; | |
25898 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25899 | wxTreeItemId *arg2 = 0 ; | |
25900 | wxTreeItemId result; | |
25901 | PyObject * obj0 = 0 ; | |
25902 | PyObject * obj1 = 0 ; | |
25903 | char *kwnames[] = { | |
25904 | (char *) "self",(char *) "item", NULL | |
25905 | }; | |
25906 | ||
25907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25910 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25911 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25912 | SWIG_fail; | |
d14a1e28 | 25913 | if (arg2 == NULL) { |
2f4c0a16 RD |
25914 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25915 | SWIG_fail; | |
d14a1e28 RD |
25916 | } |
25917 | { | |
25918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25919 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25920 | ||
25921 | wxPyEndAllowThreads(__tstate); | |
25922 | if (PyErr_Occurred()) SWIG_fail; | |
25923 | } | |
25924 | { | |
25925 | wxTreeItemId * resultptr; | |
25926 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25928 | } |
25929 | return resultobj; | |
25930 | fail: | |
25931 | return NULL; | |
25932 | } | |
25933 | ||
25934 | ||
25935 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25936 | PyObject *resultobj; | |
25937 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25938 | wxString *arg2 = 0 ; | |
25939 | int arg3 = (int) -1 ; | |
25940 | int arg4 = (int) -1 ; | |
25941 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25942 | wxTreeItemId result; | |
423f194a | 25943 | bool temp2 = False ; |
d14a1e28 RD |
25944 | PyObject * obj0 = 0 ; |
25945 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25946 | PyObject * obj2 = 0 ; |
25947 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25948 | PyObject * obj4 = 0 ; |
25949 | char *kwnames[] = { | |
25950 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25951 | }; | |
25952 | ||
8edf1c75 | 25953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25956 | { |
25957 | arg2 = wxString_in_helper(obj1); | |
25958 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25959 | temp2 = True; |
d14a1e28 | 25960 | } |
8edf1c75 | 25961 | if (obj2) { |
2f4c0a16 RD |
25962 | arg3 = (int) SWIG_AsInt(obj2); |
25963 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
25964 | } |
25965 | if (obj3) { | |
2f4c0a16 RD |
25966 | arg4 = (int) SWIG_AsInt(obj3); |
25967 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25968 | } |
d14a1e28 | 25969 | if (obj4) { |
2f4c0a16 RD |
25970 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
25971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25972 | } |
25973 | { | |
25974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25975 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25976 | ||
25977 | wxPyEndAllowThreads(__tstate); | |
25978 | if (PyErr_Occurred()) SWIG_fail; | |
25979 | } | |
25980 | { | |
25981 | wxTreeItemId * resultptr; | |
25982 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25983 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25984 | } |
25985 | { | |
25986 | if (temp2) | |
25987 | delete arg2; | |
25988 | } | |
25989 | return resultobj; | |
25990 | fail: | |
25991 | { | |
25992 | if (temp2) | |
25993 | delete arg2; | |
25994 | } | |
25995 | return NULL; | |
25996 | } | |
25997 | ||
25998 | ||
25999 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26000 | PyObject *resultobj; | |
26001 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26002 | wxTreeItemId *arg2 = 0 ; | |
26003 | wxString *arg3 = 0 ; | |
26004 | int arg4 = (int) -1 ; | |
26005 | int arg5 = (int) -1 ; | |
26006 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26007 | wxTreeItemId result; | |
423f194a | 26008 | bool temp3 = False ; |
d14a1e28 RD |
26009 | PyObject * obj0 = 0 ; |
26010 | PyObject * obj1 = 0 ; | |
26011 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26012 | PyObject * obj3 = 0 ; |
26013 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26014 | PyObject * obj5 = 0 ; |
26015 | char *kwnames[] = { | |
26016 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26017 | }; | |
26018 | ||
8edf1c75 | 26019 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26020 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26021 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26022 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26023 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26024 | SWIG_fail; | |
d14a1e28 | 26025 | if (arg2 == NULL) { |
2f4c0a16 RD |
26026 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26027 | SWIG_fail; | |
d14a1e28 RD |
26028 | } |
26029 | { | |
26030 | arg3 = wxString_in_helper(obj2); | |
26031 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26032 | temp3 = True; |
d14a1e28 | 26033 | } |
8edf1c75 | 26034 | if (obj3) { |
2f4c0a16 RD |
26035 | arg4 = (int) SWIG_AsInt(obj3); |
26036 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26037 | } |
26038 | if (obj4) { | |
2f4c0a16 RD |
26039 | arg5 = (int) SWIG_AsInt(obj4); |
26040 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26041 | } |
d14a1e28 | 26042 | if (obj5) { |
2f4c0a16 RD |
26043 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26045 | } |
26046 | { | |
26047 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26048 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26049 | ||
26050 | wxPyEndAllowThreads(__tstate); | |
26051 | if (PyErr_Occurred()) SWIG_fail; | |
26052 | } | |
26053 | { | |
26054 | wxTreeItemId * resultptr; | |
26055 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26056 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26057 | } |
26058 | { | |
26059 | if (temp3) | |
26060 | delete arg3; | |
26061 | } | |
26062 | return resultobj; | |
26063 | fail: | |
26064 | { | |
26065 | if (temp3) | |
26066 | delete arg3; | |
26067 | } | |
26068 | return NULL; | |
26069 | } | |
26070 | ||
26071 | ||
26072 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26073 | PyObject *resultobj; | |
26074 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26075 | wxTreeItemId *arg2 = 0 ; | |
26076 | wxTreeItemId *arg3 = 0 ; | |
26077 | wxString *arg4 = 0 ; | |
26078 | int arg5 = (int) -1 ; | |
26079 | int arg6 = (int) -1 ; | |
26080 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26081 | wxTreeItemId result; | |
423f194a | 26082 | bool temp4 = False ; |
d14a1e28 RD |
26083 | PyObject * obj0 = 0 ; |
26084 | PyObject * obj1 = 0 ; | |
26085 | PyObject * obj2 = 0 ; | |
26086 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26087 | PyObject * obj4 = 0 ; |
26088 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26089 | PyObject * obj6 = 0 ; |
26090 | char *kwnames[] = { | |
26091 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26092 | }; | |
26093 | ||
8edf1c75 | 26094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26098 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26099 | SWIG_fail; | |
d14a1e28 | 26100 | if (arg2 == NULL) { |
2f4c0a16 RD |
26101 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26102 | SWIG_fail; | |
d14a1e28 | 26103 | } |
2f4c0a16 RD |
26104 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26105 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26106 | SWIG_fail; | |
d14a1e28 | 26107 | if (arg3 == NULL) { |
2f4c0a16 RD |
26108 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26109 | SWIG_fail; | |
d14a1e28 RD |
26110 | } |
26111 | { | |
26112 | arg4 = wxString_in_helper(obj3); | |
26113 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26114 | temp4 = True; |
d14a1e28 | 26115 | } |
8edf1c75 | 26116 | if (obj4) { |
2f4c0a16 RD |
26117 | arg5 = (int) SWIG_AsInt(obj4); |
26118 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26119 | } |
26120 | if (obj5) { | |
2f4c0a16 RD |
26121 | arg6 = (int) SWIG_AsInt(obj5); |
26122 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26123 | } |
d14a1e28 | 26124 | if (obj6) { |
2f4c0a16 RD |
26125 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26127 | } |
26128 | { | |
26129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26130 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26131 | ||
26132 | wxPyEndAllowThreads(__tstate); | |
26133 | if (PyErr_Occurred()) SWIG_fail; | |
26134 | } | |
26135 | { | |
26136 | wxTreeItemId * resultptr; | |
26137 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26138 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26139 | } |
26140 | { | |
26141 | if (temp4) | |
26142 | delete arg4; | |
26143 | } | |
26144 | return resultobj; | |
26145 | fail: | |
26146 | { | |
26147 | if (temp4) | |
26148 | delete arg4; | |
26149 | } | |
26150 | return NULL; | |
26151 | } | |
26152 | ||
26153 | ||
26154 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26155 | PyObject *resultobj; | |
26156 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26157 | wxTreeItemId *arg2 = 0 ; | |
26158 | size_t arg3 ; | |
26159 | wxString *arg4 = 0 ; | |
26160 | int arg5 = (int) -1 ; | |
26161 | int arg6 = (int) -1 ; | |
26162 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26163 | wxTreeItemId result; | |
423f194a | 26164 | bool temp4 = False ; |
d14a1e28 RD |
26165 | PyObject * obj0 = 0 ; |
26166 | PyObject * obj1 = 0 ; | |
26167 | PyObject * obj2 = 0 ; | |
26168 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26169 | PyObject * obj4 = 0 ; |
26170 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26171 | PyObject * obj6 = 0 ; |
26172 | char *kwnames[] = { | |
26173 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26174 | }; | |
26175 | ||
8edf1c75 | 26176 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26177 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26178 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26179 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26181 | SWIG_fail; | |
d14a1e28 | 26182 | if (arg2 == NULL) { |
2f4c0a16 RD |
26183 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26184 | SWIG_fail; | |
83448d71 | 26185 | } |
2f4c0a16 RD |
26186 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
26187 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26188 | { |
26189 | arg4 = wxString_in_helper(obj3); | |
26190 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26191 | temp4 = True; |
d14a1e28 | 26192 | } |
8edf1c75 | 26193 | if (obj4) { |
2f4c0a16 RD |
26194 | arg5 = (int) SWIG_AsInt(obj4); |
26195 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26196 | } |
26197 | if (obj5) { | |
2f4c0a16 RD |
26198 | arg6 = (int) SWIG_AsInt(obj5); |
26199 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26200 | } |
d14a1e28 | 26201 | if (obj6) { |
2f4c0a16 RD |
26202 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26203 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26204 | } |
26205 | { | |
26206 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26207 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26208 | ||
26209 | wxPyEndAllowThreads(__tstate); | |
26210 | if (PyErr_Occurred()) SWIG_fail; | |
26211 | } | |
26212 | { | |
26213 | wxTreeItemId * resultptr; | |
26214 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26215 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26216 | } |
26217 | { | |
26218 | if (temp4) | |
26219 | delete arg4; | |
26220 | } | |
26221 | return resultobj; | |
26222 | fail: | |
26223 | { | |
26224 | if (temp4) | |
26225 | delete arg4; | |
26226 | } | |
26227 | return NULL; | |
26228 | } | |
26229 | ||
26230 | ||
26231 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26232 | PyObject *resultobj; | |
26233 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26234 | wxTreeItemId *arg2 = 0 ; | |
26235 | wxString *arg3 = 0 ; | |
26236 | int arg4 = (int) -1 ; | |
26237 | int arg5 = (int) -1 ; | |
26238 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26239 | wxTreeItemId result; | |
423f194a | 26240 | bool temp3 = False ; |
d14a1e28 RD |
26241 | PyObject * obj0 = 0 ; |
26242 | PyObject * obj1 = 0 ; | |
26243 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26244 | PyObject * obj3 = 0 ; |
26245 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26246 | PyObject * obj5 = 0 ; |
26247 | char *kwnames[] = { | |
26248 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26249 | }; | |
26250 | ||
8edf1c75 | 26251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26254 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26255 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26256 | SWIG_fail; | |
d14a1e28 | 26257 | if (arg2 == NULL) { |
2f4c0a16 RD |
26258 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26259 | SWIG_fail; | |
d14a1e28 RD |
26260 | } |
26261 | { | |
26262 | arg3 = wxString_in_helper(obj2); | |
26263 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26264 | temp3 = True; |
d14a1e28 | 26265 | } |
8edf1c75 | 26266 | if (obj3) { |
2f4c0a16 RD |
26267 | arg4 = (int) SWIG_AsInt(obj3); |
26268 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26269 | } |
26270 | if (obj4) { | |
2f4c0a16 RD |
26271 | arg5 = (int) SWIG_AsInt(obj4); |
26272 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26273 | } |
d14a1e28 | 26274 | if (obj5) { |
2f4c0a16 RD |
26275 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26277 | } |
26278 | { | |
26279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26280 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26281 | ||
26282 | wxPyEndAllowThreads(__tstate); | |
26283 | if (PyErr_Occurred()) SWIG_fail; | |
26284 | } | |
26285 | { | |
26286 | wxTreeItemId * resultptr; | |
26287 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26289 | } |
26290 | { | |
26291 | if (temp3) | |
26292 | delete arg3; | |
26293 | } | |
26294 | return resultobj; | |
26295 | fail: | |
26296 | { | |
26297 | if (temp3) | |
26298 | delete arg3; | |
26299 | } | |
26300 | return NULL; | |
26301 | } | |
26302 | ||
26303 | ||
26304 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26305 | PyObject *resultobj; | |
26306 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26307 | wxTreeItemId *arg2 = 0 ; | |
26308 | PyObject * obj0 = 0 ; | |
26309 | PyObject * obj1 = 0 ; | |
26310 | char *kwnames[] = { | |
26311 | (char *) "self",(char *) "item", NULL | |
26312 | }; | |
26313 | ||
26314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26317 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26318 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26319 | SWIG_fail; | |
d14a1e28 | 26320 | if (arg2 == NULL) { |
2f4c0a16 RD |
26321 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26322 | SWIG_fail; | |
d14a1e28 RD |
26323 | } |
26324 | { | |
26325 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26326 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26327 | ||
26328 | wxPyEndAllowThreads(__tstate); | |
26329 | if (PyErr_Occurred()) SWIG_fail; | |
26330 | } | |
26331 | Py_INCREF(Py_None); resultobj = Py_None; | |
26332 | return resultobj; | |
26333 | fail: | |
26334 | return NULL; | |
26335 | } | |
26336 | ||
26337 | ||
26338 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26339 | PyObject *resultobj; | |
26340 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26341 | wxTreeItemId *arg2 = 0 ; | |
26342 | PyObject * obj0 = 0 ; | |
26343 | PyObject * obj1 = 0 ; | |
26344 | char *kwnames[] = { | |
26345 | (char *) "self",(char *) "item", NULL | |
26346 | }; | |
26347 | ||
26348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26351 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26352 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26353 | SWIG_fail; | |
d14a1e28 | 26354 | if (arg2 == NULL) { |
2f4c0a16 RD |
26355 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26356 | SWIG_fail; | |
d14a1e28 RD |
26357 | } |
26358 | { | |
26359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26360 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
26361 | ||
26362 | wxPyEndAllowThreads(__tstate); | |
26363 | if (PyErr_Occurred()) SWIG_fail; | |
26364 | } | |
26365 | Py_INCREF(Py_None); resultobj = Py_None; | |
26366 | return resultobj; | |
26367 | fail: | |
26368 | return NULL; | |
26369 | } | |
26370 | ||
26371 | ||
26372 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26373 | PyObject *resultobj; | |
26374 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26375 | PyObject * obj0 = 0 ; | |
26376 | char *kwnames[] = { | |
26377 | (char *) "self", NULL | |
26378 | }; | |
26379 | ||
26380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26383 | { |
26384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26385 | (arg1)->DeleteAllItems(); | |
26386 | ||
26387 | wxPyEndAllowThreads(__tstate); | |
26388 | if (PyErr_Occurred()) SWIG_fail; | |
26389 | } | |
26390 | Py_INCREF(Py_None); resultobj = Py_None; | |
26391 | return resultobj; | |
26392 | fail: | |
26393 | return NULL; | |
26394 | } | |
26395 | ||
26396 | ||
26397 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26398 | PyObject *resultobj; | |
26399 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26400 | wxTreeItemId *arg2 = 0 ; | |
26401 | PyObject * obj0 = 0 ; | |
26402 | PyObject * obj1 = 0 ; | |
26403 | char *kwnames[] = { | |
26404 | (char *) "self",(char *) "item", NULL | |
26405 | }; | |
26406 | ||
26407 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26408 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26409 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26410 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26411 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26412 | SWIG_fail; | |
d14a1e28 | 26413 | if (arg2 == NULL) { |
2f4c0a16 RD |
26414 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26415 | SWIG_fail; | |
d14a1e28 RD |
26416 | } |
26417 | { | |
26418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26419 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
26420 | ||
26421 | wxPyEndAllowThreads(__tstate); | |
26422 | if (PyErr_Occurred()) SWIG_fail; | |
26423 | } | |
26424 | Py_INCREF(Py_None); resultobj = Py_None; | |
26425 | return resultobj; | |
26426 | fail: | |
26427 | return NULL; | |
26428 | } | |
26429 | ||
26430 | ||
26431 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26432 | PyObject *resultobj; | |
26433 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26434 | wxTreeItemId *arg2 = 0 ; | |
26435 | PyObject * obj0 = 0 ; | |
26436 | PyObject * obj1 = 0 ; | |
26437 | char *kwnames[] = { | |
26438 | (char *) "self",(char *) "item", NULL | |
26439 | }; | |
26440 | ||
26441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26444 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26446 | SWIG_fail; | |
d14a1e28 | 26447 | if (arg2 == NULL) { |
2f4c0a16 RD |
26448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26449 | SWIG_fail; | |
d14a1e28 RD |
26450 | } |
26451 | { | |
26452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26453 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26454 | ||
26455 | wxPyEndAllowThreads(__tstate); | |
26456 | if (PyErr_Occurred()) SWIG_fail; | |
26457 | } | |
26458 | Py_INCREF(Py_None); resultobj = Py_None; | |
26459 | return resultobj; | |
26460 | fail: | |
26461 | return NULL; | |
26462 | } | |
26463 | ||
26464 | ||
26465 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26466 | PyObject *resultobj; | |
26467 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26468 | wxTreeItemId *arg2 = 0 ; | |
26469 | PyObject * obj0 = 0 ; | |
26470 | PyObject * obj1 = 0 ; | |
26471 | char *kwnames[] = { | |
26472 | (char *) "self",(char *) "item", NULL | |
26473 | }; | |
26474 | ||
26475 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26476 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26477 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26478 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26479 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26480 | SWIG_fail; | |
d14a1e28 | 26481 | if (arg2 == NULL) { |
2f4c0a16 RD |
26482 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26483 | SWIG_fail; | |
d14a1e28 RD |
26484 | } |
26485 | { | |
26486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26487 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26488 | ||
26489 | wxPyEndAllowThreads(__tstate); | |
26490 | if (PyErr_Occurred()) SWIG_fail; | |
26491 | } | |
26492 | Py_INCREF(Py_None); resultobj = Py_None; | |
26493 | return resultobj; | |
26494 | fail: | |
26495 | return NULL; | |
26496 | } | |
26497 | ||
26498 | ||
26499 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26500 | PyObject *resultobj; | |
26501 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26502 | wxTreeItemId *arg2 = 0 ; | |
26503 | PyObject * obj0 = 0 ; | |
26504 | PyObject * obj1 = 0 ; | |
26505 | char *kwnames[] = { | |
26506 | (char *) "self",(char *) "item", NULL | |
26507 | }; | |
26508 | ||
26509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26514 | SWIG_fail; | |
d14a1e28 | 26515 | if (arg2 == NULL) { |
2f4c0a16 RD |
26516 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26517 | SWIG_fail; | |
d14a1e28 RD |
26518 | } |
26519 | { | |
26520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26521 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26522 | ||
26523 | wxPyEndAllowThreads(__tstate); | |
26524 | if (PyErr_Occurred()) SWIG_fail; | |
26525 | } | |
26526 | Py_INCREF(Py_None); resultobj = Py_None; | |
26527 | return resultobj; | |
26528 | fail: | |
26529 | return NULL; | |
26530 | } | |
26531 | ||
26532 | ||
26533 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26534 | PyObject *resultobj; | |
26535 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26536 | PyObject * obj0 = 0 ; | |
26537 | char *kwnames[] = { | |
26538 | (char *) "self", NULL | |
26539 | }; | |
26540 | ||
26541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26544 | { |
26545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26546 | (arg1)->Unselect(); | |
26547 | ||
26548 | wxPyEndAllowThreads(__tstate); | |
26549 | if (PyErr_Occurred()) SWIG_fail; | |
26550 | } | |
26551 | Py_INCREF(Py_None); resultobj = Py_None; | |
26552 | return resultobj; | |
26553 | fail: | |
26554 | return NULL; | |
26555 | } | |
26556 | ||
26557 | ||
db914595 RD |
26558 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
26559 | PyObject *resultobj; | |
26560 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26561 | wxTreeItemId *arg2 = 0 ; | |
26562 | PyObject * obj0 = 0 ; | |
26563 | PyObject * obj1 = 0 ; | |
26564 | char *kwnames[] = { | |
26565 | (char *) "self",(char *) "item", NULL | |
26566 | }; | |
26567 | ||
26568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26571 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26572 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26573 | SWIG_fail; | |
db914595 | 26574 | if (arg2 == NULL) { |
2f4c0a16 RD |
26575 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26576 | SWIG_fail; | |
db914595 RD |
26577 | } |
26578 | { | |
26579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26580 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26581 | ||
26582 | wxPyEndAllowThreads(__tstate); | |
26583 | if (PyErr_Occurred()) SWIG_fail; | |
26584 | } | |
26585 | Py_INCREF(Py_None); resultobj = Py_None; | |
26586 | return resultobj; | |
26587 | fail: | |
26588 | return NULL; | |
26589 | } | |
26590 | ||
26591 | ||
d14a1e28 RD |
26592 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26593 | PyObject *resultobj; | |
26594 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26595 | PyObject * obj0 = 0 ; | |
26596 | char *kwnames[] = { | |
26597 | (char *) "self", NULL | |
26598 | }; | |
26599 | ||
26600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26603 | { |
26604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26605 | (arg1)->UnselectAll(); | |
26606 | ||
26607 | wxPyEndAllowThreads(__tstate); | |
26608 | if (PyErr_Occurred()) SWIG_fail; | |
26609 | } | |
26610 | Py_INCREF(Py_None); resultobj = Py_None; | |
26611 | return resultobj; | |
26612 | fail: | |
26613 | return NULL; | |
26614 | } | |
26615 | ||
26616 | ||
26617 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26618 | PyObject *resultobj; |
26619 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26620 | wxTreeItemId *arg2 = 0 ; | |
26621 | bool arg3 = (bool) True ; | |
26622 | PyObject * obj0 = 0 ; | |
26623 | PyObject * obj1 = 0 ; | |
26624 | PyObject * obj2 = 0 ; | |
26625 | char *kwnames[] = { | |
26626 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26627 | }; | |
26628 | ||
26629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26632 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26633 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26634 | SWIG_fail; | |
db914595 | 26635 | if (arg2 == NULL) { |
2f4c0a16 RD |
26636 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26637 | SWIG_fail; | |
db914595 RD |
26638 | } |
26639 | if (obj2) { | |
2f4c0a16 RD |
26640 | arg3 = (bool) SWIG_AsBool(obj2); |
26641 | if (PyErr_Occurred()) SWIG_fail; | |
db914595 RD |
26642 | } |
26643 | { | |
26644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26645 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26646 | ||
26647 | wxPyEndAllowThreads(__tstate); | |
26648 | if (PyErr_Occurred()) SWIG_fail; | |
26649 | } | |
26650 | Py_INCREF(Py_None); resultobj = Py_None; | |
26651 | return resultobj; | |
26652 | fail: | |
26653 | return NULL; | |
26654 | } | |
26655 | ||
26656 | ||
26657 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26658 | PyObject *resultobj; |
26659 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26660 | wxTreeItemId *arg2 = 0 ; | |
26661 | PyObject * obj0 = 0 ; | |
26662 | PyObject * obj1 = 0 ; | |
26663 | char *kwnames[] = { | |
26664 | (char *) "self",(char *) "item", NULL | |
26665 | }; | |
26666 | ||
db914595 | 26667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26672 | SWIG_fail; | |
d14a1e28 | 26673 | if (arg2 == NULL) { |
2f4c0a16 RD |
26674 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26675 | SWIG_fail; | |
d14a1e28 RD |
26676 | } |
26677 | { | |
26678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26679 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26680 | |
26681 | wxPyEndAllowThreads(__tstate); | |
26682 | if (PyErr_Occurred()) SWIG_fail; | |
26683 | } | |
26684 | Py_INCREF(Py_None); resultobj = Py_None; | |
26685 | return resultobj; | |
26686 | fail: | |
26687 | return NULL; | |
26688 | } | |
26689 | ||
26690 | ||
26691 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26692 | PyObject *resultobj; | |
26693 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26694 | wxTreeItemId *arg2 = 0 ; | |
26695 | PyObject * obj0 = 0 ; | |
26696 | PyObject * obj1 = 0 ; | |
26697 | char *kwnames[] = { | |
26698 | (char *) "self",(char *) "item", NULL | |
26699 | }; | |
26700 | ||
26701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26704 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26705 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26706 | SWIG_fail; | |
d14a1e28 | 26707 | if (arg2 == NULL) { |
2f4c0a16 RD |
26708 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26709 | SWIG_fail; | |
d14a1e28 RD |
26710 | } |
26711 | { | |
26712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26713 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26714 | ||
26715 | wxPyEndAllowThreads(__tstate); | |
26716 | if (PyErr_Occurred()) SWIG_fail; | |
26717 | } | |
26718 | Py_INCREF(Py_None); resultobj = Py_None; | |
26719 | return resultobj; | |
26720 | fail: | |
26721 | return NULL; | |
26722 | } | |
26723 | ||
26724 | ||
26725 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26726 | PyObject *resultobj; | |
26727 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26728 | wxTreeItemId *arg2 = 0 ; | |
26729 | PyObject * obj0 = 0 ; | |
26730 | PyObject * obj1 = 0 ; | |
26731 | char *kwnames[] = { | |
26732 | (char *) "self",(char *) "item", NULL | |
26733 | }; | |
26734 | ||
26735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26738 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26739 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26740 | SWIG_fail; | |
d14a1e28 | 26741 | if (arg2 == NULL) { |
2f4c0a16 RD |
26742 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26743 | SWIG_fail; | |
d14a1e28 RD |
26744 | } |
26745 | { | |
26746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26747 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26748 | ||
26749 | wxPyEndAllowThreads(__tstate); | |
26750 | if (PyErr_Occurred()) SWIG_fail; | |
26751 | } | |
26752 | Py_INCREF(Py_None); resultobj = Py_None; | |
26753 | return resultobj; | |
26754 | fail: | |
26755 | return NULL; | |
26756 | } | |
26757 | ||
26758 | ||
26759 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26760 | PyObject *resultobj; | |
26761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26762 | wxTreeItemId *arg2 = 0 ; | |
26763 | PyObject * obj0 = 0 ; | |
26764 | PyObject * obj1 = 0 ; | |
26765 | char *kwnames[] = { | |
26766 | (char *) "self",(char *) "item", NULL | |
26767 | }; | |
26768 | ||
26769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26772 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26773 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26774 | SWIG_fail; | |
d14a1e28 | 26775 | if (arg2 == NULL) { |
2f4c0a16 RD |
26776 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26777 | SWIG_fail; | |
d14a1e28 RD |
26778 | } |
26779 | { | |
26780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26781 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26782 | ||
26783 | wxPyEndAllowThreads(__tstate); | |
26784 | if (PyErr_Occurred()) SWIG_fail; | |
26785 | } | |
26786 | Py_INCREF(Py_None); resultobj = Py_None; | |
26787 | return resultobj; | |
26788 | fail: | |
26789 | return NULL; | |
26790 | } | |
26791 | ||
26792 | ||
26793 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26794 | PyObject *resultobj; | |
26795 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26796 | wxTextCtrl *result; | |
26797 | PyObject * obj0 = 0 ; | |
26798 | char *kwnames[] = { | |
26799 | (char *) "self", NULL | |
26800 | }; | |
26801 | ||
26802 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26803 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26804 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26805 | { |
26806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26807 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26808 | ||
26809 | wxPyEndAllowThreads(__tstate); | |
26810 | if (PyErr_Occurred()) SWIG_fail; | |
26811 | } | |
26812 | { | |
26813 | resultobj = wxPyMake_wxObject(result); | |
26814 | } | |
26815 | return resultobj; | |
26816 | fail: | |
26817 | return NULL; | |
26818 | } | |
26819 | ||
26820 | ||
26821 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26822 | PyObject *resultobj; | |
26823 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26824 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26825 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26826 | PyObject * obj0 = 0 ; |
26827 | PyObject * obj1 = 0 ; | |
26828 | PyObject * obj2 = 0 ; | |
26829 | char *kwnames[] = { | |
26830 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26831 | }; | |
26832 | ||
26833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26836 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26837 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26838 | SWIG_fail; | |
d14a1e28 | 26839 | if (arg2 == NULL) { |
2f4c0a16 RD |
26840 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26841 | SWIG_fail; | |
d14a1e28 RD |
26842 | } |
26843 | if (obj2) { | |
2f4c0a16 RD |
26844 | arg3 = (bool) SWIG_AsBool(obj2); |
26845 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26846 | } |
26847 | { | |
26848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26849 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26850 | ||
26851 | wxPyEndAllowThreads(__tstate); | |
26852 | if (PyErr_Occurred()) SWIG_fail; | |
26853 | } | |
26854 | Py_INCREF(Py_None); resultobj = Py_None; | |
26855 | return resultobj; | |
26856 | fail: | |
26857 | return NULL; | |
26858 | } | |
26859 | ||
26860 | ||
26861 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26862 | PyObject *resultobj; | |
26863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26864 | wxTreeItemId *arg2 = 0 ; | |
26865 | PyObject * obj0 = 0 ; | |
26866 | PyObject * obj1 = 0 ; | |
26867 | char *kwnames[] = { | |
26868 | (char *) "self",(char *) "item", NULL | |
26869 | }; | |
26870 | ||
26871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26874 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26875 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26876 | SWIG_fail; | |
d14a1e28 | 26877 | if (arg2 == NULL) { |
2f4c0a16 RD |
26878 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26879 | SWIG_fail; | |
d14a1e28 RD |
26880 | } |
26881 | { | |
26882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26883 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26884 | ||
26885 | wxPyEndAllowThreads(__tstate); | |
26886 | if (PyErr_Occurred()) SWIG_fail; | |
26887 | } | |
26888 | Py_INCREF(Py_None); resultobj = Py_None; | |
26889 | return resultobj; | |
26890 | fail: | |
26891 | return NULL; | |
26892 | } | |
26893 | ||
26894 | ||
26895 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26896 | PyObject *resultobj; | |
26897 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26898 | wxPoint *arg2 = 0 ; | |
26899 | int *arg3 = 0 ; | |
26900 | wxTreeItemId result; | |
26901 | wxPoint temp2 ; | |
26902 | int temp3 ; | |
26903 | PyObject * obj0 = 0 ; | |
26904 | PyObject * obj1 = 0 ; | |
26905 | char *kwnames[] = { | |
26906 | (char *) "self",(char *) "point", NULL | |
26907 | }; | |
26908 | ||
26909 | arg3 = &temp3; | |
26910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26913 | { |
26914 | arg2 = &temp2; | |
26915 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26916 | } | |
26917 | { | |
26918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26919 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26920 | ||
26921 | wxPyEndAllowThreads(__tstate); | |
26922 | if (PyErr_Occurred()) SWIG_fail; | |
26923 | } | |
26924 | { | |
26925 | wxTreeItemId * resultptr; | |
26926 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26927 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26928 | } |
26929 | { | |
26930 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26931 | resultobj = t_output_helper(resultobj,o); | |
26932 | } | |
26933 | return resultobj; | |
26934 | fail: | |
26935 | return NULL; | |
26936 | } | |
26937 | ||
26938 | ||
26939 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26940 | PyObject *resultobj; | |
26941 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26942 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26943 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26944 | PyObject *result; |
26945 | PyObject * obj0 = 0 ; | |
26946 | PyObject * obj1 = 0 ; | |
26947 | PyObject * obj2 = 0 ; | |
26948 | char *kwnames[] = { | |
26949 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26950 | }; | |
26951 | ||
26952 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26953 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26955 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26956 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26957 | SWIG_fail; | |
d14a1e28 | 26958 | if (arg2 == NULL) { |
2f4c0a16 RD |
26959 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26960 | SWIG_fail; | |
d14a1e28 RD |
26961 | } |
26962 | if (obj2) { | |
2f4c0a16 RD |
26963 | arg3 = (bool) SWIG_AsBool(obj2); |
26964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26965 | } |
26966 | { | |
26967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26968 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26969 | ||
26970 | wxPyEndAllowThreads(__tstate); | |
26971 | if (PyErr_Occurred()) SWIG_fail; | |
26972 | } | |
26973 | resultobj = result; | |
26974 | return resultobj; | |
26975 | fail: | |
26976 | return NULL; | |
26977 | } | |
26978 | ||
26979 | ||
26980 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26981 | PyObject *obj; | |
26982 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26983 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26984 | Py_INCREF(obj); | |
26985 | return Py_BuildValue((char *)""); | |
26986 | } | |
2f4c0a16 | 26987 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
d03fd34d RD |
26988 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
26989 | return 1; | |
26990 | } | |
26991 | ||
26992 | ||
26993 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
26994 | PyObject *pyobj; | |
26995 | ||
26996 | { | |
26997 | #if wxUSE_UNICODE | |
26998 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
26999 | #else | |
27000 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27001 | #endif | |
27002 | } | |
27003 | return pyobj; | |
27004 | } | |
27005 | ||
27006 | ||
d14a1e28 RD |
27007 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27008 | PyObject *resultobj; | |
27009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27010 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27011 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27012 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27013 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27014 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27015 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27016 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27017 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27018 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27019 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27020 | int arg8 = (int) 0 ; | |
d03fd34d | 27021 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27022 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27023 | wxGenericDirCtrl *result; | |
423f194a | 27024 | bool temp3 = False ; |
d14a1e28 RD |
27025 | wxPoint temp4 ; |
27026 | wxSize temp5 ; | |
423f194a RD |
27027 | bool temp7 = False ; |
27028 | bool temp9 = False ; | |
d14a1e28 | 27029 | PyObject * obj0 = 0 ; |
8edf1c75 | 27030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27031 | PyObject * obj2 = 0 ; |
27032 | PyObject * obj3 = 0 ; | |
27033 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27034 | PyObject * obj5 = 0 ; |
d14a1e28 | 27035 | PyObject * obj6 = 0 ; |
8edf1c75 | 27036 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27037 | PyObject * obj8 = 0 ; |
27038 | char *kwnames[] = { | |
27039 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27040 | }; | |
27041 | ||
8edf1c75 | 27042 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
27043 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27044 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27045 | if (obj1) { |
2f4c0a16 RD |
27046 | arg2 = (int const) SWIG_AsInt(obj1); |
27047 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27048 | } |
d14a1e28 RD |
27049 | if (obj2) { |
27050 | { | |
27051 | arg3 = wxString_in_helper(obj2); | |
27052 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27053 | temp3 = True; |
d14a1e28 RD |
27054 | } |
27055 | } | |
27056 | if (obj3) { | |
27057 | { | |
27058 | arg4 = &temp4; | |
27059 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27060 | } | |
27061 | } | |
27062 | if (obj4) { | |
27063 | { | |
27064 | arg5 = &temp5; | |
27065 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27066 | } | |
27067 | } | |
8edf1c75 | 27068 | if (obj5) { |
2f4c0a16 RD |
27069 | arg6 = (long) SWIG_AsLong(obj5); |
27070 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27071 | } |
d14a1e28 RD |
27072 | if (obj6) { |
27073 | { | |
27074 | arg7 = wxString_in_helper(obj6); | |
27075 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27076 | temp7 = True; |
d14a1e28 RD |
27077 | } |
27078 | } | |
8edf1c75 | 27079 | if (obj7) { |
2f4c0a16 RD |
27080 | arg8 = (int) SWIG_AsInt(obj7); |
27081 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27082 | } |
d14a1e28 RD |
27083 | if (obj8) { |
27084 | { | |
27085 | arg9 = wxString_in_helper(obj8); | |
27086 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 27087 | temp9 = True; |
d14a1e28 RD |
27088 | } |
27089 | } | |
27090 | { | |
27091 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27092 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27093 | ||
27094 | wxPyEndAllowThreads(__tstate); | |
27095 | if (PyErr_Occurred()) SWIG_fail; | |
27096 | } | |
2f4c0a16 | 27097 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27098 | { |
27099 | if (temp3) | |
27100 | delete arg3; | |
27101 | } | |
27102 | { | |
27103 | if (temp7) | |
27104 | delete arg7; | |
27105 | } | |
27106 | { | |
27107 | if (temp9) | |
27108 | delete arg9; | |
27109 | } | |
27110 | return resultobj; | |
27111 | fail: | |
27112 | { | |
27113 | if (temp3) | |
27114 | delete arg3; | |
27115 | } | |
27116 | { | |
27117 | if (temp7) | |
27118 | delete arg7; | |
27119 | } | |
27120 | { | |
27121 | if (temp9) | |
27122 | delete arg9; | |
27123 | } | |
27124 | return NULL; | |
27125 | } | |
27126 | ||
27127 | ||
27128 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27129 | PyObject *resultobj; | |
27130 | wxGenericDirCtrl *result; | |
27131 | char *kwnames[] = { | |
27132 | NULL | |
27133 | }; | |
27134 | ||
27135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27136 | { | |
27137 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27138 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27139 | ||
27140 | wxPyEndAllowThreads(__tstate); | |
27141 | if (PyErr_Occurred()) SWIG_fail; | |
27142 | } | |
2f4c0a16 | 27143 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27144 | return resultobj; |
27145 | fail: | |
27146 | return NULL; | |
27147 | } | |
27148 | ||
27149 | ||
27150 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27151 | PyObject *resultobj; | |
27152 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27153 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 27154 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27155 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27156 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27157 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27158 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27159 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27160 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27161 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27162 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27163 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27164 | int arg9 = (int) 0 ; | |
d03fd34d | 27165 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27166 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
27167 | bool result; | |
423f194a | 27168 | bool temp4 = False ; |
d14a1e28 RD |
27169 | wxPoint temp5 ; |
27170 | wxSize temp6 ; | |
423f194a RD |
27171 | bool temp8 = False ; |
27172 | bool temp10 = False ; | |
d14a1e28 RD |
27173 | PyObject * obj0 = 0 ; |
27174 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27175 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27176 | PyObject * obj3 = 0 ; |
27177 | PyObject * obj4 = 0 ; | |
27178 | PyObject * obj5 = 0 ; | |
8edf1c75 | 27179 | PyObject * obj6 = 0 ; |
d14a1e28 | 27180 | PyObject * obj7 = 0 ; |
8edf1c75 | 27181 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
27182 | PyObject * obj9 = 0 ; |
27183 | char *kwnames[] = { | |
27184 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27185 | }; | |
27186 | ||
8edf1c75 | 27187 | 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 |
27188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27190 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27192 | if (obj2) { |
2f4c0a16 RD |
27193 | arg3 = (int const) SWIG_AsInt(obj2); |
27194 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27195 | } |
d14a1e28 RD |
27196 | if (obj3) { |
27197 | { | |
27198 | arg4 = wxString_in_helper(obj3); | |
27199 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27200 | temp4 = True; |
d14a1e28 RD |
27201 | } |
27202 | } | |
27203 | if (obj4) { | |
27204 | { | |
27205 | arg5 = &temp5; | |
27206 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27207 | } | |
27208 | } | |
27209 | if (obj5) { | |
27210 | { | |
27211 | arg6 = &temp6; | |
27212 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27213 | } | |
27214 | } | |
8edf1c75 | 27215 | if (obj6) { |
2f4c0a16 RD |
27216 | arg7 = (long) SWIG_AsLong(obj6); |
27217 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27218 | } |
d14a1e28 RD |
27219 | if (obj7) { |
27220 | { | |
27221 | arg8 = wxString_in_helper(obj7); | |
27222 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 27223 | temp8 = True; |
d14a1e28 RD |
27224 | } |
27225 | } | |
8edf1c75 | 27226 | if (obj8) { |
2f4c0a16 RD |
27227 | arg9 = (int) SWIG_AsInt(obj8); |
27228 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27229 | } |
d14a1e28 RD |
27230 | if (obj9) { |
27231 | { | |
27232 | arg10 = wxString_in_helper(obj9); | |
27233 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 27234 | temp10 = True; |
d14a1e28 RD |
27235 | } |
27236 | } | |
27237 | { | |
27238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27239 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27240 | ||
27241 | wxPyEndAllowThreads(__tstate); | |
27242 | if (PyErr_Occurred()) SWIG_fail; | |
27243 | } | |
4f89f6a3 RD |
27244 | { |
27245 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27246 | } | |
d14a1e28 RD |
27247 | { |
27248 | if (temp4) | |
27249 | delete arg4; | |
27250 | } | |
27251 | { | |
27252 | if (temp8) | |
27253 | delete arg8; | |
27254 | } | |
27255 | { | |
27256 | if (temp10) | |
27257 | delete arg10; | |
27258 | } | |
27259 | return resultobj; | |
27260 | fail: | |
27261 | { | |
27262 | if (temp4) | |
27263 | delete arg4; | |
27264 | } | |
27265 | { | |
27266 | if (temp8) | |
27267 | delete arg8; | |
27268 | } | |
27269 | { | |
27270 | if (temp10) | |
27271 | delete arg10; | |
27272 | } | |
27273 | return NULL; | |
27274 | } | |
27275 | ||
27276 | ||
27277 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27278 | PyObject *resultobj; | |
27279 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27280 | wxString *arg2 = 0 ; | |
27281 | bool result; | |
423f194a | 27282 | bool temp2 = False ; |
d14a1e28 RD |
27283 | PyObject * obj0 = 0 ; |
27284 | PyObject * obj1 = 0 ; | |
27285 | char *kwnames[] = { | |
27286 | (char *) "self",(char *) "path", NULL | |
27287 | }; | |
27288 | ||
27289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27292 | { |
27293 | arg2 = wxString_in_helper(obj1); | |
27294 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27295 | temp2 = True; |
d14a1e28 RD |
27296 | } |
27297 | { | |
27298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27299 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27300 | ||
27301 | wxPyEndAllowThreads(__tstate); | |
27302 | if (PyErr_Occurred()) SWIG_fail; | |
27303 | } | |
4f89f6a3 RD |
27304 | { |
27305 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27306 | } | |
d14a1e28 RD |
27307 | { |
27308 | if (temp2) | |
27309 | delete arg2; | |
27310 | } | |
27311 | return resultobj; | |
27312 | fail: | |
27313 | { | |
27314 | if (temp2) | |
27315 | delete arg2; | |
27316 | } | |
27317 | return NULL; | |
27318 | } | |
27319 | ||
27320 | ||
27321 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27322 | PyObject *resultobj; | |
27323 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27324 | wxString result; | |
27325 | PyObject * obj0 = 0 ; | |
27326 | char *kwnames[] = { | |
27327 | (char *) "self", NULL | |
27328 | }; | |
27329 | ||
27330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27333 | { |
27334 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27335 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27336 | ||
27337 | wxPyEndAllowThreads(__tstate); | |
27338 | if (PyErr_Occurred()) SWIG_fail; | |
27339 | } | |
27340 | { | |
27341 | #if wxUSE_UNICODE | |
27342 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27343 | #else | |
27344 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27345 | #endif | |
27346 | } | |
27347 | return resultobj; | |
27348 | fail: | |
27349 | return NULL; | |
27350 | } | |
27351 | ||
27352 | ||
27353 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27354 | PyObject *resultobj; | |
27355 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27356 | wxString *arg2 = 0 ; | |
423f194a | 27357 | bool temp2 = False ; |
d14a1e28 RD |
27358 | PyObject * obj0 = 0 ; |
27359 | PyObject * obj1 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self",(char *) "path", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27367 | { |
27368 | arg2 = wxString_in_helper(obj1); | |
27369 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27370 | temp2 = True; |
d14a1e28 RD |
27371 | } |
27372 | { | |
27373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27374 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
27375 | ||
27376 | wxPyEndAllowThreads(__tstate); | |
27377 | if (PyErr_Occurred()) SWIG_fail; | |
27378 | } | |
27379 | Py_INCREF(Py_None); resultobj = Py_None; | |
27380 | { | |
27381 | if (temp2) | |
27382 | delete arg2; | |
27383 | } | |
27384 | return resultobj; | |
27385 | fail: | |
27386 | { | |
27387 | if (temp2) | |
27388 | delete arg2; | |
27389 | } | |
27390 | return NULL; | |
27391 | } | |
27392 | ||
27393 | ||
27394 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27395 | PyObject *resultobj; | |
27396 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27397 | wxString result; | |
27398 | PyObject * obj0 = 0 ; | |
27399 | char *kwnames[] = { | |
27400 | (char *) "self", NULL | |
27401 | }; | |
27402 | ||
27403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27406 | { |
27407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27408 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
27409 | ||
27410 | wxPyEndAllowThreads(__tstate); | |
27411 | if (PyErr_Occurred()) SWIG_fail; | |
27412 | } | |
27413 | { | |
27414 | #if wxUSE_UNICODE | |
27415 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27416 | #else | |
27417 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27418 | #endif | |
27419 | } | |
27420 | return resultobj; | |
27421 | fail: | |
27422 | return NULL; | |
27423 | } | |
27424 | ||
27425 | ||
27426 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27427 | PyObject *resultobj; | |
27428 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27429 | wxString result; | |
27430 | PyObject * obj0 = 0 ; | |
27431 | char *kwnames[] = { | |
27432 | (char *) "self", NULL | |
27433 | }; | |
27434 | ||
27435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27438 | { |
27439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27440 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
27441 | ||
27442 | wxPyEndAllowThreads(__tstate); | |
27443 | if (PyErr_Occurred()) SWIG_fail; | |
27444 | } | |
27445 | { | |
27446 | #if wxUSE_UNICODE | |
27447 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27448 | #else | |
27449 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27450 | #endif | |
27451 | } | |
27452 | return resultobj; | |
27453 | fail: | |
27454 | return NULL; | |
27455 | } | |
27456 | ||
27457 | ||
27458 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27459 | PyObject *resultobj; | |
27460 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27461 | wxString *arg2 = 0 ; | |
423f194a | 27462 | bool temp2 = False ; |
d14a1e28 RD |
27463 | PyObject * obj0 = 0 ; |
27464 | PyObject * obj1 = 0 ; | |
27465 | char *kwnames[] = { | |
27466 | (char *) "self",(char *) "path", NULL | |
27467 | }; | |
27468 | ||
27469 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27470 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27471 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27472 | { |
27473 | arg2 = wxString_in_helper(obj1); | |
27474 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27475 | temp2 = True; |
d14a1e28 RD |
27476 | } |
27477 | { | |
27478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27479 | (arg1)->SetPath((wxString const &)*arg2); | |
27480 | ||
27481 | wxPyEndAllowThreads(__tstate); | |
27482 | if (PyErr_Occurred()) SWIG_fail; | |
27483 | } | |
27484 | Py_INCREF(Py_None); resultobj = Py_None; | |
27485 | { | |
27486 | if (temp2) | |
27487 | delete arg2; | |
27488 | } | |
27489 | return resultobj; | |
27490 | fail: | |
27491 | { | |
27492 | if (temp2) | |
27493 | delete arg2; | |
27494 | } | |
27495 | return NULL; | |
27496 | } | |
27497 | ||
27498 | ||
27499 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27500 | PyObject *resultobj; | |
27501 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27502 | bool arg2 ; | |
27503 | PyObject * obj0 = 0 ; | |
27504 | PyObject * obj1 = 0 ; | |
27505 | char *kwnames[] = { | |
27506 | (char *) "self",(char *) "show", NULL | |
27507 | }; | |
27508 | ||
27509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27512 | arg2 = (bool) SWIG_AsBool(obj1); | |
27513 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27514 | { |
27515 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27516 | (arg1)->ShowHidden(arg2); | |
27517 | ||
27518 | wxPyEndAllowThreads(__tstate); | |
27519 | if (PyErr_Occurred()) SWIG_fail; | |
27520 | } | |
27521 | Py_INCREF(Py_None); resultobj = Py_None; | |
27522 | return resultobj; | |
27523 | fail: | |
27524 | return NULL; | |
27525 | } | |
27526 | ||
27527 | ||
27528 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27529 | PyObject *resultobj; | |
27530 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27531 | bool result; | |
27532 | PyObject * obj0 = 0 ; | |
27533 | char *kwnames[] = { | |
27534 | (char *) "self", NULL | |
27535 | }; | |
27536 | ||
27537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27540 | { |
27541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27542 | result = (bool)(arg1)->GetShowHidden(); | |
27543 | ||
27544 | wxPyEndAllowThreads(__tstate); | |
27545 | if (PyErr_Occurred()) SWIG_fail; | |
27546 | } | |
4f89f6a3 RD |
27547 | { |
27548 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27549 | } | |
d14a1e28 RD |
27550 | return resultobj; |
27551 | fail: | |
27552 | return NULL; | |
27553 | } | |
27554 | ||
27555 | ||
27556 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27557 | PyObject *resultobj; | |
27558 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27559 | wxString result; | |
27560 | PyObject * obj0 = 0 ; | |
27561 | char *kwnames[] = { | |
27562 | (char *) "self", NULL | |
27563 | }; | |
27564 | ||
27565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27568 | { |
27569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27570 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27571 | ||
27572 | wxPyEndAllowThreads(__tstate); | |
27573 | if (PyErr_Occurred()) SWIG_fail; | |
27574 | } | |
27575 | { | |
27576 | #if wxUSE_UNICODE | |
27577 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27578 | #else | |
27579 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27580 | #endif | |
27581 | } | |
27582 | return resultobj; | |
27583 | fail: | |
27584 | return NULL; | |
27585 | } | |
27586 | ||
27587 | ||
27588 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27589 | PyObject *resultobj; | |
27590 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27591 | wxString *arg2 = 0 ; | |
423f194a | 27592 | bool temp2 = False ; |
d14a1e28 RD |
27593 | PyObject * obj0 = 0 ; |
27594 | PyObject * obj1 = 0 ; | |
27595 | char *kwnames[] = { | |
27596 | (char *) "self",(char *) "filter", NULL | |
27597 | }; | |
27598 | ||
27599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27602 | { |
27603 | arg2 = wxString_in_helper(obj1); | |
27604 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27605 | temp2 = True; |
d14a1e28 RD |
27606 | } |
27607 | { | |
27608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27609 | (arg1)->SetFilter((wxString const &)*arg2); | |
27610 | ||
27611 | wxPyEndAllowThreads(__tstate); | |
27612 | if (PyErr_Occurred()) SWIG_fail; | |
27613 | } | |
27614 | Py_INCREF(Py_None); resultobj = Py_None; | |
27615 | { | |
27616 | if (temp2) | |
27617 | delete arg2; | |
27618 | } | |
27619 | return resultobj; | |
27620 | fail: | |
27621 | { | |
27622 | if (temp2) | |
27623 | delete arg2; | |
27624 | } | |
27625 | return NULL; | |
27626 | } | |
27627 | ||
27628 | ||
27629 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27630 | PyObject *resultobj; | |
27631 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27632 | int result; | |
27633 | PyObject * obj0 = 0 ; | |
27634 | char *kwnames[] = { | |
27635 | (char *) "self", NULL | |
27636 | }; | |
27637 | ||
27638 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27639 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27640 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27641 | { |
27642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27643 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27644 | ||
27645 | wxPyEndAllowThreads(__tstate); | |
27646 | if (PyErr_Occurred()) SWIG_fail; | |
27647 | } | |
2f4c0a16 | 27648 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27649 | return resultobj; |
27650 | fail: | |
27651 | return NULL; | |
27652 | } | |
27653 | ||
27654 | ||
27655 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27656 | PyObject *resultobj; | |
27657 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27658 | int arg2 ; | |
27659 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27660 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27661 | char *kwnames[] = { |
27662 | (char *) "self",(char *) "n", NULL | |
27663 | }; | |
27664 | ||
8edf1c75 | 27665 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
27666 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27667 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27668 | arg2 = (int) SWIG_AsInt(obj1); | |
27669 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27670 | { |
27671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27672 | (arg1)->SetFilterIndex(arg2); | |
27673 | ||
27674 | wxPyEndAllowThreads(__tstate); | |
27675 | if (PyErr_Occurred()) SWIG_fail; | |
27676 | } | |
27677 | Py_INCREF(Py_None); resultobj = Py_None; | |
27678 | return resultobj; | |
27679 | fail: | |
27680 | return NULL; | |
27681 | } | |
27682 | ||
27683 | ||
27684 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27685 | PyObject *resultobj; | |
27686 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27687 | wxTreeItemId result; | |
27688 | PyObject * obj0 = 0 ; | |
27689 | char *kwnames[] = { | |
27690 | (char *) "self", NULL | |
27691 | }; | |
27692 | ||
27693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27696 | { |
27697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27698 | result = (arg1)->GetRootId(); | |
27699 | ||
27700 | wxPyEndAllowThreads(__tstate); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | { | |
27704 | wxTreeItemId * resultptr; | |
27705 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27706 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27707 | } |
27708 | return resultobj; | |
27709 | fail: | |
27710 | return NULL; | |
27711 | } | |
27712 | ||
27713 | ||
27714 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27715 | PyObject *resultobj; | |
27716 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27717 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27718 | PyObject * obj0 = 0 ; |
27719 | char *kwnames[] = { | |
27720 | (char *) "self", NULL | |
27721 | }; | |
27722 | ||
27723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27726 | { |
27727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27728 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27729 | |
27730 | wxPyEndAllowThreads(__tstate); | |
27731 | if (PyErr_Occurred()) SWIG_fail; | |
27732 | } | |
27733 | { | |
27734 | resultobj = wxPyMake_wxObject(result); | |
27735 | } | |
27736 | return resultobj; | |
27737 | fail: | |
27738 | return NULL; | |
27739 | } | |
27740 | ||
27741 | ||
27742 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27743 | PyObject *resultobj; | |
27744 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27745 | wxDirFilterListCtrl *result; | |
27746 | PyObject * obj0 = 0 ; | |
27747 | char *kwnames[] = { | |
27748 | (char *) "self", NULL | |
27749 | }; | |
27750 | ||
27751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27754 | { |
27755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27756 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27757 | ||
27758 | wxPyEndAllowThreads(__tstate); | |
27759 | if (PyErr_Occurred()) SWIG_fail; | |
27760 | } | |
2f4c0a16 | 27761 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
27762 | return resultobj; |
27763 | fail: | |
27764 | return NULL; | |
27765 | } | |
27766 | ||
27767 | ||
27768 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27769 | PyObject *resultobj; | |
27770 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27771 | wxTreeItemId arg2 ; | |
27772 | wxString *arg3 = 0 ; | |
27773 | bool *arg4 = 0 ; | |
27774 | wxTreeItemId result; | |
27775 | wxTreeItemId *argp2 ; | |
423f194a | 27776 | bool temp3 = False ; |
d14a1e28 RD |
27777 | bool temp4 ; |
27778 | PyObject * obj0 = 0 ; | |
27779 | PyObject * obj1 = 0 ; | |
27780 | PyObject * obj2 = 0 ; | |
27781 | char *kwnames[] = { | |
27782 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27783 | }; | |
27784 | ||
27785 | arg4 = &temp4; | |
27786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27789 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
27790 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27791 | arg2 = *argp2; | |
d14a1e28 RD |
27792 | { |
27793 | arg3 = wxString_in_helper(obj2); | |
27794 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27795 | temp3 = True; |
d14a1e28 RD |
27796 | } |
27797 | { | |
27798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27799 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27800 | ||
27801 | wxPyEndAllowThreads(__tstate); | |
27802 | if (PyErr_Occurred()) SWIG_fail; | |
27803 | } | |
27804 | { | |
27805 | wxTreeItemId * resultptr; | |
27806 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27807 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27808 | } |
27809 | { | |
27810 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27811 | resultobj = t_output_helper(resultobj,o); | |
27812 | } | |
27813 | { | |
27814 | if (temp3) | |
27815 | delete arg3; | |
27816 | } | |
27817 | return resultobj; | |
27818 | fail: | |
27819 | { | |
27820 | if (temp3) | |
27821 | delete arg3; | |
27822 | } | |
27823 | return NULL; | |
27824 | } | |
27825 | ||
27826 | ||
27827 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27828 | PyObject *resultobj; | |
27829 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27830 | PyObject * obj0 = 0 ; | |
27831 | char *kwnames[] = { | |
27832 | (char *) "self", NULL | |
27833 | }; | |
27834 | ||
27835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27838 | { |
27839 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27840 | (arg1)->DoResize(); | |
27841 | ||
27842 | wxPyEndAllowThreads(__tstate); | |
27843 | if (PyErr_Occurred()) SWIG_fail; | |
27844 | } | |
27845 | Py_INCREF(Py_None); resultobj = Py_None; | |
27846 | return resultobj; | |
27847 | fail: | |
27848 | return NULL; | |
27849 | } | |
27850 | ||
27851 | ||
27852 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27853 | PyObject *resultobj; | |
27854 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27855 | PyObject * obj0 = 0 ; | |
27856 | char *kwnames[] = { | |
27857 | (char *) "self", NULL | |
27858 | }; | |
27859 | ||
27860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27863 | { |
27864 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27865 | (arg1)->ReCreateTree(); | |
27866 | ||
27867 | wxPyEndAllowThreads(__tstate); | |
27868 | if (PyErr_Occurred()) SWIG_fail; | |
27869 | } | |
27870 | Py_INCREF(Py_None); resultobj = Py_None; | |
27871 | return resultobj; | |
27872 | fail: | |
27873 | return NULL; | |
27874 | } | |
27875 | ||
27876 | ||
27877 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27878 | PyObject *obj; | |
27879 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27880 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27881 | Py_INCREF(obj); | |
27882 | return Py_BuildValue((char *)""); | |
27883 | } | |
27884 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27885 | PyObject *resultobj; | |
27886 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27887 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27888 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27889 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27890 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27891 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27892 | long arg5 = (long) 0 ; | |
27893 | wxDirFilterListCtrl *result; | |
27894 | wxPoint temp3 ; | |
27895 | wxSize temp4 ; | |
27896 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27897 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27898 | PyObject * obj2 = 0 ; |
27899 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27900 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27901 | char *kwnames[] = { |
27902 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27903 | }; | |
27904 | ||
8edf1c75 | 27905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27908 | if (obj1) { |
2f4c0a16 RD |
27909 | arg2 = (int const) SWIG_AsInt(obj1); |
27910 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27911 | } |
d14a1e28 RD |
27912 | if (obj2) { |
27913 | { | |
27914 | arg3 = &temp3; | |
27915 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27916 | } | |
27917 | } | |
27918 | if (obj3) { | |
27919 | { | |
27920 | arg4 = &temp4; | |
27921 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27922 | } | |
27923 | } | |
8edf1c75 | 27924 | if (obj4) { |
2f4c0a16 RD |
27925 | arg5 = (long) SWIG_AsLong(obj4); |
27926 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27927 | } |
d14a1e28 RD |
27928 | { |
27929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27930 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27931 | ||
27932 | wxPyEndAllowThreads(__tstate); | |
27933 | if (PyErr_Occurred()) SWIG_fail; | |
27934 | } | |
2f4c0a16 | 27935 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
27936 | return resultobj; |
27937 | fail: | |
27938 | return NULL; | |
27939 | } | |
27940 | ||
27941 | ||
27942 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27943 | PyObject *resultobj; | |
27944 | wxDirFilterListCtrl *result; | |
27945 | char *kwnames[] = { | |
27946 | NULL | |
27947 | }; | |
27948 | ||
27949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27950 | { | |
27951 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27952 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27953 | ||
27954 | wxPyEndAllowThreads(__tstate); | |
27955 | if (PyErr_Occurred()) SWIG_fail; | |
27956 | } | |
2f4c0a16 | 27957 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
27958 | return resultobj; |
27959 | fail: | |
27960 | return NULL; | |
27961 | } | |
27962 | ||
27963 | ||
27964 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27965 | PyObject *resultobj; | |
27966 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27967 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27968 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27969 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27970 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27971 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27972 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27973 | long arg6 = (long) 0 ; | |
27974 | bool result; | |
27975 | wxPoint temp4 ; | |
27976 | wxSize temp5 ; | |
27977 | PyObject * obj0 = 0 ; | |
27978 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27979 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27980 | PyObject * obj3 = 0 ; |
27981 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27982 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27983 | char *kwnames[] = { |
27984 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27985 | }; | |
27986 | ||
8edf1c75 | 27987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
27989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
27991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27992 | if (obj2) { |
2f4c0a16 RD |
27993 | arg3 = (int const) SWIG_AsInt(obj2); |
27994 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27995 | } |
d14a1e28 RD |
27996 | if (obj3) { |
27997 | { | |
27998 | arg4 = &temp4; | |
27999 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28000 | } | |
28001 | } | |
28002 | if (obj4) { | |
28003 | { | |
28004 | arg5 = &temp5; | |
28005 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28006 | } | |
28007 | } | |
8edf1c75 | 28008 | if (obj5) { |
2f4c0a16 RD |
28009 | arg6 = (long) SWIG_AsLong(obj5); |
28010 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28011 | } |
d14a1e28 RD |
28012 | { |
28013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28014 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28015 | ||
28016 | wxPyEndAllowThreads(__tstate); | |
28017 | if (PyErr_Occurred()) SWIG_fail; | |
28018 | } | |
4f89f6a3 RD |
28019 | { |
28020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28021 | } | |
d14a1e28 RD |
28022 | return resultobj; |
28023 | fail: | |
28024 | return NULL; | |
28025 | } | |
28026 | ||
28027 | ||
28028 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28029 | PyObject *resultobj; | |
28030 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28031 | wxString *arg2 = 0 ; | |
28032 | int arg3 ; | |
423f194a | 28033 | bool temp2 = False ; |
d14a1e28 RD |
28034 | PyObject * obj0 = 0 ; |
28035 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28036 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28037 | char *kwnames[] = { |
28038 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28039 | }; | |
28040 | ||
8edf1c75 | 28041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28044 | { |
28045 | arg2 = wxString_in_helper(obj1); | |
28046 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28047 | temp2 = True; |
d14a1e28 | 28048 | } |
2f4c0a16 RD |
28049 | arg3 = (int) SWIG_AsInt(obj2); |
28050 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28051 | { |
28052 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28053 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28054 | ||
28055 | wxPyEndAllowThreads(__tstate); | |
28056 | if (PyErr_Occurred()) SWIG_fail; | |
28057 | } | |
28058 | Py_INCREF(Py_None); resultobj = Py_None; | |
28059 | { | |
28060 | if (temp2) | |
28061 | delete arg2; | |
28062 | } | |
28063 | return resultobj; | |
28064 | fail: | |
28065 | { | |
28066 | if (temp2) | |
28067 | delete arg2; | |
28068 | } | |
28069 | return NULL; | |
28070 | } | |
28071 | ||
28072 | ||
28073 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28074 | PyObject *obj; | |
28075 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28076 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28077 | Py_INCREF(obj); | |
28078 | return Py_BuildValue((char *)""); | |
28079 | } | |
28080 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28081 | PyObject *resultobj; | |
28082 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28083 | int arg2 ; |
d14a1e28 RD |
28084 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28085 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28086 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28087 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28088 | long arg5 = (long) 0 ; | |
28089 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28090 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28091 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28092 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28093 | wxPyControl *result; | |
28094 | wxPoint temp3 ; | |
28095 | wxSize temp4 ; | |
423f194a | 28096 | bool temp7 = False ; |
d14a1e28 | 28097 | PyObject * obj0 = 0 ; |
8edf1c75 | 28098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28099 | PyObject * obj2 = 0 ; |
28100 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28101 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28102 | PyObject * obj5 = 0 ; |
28103 | PyObject * obj6 = 0 ; | |
28104 | char *kwnames[] = { | |
28105 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28106 | }; | |
28107 | ||
8edf1c75 | 28108 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
28109 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28110 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28111 | arg2 = (int const) SWIG_AsInt(obj1); | |
28112 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28113 | if (obj2) { |
28114 | { | |
28115 | arg3 = &temp3; | |
28116 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28117 | } | |
28118 | } | |
28119 | if (obj3) { | |
28120 | { | |
28121 | arg4 = &temp4; | |
28122 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28123 | } | |
28124 | } | |
8edf1c75 | 28125 | if (obj4) { |
2f4c0a16 RD |
28126 | arg5 = (long) SWIG_AsLong(obj4); |
28127 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28128 | } |
d14a1e28 | 28129 | if (obj5) { |
2f4c0a16 RD |
28130 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28131 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28132 | SWIG_fail; | |
d14a1e28 | 28133 | if (arg6 == NULL) { |
2f4c0a16 RD |
28134 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28135 | SWIG_fail; | |
d14a1e28 RD |
28136 | } |
28137 | } | |
28138 | if (obj6) { | |
28139 | { | |
28140 | arg7 = wxString_in_helper(obj6); | |
28141 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 28142 | temp7 = True; |
d14a1e28 RD |
28143 | } |
28144 | } | |
28145 | { | |
28146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28147 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28148 | ||
28149 | wxPyEndAllowThreads(__tstate); | |
28150 | if (PyErr_Occurred()) SWIG_fail; | |
28151 | } | |
2f4c0a16 | 28152 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28153 | { |
28154 | if (temp7) | |
28155 | delete arg7; | |
28156 | } | |
28157 | return resultobj; | |
28158 | fail: | |
28159 | { | |
28160 | if (temp7) | |
28161 | delete arg7; | |
28162 | } | |
28163 | return NULL; | |
28164 | } | |
28165 | ||
28166 | ||
28167 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28168 | PyObject *resultobj; | |
28169 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28170 | PyObject *arg2 = (PyObject *) 0 ; | |
28171 | PyObject *arg3 = (PyObject *) 0 ; | |
28172 | PyObject * obj0 = 0 ; | |
28173 | PyObject * obj1 = 0 ; | |
28174 | PyObject * obj2 = 0 ; | |
28175 | char *kwnames[] = { | |
28176 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28177 | }; | |
28178 | ||
28179 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28180 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28182 | arg2 = obj1; |
28183 | arg3 = obj2; | |
28184 | { | |
28185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28186 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28187 | ||
28188 | wxPyEndAllowThreads(__tstate); | |
28189 | if (PyErr_Occurred()) SWIG_fail; | |
28190 | } | |
28191 | Py_INCREF(Py_None); resultobj = Py_None; | |
28192 | return resultobj; | |
28193 | fail: | |
28194 | return NULL; | |
28195 | } | |
28196 | ||
28197 | ||
28198 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28199 | PyObject *resultobj; | |
28200 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28201 | int arg2 ; | |
28202 | int arg3 ; | |
28203 | int arg4 ; | |
28204 | int arg5 ; | |
28205 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28206 | PyObject * obj1 = 0 ; |
28207 | PyObject * obj2 = 0 ; | |
28208 | PyObject * obj3 = 0 ; | |
28209 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28210 | char *kwnames[] = { |
28211 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28212 | }; | |
28213 | ||
8edf1c75 | 28214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28217 | arg2 = (int) SWIG_AsInt(obj1); | |
28218 | if (PyErr_Occurred()) SWIG_fail; | |
28219 | arg3 = (int) SWIG_AsInt(obj2); | |
28220 | if (PyErr_Occurred()) SWIG_fail; | |
28221 | arg4 = (int) SWIG_AsInt(obj3); | |
28222 | if (PyErr_Occurred()) SWIG_fail; | |
28223 | arg5 = (int) SWIG_AsInt(obj4); | |
28224 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28225 | { |
28226 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28227 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28228 | ||
28229 | wxPyEndAllowThreads(__tstate); | |
28230 | if (PyErr_Occurred()) SWIG_fail; | |
28231 | } | |
28232 | Py_INCREF(Py_None); resultobj = Py_None; | |
28233 | return resultobj; | |
28234 | fail: | |
28235 | return NULL; | |
28236 | } | |
28237 | ||
28238 | ||
28239 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28240 | PyObject *resultobj; | |
28241 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28242 | int arg2 ; | |
28243 | int arg3 ; | |
28244 | int arg4 ; | |
28245 | int arg5 ; | |
28246 | int arg6 = (int) wxSIZE_AUTO ; | |
28247 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28248 | PyObject * obj1 = 0 ; |
28249 | PyObject * obj2 = 0 ; | |
28250 | PyObject * obj3 = 0 ; | |
28251 | PyObject * obj4 = 0 ; | |
28252 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
28253 | char *kwnames[] = { |
28254 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28255 | }; | |
28256 | ||
8edf1c75 | 28257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28260 | arg2 = (int) SWIG_AsInt(obj1); | |
28261 | if (PyErr_Occurred()) SWIG_fail; | |
28262 | arg3 = (int) SWIG_AsInt(obj2); | |
28263 | if (PyErr_Occurred()) SWIG_fail; | |
28264 | arg4 = (int) SWIG_AsInt(obj3); | |
28265 | if (PyErr_Occurred()) SWIG_fail; | |
28266 | arg5 = (int) SWIG_AsInt(obj4); | |
28267 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28268 | if (obj5) { |
2f4c0a16 RD |
28269 | arg6 = (int) SWIG_AsInt(obj5); |
28270 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28271 | } |
d14a1e28 RD |
28272 | { |
28273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28274 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28275 | ||
28276 | wxPyEndAllowThreads(__tstate); | |
28277 | if (PyErr_Occurred()) SWIG_fail; | |
28278 | } | |
28279 | Py_INCREF(Py_None); resultobj = Py_None; | |
28280 | return resultobj; | |
28281 | fail: | |
28282 | return NULL; | |
28283 | } | |
28284 | ||
28285 | ||
28286 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28287 | PyObject *resultobj; | |
28288 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28289 | int arg2 ; | |
28290 | int arg3 ; | |
28291 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28292 | PyObject * obj1 = 0 ; |
28293 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28294 | char *kwnames[] = { |
28295 | (char *) "self",(char *) "width",(char *) "height", NULL | |
28296 | }; | |
28297 | ||
8edf1c75 | 28298 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28299 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28300 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28301 | arg2 = (int) SWIG_AsInt(obj1); | |
28302 | if (PyErr_Occurred()) SWIG_fail; | |
28303 | arg3 = (int) SWIG_AsInt(obj2); | |
28304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28305 | { |
28306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28307 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
28308 | ||
28309 | wxPyEndAllowThreads(__tstate); | |
28310 | if (PyErr_Occurred()) SWIG_fail; | |
28311 | } | |
28312 | Py_INCREF(Py_None); resultobj = Py_None; | |
28313 | return resultobj; | |
28314 | fail: | |
28315 | return NULL; | |
28316 | } | |
28317 | ||
28318 | ||
28319 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28320 | PyObject *resultobj; | |
28321 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28322 | int arg2 ; | |
28323 | int arg3 ; | |
28324 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28325 | PyObject * obj1 = 0 ; |
28326 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28327 | char *kwnames[] = { |
28328 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28329 | }; | |
28330 | ||
8edf1c75 | 28331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28334 | arg2 = (int) SWIG_AsInt(obj1); | |
28335 | if (PyErr_Occurred()) SWIG_fail; | |
28336 | arg3 = (int) SWIG_AsInt(obj2); | |
28337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28338 | { |
28339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28340 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
28341 | ||
28342 | wxPyEndAllowThreads(__tstate); | |
28343 | if (PyErr_Occurred()) SWIG_fail; | |
28344 | } | |
28345 | Py_INCREF(Py_None); resultobj = Py_None; | |
28346 | return resultobj; | |
28347 | fail: | |
28348 | return NULL; | |
28349 | } | |
28350 | ||
28351 | ||
28352 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28353 | PyObject *resultobj; | |
28354 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28355 | int *arg2 = (int *) 0 ; | |
28356 | int *arg3 = (int *) 0 ; | |
28357 | int temp2 ; | |
28358 | int temp3 ; | |
28359 | PyObject * obj0 = 0 ; | |
28360 | char *kwnames[] = { | |
28361 | (char *) "self", NULL | |
28362 | }; | |
28363 | ||
28364 | arg2 = &temp2; | |
28365 | arg3 = &temp3; | |
28366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28369 | { |
28370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28371 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
28372 | ||
28373 | wxPyEndAllowThreads(__tstate); | |
28374 | if (PyErr_Occurred()) SWIG_fail; | |
28375 | } | |
28376 | Py_INCREF(Py_None); resultobj = Py_None; | |
28377 | { | |
28378 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28379 | resultobj = t_output_helper(resultobj,o); | |
28380 | } | |
28381 | { | |
28382 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28383 | resultobj = t_output_helper(resultobj,o); | |
28384 | } | |
28385 | return resultobj; | |
28386 | fail: | |
28387 | return NULL; | |
28388 | } | |
28389 | ||
28390 | ||
28391 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28392 | PyObject *resultobj; | |
28393 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28394 | int *arg2 = (int *) 0 ; | |
28395 | int *arg3 = (int *) 0 ; | |
28396 | int temp2 ; | |
28397 | int temp3 ; | |
28398 | PyObject * obj0 = 0 ; | |
28399 | char *kwnames[] = { | |
28400 | (char *) "self", NULL | |
28401 | }; | |
28402 | ||
28403 | arg2 = &temp2; | |
28404 | arg3 = &temp3; | |
28405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28408 | { |
28409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28410 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
28411 | ||
28412 | wxPyEndAllowThreads(__tstate); | |
28413 | if (PyErr_Occurred()) SWIG_fail; | |
28414 | } | |
28415 | Py_INCREF(Py_None); resultobj = Py_None; | |
28416 | { | |
28417 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28418 | resultobj = t_output_helper(resultobj,o); | |
28419 | } | |
28420 | { | |
28421 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28422 | resultobj = t_output_helper(resultobj,o); | |
28423 | } | |
28424 | return resultobj; | |
28425 | fail: | |
28426 | return NULL; | |
28427 | } | |
28428 | ||
28429 | ||
28430 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28431 | PyObject *resultobj; | |
28432 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28433 | int *arg2 = (int *) 0 ; | |
28434 | int *arg3 = (int *) 0 ; | |
28435 | int temp2 ; | |
28436 | int temp3 ; | |
28437 | PyObject * obj0 = 0 ; | |
28438 | char *kwnames[] = { | |
28439 | (char *) "self", NULL | |
28440 | }; | |
28441 | ||
28442 | arg2 = &temp2; | |
28443 | arg3 = &temp3; | |
28444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28447 | { |
28448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28449 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
28450 | ||
28451 | wxPyEndAllowThreads(__tstate); | |
28452 | if (PyErr_Occurred()) SWIG_fail; | |
28453 | } | |
28454 | Py_INCREF(Py_None); resultobj = Py_None; | |
28455 | { | |
28456 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28457 | resultobj = t_output_helper(resultobj,o); | |
28458 | } | |
28459 | { | |
28460 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28461 | resultobj = t_output_helper(resultobj,o); | |
28462 | } | |
28463 | return resultobj; | |
28464 | fail: | |
28465 | return NULL; | |
28466 | } | |
28467 | ||
28468 | ||
28469 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28470 | PyObject *resultobj; | |
28471 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28472 | wxSize result; | |
28473 | PyObject * obj0 = 0 ; | |
28474 | char *kwnames[] = { | |
28475 | (char *) "self", NULL | |
28476 | }; | |
28477 | ||
28478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28481 | { |
28482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28483 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28484 | ||
28485 | wxPyEndAllowThreads(__tstate); | |
28486 | if (PyErr_Occurred()) SWIG_fail; | |
28487 | } | |
28488 | { | |
28489 | wxSize * resultptr; | |
28490 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28491 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28492 | } |
28493 | return resultobj; | |
28494 | fail: | |
28495 | return NULL; | |
28496 | } | |
28497 | ||
28498 | ||
28499 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28500 | PyObject *resultobj; | |
28501 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28502 | wxSize result; | |
28503 | PyObject * obj0 = 0 ; | |
28504 | char *kwnames[] = { | |
28505 | (char *) "self", NULL | |
28506 | }; | |
28507 | ||
28508 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28509 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28510 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28511 | { |
28512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28513 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28514 | ||
28515 | wxPyEndAllowThreads(__tstate); | |
28516 | if (PyErr_Occurred()) SWIG_fail; | |
28517 | } | |
28518 | { | |
28519 | wxSize * resultptr; | |
28520 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28521 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28522 | } |
28523 | return resultobj; | |
28524 | fail: | |
28525 | return NULL; | |
28526 | } | |
28527 | ||
28528 | ||
28529 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28530 | PyObject *resultobj; | |
28531 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28532 | PyObject * obj0 = 0 ; | |
28533 | char *kwnames[] = { | |
28534 | (char *) "self", NULL | |
28535 | }; | |
28536 | ||
28537 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28538 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28539 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28540 | { |
28541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28542 | (arg1)->base_InitDialog(); | |
28543 | ||
28544 | wxPyEndAllowThreads(__tstate); | |
28545 | if (PyErr_Occurred()) SWIG_fail; | |
28546 | } | |
28547 | Py_INCREF(Py_None); resultobj = Py_None; | |
28548 | return resultobj; | |
28549 | fail: | |
28550 | return NULL; | |
28551 | } | |
28552 | ||
28553 | ||
28554 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28555 | PyObject *resultobj; | |
28556 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28557 | bool result; | |
28558 | PyObject * obj0 = 0 ; | |
28559 | char *kwnames[] = { | |
28560 | (char *) "self", NULL | |
28561 | }; | |
28562 | ||
28563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28566 | { |
28567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28568 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28569 | ||
28570 | wxPyEndAllowThreads(__tstate); | |
28571 | if (PyErr_Occurred()) SWIG_fail; | |
28572 | } | |
4f89f6a3 RD |
28573 | { |
28574 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28575 | } | |
d14a1e28 RD |
28576 | return resultobj; |
28577 | fail: | |
28578 | return NULL; | |
28579 | } | |
28580 | ||
28581 | ||
28582 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28583 | PyObject *resultobj; | |
28584 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28585 | bool result; | |
28586 | PyObject * obj0 = 0 ; | |
28587 | char *kwnames[] = { | |
28588 | (char *) "self", NULL | |
28589 | }; | |
28590 | ||
28591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28594 | { |
28595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28596 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28597 | ||
28598 | wxPyEndAllowThreads(__tstate); | |
28599 | if (PyErr_Occurred()) SWIG_fail; | |
28600 | } | |
4f89f6a3 RD |
28601 | { |
28602 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28603 | } | |
d14a1e28 RD |
28604 | return resultobj; |
28605 | fail: | |
28606 | return NULL; | |
28607 | } | |
28608 | ||
28609 | ||
28610 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28611 | PyObject *resultobj; | |
28612 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28613 | bool result; | |
28614 | PyObject * obj0 = 0 ; | |
28615 | char *kwnames[] = { | |
28616 | (char *) "self", NULL | |
28617 | }; | |
28618 | ||
28619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",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 = (bool)(arg1)->base_Validate(); | |
28625 | ||
28626 | wxPyEndAllowThreads(__tstate); | |
28627 | if (PyErr_Occurred()) SWIG_fail; | |
28628 | } | |
4f89f6a3 RD |
28629 | { |
28630 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28631 | } | |
d14a1e28 RD |
28632 | return resultobj; |
28633 | fail: | |
28634 | return NULL; | |
28635 | } | |
28636 | ||
28637 | ||
28638 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28639 | PyObject *resultobj; | |
28640 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28641 | bool result; | |
28642 | PyObject * obj0 = 0 ; | |
28643 | char *kwnames[] = { | |
28644 | (char *) "self", NULL | |
28645 | }; | |
28646 | ||
28647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28650 | { |
28651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28652 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28653 | ||
28654 | wxPyEndAllowThreads(__tstate); | |
28655 | if (PyErr_Occurred()) SWIG_fail; | |
28656 | } | |
4f89f6a3 RD |
28657 | { |
28658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28659 | } | |
d14a1e28 RD |
28660 | return resultobj; |
28661 | fail: | |
28662 | return NULL; | |
28663 | } | |
28664 | ||
28665 | ||
28666 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28667 | PyObject *resultobj; | |
28668 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28669 | bool result; | |
28670 | PyObject * obj0 = 0 ; | |
28671 | char *kwnames[] = { | |
28672 | (char *) "self", NULL | |
28673 | }; | |
28674 | ||
28675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28678 | { |
28679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28680 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28681 | ||
28682 | wxPyEndAllowThreads(__tstate); | |
28683 | if (PyErr_Occurred()) SWIG_fail; | |
28684 | } | |
4f89f6a3 RD |
28685 | { |
28686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28687 | } | |
d14a1e28 RD |
28688 | return resultobj; |
28689 | fail: | |
28690 | return NULL; | |
28691 | } | |
28692 | ||
28693 | ||
28694 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28695 | PyObject *resultobj; | |
28696 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28697 | wxSize result; | |
28698 | PyObject * obj0 = 0 ; | |
28699 | char *kwnames[] = { | |
28700 | (char *) "self", NULL | |
28701 | }; | |
28702 | ||
28703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28706 | { |
28707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28708 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28709 | ||
28710 | wxPyEndAllowThreads(__tstate); | |
28711 | if (PyErr_Occurred()) SWIG_fail; | |
28712 | } | |
28713 | { | |
28714 | wxSize * resultptr; | |
28715 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28717 | } |
28718 | return resultobj; | |
28719 | fail: | |
28720 | return NULL; | |
28721 | } | |
28722 | ||
28723 | ||
28724 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28725 | PyObject *resultobj; | |
28726 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28727 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28728 | PyObject * obj0 = 0 ; | |
28729 | PyObject * obj1 = 0 ; | |
28730 | char *kwnames[] = { | |
28731 | (char *) "self",(char *) "child", NULL | |
28732 | }; | |
28733 | ||
28734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28739 | { |
28740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28741 | (arg1)->base_AddChild(arg2); | |
28742 | ||
28743 | wxPyEndAllowThreads(__tstate); | |
28744 | if (PyErr_Occurred()) SWIG_fail; | |
28745 | } | |
28746 | Py_INCREF(Py_None); resultobj = Py_None; | |
28747 | return resultobj; | |
28748 | fail: | |
28749 | return NULL; | |
28750 | } | |
28751 | ||
28752 | ||
28753 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28754 | PyObject *resultobj; | |
28755 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28756 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28757 | PyObject * obj0 = 0 ; | |
28758 | PyObject * obj1 = 0 ; | |
28759 | char *kwnames[] = { | |
28760 | (char *) "self",(char *) "child", NULL | |
28761 | }; | |
28762 | ||
28763 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28764 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28765 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28766 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28768 | { |
28769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28770 | (arg1)->base_RemoveChild(arg2); | |
28771 | ||
28772 | wxPyEndAllowThreads(__tstate); | |
28773 | if (PyErr_Occurred()) SWIG_fail; | |
28774 | } | |
28775 | Py_INCREF(Py_None); resultobj = Py_None; | |
28776 | return resultobj; | |
28777 | fail: | |
28778 | return NULL; | |
28779 | } | |
28780 | ||
28781 | ||
28782 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { | |
28783 | PyObject *obj; | |
28784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28785 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28786 | Py_INCREF(obj); | |
28787 | return Py_BuildValue((char *)""); | |
28788 | } | |
28789 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28790 | PyObject *resultobj; | |
28791 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28792 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28793 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28794 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28795 | wxHelpEvent *result; | |
28796 | wxPoint temp3 ; | |
8edf1c75 RD |
28797 | PyObject * obj0 = 0 ; |
28798 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28799 | PyObject * obj2 = 0 ; |
28800 | char *kwnames[] = { | |
28801 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28802 | }; | |
28803 | ||
8edf1c75 RD |
28804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28805 | if (obj0) { | |
2f4c0a16 RD |
28806 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
28807 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
28808 | } |
28809 | if (obj1) { | |
2f4c0a16 RD |
28810 | arg2 = (int) SWIG_AsInt(obj1); |
28811 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28812 | } |
d14a1e28 RD |
28813 | if (obj2) { |
28814 | { | |
28815 | arg3 = &temp3; | |
28816 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28817 | } | |
28818 | } | |
28819 | { | |
28820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28821 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28822 | ||
28823 | wxPyEndAllowThreads(__tstate); | |
28824 | if (PyErr_Occurred()) SWIG_fail; | |
28825 | } | |
2f4c0a16 | 28826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
28827 | return resultobj; |
28828 | fail: | |
28829 | return NULL; | |
28830 | } | |
28831 | ||
28832 | ||
28833 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28834 | PyObject *resultobj; | |
28835 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
2f4c0a16 | 28836 | wxPoint result; |
d14a1e28 RD |
28837 | PyObject * obj0 = 0 ; |
28838 | char *kwnames[] = { | |
28839 | (char *) "self", NULL | |
28840 | }; | |
28841 | ||
28842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28845 | { |
28846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 28847 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
28848 | |
28849 | wxPyEndAllowThreads(__tstate); | |
28850 | if (PyErr_Occurred()) SWIG_fail; | |
28851 | } | |
2f4c0a16 RD |
28852 | { |
28853 | wxPoint * resultptr; | |
28854 | resultptr = new wxPoint((wxPoint &) result); | |
28855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
28856 | } | |
d14a1e28 RD |
28857 | return resultobj; |
28858 | fail: | |
28859 | return NULL; | |
28860 | } | |
28861 | ||
28862 | ||
28863 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28864 | PyObject *resultobj; | |
28865 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28866 | wxPoint *arg2 = 0 ; | |
28867 | wxPoint temp2 ; | |
28868 | PyObject * obj0 = 0 ; | |
28869 | PyObject * obj1 = 0 ; | |
28870 | char *kwnames[] = { | |
28871 | (char *) "self",(char *) "pos", NULL | |
28872 | }; | |
28873 | ||
28874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28877 | { |
28878 | arg2 = &temp2; | |
28879 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28880 | } | |
28881 | { | |
28882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28883 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28884 | ||
28885 | wxPyEndAllowThreads(__tstate); | |
28886 | if (PyErr_Occurred()) SWIG_fail; | |
28887 | } | |
28888 | Py_INCREF(Py_None); resultobj = Py_None; | |
28889 | return resultobj; | |
28890 | fail: | |
28891 | return NULL; | |
28892 | } | |
28893 | ||
28894 | ||
28895 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28896 | PyObject *resultobj; | |
28897 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28898 | wxString *result; | |
28899 | PyObject * obj0 = 0 ; | |
28900 | char *kwnames[] = { | |
28901 | (char *) "self", NULL | |
28902 | }; | |
28903 | ||
28904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28907 | { |
28908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28909 | { | |
28910 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
28911 | result = (wxString *) &_result_ref; | |
28912 | } | |
28913 | ||
28914 | wxPyEndAllowThreads(__tstate); | |
28915 | if (PyErr_Occurred()) SWIG_fail; | |
28916 | } | |
f0983263 RD |
28917 | { |
28918 | #if wxUSE_UNICODE | |
28919 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28920 | #else | |
28921 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28922 | #endif | |
28923 | } | |
d14a1e28 RD |
28924 | return resultobj; |
28925 | fail: | |
28926 | return NULL; | |
28927 | } | |
28928 | ||
28929 | ||
28930 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28931 | PyObject *resultobj; | |
28932 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28933 | wxString *arg2 = 0 ; | |
423f194a | 28934 | bool temp2 = False ; |
d14a1e28 RD |
28935 | PyObject * obj0 = 0 ; |
28936 | PyObject * obj1 = 0 ; | |
28937 | char *kwnames[] = { | |
28938 | (char *) "self",(char *) "link", NULL | |
28939 | }; | |
28940 | ||
28941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28944 | { |
28945 | arg2 = wxString_in_helper(obj1); | |
28946 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28947 | temp2 = True; |
d14a1e28 RD |
28948 | } |
28949 | { | |
28950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28951 | (arg1)->SetLink((wxString const &)*arg2); | |
28952 | ||
28953 | wxPyEndAllowThreads(__tstate); | |
28954 | if (PyErr_Occurred()) SWIG_fail; | |
28955 | } | |
28956 | Py_INCREF(Py_None); resultobj = Py_None; | |
28957 | { | |
28958 | if (temp2) | |
28959 | delete arg2; | |
28960 | } | |
28961 | return resultobj; | |
28962 | fail: | |
28963 | { | |
28964 | if (temp2) | |
28965 | delete arg2; | |
28966 | } | |
28967 | return NULL; | |
28968 | } | |
28969 | ||
28970 | ||
28971 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28972 | PyObject *resultobj; | |
28973 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28974 | wxString *result; | |
28975 | PyObject * obj0 = 0 ; | |
28976 | char *kwnames[] = { | |
28977 | (char *) "self", NULL | |
28978 | }; | |
28979 | ||
28980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28983 | { |
28984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28985 | { | |
28986 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
28987 | result = (wxString *) &_result_ref; | |
28988 | } | |
28989 | ||
28990 | wxPyEndAllowThreads(__tstate); | |
28991 | if (PyErr_Occurred()) SWIG_fail; | |
28992 | } | |
f0983263 RD |
28993 | { |
28994 | #if wxUSE_UNICODE | |
28995 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
28996 | #else | |
28997 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
28998 | #endif | |
28999 | } | |
d14a1e28 RD |
29000 | return resultobj; |
29001 | fail: | |
29002 | return NULL; | |
29003 | } | |
29004 | ||
29005 | ||
29006 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29007 | PyObject *resultobj; | |
29008 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29009 | wxString *arg2 = 0 ; | |
423f194a | 29010 | bool temp2 = False ; |
d14a1e28 RD |
29011 | PyObject * obj0 = 0 ; |
29012 | PyObject * obj1 = 0 ; | |
29013 | char *kwnames[] = { | |
29014 | (char *) "self",(char *) "target", NULL | |
29015 | }; | |
29016 | ||
29017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29020 | { |
29021 | arg2 = wxString_in_helper(obj1); | |
29022 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29023 | temp2 = True; |
d14a1e28 RD |
29024 | } |
29025 | { | |
29026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29027 | (arg1)->SetTarget((wxString const &)*arg2); | |
29028 | ||
29029 | wxPyEndAllowThreads(__tstate); | |
29030 | if (PyErr_Occurred()) SWIG_fail; | |
29031 | } | |
29032 | Py_INCREF(Py_None); resultobj = Py_None; | |
29033 | { | |
29034 | if (temp2) | |
29035 | delete arg2; | |
29036 | } | |
29037 | return resultobj; | |
29038 | fail: | |
29039 | { | |
29040 | if (temp2) | |
29041 | delete arg2; | |
29042 | } | |
29043 | return NULL; | |
29044 | } | |
29045 | ||
29046 | ||
29047 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29048 | PyObject *obj; | |
29049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29050 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29051 | Py_INCREF(obj); | |
29052 | return Py_BuildValue((char *)""); | |
29053 | } | |
29054 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29055 | PyObject *resultobj; | |
29056 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 29057 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29058 | wxContextHelp *result; |
29059 | PyObject * obj0 = 0 ; | |
29060 | PyObject * obj1 = 0 ; | |
29061 | char *kwnames[] = { | |
29062 | (char *) "window",(char *) "doNow", NULL | |
29063 | }; | |
29064 | ||
29065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29066 | if (obj0) { | |
2f4c0a16 RD |
29067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29069 | } |
29070 | if (obj1) { | |
2f4c0a16 RD |
29071 | arg2 = (bool) SWIG_AsBool(obj1); |
29072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29073 | } |
29074 | { | |
29075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29076 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29077 | ||
29078 | wxPyEndAllowThreads(__tstate); | |
29079 | if (PyErr_Occurred()) SWIG_fail; | |
29080 | } | |
2f4c0a16 | 29081 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
29082 | return resultobj; |
29083 | fail: | |
29084 | return NULL; | |
29085 | } | |
29086 | ||
29087 | ||
29088 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29089 | PyObject *resultobj; | |
29090 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29091 | PyObject * obj0 = 0 ; | |
29092 | char *kwnames[] = { | |
29093 | (char *) "self", NULL | |
29094 | }; | |
29095 | ||
29096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29099 | { |
29100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29101 | delete arg1; | |
29102 | ||
29103 | wxPyEndAllowThreads(__tstate); | |
29104 | if (PyErr_Occurred()) SWIG_fail; | |
29105 | } | |
29106 | Py_INCREF(Py_None); resultobj = Py_None; | |
29107 | return resultobj; | |
29108 | fail: | |
29109 | return NULL; | |
29110 | } | |
29111 | ||
29112 | ||
29113 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29114 | PyObject *resultobj; | |
29115 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29116 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29117 | bool result; | |
29118 | PyObject * obj0 = 0 ; | |
29119 | PyObject * obj1 = 0 ; | |
29120 | char *kwnames[] = { | |
29121 | (char *) "self",(char *) "window", NULL | |
29122 | }; | |
29123 | ||
29124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29127 | if (obj1) { |
2f4c0a16 RD |
29128 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29130 | } |
29131 | { | |
29132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29133 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29134 | ||
29135 | wxPyEndAllowThreads(__tstate); | |
29136 | if (PyErr_Occurred()) SWIG_fail; | |
29137 | } | |
4f89f6a3 RD |
29138 | { |
29139 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29140 | } | |
d14a1e28 RD |
29141 | return resultobj; |
29142 | fail: | |
29143 | return NULL; | |
29144 | } | |
29145 | ||
29146 | ||
29147 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29148 | PyObject *resultobj; | |
29149 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29150 | bool result; | |
29151 | PyObject * obj0 = 0 ; | |
29152 | char *kwnames[] = { | |
29153 | (char *) "self", NULL | |
29154 | }; | |
29155 | ||
29156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29159 | { |
29160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29161 | result = (bool)(arg1)->EndContextHelp(); | |
29162 | ||
29163 | wxPyEndAllowThreads(__tstate); | |
29164 | if (PyErr_Occurred()) SWIG_fail; | |
29165 | } | |
4f89f6a3 RD |
29166 | { |
29167 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29168 | } | |
d14a1e28 RD |
29169 | return resultobj; |
29170 | fail: | |
29171 | return NULL; | |
29172 | } | |
29173 | ||
29174 | ||
29175 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29176 | PyObject *obj; | |
29177 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29178 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29179 | Py_INCREF(obj); | |
29180 | return Py_BuildValue((char *)""); | |
29181 | } | |
29182 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29183 | PyObject *resultobj; | |
29184 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 29185 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
29186 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29187 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29188 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29189 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29190 | long arg5 = (long) wxBU_AUTODRAW ; | |
29191 | wxContextHelpButton *result; | |
29192 | wxPoint temp3 ; | |
29193 | wxSize temp4 ; | |
29194 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29195 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29196 | PyObject * obj2 = 0 ; |
29197 | PyObject * obj3 = 0 ; | |
8edf1c75 | 29198 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29199 | char *kwnames[] = { |
29200 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29201 | }; | |
29202 | ||
8edf1c75 | 29203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 29206 | if (obj1) { |
2f4c0a16 RD |
29207 | arg2 = (int) SWIG_AsInt(obj1); |
29208 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29209 | } |
d14a1e28 RD |
29210 | if (obj2) { |
29211 | { | |
29212 | arg3 = &temp3; | |
29213 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29214 | } | |
29215 | } | |
29216 | if (obj3) { | |
29217 | { | |
29218 | arg4 = &temp4; | |
29219 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29220 | } | |
29221 | } | |
8edf1c75 | 29222 | if (obj4) { |
2f4c0a16 RD |
29223 | arg5 = (long) SWIG_AsLong(obj4); |
29224 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29225 | } |
d14a1e28 RD |
29226 | { |
29227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29228 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29229 | ||
29230 | wxPyEndAllowThreads(__tstate); | |
29231 | if (PyErr_Occurred()) SWIG_fail; | |
29232 | } | |
2f4c0a16 | 29233 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
29234 | return resultobj; |
29235 | fail: | |
29236 | return NULL; | |
29237 | } | |
29238 | ||
29239 | ||
29240 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
29241 | PyObject *obj; | |
29242 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29243 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
29244 | Py_INCREF(obj); | |
29245 | return Py_BuildValue((char *)""); | |
29246 | } | |
29247 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29248 | PyObject *resultobj; | |
29249 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29250 | wxHelpProvider *result; | |
29251 | PyObject * obj0 = 0 ; | |
29252 | char *kwnames[] = { | |
29253 | (char *) "helpProvider", NULL | |
29254 | }; | |
29255 | ||
29256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29259 | { |
29260 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29261 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
29262 | ||
29263 | wxPyEndAllowThreads(__tstate); | |
29264 | if (PyErr_Occurred()) SWIG_fail; | |
29265 | } | |
2f4c0a16 | 29266 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29267 | return resultobj; |
29268 | fail: | |
29269 | return NULL; | |
29270 | } | |
29271 | ||
29272 | ||
29273 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29274 | PyObject *resultobj; | |
29275 | wxHelpProvider *result; | |
29276 | char *kwnames[] = { | |
29277 | NULL | |
29278 | }; | |
29279 | ||
29280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
29281 | { | |
29282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29283 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
29284 | ||
29285 | wxPyEndAllowThreads(__tstate); | |
29286 | if (PyErr_Occurred()) SWIG_fail; | |
29287 | } | |
2f4c0a16 | 29288 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29289 | return resultobj; |
29290 | fail: | |
29291 | return NULL; | |
29292 | } | |
29293 | ||
29294 | ||
29295 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29296 | PyObject *resultobj; | |
29297 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29298 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29299 | wxString result; | |
29300 | PyObject * obj0 = 0 ; | |
29301 | PyObject * obj1 = 0 ; | |
29302 | char *kwnames[] = { | |
29303 | (char *) "self",(char *) "window", NULL | |
29304 | }; | |
29305 | ||
29306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29309 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29311 | { |
29312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29313 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
29314 | ||
29315 | wxPyEndAllowThreads(__tstate); | |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
29317 | } | |
29318 | { | |
29319 | #if wxUSE_UNICODE | |
29320 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29321 | #else | |
29322 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29323 | #endif | |
29324 | } | |
29325 | return resultobj; | |
29326 | fail: | |
29327 | return NULL; | |
29328 | } | |
29329 | ||
29330 | ||
29331 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29332 | PyObject *resultobj; | |
29333 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29334 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29335 | bool result; | |
29336 | PyObject * obj0 = 0 ; | |
29337 | PyObject * obj1 = 0 ; | |
29338 | char *kwnames[] = { | |
29339 | (char *) "self",(char *) "window", NULL | |
29340 | }; | |
29341 | ||
29342 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29343 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29344 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29345 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29347 | { |
29348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29349 | result = (bool)(arg1)->ShowHelp(arg2); | |
29350 | ||
29351 | wxPyEndAllowThreads(__tstate); | |
29352 | if (PyErr_Occurred()) SWIG_fail; | |
29353 | } | |
4f89f6a3 RD |
29354 | { |
29355 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29356 | } | |
d14a1e28 RD |
29357 | return resultobj; |
29358 | fail: | |
29359 | return NULL; | |
29360 | } | |
29361 | ||
29362 | ||
29363 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29364 | PyObject *resultobj; | |
29365 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29366 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29367 | wxString *arg3 = 0 ; | |
423f194a | 29368 | bool temp3 = False ; |
d14a1e28 RD |
29369 | PyObject * obj0 = 0 ; |
29370 | PyObject * obj1 = 0 ; | |
29371 | PyObject * obj2 = 0 ; | |
29372 | char *kwnames[] = { | |
29373 | (char *) "self",(char *) "window",(char *) "text", NULL | |
29374 | }; | |
29375 | ||
29376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29379 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29381 | { |
29382 | arg3 = wxString_in_helper(obj2); | |
29383 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29384 | temp3 = True; |
d14a1e28 RD |
29385 | } |
29386 | { | |
29387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29388 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29389 | ||
29390 | wxPyEndAllowThreads(__tstate); | |
29391 | if (PyErr_Occurred()) SWIG_fail; | |
29392 | } | |
29393 | Py_INCREF(Py_None); resultobj = Py_None; | |
29394 | { | |
29395 | if (temp3) | |
29396 | delete arg3; | |
29397 | } | |
29398 | return resultobj; | |
29399 | fail: | |
29400 | { | |
29401 | if (temp3) | |
29402 | delete arg3; | |
29403 | } | |
29404 | return NULL; | |
29405 | } | |
29406 | ||
29407 | ||
29408 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29409 | PyObject *resultobj; | |
29410 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 29411 | int arg2 ; |
d14a1e28 | 29412 | wxString *arg3 = 0 ; |
423f194a | 29413 | bool temp3 = False ; |
d14a1e28 | 29414 | PyObject * obj0 = 0 ; |
8edf1c75 | 29415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29416 | PyObject * obj2 = 0 ; |
29417 | char *kwnames[] = { | |
29418 | (char *) "self",(char *) "id",(char *) "text", NULL | |
29419 | }; | |
29420 | ||
8edf1c75 | 29421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29424 | arg2 = (int) SWIG_AsInt(obj1); | |
29425 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29426 | { |
29427 | arg3 = wxString_in_helper(obj2); | |
29428 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29429 | temp3 = True; |
d14a1e28 RD |
29430 | } |
29431 | { | |
29432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29433 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29434 | ||
29435 | wxPyEndAllowThreads(__tstate); | |
29436 | if (PyErr_Occurred()) SWIG_fail; | |
29437 | } | |
29438 | Py_INCREF(Py_None); resultobj = Py_None; | |
29439 | { | |
29440 | if (temp3) | |
29441 | delete arg3; | |
29442 | } | |
29443 | return resultobj; | |
29444 | fail: | |
29445 | { | |
29446 | if (temp3) | |
29447 | delete arg3; | |
29448 | } | |
29449 | return NULL; | |
29450 | } | |
29451 | ||
29452 | ||
2f4c0a16 RD |
29453 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
29454 | PyObject *resultobj; | |
29455 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29456 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29457 | PyObject * obj0 = 0 ; | |
29458 | PyObject * obj1 = 0 ; | |
29459 | char *kwnames[] = { | |
29460 | (char *) "self",(char *) "window", NULL | |
29461 | }; | |
29462 | ||
29463 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
29464 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29465 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29466 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29468 | { | |
29469 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29470 | (arg1)->RemoveHelp(arg2); | |
29471 | ||
29472 | wxPyEndAllowThreads(__tstate); | |
29473 | if (PyErr_Occurred()) SWIG_fail; | |
29474 | } | |
29475 | Py_INCREF(Py_None); resultobj = Py_None; | |
29476 | return resultobj; | |
29477 | fail: | |
29478 | return NULL; | |
29479 | } | |
29480 | ||
29481 | ||
d14a1e28 RD |
29482 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
29483 | PyObject *resultobj; | |
29484 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29485 | PyObject * obj0 = 0 ; | |
29486 | char *kwnames[] = { | |
29487 | (char *) "self", NULL | |
29488 | }; | |
29489 | ||
29490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29493 | { |
29494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29495 | wxHelpProvider_Destroy(arg1); | |
29496 | ||
29497 | wxPyEndAllowThreads(__tstate); | |
29498 | if (PyErr_Occurred()) SWIG_fail; | |
29499 | } | |
29500 | Py_INCREF(Py_None); resultobj = Py_None; | |
29501 | return resultobj; | |
29502 | fail: | |
29503 | return NULL; | |
29504 | } | |
29505 | ||
29506 | ||
29507 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29508 | PyObject *obj; | |
29509 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29510 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
29511 | Py_INCREF(obj); | |
29512 | return Py_BuildValue((char *)""); | |
29513 | } | |
29514 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29515 | PyObject *resultobj; | |
29516 | wxSimpleHelpProvider *result; | |
29517 | char *kwnames[] = { | |
29518 | NULL | |
29519 | }; | |
29520 | ||
29521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
29522 | { | |
29523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29524 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29525 | ||
29526 | wxPyEndAllowThreads(__tstate); | |
29527 | if (PyErr_Occurred()) SWIG_fail; | |
29528 | } | |
2f4c0a16 | 29529 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
29530 | return resultobj; |
29531 | fail: | |
29532 | return NULL; | |
29533 | } | |
29534 | ||
29535 | ||
29536 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29537 | PyObject *obj; | |
29538 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29539 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29540 | Py_INCREF(obj); | |
29541 | return Py_BuildValue((char *)""); | |
29542 | } | |
423f194a RD |
29543 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
29544 | PyObject *resultobj; | |
29545 | wxBitmap *arg1 = 0 ; | |
29546 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29547 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29548 | wxGenericDragImage *result; | |
29549 | PyObject * obj0 = 0 ; | |
29550 | PyObject * obj1 = 0 ; | |
29551 | char *kwnames[] = { | |
29552 | (char *) "image",(char *) "cursor", NULL | |
29553 | }; | |
29554 | ||
29555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
29557 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29558 | SWIG_fail; | |
423f194a | 29559 | if (arg1 == NULL) { |
2f4c0a16 RD |
29560 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29561 | SWIG_fail; | |
423f194a RD |
29562 | } |
29563 | if (obj1) { | |
2f4c0a16 RD |
29564 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29565 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29566 | SWIG_fail; | |
423f194a | 29567 | if (arg2 == NULL) { |
2f4c0a16 RD |
29568 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29569 | SWIG_fail; | |
423f194a RD |
29570 | } |
29571 | } | |
29572 | { | |
29573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29574 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29575 | ||
29576 | wxPyEndAllowThreads(__tstate); | |
29577 | if (PyErr_Occurred()) SWIG_fail; | |
29578 | } | |
2f4c0a16 | 29579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29580 | return resultobj; |
29581 | fail: | |
29582 | return NULL; | |
29583 | } | |
29584 | ||
29585 | ||
29586 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29587 | PyObject *resultobj; | |
29588 | wxIcon *arg1 = 0 ; | |
29589 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29590 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29591 | wxGenericDragImage *result; | |
29592 | PyObject * obj0 = 0 ; | |
29593 | PyObject * obj1 = 0 ; | |
29594 | char *kwnames[] = { | |
29595 | (char *) "image",(char *) "cursor", NULL | |
29596 | }; | |
29597 | ||
29598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
29600 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29601 | SWIG_fail; | |
423f194a | 29602 | if (arg1 == NULL) { |
2f4c0a16 RD |
29603 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29604 | SWIG_fail; | |
423f194a RD |
29605 | } |
29606 | if (obj1) { | |
2f4c0a16 RD |
29607 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29608 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29609 | SWIG_fail; | |
423f194a | 29610 | if (arg2 == NULL) { |
2f4c0a16 RD |
29611 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29612 | SWIG_fail; | |
423f194a RD |
29613 | } |
29614 | } | |
29615 | { | |
29616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29617 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29618 | ||
29619 | wxPyEndAllowThreads(__tstate); | |
29620 | if (PyErr_Occurred()) SWIG_fail; | |
29621 | } | |
2f4c0a16 | 29622 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29623 | return resultobj; |
29624 | fail: | |
29625 | return NULL; | |
29626 | } | |
29627 | ||
29628 | ||
29629 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29630 | PyObject *resultobj; | |
29631 | wxString *arg1 = 0 ; | |
29632 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29633 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29634 | wxGenericDragImage *result; | |
29635 | bool temp1 = False ; | |
29636 | PyObject * obj0 = 0 ; | |
29637 | PyObject * obj1 = 0 ; | |
29638 | char *kwnames[] = { | |
29639 | (char *) "str",(char *) "cursor", NULL | |
29640 | }; | |
29641 | ||
29642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29643 | { | |
29644 | arg1 = wxString_in_helper(obj0); | |
29645 | if (arg1 == NULL) SWIG_fail; | |
29646 | temp1 = True; | |
29647 | } | |
29648 | if (obj1) { | |
2f4c0a16 RD |
29649 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29650 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29651 | SWIG_fail; | |
423f194a | 29652 | if (arg2 == NULL) { |
2f4c0a16 RD |
29653 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29654 | SWIG_fail; | |
423f194a RD |
29655 | } |
29656 | } | |
29657 | { | |
29658 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29659 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29660 | ||
29661 | wxPyEndAllowThreads(__tstate); | |
29662 | if (PyErr_Occurred()) SWIG_fail; | |
29663 | } | |
2f4c0a16 | 29664 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29665 | { |
29666 | if (temp1) | |
29667 | delete arg1; | |
29668 | } | |
29669 | return resultobj; | |
29670 | fail: | |
29671 | { | |
29672 | if (temp1) | |
29673 | delete arg1; | |
29674 | } | |
29675 | return NULL; | |
29676 | } | |
29677 | ||
29678 | ||
29679 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29680 | PyObject *resultobj; | |
29681 | wxPyTreeCtrl *arg1 = 0 ; | |
29682 | wxTreeItemId *arg2 = 0 ; | |
29683 | wxGenericDragImage *result; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | PyObject * obj1 = 0 ; | |
29686 | char *kwnames[] = { | |
29687 | (char *) "treeCtrl",(char *) "id", NULL | |
29688 | }; | |
29689 | ||
29690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
29692 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29693 | SWIG_fail; | |
423f194a | 29694 | if (arg1 == NULL) { |
2f4c0a16 RD |
29695 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29696 | SWIG_fail; | |
423f194a | 29697 | } |
2f4c0a16 RD |
29698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
29699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29700 | SWIG_fail; | |
423f194a | 29701 | if (arg2 == NULL) { |
2f4c0a16 RD |
29702 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29703 | SWIG_fail; | |
423f194a RD |
29704 | } |
29705 | { | |
29706 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29707 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29708 | ||
29709 | wxPyEndAllowThreads(__tstate); | |
29710 | if (PyErr_Occurred()) SWIG_fail; | |
29711 | } | |
2f4c0a16 | 29712 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29713 | return resultobj; |
29714 | fail: | |
29715 | return NULL; | |
29716 | } | |
29717 | ||
29718 | ||
29719 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29720 | PyObject *resultobj; | |
29721 | wxPyListCtrl *arg1 = 0 ; | |
29722 | long arg2 ; | |
29723 | wxGenericDragImage *result; | |
29724 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29725 | PyObject * obj1 = 0 ; |
423f194a RD |
29726 | char *kwnames[] = { |
29727 | (char *) "listCtrl",(char *) "id", NULL | |
29728 | }; | |
29729 | ||
8edf1c75 | 29730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
29732 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29733 | SWIG_fail; | |
423f194a | 29734 | if (arg1 == NULL) { |
2f4c0a16 RD |
29735 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29736 | SWIG_fail; | |
8edf1c75 | 29737 | } |
2f4c0a16 RD |
29738 | arg2 = (long) SWIG_AsLong(obj1); |
29739 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
29740 | { |
29741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29742 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29743 | ||
29744 | wxPyEndAllowThreads(__tstate); | |
29745 | if (PyErr_Occurred()) SWIG_fail; | |
29746 | } | |
2f4c0a16 | 29747 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29748 | return resultobj; |
29749 | fail: | |
29750 | return NULL; | |
29751 | } | |
29752 | ||
29753 | ||
29754 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29755 | PyObject *resultobj; | |
29756 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29757 | PyObject * obj0 = 0 ; | |
29758 | char *kwnames[] = { | |
29759 | (char *) "self", NULL | |
29760 | }; | |
29761 | ||
29762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29765 | { |
29766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29767 | delete arg1; | |
29768 | ||
29769 | wxPyEndAllowThreads(__tstate); | |
29770 | if (PyErr_Occurred()) SWIG_fail; | |
29771 | } | |
29772 | Py_INCREF(Py_None); resultobj = Py_None; | |
29773 | return resultobj; | |
29774 | fail: | |
29775 | return NULL; | |
29776 | } | |
29777 | ||
29778 | ||
29779 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29780 | PyObject *resultobj; | |
29781 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29782 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29783 | PyObject * obj0 = 0 ; | |
29784 | PyObject * obj1 = 0 ; | |
29785 | char *kwnames[] = { | |
29786 | (char *) "self",(char *) "bitmap", NULL | |
29787 | }; | |
29788 | ||
29789 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29790 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29791 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29792 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
29793 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29794 | { |
29795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29796 | (arg1)->SetBackingBitmap(arg2); | |
29797 | ||
29798 | wxPyEndAllowThreads(__tstate); | |
29799 | if (PyErr_Occurred()) SWIG_fail; | |
29800 | } | |
29801 | Py_INCREF(Py_None); resultobj = Py_None; | |
29802 | return resultobj; | |
29803 | fail: | |
29804 | return NULL; | |
29805 | } | |
29806 | ||
29807 | ||
29808 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29809 | PyObject *resultobj; | |
29810 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29811 | wxPoint *arg2 = 0 ; | |
29812 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29813 | bool arg4 = (bool) False ; | |
29814 | wxRect *arg5 = (wxRect *) NULL ; | |
29815 | bool result; | |
29816 | wxPoint temp2 ; | |
29817 | PyObject * obj0 = 0 ; | |
29818 | PyObject * obj1 = 0 ; | |
29819 | PyObject * obj2 = 0 ; | |
29820 | PyObject * obj3 = 0 ; | |
29821 | PyObject * obj4 = 0 ; | |
29822 | char *kwnames[] = { | |
29823 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29824 | }; | |
29825 | ||
29826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
29827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29829 | { |
29830 | arg2 = &temp2; | |
29831 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29832 | } | |
2f4c0a16 RD |
29833 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
29834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 29835 | if (obj3) { |
2f4c0a16 RD |
29836 | arg4 = (bool) SWIG_AsBool(obj3); |
29837 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
29838 | } |
29839 | if (obj4) { | |
2f4c0a16 RD |
29840 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
29841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29842 | } |
29843 | { | |
29844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29845 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29846 | ||
29847 | wxPyEndAllowThreads(__tstate); | |
29848 | if (PyErr_Occurred()) SWIG_fail; | |
29849 | } | |
4f89f6a3 RD |
29850 | { |
29851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29852 | } | |
423f194a RD |
29853 | return resultobj; |
29854 | fail: | |
29855 | return NULL; | |
29856 | } | |
29857 | ||
29858 | ||
29859 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29860 | PyObject *resultobj; | |
29861 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29862 | wxPoint *arg2 = 0 ; | |
29863 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29864 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29865 | bool result; | |
29866 | wxPoint temp2 ; | |
29867 | PyObject * obj0 = 0 ; | |
29868 | PyObject * obj1 = 0 ; | |
29869 | PyObject * obj2 = 0 ; | |
29870 | PyObject * obj3 = 0 ; | |
29871 | char *kwnames[] = { | |
29872 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29873 | }; | |
29874 | ||
29875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29878 | { |
29879 | arg2 = &temp2; | |
29880 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29881 | } | |
2f4c0a16 RD |
29882 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
29883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29884 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
29885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29886 | { |
29887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29888 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29889 | ||
29890 | wxPyEndAllowThreads(__tstate); | |
29891 | if (PyErr_Occurred()) SWIG_fail; | |
29892 | } | |
4f89f6a3 RD |
29893 | { |
29894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29895 | } | |
423f194a RD |
29896 | return resultobj; |
29897 | fail: | |
29898 | return NULL; | |
29899 | } | |
29900 | ||
29901 | ||
29902 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29903 | PyObject *resultobj; | |
29904 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29905 | bool result; | |
29906 | PyObject * obj0 = 0 ; | |
29907 | char *kwnames[] = { | |
29908 | (char *) "self", NULL | |
29909 | }; | |
29910 | ||
29911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29914 | { |
29915 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29916 | result = (bool)(arg1)->EndDrag(); | |
29917 | ||
29918 | wxPyEndAllowThreads(__tstate); | |
29919 | if (PyErr_Occurred()) SWIG_fail; | |
29920 | } | |
4f89f6a3 RD |
29921 | { |
29922 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29923 | } | |
423f194a RD |
29924 | return resultobj; |
29925 | fail: | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
29930 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29931 | PyObject *resultobj; | |
29932 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29933 | wxPoint *arg2 = 0 ; | |
29934 | bool result; | |
29935 | wxPoint temp2 ; | |
29936 | PyObject * obj0 = 0 ; | |
29937 | PyObject * obj1 = 0 ; | |
29938 | char *kwnames[] = { | |
29939 | (char *) "self",(char *) "pt", NULL | |
29940 | }; | |
29941 | ||
29942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29945 | { |
29946 | arg2 = &temp2; | |
29947 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29948 | } | |
29949 | { | |
29950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29951 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
29952 | ||
29953 | wxPyEndAllowThreads(__tstate); | |
29954 | if (PyErr_Occurred()) SWIG_fail; | |
29955 | } | |
4f89f6a3 RD |
29956 | { |
29957 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29958 | } | |
423f194a RD |
29959 | return resultobj; |
29960 | fail: | |
29961 | return NULL; | |
29962 | } | |
29963 | ||
29964 | ||
29965 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29966 | PyObject *resultobj; | |
29967 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29968 | bool result; | |
29969 | PyObject * obj0 = 0 ; | |
29970 | char *kwnames[] = { | |
29971 | (char *) "self", NULL | |
29972 | }; | |
29973 | ||
29974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29977 | { |
29978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29979 | result = (bool)(arg1)->Show(); | |
29980 | ||
29981 | wxPyEndAllowThreads(__tstate); | |
29982 | if (PyErr_Occurred()) SWIG_fail; | |
29983 | } | |
4f89f6a3 RD |
29984 | { |
29985 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29986 | } | |
423f194a RD |
29987 | return resultobj; |
29988 | fail: | |
29989 | return NULL; | |
29990 | } | |
29991 | ||
29992 | ||
29993 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29994 | PyObject *resultobj; | |
29995 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29996 | bool result; | |
29997 | PyObject * obj0 = 0 ; | |
29998 | char *kwnames[] = { | |
29999 | (char *) "self", NULL | |
30000 | }; | |
30001 | ||
30002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30005 | { |
30006 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30007 | result = (bool)(arg1)->Hide(); | |
30008 | ||
30009 | wxPyEndAllowThreads(__tstate); | |
30010 | if (PyErr_Occurred()) SWIG_fail; | |
30011 | } | |
4f89f6a3 RD |
30012 | { |
30013 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30014 | } | |
423f194a RD |
30015 | return resultobj; |
30016 | fail: | |
30017 | return NULL; | |
30018 | } | |
30019 | ||
30020 | ||
30021 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30022 | PyObject *resultobj; | |
30023 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30024 | wxPoint *arg2 = 0 ; | |
30025 | wxRect result; | |
30026 | wxPoint temp2 ; | |
30027 | PyObject * obj0 = 0 ; | |
30028 | PyObject * obj1 = 0 ; | |
30029 | char *kwnames[] = { | |
30030 | (char *) "self",(char *) "pos", NULL | |
30031 | }; | |
30032 | ||
30033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30036 | { |
30037 | arg2 = &temp2; | |
30038 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30039 | } | |
30040 | { | |
30041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30042 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30043 | ||
30044 | wxPyEndAllowThreads(__tstate); | |
30045 | if (PyErr_Occurred()) SWIG_fail; | |
30046 | } | |
30047 | { | |
30048 | wxRect * resultptr; | |
30049 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 30050 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
423f194a RD |
30051 | } |
30052 | return resultobj; | |
30053 | fail: | |
30054 | return NULL; | |
30055 | } | |
30056 | ||
30057 | ||
30058 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30059 | PyObject *resultobj; | |
30060 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30061 | wxDC *arg2 = 0 ; | |
30062 | wxPoint *arg3 = 0 ; | |
30063 | bool result; | |
30064 | wxPoint temp3 ; | |
30065 | PyObject * obj0 = 0 ; | |
30066 | PyObject * obj1 = 0 ; | |
30067 | PyObject * obj2 = 0 ; | |
30068 | char *kwnames[] = { | |
30069 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30070 | }; | |
30071 | ||
30072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30076 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30077 | SWIG_fail; | |
423f194a | 30078 | if (arg2 == NULL) { |
2f4c0a16 RD |
30079 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30080 | SWIG_fail; | |
423f194a RD |
30081 | } |
30082 | { | |
30083 | arg3 = &temp3; | |
30084 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30085 | } | |
30086 | { | |
30087 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30088 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30089 | ||
30090 | wxPyEndAllowThreads(__tstate); | |
30091 | if (PyErr_Occurred()) SWIG_fail; | |
30092 | } | |
4f89f6a3 RD |
30093 | { |
30094 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30095 | } | |
423f194a RD |
30096 | return resultobj; |
30097 | fail: | |
30098 | return NULL; | |
30099 | } | |
30100 | ||
30101 | ||
30102 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30103 | PyObject *resultobj; | |
30104 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30105 | wxDC *arg2 = 0 ; | |
30106 | wxMemoryDC *arg3 = 0 ; | |
30107 | wxRect *arg4 = 0 ; | |
30108 | wxRect *arg5 = 0 ; | |
30109 | bool result; | |
30110 | wxRect temp4 ; | |
30111 | wxRect temp5 ; | |
30112 | PyObject * obj0 = 0 ; | |
30113 | PyObject * obj1 = 0 ; | |
30114 | PyObject * obj2 = 0 ; | |
30115 | PyObject * obj3 = 0 ; | |
30116 | PyObject * obj4 = 0 ; | |
30117 | char *kwnames[] = { | |
30118 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30119 | }; | |
30120 | ||
30121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30124 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30125 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30126 | SWIG_fail; | |
423f194a | 30127 | if (arg2 == NULL) { |
2f4c0a16 RD |
30128 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30129 | SWIG_fail; | |
423f194a | 30130 | } |
2f4c0a16 RD |
30131 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
30132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30133 | SWIG_fail; | |
423f194a | 30134 | if (arg3 == NULL) { |
2f4c0a16 RD |
30135 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30136 | SWIG_fail; | |
423f194a RD |
30137 | } |
30138 | { | |
30139 | arg4 = &temp4; | |
30140 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30141 | } | |
30142 | { | |
30143 | arg5 = &temp5; | |
30144 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30145 | } | |
30146 | { | |
30147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30148 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30149 | ||
30150 | wxPyEndAllowThreads(__tstate); | |
30151 | if (PyErr_Occurred()) SWIG_fail; | |
30152 | } | |
4f89f6a3 RD |
30153 | { |
30154 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30155 | } | |
423f194a RD |
30156 | return resultobj; |
30157 | fail: | |
30158 | return NULL; | |
30159 | } | |
30160 | ||
30161 | ||
30162 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30163 | PyObject *resultobj; | |
30164 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30165 | wxPoint *arg2 = 0 ; | |
30166 | wxPoint *arg3 = 0 ; | |
30167 | bool arg4 ; | |
30168 | bool arg5 ; | |
30169 | bool result; | |
30170 | wxPoint temp2 ; | |
30171 | wxPoint temp3 ; | |
30172 | PyObject * obj0 = 0 ; | |
30173 | PyObject * obj1 = 0 ; | |
30174 | PyObject * obj2 = 0 ; | |
30175 | PyObject * obj3 = 0 ; | |
30176 | PyObject * obj4 = 0 ; | |
30177 | char *kwnames[] = { | |
30178 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30179 | }; | |
30180 | ||
30181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30184 | { |
30185 | arg2 = &temp2; | |
30186 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30187 | } | |
30188 | { | |
30189 | arg3 = &temp3; | |
30190 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30191 | } | |
2f4c0a16 RD |
30192 | arg4 = (bool) SWIG_AsBool(obj3); |
30193 | if (PyErr_Occurred()) SWIG_fail; | |
30194 | arg5 = (bool) SWIG_AsBool(obj4); | |
30195 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
30196 | { |
30197 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30198 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
30199 | ||
30200 | wxPyEndAllowThreads(__tstate); | |
30201 | if (PyErr_Occurred()) SWIG_fail; | |
30202 | } | |
4f89f6a3 RD |
30203 | { |
30204 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30205 | } | |
423f194a RD |
30206 | return resultobj; |
30207 | fail: | |
30208 | return NULL; | |
30209 | } | |
30210 | ||
30211 | ||
30212 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
30213 | PyObject *obj; | |
30214 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30215 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
30216 | Py_INCREF(obj); | |
30217 | return Py_BuildValue((char *)""); | |
30218 | } | |
30219 | static PyMethodDef SwigMethods[] = { | |
30220 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
30221 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
30222 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
30223 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30224 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
30225 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
30226 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30227 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30228 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30229 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30230 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30231 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30232 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30233 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30234 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30235 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30236 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30237 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30238 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
30239 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
30240 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
30241 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30242 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30243 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30244 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30245 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30246 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30247 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30248 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30249 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
30250 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
30251 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
30252 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
30253 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
30254 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30255 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
30256 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30257 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30258 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
30259 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30260 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30261 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30262 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30263 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30264 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30265 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30266 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30267 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30268 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30269 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30270 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 30271 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30272 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
30273 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30274 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30275 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30276 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
30277 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
30278 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
30279 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
30280 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30281 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30282 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30283 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30284 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30285 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30286 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30287 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30288 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30289 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
30290 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30291 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30292 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30293 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
30294 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30295 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30296 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
30297 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30298 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30299 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
30300 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
30301 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
30302 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
30303 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
30304 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30305 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30306 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
30307 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30308 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30309 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
30310 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
30311 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
30312 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30314 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
30315 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
30316 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
30317 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30318 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30319 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
30320 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
30321 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30322 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30323 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30324 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
30325 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
30326 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30327 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30328 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
30329 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
30330 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30331 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30332 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
30333 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30334 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30335 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30336 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30337 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
30338 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
30339 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30340 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
30341 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
30342 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 30343 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30344 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
30345 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30346 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30347 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30348 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30349 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30350 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30351 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30352 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30353 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30354 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30355 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30356 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30357 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
30358 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30359 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30360 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
30361 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30362 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30363 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30364 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30365 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30366 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30367 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30368 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30369 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
30370 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
30371 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
30372 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30373 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30374 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30375 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30376 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30377 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30378 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
30379 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
30380 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
30381 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
30382 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
30383 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
30384 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
30385 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30386 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30387 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30388 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30389 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30390 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
30391 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
30392 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
30393 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
30394 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
30395 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
30396 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
30397 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
30398 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30399 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30400 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30401 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30402 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
30403 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
30404 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 30405 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 30406 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30407 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
30408 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30409 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
30410 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
30411 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
30412 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
30413 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
30414 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
30415 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
30416 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30417 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30418 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30419 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30420 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30421 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
30422 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30423 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30424 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30425 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
30426 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30427 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
30428 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30429 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
30430 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
30431 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
30432 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
30433 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30434 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30435 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30436 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30437 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
30438 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30439 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30440 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30441 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30442 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
30443 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
30444 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30445 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30446 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30447 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30448 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30449 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30450 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30451 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30452 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30453 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30454 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30455 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
30456 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30457 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30458 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30459 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30460 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30461 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
30462 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30463 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30464 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30465 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30466 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
30467 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
30468 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30469 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30470 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30471 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
30472 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30473 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30474 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30475 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30476 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30477 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30478 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30479 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
30480 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30481 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30482 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
30483 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
30484 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30485 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30486 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30487 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
30488 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30489 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30490 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30491 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30492 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30493 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
30494 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
30495 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
30496 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
30497 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30498 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30499 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30500 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30501 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30502 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30503 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30504 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30505 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30506 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30507 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30508 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30509 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30510 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30511 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30512 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
30513 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
30514 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
30515 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
30516 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
30517 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30518 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
30519 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30520 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30521 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30522 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30523 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30524 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30525 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
30526 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
30527 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
30528 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30529 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30530 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30531 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30532 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30533 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30534 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30535 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30536 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30537 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30538 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
30539 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
30540 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
30541 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
30542 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
30543 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30544 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
30545 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
30546 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30547 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30548 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30549 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30550 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30551 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
30552 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
30553 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30554 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30555 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30556 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
30557 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
30558 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30559 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30560 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
30561 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
30562 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30563 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
30564 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
30565 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
30566 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30567 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30568 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
30569 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30570 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
30571 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
30572 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30573 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30574 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30575 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
30576 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
30577 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30578 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30579 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30580 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30581 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30582 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30583 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30584 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30585 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30586 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30587 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30588 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30589 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30590 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30591 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30592 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30593 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30594 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30595 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30596 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30597 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30598 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30599 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30600 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30601 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30602 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30603 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30604 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30605 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30606 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30607 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30608 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30609 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30610 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30611 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30612 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
30613 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
30614 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
30615 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
30616 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30617 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30618 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30619 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30620 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30621 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30622 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30623 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30624 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30625 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30626 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30627 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30628 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30629 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30630 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30631 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30632 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30633 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30634 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30635 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30636 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30637 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30638 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30639 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30640 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30641 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30642 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30643 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30644 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30645 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30646 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30647 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30648 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30649 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30650 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30651 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30652 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 30653 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30654 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
30655 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30656 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30657 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30658 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30659 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30660 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30661 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30662 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30663 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30664 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30665 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30666 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30667 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30668 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30669 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30670 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30671 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30672 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30673 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30674 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30675 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30676 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30677 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30678 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30679 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30680 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30681 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30682 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30683 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30684 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30685 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30686 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30687 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30688 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30689 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30690 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30691 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30692 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30693 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30694 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30695 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30696 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30697 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30698 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30699 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30700 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30701 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30702 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30703 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30704 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30705 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30706 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30707 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30708 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30709 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30710 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30711 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30712 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30713 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30714 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30715 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30716 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30717 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30718 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30719 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30720 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30721 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30722 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30723 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30724 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30725 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30726 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30727 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30728 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30729 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30730 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30731 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30732 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30733 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30734 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30735 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30736 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30737 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30738 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30739 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30740 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30741 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30742 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30743 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30744 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30745 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30746 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30747 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30748 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30749 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30750 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30751 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30752 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30753 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30754 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30755 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30756 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30757 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30758 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30759 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30760 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30761 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30762 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30763 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30764 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30765 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30766 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30767 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30768 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30769 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30770 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30771 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30772 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30773 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30774 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30775 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30776 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30777 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30778 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30779 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30780 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30781 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30782 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30783 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30784 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30785 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30786 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30787 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30788 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30789 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30790 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 | 30791 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30792 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
30793 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30794 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30795 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30796 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30797 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30798 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30799 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30800 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30801 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30802 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30803 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30804 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30805 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30806 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30807 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30808 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30809 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30810 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30811 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30812 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30813 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30814 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30815 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30816 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30817 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30818 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30819 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30820 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30821 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30822 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30823 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30824 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30825 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30826 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30827 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30828 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30829 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30830 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30831 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30832 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30833 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30834 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30835 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30836 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30837 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30838 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30839 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30840 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30841 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30842 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30843 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30844 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30845 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30846 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30847 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30848 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30849 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30850 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30851 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30852 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30853 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30854 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30855 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30856 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30857 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30858 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30859 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30860 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30861 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30862 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30863 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 30864 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30865 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
30866 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30867 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30868 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30869 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30870 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30871 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30872 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30873 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30874 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30875 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30876 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30877 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30878 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30879 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30880 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30881 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30882 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30883 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30884 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30885 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30886 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30887 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30888 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30889 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30890 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30891 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30892 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30893 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30894 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
30895 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30896 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30897 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30898 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30899 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30900 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30901 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30902 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30903 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30904 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30905 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30906 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30907 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
30908 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
30909 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
30910 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
30911 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
30912 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
30913 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
30914 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
30915 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
30916 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
30917 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
30918 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30919 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
30920 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
30921 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
30922 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
30923 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30924 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
30925 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
30926 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
30927 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30928 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30929 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30930 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
30931 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 30932 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30933 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
30934 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
30935 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30936 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30937 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30938 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
30939 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30940 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
30941 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
30942 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30943 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30944 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30945 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
30946 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30947 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
30948 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
30949 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
30950 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
30951 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30952 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
30953 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30954 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
30955 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30956 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
30957 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
30958 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30959 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30960 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
30961 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
30962 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
30963 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
30964 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30965 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30966 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30967 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
30968 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
30969 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
30970 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30971 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
30972 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
30973 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30974 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30975 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
30976 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
30977 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30978 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
30979 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
30980 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
30981 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
30982 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
30983 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
30984 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
30985 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
30986 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
30987 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
30988 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
30989 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, | |
30990 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
30991 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30992 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30993 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
30994 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
30995 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30996 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
30997 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
30998 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
30999 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31000 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31001 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31002 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31003 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31004 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31005 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31006 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31007 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31008 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31009 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31010 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 31011 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31012 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
31013 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31014 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31015 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
31016 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
31017 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31018 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31019 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31020 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31021 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31022 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31023 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31024 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31025 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31026 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31027 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31028 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31029 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31030 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31031 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31032 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31033 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31034 | { NULL, NULL } |
31035 | }; | |
31036 | ||
31037 | ||
31038 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31039 | ||
31040 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31041 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31042 | } | |
31043 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31044 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31045 | } | |
31046 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31047 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31048 | } | |
31049 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31050 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31051 | } | |
31052 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31053 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31054 | } | |
31055 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31056 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31057 | } | |
31058 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31059 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31060 | } | |
31061 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31062 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31063 | } | |
31064 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31065 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31066 | } | |
31067 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31068 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31069 | } | |
31070 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31071 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31072 | } | |
31073 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31074 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31075 | } | |
31076 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31077 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31078 | } | |
31079 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31080 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31081 | } | |
31082 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31083 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31084 | } | |
31085 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31086 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31087 | } | |
31088 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31089 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31090 | } | |
31091 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31092 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31093 | } | |
31094 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31095 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31096 | } | |
31097 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31098 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31099 | } | |
31100 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31101 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31102 | } | |
31103 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31104 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31105 | } | |
31106 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31107 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31108 | } | |
31109 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31110 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31111 | } | |
31112 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31113 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31114 | } | |
31115 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31116 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31117 | } | |
31118 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31119 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31120 | } | |
31121 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31122 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31123 | } | |
31124 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31125 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31126 | } | |
31127 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31128 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31129 | } | |
31130 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31131 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31132 | } | |
31133 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31134 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31135 | } | |
31136 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31137 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31138 | } | |
31139 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31140 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31141 | } | |
31142 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31143 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31144 | } | |
31145 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31146 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31147 | } | |
31148 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31149 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31150 | } | |
31151 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31152 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31153 | } | |
31154 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31155 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31156 | } | |
31157 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31158 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31159 | } | |
31160 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31161 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31162 | } | |
31163 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31164 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31165 | } | |
31166 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31167 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31168 | } | |
31169 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31170 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31171 | } | |
31172 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31173 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31174 | } | |
31175 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31176 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31177 | } | |
31178 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31179 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31180 | } | |
31181 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31182 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31183 | } | |
31184 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31185 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31186 | } | |
31187 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31188 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31189 | } | |
31190 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31191 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31192 | } | |
31193 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31194 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31195 | } | |
eb9b6107 RD |
31196 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
31197 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31198 | } | |
d14a1e28 RD |
31199 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
31200 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31201 | } | |
31202 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
31203 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31204 | } | |
31205 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
31206 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
31207 | } | |
31208 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
31209 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
31210 | } | |
31211 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
31212 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
31213 | } | |
31214 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
31215 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31216 | } | |
31217 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
31218 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
31219 | } | |
31220 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
31221 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31222 | } | |
31223 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
31224 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
31225 | } | |
31226 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
31227 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
31228 | } | |
31229 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
31230 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
31231 | } | |
31232 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
31233 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
31234 | } | |
31235 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
31236 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31237 | } | |
31238 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
31239 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
31240 | } | |
31241 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
31242 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
31243 | } | |
31244 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
31245 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
31246 | } | |
31247 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
31248 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
31249 | } | |
31250 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
31251 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31252 | } | |
31253 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
31254 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
31255 | } | |
31256 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
31257 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
31258 | } | |
31259 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
31260 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
31261 | } | |
31262 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
31263 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
31264 | } | |
31265 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
31266 | return (void *)((wxControl *) ((wxGauge *) x)); | |
31267 | } | |
31268 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
31269 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
31270 | } | |
31271 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
31272 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
31273 | } | |
31274 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
31275 | return (void *)((wxControl *) ((wxButton *) x)); | |
31276 | } | |
31277 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
31278 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
31279 | } | |
31280 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
31281 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31282 | } | |
31283 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
31284 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
31285 | } | |
31286 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
31287 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
31288 | } | |
31289 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
31290 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
31291 | } | |
31292 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
31293 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
31294 | } | |
31295 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
31296 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
31297 | } | |
31298 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
31299 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
31300 | } | |
31301 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
31302 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
31303 | } | |
31304 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
31305 | return (void *)((wxControl *) ((wxSlider *) x)); | |
31306 | } | |
31307 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
31308 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
31309 | } | |
31310 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
31311 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
31312 | } | |
31313 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
31314 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
31315 | } | |
31316 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
31317 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
31318 | } | |
31319 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
31320 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
31321 | } | |
31322 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
31323 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
31324 | } | |
31325 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
31326 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31327 | } | |
31328 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
31329 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31330 | } | |
31331 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
31332 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31333 | } | |
31334 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
31335 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
31336 | } | |
eb9b6107 RD |
31337 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
31338 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31339 | } | |
d14a1e28 RD |
31340 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
31341 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31342 | } | |
31343 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
31344 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31345 | } | |
31346 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
31347 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31348 | } | |
31349 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31350 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31351 | } | |
31352 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31353 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31354 | } | |
31355 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31356 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31357 | } | |
31358 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
31359 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31360 | } | |
31361 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31362 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31363 | } | |
31364 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
31365 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31366 | } | |
31367 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
31368 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31369 | } | |
31370 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31371 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31372 | } | |
31373 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31374 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31375 | } | |
31376 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
31377 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31378 | } | |
31379 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
31380 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31381 | } | |
31382 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
31383 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31384 | } | |
31385 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
31386 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31387 | } | |
31388 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
31389 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31390 | } | |
31391 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31392 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31393 | } | |
31394 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
31395 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31396 | } | |
31397 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
31398 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31399 | } | |
31400 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31401 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31402 | } | |
31403 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
31404 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31405 | } | |
31406 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
31407 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31408 | } | |
31409 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
31410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31411 | } | |
31412 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
31413 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31414 | } | |
31415 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
31416 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31417 | } | |
31418 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
31419 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31420 | } | |
31421 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
31422 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31423 | } | |
31424 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
31425 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31426 | } | |
31427 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
31428 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31429 | } | |
31430 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
31431 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31432 | } | |
31433 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
31434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31435 | } | |
31436 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
31437 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31438 | } | |
31439 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
31440 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31441 | } | |
31442 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
31443 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31444 | } | |
31445 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
31446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31447 | } | |
31448 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
31449 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31450 | } | |
31451 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
31452 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31453 | } | |
31454 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
31455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
31456 | } | |
31457 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
31458 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31459 | } | |
31460 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
31461 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31462 | } | |
31463 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
31464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31465 | } | |
31466 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
31467 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
31468 | } | |
31469 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
31470 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
31471 | } | |
31472 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
31473 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
31474 | } | |
31475 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
31476 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
31477 | } | |
31478 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
31479 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31480 | } | |
31481 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
31482 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31483 | } | |
31484 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
31485 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
31486 | } | |
31487 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31488 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31489 | } | |
31490 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31491 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31492 | } | |
31493 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31494 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31495 | } | |
31496 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31497 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31498 | } | |
31499 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31500 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31501 | } | |
31502 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
31503 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31504 | } | |
31505 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
31506 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31507 | } | |
31508 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31509 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31510 | } | |
31511 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31512 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31513 | } | |
31514 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31515 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31516 | } | |
31517 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31518 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31519 | } | |
31520 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
31521 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31522 | } | |
31523 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
31524 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31525 | } | |
31526 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31527 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31528 | } | |
31529 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31530 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31531 | } | |
31532 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31533 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31534 | } | |
31535 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31536 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31537 | } | |
31538 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31539 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31540 | } | |
31541 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
31542 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31543 | } | |
31544 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
31545 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31546 | } | |
31547 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
31548 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31549 | } | |
31550 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31551 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31552 | } | |
31553 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31554 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31555 | } | |
31556 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31557 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31558 | } | |
31559 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31560 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31561 | } | |
31562 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31563 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31564 | } | |
31565 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31566 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31567 | } | |
31568 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
31569 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31570 | } | |
31571 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31573 | } | |
31574 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
31575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31576 | } | |
31577 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
31578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31579 | } | |
31580 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
31581 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31582 | } | |
31583 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31584 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31585 | } | |
31586 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31587 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31588 | } | |
31589 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31590 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31591 | } | |
31592 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31593 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31594 | } | |
31595 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31596 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31597 | } | |
31598 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31599 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31600 | } | |
31601 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31603 | } | |
31604 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31606 | } | |
31607 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31609 | } | |
31610 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31611 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31612 | } | |
31613 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31614 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31615 | } | |
31616 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31617 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31618 | } | |
31619 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31620 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31621 | } | |
31622 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31623 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31624 | } | |
31625 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31626 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31627 | } | |
31628 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31629 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31630 | } | |
31631 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31632 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31633 | } | |
31634 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31635 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31636 | } | |
31637 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31638 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31639 | } | |
31640 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31641 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31642 | } | |
31643 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31644 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31645 | } | |
31646 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31647 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31648 | } | |
31649 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31650 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31651 | } | |
31652 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31653 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31654 | } | |
31655 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31657 | } | |
31658 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31659 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31660 | } | |
31661 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31662 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31663 | } | |
31664 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31665 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31666 | } | |
31667 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31668 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31669 | } | |
31670 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31671 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31672 | } | |
31673 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31674 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31675 | } | |
31676 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31677 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31678 | } | |
31679 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31680 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31681 | } | |
31682 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31683 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31684 | } | |
31685 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31686 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31687 | } | |
31688 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31689 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31690 | } | |
31691 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31692 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31693 | } | |
31694 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31695 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31696 | } | |
31697 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31698 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31699 | } | |
31700 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31701 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31702 | } | |
31703 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31704 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31705 | } | |
31706 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31707 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31708 | } | |
31709 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31710 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31711 | } | |
d14a1e28 RD |
31712 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
31713 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31714 | } | |
41f1cec7 RD |
31715 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31716 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31717 | } | |
d14a1e28 RD |
31718 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31719 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31720 | } | |
31721 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31722 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31723 | } | |
41f1cec7 RD |
31724 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31725 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31726 | } | |
d14a1e28 RD |
31727 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31728 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31729 | } | |
31730 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31731 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31732 | } | |
31733 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31735 | } | |
31736 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31737 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31738 | } | |
31739 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31740 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31741 | } | |
31742 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31743 | return (void *)((wxObject *) ((wxImage *) x)); | |
31744 | } | |
31745 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31746 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31747 | } | |
31748 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31749 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31750 | } | |
eb9b6107 RD |
31751 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31752 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31753 | } | |
423f194a RD |
31754 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31755 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31756 | } | |
d14a1e28 RD |
31757 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31758 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31759 | } | |
31760 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31761 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31762 | } | |
31763 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31764 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31765 | } | |
31766 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31767 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31768 | } | |
31769 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31770 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31771 | } | |
31772 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31773 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31774 | } | |
31775 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31776 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31777 | } | |
31778 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31779 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31780 | } | |
31781 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31782 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31783 | } | |
31784 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31785 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31786 | } | |
31787 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31788 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31789 | } | |
31790 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31791 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31792 | } | |
31793 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31794 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31795 | } | |
31796 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31797 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31798 | } | |
31799 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31800 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31801 | } | |
31802 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31803 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31804 | } | |
31805 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31806 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31807 | } | |
31808 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31809 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31810 | } | |
31811 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31812 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31813 | } | |
31814 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31815 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31816 | } | |
31817 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31818 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31819 | } | |
31820 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31821 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31822 | } | |
31823 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31824 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31825 | } | |
31826 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31827 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31828 | } | |
31829 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31830 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31831 | } | |
31832 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31833 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31834 | } | |
31835 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31836 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31837 | } | |
31838 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31839 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31840 | } | |
31841 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31842 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31843 | } | |
31844 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31845 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31846 | } | |
31847 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31848 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31849 | } | |
31850 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31851 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31852 | } | |
31853 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31854 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31855 | } | |
31856 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31857 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31858 | } | |
31859 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31860 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31861 | } | |
31862 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31863 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31864 | } | |
31865 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31866 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31867 | } | |
31868 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31869 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31870 | } | |
31871 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31872 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31873 | } | |
31874 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31875 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31876 | } | |
31877 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31878 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31879 | } | |
31880 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31881 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31882 | } | |
31883 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31884 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31885 | } | |
31886 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31887 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31888 | } | |
31889 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31890 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31891 | } | |
31892 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31893 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31894 | } | |
31895 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31896 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31897 | } | |
31898 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31899 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31900 | } | |
31901 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31902 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31903 | } | |
31904 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
31905 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31906 | } | |
31907 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
31908 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31909 | } | |
31910 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
31911 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31912 | } | |
31913 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
31914 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31915 | } | |
31916 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
31917 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31918 | } | |
31919 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
31920 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
31921 | } | |
31922 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
31923 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
31924 | } | |
31925 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
31926 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
31927 | } | |
31928 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
31929 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
31930 | } | |
31931 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
31932 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
31933 | } | |
31934 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
31935 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
31936 | } | |
31937 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
31938 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
31939 | } | |
31940 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
31941 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31942 | } | |
31943 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
31944 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31945 | } | |
31946 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
31947 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
31948 | } | |
31949 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
31950 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31951 | } | |
31952 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
31953 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31954 | } | |
31955 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
31956 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31957 | } | |
31958 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
31959 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
31960 | } | |
31961 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
31962 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31963 | } | |
31964 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
31965 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31966 | } | |
31967 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
31968 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31969 | } | |
31970 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
31971 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31972 | } | |
31973 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
31974 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31975 | } | |
31976 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
31977 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
31978 | } | |
31979 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
31980 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31981 | } | |
31982 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
31983 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31984 | } | |
eb9b6107 RD |
31985 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
31986 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31987 | } | |
d14a1e28 RD |
31988 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
31989 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
31990 | } | |
31991 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
31992 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31993 | } | |
31994 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
31995 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31996 | } | |
31997 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
31998 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
31999 | } | |
32000 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32001 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32002 | } | |
32003 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32004 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32005 | } | |
32006 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32007 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32008 | } | |
32009 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32010 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32011 | } | |
32012 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32013 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32014 | } | |
2f4c0a16 RD |
32015 | 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}}; |
32016 | 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}}; | |
32017 | 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}}; | |
32018 | 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}}; | |
32019 | 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}}; | |
32020 | 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}}; | |
32021 | 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}}; | |
32022 | 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}}; | |
32023 | 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}}; | |
32024 | 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}}; | |
32025 | 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}}; | |
32026 | 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}}; | |
32027 | 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}}; | |
32028 | 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}}; | |
32029 | 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}}; | |
32030 | 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}}; | |
32031 | 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}}; | |
32032 | 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}}; | |
32033 | 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}}; | |
32034 | 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}}; | |
32035 | 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}}; | |
32036 | 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}}; | |
32037 | 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}}; | |
32038 | 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}}; | |
32039 | 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}}; | |
32040 | 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}}; | |
32041 | 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}}; | |
32042 | 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}}; | |
32043 | 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}}; | |
32044 | 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}}; | |
32045 | 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}}; | |
32046 | 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}}; | |
32047 | 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}}; | |
32048 | 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}}; | |
32049 | 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}}; | |
32050 | 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}}; | |
32051 | 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}}; | |
32052 | 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}}; | |
32053 | 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}}; | |
32054 | 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}}; | |
32055 | 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}}; | |
32056 | 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}}; | |
32057 | 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}}; | |
32058 | 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}}; | |
32059 | 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}}; | |
32060 | 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}}; | |
32061 | 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}}; | |
32062 | 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}}; | |
32063 | 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}}; | |
32064 | 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}}; | |
32065 | 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}}; | |
32066 | 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}}; | |
32067 | 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}}; | |
32068 | 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}}; | |
32069 | 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}}; | |
32070 | 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}}; | |
32071 | 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}}; | |
32072 | 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}}; | |
32073 | 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}}; | |
32074 | 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}}; | |
32075 | 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}}; | |
32076 | 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}}; | |
32077 | 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}}; | |
32078 | 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}}; | |
32079 | 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}}; | |
32080 | 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}}; | |
32081 | 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}}; | |
32082 | 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}}; | |
32083 | 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}}; | |
32084 | 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}}; | |
32085 | 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}}; | |
32086 | 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}}; | |
32087 | 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}}; | |
32088 | 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}}; | |
32089 | 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}}; | |
32090 | 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}}; | |
32091 | 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}}; | |
32092 | 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}}; | |
32093 | 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}}; | |
32094 | 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}}; | |
32095 | 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}}; | |
32096 | 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}}; | |
32097 | 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}}; | |
32098 | 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 |
32099 | |
32100 | static swig_type_info *swig_types_initial[] = { | |
32101 | _swigt__p_wxTextUrlEvent, | |
32102 | _swigt__p_wxBookCtrlEvent, | |
32103 | _swigt__p_wxSizer, | |
d14a1e28 RD |
32104 | _swigt__p_wxCheckBox, |
32105 | _swigt__p_wxPyTreeCtrl, | |
32106 | _swigt__p_wxEvent, | |
32107 | _swigt__p_wxGenericDirCtrl, | |
32108 | _swigt__p_bool, | |
32109 | _swigt__p_wxPyTreeItemData, | |
32110 | _swigt__p_wxItemContainer, | |
32111 | _swigt__p_wxDirFilterListCtrl, | |
32112 | _swigt__p_wxPyListCtrl, | |
32113 | _swigt__p_wxStaticLine, | |
32114 | _swigt__p_wxControl, | |
32115 | _swigt__p_wxPyControl, | |
32116 | _swigt__p_wxGauge, | |
32117 | _swigt__p_wxToolBarBase, | |
32118 | _swigt__p_wxFont, | |
32119 | _swigt__p_wxToggleButton, | |
32120 | _swigt__p_wxRadioButton, | |
32121 | _swigt__p_wxChoice, | |
423f194a | 32122 | _swigt__p_wxMemoryDC, |
d14a1e28 | 32123 | _swigt__p_wxListItemAttr, |
58203fa6 | 32124 | _swigt__p_void, |
d14a1e28 RD |
32125 | _swigt__p_int, |
32126 | _swigt__p_wxSize, | |
423f194a | 32127 | _swigt__p_wxDC, |
d14a1e28 RD |
32128 | _swigt__p_wxListView, |
32129 | _swigt__p_wxIcon, | |
32130 | _swigt__p_wxTextCtrl, | |
32131 | _swigt__p_wxNotebook, | |
32132 | _swigt__p_wxNotifyEvent, | |
32133 | _swigt__p_wxArrayString, | |
32134 | _swigt__p_wxListbook, | |
32135 | _swigt__p_wxStaticBitmap, | |
32136 | _swigt__p_wxSlider, | |
32137 | _swigt__p_wxStaticBox, | |
32138 | _swigt__p_wxArrayInt, | |
32139 | _swigt__p_wxContextHelp, | |
32140 | _swigt__p_long, | |
32141 | _swigt__p_wxEvtHandler, | |
32142 | _swigt__p_wxListEvent, | |
32143 | _swigt__p_wxListBox, | |
32144 | _swigt__p_wxCheckListBox, | |
32145 | _swigt__p_wxBookCtrl, | |
32146 | _swigt__p_wxSpinButton, | |
32147 | _swigt__p_wxButton, | |
32148 | _swigt__p_wxBitmapButton, | |
32149 | _swigt__p_wxRect, | |
32150 | _swigt__p_wxContextHelpButton, | |
32151 | _swigt__p_wxRadioBox, | |
32152 | _swigt__p_wxScrollBar, | |
8edf1c75 | 32153 | _swigt__p_char, |
d14a1e28 RD |
32154 | _swigt__p_wxTreeItemId, |
32155 | _swigt__p_wxComboBox, | |
32156 | _swigt__p_wxHelpEvent, | |
32157 | _swigt__p_wxListItem, | |
32158 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 32159 | _swigt__p_wxSpinEvent, |
423f194a | 32160 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
32161 | _swigt__p_wxSpinCtrl, |
32162 | _swigt__p_wxImageList, | |
32163 | _swigt__p_wxHelpProvider, | |
32164 | _swigt__p_wxTextAttr, | |
32165 | _swigt__p_wxSimpleHelpProvider, | |
32166 | _swigt__p_wxPoint, | |
32167 | _swigt__p_wxListbookEvent, | |
32168 | _swigt__p_wxNotebookEvent, | |
32169 | _swigt__p_wxObject, | |
423f194a | 32170 | _swigt__p_wxCursor, |
d14a1e28 RD |
32171 | _swigt__p_wxKeyEvent, |
32172 | _swigt__p_wxWindow, | |
32173 | _swigt__p_wxString, | |
32174 | _swigt__p_wxBitmap, | |
32175 | _swigt__p_wxTreeEvent, | |
32176 | _swigt__p_wxMouseEvent, | |
32177 | _swigt__p_wxCommandEvent, | |
32178 | _swigt__p_wxStaticText, | |
32179 | _swigt__p_wxControlWithItems, | |
32180 | _swigt__p_wxToolBarToolBase, | |
32181 | _swigt__p_wxColour, | |
32182 | _swigt__p_wxToolBar, | |
32183 | _swigt__p_wxBookCtrlSizer, | |
32184 | _swigt__p_wxValidator, | |
32185 | 0 | |
32186 | }; | |
32187 | ||
32188 | ||
32189 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32190 | ||
32191 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
32192 | {0}}; |
32193 | ||
32194 | #ifdef __cplusplus | |
32195 | } | |
32196 | #endif | |
32197 | ||
32198 | #ifdef __cplusplus | |
32199 | extern "C" | |
32200 | #endif | |
32201 | SWIGEXPORT(void) SWIG_init(void) { | |
32202 | static PyObject *SWIG_globals = 0; | |
32203 | static int typeinit = 0; | |
32204 | PyObject *m, *d; | |
32205 | int i; | |
32206 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
32207 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
32208 | d = PyModule_GetDict(m); | |
32209 | ||
32210 | if (!typeinit) { | |
32211 | for (i = 0; swig_types_initial[i]; i++) { | |
32212 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
32213 | } | |
32214 | typeinit = 1; | |
32215 | } | |
32216 | SWIG_InstallConstants(d,swig_const_table); | |
32217 | ||
d03fd34d RD |
32218 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
32219 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
2f4c0a16 RD |
32220 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
32221 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
32222 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
32223 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
32224 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
32225 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 32226 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
2f4c0a16 RD |
32227 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
32228 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
32229 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
32230 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
32231 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
32232 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
32233 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
32234 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
32235 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
2f4c0a16 RD |
32236 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
32237 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
32238 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
32239 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
32240 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
32241 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
32242 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
32243 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
32244 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
2f4c0a16 RD |
32245 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
32246 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
32247 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
32248 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
32249 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
32250 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
32251 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
32252 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
32253 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
32254 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
32255 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
32256 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
32257 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
32258 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
32259 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
32260 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
32261 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
32262 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
32263 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
32264 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
32265 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
32266 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
32267 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
32268 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
32269 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
32270 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
32271 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
32272 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
32273 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
32274 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
32275 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
32276 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
32277 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
32278 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
32279 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
32280 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
32281 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
32282 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
32283 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
32284 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
32285 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
32286 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
32287 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
32288 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
32289 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
32290 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
32291 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
32292 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
2f4c0a16 RD |
32293 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
32294 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
32295 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
32296 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 32297 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
32298 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
32299 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
32300 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
32301 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 32302 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 32303 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
2f4c0a16 RD |
32304 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
32305 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
32306 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
32307 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
32308 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
32309 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
32310 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
32311 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
32312 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
32313 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
32314 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
32315 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32316 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
32317 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
32318 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
32319 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
32320 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
32321 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
32322 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
32323 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32324 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
32325 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
32326 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
32327 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
32328 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
32329 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
32330 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
32331 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
32332 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
32333 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
32334 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
32335 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
32336 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
32337 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 32338 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
2f4c0a16 RD |
32339 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
32340 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
32341 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
32342 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
32343 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
32344 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
32345 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
32346 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
32347 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
32348 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
32349 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
32350 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
32351 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
32352 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
32353 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
32354 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
32355 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
32356 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
32357 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
32358 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
32359 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
32360 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
32361 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
32362 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
32363 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
32364 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
32365 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
32366 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
32367 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
32368 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
32369 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
32370 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
32371 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
32372 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
32373 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
32374 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
32375 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
32376 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
32377 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
32378 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
32379 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
32380 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
32381 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
32382 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
32383 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
32384 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
32385 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
32386 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
32387 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
32388 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
32389 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
32390 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
32391 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
32392 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
32393 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
32394 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
32395 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
32396 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
32397 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
32398 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
32399 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
32400 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
32401 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
32402 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
32403 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
32404 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
32405 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
32406 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
32407 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
32408 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
32409 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
32410 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
32411 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
32412 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
32413 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
32414 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
32415 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
32416 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
32417 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
32418 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
32419 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
32420 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
32421 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
32422 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
32423 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
32424 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
32425 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
32426 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
32427 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
32428 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
32429 | ||
32430 | // Map renamed classes back to their common name for OOR | |
32431 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
32432 | ||
d03fd34d | 32433 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
2f4c0a16 RD |
32434 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
32435 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
32436 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
32437 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
32438 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
32439 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
32440 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
32441 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
32442 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
32443 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
32444 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
32445 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
32446 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
32447 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
32448 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
32449 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
32450 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
32451 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
32452 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
32453 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
32454 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
32455 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
32456 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
32457 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
32458 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
32459 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
32460 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
32461 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
32462 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
32463 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
32464 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
32465 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
32466 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
32467 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
32468 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
32469 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
32470 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
32471 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
32472 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
32473 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
32474 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
32475 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
32476 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
32477 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
32478 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
32479 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
32480 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
32481 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
32482 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
32483 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
32484 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
32485 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
32486 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
32487 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 32488 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
32489 | |
32490 | // Map renamed classes back to their common name for OOR | |
32491 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
32492 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
32493 | ||
d03fd34d | 32494 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
2f4c0a16 RD |
32495 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
32496 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
32497 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
32498 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
32499 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
32500 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
32501 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
32502 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
32503 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
32504 | |
32505 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
32506 | ||
d14a1e28 RD |
32507 | } |
32508 |