]>
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 | { | |
69223c70 RD |
389 | if (PyNumber_Check(obj)) |
390 | return PyInt_AsLong(obj); | |
391 | else { | |
392 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
393 | obj->ob_type->tp_name); | |
394 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
395 | Py_DECREF(errmsg); | |
396 | return 0; | |
397 | } | |
2f4c0a16 RD |
398 | } |
399 | ||
400 | ||
401 | #if INT_MAX != LONG_MAX | |
402 | SWIGSTATICINLINE(int) | |
403 | SWIG_AsInt(PyObject *obj) | |
8edf1c75 | 404 | { |
2f4c0a16 RD |
405 | return swig_numeric_cast(int, |
406 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
407 | "int", INT_MIN, INT_MAX)); | |
8edf1c75 | 408 | } |
2f4c0a16 RD |
409 | #else |
410 | #define SWIG_AsInt SWIG_AsLong | |
411 | #endif | |
8edf1c75 RD |
412 | |
413 | ||
2f4c0a16 RD |
414 | SWIGSTATICINLINE(int) |
415 | SWIG_CheckInt(PyObject* obj) | |
8edf1c75 | 416 | { |
2f4c0a16 RD |
417 | SWIG_AsInt(obj); |
418 | if (PyErr_Occurred()) { | |
419 | PyErr_Clear(); | |
420 | return 0; | |
421 | } else { | |
422 | return 1; | |
423 | } | |
424 | } | |
425 | ||
426 | ||
427 | SWIGSTATICINLINE(int) | |
428 | SWIG_CheckLong(PyObject* obj) | |
429 | { | |
430 | SWIG_AsLong(obj); | |
431 | if (PyErr_Occurred()) { | |
432 | PyErr_Clear(); | |
433 | return 0; | |
434 | } else { | |
435 | return 1; | |
436 | } | |
8edf1c75 RD |
437 | } |
438 | ||
d03fd34d | 439 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
8edf1c75 | 440 | |
2f4c0a16 RD |
441 | SWIGSTATICINLINE(bool) |
442 | SWIG_AsBool(PyObject *obj) | |
8edf1c75 RD |
443 | { |
444 | return PyObject_IsTrue(obj) ? true : false; | |
445 | } | |
446 | ||
2f4c0a16 RD |
447 | |
448 | SWIGSTATICINLINE(int) | |
449 | SWIG_CheckBool(PyObject* obj) | |
450 | { | |
451 | SWIG_AsBool(obj); | |
452 | if (PyErr_Occurred()) { | |
453 | PyErr_Clear(); | |
454 | return 0; | |
455 | } else { | |
456 | return 1; | |
457 | } | |
458 | } | |
459 | ||
d03fd34d RD |
460 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
461 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
462 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
463 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
464 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
465 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
466 | |
467 | #include <wx/checklst.h> | |
468 | ||
d14a1e28 | 469 | |
d03fd34d | 470 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
471 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
472 | if (clientData) { | |
473 | wxPyClientData* data = new wxPyClientData(clientData); | |
474 | self->Insert(item, pos, data); | |
475 | } else | |
476 | self->Insert(item, pos); | |
477 | } | |
478 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
479 | wxArrayInt lst; | |
480 | self->GetSelections(lst); | |
481 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
482 | for(size_t i=0; i<lst.GetCount(); i++) { | |
483 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
484 | } | |
485 | return tup; | |
486 | } | |
0ffb2aa6 RD |
487 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
488 | #ifdef __WXMSW__ | |
489 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
490 | self->GetItem(item)->SetTextColour(c); | |
491 | #endif | |
492 | } | |
493 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
494 | #ifdef __WXMSW__ | |
495 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
496 | self->GetItem(item)->SetBackgroundColour(c); | |
497 | #endif | |
498 | } | |
499 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
500 | #ifdef __WXMSW__ | |
501 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
502 | self->GetItem(item)->SetFont(f); | |
503 | #endif | |
504 | } | |
d03fd34d | 505 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
506 | |
507 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
508 | PyObject* o2; | |
509 | PyObject* o3; | |
510 | ||
511 | if (!target) { | |
512 | target = o; | |
513 | } else if (target == Py_None) { | |
514 | Py_DECREF(Py_None); | |
515 | target = o; | |
516 | } else { | |
517 | if (!PyTuple_Check(target)) { | |
518 | o2 = target; | |
519 | target = PyTuple_New(1); | |
520 | PyTuple_SetItem(target, 0, o2); | |
521 | } | |
522 | o3 = PyTuple_New(1); | |
523 | PyTuple_SetItem(o3, 0, o); | |
524 | ||
525 | o2 = target; | |
526 | target = PySequence_Concat(o2, o3); | |
527 | Py_DECREF(o2); | |
528 | Py_DECREF(o3); | |
529 | } | |
530 | return target; | |
531 | } | |
532 | ||
2f4c0a16 RD |
533 | |
534 | SWIGSTATICINLINE(unsigned long) | |
535 | SWIG_AsUnsignedLong(PyObject * obj) | |
536 | { | |
537 | if (PyLong_Check(obj)) { | |
538 | return PyLong_AsUnsignedLong(obj); | |
539 | } else { | |
69223c70 | 540 | long i = SWIG_AsLong(obj); |
2f4c0a16 | 541 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 542 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
2f4c0a16 RD |
543 | } |
544 | return i; | |
545 | } | |
546 | } | |
547 | ||
548 | ||
549 | SWIGSTATICINLINE(int) | |
550 | SWIG_CheckUnsignedLong(PyObject* obj) | |
551 | { | |
552 | SWIG_AsUnsignedLong(obj); | |
553 | if (PyErr_Occurred()) { | |
554 | PyErr_Clear(); | |
555 | return 0; | |
556 | } else { | |
557 | return 1; | |
558 | } | |
559 | } | |
560 | ||
d14a1e28 RD |
561 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
562 | self->AppendText(text); | |
563 | } | |
564 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
565 | return self->GetValue().Mid(from, to - from); | |
566 | } | |
d03fd34d RD |
567 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
568 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
eb9b6107 | 569 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
d03fd34d RD |
570 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
571 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
572 | |
573 | #include <wx/slider.h> | |
574 | ||
d14a1e28 | 575 | |
d03fd34d | 576 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
eb9b6107 | 577 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 578 | |
2f4c0a16 RD |
579 | #if !wxUSE_TOGGLEBTN |
580 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
581 | |
582 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
583 | ||
584 | class wxToggleButton : public wxControl | |
585 | { | |
586 | public: | |
587 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
588 | const wxPoint&, const wxSize&, long, | |
589 | const wxValidator&, const wxString&) | |
cbd72d4f | 590 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
591 | |
592 | wxToggleButton() | |
cbd72d4f | 593 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
594 | }; |
595 | #endif | |
596 | ||
d03fd34d | 597 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
8edf1c75 | 598 | |
2f4c0a16 RD |
599 | SWIGSTATICINLINE(PyObject* ) |
600 | SWIG_FromUnsignedLong(unsigned long value) | |
8edf1c75 | 601 | { |
2f4c0a16 RD |
602 | return (value > LONG_MAX) ? |
603 | PyLong_FromUnsignedLong(value) | |
604 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
8edf1c75 RD |
605 | } |
606 | ||
d03fd34d | 607 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
608 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
609 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
610 | if (udata) { | |
611 | Py_INCREF(udata->m_obj); | |
612 | return udata->m_obj; | |
613 | } else { | |
614 | Py_INCREF(Py_None); | |
615 | return Py_None; | |
616 | } | |
617 | } | |
618 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
619 | self->SetClientData(new wxPyUserData(clientData)); | |
620 | } | |
621 | 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){ | |
622 | wxPyUserData* udata = NULL; | |
623 | if (clientData && clientData != Py_None) | |
624 | udata = new wxPyUserData(clientData); | |
625 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
626 | shortHelp, longHelp, udata); | |
627 | } | |
628 | 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){ | |
629 | wxPyUserData* udata = NULL; | |
630 | if (clientData && clientData != Py_None) | |
631 | udata = new wxPyUserData(clientData); | |
632 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
633 | shortHelp, longHelp, udata); | |
634 | } | |
635 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
636 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
637 | if (udata) { | |
638 | Py_INCREF(udata->m_obj); | |
639 | return udata->m_obj; | |
640 | } else { | |
641 | Py_INCREF(Py_None); | |
642 | return Py_None; | |
643 | } | |
644 | } | |
645 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
646 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
647 | } | |
648 | ||
649 | #include <wx/listctrl.h> | |
650 | ||
d14a1e28 | 651 | |
eb9b6107 | 652 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
653 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
654 | // Python aware sorting function for wxPyListCtrl | |
655 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
656 | int retval = 0; | |
657 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 658 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
659 | |
660 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
661 | PyObject* result = PyEval_CallObject(func, args); | |
662 | Py_DECREF(args); | |
663 | if (result) { | |
664 | retval = PyInt_AsLong(result); | |
665 | Py_DECREF(result); | |
666 | } | |
667 | ||
4f89f6a3 | 668 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
669 | return retval; |
670 | } | |
671 | ||
672 | // C++ Version of a Python aware class | |
673 | class wxPyListCtrl : public wxListCtrl { | |
674 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
675 | public: | |
676 | wxPyListCtrl() : wxListCtrl() {} | |
677 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
678 | const wxPoint& pos, | |
679 | const wxSize& size, | |
680 | long style, | |
681 | const wxValidator& validator, | |
682 | const wxString& name) : | |
683 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
684 | ||
685 | bool Create(wxWindow* parent, wxWindowID id, | |
686 | const wxPoint& pos, | |
687 | const wxSize& size, | |
688 | long style, | |
689 | const wxValidator& validator, | |
690 | const wxString& name) { | |
691 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
692 | } | |
693 | ||
694 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
695 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
696 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
697 | ||
698 | PYPRIVATE; | |
699 | }; | |
700 | ||
701 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
702 | ||
703 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
704 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
705 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
706 | ||
707 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
708 | wxListItem item; | |
709 | item.SetMask( wxLIST_MASK_STATE | | |
710 | wxLIST_MASK_TEXT | | |
711 | wxLIST_MASK_IMAGE | | |
712 | wxLIST_MASK_DATA | | |
713 | wxLIST_SET_ITEM | | |
714 | wxLIST_MASK_WIDTH | | |
715 | wxLIST_MASK_FORMAT | |
716 | ); | |
717 | if (self->GetColumn(col, item)) | |
718 | return new wxListItem(item); | |
719 | else | |
720 | return NULL; | |
721 | } | |
722 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
723 | wxListItem* info = new wxListItem; | |
724 | info->m_itemId = itemId; | |
725 | info->m_col = col; | |
726 | info->m_mask = 0xFFFF; | |
727 | self->GetItem(*info); | |
728 | return info; | |
729 | } | |
730 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
731 | wxPoint pos; | |
732 | self->GetItemPosition(item, pos); | |
733 | return pos; | |
734 | } | |
735 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
736 | wxRect rect; | |
737 | self->GetItemRect(item, rect, code); | |
738 | return rect; | |
739 | } | |
740 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
741 | if (!PyCallable_Check(func)) | |
423f194a | 742 | return False; |
d14a1e28 RD |
743 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
744 | } | |
745 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
746 | ||
747 | return self; | |
748 | ||
749 | ||
750 | ||
751 | } | |
752 | ||
753 | #include <wx/treectrl.h> | |
754 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 755 | |
eb9b6107 | 756 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
328fcd84 RD |
757 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
758 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
759 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
760 | // C++ version of Python aware wxTreeCtrl | |
761 | class wxPyTreeCtrl : public wxTreeCtrl { | |
762 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
763 | public: | |
764 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
765 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
766 | const wxPoint& pos, | |
767 | const wxSize& size, | |
768 | long style, | |
769 | const wxValidator& validator, | |
770 | const wxString& name) : | |
771 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
772 | ||
773 | bool Create(wxWindow *parent, wxWindowID id, | |
774 | const wxPoint& pos, | |
775 | const wxSize& size, | |
776 | long style, | |
777 | const wxValidator& validator, | |
778 | const wxString& name) { | |
779 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
780 | } | |
781 | ||
782 | ||
783 | int OnCompareItems(const wxTreeItemId& item1, | |
784 | const wxTreeItemId& item2) { | |
785 | int rval = 0; | |
786 | bool found; | |
4f89f6a3 | 787 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 788 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
423f194a RD |
789 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
790 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
791 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
792 | Py_DECREF(o1); | |
793 | Py_DECREF(o2); | |
794 | } | |
4f89f6a3 | 795 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
796 | if (! found) |
797 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
798 | return rval; | |
799 | } | |
800 | PYPRIVATE; | |
801 | }; | |
802 | ||
803 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
804 | ||
805 | ||
8edf1c75 | 806 | |
2f4c0a16 RD |
807 | #if UINT_MAX < LONG_MAX |
808 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
809 | #else | |
810 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
811 | #endif | |
812 | ||
813 | ||
814 | SWIGSTATICINLINE(unsigned long) | |
815 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
816 | unsigned long max_value) | |
817 | { | |
818 | if (!PyErr_Occurred()) { | |
819 | if (value > max_value) { | |
820 | PyObject *err = | |
821 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
822 | value, type, max_value); | |
823 | PyErr_SetObject(PyExc_OverflowError, err); | |
824 | Py_DECREF(err); | |
825 | } | |
826 | } | |
827 | return value; | |
828 | } | |
8edf1c75 RD |
829 | |
830 | ||
2f4c0a16 RD |
831 | #if UINT_MAX != ULONG_MAX |
832 | SWIGSTATICINLINE(unsigned int) | |
833 | SWIG_AsUnsignedInt(PyObject *obj) | |
8edf1c75 | 834 | { |
2f4c0a16 RD |
835 | return swig_numeric_cast(unsigned int, |
836 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
837 | "unsigned int", UINT_MAX)); | |
838 | } | |
839 | #else | |
840 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
841 | #endif | |
842 | ||
843 | ||
844 | SWIGSTATICINLINE(int) | |
845 | SWIG_CheckUnsignedInt(PyObject* obj) | |
846 | { | |
847 | SWIG_AsUnsignedInt(obj); | |
848 | if (PyErr_Occurred()) { | |
849 | PyErr_Clear(); | |
850 | return 0; | |
851 | } else { | |
852 | return 1; | |
853 | } | |
8edf1c75 RD |
854 | } |
855 | ||
d14a1e28 RD |
856 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
857 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
858 | if (data == NULL) { | |
859 | data = new wxPyTreeItemData(); | |
860 | data->SetId(item); // set the id | |
861 | self->SetItemData(item, data); | |
862 | } | |
863 | return data; | |
864 | } | |
865 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
866 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
867 | if (data == NULL) { | |
868 | data = new wxPyTreeItemData(); | |
869 | data->SetId(item); // set the id | |
870 | self->SetItemData(item, data); | |
871 | } | |
872 | return data->GetData(); | |
873 | } | |
874 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
875 | data->SetId(item); // set the id | |
876 | self->SetItemData(item, data); | |
877 | } | |
878 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
879 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
880 | if (data == NULL) { | |
881 | data = new wxPyTreeItemData(obj); | |
882 | data->SetId(item); // set the id | |
883 | self->SetItemData(item, data); | |
884 | } else | |
885 | data->SetData(obj); | |
886 | } | |
887 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 888 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
889 | PyObject* rval = PyList_New(0); |
890 | wxArrayTreeItemIds array; | |
891 | size_t num, x; | |
892 | num = self->GetSelections(array); | |
893 | for (x=0; x < num; x++) { | |
894 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
423f194a | 895 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 RD |
896 | PyList_Append(rval, item); |
897 | } | |
4f89f6a3 | 898 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
899 | return rval; |
900 | } | |
901 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
902 | void* cookie = 0; |
903 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 904 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 905 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
906 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
907 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 908 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
909 | return tup; |
910 | } | |
58203fa6 RD |
911 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
912 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 913 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 914 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
915 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
916 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 917 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
918 | return tup; |
919 | } | |
920 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
921 | wxRect rect; | |
922 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 923 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 924 | wxRect* r = new wxRect(rect); |
423f194a | 925 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 926 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
927 | return val; |
928 | } | |
929 | else | |
930 | RETURN_NONE(); | |
931 | } | |
d03fd34d | 932 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
933 | // C++ version of Python aware wxControl |
934 | class wxPyControl : public wxControl | |
935 | { | |
936 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
937 | public: | |
938 | wxPyControl() : wxControl() {} | |
939 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
940 | const wxPoint& pos = wxDefaultPosition, | |
941 | const wxSize& size = wxDefaultSize, | |
942 | long style = 0, | |
943 | const wxValidator& validator=wxDefaultValidator, | |
944 | const wxString& name = wxPyControlNameStr) | |
945 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
946 | ||
947 | ||
948 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
949 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
950 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
951 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
952 | ||
953 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
954 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
955 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
956 | ||
957 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
958 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
959 | ||
960 | DEC_PYCALLBACK__(InitDialog); | |
961 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
962 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
963 | DEC_PYCALLBACK_BOOL_(Validate); | |
964 | ||
965 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
966 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
967 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
968 | ||
969 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
970 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
971 | ||
fe763115 | 972 | DEC_PYCALLBACK_BOOL_(ShouldInheritColours); |
e35a624d | 973 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
fe763115 | 974 | |
d14a1e28 RD |
975 | PYPRIVATE; |
976 | }; | |
977 | ||
978 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
979 | ||
980 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
981 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
982 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
983 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
984 | ||
985 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
986 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
987 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
988 | ||
989 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
990 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
991 | ||
992 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
993 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
994 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
995 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
996 | ||
997 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
998 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
999 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1000 | ||
1001 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1002 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1003 | ||
fe763115 | 1004 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, ShouldInheritColours); |
e35a624d | 1005 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
d14a1e28 RD |
1006 | |
1007 | ||
1008 | ||
1009 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
423f194a RD |
1010 | |
1011 | #include <wx/generic/dragimgg.h> | |
1012 | ||
d14a1e28 RD |
1013 | #ifdef __cplusplus |
1014 | extern "C" { | |
1015 | #endif | |
2f4c0a16 | 1016 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
1017 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); |
1018 | return 1; | |
1019 | } | |
1020 | ||
1021 | ||
1022 | static PyObject *_wrap_ButtonNameStr_get() { | |
1023 | PyObject *pyobj; | |
1024 | ||
1025 | { | |
1026 | #if wxUSE_UNICODE | |
1027 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1028 | #else | |
1029 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1030 | #endif | |
1031 | } | |
1032 | return pyobj; | |
1033 | } | |
1034 | ||
1035 | ||
d14a1e28 RD |
1036 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1037 | PyObject *resultobj; | |
1038 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1039 | int arg2 ; |
d14a1e28 RD |
1040 | wxString *arg3 = 0 ; |
1041 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1042 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1043 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1044 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1045 | long arg6 = (long) 0 ; | |
1046 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1047 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1048 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1049 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1050 | wxButton *result; | |
423f194a | 1051 | bool temp3 = False ; |
d14a1e28 RD |
1052 | wxPoint temp4 ; |
1053 | wxSize temp5 ; | |
423f194a | 1054 | bool temp8 = False ; |
d14a1e28 | 1055 | PyObject * obj0 = 0 ; |
8edf1c75 | 1056 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1057 | PyObject * obj2 = 0 ; |
1058 | PyObject * obj3 = 0 ; | |
1059 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1060 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1061 | PyObject * obj6 = 0 ; |
1062 | PyObject * obj7 = 0 ; | |
1063 | char *kwnames[] = { | |
1064 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1065 | }; | |
1066 | ||
8edf1c75 | 1067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1070 | arg2 = (int) SWIG_AsInt(obj1); | |
1071 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1072 | { |
1073 | arg3 = wxString_in_helper(obj2); | |
1074 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1075 | temp3 = True; |
d14a1e28 RD |
1076 | } |
1077 | if (obj3) { | |
1078 | { | |
1079 | arg4 = &temp4; | |
1080 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1081 | } | |
1082 | } | |
1083 | if (obj4) { | |
1084 | { | |
1085 | arg5 = &temp5; | |
1086 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1087 | } | |
1088 | } | |
8edf1c75 | 1089 | if (obj5) { |
2f4c0a16 RD |
1090 | arg6 = (long) SWIG_AsLong(obj5); |
1091 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1092 | } |
d14a1e28 | 1093 | if (obj6) { |
2f4c0a16 RD |
1094 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1095 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1096 | SWIG_fail; | |
d14a1e28 | 1097 | if (arg7 == NULL) { |
2f4c0a16 RD |
1098 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1099 | SWIG_fail; | |
d14a1e28 RD |
1100 | } |
1101 | } | |
1102 | if (obj7) { | |
1103 | { | |
1104 | arg8 = wxString_in_helper(obj7); | |
1105 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1106 | temp8 = True; |
d14a1e28 RD |
1107 | } |
1108 | } | |
1109 | { | |
1110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1111 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1112 | ||
1113 | wxPyEndAllowThreads(__tstate); | |
1114 | if (PyErr_Occurred()) SWIG_fail; | |
1115 | } | |
1116 | { | |
1117 | resultobj = wxPyMake_wxObject(result); | |
1118 | } | |
1119 | { | |
1120 | if (temp3) | |
1121 | delete arg3; | |
1122 | } | |
1123 | { | |
1124 | if (temp8) | |
1125 | delete arg8; | |
1126 | } | |
1127 | return resultobj; | |
1128 | fail: | |
1129 | { | |
1130 | if (temp3) | |
1131 | delete arg3; | |
1132 | } | |
1133 | { | |
1134 | if (temp8) | |
1135 | delete arg8; | |
1136 | } | |
1137 | return NULL; | |
1138 | } | |
1139 | ||
1140 | ||
1141 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1142 | PyObject *resultobj; | |
1143 | wxButton *result; | |
1144 | char *kwnames[] = { | |
1145 | NULL | |
1146 | }; | |
1147 | ||
1148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1149 | { | |
1150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1151 | result = (wxButton *)new wxButton(); | |
1152 | ||
1153 | wxPyEndAllowThreads(__tstate); | |
1154 | if (PyErr_Occurred()) SWIG_fail; | |
1155 | } | |
1156 | { | |
1157 | resultobj = wxPyMake_wxObject(result); | |
1158 | } | |
1159 | return resultobj; | |
1160 | fail: | |
1161 | return NULL; | |
1162 | } | |
1163 | ||
1164 | ||
1165 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1166 | PyObject *resultobj; | |
1167 | wxButton *arg1 = (wxButton *) 0 ; | |
1168 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1169 | int arg3 ; |
d14a1e28 RD |
1170 | wxString *arg4 = 0 ; |
1171 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1172 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1173 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1174 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1175 | long arg7 = (long) 0 ; | |
1176 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1177 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1178 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1179 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1180 | bool result; | |
423f194a | 1181 | bool temp4 = False ; |
d14a1e28 RD |
1182 | wxPoint temp5 ; |
1183 | wxSize temp6 ; | |
423f194a | 1184 | bool temp9 = False ; |
d14a1e28 RD |
1185 | PyObject * obj0 = 0 ; |
1186 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1187 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1188 | PyObject * obj3 = 0 ; |
1189 | PyObject * obj4 = 0 ; | |
1190 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1191 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1192 | PyObject * obj7 = 0 ; |
1193 | PyObject * obj8 = 0 ; | |
1194 | char *kwnames[] = { | |
1195 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1196 | }; | |
1197 | ||
8edf1c75 | 1198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1201 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1202 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1203 | arg3 = (int) SWIG_AsInt(obj2); | |
1204 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1205 | { |
1206 | arg4 = wxString_in_helper(obj3); | |
1207 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 1208 | temp4 = True; |
d14a1e28 RD |
1209 | } |
1210 | if (obj4) { | |
1211 | { | |
1212 | arg5 = &temp5; | |
1213 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1214 | } | |
1215 | } | |
1216 | if (obj5) { | |
1217 | { | |
1218 | arg6 = &temp6; | |
1219 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1220 | } | |
1221 | } | |
8edf1c75 | 1222 | if (obj6) { |
2f4c0a16 RD |
1223 | arg7 = (long) SWIG_AsLong(obj6); |
1224 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1225 | } |
d14a1e28 | 1226 | if (obj7) { |
2f4c0a16 RD |
1227 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1228 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1229 | SWIG_fail; | |
d14a1e28 | 1230 | if (arg8 == NULL) { |
2f4c0a16 RD |
1231 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1232 | SWIG_fail; | |
d14a1e28 RD |
1233 | } |
1234 | } | |
1235 | if (obj8) { | |
1236 | { | |
1237 | arg9 = wxString_in_helper(obj8); | |
1238 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1239 | temp9 = True; |
d14a1e28 RD |
1240 | } |
1241 | } | |
1242 | { | |
1243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1244 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1245 | ||
1246 | wxPyEndAllowThreads(__tstate); | |
1247 | if (PyErr_Occurred()) SWIG_fail; | |
1248 | } | |
4f89f6a3 RD |
1249 | { |
1250 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1251 | } | |
d14a1e28 RD |
1252 | { |
1253 | if (temp4) | |
1254 | delete arg4; | |
1255 | } | |
1256 | { | |
1257 | if (temp9) | |
1258 | delete arg9; | |
1259 | } | |
1260 | return resultobj; | |
1261 | fail: | |
1262 | { | |
1263 | if (temp4) | |
1264 | delete arg4; | |
1265 | } | |
1266 | { | |
1267 | if (temp9) | |
1268 | delete arg9; | |
1269 | } | |
1270 | return NULL; | |
1271 | } | |
1272 | ||
1273 | ||
1274 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1275 | PyObject *resultobj; | |
1276 | wxButton *arg1 = (wxButton *) 0 ; | |
1277 | PyObject * obj0 = 0 ; | |
1278 | char *kwnames[] = { | |
1279 | (char *) "self", NULL | |
1280 | }; | |
1281 | ||
1282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1283 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1284 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1285 | { |
1286 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1287 | (arg1)->SetDefault(); | |
1288 | ||
1289 | wxPyEndAllowThreads(__tstate); | |
1290 | if (PyErr_Occurred()) SWIG_fail; | |
1291 | } | |
1292 | Py_INCREF(Py_None); resultobj = Py_None; | |
1293 | return resultobj; | |
1294 | fail: | |
1295 | return NULL; | |
1296 | } | |
1297 | ||
1298 | ||
d14a1e28 RD |
1299 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
1300 | PyObject *resultobj; | |
1301 | wxSize result; | |
1302 | char *kwnames[] = { | |
1303 | NULL | |
1304 | }; | |
1305 | ||
1306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1307 | { | |
1308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1309 | result = wxButton::GetDefaultSize(); | |
1310 | ||
1311 | wxPyEndAllowThreads(__tstate); | |
1312 | if (PyErr_Occurred()) SWIG_fail; | |
1313 | } | |
1314 | { | |
1315 | wxSize * resultptr; | |
1316 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 1317 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1318 | } |
1319 | return resultobj; | |
1320 | fail: | |
1321 | return NULL; | |
1322 | } | |
1323 | ||
1324 | ||
1325 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { | |
1326 | PyObject *obj; | |
1327 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1328 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1329 | Py_INCREF(obj); | |
1330 | return Py_BuildValue((char *)""); | |
1331 | } | |
1332 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1333 | PyObject *resultobj; | |
1334 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1335 | int arg2 ; |
d14a1e28 RD |
1336 | wxBitmap *arg3 = 0 ; |
1337 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1338 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1339 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1340 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1341 | long arg6 = (long) wxBU_AUTODRAW ; | |
1342 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1343 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1344 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1345 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1346 | wxBitmapButton *result; | |
1347 | wxPoint temp4 ; | |
1348 | wxSize temp5 ; | |
423f194a | 1349 | bool temp8 = False ; |
d14a1e28 | 1350 | PyObject * obj0 = 0 ; |
8edf1c75 | 1351 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1352 | PyObject * obj2 = 0 ; |
1353 | PyObject * obj3 = 0 ; | |
1354 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1355 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1356 | PyObject * obj6 = 0 ; |
1357 | PyObject * obj7 = 0 ; | |
1358 | char *kwnames[] = { | |
1359 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1360 | }; | |
1361 | ||
8edf1c75 | 1362 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1363 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1364 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1365 | arg2 = (int) SWIG_AsInt(obj1); | |
1366 | if (PyErr_Occurred()) SWIG_fail; | |
1367 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1369 | SWIG_fail; | |
d14a1e28 | 1370 | if (arg3 == NULL) { |
2f4c0a16 RD |
1371 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1372 | SWIG_fail; | |
d14a1e28 RD |
1373 | } |
1374 | if (obj3) { | |
1375 | { | |
1376 | arg4 = &temp4; | |
1377 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1378 | } | |
1379 | } | |
1380 | if (obj4) { | |
1381 | { | |
1382 | arg5 = &temp5; | |
1383 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1384 | } | |
1385 | } | |
8edf1c75 | 1386 | if (obj5) { |
2f4c0a16 RD |
1387 | arg6 = (long) SWIG_AsLong(obj5); |
1388 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1389 | } |
d14a1e28 | 1390 | if (obj6) { |
2f4c0a16 RD |
1391 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1392 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1393 | SWIG_fail; | |
d14a1e28 | 1394 | if (arg7 == NULL) { |
2f4c0a16 RD |
1395 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1396 | SWIG_fail; | |
d14a1e28 RD |
1397 | } |
1398 | } | |
1399 | if (obj7) { | |
1400 | { | |
1401 | arg8 = wxString_in_helper(obj7); | |
1402 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1403 | temp8 = True; |
d14a1e28 RD |
1404 | } |
1405 | } | |
1406 | { | |
1407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1408 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1409 | ||
1410 | wxPyEndAllowThreads(__tstate); | |
1411 | if (PyErr_Occurred()) SWIG_fail; | |
1412 | } | |
1413 | { | |
1414 | resultobj = wxPyMake_wxObject(result); | |
1415 | } | |
1416 | { | |
1417 | if (temp8) | |
1418 | delete arg8; | |
1419 | } | |
1420 | return resultobj; | |
1421 | fail: | |
1422 | { | |
1423 | if (temp8) | |
1424 | delete arg8; | |
1425 | } | |
1426 | return NULL; | |
1427 | } | |
1428 | ||
1429 | ||
1430 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1431 | PyObject *resultobj; | |
1432 | wxBitmapButton *result; | |
1433 | char *kwnames[] = { | |
1434 | NULL | |
1435 | }; | |
1436 | ||
1437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1438 | { | |
1439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1440 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1441 | ||
1442 | wxPyEndAllowThreads(__tstate); | |
1443 | if (PyErr_Occurred()) SWIG_fail; | |
1444 | } | |
1445 | { | |
1446 | resultobj = wxPyMake_wxObject(result); | |
1447 | } | |
1448 | return resultobj; | |
1449 | fail: | |
1450 | return NULL; | |
1451 | } | |
1452 | ||
1453 | ||
1454 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1455 | PyObject *resultobj; | |
1456 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1457 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 1458 | int arg3 ; |
d14a1e28 RD |
1459 | wxBitmap *arg4 = 0 ; |
1460 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
1461 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1462 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1463 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1464 | long arg7 = (long) wxBU_AUTODRAW ; | |
1465 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1466 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1467 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1468 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1469 | bool result; | |
1470 | wxPoint temp5 ; | |
1471 | wxSize temp6 ; | |
423f194a | 1472 | bool temp9 = False ; |
d14a1e28 RD |
1473 | PyObject * obj0 = 0 ; |
1474 | PyObject * obj1 = 0 ; | |
8edf1c75 | 1475 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1476 | PyObject * obj3 = 0 ; |
1477 | PyObject * obj4 = 0 ; | |
1478 | PyObject * obj5 = 0 ; | |
8edf1c75 | 1479 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1480 | PyObject * obj7 = 0 ; |
1481 | PyObject * obj8 = 0 ; | |
1482 | char *kwnames[] = { | |
1483 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1484 | }; | |
1485 | ||
8edf1c75 | 1486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
1487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1489 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1491 | arg3 = (int) SWIG_AsInt(obj2); | |
1492 | if (PyErr_Occurred()) SWIG_fail; | |
1493 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1494 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1495 | SWIG_fail; | |
d14a1e28 | 1496 | if (arg4 == NULL) { |
2f4c0a16 RD |
1497 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1498 | SWIG_fail; | |
d14a1e28 RD |
1499 | } |
1500 | if (obj4) { | |
1501 | { | |
1502 | arg5 = &temp5; | |
1503 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1504 | } | |
1505 | } | |
1506 | if (obj5) { | |
1507 | { | |
1508 | arg6 = &temp6; | |
1509 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1510 | } | |
1511 | } | |
8edf1c75 | 1512 | if (obj6) { |
2f4c0a16 RD |
1513 | arg7 = (long) SWIG_AsLong(obj6); |
1514 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1515 | } |
d14a1e28 | 1516 | if (obj7) { |
2f4c0a16 RD |
1517 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1519 | SWIG_fail; | |
d14a1e28 | 1520 | if (arg8 == NULL) { |
2f4c0a16 RD |
1521 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1522 | SWIG_fail; | |
d14a1e28 RD |
1523 | } |
1524 | } | |
1525 | if (obj8) { | |
1526 | { | |
1527 | arg9 = wxString_in_helper(obj8); | |
1528 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 1529 | temp9 = True; |
d14a1e28 RD |
1530 | } |
1531 | } | |
1532 | { | |
1533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1534 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1535 | ||
1536 | wxPyEndAllowThreads(__tstate); | |
1537 | if (PyErr_Occurred()) SWIG_fail; | |
1538 | } | |
4f89f6a3 RD |
1539 | { |
1540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1541 | } | |
d14a1e28 RD |
1542 | { |
1543 | if (temp9) | |
1544 | delete arg9; | |
1545 | } | |
1546 | return resultobj; | |
1547 | fail: | |
1548 | { | |
1549 | if (temp9) | |
1550 | delete arg9; | |
1551 | } | |
1552 | return NULL; | |
1553 | } | |
1554 | ||
1555 | ||
1556 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1557 | PyObject *resultobj; | |
1558 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1559 | wxBitmap result; | |
1560 | PyObject * obj0 = 0 ; | |
1561 | char *kwnames[] = { | |
1562 | (char *) "self", NULL | |
1563 | }; | |
1564 | ||
1565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1568 | { |
1569 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1570 | result = (arg1)->GetBitmapLabel(); | |
1571 | ||
1572 | wxPyEndAllowThreads(__tstate); | |
1573 | if (PyErr_Occurred()) SWIG_fail; | |
1574 | } | |
1575 | { | |
1576 | wxBitmap * resultptr; | |
1577 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1578 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1579 | } |
1580 | return resultobj; | |
1581 | fail: | |
1582 | return NULL; | |
1583 | } | |
1584 | ||
1585 | ||
1586 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1587 | PyObject *resultobj; | |
1588 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1589 | wxBitmap result; | |
1590 | PyObject * obj0 = 0 ; | |
1591 | char *kwnames[] = { | |
1592 | (char *) "self", NULL | |
1593 | }; | |
1594 | ||
1595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1598 | { |
1599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1600 | result = (arg1)->GetBitmapDisabled(); | |
1601 | ||
1602 | wxPyEndAllowThreads(__tstate); | |
1603 | if (PyErr_Occurred()) SWIG_fail; | |
1604 | } | |
1605 | { | |
1606 | wxBitmap * resultptr; | |
1607 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1608 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1609 | } |
1610 | return resultobj; | |
1611 | fail: | |
1612 | return NULL; | |
1613 | } | |
1614 | ||
1615 | ||
1616 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1617 | PyObject *resultobj; | |
1618 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1619 | wxBitmap result; | |
1620 | PyObject * obj0 = 0 ; | |
1621 | char *kwnames[] = { | |
1622 | (char *) "self", NULL | |
1623 | }; | |
1624 | ||
1625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1628 | { |
1629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1630 | result = (arg1)->GetBitmapFocus(); | |
1631 | ||
1632 | wxPyEndAllowThreads(__tstate); | |
1633 | if (PyErr_Occurred()) SWIG_fail; | |
1634 | } | |
1635 | { | |
1636 | wxBitmap * resultptr; | |
1637 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1638 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1639 | } |
1640 | return resultobj; | |
1641 | fail: | |
1642 | return NULL; | |
1643 | } | |
1644 | ||
1645 | ||
1646 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1647 | PyObject *resultobj; | |
1648 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1649 | wxBitmap result; | |
1650 | PyObject * obj0 = 0 ; | |
1651 | char *kwnames[] = { | |
1652 | (char *) "self", NULL | |
1653 | }; | |
1654 | ||
1655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1658 | { |
1659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1660 | result = (arg1)->GetBitmapSelected(); | |
1661 | ||
1662 | wxPyEndAllowThreads(__tstate); | |
1663 | if (PyErr_Occurred()) SWIG_fail; | |
1664 | } | |
1665 | { | |
1666 | wxBitmap * resultptr; | |
1667 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 1668 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1669 | } |
1670 | return resultobj; | |
1671 | fail: | |
1672 | return NULL; | |
1673 | } | |
1674 | ||
1675 | ||
1676 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1677 | PyObject *resultobj; | |
1678 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1679 | wxBitmap *arg2 = 0 ; | |
1680 | PyObject * obj0 = 0 ; | |
1681 | PyObject * obj1 = 0 ; | |
1682 | char *kwnames[] = { | |
1683 | (char *) "self",(char *) "bitmap", NULL | |
1684 | }; | |
1685 | ||
1686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1691 | SWIG_fail; | |
d14a1e28 | 1692 | if (arg2 == NULL) { |
2f4c0a16 RD |
1693 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1694 | SWIG_fail; | |
d14a1e28 RD |
1695 | } |
1696 | { | |
1697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1698 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1699 | ||
1700 | wxPyEndAllowThreads(__tstate); | |
1701 | if (PyErr_Occurred()) SWIG_fail; | |
1702 | } | |
1703 | Py_INCREF(Py_None); resultobj = Py_None; | |
1704 | return resultobj; | |
1705 | fail: | |
1706 | return NULL; | |
1707 | } | |
1708 | ||
1709 | ||
1710 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1711 | PyObject *resultobj; | |
1712 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1713 | wxBitmap *arg2 = 0 ; | |
1714 | PyObject * obj0 = 0 ; | |
1715 | PyObject * obj1 = 0 ; | |
1716 | char *kwnames[] = { | |
1717 | (char *) "self",(char *) "bitmap", NULL | |
1718 | }; | |
1719 | ||
1720 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1721 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1722 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1723 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1724 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1725 | SWIG_fail; | |
d14a1e28 | 1726 | if (arg2 == NULL) { |
2f4c0a16 RD |
1727 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1728 | SWIG_fail; | |
d14a1e28 RD |
1729 | } |
1730 | { | |
1731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1732 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1733 | ||
1734 | wxPyEndAllowThreads(__tstate); | |
1735 | if (PyErr_Occurred()) SWIG_fail; | |
1736 | } | |
1737 | Py_INCREF(Py_None); resultobj = Py_None; | |
1738 | return resultobj; | |
1739 | fail: | |
1740 | return NULL; | |
1741 | } | |
1742 | ||
1743 | ||
1744 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1745 | PyObject *resultobj; | |
1746 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1747 | wxBitmap *arg2 = 0 ; | |
1748 | PyObject * obj0 = 0 ; | |
1749 | PyObject * obj1 = 0 ; | |
1750 | char *kwnames[] = { | |
1751 | (char *) "self",(char *) "bitmap", NULL | |
1752 | }; | |
1753 | ||
1754 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1755 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1756 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1757 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1758 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1759 | SWIG_fail; | |
d14a1e28 | 1760 | if (arg2 == NULL) { |
2f4c0a16 RD |
1761 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1762 | SWIG_fail; | |
d14a1e28 RD |
1763 | } |
1764 | { | |
1765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1766 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1767 | ||
1768 | wxPyEndAllowThreads(__tstate); | |
1769 | if (PyErr_Occurred()) SWIG_fail; | |
1770 | } | |
1771 | Py_INCREF(Py_None); resultobj = Py_None; | |
1772 | return resultobj; | |
1773 | fail: | |
1774 | return NULL; | |
1775 | } | |
1776 | ||
1777 | ||
1778 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1779 | PyObject *resultobj; | |
1780 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1781 | wxBitmap *arg2 = 0 ; | |
1782 | PyObject * obj0 = 0 ; | |
1783 | PyObject * obj1 = 0 ; | |
1784 | char *kwnames[] = { | |
1785 | (char *) "self",(char *) "bitmap", NULL | |
1786 | }; | |
1787 | ||
1788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
1789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1791 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1792 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1793 | SWIG_fail; | |
d14a1e28 | 1794 | if (arg2 == NULL) { |
2f4c0a16 RD |
1795 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1796 | SWIG_fail; | |
d14a1e28 RD |
1797 | } |
1798 | { | |
1799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1800 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1801 | ||
1802 | wxPyEndAllowThreads(__tstate); | |
1803 | if (PyErr_Occurred()) SWIG_fail; | |
1804 | } | |
1805 | Py_INCREF(Py_None); resultobj = Py_None; | |
1806 | return resultobj; | |
1807 | fail: | |
1808 | return NULL; | |
1809 | } | |
1810 | ||
1811 | ||
1812 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1813 | PyObject *resultobj; | |
1814 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1815 | int arg2 ; | |
1816 | int arg3 ; | |
1817 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
1818 | PyObject * obj1 = 0 ; |
1819 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1820 | char *kwnames[] = { |
1821 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1822 | }; | |
1823 | ||
8edf1c75 | 1824 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
1825 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1827 | arg2 = (int) SWIG_AsInt(obj1); | |
1828 | if (PyErr_Occurred()) SWIG_fail; | |
1829 | arg3 = (int) SWIG_AsInt(obj2); | |
1830 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1831 | { |
1832 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1833 | (arg1)->SetMargins(arg2,arg3); | |
1834 | ||
1835 | wxPyEndAllowThreads(__tstate); | |
1836 | if (PyErr_Occurred()) SWIG_fail; | |
1837 | } | |
1838 | Py_INCREF(Py_None); resultobj = Py_None; | |
1839 | return resultobj; | |
1840 | fail: | |
1841 | return NULL; | |
1842 | } | |
1843 | ||
1844 | ||
1845 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1846 | PyObject *resultobj; | |
1847 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1848 | int result; | |
1849 | PyObject * obj0 = 0 ; | |
1850 | char *kwnames[] = { | |
1851 | (char *) "self", NULL | |
1852 | }; | |
1853 | ||
1854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1857 | { |
1858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1859 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1860 | ||
1861 | wxPyEndAllowThreads(__tstate); | |
1862 | if (PyErr_Occurred()) SWIG_fail; | |
1863 | } | |
2f4c0a16 | 1864 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1865 | return resultobj; |
1866 | fail: | |
1867 | return NULL; | |
1868 | } | |
1869 | ||
1870 | ||
1871 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1872 | PyObject *resultobj; | |
1873 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1874 | int result; | |
1875 | PyObject * obj0 = 0 ; | |
1876 | char *kwnames[] = { | |
1877 | (char *) "self", NULL | |
1878 | }; | |
1879 | ||
1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
1881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1883 | { |
1884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1885 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1886 | ||
1887 | wxPyEndAllowThreads(__tstate); | |
1888 | if (PyErr_Occurred()) SWIG_fail; | |
1889 | } | |
2f4c0a16 | 1890 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1891 | return resultobj; |
1892 | fail: | |
1893 | return NULL; | |
1894 | } | |
1895 | ||
1896 | ||
1897 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1898 | PyObject *obj; | |
1899 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1900 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1901 | Py_INCREF(obj); | |
1902 | return Py_BuildValue((char *)""); | |
1903 | } | |
2f4c0a16 | 1904 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
1905 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); |
1906 | return 1; | |
1907 | } | |
1908 | ||
1909 | ||
1910 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1911 | PyObject *pyobj; | |
1912 | ||
1913 | { | |
1914 | #if wxUSE_UNICODE | |
1915 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1916 | #else | |
1917 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1918 | #endif | |
1919 | } | |
1920 | return pyobj; | |
1921 | } | |
1922 | ||
1923 | ||
d14a1e28 RD |
1924 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1925 | PyObject *resultobj; | |
1926 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 1927 | int arg2 ; |
d14a1e28 RD |
1928 | wxString *arg3 = 0 ; |
1929 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
1930 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1931 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1932 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1933 | long arg6 = (long) 0 ; | |
1934 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1935 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1936 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1937 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1938 | wxCheckBox *result; | |
423f194a | 1939 | bool temp3 = False ; |
d14a1e28 RD |
1940 | wxPoint temp4 ; |
1941 | wxSize temp5 ; | |
423f194a | 1942 | bool temp8 = False ; |
d14a1e28 | 1943 | PyObject * obj0 = 0 ; |
8edf1c75 | 1944 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1945 | PyObject * obj2 = 0 ; |
1946 | PyObject * obj3 = 0 ; | |
1947 | PyObject * obj4 = 0 ; | |
8edf1c75 | 1948 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1949 | PyObject * obj6 = 0 ; |
1950 | PyObject * obj7 = 0 ; | |
1951 | char *kwnames[] = { | |
1952 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1953 | }; | |
1954 | ||
8edf1c75 | 1955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
1956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1958 | arg2 = (int) SWIG_AsInt(obj1); | |
1959 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1960 | { |
1961 | arg3 = wxString_in_helper(obj2); | |
1962 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 1963 | temp3 = True; |
d14a1e28 RD |
1964 | } |
1965 | if (obj3) { | |
1966 | { | |
1967 | arg4 = &temp4; | |
1968 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1969 | } | |
1970 | } | |
1971 | if (obj4) { | |
1972 | { | |
1973 | arg5 = &temp5; | |
1974 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1975 | } | |
1976 | } | |
8edf1c75 | 1977 | if (obj5) { |
2f4c0a16 RD |
1978 | arg6 = (long) SWIG_AsLong(obj5); |
1979 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 1980 | } |
d14a1e28 | 1981 | if (obj6) { |
2f4c0a16 RD |
1982 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1983 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1984 | SWIG_fail; | |
d14a1e28 | 1985 | if (arg7 == NULL) { |
2f4c0a16 RD |
1986 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1987 | SWIG_fail; | |
d14a1e28 RD |
1988 | } |
1989 | } | |
1990 | if (obj7) { | |
1991 | { | |
1992 | arg8 = wxString_in_helper(obj7); | |
1993 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 1994 | temp8 = True; |
d14a1e28 RD |
1995 | } |
1996 | } | |
1997 | { | |
1998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1999 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2000 | ||
2001 | wxPyEndAllowThreads(__tstate); | |
2002 | if (PyErr_Occurred()) SWIG_fail; | |
2003 | } | |
2f4c0a16 | 2004 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2005 | { |
2006 | if (temp3) | |
2007 | delete arg3; | |
2008 | } | |
2009 | { | |
2010 | if (temp8) | |
2011 | delete arg8; | |
2012 | } | |
2013 | return resultobj; | |
2014 | fail: | |
2015 | { | |
2016 | if (temp3) | |
2017 | delete arg3; | |
2018 | } | |
2019 | { | |
2020 | if (temp8) | |
2021 | delete arg8; | |
2022 | } | |
2023 | return NULL; | |
2024 | } | |
2025 | ||
2026 | ||
2027 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2028 | PyObject *resultobj; | |
2029 | wxCheckBox *result; | |
2030 | char *kwnames[] = { | |
2031 | NULL | |
2032 | }; | |
2033 | ||
2034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2035 | { | |
2036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2037 | result = (wxCheckBox *)new wxCheckBox(); | |
2038 | ||
2039 | wxPyEndAllowThreads(__tstate); | |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
2041 | } | |
2f4c0a16 | 2042 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2043 | return resultobj; |
2044 | fail: | |
2045 | return NULL; | |
2046 | } | |
2047 | ||
2048 | ||
2049 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2050 | PyObject *resultobj; | |
2051 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2052 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2053 | int arg3 ; |
d14a1e28 RD |
2054 | wxString *arg4 = 0 ; |
2055 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2056 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2057 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2058 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2059 | long arg7 = (long) 0 ; | |
2060 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2061 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2062 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2063 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2064 | bool result; | |
423f194a | 2065 | bool temp4 = False ; |
d14a1e28 RD |
2066 | wxPoint temp5 ; |
2067 | wxSize temp6 ; | |
423f194a | 2068 | bool temp9 = False ; |
d14a1e28 RD |
2069 | PyObject * obj0 = 0 ; |
2070 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2071 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2072 | PyObject * obj3 = 0 ; |
2073 | PyObject * obj4 = 0 ; | |
2074 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2075 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2076 | PyObject * obj7 = 0 ; |
2077 | PyObject * obj8 = 0 ; | |
2078 | char *kwnames[] = { | |
2079 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2080 | }; | |
2081 | ||
8edf1c75 | 2082 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2083 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2084 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2085 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2087 | arg3 = (int) SWIG_AsInt(obj2); | |
2088 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2089 | { |
2090 | arg4 = wxString_in_helper(obj3); | |
2091 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2092 | temp4 = True; |
d14a1e28 RD |
2093 | } |
2094 | if (obj4) { | |
2095 | { | |
2096 | arg5 = &temp5; | |
2097 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2098 | } | |
2099 | } | |
2100 | if (obj5) { | |
2101 | { | |
2102 | arg6 = &temp6; | |
2103 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2104 | } | |
2105 | } | |
8edf1c75 | 2106 | if (obj6) { |
2f4c0a16 RD |
2107 | arg7 = (long) SWIG_AsLong(obj6); |
2108 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2109 | } |
d14a1e28 | 2110 | if (obj7) { |
2f4c0a16 RD |
2111 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2112 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2113 | SWIG_fail; | |
d14a1e28 | 2114 | if (arg8 == NULL) { |
2f4c0a16 RD |
2115 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2116 | SWIG_fail; | |
d14a1e28 RD |
2117 | } |
2118 | } | |
2119 | if (obj8) { | |
2120 | { | |
2121 | arg9 = wxString_in_helper(obj8); | |
2122 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2123 | temp9 = True; |
d14a1e28 RD |
2124 | } |
2125 | } | |
2126 | { | |
2127 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2128 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2129 | ||
2130 | wxPyEndAllowThreads(__tstate); | |
2131 | if (PyErr_Occurred()) SWIG_fail; | |
2132 | } | |
4f89f6a3 RD |
2133 | { |
2134 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2135 | } | |
d14a1e28 RD |
2136 | { |
2137 | if (temp4) | |
2138 | delete arg4; | |
2139 | } | |
2140 | { | |
2141 | if (temp9) | |
2142 | delete arg9; | |
2143 | } | |
2144 | return resultobj; | |
2145 | fail: | |
2146 | { | |
2147 | if (temp4) | |
2148 | delete arg4; | |
2149 | } | |
2150 | { | |
2151 | if (temp9) | |
2152 | delete arg9; | |
2153 | } | |
2154 | return NULL; | |
2155 | } | |
2156 | ||
2157 | ||
2158 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2159 | PyObject *resultobj; | |
2160 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2161 | bool result; | |
2162 | PyObject * obj0 = 0 ; | |
2163 | char *kwnames[] = { | |
2164 | (char *) "self", NULL | |
2165 | }; | |
2166 | ||
2167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2170 | { |
2171 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2172 | result = (bool)(arg1)->GetValue(); | |
2173 | ||
2174 | wxPyEndAllowThreads(__tstate); | |
2175 | if (PyErr_Occurred()) SWIG_fail; | |
2176 | } | |
4f89f6a3 RD |
2177 | { |
2178 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2179 | } | |
d14a1e28 RD |
2180 | return resultobj; |
2181 | fail: | |
2182 | return NULL; | |
2183 | } | |
2184 | ||
2185 | ||
2186 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2187 | PyObject *resultobj; | |
2188 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2189 | bool result; | |
2190 | PyObject * obj0 = 0 ; | |
2191 | char *kwnames[] = { | |
2192 | (char *) "self", NULL | |
2193 | }; | |
2194 | ||
2195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2198 | { |
2199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2200 | result = (bool)(arg1)->IsChecked(); | |
2201 | ||
2202 | wxPyEndAllowThreads(__tstate); | |
2203 | if (PyErr_Occurred()) SWIG_fail; | |
2204 | } | |
4f89f6a3 RD |
2205 | { |
2206 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2207 | } | |
d14a1e28 RD |
2208 | return resultobj; |
2209 | fail: | |
2210 | return NULL; | |
2211 | } | |
2212 | ||
2213 | ||
2214 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2215 | PyObject *resultobj; | |
2216 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2217 | bool arg2 ; | |
2218 | PyObject * obj0 = 0 ; | |
2219 | PyObject * obj1 = 0 ; | |
2220 | char *kwnames[] = { | |
2221 | (char *) "self",(char *) "state", NULL | |
2222 | }; | |
2223 | ||
2224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2227 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2228 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2229 | { |
2230 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2231 | (arg1)->SetValue(arg2); | |
2232 | ||
2233 | wxPyEndAllowThreads(__tstate); | |
2234 | if (PyErr_Occurred()) SWIG_fail; | |
2235 | } | |
2236 | Py_INCREF(Py_None); resultobj = Py_None; | |
2237 | return resultobj; | |
2238 | fail: | |
2239 | return NULL; | |
2240 | } | |
2241 | ||
2242 | ||
2243 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2244 | PyObject *resultobj; | |
2245 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2246 | int result; | |
2247 | PyObject * obj0 = 0 ; | |
2248 | char *kwnames[] = { | |
2249 | (char *) "self", NULL | |
2250 | }; | |
2251 | ||
2252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2255 | { |
2256 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2257 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2258 | ||
2259 | wxPyEndAllowThreads(__tstate); | |
2260 | if (PyErr_Occurred()) SWIG_fail; | |
2261 | } | |
2f4c0a16 | 2262 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2263 | return resultobj; |
2264 | fail: | |
2265 | return NULL; | |
2266 | } | |
2267 | ||
2268 | ||
2269 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2270 | PyObject *resultobj; | |
2271 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2272 | int arg2 ; | |
2273 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2274 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2275 | char *kwnames[] = { |
2276 | (char *) "self",(char *) "state", NULL | |
2277 | }; | |
2278 | ||
8edf1c75 | 2279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2282 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2283 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2284 | { |
2285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2286 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2287 | ||
2288 | wxPyEndAllowThreads(__tstate); | |
2289 | if (PyErr_Occurred()) SWIG_fail; | |
2290 | } | |
2291 | Py_INCREF(Py_None); resultobj = Py_None; | |
2292 | return resultobj; | |
2293 | fail: | |
2294 | return NULL; | |
2295 | } | |
2296 | ||
2297 | ||
2298 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2299 | PyObject *resultobj; | |
2300 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2301 | bool result; | |
2302 | PyObject * obj0 = 0 ; | |
2303 | char *kwnames[] = { | |
2304 | (char *) "self", NULL | |
2305 | }; | |
2306 | ||
2307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2310 | { |
2311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2312 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2313 | ||
2314 | wxPyEndAllowThreads(__tstate); | |
2315 | if (PyErr_Occurred()) SWIG_fail; | |
2316 | } | |
4f89f6a3 RD |
2317 | { |
2318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2319 | } | |
d14a1e28 RD |
2320 | return resultobj; |
2321 | fail: | |
2322 | return NULL; | |
2323 | } | |
2324 | ||
2325 | ||
2326 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2327 | PyObject *resultobj; | |
2328 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2329 | bool result; | |
2330 | PyObject * obj0 = 0 ; | |
2331 | char *kwnames[] = { | |
2332 | (char *) "self", NULL | |
2333 | }; | |
2334 | ||
2335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
2336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2338 | { |
2339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2340 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2341 | ||
2342 | wxPyEndAllowThreads(__tstate); | |
2343 | if (PyErr_Occurred()) SWIG_fail; | |
2344 | } | |
4f89f6a3 RD |
2345 | { |
2346 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2347 | } | |
d14a1e28 RD |
2348 | return resultobj; |
2349 | fail: | |
2350 | return NULL; | |
2351 | } | |
2352 | ||
2353 | ||
2354 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { | |
2355 | PyObject *obj; | |
2356 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2357 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2358 | Py_INCREF(obj); | |
2359 | return Py_BuildValue((char *)""); | |
2360 | } | |
2f4c0a16 | 2361 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
d03fd34d RD |
2362 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); |
2363 | return 1; | |
2364 | } | |
2365 | ||
2366 | ||
2367 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2368 | PyObject *pyobj; | |
2369 | ||
2370 | { | |
2371 | #if wxUSE_UNICODE | |
2372 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2373 | #else | |
2374 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2375 | #endif | |
2376 | } | |
2377 | return pyobj; | |
2378 | } | |
2379 | ||
2380 | ||
d14a1e28 RD |
2381 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2382 | PyObject *resultobj; | |
2383 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2384 | int arg2 ; |
d14a1e28 RD |
2385 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2386 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2387 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2388 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
2389 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2390 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2391 | long arg6 = (long) 0 ; | |
2392 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2393 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2394 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2395 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2396 | wxChoice *result; |
2397 | wxPoint temp3 ; | |
2398 | wxSize temp4 ; | |
db914595 | 2399 | bool temp5 = False ; |
423f194a | 2400 | bool temp8 = False ; |
d14a1e28 | 2401 | PyObject * obj0 = 0 ; |
8edf1c75 | 2402 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2403 | PyObject * obj2 = 0 ; |
2404 | PyObject * obj3 = 0 ; | |
2405 | PyObject * obj4 = 0 ; | |
8edf1c75 | 2406 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2407 | PyObject * obj6 = 0 ; |
2408 | PyObject * obj7 = 0 ; | |
2409 | char *kwnames[] = { | |
2410 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2411 | }; | |
2412 | ||
8edf1c75 | 2413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
2414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2416 | arg2 = (int) SWIG_AsInt(obj1); | |
2417 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2418 | if (obj2) { |
2419 | { | |
2420 | arg3 = &temp3; | |
2421 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2422 | } | |
2423 | } | |
2424 | if (obj3) { | |
2425 | { | |
2426 | arg4 = &temp4; | |
2427 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2428 | } | |
2429 | } | |
2430 | if (obj4) { | |
2431 | { | |
4e760a36 RD |
2432 | if (! PySequence_Check(obj4)) { |
2433 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2434 | SWIG_fail; | |
2435 | } | |
2436 | arg5 = new wxArrayString; | |
db914595 | 2437 | temp5 = True; |
4e760a36 RD |
2438 | int i, len=PySequence_Length(obj4); |
2439 | for (i=0; i<len; i++) { | |
2440 | PyObject* item = PySequence_GetItem(obj4, i); | |
2441 | #if wxUSE_UNICODE | |
2442 | PyObject* str = PyObject_Unicode(item); | |
2443 | #else | |
2444 | PyObject* str = PyObject_Str(item); | |
2445 | #endif | |
2446 | arg5->Add(Py2wxString(str)); | |
2447 | Py_DECREF(item); | |
2448 | Py_DECREF(str); | |
2449 | } | |
d14a1e28 RD |
2450 | } |
2451 | } | |
8edf1c75 | 2452 | if (obj5) { |
2f4c0a16 RD |
2453 | arg6 = (long) SWIG_AsLong(obj5); |
2454 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2455 | } |
d14a1e28 | 2456 | if (obj6) { |
2f4c0a16 RD |
2457 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2458 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2459 | SWIG_fail; | |
4e760a36 | 2460 | if (arg7 == NULL) { |
2f4c0a16 RD |
2461 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2462 | SWIG_fail; | |
d14a1e28 RD |
2463 | } |
2464 | } | |
2465 | if (obj7) { | |
2466 | { | |
4e760a36 RD |
2467 | arg8 = wxString_in_helper(obj7); |
2468 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 2469 | temp8 = True; |
d14a1e28 RD |
2470 | } |
2471 | } | |
2472 | { | |
2473 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2474 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2475 | |
2476 | wxPyEndAllowThreads(__tstate); | |
2477 | if (PyErr_Occurred()) SWIG_fail; | |
2478 | } | |
2f4c0a16 | 2479 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2480 | { |
db914595 | 2481 | if (temp5) delete arg5; |
d14a1e28 RD |
2482 | } |
2483 | { | |
2484 | if (temp8) | |
4e760a36 | 2485 | delete arg8; |
d14a1e28 RD |
2486 | } |
2487 | return resultobj; | |
2488 | fail: | |
2489 | { | |
db914595 | 2490 | if (temp5) delete arg5; |
d14a1e28 RD |
2491 | } |
2492 | { | |
2493 | if (temp8) | |
4e760a36 | 2494 | delete arg8; |
d14a1e28 RD |
2495 | } |
2496 | return NULL; | |
2497 | } | |
2498 | ||
2499 | ||
2500 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2501 | PyObject *resultobj; | |
2502 | wxChoice *result; | |
2503 | char *kwnames[] = { | |
2504 | NULL | |
2505 | }; | |
2506 | ||
2507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2508 | { | |
2509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2510 | result = (wxChoice *)new wxChoice(); | |
2511 | ||
2512 | wxPyEndAllowThreads(__tstate); | |
2513 | if (PyErr_Occurred()) SWIG_fail; | |
2514 | } | |
2f4c0a16 | 2515 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2516 | return resultobj; |
2517 | fail: | |
2518 | return NULL; | |
2519 | } | |
2520 | ||
2521 | ||
2522 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2523 | PyObject *resultobj; | |
2524 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2525 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2526 | int arg3 ; |
d14a1e28 RD |
2527 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2528 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2529 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2530 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2531 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2532 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2533 | long arg7 = (long) 0 ; | |
2534 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2535 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2536 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2537 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2538 | bool result; |
2539 | wxPoint temp4 ; | |
2540 | wxSize temp5 ; | |
db914595 | 2541 | bool temp6 = False ; |
423f194a | 2542 | bool temp9 = False ; |
d14a1e28 RD |
2543 | PyObject * obj0 = 0 ; |
2544 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2545 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2546 | PyObject * obj3 = 0 ; |
2547 | PyObject * obj4 = 0 ; | |
2548 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2549 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2550 | PyObject * obj7 = 0 ; |
2551 | PyObject * obj8 = 0 ; | |
2552 | char *kwnames[] = { | |
2553 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2554 | }; | |
2555 | ||
8edf1c75 | 2556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2560 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2561 | arg3 = (int) SWIG_AsInt(obj2); | |
2562 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2563 | if (obj3) { |
2564 | { | |
2565 | arg4 = &temp4; | |
2566 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2567 | } | |
2568 | } | |
2569 | if (obj4) { | |
2570 | { | |
2571 | arg5 = &temp5; | |
2572 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2573 | } | |
2574 | } | |
2575 | if (obj5) { | |
2576 | { | |
4e760a36 RD |
2577 | if (! PySequence_Check(obj5)) { |
2578 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2579 | SWIG_fail; | |
2580 | } | |
2581 | arg6 = new wxArrayString; | |
db914595 | 2582 | temp6 = True; |
4e760a36 RD |
2583 | int i, len=PySequence_Length(obj5); |
2584 | for (i=0; i<len; i++) { | |
2585 | PyObject* item = PySequence_GetItem(obj5, i); | |
2586 | #if wxUSE_UNICODE | |
2587 | PyObject* str = PyObject_Unicode(item); | |
2588 | #else | |
2589 | PyObject* str = PyObject_Str(item); | |
2590 | #endif | |
2591 | arg6->Add(Py2wxString(str)); | |
2592 | Py_DECREF(item); | |
2593 | Py_DECREF(str); | |
2594 | } | |
d14a1e28 RD |
2595 | } |
2596 | } | |
8edf1c75 | 2597 | if (obj6) { |
2f4c0a16 RD |
2598 | arg7 = (long) SWIG_AsLong(obj6); |
2599 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2600 | } |
d14a1e28 | 2601 | if (obj7) { |
2f4c0a16 RD |
2602 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2603 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2604 | SWIG_fail; | |
4e760a36 | 2605 | if (arg8 == NULL) { |
2f4c0a16 RD |
2606 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2607 | SWIG_fail; | |
d14a1e28 RD |
2608 | } |
2609 | } | |
2610 | if (obj8) { | |
2611 | { | |
4e760a36 RD |
2612 | arg9 = wxString_in_helper(obj8); |
2613 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2614 | temp9 = True; |
d14a1e28 RD |
2615 | } |
2616 | } | |
2617 | { | |
2618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2619 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2620 | |
2621 | wxPyEndAllowThreads(__tstate); | |
2622 | if (PyErr_Occurred()) SWIG_fail; | |
2623 | } | |
4f89f6a3 RD |
2624 | { |
2625 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2626 | } | |
d14a1e28 | 2627 | { |
db914595 | 2628 | if (temp6) delete arg6; |
d14a1e28 RD |
2629 | } |
2630 | { | |
2631 | if (temp9) | |
4e760a36 | 2632 | delete arg9; |
d14a1e28 RD |
2633 | } |
2634 | return resultobj; | |
2635 | fail: | |
2636 | { | |
db914595 | 2637 | if (temp6) delete arg6; |
d14a1e28 RD |
2638 | } |
2639 | { | |
2640 | if (temp9) | |
4e760a36 | 2641 | delete arg9; |
d14a1e28 RD |
2642 | } |
2643 | return NULL; | |
2644 | } | |
2645 | ||
2646 | ||
d14a1e28 RD |
2647 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2648 | PyObject *resultobj; | |
2649 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2650 | int arg2 ; | |
2651 | PyObject * obj0 = 0 ; | |
8edf1c75 | 2652 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2653 | char *kwnames[] = { |
2654 | (char *) "self",(char *) "n", NULL | |
2655 | }; | |
2656 | ||
8edf1c75 | 2657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
2658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2660 | arg2 = (int const) SWIG_AsInt(obj1); | |
2661 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2662 | { |
2663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2664 | (arg1)->SetSelection(arg2); | |
2665 | ||
2666 | wxPyEndAllowThreads(__tstate); | |
2667 | if (PyErr_Occurred()) SWIG_fail; | |
2668 | } | |
2669 | Py_INCREF(Py_None); resultobj = Py_None; | |
2670 | return resultobj; | |
2671 | fail: | |
2672 | return NULL; | |
2673 | } | |
2674 | ||
2675 | ||
2676 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2677 | PyObject *resultobj; | |
2678 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2679 | wxString *arg2 = 0 ; | |
423f194a | 2680 | bool temp2 = False ; |
d14a1e28 RD |
2681 | PyObject * obj0 = 0 ; |
2682 | PyObject * obj1 = 0 ; | |
2683 | char *kwnames[] = { | |
2684 | (char *) "self",(char *) "string", NULL | |
2685 | }; | |
2686 | ||
2687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
2688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2690 | { |
2691 | arg2 = wxString_in_helper(obj1); | |
2692 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 2693 | temp2 = True; |
d14a1e28 RD |
2694 | } |
2695 | { | |
2696 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2697 | (arg1)->SetStringSelection((wxString const &)*arg2); | |
2698 | ||
2699 | wxPyEndAllowThreads(__tstate); | |
2700 | if (PyErr_Occurred()) SWIG_fail; | |
2701 | } | |
2702 | Py_INCREF(Py_None); resultobj = Py_None; | |
2703 | { | |
2704 | if (temp2) | |
2705 | delete arg2; | |
2706 | } | |
2707 | return resultobj; | |
2708 | fail: | |
2709 | { | |
2710 | if (temp2) | |
2711 | delete arg2; | |
2712 | } | |
2713 | return NULL; | |
2714 | } | |
2715 | ||
2716 | ||
2717 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2718 | PyObject *resultobj; | |
2719 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2720 | int arg2 ; | |
2721 | wxString *arg3 = 0 ; | |
423f194a | 2722 | bool temp3 = False ; |
d14a1e28 | 2723 | PyObject * obj0 = 0 ; |
8edf1c75 | 2724 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2725 | PyObject * obj2 = 0 ; |
2726 | char *kwnames[] = { | |
1f05e33b | 2727 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2728 | }; |
2729 | ||
8edf1c75 | 2730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
2731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2733 | arg2 = (int) SWIG_AsInt(obj1); | |
2734 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2735 | { |
2736 | arg3 = wxString_in_helper(obj2); | |
2737 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2738 | temp3 = True; |
d14a1e28 RD |
2739 | } |
2740 | { | |
2741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2742 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2743 | ||
2744 | wxPyEndAllowThreads(__tstate); | |
2745 | if (PyErr_Occurred()) SWIG_fail; | |
2746 | } | |
2747 | Py_INCREF(Py_None); resultobj = Py_None; | |
2748 | { | |
2749 | if (temp3) | |
2750 | delete arg3; | |
2751 | } | |
2752 | return resultobj; | |
2753 | fail: | |
2754 | { | |
2755 | if (temp3) | |
2756 | delete arg3; | |
2757 | } | |
2758 | return NULL; | |
2759 | } | |
2760 | ||
2761 | ||
2762 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { | |
2763 | PyObject *obj; | |
2764 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2765 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2766 | Py_INCREF(obj); | |
2767 | return Py_BuildValue((char *)""); | |
2768 | } | |
2f4c0a16 | 2769 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
2770 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); |
2771 | return 1; | |
2772 | } | |
2773 | ||
2774 | ||
2775 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2776 | PyObject *pyobj; | |
2777 | ||
2778 | { | |
2779 | #if wxUSE_UNICODE | |
2780 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2781 | #else | |
2782 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2783 | #endif | |
2784 | } | |
2785 | return pyobj; | |
2786 | } | |
2787 | ||
2788 | ||
d14a1e28 RD |
2789 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2790 | PyObject *resultobj; | |
2791 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 2792 | int arg2 ; |
d14a1e28 RD |
2793 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2794 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2795 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2796 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2797 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2798 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
2799 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2800 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2801 | long arg7 = (long) 0 ; | |
2802 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2803 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2804 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2805 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2806 | wxComboBox *result; |
423f194a | 2807 | bool temp3 = False ; |
d14a1e28 RD |
2808 | wxPoint temp4 ; |
2809 | wxSize temp5 ; | |
db914595 | 2810 | bool temp6 = False ; |
423f194a | 2811 | bool temp9 = False ; |
d14a1e28 | 2812 | PyObject * obj0 = 0 ; |
8edf1c75 | 2813 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2814 | PyObject * obj2 = 0 ; |
2815 | PyObject * obj3 = 0 ; | |
2816 | PyObject * obj4 = 0 ; | |
2817 | PyObject * obj5 = 0 ; | |
8edf1c75 | 2818 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2819 | PyObject * obj7 = 0 ; |
2820 | PyObject * obj8 = 0 ; | |
2821 | char *kwnames[] = { | |
2822 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2823 | }; | |
2824 | ||
8edf1c75 | 2825 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
2826 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2827 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2828 | arg2 = (int) SWIG_AsInt(obj1); | |
2829 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2830 | if (obj2) { |
2831 | { | |
2832 | arg3 = wxString_in_helper(obj2); | |
2833 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 2834 | temp3 = True; |
d14a1e28 RD |
2835 | } |
2836 | } | |
2837 | if (obj3) { | |
2838 | { | |
2839 | arg4 = &temp4; | |
2840 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2841 | } | |
2842 | } | |
2843 | if (obj4) { | |
2844 | { | |
2845 | arg5 = &temp5; | |
2846 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2847 | } | |
2848 | } | |
2849 | if (obj5) { | |
2850 | { | |
4e760a36 RD |
2851 | if (! PySequence_Check(obj5)) { |
2852 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2853 | SWIG_fail; | |
2854 | } | |
2855 | arg6 = new wxArrayString; | |
db914595 | 2856 | temp6 = True; |
4e760a36 RD |
2857 | int i, len=PySequence_Length(obj5); |
2858 | for (i=0; i<len; i++) { | |
2859 | PyObject* item = PySequence_GetItem(obj5, i); | |
2860 | #if wxUSE_UNICODE | |
2861 | PyObject* str = PyObject_Unicode(item); | |
2862 | #else | |
2863 | PyObject* str = PyObject_Str(item); | |
2864 | #endif | |
2865 | arg6->Add(Py2wxString(str)); | |
2866 | Py_DECREF(item); | |
2867 | Py_DECREF(str); | |
2868 | } | |
d14a1e28 RD |
2869 | } |
2870 | } | |
8edf1c75 | 2871 | if (obj6) { |
2f4c0a16 RD |
2872 | arg7 = (long) SWIG_AsLong(obj6); |
2873 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 2874 | } |
d14a1e28 | 2875 | if (obj7) { |
2f4c0a16 RD |
2876 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2877 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2878 | SWIG_fail; | |
4e760a36 | 2879 | if (arg8 == NULL) { |
2f4c0a16 RD |
2880 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2881 | SWIG_fail; | |
d14a1e28 RD |
2882 | } |
2883 | } | |
2884 | if (obj8) { | |
2885 | { | |
4e760a36 RD |
2886 | arg9 = wxString_in_helper(obj8); |
2887 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 2888 | temp9 = True; |
d14a1e28 RD |
2889 | } |
2890 | } | |
2891 | { | |
2892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 2893 | 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 |
2894 | |
2895 | wxPyEndAllowThreads(__tstate); | |
2896 | if (PyErr_Occurred()) SWIG_fail; | |
2897 | } | |
2f4c0a16 | 2898 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2899 | { |
2900 | if (temp3) | |
2901 | delete arg3; | |
2902 | } | |
2903 | { | |
db914595 | 2904 | if (temp6) delete arg6; |
d14a1e28 RD |
2905 | } |
2906 | { | |
2907 | if (temp9) | |
4e760a36 | 2908 | delete arg9; |
d14a1e28 RD |
2909 | } |
2910 | return resultobj; | |
2911 | fail: | |
2912 | { | |
2913 | if (temp3) | |
2914 | delete arg3; | |
2915 | } | |
2916 | { | |
db914595 | 2917 | if (temp6) delete arg6; |
d14a1e28 RD |
2918 | } |
2919 | { | |
2920 | if (temp9) | |
4e760a36 | 2921 | delete arg9; |
d14a1e28 RD |
2922 | } |
2923 | return NULL; | |
2924 | } | |
2925 | ||
2926 | ||
2927 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2928 | PyObject *resultobj; | |
2929 | wxComboBox *result; | |
2930 | char *kwnames[] = { | |
2931 | NULL | |
2932 | }; | |
2933 | ||
2934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
2935 | { | |
2936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2937 | result = (wxComboBox *)new wxComboBox(); | |
2938 | ||
2939 | wxPyEndAllowThreads(__tstate); | |
2940 | if (PyErr_Occurred()) SWIG_fail; | |
2941 | } | |
2f4c0a16 | 2942 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
2943 | return resultobj; |
2944 | fail: | |
2945 | return NULL; | |
2946 | } | |
2947 | ||
2948 | ||
2949 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2950 | PyObject *resultobj; | |
2951 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
2952 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 2953 | int arg3 ; |
d14a1e28 RD |
2954 | wxString const &arg4_defvalue = wxPyEmptyString ; |
2955 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
2956 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
2957 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2958 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2959 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
2960 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
2961 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
2962 | long arg8 = (long) 0 ; | |
2963 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
2964 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
328fcd84 | 2965 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4e760a36 | 2966 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 2967 | bool result; |
423f194a | 2968 | bool temp4 = False ; |
d14a1e28 RD |
2969 | wxPoint temp5 ; |
2970 | wxSize temp6 ; | |
db914595 | 2971 | bool temp7 = False ; |
423f194a | 2972 | bool temp10 = False ; |
d14a1e28 RD |
2973 | PyObject * obj0 = 0 ; |
2974 | PyObject * obj1 = 0 ; | |
8edf1c75 | 2975 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2976 | PyObject * obj3 = 0 ; |
2977 | PyObject * obj4 = 0 ; | |
2978 | PyObject * obj5 = 0 ; | |
2979 | PyObject * obj6 = 0 ; | |
8edf1c75 | 2980 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
2981 | PyObject * obj8 = 0 ; |
2982 | PyObject * obj9 = 0 ; | |
2983 | char *kwnames[] = { | |
2984 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2985 | }; | |
2986 | ||
8edf1c75 | 2987 | 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 |
2988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
2989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2990 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2992 | arg3 = (int) SWIG_AsInt(obj2); | |
2993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2994 | if (obj3) { |
2995 | { | |
2996 | arg4 = wxString_in_helper(obj3); | |
2997 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 2998 | temp4 = True; |
d14a1e28 RD |
2999 | } |
3000 | } | |
3001 | if (obj4) { | |
3002 | { | |
3003 | arg5 = &temp5; | |
3004 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3005 | } | |
3006 | } | |
3007 | if (obj5) { | |
3008 | { | |
3009 | arg6 = &temp6; | |
3010 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3011 | } | |
3012 | } | |
3013 | if (obj6) { | |
3014 | { | |
4e760a36 RD |
3015 | if (! PySequence_Check(obj6)) { |
3016 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3017 | SWIG_fail; | |
3018 | } | |
3019 | arg7 = new wxArrayString; | |
db914595 | 3020 | temp7 = True; |
4e760a36 RD |
3021 | int i, len=PySequence_Length(obj6); |
3022 | for (i=0; i<len; i++) { | |
3023 | PyObject* item = PySequence_GetItem(obj6, i); | |
3024 | #if wxUSE_UNICODE | |
3025 | PyObject* str = PyObject_Unicode(item); | |
3026 | #else | |
3027 | PyObject* str = PyObject_Str(item); | |
3028 | #endif | |
3029 | arg7->Add(Py2wxString(str)); | |
3030 | Py_DECREF(item); | |
3031 | Py_DECREF(str); | |
3032 | } | |
d14a1e28 RD |
3033 | } |
3034 | } | |
8edf1c75 | 3035 | if (obj7) { |
2f4c0a16 RD |
3036 | arg8 = (long) SWIG_AsLong(obj7); |
3037 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3038 | } |
d14a1e28 | 3039 | if (obj8) { |
2f4c0a16 RD |
3040 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3041 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3042 | SWIG_fail; | |
4e760a36 | 3043 | if (arg9 == NULL) { |
2f4c0a16 RD |
3044 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3045 | SWIG_fail; | |
d14a1e28 RD |
3046 | } |
3047 | } | |
3048 | if (obj9) { | |
3049 | { | |
4e760a36 RD |
3050 | arg10 = wxString_in_helper(obj9); |
3051 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 3052 | temp10 = True; |
d14a1e28 RD |
3053 | } |
3054 | } | |
3055 | { | |
3056 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 3057 | 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 |
3058 | |
3059 | wxPyEndAllowThreads(__tstate); | |
3060 | if (PyErr_Occurred()) SWIG_fail; | |
3061 | } | |
4f89f6a3 RD |
3062 | { |
3063 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3064 | } | |
d14a1e28 RD |
3065 | { |
3066 | if (temp4) | |
3067 | delete arg4; | |
3068 | } | |
3069 | { | |
db914595 | 3070 | if (temp7) delete arg7; |
d14a1e28 RD |
3071 | } |
3072 | { | |
3073 | if (temp10) | |
4e760a36 | 3074 | delete arg10; |
d14a1e28 RD |
3075 | } |
3076 | return resultobj; | |
3077 | fail: | |
3078 | { | |
3079 | if (temp4) | |
3080 | delete arg4; | |
3081 | } | |
3082 | { | |
db914595 | 3083 | if (temp7) delete arg7; |
d14a1e28 RD |
3084 | } |
3085 | { | |
3086 | if (temp10) | |
4e760a36 | 3087 | delete arg10; |
d14a1e28 RD |
3088 | } |
3089 | return NULL; | |
3090 | } | |
3091 | ||
3092 | ||
3093 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3094 | PyObject *resultobj; | |
3095 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3096 | wxString result; | |
3097 | PyObject * obj0 = 0 ; | |
3098 | char *kwnames[] = { | |
3099 | (char *) "self", NULL | |
3100 | }; | |
3101 | ||
3102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3105 | { |
3106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3107 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3108 | ||
3109 | wxPyEndAllowThreads(__tstate); | |
3110 | if (PyErr_Occurred()) SWIG_fail; | |
3111 | } | |
3112 | { | |
3113 | #if wxUSE_UNICODE | |
3114 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3115 | #else | |
3116 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3117 | #endif | |
3118 | } | |
3119 | return resultobj; | |
3120 | fail: | |
3121 | return NULL; | |
3122 | } | |
3123 | ||
3124 | ||
3125 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3126 | PyObject *resultobj; | |
3127 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3128 | wxString *arg2 = 0 ; | |
423f194a | 3129 | bool temp2 = False ; |
d14a1e28 RD |
3130 | PyObject * obj0 = 0 ; |
3131 | PyObject * obj1 = 0 ; | |
3132 | char *kwnames[] = { | |
3133 | (char *) "self",(char *) "value", NULL | |
3134 | }; | |
3135 | ||
3136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3139 | { |
3140 | arg2 = wxString_in_helper(obj1); | |
3141 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 3142 | temp2 = True; |
d14a1e28 RD |
3143 | } |
3144 | { | |
3145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3146 | (arg1)->SetValue((wxString const &)*arg2); | |
3147 | ||
3148 | wxPyEndAllowThreads(__tstate); | |
3149 | if (PyErr_Occurred()) SWIG_fail; | |
3150 | } | |
3151 | Py_INCREF(Py_None); resultobj = Py_None; | |
3152 | { | |
3153 | if (temp2) | |
3154 | delete arg2; | |
3155 | } | |
3156 | return resultobj; | |
3157 | fail: | |
3158 | { | |
3159 | if (temp2) | |
3160 | delete arg2; | |
3161 | } | |
3162 | return NULL; | |
3163 | } | |
3164 | ||
3165 | ||
3166 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3167 | PyObject *resultobj; | |
3168 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3169 | PyObject * obj0 = 0 ; | |
3170 | char *kwnames[] = { | |
3171 | (char *) "self", NULL | |
3172 | }; | |
3173 | ||
3174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3177 | { |
3178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3179 | (arg1)->Copy(); | |
3180 | ||
3181 | wxPyEndAllowThreads(__tstate); | |
3182 | if (PyErr_Occurred()) SWIG_fail; | |
3183 | } | |
3184 | Py_INCREF(Py_None); resultobj = Py_None; | |
3185 | return resultobj; | |
3186 | fail: | |
3187 | return NULL; | |
3188 | } | |
3189 | ||
3190 | ||
3191 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3192 | PyObject *resultobj; | |
3193 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3194 | PyObject * obj0 = 0 ; | |
3195 | char *kwnames[] = { | |
3196 | (char *) "self", NULL | |
3197 | }; | |
3198 | ||
3199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3202 | { |
3203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3204 | (arg1)->Cut(); | |
3205 | ||
3206 | wxPyEndAllowThreads(__tstate); | |
3207 | if (PyErr_Occurred()) SWIG_fail; | |
3208 | } | |
3209 | Py_INCREF(Py_None); resultobj = Py_None; | |
3210 | return resultobj; | |
3211 | fail: | |
3212 | return NULL; | |
3213 | } | |
3214 | ||
3215 | ||
3216 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3217 | PyObject *resultobj; | |
3218 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3219 | PyObject * obj0 = 0 ; | |
3220 | char *kwnames[] = { | |
3221 | (char *) "self", NULL | |
3222 | }; | |
3223 | ||
3224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3227 | { |
3228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3229 | (arg1)->Paste(); | |
3230 | ||
3231 | wxPyEndAllowThreads(__tstate); | |
3232 | if (PyErr_Occurred()) SWIG_fail; | |
3233 | } | |
3234 | Py_INCREF(Py_None); resultobj = Py_None; | |
3235 | return resultobj; | |
3236 | fail: | |
3237 | return NULL; | |
3238 | } | |
3239 | ||
3240 | ||
3241 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3242 | PyObject *resultobj; | |
3243 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3244 | long arg2 ; | |
3245 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3246 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3247 | char *kwnames[] = { |
3248 | (char *) "self",(char *) "pos", NULL | |
3249 | }; | |
3250 | ||
8edf1c75 | 3251 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3252 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3253 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3254 | arg2 = (long) SWIG_AsLong(obj1); | |
3255 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3256 | { |
3257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3258 | (arg1)->SetInsertionPoint(arg2); | |
3259 | ||
3260 | wxPyEndAllowThreads(__tstate); | |
3261 | if (PyErr_Occurred()) SWIG_fail; | |
3262 | } | |
3263 | Py_INCREF(Py_None); resultobj = Py_None; | |
3264 | return resultobj; | |
3265 | fail: | |
3266 | return NULL; | |
3267 | } | |
3268 | ||
3269 | ||
3270 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3271 | PyObject *resultobj; | |
3272 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3273 | long result; | |
3274 | PyObject * obj0 = 0 ; | |
3275 | char *kwnames[] = { | |
3276 | (char *) "self", NULL | |
3277 | }; | |
3278 | ||
3279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3282 | { |
3283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3284 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3285 | ||
3286 | wxPyEndAllowThreads(__tstate); | |
3287 | if (PyErr_Occurred()) SWIG_fail; | |
3288 | } | |
2f4c0a16 | 3289 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3290 | return resultobj; |
3291 | fail: | |
3292 | return NULL; | |
3293 | } | |
3294 | ||
3295 | ||
3296 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3297 | PyObject *resultobj; | |
3298 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3299 | long result; | |
3300 | PyObject * obj0 = 0 ; | |
3301 | char *kwnames[] = { | |
3302 | (char *) "self", NULL | |
3303 | }; | |
3304 | ||
3305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3308 | { |
3309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3310 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3311 | ||
3312 | wxPyEndAllowThreads(__tstate); | |
3313 | if (PyErr_Occurred()) SWIG_fail; | |
3314 | } | |
2f4c0a16 | 3315 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3316 | return resultobj; |
3317 | fail: | |
3318 | return NULL; | |
3319 | } | |
3320 | ||
3321 | ||
3322 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3323 | PyObject *resultobj; | |
3324 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3325 | long arg2 ; | |
3326 | long arg3 ; | |
3327 | wxString *arg4 = 0 ; | |
423f194a | 3328 | bool temp4 = False ; |
d14a1e28 | 3329 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3330 | PyObject * obj1 = 0 ; |
3331 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3332 | PyObject * obj3 = 0 ; |
3333 | char *kwnames[] = { | |
3334 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3335 | }; | |
3336 | ||
8edf1c75 | 3337 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
3338 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3339 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3340 | arg2 = (long) SWIG_AsLong(obj1); | |
3341 | if (PyErr_Occurred()) SWIG_fail; | |
3342 | arg3 = (long) SWIG_AsLong(obj2); | |
3343 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
3344 | { |
3345 | arg4 = wxString_in_helper(obj3); | |
3346 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 3347 | temp4 = True; |
d14a1e28 RD |
3348 | } |
3349 | { | |
3350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3351 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3352 | ||
3353 | wxPyEndAllowThreads(__tstate); | |
3354 | if (PyErr_Occurred()) SWIG_fail; | |
3355 | } | |
3356 | Py_INCREF(Py_None); resultobj = Py_None; | |
3357 | { | |
3358 | if (temp4) | |
3359 | delete arg4; | |
3360 | } | |
3361 | return resultobj; | |
3362 | fail: | |
3363 | { | |
3364 | if (temp4) | |
3365 | delete arg4; | |
3366 | } | |
3367 | return NULL; | |
3368 | } | |
3369 | ||
3370 | ||
8a0b029b RD |
3371 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3372 | PyObject *resultobj; | |
3373 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3374 | int arg2 ; | |
3375 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3376 | PyObject * obj1 = 0 ; |
8a0b029b RD |
3377 | char *kwnames[] = { |
3378 | (char *) "self",(char *) "n", NULL | |
3379 | }; | |
3380 | ||
8edf1c75 | 3381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3384 | arg2 = (int) SWIG_AsInt(obj1); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
8a0b029b RD |
3386 | { |
3387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3388 | (arg1)->SetSelection(arg2); | |
3389 | ||
3390 | wxPyEndAllowThreads(__tstate); | |
3391 | if (PyErr_Occurred()) SWIG_fail; | |
3392 | } | |
3393 | Py_INCREF(Py_None); resultobj = Py_None; | |
3394 | return resultobj; | |
3395 | fail: | |
3396 | return NULL; | |
3397 | } | |
3398 | ||
3399 | ||
d14a1e28 RD |
3400 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3401 | PyObject *resultobj; | |
3402 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3403 | long arg2 ; | |
3404 | long arg3 ; | |
3405 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3406 | PyObject * obj1 = 0 ; |
3407 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3408 | char *kwnames[] = { |
3409 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3410 | }; | |
3411 | ||
8edf1c75 | 3412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3415 | arg2 = (long) SWIG_AsLong(obj1); | |
3416 | if (PyErr_Occurred()) SWIG_fail; | |
3417 | arg3 = (long) SWIG_AsLong(obj2); | |
3418 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3419 | { |
3420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3421 | (arg1)->SetSelection(arg2,arg3); | |
3422 | ||
3423 | wxPyEndAllowThreads(__tstate); | |
3424 | if (PyErr_Occurred()) SWIG_fail; | |
3425 | } | |
3426 | Py_INCREF(Py_None); resultobj = Py_None; | |
3427 | return resultobj; | |
3428 | fail: | |
3429 | return NULL; | |
3430 | } | |
3431 | ||
3432 | ||
3433 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3434 | PyObject *resultobj; | |
3435 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3436 | bool arg2 ; | |
3437 | PyObject * obj0 = 0 ; | |
3438 | PyObject * obj1 = 0 ; | |
3439 | char *kwnames[] = { | |
3440 | (char *) "self",(char *) "editable", NULL | |
3441 | }; | |
3442 | ||
3443 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
3444 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3445 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3446 | arg2 = (bool) SWIG_AsBool(obj1); | |
3447 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3448 | { |
3449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3450 | (arg1)->SetEditable(arg2); | |
3451 | ||
3452 | wxPyEndAllowThreads(__tstate); | |
3453 | if (PyErr_Occurred()) SWIG_fail; | |
3454 | } | |
3455 | Py_INCREF(Py_None); resultobj = Py_None; | |
3456 | return resultobj; | |
3457 | fail: | |
3458 | return NULL; | |
3459 | } | |
3460 | ||
3461 | ||
3462 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3463 | PyObject *resultobj; | |
3464 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3465 | PyObject * obj0 = 0 ; | |
3466 | char *kwnames[] = { | |
3467 | (char *) "self", NULL | |
3468 | }; | |
3469 | ||
3470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3473 | { |
3474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3475 | (arg1)->SetInsertionPointEnd(); | |
3476 | ||
3477 | wxPyEndAllowThreads(__tstate); | |
3478 | if (PyErr_Occurred()) SWIG_fail; | |
3479 | } | |
3480 | Py_INCREF(Py_None); resultobj = Py_None; | |
3481 | return resultobj; | |
3482 | fail: | |
3483 | return NULL; | |
3484 | } | |
3485 | ||
3486 | ||
3487 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3488 | PyObject *resultobj; | |
3489 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3490 | long arg2 ; | |
3491 | long arg3 ; | |
3492 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
3493 | PyObject * obj1 = 0 ; |
3494 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3495 | char *kwnames[] = { |
3496 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3497 | }; | |
3498 | ||
8edf1c75 | 3499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
3500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3502 | arg2 = (long) SWIG_AsLong(obj1); | |
3503 | if (PyErr_Occurred()) SWIG_fail; | |
3504 | arg3 = (long) SWIG_AsLong(obj2); | |
3505 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3506 | { |
3507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3508 | (arg1)->Remove(arg2,arg3); | |
3509 | ||
3510 | wxPyEndAllowThreads(__tstate); | |
3511 | if (PyErr_Occurred()) SWIG_fail; | |
3512 | } | |
3513 | Py_INCREF(Py_None); resultobj = Py_None; | |
3514 | return resultobj; | |
3515 | fail: | |
3516 | return NULL; | |
3517 | } | |
3518 | ||
3519 | ||
3520 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { | |
3521 | PyObject *obj; | |
3522 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3523 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3524 | Py_INCREF(obj); | |
3525 | return Py_BuildValue((char *)""); | |
3526 | } | |
2f4c0a16 | 3527 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
d03fd34d RD |
3528 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); |
3529 | return 1; | |
3530 | } | |
3531 | ||
3532 | ||
3533 | static PyObject *_wrap_GaugeNameStr_get() { | |
3534 | PyObject *pyobj; | |
3535 | ||
3536 | { | |
3537 | #if wxUSE_UNICODE | |
3538 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3539 | #else | |
3540 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3541 | #endif | |
3542 | } | |
3543 | return pyobj; | |
3544 | } | |
3545 | ||
3546 | ||
d14a1e28 RD |
3547 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3548 | PyObject *resultobj; | |
3549 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 3550 | int arg2 ; |
d14a1e28 RD |
3551 | int arg3 ; |
3552 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
3553 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3554 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3555 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3556 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3557 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3558 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3559 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3560 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3561 | wxGauge *result; | |
3562 | wxPoint temp4 ; | |
3563 | wxSize temp5 ; | |
423f194a | 3564 | bool temp8 = False ; |
d14a1e28 | 3565 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
3566 | PyObject * obj1 = 0 ; |
3567 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3568 | PyObject * obj3 = 0 ; |
3569 | PyObject * obj4 = 0 ; | |
8edf1c75 | 3570 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3571 | PyObject * obj6 = 0 ; |
3572 | PyObject * obj7 = 0 ; | |
3573 | char *kwnames[] = { | |
3574 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3575 | }; | |
3576 | ||
8edf1c75 | 3577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
3578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3580 | arg2 = (int) SWIG_AsInt(obj1); | |
3581 | if (PyErr_Occurred()) SWIG_fail; | |
3582 | arg3 = (int) SWIG_AsInt(obj2); | |
3583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3584 | if (obj3) { |
3585 | { | |
3586 | arg4 = &temp4; | |
3587 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3588 | } | |
3589 | } | |
3590 | if (obj4) { | |
3591 | { | |
3592 | arg5 = &temp5; | |
3593 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3594 | } | |
3595 | } | |
8edf1c75 | 3596 | if (obj5) { |
2f4c0a16 RD |
3597 | arg6 = (long) SWIG_AsLong(obj5); |
3598 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3599 | } |
d14a1e28 | 3600 | if (obj6) { |
2f4c0a16 RD |
3601 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3602 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3603 | SWIG_fail; | |
d14a1e28 | 3604 | if (arg7 == NULL) { |
2f4c0a16 RD |
3605 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3606 | SWIG_fail; | |
d14a1e28 RD |
3607 | } |
3608 | } | |
3609 | if (obj7) { | |
3610 | { | |
3611 | arg8 = wxString_in_helper(obj7); | |
3612 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 3613 | temp8 = True; |
d14a1e28 RD |
3614 | } |
3615 | } | |
3616 | { | |
3617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3618 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3619 | ||
3620 | wxPyEndAllowThreads(__tstate); | |
3621 | if (PyErr_Occurred()) SWIG_fail; | |
3622 | } | |
2f4c0a16 | 3623 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3624 | { |
3625 | if (temp8) | |
3626 | delete arg8; | |
3627 | } | |
3628 | return resultobj; | |
3629 | fail: | |
3630 | { | |
3631 | if (temp8) | |
3632 | delete arg8; | |
3633 | } | |
3634 | return NULL; | |
3635 | } | |
3636 | ||
3637 | ||
3638 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3639 | PyObject *resultobj; | |
3640 | wxGauge *result; | |
3641 | char *kwnames[] = { | |
3642 | NULL | |
3643 | }; | |
3644 | ||
3645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3646 | { | |
3647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3648 | result = (wxGauge *)new wxGauge(); | |
3649 | ||
3650 | wxPyEndAllowThreads(__tstate); | |
3651 | if (PyErr_Occurred()) SWIG_fail; | |
3652 | } | |
2f4c0a16 | 3653 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3654 | return resultobj; |
3655 | fail: | |
3656 | return NULL; | |
3657 | } | |
3658 | ||
3659 | ||
3660 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3661 | PyObject *resultobj; | |
3662 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3663 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 3664 | int arg3 ; |
d14a1e28 RD |
3665 | int arg4 ; |
3666 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3667 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3668 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3669 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3670 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3671 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3672 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3673 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3674 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3675 | bool result; | |
3676 | wxPoint temp5 ; | |
3677 | wxSize temp6 ; | |
423f194a | 3678 | bool temp9 = False ; |
d14a1e28 RD |
3679 | PyObject * obj0 = 0 ; |
3680 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
3681 | PyObject * obj2 = 0 ; |
3682 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3683 | PyObject * obj4 = 0 ; |
3684 | PyObject * obj5 = 0 ; | |
8edf1c75 | 3685 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3686 | PyObject * obj7 = 0 ; |
3687 | PyObject * obj8 = 0 ; | |
3688 | char *kwnames[] = { | |
3689 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3690 | }; | |
3691 | ||
8edf1c75 | 3692 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
3693 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3694 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3695 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3697 | arg3 = (int) SWIG_AsInt(obj2); | |
3698 | if (PyErr_Occurred()) SWIG_fail; | |
3699 | arg4 = (int) SWIG_AsInt(obj3); | |
3700 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3701 | if (obj4) { |
3702 | { | |
3703 | arg5 = &temp5; | |
3704 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3705 | } | |
3706 | } | |
3707 | if (obj5) { | |
3708 | { | |
3709 | arg6 = &temp6; | |
3710 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3711 | } | |
3712 | } | |
8edf1c75 | 3713 | if (obj6) { |
2f4c0a16 RD |
3714 | arg7 = (long) SWIG_AsLong(obj6); |
3715 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 3716 | } |
d14a1e28 | 3717 | if (obj7) { |
2f4c0a16 RD |
3718 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3719 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3720 | SWIG_fail; | |
d14a1e28 | 3721 | if (arg8 == NULL) { |
2f4c0a16 RD |
3722 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3723 | SWIG_fail; | |
d14a1e28 RD |
3724 | } |
3725 | } | |
3726 | if (obj8) { | |
3727 | { | |
3728 | arg9 = wxString_in_helper(obj8); | |
3729 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 3730 | temp9 = True; |
d14a1e28 RD |
3731 | } |
3732 | } | |
3733 | { | |
3734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3735 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
3736 | ||
3737 | wxPyEndAllowThreads(__tstate); | |
3738 | if (PyErr_Occurred()) SWIG_fail; | |
3739 | } | |
4f89f6a3 RD |
3740 | { |
3741 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3742 | } | |
d14a1e28 RD |
3743 | { |
3744 | if (temp9) | |
3745 | delete arg9; | |
3746 | } | |
3747 | return resultobj; | |
3748 | fail: | |
3749 | { | |
3750 | if (temp9) | |
3751 | delete arg9; | |
3752 | } | |
3753 | return NULL; | |
3754 | } | |
3755 | ||
3756 | ||
3757 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3758 | PyObject *resultobj; | |
3759 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3760 | int arg2 ; | |
3761 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3763 | char *kwnames[] = { |
3764 | (char *) "self",(char *) "range", NULL | |
3765 | }; | |
3766 | ||
8edf1c75 | 3767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3770 | arg2 = (int) SWIG_AsInt(obj1); | |
3771 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3772 | { |
3773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3774 | (arg1)->SetRange(arg2); | |
3775 | ||
3776 | wxPyEndAllowThreads(__tstate); | |
3777 | if (PyErr_Occurred()) SWIG_fail; | |
3778 | } | |
3779 | Py_INCREF(Py_None); resultobj = Py_None; | |
3780 | return resultobj; | |
3781 | fail: | |
3782 | return NULL; | |
3783 | } | |
3784 | ||
3785 | ||
3786 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3787 | PyObject *resultobj; | |
3788 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3789 | int result; | |
3790 | PyObject * obj0 = 0 ; | |
3791 | char *kwnames[] = { | |
3792 | (char *) "self", NULL | |
3793 | }; | |
3794 | ||
3795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3798 | { |
3799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3800 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
3801 | ||
3802 | wxPyEndAllowThreads(__tstate); | |
3803 | if (PyErr_Occurred()) SWIG_fail; | |
3804 | } | |
2f4c0a16 | 3805 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3806 | return resultobj; |
3807 | fail: | |
3808 | return NULL; | |
3809 | } | |
3810 | ||
3811 | ||
3812 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3813 | PyObject *resultobj; | |
3814 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3815 | int arg2 ; | |
3816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3818 | char *kwnames[] = { |
3819 | (char *) "self",(char *) "pos", NULL | |
3820 | }; | |
3821 | ||
8edf1c75 | 3822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3825 | arg2 = (int) SWIG_AsInt(obj1); | |
3826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3827 | { |
3828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3829 | (arg1)->SetValue(arg2); | |
3830 | ||
3831 | wxPyEndAllowThreads(__tstate); | |
3832 | if (PyErr_Occurred()) SWIG_fail; | |
3833 | } | |
3834 | Py_INCREF(Py_None); resultobj = Py_None; | |
3835 | return resultobj; | |
3836 | fail: | |
3837 | return NULL; | |
3838 | } | |
3839 | ||
3840 | ||
3841 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3842 | PyObject *resultobj; | |
3843 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3844 | int result; | |
3845 | PyObject * obj0 = 0 ; | |
3846 | char *kwnames[] = { | |
3847 | (char *) "self", NULL | |
3848 | }; | |
3849 | ||
3850 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3851 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3852 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3853 | { |
3854 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3855 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
3856 | ||
3857 | wxPyEndAllowThreads(__tstate); | |
3858 | if (PyErr_Occurred()) SWIG_fail; | |
3859 | } | |
2f4c0a16 | 3860 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3861 | return resultobj; |
3862 | fail: | |
3863 | return NULL; | |
3864 | } | |
3865 | ||
3866 | ||
3867 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3868 | PyObject *resultobj; | |
3869 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3870 | bool result; | |
3871 | PyObject * obj0 = 0 ; | |
3872 | char *kwnames[] = { | |
3873 | (char *) "self", NULL | |
3874 | }; | |
3875 | ||
3876 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3877 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3878 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3879 | { |
3880 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3881 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
3882 | ||
3883 | wxPyEndAllowThreads(__tstate); | |
3884 | if (PyErr_Occurred()) SWIG_fail; | |
3885 | } | |
4f89f6a3 RD |
3886 | { |
3887 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3888 | } | |
d14a1e28 RD |
3889 | return resultobj; |
3890 | fail: | |
3891 | return NULL; | |
3892 | } | |
3893 | ||
3894 | ||
3895 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3896 | PyObject *resultobj; | |
3897 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3898 | int arg2 ; | |
3899 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3900 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3901 | char *kwnames[] = { |
3902 | (char *) "self",(char *) "w", NULL | |
3903 | }; | |
3904 | ||
8edf1c75 | 3905 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3906 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3907 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3908 | arg2 = (int) SWIG_AsInt(obj1); | |
3909 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3910 | { |
3911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3912 | (arg1)->SetShadowWidth(arg2); | |
3913 | ||
3914 | wxPyEndAllowThreads(__tstate); | |
3915 | if (PyErr_Occurred()) SWIG_fail; | |
3916 | } | |
3917 | Py_INCREF(Py_None); resultobj = Py_None; | |
3918 | return resultobj; | |
3919 | fail: | |
3920 | return NULL; | |
3921 | } | |
3922 | ||
3923 | ||
3924 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3925 | PyObject *resultobj; | |
3926 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3927 | int result; | |
3928 | PyObject * obj0 = 0 ; | |
3929 | char *kwnames[] = { | |
3930 | (char *) "self", NULL | |
3931 | }; | |
3932 | ||
3933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3936 | { |
3937 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3938 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
3939 | ||
3940 | wxPyEndAllowThreads(__tstate); | |
3941 | if (PyErr_Occurred()) SWIG_fail; | |
3942 | } | |
2f4c0a16 | 3943 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3944 | return resultobj; |
3945 | fail: | |
3946 | return NULL; | |
3947 | } | |
3948 | ||
3949 | ||
3950 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3951 | PyObject *resultobj; | |
3952 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3953 | int arg2 ; | |
3954 | PyObject * obj0 = 0 ; | |
8edf1c75 | 3955 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3956 | char *kwnames[] = { |
3957 | (char *) "self",(char *) "w", NULL | |
3958 | }; | |
3959 | ||
8edf1c75 | 3960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
3961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3963 | arg2 = (int) SWIG_AsInt(obj1); | |
3964 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3965 | { |
3966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3967 | (arg1)->SetBezelFace(arg2); | |
3968 | ||
3969 | wxPyEndAllowThreads(__tstate); | |
3970 | if (PyErr_Occurred()) SWIG_fail; | |
3971 | } | |
3972 | Py_INCREF(Py_None); resultobj = Py_None; | |
3973 | return resultobj; | |
3974 | fail: | |
3975 | return NULL; | |
3976 | } | |
3977 | ||
3978 | ||
3979 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3980 | PyObject *resultobj; | |
3981 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3982 | int result; | |
3983 | PyObject * obj0 = 0 ; | |
3984 | char *kwnames[] = { | |
3985 | (char *) "self", NULL | |
3986 | }; | |
3987 | ||
3988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
3989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3991 | { |
3992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3993 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
3994 | ||
3995 | wxPyEndAllowThreads(__tstate); | |
3996 | if (PyErr_Occurred()) SWIG_fail; | |
3997 | } | |
2f4c0a16 | 3998 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
3999 | return resultobj; |
4000 | fail: | |
4001 | return NULL; | |
4002 | } | |
4003 | ||
4004 | ||
4005 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { | |
4006 | PyObject *obj; | |
4007 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4008 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4009 | Py_INCREF(obj); | |
4010 | return Py_BuildValue((char *)""); | |
4011 | } | |
2f4c0a16 | 4012 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
d03fd34d RD |
4013 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); |
4014 | return 1; | |
4015 | } | |
4016 | ||
4017 | ||
4018 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4019 | PyObject *pyobj; | |
4020 | ||
4021 | { | |
4022 | #if wxUSE_UNICODE | |
4023 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4024 | #else | |
4025 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4026 | #endif | |
4027 | } | |
4028 | return pyobj; | |
4029 | } | |
4030 | ||
4031 | ||
2f4c0a16 | 4032 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
4033 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); |
4034 | return 1; | |
4035 | } | |
4036 | ||
4037 | ||
4038 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4039 | PyObject *pyobj; | |
4040 | ||
4041 | { | |
4042 | #if wxUSE_UNICODE | |
4043 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4044 | #else | |
4045 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4046 | #endif | |
4047 | } | |
4048 | return pyobj; | |
4049 | } | |
4050 | ||
4051 | ||
2f4c0a16 | 4052 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { |
d03fd34d RD |
4053 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); |
4054 | return 1; | |
4055 | } | |
4056 | ||
4057 | ||
4058 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4059 | PyObject *pyobj; | |
4060 | ||
4061 | { | |
4062 | #if wxUSE_UNICODE | |
4063 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4064 | #else | |
4065 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4066 | #endif | |
4067 | } | |
4068 | return pyobj; | |
4069 | } | |
4070 | ||
4071 | ||
d14a1e28 RD |
4072 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4073 | PyObject *resultobj; | |
4074 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4075 | int arg2 ; |
d14a1e28 RD |
4076 | wxString *arg3 = 0 ; |
4077 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4078 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4079 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4080 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4081 | long arg6 = (long) 0 ; | |
4082 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4083 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4084 | wxStaticBox *result; | |
423f194a | 4085 | bool temp3 = False ; |
d14a1e28 RD |
4086 | wxPoint temp4 ; |
4087 | wxSize temp5 ; | |
423f194a | 4088 | bool temp7 = False ; |
d14a1e28 | 4089 | PyObject * obj0 = 0 ; |
8edf1c75 | 4090 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4091 | PyObject * obj2 = 0 ; |
4092 | PyObject * obj3 = 0 ; | |
4093 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4094 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4095 | PyObject * obj6 = 0 ; |
4096 | char *kwnames[] = { | |
4097 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4098 | }; | |
4099 | ||
8edf1c75 | 4100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4103 | arg2 = (int) SWIG_AsInt(obj1); | |
4104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4105 | { |
4106 | arg3 = wxString_in_helper(obj2); | |
4107 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4108 | temp3 = True; |
d14a1e28 RD |
4109 | } |
4110 | if (obj3) { | |
4111 | { | |
4112 | arg4 = &temp4; | |
4113 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4114 | } | |
4115 | } | |
4116 | if (obj4) { | |
4117 | { | |
4118 | arg5 = &temp5; | |
4119 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4120 | } | |
4121 | } | |
8edf1c75 | 4122 | if (obj5) { |
2f4c0a16 RD |
4123 | arg6 = (long) SWIG_AsLong(obj5); |
4124 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4125 | } |
d14a1e28 RD |
4126 | if (obj6) { |
4127 | { | |
4128 | arg7 = wxString_in_helper(obj6); | |
4129 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4130 | temp7 = True; |
d14a1e28 RD |
4131 | } |
4132 | } | |
4133 | { | |
4134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4135 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4136 | ||
4137 | wxPyEndAllowThreads(__tstate); | |
4138 | if (PyErr_Occurred()) SWIG_fail; | |
4139 | } | |
4140 | { | |
4141 | resultobj = wxPyMake_wxObject(result); | |
4142 | } | |
4143 | { | |
4144 | if (temp3) | |
4145 | delete arg3; | |
4146 | } | |
4147 | { | |
4148 | if (temp7) | |
4149 | delete arg7; | |
4150 | } | |
4151 | return resultobj; | |
4152 | fail: | |
4153 | { | |
4154 | if (temp3) | |
4155 | delete arg3; | |
4156 | } | |
4157 | { | |
4158 | if (temp7) | |
4159 | delete arg7; | |
4160 | } | |
4161 | return NULL; | |
4162 | } | |
4163 | ||
4164 | ||
4165 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4166 | PyObject *resultobj; | |
4167 | wxStaticBox *result; | |
4168 | char *kwnames[] = { | |
4169 | NULL | |
4170 | }; | |
4171 | ||
4172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4173 | { | |
4174 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4175 | result = (wxStaticBox *)new wxStaticBox(); | |
4176 | ||
4177 | wxPyEndAllowThreads(__tstate); | |
4178 | if (PyErr_Occurred()) SWIG_fail; | |
4179 | } | |
4180 | { | |
4181 | resultobj = wxPyMake_wxObject(result); | |
4182 | } | |
4183 | return resultobj; | |
4184 | fail: | |
4185 | return NULL; | |
4186 | } | |
4187 | ||
4188 | ||
4189 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4190 | PyObject *resultobj; | |
4191 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4192 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4193 | int arg3 ; |
d14a1e28 RD |
4194 | wxString *arg4 = 0 ; |
4195 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4196 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4197 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4198 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4199 | long arg7 = (long) 0 ; | |
4200 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4201 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4202 | bool result; | |
423f194a | 4203 | bool temp4 = False ; |
d14a1e28 RD |
4204 | wxPoint temp5 ; |
4205 | wxSize temp6 ; | |
423f194a | 4206 | bool temp8 = False ; |
d14a1e28 RD |
4207 | PyObject * obj0 = 0 ; |
4208 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4209 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4210 | PyObject * obj3 = 0 ; |
4211 | PyObject * obj4 = 0 ; | |
4212 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4213 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4214 | PyObject * obj7 = 0 ; |
4215 | char *kwnames[] = { | |
4216 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4217 | }; | |
4218 | ||
8edf1c75 | 4219 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4220 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4222 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4224 | arg3 = (int) SWIG_AsInt(obj2); | |
4225 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4226 | { |
4227 | arg4 = wxString_in_helper(obj3); | |
4228 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4229 | temp4 = True; |
d14a1e28 RD |
4230 | } |
4231 | if (obj4) { | |
4232 | { | |
4233 | arg5 = &temp5; | |
4234 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4235 | } | |
4236 | } | |
4237 | if (obj5) { | |
4238 | { | |
4239 | arg6 = &temp6; | |
4240 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4241 | } | |
4242 | } | |
8edf1c75 | 4243 | if (obj6) { |
2f4c0a16 RD |
4244 | arg7 = (long) SWIG_AsLong(obj6); |
4245 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4246 | } |
d14a1e28 RD |
4247 | if (obj7) { |
4248 | { | |
4249 | arg8 = wxString_in_helper(obj7); | |
4250 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4251 | temp8 = True; |
d14a1e28 RD |
4252 | } |
4253 | } | |
4254 | { | |
4255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4256 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4257 | ||
4258 | wxPyEndAllowThreads(__tstate); | |
4259 | if (PyErr_Occurred()) SWIG_fail; | |
4260 | } | |
4f89f6a3 RD |
4261 | { |
4262 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4263 | } | |
d14a1e28 RD |
4264 | { |
4265 | if (temp4) | |
4266 | delete arg4; | |
4267 | } | |
4268 | { | |
4269 | if (temp8) | |
4270 | delete arg8; | |
4271 | } | |
4272 | return resultobj; | |
4273 | fail: | |
4274 | { | |
4275 | if (temp4) | |
4276 | delete arg4; | |
4277 | } | |
4278 | { | |
4279 | if (temp8) | |
4280 | delete arg8; | |
4281 | } | |
4282 | return NULL; | |
4283 | } | |
4284 | ||
4285 | ||
4286 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { | |
4287 | PyObject *obj; | |
4288 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4289 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4290 | Py_INCREF(obj); | |
4291 | return Py_BuildValue((char *)""); | |
4292 | } | |
4293 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4294 | PyObject *resultobj; | |
4295 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4296 | int arg2 ; |
d14a1e28 RD |
4297 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4298 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4299 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4300 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4301 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4302 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4303 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4304 | wxStaticLine *result; | |
4305 | wxPoint temp3 ; | |
4306 | wxSize temp4 ; | |
423f194a | 4307 | bool temp6 = False ; |
d14a1e28 | 4308 | PyObject * obj0 = 0 ; |
8edf1c75 | 4309 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4310 | PyObject * obj2 = 0 ; |
4311 | PyObject * obj3 = 0 ; | |
8edf1c75 | 4312 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4313 | PyObject * obj5 = 0 ; |
4314 | char *kwnames[] = { | |
4315 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4316 | }; | |
4317 | ||
8edf1c75 | 4318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
4319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4321 | arg2 = (int) SWIG_AsInt(obj1); | |
4322 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4323 | if (obj2) { |
4324 | { | |
4325 | arg3 = &temp3; | |
4326 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4327 | } | |
4328 | } | |
4329 | if (obj3) { | |
4330 | { | |
4331 | arg4 = &temp4; | |
4332 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4333 | } | |
4334 | } | |
8edf1c75 | 4335 | if (obj4) { |
2f4c0a16 RD |
4336 | arg5 = (long) SWIG_AsLong(obj4); |
4337 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4338 | } |
d14a1e28 RD |
4339 | if (obj5) { |
4340 | { | |
4341 | arg6 = wxString_in_helper(obj5); | |
4342 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 4343 | temp6 = True; |
d14a1e28 RD |
4344 | } |
4345 | } | |
4346 | { | |
4347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4348 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4349 | ||
4350 | wxPyEndAllowThreads(__tstate); | |
4351 | if (PyErr_Occurred()) SWIG_fail; | |
4352 | } | |
2f4c0a16 | 4353 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4354 | { |
4355 | if (temp6) | |
4356 | delete arg6; | |
4357 | } | |
4358 | return resultobj; | |
4359 | fail: | |
4360 | { | |
4361 | if (temp6) | |
4362 | delete arg6; | |
4363 | } | |
4364 | return NULL; | |
4365 | } | |
4366 | ||
4367 | ||
4368 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4369 | PyObject *resultobj; | |
4370 | wxStaticLine *result; | |
4371 | char *kwnames[] = { | |
4372 | NULL | |
4373 | }; | |
4374 | ||
4375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4376 | { | |
4377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4378 | result = (wxStaticLine *)new wxStaticLine(); | |
4379 | ||
4380 | wxPyEndAllowThreads(__tstate); | |
4381 | if (PyErr_Occurred()) SWIG_fail; | |
4382 | } | |
2f4c0a16 | 4383 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4384 | return resultobj; |
4385 | fail: | |
4386 | return NULL; | |
4387 | } | |
4388 | ||
4389 | ||
4390 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4391 | PyObject *resultobj; | |
4392 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4393 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4394 | int arg3 ; |
d14a1e28 RD |
4395 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4396 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4397 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4398 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4399 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4400 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4401 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4402 | bool result; | |
4403 | wxPoint temp4 ; | |
4404 | wxSize temp5 ; | |
423f194a | 4405 | bool temp7 = False ; |
d14a1e28 RD |
4406 | PyObject * obj0 = 0 ; |
4407 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4408 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4409 | PyObject * obj3 = 0 ; |
4410 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4411 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4412 | PyObject * obj6 = 0 ; |
4413 | char *kwnames[] = { | |
4414 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4415 | }; | |
4416 | ||
8edf1c75 | 4417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4422 | arg3 = (int) SWIG_AsInt(obj2); | |
4423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4424 | if (obj3) { |
4425 | { | |
4426 | arg4 = &temp4; | |
4427 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4428 | } | |
4429 | } | |
4430 | if (obj4) { | |
4431 | { | |
4432 | arg5 = &temp5; | |
4433 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4434 | } | |
4435 | } | |
8edf1c75 | 4436 | if (obj5) { |
2f4c0a16 RD |
4437 | arg6 = (long) SWIG_AsLong(obj5); |
4438 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4439 | } |
d14a1e28 RD |
4440 | if (obj6) { |
4441 | { | |
4442 | arg7 = wxString_in_helper(obj6); | |
4443 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4444 | temp7 = True; |
d14a1e28 RD |
4445 | } |
4446 | } | |
4447 | { | |
4448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4449 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4450 | ||
4451 | wxPyEndAllowThreads(__tstate); | |
4452 | if (PyErr_Occurred()) SWIG_fail; | |
4453 | } | |
4f89f6a3 RD |
4454 | { |
4455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4456 | } | |
d14a1e28 RD |
4457 | { |
4458 | if (temp7) | |
4459 | delete arg7; | |
4460 | } | |
4461 | return resultobj; | |
4462 | fail: | |
4463 | { | |
4464 | if (temp7) | |
4465 | delete arg7; | |
4466 | } | |
4467 | return NULL; | |
4468 | } | |
4469 | ||
4470 | ||
4471 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4472 | PyObject *resultobj; | |
4473 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4474 | bool result; | |
4475 | PyObject * obj0 = 0 ; | |
4476 | char *kwnames[] = { | |
4477 | (char *) "self", NULL | |
4478 | }; | |
4479 | ||
4480 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4481 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4482 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4483 | { |
4484 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4485 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4486 | ||
4487 | wxPyEndAllowThreads(__tstate); | |
4488 | if (PyErr_Occurred()) SWIG_fail; | |
4489 | } | |
4f89f6a3 RD |
4490 | { |
4491 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4492 | } | |
d14a1e28 RD |
4493 | return resultobj; |
4494 | fail: | |
4495 | return NULL; | |
4496 | } | |
4497 | ||
4498 | ||
4499 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4500 | PyObject *resultobj; | |
4501 | int result; | |
4502 | char *kwnames[] = { | |
4503 | NULL | |
4504 | }; | |
4505 | ||
4506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4507 | { | |
4508 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4509 | result = (int)wxStaticLine::GetDefaultSize(); | |
4510 | ||
4511 | wxPyEndAllowThreads(__tstate); | |
4512 | if (PyErr_Occurred()) SWIG_fail; | |
4513 | } | |
2f4c0a16 | 4514 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4515 | return resultobj; |
4516 | fail: | |
4517 | return NULL; | |
4518 | } | |
4519 | ||
4520 | ||
4521 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { | |
4522 | PyObject *obj; | |
4523 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4524 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4525 | Py_INCREF(obj); | |
4526 | return Py_BuildValue((char *)""); | |
4527 | } | |
4528 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4529 | PyObject *resultobj; | |
4530 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4531 | int arg2 ; |
d14a1e28 RD |
4532 | wxString *arg3 = 0 ; |
4533 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4534 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4535 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4536 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4537 | long arg6 = (long) 0 ; | |
4538 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4539 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4540 | wxStaticText *result; | |
423f194a | 4541 | bool temp3 = False ; |
d14a1e28 RD |
4542 | wxPoint temp4 ; |
4543 | wxSize temp5 ; | |
423f194a | 4544 | bool temp7 = False ; |
d14a1e28 | 4545 | PyObject * obj0 = 0 ; |
8edf1c75 | 4546 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4547 | PyObject * obj2 = 0 ; |
4548 | PyObject * obj3 = 0 ; | |
4549 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4550 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4551 | PyObject * obj6 = 0 ; |
4552 | char *kwnames[] = { | |
4553 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4554 | }; | |
4555 | ||
8edf1c75 | 4556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4559 | arg2 = (int) SWIG_AsInt(obj1); | |
4560 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4561 | { |
4562 | arg3 = wxString_in_helper(obj2); | |
4563 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 4564 | temp3 = True; |
d14a1e28 RD |
4565 | } |
4566 | if (obj3) { | |
4567 | { | |
4568 | arg4 = &temp4; | |
4569 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4570 | } | |
4571 | } | |
4572 | if (obj4) { | |
4573 | { | |
4574 | arg5 = &temp5; | |
4575 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4576 | } | |
4577 | } | |
8edf1c75 | 4578 | if (obj5) { |
2f4c0a16 RD |
4579 | arg6 = (long) SWIG_AsLong(obj5); |
4580 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4581 | } |
d14a1e28 RD |
4582 | if (obj6) { |
4583 | { | |
4584 | arg7 = wxString_in_helper(obj6); | |
4585 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4586 | temp7 = True; |
d14a1e28 RD |
4587 | } |
4588 | } | |
4589 | { | |
4590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4591 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4592 | ||
4593 | wxPyEndAllowThreads(__tstate); | |
4594 | if (PyErr_Occurred()) SWIG_fail; | |
4595 | } | |
2f4c0a16 | 4596 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4597 | { |
4598 | if (temp3) | |
4599 | delete arg3; | |
4600 | } | |
4601 | { | |
4602 | if (temp7) | |
4603 | delete arg7; | |
4604 | } | |
4605 | return resultobj; | |
4606 | fail: | |
4607 | { | |
4608 | if (temp3) | |
4609 | delete arg3; | |
4610 | } | |
4611 | { | |
4612 | if (temp7) | |
4613 | delete arg7; | |
4614 | } | |
4615 | return NULL; | |
4616 | } | |
4617 | ||
4618 | ||
4619 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4620 | PyObject *resultobj; | |
4621 | wxStaticText *result; | |
4622 | char *kwnames[] = { | |
4623 | NULL | |
4624 | }; | |
4625 | ||
4626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
4627 | { | |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4629 | result = (wxStaticText *)new wxStaticText(); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
4632 | if (PyErr_Occurred()) SWIG_fail; | |
4633 | } | |
2f4c0a16 | 4634 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
4635 | return resultobj; |
4636 | fail: | |
4637 | return NULL; | |
4638 | } | |
4639 | ||
4640 | ||
4641 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4642 | PyObject *resultobj; | |
4643 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
4644 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4645 | int arg3 ; |
d14a1e28 RD |
4646 | wxString *arg4 = 0 ; |
4647 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4648 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4649 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4650 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4651 | long arg7 = (long) 0 ; | |
4652 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
4653 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4654 | bool result; | |
423f194a | 4655 | bool temp4 = False ; |
d14a1e28 RD |
4656 | wxPoint temp5 ; |
4657 | wxSize temp6 ; | |
423f194a | 4658 | bool temp8 = False ; |
d14a1e28 RD |
4659 | PyObject * obj0 = 0 ; |
4660 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4661 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4662 | PyObject * obj3 = 0 ; |
4663 | PyObject * obj4 = 0 ; | |
4664 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4665 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4666 | PyObject * obj7 = 0 ; |
4667 | char *kwnames[] = { | |
4668 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4669 | }; | |
4670 | ||
8edf1c75 | 4671 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4672 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
4673 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4674 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4676 | arg3 = (int) SWIG_AsInt(obj2); | |
4677 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4678 | { |
4679 | arg4 = wxString_in_helper(obj3); | |
4680 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 4681 | temp4 = True; |
d14a1e28 RD |
4682 | } |
4683 | if (obj4) { | |
4684 | { | |
4685 | arg5 = &temp5; | |
4686 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4687 | } | |
4688 | } | |
4689 | if (obj5) { | |
4690 | { | |
4691 | arg6 = &temp6; | |
4692 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4693 | } | |
4694 | } | |
8edf1c75 | 4695 | if (obj6) { |
2f4c0a16 RD |
4696 | arg7 = (long) SWIG_AsLong(obj6); |
4697 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4698 | } |
d14a1e28 RD |
4699 | if (obj7) { |
4700 | { | |
4701 | arg8 = wxString_in_helper(obj7); | |
4702 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4703 | temp8 = True; |
d14a1e28 RD |
4704 | } |
4705 | } | |
4706 | { | |
4707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4708 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4709 | ||
4710 | wxPyEndAllowThreads(__tstate); | |
4711 | if (PyErr_Occurred()) SWIG_fail; | |
4712 | } | |
4f89f6a3 RD |
4713 | { |
4714 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4715 | } | |
d14a1e28 RD |
4716 | { |
4717 | if (temp4) | |
4718 | delete arg4; | |
4719 | } | |
4720 | { | |
4721 | if (temp8) | |
4722 | delete arg8; | |
4723 | } | |
4724 | return resultobj; | |
4725 | fail: | |
4726 | { | |
4727 | if (temp4) | |
4728 | delete arg4; | |
4729 | } | |
4730 | { | |
4731 | if (temp8) | |
4732 | delete arg8; | |
4733 | } | |
4734 | return NULL; | |
4735 | } | |
4736 | ||
4737 | ||
4738 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { | |
4739 | PyObject *obj; | |
4740 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4741 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
4742 | Py_INCREF(obj); | |
4743 | return Py_BuildValue((char *)""); | |
4744 | } | |
4745 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4746 | PyObject *resultobj; | |
4747 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 4748 | int arg2 ; |
d14a1e28 RD |
4749 | wxBitmap *arg3 = 0 ; |
4750 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
4751 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4752 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4753 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4754 | long arg6 = (long) 0 ; | |
4755 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
4756 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4757 | wxStaticBitmap *result; | |
4758 | wxPoint temp4 ; | |
4759 | wxSize temp5 ; | |
423f194a | 4760 | bool temp7 = False ; |
d14a1e28 | 4761 | PyObject * obj0 = 0 ; |
8edf1c75 | 4762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4763 | PyObject * obj2 = 0 ; |
4764 | PyObject * obj3 = 0 ; | |
4765 | PyObject * obj4 = 0 ; | |
8edf1c75 | 4766 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4767 | PyObject * obj6 = 0 ; |
4768 | char *kwnames[] = { | |
4769 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4770 | }; | |
4771 | ||
8edf1c75 | 4772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
4773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4775 | arg2 = (int) SWIG_AsInt(obj1); | |
4776 | if (PyErr_Occurred()) SWIG_fail; | |
4777 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
4778 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4779 | SWIG_fail; | |
d14a1e28 | 4780 | if (arg3 == NULL) { |
2f4c0a16 RD |
4781 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4782 | SWIG_fail; | |
d14a1e28 RD |
4783 | } |
4784 | if (obj3) { | |
4785 | { | |
4786 | arg4 = &temp4; | |
4787 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4788 | } | |
4789 | } | |
4790 | if (obj4) { | |
4791 | { | |
4792 | arg5 = &temp5; | |
4793 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4794 | } | |
4795 | } | |
8edf1c75 | 4796 | if (obj5) { |
2f4c0a16 RD |
4797 | arg6 = (long) SWIG_AsLong(obj5); |
4798 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4799 | } |
d14a1e28 RD |
4800 | if (obj6) { |
4801 | { | |
4802 | arg7 = wxString_in_helper(obj6); | |
4803 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 4804 | temp7 = True; |
d14a1e28 RD |
4805 | } |
4806 | } | |
4807 | { | |
4808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4809 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4810 | ||
4811 | wxPyEndAllowThreads(__tstate); | |
4812 | if (PyErr_Occurred()) SWIG_fail; | |
4813 | } | |
2f4c0a16 | 4814 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4815 | { |
4816 | if (temp7) | |
4817 | delete arg7; | |
4818 | } | |
4819 | return resultobj; | |
4820 | fail: | |
4821 | { | |
4822 | if (temp7) | |
4823 | delete arg7; | |
4824 | } | |
4825 | return NULL; | |
4826 | } | |
4827 | ||
4828 | ||
4829 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4830 | PyObject *resultobj; | |
4831 | wxStaticBitmap *result; | |
4832 | char *kwnames[] = { | |
4833 | NULL | |
4834 | }; | |
4835 | ||
4836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
4837 | { | |
4838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4839 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
4840 | ||
4841 | wxPyEndAllowThreads(__tstate); | |
4842 | if (PyErr_Occurred()) SWIG_fail; | |
4843 | } | |
2f4c0a16 | 4844 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
4845 | return resultobj; |
4846 | fail: | |
4847 | return NULL; | |
4848 | } | |
4849 | ||
4850 | ||
4851 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4852 | PyObject *resultobj; | |
4853 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4854 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 4855 | int arg3 ; |
d14a1e28 RD |
4856 | wxBitmap *arg4 = 0 ; |
4857 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
4858 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4859 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4860 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4861 | long arg7 = (long) 0 ; | |
4862 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
4863 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4864 | bool result; | |
4865 | wxPoint temp5 ; | |
4866 | wxSize temp6 ; | |
423f194a | 4867 | bool temp8 = False ; |
d14a1e28 RD |
4868 | PyObject * obj0 = 0 ; |
4869 | PyObject * obj1 = 0 ; | |
8edf1c75 | 4870 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4871 | PyObject * obj3 = 0 ; |
4872 | PyObject * obj4 = 0 ; | |
4873 | PyObject * obj5 = 0 ; | |
8edf1c75 | 4874 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4875 | PyObject * obj7 = 0 ; |
4876 | char *kwnames[] = { | |
4877 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4878 | }; | |
4879 | ||
8edf1c75 | 4880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
4881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4883 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4885 | arg3 = (int) SWIG_AsInt(obj2); | |
4886 | if (PyErr_Occurred()) SWIG_fail; | |
4887 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
4888 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4889 | SWIG_fail; | |
d14a1e28 | 4890 | if (arg4 == NULL) { |
2f4c0a16 RD |
4891 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4892 | SWIG_fail; | |
d14a1e28 RD |
4893 | } |
4894 | if (obj4) { | |
4895 | { | |
4896 | arg5 = &temp5; | |
4897 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4898 | } | |
4899 | } | |
4900 | if (obj5) { | |
4901 | { | |
4902 | arg6 = &temp6; | |
4903 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4904 | } | |
4905 | } | |
8edf1c75 | 4906 | if (obj6) { |
2f4c0a16 RD |
4907 | arg7 = (long) SWIG_AsLong(obj6); |
4908 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 4909 | } |
d14a1e28 RD |
4910 | if (obj7) { |
4911 | { | |
4912 | arg8 = wxString_in_helper(obj7); | |
4913 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 4914 | temp8 = True; |
d14a1e28 RD |
4915 | } |
4916 | } | |
4917 | { | |
4918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4919 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4920 | ||
4921 | wxPyEndAllowThreads(__tstate); | |
4922 | if (PyErr_Occurred()) SWIG_fail; | |
4923 | } | |
4f89f6a3 RD |
4924 | { |
4925 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4926 | } | |
d14a1e28 RD |
4927 | { |
4928 | if (temp8) | |
4929 | delete arg8; | |
4930 | } | |
4931 | return resultobj; | |
4932 | fail: | |
4933 | { | |
4934 | if (temp8) | |
4935 | delete arg8; | |
4936 | } | |
4937 | return NULL; | |
4938 | } | |
4939 | ||
4940 | ||
4941 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4942 | PyObject *resultobj; | |
4943 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4944 | wxBitmap result; | |
4945 | PyObject * obj0 = 0 ; | |
4946 | char *kwnames[] = { | |
4947 | (char *) "self", NULL | |
4948 | }; | |
4949 | ||
4950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
4951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4953 | { |
4954 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4955 | result = (arg1)->GetBitmap(); | |
4956 | ||
4957 | wxPyEndAllowThreads(__tstate); | |
4958 | if (PyErr_Occurred()) SWIG_fail; | |
4959 | } | |
4960 | { | |
4961 | wxBitmap * resultptr; | |
4962 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 4963 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
4964 | } |
4965 | return resultobj; | |
4966 | fail: | |
4967 | return NULL; | |
4968 | } | |
4969 | ||
4970 | ||
4971 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4972 | PyObject *resultobj; | |
4973 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
4974 | wxBitmap *arg2 = 0 ; | |
4975 | PyObject * obj0 = 0 ; | |
4976 | PyObject * obj1 = 0 ; | |
4977 | char *kwnames[] = { | |
4978 | (char *) "self",(char *) "bitmap", NULL | |
4979 | }; | |
4980 | ||
4981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
4982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
4983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4984 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
4985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4986 | SWIG_fail; | |
d14a1e28 | 4987 | if (arg2 == NULL) { |
2f4c0a16 RD |
4988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4989 | SWIG_fail; | |
d14a1e28 RD |
4990 | } |
4991 | { | |
4992 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4993 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
4994 | ||
4995 | wxPyEndAllowThreads(__tstate); | |
4996 | if (PyErr_Occurred()) SWIG_fail; | |
4997 | } | |
4998 | Py_INCREF(Py_None); resultobj = Py_None; | |
4999 | return resultobj; | |
5000 | fail: | |
5001 | return NULL; | |
5002 | } | |
5003 | ||
5004 | ||
5005 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5006 | PyObject *resultobj; | |
5007 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5008 | wxIcon *arg2 = 0 ; | |
5009 | PyObject * obj0 = 0 ; | |
5010 | PyObject * obj1 = 0 ; | |
5011 | char *kwnames[] = { | |
5012 | (char *) "self",(char *) "icon", NULL | |
5013 | }; | |
5014 | ||
5015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5018 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5019 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5020 | SWIG_fail; | |
d14a1e28 | 5021 | if (arg2 == NULL) { |
2f4c0a16 RD |
5022 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5023 | SWIG_fail; | |
d14a1e28 RD |
5024 | } |
5025 | { | |
5026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5027 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5028 | ||
5029 | wxPyEndAllowThreads(__tstate); | |
5030 | if (PyErr_Occurred()) SWIG_fail; | |
5031 | } | |
5032 | Py_INCREF(Py_None); resultobj = Py_None; | |
5033 | return resultobj; | |
5034 | fail: | |
5035 | return NULL; | |
5036 | } | |
5037 | ||
5038 | ||
5039 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { | |
5040 | PyObject *obj; | |
5041 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5042 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5043 | Py_INCREF(obj); | |
5044 | return Py_BuildValue((char *)""); | |
5045 | } | |
2f4c0a16 | 5046 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
5047 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); |
5048 | return 1; | |
5049 | } | |
5050 | ||
5051 | ||
5052 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5053 | PyObject *pyobj; | |
5054 | ||
5055 | { | |
5056 | #if wxUSE_UNICODE | |
5057 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5058 | #else | |
5059 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5060 | #endif | |
5061 | } | |
5062 | return pyobj; | |
5063 | } | |
5064 | ||
5065 | ||
d14a1e28 RD |
5066 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5067 | PyObject *resultobj; | |
5068 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 5069 | int arg2 ; |
d14a1e28 RD |
5070 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5071 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5072 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5073 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
5074 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5075 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5076 | long arg6 = (long) 0 ; | |
5077 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5078 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5079 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5080 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5081 | wxListBox *result; |
5082 | wxPoint temp3 ; | |
5083 | wxSize temp4 ; | |
db914595 | 5084 | bool temp5 = False ; |
423f194a | 5085 | bool temp8 = False ; |
d14a1e28 | 5086 | PyObject * obj0 = 0 ; |
8edf1c75 | 5087 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5088 | PyObject * obj2 = 0 ; |
5089 | PyObject * obj3 = 0 ; | |
5090 | PyObject * obj4 = 0 ; | |
8edf1c75 | 5091 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5092 | PyObject * obj6 = 0 ; |
5093 | PyObject * obj7 = 0 ; | |
5094 | char *kwnames[] = { | |
5095 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5096 | }; | |
5097 | ||
8edf1c75 | 5098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
5099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5101 | arg2 = (int) SWIG_AsInt(obj1); | |
5102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5103 | if (obj2) { |
5104 | { | |
5105 | arg3 = &temp3; | |
5106 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5107 | } | |
5108 | } | |
5109 | if (obj3) { | |
5110 | { | |
5111 | arg4 = &temp4; | |
5112 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5113 | } | |
5114 | } | |
5115 | if (obj4) { | |
5116 | { | |
4e760a36 RD |
5117 | if (! PySequence_Check(obj4)) { |
5118 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5119 | SWIG_fail; | |
5120 | } | |
5121 | arg5 = new wxArrayString; | |
db914595 | 5122 | temp5 = True; |
4e760a36 RD |
5123 | int i, len=PySequence_Length(obj4); |
5124 | for (i=0; i<len; i++) { | |
5125 | PyObject* item = PySequence_GetItem(obj4, i); | |
5126 | #if wxUSE_UNICODE | |
5127 | PyObject* str = PyObject_Unicode(item); | |
5128 | #else | |
5129 | PyObject* str = PyObject_Str(item); | |
5130 | #endif | |
5131 | arg5->Add(Py2wxString(str)); | |
5132 | Py_DECREF(item); | |
5133 | Py_DECREF(str); | |
5134 | } | |
d14a1e28 RD |
5135 | } |
5136 | } | |
8edf1c75 | 5137 | if (obj5) { |
2f4c0a16 RD |
5138 | arg6 = (long) SWIG_AsLong(obj5); |
5139 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5140 | } |
d14a1e28 | 5141 | if (obj6) { |
2f4c0a16 RD |
5142 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5143 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5144 | SWIG_fail; | |
4e760a36 | 5145 | if (arg7 == NULL) { |
2f4c0a16 RD |
5146 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5147 | SWIG_fail; | |
d14a1e28 RD |
5148 | } |
5149 | } | |
5150 | if (obj7) { | |
5151 | { | |
4e760a36 RD |
5152 | arg8 = wxString_in_helper(obj7); |
5153 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 5154 | temp8 = True; |
d14a1e28 RD |
5155 | } |
5156 | } | |
5157 | { | |
5158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5159 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5160 | |
5161 | wxPyEndAllowThreads(__tstate); | |
5162 | if (PyErr_Occurred()) SWIG_fail; | |
5163 | } | |
2f4c0a16 | 5164 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5165 | { |
db914595 | 5166 | if (temp5) delete arg5; |
d14a1e28 RD |
5167 | } |
5168 | { | |
5169 | if (temp8) | |
4e760a36 | 5170 | delete arg8; |
d14a1e28 RD |
5171 | } |
5172 | return resultobj; | |
5173 | fail: | |
5174 | { | |
db914595 | 5175 | if (temp5) delete arg5; |
d14a1e28 RD |
5176 | } |
5177 | { | |
5178 | if (temp8) | |
4e760a36 | 5179 | delete arg8; |
d14a1e28 RD |
5180 | } |
5181 | return NULL; | |
5182 | } | |
5183 | ||
5184 | ||
5185 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5186 | PyObject *resultobj; | |
5187 | wxListBox *result; | |
5188 | char *kwnames[] = { | |
5189 | NULL | |
5190 | }; | |
5191 | ||
5192 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5193 | { | |
5194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5195 | result = (wxListBox *)new wxListBox(); | |
5196 | ||
5197 | wxPyEndAllowThreads(__tstate); | |
5198 | if (PyErr_Occurred()) SWIG_fail; | |
5199 | } | |
2f4c0a16 | 5200 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5201 | return resultobj; |
5202 | fail: | |
5203 | return NULL; | |
5204 | } | |
5205 | ||
5206 | ||
5207 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5208 | PyObject *resultobj; | |
5209 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5210 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 5211 | int arg3 ; |
d14a1e28 RD |
5212 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5213 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5214 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5215 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
5216 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5217 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5218 | long arg7 = (long) 0 ; | |
5219 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5220 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5221 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5222 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5223 | bool result; |
5224 | wxPoint temp4 ; | |
5225 | wxSize temp5 ; | |
db914595 | 5226 | bool temp6 = False ; |
423f194a | 5227 | bool temp9 = False ; |
d14a1e28 RD |
5228 | PyObject * obj0 = 0 ; |
5229 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5230 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5231 | PyObject * obj3 = 0 ; |
5232 | PyObject * obj4 = 0 ; | |
5233 | PyObject * obj5 = 0 ; | |
8edf1c75 | 5234 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5235 | PyObject * obj7 = 0 ; |
5236 | PyObject * obj8 = 0 ; | |
5237 | char *kwnames[] = { | |
5238 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5239 | }; | |
5240 | ||
8edf1c75 | 5241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
5242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5244 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5245 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5246 | arg3 = (int) SWIG_AsInt(obj2); | |
5247 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5248 | if (obj3) { |
5249 | { | |
5250 | arg4 = &temp4; | |
5251 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5252 | } | |
5253 | } | |
5254 | if (obj4) { | |
5255 | { | |
5256 | arg5 = &temp5; | |
5257 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5258 | } | |
5259 | } | |
5260 | if (obj5) { | |
5261 | { | |
4e760a36 RD |
5262 | if (! PySequence_Check(obj5)) { |
5263 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5264 | SWIG_fail; | |
5265 | } | |
5266 | arg6 = new wxArrayString; | |
db914595 | 5267 | temp6 = True; |
4e760a36 RD |
5268 | int i, len=PySequence_Length(obj5); |
5269 | for (i=0; i<len; i++) { | |
5270 | PyObject* item = PySequence_GetItem(obj5, i); | |
5271 | #if wxUSE_UNICODE | |
5272 | PyObject* str = PyObject_Unicode(item); | |
5273 | #else | |
5274 | PyObject* str = PyObject_Str(item); | |
5275 | #endif | |
5276 | arg6->Add(Py2wxString(str)); | |
5277 | Py_DECREF(item); | |
5278 | Py_DECREF(str); | |
5279 | } | |
d14a1e28 RD |
5280 | } |
5281 | } | |
8edf1c75 | 5282 | if (obj6) { |
2f4c0a16 RD |
5283 | arg7 = (long) SWIG_AsLong(obj6); |
5284 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5285 | } |
d14a1e28 | 5286 | if (obj7) { |
2f4c0a16 RD |
5287 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5288 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5289 | SWIG_fail; | |
4e760a36 | 5290 | if (arg8 == NULL) { |
2f4c0a16 RD |
5291 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5292 | SWIG_fail; | |
d14a1e28 RD |
5293 | } |
5294 | } | |
5295 | if (obj8) { | |
5296 | { | |
4e760a36 RD |
5297 | arg9 = wxString_in_helper(obj8); |
5298 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 5299 | temp9 = True; |
d14a1e28 RD |
5300 | } |
5301 | } | |
5302 | { | |
5303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 5304 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5305 | |
5306 | wxPyEndAllowThreads(__tstate); | |
5307 | if (PyErr_Occurred()) SWIG_fail; | |
5308 | } | |
4f89f6a3 RD |
5309 | { |
5310 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5311 | } | |
d14a1e28 | 5312 | { |
db914595 | 5313 | if (temp6) delete arg6; |
d14a1e28 RD |
5314 | } |
5315 | { | |
5316 | if (temp9) | |
4e760a36 | 5317 | delete arg9; |
d14a1e28 RD |
5318 | } |
5319 | return resultobj; | |
5320 | fail: | |
5321 | { | |
db914595 | 5322 | if (temp6) delete arg6; |
d14a1e28 RD |
5323 | } |
5324 | { | |
5325 | if (temp9) | |
4e760a36 | 5326 | delete arg9; |
d14a1e28 RD |
5327 | } |
5328 | return NULL; | |
5329 | } | |
5330 | ||
5331 | ||
5332 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5333 | PyObject *resultobj; | |
5334 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5335 | wxString *arg2 = 0 ; | |
5336 | int arg3 ; | |
5337 | PyObject *arg4 = (PyObject *) NULL ; | |
423f194a | 5338 | bool temp2 = False ; |
d14a1e28 RD |
5339 | PyObject * obj0 = 0 ; |
5340 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5341 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5342 | PyObject * obj3 = 0 ; |
5343 | char *kwnames[] = { | |
5344 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5345 | }; | |
5346 | ||
8edf1c75 | 5347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
5348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5350 | { |
5351 | arg2 = wxString_in_helper(obj1); | |
5352 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5353 | temp2 = True; |
d14a1e28 | 5354 | } |
2f4c0a16 RD |
5355 | arg3 = (int) SWIG_AsInt(obj2); |
5356 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5357 | if (obj3) { |
5358 | arg4 = obj3; | |
5359 | } | |
5360 | { | |
5361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5362 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5363 | ||
5364 | wxPyEndAllowThreads(__tstate); | |
5365 | if (PyErr_Occurred()) SWIG_fail; | |
5366 | } | |
5367 | Py_INCREF(Py_None); resultobj = Py_None; | |
5368 | { | |
5369 | if (temp2) | |
5370 | delete arg2; | |
5371 | } | |
5372 | return resultobj; | |
5373 | fail: | |
5374 | { | |
5375 | if (temp2) | |
5376 | delete arg2; | |
5377 | } | |
5378 | return NULL; | |
5379 | } | |
5380 | ||
5381 | ||
5382 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5383 | PyObject *resultobj; | |
5384 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5385 | wxArrayString *arg2 = 0 ; | |
5386 | int arg3 ; | |
db914595 | 5387 | bool temp2 = False ; |
d14a1e28 RD |
5388 | PyObject * obj0 = 0 ; |
5389 | PyObject * obj1 = 0 ; | |
8edf1c75 | 5390 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5391 | char *kwnames[] = { |
5392 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5393 | }; | |
5394 | ||
8edf1c75 | 5395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5398 | { |
5399 | if (! PySequence_Check(obj1)) { | |
5400 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5401 | SWIG_fail; | |
5402 | } | |
5403 | arg2 = new wxArrayString; | |
db914595 | 5404 | temp2 = True; |
d14a1e28 RD |
5405 | int i, len=PySequence_Length(obj1); |
5406 | for (i=0; i<len; i++) { | |
5407 | PyObject* item = PySequence_GetItem(obj1, i); | |
5408 | #if wxUSE_UNICODE | |
5409 | PyObject* str = PyObject_Unicode(item); | |
5410 | #else | |
5411 | PyObject* str = PyObject_Str(item); | |
5412 | #endif | |
5413 | arg2->Add(Py2wxString(str)); | |
5414 | Py_DECREF(item); | |
5415 | Py_DECREF(str); | |
5416 | } | |
5417 | } | |
2f4c0a16 RD |
5418 | arg3 = (int) SWIG_AsInt(obj2); |
5419 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5420 | { |
5421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5422 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5423 | ||
5424 | wxPyEndAllowThreads(__tstate); | |
5425 | if (PyErr_Occurred()) SWIG_fail; | |
5426 | } | |
5427 | Py_INCREF(Py_None); resultobj = Py_None; | |
5428 | { | |
db914595 | 5429 | if (temp2) delete arg2; |
d14a1e28 RD |
5430 | } |
5431 | return resultobj; | |
5432 | fail: | |
5433 | { | |
db914595 | 5434 | if (temp2) delete arg2; |
d14a1e28 RD |
5435 | } |
5436 | return NULL; | |
5437 | } | |
5438 | ||
5439 | ||
5440 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5441 | PyObject *resultobj; | |
5442 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5443 | wxArrayString *arg2 = 0 ; | |
db914595 | 5444 | bool temp2 = False ; |
d14a1e28 RD |
5445 | PyObject * obj0 = 0 ; |
5446 | PyObject * obj1 = 0 ; | |
5447 | char *kwnames[] = { | |
5448 | (char *) "self",(char *) "items", NULL | |
5449 | }; | |
5450 | ||
5451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5454 | { |
5455 | if (! PySequence_Check(obj1)) { | |
5456 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5457 | SWIG_fail; | |
5458 | } | |
5459 | arg2 = new wxArrayString; | |
db914595 | 5460 | temp2 = True; |
d14a1e28 RD |
5461 | int i, len=PySequence_Length(obj1); |
5462 | for (i=0; i<len; i++) { | |
5463 | PyObject* item = PySequence_GetItem(obj1, i); | |
5464 | #if wxUSE_UNICODE | |
5465 | PyObject* str = PyObject_Unicode(item); | |
5466 | #else | |
5467 | PyObject* str = PyObject_Str(item); | |
5468 | #endif | |
5469 | arg2->Add(Py2wxString(str)); | |
5470 | Py_DECREF(item); | |
5471 | Py_DECREF(str); | |
5472 | } | |
5473 | } | |
5474 | { | |
5475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5476 | (arg1)->Set((wxArrayString const &)*arg2); | |
5477 | ||
5478 | wxPyEndAllowThreads(__tstate); | |
5479 | if (PyErr_Occurred()) SWIG_fail; | |
5480 | } | |
5481 | Py_INCREF(Py_None); resultobj = Py_None; | |
5482 | { | |
db914595 | 5483 | if (temp2) delete arg2; |
d14a1e28 RD |
5484 | } |
5485 | return resultobj; | |
5486 | fail: | |
5487 | { | |
db914595 | 5488 | if (temp2) delete arg2; |
d14a1e28 RD |
5489 | } |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
5494 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5495 | PyObject *resultobj; | |
5496 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5497 | int arg2 ; | |
5498 | bool result; | |
5499 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5500 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5501 | char *kwnames[] = { |
5502 | (char *) "self",(char *) "n", NULL | |
5503 | }; | |
5504 | ||
8edf1c75 | 5505 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5506 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5507 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5508 | arg2 = (int) SWIG_AsInt(obj1); | |
5509 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5510 | { |
5511 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5512 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
5513 | ||
5514 | wxPyEndAllowThreads(__tstate); | |
5515 | if (PyErr_Occurred()) SWIG_fail; | |
5516 | } | |
4f89f6a3 RD |
5517 | { |
5518 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5519 | } | |
d14a1e28 RD |
5520 | return resultobj; |
5521 | fail: | |
5522 | return NULL; | |
5523 | } | |
5524 | ||
5525 | ||
5526 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5527 | PyObject *resultobj; | |
5528 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5529 | int arg2 ; | |
423f194a | 5530 | bool arg3 = (bool) True ; |
d14a1e28 | 5531 | PyObject * obj0 = 0 ; |
8edf1c75 | 5532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5533 | PyObject * obj2 = 0 ; |
5534 | char *kwnames[] = { | |
5535 | (char *) "self",(char *) "n",(char *) "select", NULL | |
5536 | }; | |
5537 | ||
8edf1c75 | 5538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
5539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5541 | arg2 = (int) SWIG_AsInt(obj1); | |
5542 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 5543 | if (obj2) { |
2f4c0a16 RD |
5544 | arg3 = (bool) SWIG_AsBool(obj2); |
5545 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5546 | } |
5547 | { | |
5548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5549 | (arg1)->SetSelection(arg2,arg3); | |
5550 | ||
5551 | wxPyEndAllowThreads(__tstate); | |
5552 | if (PyErr_Occurred()) SWIG_fail; | |
5553 | } | |
5554 | Py_INCREF(Py_None); resultobj = Py_None; | |
5555 | return resultobj; | |
5556 | fail: | |
5557 | return NULL; | |
5558 | } | |
5559 | ||
5560 | ||
5561 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5562 | PyObject *resultobj; | |
5563 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5564 | int arg2 ; | |
5565 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5566 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5567 | char *kwnames[] = { |
5568 | (char *) "self",(char *) "n", NULL | |
5569 | }; | |
5570 | ||
8edf1c75 | 5571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5574 | arg2 = (int) SWIG_AsInt(obj1); | |
5575 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5576 | { |
5577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5578 | (arg1)->Select(arg2); | |
5579 | ||
5580 | wxPyEndAllowThreads(__tstate); | |
5581 | if (PyErr_Occurred()) SWIG_fail; | |
5582 | } | |
5583 | Py_INCREF(Py_None); resultobj = Py_None; | |
5584 | return resultobj; | |
5585 | fail: | |
5586 | return NULL; | |
5587 | } | |
5588 | ||
5589 | ||
5590 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5591 | PyObject *resultobj; | |
5592 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5593 | int arg2 ; | |
5594 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5595 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5596 | char *kwnames[] = { |
5597 | (char *) "self",(char *) "n", NULL | |
5598 | }; | |
5599 | ||
8edf1c75 | 5600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5603 | arg2 = (int) SWIG_AsInt(obj1); | |
5604 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5605 | { |
5606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5607 | (arg1)->Deselect(arg2); | |
5608 | ||
5609 | wxPyEndAllowThreads(__tstate); | |
5610 | if (PyErr_Occurred()) SWIG_fail; | |
5611 | } | |
5612 | Py_INCREF(Py_None); resultobj = Py_None; | |
5613 | return resultobj; | |
5614 | fail: | |
5615 | return NULL; | |
5616 | } | |
5617 | ||
5618 | ||
5619 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5620 | PyObject *resultobj; | |
5621 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5622 | int arg2 = (int) -1 ; | |
5623 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5624 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5625 | char *kwnames[] = { |
5626 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
5627 | }; | |
5628 | ||
8edf1c75 | 5629 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5630 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5631 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 5632 | if (obj1) { |
2f4c0a16 RD |
5633 | arg2 = (int) SWIG_AsInt(obj1); |
5634 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 5635 | } |
d14a1e28 RD |
5636 | { |
5637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5638 | (arg1)->DeselectAll(arg2); | |
5639 | ||
5640 | wxPyEndAllowThreads(__tstate); | |
5641 | if (PyErr_Occurred()) SWIG_fail; | |
5642 | } | |
5643 | Py_INCREF(Py_None); resultobj = Py_None; | |
5644 | return resultobj; | |
5645 | fail: | |
5646 | return NULL; | |
5647 | } | |
5648 | ||
5649 | ||
5650 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5651 | PyObject *resultobj; | |
5652 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5653 | wxString *arg2 = 0 ; | |
423f194a | 5654 | bool arg3 = (bool) True ; |
d14a1e28 | 5655 | bool result; |
423f194a | 5656 | bool temp2 = False ; |
d14a1e28 RD |
5657 | PyObject * obj0 = 0 ; |
5658 | PyObject * obj1 = 0 ; | |
5659 | PyObject * obj2 = 0 ; | |
5660 | char *kwnames[] = { | |
5661 | (char *) "self",(char *) "s",(char *) "select", NULL | |
5662 | }; | |
5663 | ||
5664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5665 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5667 | { |
5668 | arg2 = wxString_in_helper(obj1); | |
5669 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5670 | temp2 = True; |
d14a1e28 RD |
5671 | } |
5672 | if (obj2) { | |
2f4c0a16 RD |
5673 | arg3 = (bool) SWIG_AsBool(obj2); |
5674 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5675 | } |
5676 | { | |
5677 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5678 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
5679 | ||
5680 | wxPyEndAllowThreads(__tstate); | |
5681 | if (PyErr_Occurred()) SWIG_fail; | |
5682 | } | |
4f89f6a3 RD |
5683 | { |
5684 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5685 | } | |
d14a1e28 RD |
5686 | { |
5687 | if (temp2) | |
5688 | delete arg2; | |
5689 | } | |
5690 | return resultobj; | |
5691 | fail: | |
5692 | { | |
5693 | if (temp2) | |
5694 | delete arg2; | |
5695 | } | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5703 | PyObject *result; | |
5704 | PyObject * obj0 = 0 ; | |
5705 | char *kwnames[] = { | |
5706 | (char *) "self", NULL | |
5707 | }; | |
5708 | ||
5709 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5710 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5711 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5712 | { |
5713 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5714 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
5715 | ||
5716 | wxPyEndAllowThreads(__tstate); | |
5717 | if (PyErr_Occurred()) SWIG_fail; | |
5718 | } | |
5719 | resultobj = result; | |
5720 | return resultobj; | |
5721 | fail: | |
5722 | return NULL; | |
5723 | } | |
5724 | ||
5725 | ||
5726 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5727 | PyObject *resultobj; | |
5728 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5729 | int arg2 ; | |
5730 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5731 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5732 | char *kwnames[] = { |
5733 | (char *) "self",(char *) "n", NULL | |
5734 | }; | |
5735 | ||
8edf1c75 | 5736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5739 | arg2 = (int) SWIG_AsInt(obj1); | |
5740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5741 | { |
5742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5743 | (arg1)->SetFirstItem(arg2); | |
5744 | ||
5745 | wxPyEndAllowThreads(__tstate); | |
5746 | if (PyErr_Occurred()) SWIG_fail; | |
5747 | } | |
5748 | Py_INCREF(Py_None); resultobj = Py_None; | |
5749 | return resultobj; | |
5750 | fail: | |
5751 | return NULL; | |
5752 | } | |
5753 | ||
5754 | ||
5755 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5756 | PyObject *resultobj; | |
5757 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5758 | wxString *arg2 = 0 ; | |
423f194a | 5759 | bool temp2 = False ; |
d14a1e28 RD |
5760 | PyObject * obj0 = 0 ; |
5761 | PyObject * obj1 = 0 ; | |
5762 | char *kwnames[] = { | |
5763 | (char *) "self",(char *) "s", NULL | |
5764 | }; | |
5765 | ||
5766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5769 | { |
5770 | arg2 = wxString_in_helper(obj1); | |
5771 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5772 | temp2 = True; |
d14a1e28 RD |
5773 | } |
5774 | { | |
5775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5776 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
5777 | ||
5778 | wxPyEndAllowThreads(__tstate); | |
5779 | if (PyErr_Occurred()) SWIG_fail; | |
5780 | } | |
5781 | Py_INCREF(Py_None); resultobj = Py_None; | |
5782 | { | |
5783 | if (temp2) | |
5784 | delete arg2; | |
5785 | } | |
5786 | return resultobj; | |
5787 | fail: | |
5788 | { | |
5789 | if (temp2) | |
5790 | delete arg2; | |
5791 | } | |
5792 | return NULL; | |
5793 | } | |
5794 | ||
5795 | ||
5796 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5797 | PyObject *resultobj; | |
5798 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5799 | int arg2 ; | |
5800 | PyObject * obj0 = 0 ; | |
8edf1c75 | 5801 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5802 | char *kwnames[] = { |
5803 | (char *) "self",(char *) "n", NULL | |
5804 | }; | |
5805 | ||
8edf1c75 | 5806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
5807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5809 | arg2 = (int) SWIG_AsInt(obj1); | |
5810 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5811 | { |
5812 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5813 | (arg1)->EnsureVisible(arg2); | |
5814 | ||
5815 | wxPyEndAllowThreads(__tstate); | |
5816 | if (PyErr_Occurred()) SWIG_fail; | |
5817 | } | |
5818 | Py_INCREF(Py_None); resultobj = Py_None; | |
5819 | return resultobj; | |
5820 | fail: | |
5821 | return NULL; | |
5822 | } | |
5823 | ||
5824 | ||
5825 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5826 | PyObject *resultobj; | |
5827 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5828 | wxString *arg2 = 0 ; | |
423f194a | 5829 | bool temp2 = False ; |
d14a1e28 RD |
5830 | PyObject * obj0 = 0 ; |
5831 | PyObject * obj1 = 0 ; | |
5832 | char *kwnames[] = { | |
5833 | (char *) "self",(char *) "s", NULL | |
5834 | }; | |
5835 | ||
5836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
5837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5839 | { |
5840 | arg2 = wxString_in_helper(obj1); | |
5841 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 5842 | temp2 = True; |
d14a1e28 RD |
5843 | } |
5844 | { | |
5845 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5846 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
5847 | ||
5848 | wxPyEndAllowThreads(__tstate); | |
5849 | if (PyErr_Occurred()) SWIG_fail; | |
5850 | } | |
5851 | Py_INCREF(Py_None); resultobj = Py_None; | |
5852 | { | |
5853 | if (temp2) | |
5854 | delete arg2; | |
5855 | } | |
5856 | return resultobj; | |
5857 | fail: | |
5858 | { | |
5859 | if (temp2) | |
5860 | delete arg2; | |
5861 | } | |
5862 | return NULL; | |
5863 | } | |
5864 | ||
5865 | ||
5866 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5867 | PyObject *resultobj; | |
5868 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5869 | bool result; | |
5870 | PyObject * obj0 = 0 ; | |
5871 | char *kwnames[] = { | |
5872 | (char *) "self", NULL | |
5873 | }; | |
5874 | ||
5875 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
5876 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5878 | { |
5879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5880 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
5881 | ||
5882 | wxPyEndAllowThreads(__tstate); | |
5883 | if (PyErr_Occurred()) SWIG_fail; | |
5884 | } | |
4f89f6a3 RD |
5885 | { |
5886 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5887 | } | |
d14a1e28 RD |
5888 | return resultobj; |
5889 | fail: | |
5890 | return NULL; | |
5891 | } | |
5892 | ||
5893 | ||
0ffb2aa6 RD |
5894 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
5895 | PyObject *resultobj; | |
5896 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5897 | int arg2 ; | |
5898 | wxColour *arg3 = 0 ; | |
5899 | wxColour temp3 ; | |
5900 | PyObject * obj0 = 0 ; | |
5901 | PyObject * obj1 = 0 ; | |
5902 | PyObject * obj2 = 0 ; | |
5903 | char *kwnames[] = { | |
5904 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5905 | }; | |
5906 | ||
5907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5910 | arg2 = (int) SWIG_AsInt(obj1); | |
5911 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5912 | { |
5913 | arg3 = &temp3; | |
5914 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5915 | } | |
5916 | { | |
5917 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5918 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5919 | ||
5920 | wxPyEndAllowThreads(__tstate); | |
5921 | if (PyErr_Occurred()) SWIG_fail; | |
5922 | } | |
5923 | Py_INCREF(Py_None); resultobj = Py_None; | |
5924 | return resultobj; | |
5925 | fail: | |
5926 | return NULL; | |
5927 | } | |
5928 | ||
5929 | ||
5930 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5931 | PyObject *resultobj; | |
5932 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5933 | int arg2 ; | |
5934 | wxColour *arg3 = 0 ; | |
5935 | wxColour temp3 ; | |
5936 | PyObject * obj0 = 0 ; | |
5937 | PyObject * obj1 = 0 ; | |
5938 | PyObject * obj2 = 0 ; | |
5939 | char *kwnames[] = { | |
5940 | (char *) "self",(char *) "item",(char *) "c", NULL | |
5941 | }; | |
5942 | ||
5943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5946 | arg2 = (int) SWIG_AsInt(obj1); | |
5947 | if (PyErr_Occurred()) SWIG_fail; | |
0ffb2aa6 RD |
5948 | { |
5949 | arg3 = &temp3; | |
5950 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
5951 | } | |
5952 | { | |
5953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5954 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
5955 | ||
5956 | wxPyEndAllowThreads(__tstate); | |
5957 | if (PyErr_Occurred()) SWIG_fail; | |
5958 | } | |
5959 | Py_INCREF(Py_None); resultobj = Py_None; | |
5960 | return resultobj; | |
5961 | fail: | |
5962 | return NULL; | |
5963 | } | |
5964 | ||
5965 | ||
5966 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5967 | PyObject *resultobj; | |
5968 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5969 | int arg2 ; | |
5970 | wxFont *arg3 = 0 ; | |
5971 | PyObject * obj0 = 0 ; | |
5972 | PyObject * obj1 = 0 ; | |
5973 | PyObject * obj2 = 0 ; | |
5974 | char *kwnames[] = { | |
5975 | (char *) "self",(char *) "item",(char *) "f", NULL | |
5976 | }; | |
5977 | ||
5978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
5979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5981 | arg2 = (int) SWIG_AsInt(obj1); | |
5982 | if (PyErr_Occurred()) SWIG_fail; | |
5983 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
5984 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5985 | SWIG_fail; | |
0ffb2aa6 | 5986 | if (arg3 == NULL) { |
2f4c0a16 RD |
5987 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5988 | SWIG_fail; | |
0ffb2aa6 RD |
5989 | } |
5990 | { | |
5991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5992 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
5993 | ||
5994 | wxPyEndAllowThreads(__tstate); | |
5995 | if (PyErr_Occurred()) SWIG_fail; | |
5996 | } | |
5997 | Py_INCREF(Py_None); resultobj = Py_None; | |
5998 | return resultobj; | |
5999 | fail: | |
6000 | return NULL; | |
6001 | } | |
6002 | ||
6003 | ||
d14a1e28 RD |
6004 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6005 | PyObject *obj; | |
6006 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6007 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6008 | Py_INCREF(obj); | |
6009 | return Py_BuildValue((char *)""); | |
6010 | } | |
6011 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6012 | PyObject *resultobj; | |
6013 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 6014 | int arg2 ; |
d14a1e28 RD |
6015 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6016 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6017 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6018 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4e760a36 RD |
6019 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6020 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6021 | long arg6 = (long) 0 ; | |
6022 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6023 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6024 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6025 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6026 | wxCheckListBox *result; |
6027 | wxPoint temp3 ; | |
6028 | wxSize temp4 ; | |
db914595 | 6029 | bool temp5 = False ; |
423f194a | 6030 | bool temp8 = False ; |
d14a1e28 | 6031 | PyObject * obj0 = 0 ; |
8edf1c75 | 6032 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6033 | PyObject * obj2 = 0 ; |
6034 | PyObject * obj3 = 0 ; | |
6035 | PyObject * obj4 = 0 ; | |
8edf1c75 | 6036 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6037 | PyObject * obj6 = 0 ; |
6038 | PyObject * obj7 = 0 ; | |
6039 | char *kwnames[] = { | |
6040 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6041 | }; | |
6042 | ||
8edf1c75 | 6043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
6044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6046 | arg2 = (int) SWIG_AsInt(obj1); | |
6047 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6048 | if (obj2) { |
6049 | { | |
6050 | arg3 = &temp3; | |
6051 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6052 | } | |
6053 | } | |
6054 | if (obj3) { | |
6055 | { | |
6056 | arg4 = &temp4; | |
6057 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6058 | } | |
6059 | } | |
6060 | if (obj4) { | |
6061 | { | |
4e760a36 RD |
6062 | if (! PySequence_Check(obj4)) { |
6063 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6064 | SWIG_fail; | |
6065 | } | |
6066 | arg5 = new wxArrayString; | |
db914595 | 6067 | temp5 = True; |
4e760a36 RD |
6068 | int i, len=PySequence_Length(obj4); |
6069 | for (i=0; i<len; i++) { | |
6070 | PyObject* item = PySequence_GetItem(obj4, i); | |
6071 | #if wxUSE_UNICODE | |
6072 | PyObject* str = PyObject_Unicode(item); | |
6073 | #else | |
6074 | PyObject* str = PyObject_Str(item); | |
6075 | #endif | |
6076 | arg5->Add(Py2wxString(str)); | |
6077 | Py_DECREF(item); | |
6078 | Py_DECREF(str); | |
6079 | } | |
d14a1e28 RD |
6080 | } |
6081 | } | |
8edf1c75 | 6082 | if (obj5) { |
2f4c0a16 RD |
6083 | arg6 = (long) SWIG_AsLong(obj5); |
6084 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6085 | } |
d14a1e28 | 6086 | if (obj6) { |
2f4c0a16 RD |
6087 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6089 | SWIG_fail; | |
4e760a36 | 6090 | if (arg7 == NULL) { |
2f4c0a16 RD |
6091 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6092 | SWIG_fail; | |
d14a1e28 RD |
6093 | } |
6094 | } | |
6095 | if (obj7) { | |
6096 | { | |
4e760a36 RD |
6097 | arg8 = wxString_in_helper(obj7); |
6098 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 6099 | temp8 = True; |
d14a1e28 RD |
6100 | } |
6101 | } | |
6102 | { | |
6103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6104 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6105 | |
6106 | wxPyEndAllowThreads(__tstate); | |
6107 | if (PyErr_Occurred()) SWIG_fail; | |
6108 | } | |
2f4c0a16 | 6109 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6110 | { |
db914595 | 6111 | if (temp5) delete arg5; |
d14a1e28 RD |
6112 | } |
6113 | { | |
6114 | if (temp8) | |
4e760a36 | 6115 | delete arg8; |
d14a1e28 RD |
6116 | } |
6117 | return resultobj; | |
6118 | fail: | |
6119 | { | |
db914595 | 6120 | if (temp5) delete arg5; |
d14a1e28 RD |
6121 | } |
6122 | { | |
6123 | if (temp8) | |
4e760a36 | 6124 | delete arg8; |
d14a1e28 RD |
6125 | } |
6126 | return NULL; | |
6127 | } | |
6128 | ||
6129 | ||
6130 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6131 | PyObject *resultobj; | |
6132 | wxCheckListBox *result; | |
6133 | char *kwnames[] = { | |
6134 | NULL | |
6135 | }; | |
6136 | ||
6137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6138 | { | |
6139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6140 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6141 | ||
6142 | wxPyEndAllowThreads(__tstate); | |
6143 | if (PyErr_Occurred()) SWIG_fail; | |
6144 | } | |
2f4c0a16 | 6145 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6146 | return resultobj; |
6147 | fail: | |
6148 | return NULL; | |
6149 | } | |
6150 | ||
6151 | ||
6152 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6153 | PyObject *resultobj; | |
6154 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6155 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 6156 | int arg3 ; |
d14a1e28 RD |
6157 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6158 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6159 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6160 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
6161 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6162 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6163 | long arg7 = (long) 0 ; | |
6164 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6165 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6166 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6167 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6168 | bool result; |
6169 | wxPoint temp4 ; | |
6170 | wxSize temp5 ; | |
db914595 | 6171 | bool temp6 = False ; |
423f194a | 6172 | bool temp9 = False ; |
d14a1e28 RD |
6173 | PyObject * obj0 = 0 ; |
6174 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6175 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6176 | PyObject * obj3 = 0 ; |
6177 | PyObject * obj4 = 0 ; | |
6178 | PyObject * obj5 = 0 ; | |
8edf1c75 | 6179 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6180 | PyObject * obj7 = 0 ; |
6181 | PyObject * obj8 = 0 ; | |
6182 | char *kwnames[] = { | |
6183 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6184 | }; | |
6185 | ||
8edf1c75 | 6186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
6187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6191 | arg3 = (int) SWIG_AsInt(obj2); | |
6192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6193 | if (obj3) { |
6194 | { | |
6195 | arg4 = &temp4; | |
6196 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6197 | } | |
6198 | } | |
6199 | if (obj4) { | |
6200 | { | |
6201 | arg5 = &temp5; | |
6202 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6203 | } | |
6204 | } | |
6205 | if (obj5) { | |
6206 | { | |
4e760a36 RD |
6207 | if (! PySequence_Check(obj5)) { |
6208 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6209 | SWIG_fail; | |
6210 | } | |
6211 | arg6 = new wxArrayString; | |
db914595 | 6212 | temp6 = True; |
4e760a36 RD |
6213 | int i, len=PySequence_Length(obj5); |
6214 | for (i=0; i<len; i++) { | |
6215 | PyObject* item = PySequence_GetItem(obj5, i); | |
6216 | #if wxUSE_UNICODE | |
6217 | PyObject* str = PyObject_Unicode(item); | |
6218 | #else | |
6219 | PyObject* str = PyObject_Str(item); | |
6220 | #endif | |
6221 | arg6->Add(Py2wxString(str)); | |
6222 | Py_DECREF(item); | |
6223 | Py_DECREF(str); | |
6224 | } | |
d14a1e28 RD |
6225 | } |
6226 | } | |
8edf1c75 | 6227 | if (obj6) { |
2f4c0a16 RD |
6228 | arg7 = (long) SWIG_AsLong(obj6); |
6229 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6230 | } |
d14a1e28 | 6231 | if (obj7) { |
2f4c0a16 RD |
6232 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6233 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6234 | SWIG_fail; | |
4e760a36 | 6235 | if (arg8 == NULL) { |
2f4c0a16 RD |
6236 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6237 | SWIG_fail; | |
d14a1e28 RD |
6238 | } |
6239 | } | |
6240 | if (obj8) { | |
6241 | { | |
4e760a36 RD |
6242 | arg9 = wxString_in_helper(obj8); |
6243 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 6244 | temp9 = True; |
d14a1e28 RD |
6245 | } |
6246 | } | |
6247 | { | |
6248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 6249 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6250 | |
6251 | wxPyEndAllowThreads(__tstate); | |
6252 | if (PyErr_Occurred()) SWIG_fail; | |
6253 | } | |
4f89f6a3 RD |
6254 | { |
6255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6256 | } | |
d14a1e28 | 6257 | { |
db914595 | 6258 | if (temp6) delete arg6; |
d14a1e28 RD |
6259 | } |
6260 | { | |
6261 | if (temp9) | |
4e760a36 | 6262 | delete arg9; |
d14a1e28 RD |
6263 | } |
6264 | return resultobj; | |
6265 | fail: | |
6266 | { | |
db914595 | 6267 | if (temp6) delete arg6; |
d14a1e28 RD |
6268 | } |
6269 | { | |
6270 | if (temp9) | |
4e760a36 | 6271 | delete arg9; |
d14a1e28 RD |
6272 | } |
6273 | return NULL; | |
6274 | } | |
6275 | ||
6276 | ||
6277 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6278 | PyObject *resultobj; | |
6279 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6280 | int arg2 ; | |
6281 | bool result; | |
6282 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6283 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6284 | char *kwnames[] = { |
6285 | (char *) "self",(char *) "index", NULL | |
6286 | }; | |
6287 | ||
8edf1c75 | 6288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6291 | arg2 = (int) SWIG_AsInt(obj1); | |
6292 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6293 | { |
6294 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6295 | result = (bool)(arg1)->IsChecked(arg2); | |
6296 | ||
6297 | wxPyEndAllowThreads(__tstate); | |
6298 | if (PyErr_Occurred()) SWIG_fail; | |
6299 | } | |
4f89f6a3 RD |
6300 | { |
6301 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6302 | } | |
d14a1e28 RD |
6303 | return resultobj; |
6304 | fail: | |
6305 | return NULL; | |
6306 | } | |
6307 | ||
6308 | ||
6309 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6310 | PyObject *resultobj; | |
6311 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6312 | int arg2 ; | |
423f194a | 6313 | int arg3 = (int) True ; |
d14a1e28 | 6314 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
6315 | PyObject * obj1 = 0 ; |
6316 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6317 | char *kwnames[] = { |
6318 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6319 | }; | |
6320 | ||
8edf1c75 | 6321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6322 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6323 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6324 | arg2 = (int) SWIG_AsInt(obj1); | |
6325 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6326 | if (obj2) { |
2f4c0a16 RD |
6327 | arg3 = (int) SWIG_AsInt(obj2); |
6328 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6329 | } |
d14a1e28 RD |
6330 | { |
6331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6332 | (arg1)->Check(arg2,arg3); | |
6333 | ||
6334 | wxPyEndAllowThreads(__tstate); | |
6335 | if (PyErr_Occurred()) SWIG_fail; | |
6336 | } | |
6337 | Py_INCREF(Py_None); resultobj = Py_None; | |
6338 | return resultobj; | |
6339 | fail: | |
6340 | return NULL; | |
6341 | } | |
6342 | ||
6343 | ||
6344 | static PyObject *_wrap_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6345 | PyObject *resultobj; | |
6346 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6347 | int result; | |
6348 | PyObject * obj0 = 0 ; | |
6349 | char *kwnames[] = { | |
6350 | (char *) "self", NULL | |
6351 | }; | |
6352 | ||
6353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6356 | { |
6357 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6358 | result = (int)(arg1)->GetItemHeight(); | |
6359 | ||
6360 | wxPyEndAllowThreads(__tstate); | |
6361 | if (PyErr_Occurred()) SWIG_fail; | |
6362 | } | |
2f4c0a16 | 6363 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6364 | return resultobj; |
6365 | fail: | |
6366 | return NULL; | |
6367 | } | |
6368 | ||
6369 | ||
6370 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6371 | PyObject *resultobj; | |
6372 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6373 | wxPoint *arg2 = 0 ; | |
6374 | int result; | |
6375 | wxPoint temp2 ; | |
6376 | PyObject * obj0 = 0 ; | |
6377 | PyObject * obj1 = 0 ; | |
6378 | char *kwnames[] = { | |
6379 | (char *) "self",(char *) "pt", NULL | |
6380 | }; | |
6381 | ||
6382 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6383 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6384 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6385 | { |
6386 | arg2 = &temp2; | |
6387 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6388 | } | |
6389 | { | |
6390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6391 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6392 | ||
6393 | wxPyEndAllowThreads(__tstate); | |
6394 | if (PyErr_Occurred()) SWIG_fail; | |
6395 | } | |
2f4c0a16 | 6396 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6397 | return resultobj; |
6398 | fail: | |
6399 | return NULL; | |
6400 | } | |
6401 | ||
6402 | ||
6403 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6404 | PyObject *resultobj; | |
6405 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
423f194a RD |
6406 | int arg2 ; |
6407 | int arg3 ; | |
d14a1e28 RD |
6408 | int result; |
6409 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
6410 | PyObject * obj1 = 0 ; |
6411 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6412 | char *kwnames[] = { |
6413 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6414 | }; | |
6415 | ||
8edf1c75 | 6416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6419 | arg2 = (int) SWIG_AsInt(obj1); | |
6420 | if (PyErr_Occurred()) SWIG_fail; | |
6421 | arg3 = (int) SWIG_AsInt(obj2); | |
6422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6423 | { |
6424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6425 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6426 | ||
6427 | wxPyEndAllowThreads(__tstate); | |
6428 | if (PyErr_Occurred()) SWIG_fail; | |
6429 | } | |
2f4c0a16 | 6430 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6431 | return resultobj; |
6432 | fail: | |
6433 | return NULL; | |
6434 | } | |
6435 | ||
6436 | ||
6437 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6438 | PyObject *obj; | |
6439 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6440 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6441 | Py_INCREF(obj); | |
6442 | return Py_BuildValue((char *)""); | |
6443 | } | |
2f4c0a16 | 6444 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
6445 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); |
6446 | return 1; | |
6447 | } | |
6448 | ||
6449 | ||
6450 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6451 | PyObject *pyobj; | |
6452 | ||
6453 | { | |
6454 | #if wxUSE_UNICODE | |
6455 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6456 | #else | |
6457 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6458 | #endif | |
6459 | } | |
6460 | return pyobj; | |
6461 | } | |
6462 | ||
6463 | ||
d14a1e28 RD |
6464 | static PyObject *_wrap_new_TextAttr__SWIG_0(PyObject *self, PyObject *args) { |
6465 | PyObject *resultobj; | |
6466 | wxTextAttr *result; | |
6467 | ||
6468 | if(!PyArg_ParseTuple(args,(char *)":new_TextAttr")) goto fail; | |
6469 | { | |
6470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6471 | result = (wxTextAttr *)new wxTextAttr(); | |
6472 | ||
6473 | wxPyEndAllowThreads(__tstate); | |
6474 | if (PyErr_Occurred()) SWIG_fail; | |
6475 | } | |
2f4c0a16 | 6476 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6477 | return resultobj; |
6478 | fail: | |
6479 | return NULL; | |
6480 | } | |
6481 | ||
6482 | ||
6483 | static PyObject *_wrap_new_TextAttr__SWIG_1(PyObject *self, PyObject *args) { | |
6484 | PyObject *resultobj; | |
6485 | wxColour *arg1 = 0 ; | |
6486 | wxColour const &arg2_defvalue = wxNullColour ; | |
6487 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
6488 | wxFont const &arg3_defvalue = wxNullFont ; | |
6489 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
6490 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
6491 | wxTextAttr *result; | |
6492 | wxColour temp1 ; | |
6493 | wxColour temp2 ; | |
6494 | PyObject * obj0 = 0 ; | |
6495 | PyObject * obj1 = 0 ; | |
6496 | PyObject * obj2 = 0 ; | |
8edf1c75 | 6497 | PyObject * obj3 = 0 ; |
d14a1e28 | 6498 | |
8edf1c75 | 6499 | if(!PyArg_ParseTuple(args,(char *)"O|OOO:new_TextAttr",&obj0,&obj1,&obj2,&obj3)) goto fail; |
d14a1e28 RD |
6500 | { |
6501 | arg1 = &temp1; | |
6502 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
6503 | } | |
6504 | if (obj1) { | |
6505 | { | |
6506 | arg2 = &temp2; | |
6507 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6508 | } | |
6509 | } | |
6510 | if (obj2) { | |
2f4c0a16 RD |
6511 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
6512 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6513 | SWIG_fail; | |
d14a1e28 | 6514 | if (arg3 == NULL) { |
2f4c0a16 RD |
6515 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6516 | SWIG_fail; | |
d14a1e28 RD |
6517 | } |
6518 | } | |
8edf1c75 | 6519 | if (obj3) { |
2f4c0a16 RD |
6520 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
6521 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
6522 | } |
6523 | { | |
6524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6525 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
d14a1e28 RD |
6526 | |
6527 | wxPyEndAllowThreads(__tstate); | |
6528 | if (PyErr_Occurred()) SWIG_fail; | |
6529 | } | |
2f4c0a16 | 6530 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
6531 | return resultobj; |
6532 | fail: | |
6533 | return NULL; | |
6534 | } | |
6535 | ||
6536 | ||
6537 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args) { | |
6538 | int argc; | |
6539 | PyObject *argv[5]; | |
6540 | int ii; | |
6541 | ||
6542 | argc = PyObject_Length(args); | |
6543 | for (ii = 0; (ii < argc) && (ii < 4); ii++) { | |
6544 | argv[ii] = PyTuple_GetItem(args,ii); | |
6545 | } | |
6546 | if (argc == 0) { | |
6547 | return _wrap_new_TextAttr__SWIG_0(self,args); | |
6548 | } | |
6549 | if ((argc >= 1) && (argc <= 4)) { | |
6550 | int _v; | |
6551 | { | |
6552 | _v = wxColour_typecheck(argv[0]); | |
6553 | } | |
6554 | if (_v) { | |
6555 | if (argc <= 1) { | |
6556 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6557 | } | |
6558 | { | |
6559 | _v = wxColour_typecheck(argv[1]); | |
6560 | } | |
6561 | if (_v) { | |
6562 | if (argc <= 2) { | |
6563 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6564 | } | |
6565 | { | |
6566 | void *ptr; | |
2f4c0a16 | 6567 | if (SWIG_ConvertPtr(argv[2], &ptr, SWIGTYPE_p_wxFont, 0) == -1) { |
d14a1e28 RD |
6568 | _v = 0; |
6569 | PyErr_Clear(); | |
6570 | } else { | |
6571 | _v = 1; | |
6572 | } | |
6573 | } | |
6574 | if (_v) { | |
6575 | if (argc <= 3) { | |
6576 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6577 | } | |
2f4c0a16 | 6578 | _v = SWIG_CheckInt(argv[3]); |
8edf1c75 RD |
6579 | if (_v) { |
6580 | return _wrap_new_TextAttr__SWIG_1(self,args); | |
6581 | } | |
d14a1e28 RD |
6582 | } |
6583 | } | |
6584 | } | |
6585 | } | |
6586 | ||
6587 | PyErr_SetString(PyExc_TypeError,"No matching function for overloaded 'new_TextAttr'"); | |
6588 | return NULL; | |
6589 | } | |
6590 | ||
6591 | ||
8edf1c75 RD |
6592 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
6593 | PyObject *resultobj; | |
6594 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6595 | PyObject * obj0 = 0 ; | |
6596 | char *kwnames[] = { | |
6597 | (char *) "self", NULL | |
6598 | }; | |
6599 | ||
6600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 RD |
6603 | { |
6604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6605 | delete arg1; | |
6606 | ||
6607 | wxPyEndAllowThreads(__tstate); | |
6608 | if (PyErr_Occurred()) SWIG_fail; | |
6609 | } | |
6610 | Py_INCREF(Py_None); resultobj = Py_None; | |
6611 | return resultobj; | |
6612 | fail: | |
6613 | return NULL; | |
6614 | } | |
6615 | ||
6616 | ||
d14a1e28 RD |
6617 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
6618 | PyObject *resultobj; | |
6619 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6620 | PyObject * obj0 = 0 ; | |
6621 | char *kwnames[] = { | |
6622 | (char *) "self", NULL | |
6623 | }; | |
6624 | ||
6625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6628 | { |
6629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6630 | (arg1)->Init(); | |
6631 | ||
6632 | wxPyEndAllowThreads(__tstate); | |
6633 | if (PyErr_Occurred()) SWIG_fail; | |
6634 | } | |
6635 | Py_INCREF(Py_None); resultobj = Py_None; | |
6636 | return resultobj; | |
6637 | fail: | |
6638 | return NULL; | |
6639 | } | |
6640 | ||
6641 | ||
6642 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6643 | PyObject *resultobj; | |
6644 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6645 | wxColour *arg2 = 0 ; | |
6646 | wxColour temp2 ; | |
6647 | PyObject * obj0 = 0 ; | |
6648 | PyObject * obj1 = 0 ; | |
6649 | char *kwnames[] = { | |
6650 | (char *) "self",(char *) "colText", NULL | |
6651 | }; | |
6652 | ||
6653 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6654 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6655 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6656 | { |
6657 | arg2 = &temp2; | |
6658 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6659 | } | |
6660 | { | |
6661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6662 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
6663 | ||
6664 | wxPyEndAllowThreads(__tstate); | |
6665 | if (PyErr_Occurred()) SWIG_fail; | |
6666 | } | |
6667 | Py_INCREF(Py_None); resultobj = Py_None; | |
6668 | return resultobj; | |
6669 | fail: | |
6670 | return NULL; | |
6671 | } | |
6672 | ||
6673 | ||
6674 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6675 | PyObject *resultobj; | |
6676 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6677 | wxColour *arg2 = 0 ; | |
6678 | wxColour temp2 ; | |
6679 | PyObject * obj0 = 0 ; | |
6680 | PyObject * obj1 = 0 ; | |
6681 | char *kwnames[] = { | |
6682 | (char *) "self",(char *) "colBack", NULL | |
6683 | }; | |
6684 | ||
6685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6688 | { |
6689 | arg2 = &temp2; | |
6690 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
6691 | } | |
6692 | { | |
6693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6694 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
6695 | ||
6696 | wxPyEndAllowThreads(__tstate); | |
6697 | if (PyErr_Occurred()) SWIG_fail; | |
6698 | } | |
6699 | Py_INCREF(Py_None); resultobj = Py_None; | |
6700 | return resultobj; | |
6701 | fail: | |
6702 | return NULL; | |
6703 | } | |
6704 | ||
6705 | ||
6706 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6707 | PyObject *resultobj; | |
6708 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6709 | wxFont *arg2 = 0 ; | |
6710 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
6711 | PyObject * obj0 = 0 ; | |
6712 | PyObject * obj1 = 0 ; | |
8edf1c75 | 6713 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6714 | char *kwnames[] = { |
6715 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
6716 | }; | |
6717 | ||
8edf1c75 | 6718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
6719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6721 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
6722 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6723 | SWIG_fail; | |
d14a1e28 | 6724 | if (arg2 == NULL) { |
2f4c0a16 RD |
6725 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6726 | SWIG_fail; | |
d14a1e28 | 6727 | } |
8edf1c75 | 6728 | if (obj2) { |
2f4c0a16 RD |
6729 | arg3 = (long) SWIG_AsLong(obj2); |
6730 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 6731 | } |
d14a1e28 RD |
6732 | { |
6733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6734 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
6735 | ||
6736 | wxPyEndAllowThreads(__tstate); | |
6737 | if (PyErr_Occurred()) SWIG_fail; | |
6738 | } | |
6739 | Py_INCREF(Py_None); resultobj = Py_None; | |
6740 | return resultobj; | |
6741 | fail: | |
6742 | return NULL; | |
6743 | } | |
6744 | ||
6745 | ||
6746 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6747 | PyObject *resultobj; | |
6748 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6749 | int arg2 ; | |
6750 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6751 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6752 | char *kwnames[] = { |
6753 | (char *) "self",(char *) "alignment", NULL | |
6754 | }; | |
6755 | ||
8edf1c75 | 6756 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6757 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6758 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6759 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
6760 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6761 | { |
6762 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6763 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
6764 | ||
6765 | wxPyEndAllowThreads(__tstate); | |
6766 | if (PyErr_Occurred()) SWIG_fail; | |
6767 | } | |
6768 | Py_INCREF(Py_None); resultobj = Py_None; | |
6769 | return resultobj; | |
6770 | fail: | |
6771 | return NULL; | |
6772 | } | |
6773 | ||
6774 | ||
6775 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6776 | PyObject *resultobj; | |
6777 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6778 | wxArrayInt *arg2 = 0 ; | |
db914595 | 6779 | bool temp2 = False ; |
d14a1e28 RD |
6780 | PyObject * obj0 = 0 ; |
6781 | PyObject * obj1 = 0 ; | |
6782 | char *kwnames[] = { | |
6783 | (char *) "self",(char *) "tabs", NULL | |
6784 | }; | |
6785 | ||
6786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
6787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6789 | { |
6790 | if (! PySequence_Check(obj1)) { | |
6791 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
6792 | SWIG_fail; | |
6793 | } | |
6794 | arg2 = new wxArrayInt; | |
db914595 | 6795 | temp2 = True; |
d14a1e28 RD |
6796 | int i, len=PySequence_Length(obj1); |
6797 | for (i=0; i<len; i++) { | |
6798 | PyObject* item = PySequence_GetItem(obj1, i); | |
6799 | PyObject* number = PyNumber_Int(item); | |
6800 | arg2->Add(PyInt_AS_LONG(number)); | |
6801 | Py_DECREF(item); | |
6802 | Py_DECREF(number); | |
6803 | } | |
6804 | } | |
6805 | { | |
6806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6807 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
6808 | ||
6809 | wxPyEndAllowThreads(__tstate); | |
6810 | if (PyErr_Occurred()) SWIG_fail; | |
6811 | } | |
6812 | Py_INCREF(Py_None); resultobj = Py_None; | |
6813 | { | |
db914595 | 6814 | if (temp2) delete arg2; |
d14a1e28 RD |
6815 | } |
6816 | return resultobj; | |
6817 | fail: | |
6818 | { | |
db914595 | 6819 | if (temp2) delete arg2; |
d14a1e28 RD |
6820 | } |
6821 | return NULL; | |
6822 | } | |
6823 | ||
6824 | ||
6825 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6826 | PyObject *resultobj; | |
6827 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6828 | int arg2 ; | |
6829 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6831 | char *kwnames[] = { |
6832 | (char *) "self",(char *) "indent", NULL | |
6833 | }; | |
6834 | ||
8edf1c75 | 6835 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6836 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6837 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6838 | arg2 = (int) SWIG_AsInt(obj1); | |
6839 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6840 | { |
6841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6842 | (arg1)->SetLeftIndent(arg2); | |
6843 | ||
6844 | wxPyEndAllowThreads(__tstate); | |
6845 | if (PyErr_Occurred()) SWIG_fail; | |
6846 | } | |
6847 | Py_INCREF(Py_None); resultobj = Py_None; | |
6848 | return resultobj; | |
6849 | fail: | |
6850 | return NULL; | |
6851 | } | |
6852 | ||
6853 | ||
6854 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6855 | PyObject *resultobj; | |
6856 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6857 | int arg2 ; | |
6858 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6859 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6860 | char *kwnames[] = { |
6861 | (char *) "self",(char *) "indent", NULL | |
6862 | }; | |
6863 | ||
8edf1c75 | 6864 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6865 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6866 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6867 | arg2 = (int) SWIG_AsInt(obj1); | |
6868 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6869 | { |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | (arg1)->SetRightIndent(arg2); | |
6872 | ||
6873 | wxPyEndAllowThreads(__tstate); | |
6874 | if (PyErr_Occurred()) SWIG_fail; | |
6875 | } | |
6876 | Py_INCREF(Py_None); resultobj = Py_None; | |
6877 | return resultobj; | |
6878 | fail: | |
6879 | return NULL; | |
6880 | } | |
6881 | ||
6882 | ||
6883 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject *resultobj; | |
6885 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6886 | long arg2 ; | |
6887 | PyObject * obj0 = 0 ; | |
8edf1c75 | 6888 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6889 | char *kwnames[] = { |
6890 | (char *) "self",(char *) "flags", NULL | |
6891 | }; | |
6892 | ||
8edf1c75 | 6893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
6894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6896 | arg2 = (long) SWIG_AsLong(obj1); | |
6897 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6898 | { |
6899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6900 | (arg1)->SetFlags(arg2); | |
6901 | ||
6902 | wxPyEndAllowThreads(__tstate); | |
6903 | if (PyErr_Occurred()) SWIG_fail; | |
6904 | } | |
6905 | Py_INCREF(Py_None); resultobj = Py_None; | |
6906 | return resultobj; | |
6907 | fail: | |
6908 | return NULL; | |
6909 | } | |
6910 | ||
6911 | ||
6912 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6913 | PyObject *resultobj; | |
6914 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6915 | bool result; | |
6916 | PyObject * obj0 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6924 | { |
6925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6926 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
6927 | ||
6928 | wxPyEndAllowThreads(__tstate); | |
6929 | if (PyErr_Occurred()) SWIG_fail; | |
6930 | } | |
4f89f6a3 RD |
6931 | { |
6932 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6933 | } | |
d14a1e28 RD |
6934 | return resultobj; |
6935 | fail: | |
6936 | return NULL; | |
6937 | } | |
6938 | ||
6939 | ||
6940 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6941 | PyObject *resultobj; | |
6942 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6943 | bool result; | |
6944 | PyObject * obj0 = 0 ; | |
6945 | char *kwnames[] = { | |
6946 | (char *) "self", NULL | |
6947 | }; | |
6948 | ||
6949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6952 | { |
6953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6954 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
6955 | ||
6956 | wxPyEndAllowThreads(__tstate); | |
6957 | if (PyErr_Occurred()) SWIG_fail; | |
6958 | } | |
4f89f6a3 RD |
6959 | { |
6960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6961 | } | |
d14a1e28 RD |
6962 | return resultobj; |
6963 | fail: | |
6964 | return NULL; | |
6965 | } | |
6966 | ||
6967 | ||
6968 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6969 | PyObject *resultobj; | |
6970 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6971 | bool result; | |
6972 | PyObject * obj0 = 0 ; | |
6973 | char *kwnames[] = { | |
6974 | (char *) "self", NULL | |
6975 | }; | |
6976 | ||
6977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
6978 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
6979 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6980 | { |
6981 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6982 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
6983 | ||
6984 | wxPyEndAllowThreads(__tstate); | |
6985 | if (PyErr_Occurred()) SWIG_fail; | |
6986 | } | |
4f89f6a3 RD |
6987 | { |
6988 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6989 | } | |
d14a1e28 RD |
6990 | return resultobj; |
6991 | fail: | |
6992 | return NULL; | |
6993 | } | |
6994 | ||
6995 | ||
6996 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6997 | PyObject *resultobj; | |
6998 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
6999 | bool result; | |
7000 | PyObject * obj0 = 0 ; | |
7001 | char *kwnames[] = { | |
7002 | (char *) "self", NULL | |
7003 | }; | |
7004 | ||
7005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7008 | { |
7009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7010 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7011 | ||
7012 | wxPyEndAllowThreads(__tstate); | |
7013 | if (PyErr_Occurred()) SWIG_fail; | |
7014 | } | |
4f89f6a3 RD |
7015 | { |
7016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7017 | } | |
d14a1e28 RD |
7018 | return resultobj; |
7019 | fail: | |
7020 | return NULL; | |
7021 | } | |
7022 | ||
7023 | ||
7024 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7025 | PyObject *resultobj; | |
7026 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7027 | bool result; | |
7028 | PyObject * obj0 = 0 ; | |
7029 | char *kwnames[] = { | |
7030 | (char *) "self", NULL | |
7031 | }; | |
7032 | ||
7033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7036 | { |
7037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7038 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7039 | ||
7040 | wxPyEndAllowThreads(__tstate); | |
7041 | if (PyErr_Occurred()) SWIG_fail; | |
7042 | } | |
4f89f6a3 RD |
7043 | { |
7044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7045 | } | |
d14a1e28 RD |
7046 | return resultobj; |
7047 | fail: | |
7048 | return NULL; | |
7049 | } | |
7050 | ||
7051 | ||
7052 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7053 | PyObject *resultobj; | |
7054 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7055 | bool result; | |
7056 | PyObject * obj0 = 0 ; | |
7057 | char *kwnames[] = { | |
7058 | (char *) "self", NULL | |
7059 | }; | |
7060 | ||
7061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7064 | { |
7065 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7066 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7067 | ||
7068 | wxPyEndAllowThreads(__tstate); | |
7069 | if (PyErr_Occurred()) SWIG_fail; | |
7070 | } | |
4f89f6a3 RD |
7071 | { |
7072 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7073 | } | |
d14a1e28 RD |
7074 | return resultobj; |
7075 | fail: | |
7076 | return NULL; | |
7077 | } | |
7078 | ||
7079 | ||
7080 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7081 | PyObject *resultobj; | |
7082 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7083 | bool result; | |
7084 | PyObject * obj0 = 0 ; | |
7085 | char *kwnames[] = { | |
7086 | (char *) "self", NULL | |
7087 | }; | |
7088 | ||
7089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7092 | { |
7093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7094 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7095 | ||
7096 | wxPyEndAllowThreads(__tstate); | |
7097 | if (PyErr_Occurred()) SWIG_fail; | |
7098 | } | |
4f89f6a3 RD |
7099 | { |
7100 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7101 | } | |
d14a1e28 RD |
7102 | return resultobj; |
7103 | fail: | |
7104 | return NULL; | |
7105 | } | |
7106 | ||
7107 | ||
7108 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7109 | PyObject *resultobj; | |
7110 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7111 | long arg2 ; | |
7112 | bool result; | |
7113 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7114 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7115 | char *kwnames[] = { |
7116 | (char *) "self",(char *) "flag", NULL | |
7117 | }; | |
7118 | ||
8edf1c75 | 7119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7122 | arg2 = (long) SWIG_AsLong(obj1); | |
7123 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7124 | { |
7125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7126 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7127 | ||
7128 | wxPyEndAllowThreads(__tstate); | |
7129 | if (PyErr_Occurred()) SWIG_fail; | |
7130 | } | |
4f89f6a3 RD |
7131 | { |
7132 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7133 | } | |
d14a1e28 RD |
7134 | return resultobj; |
7135 | fail: | |
7136 | return NULL; | |
7137 | } | |
7138 | ||
7139 | ||
7140 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7141 | PyObject *resultobj; | |
7142 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7143 | wxColour *result; | |
7144 | PyObject * obj0 = 0 ; | |
7145 | char *kwnames[] = { | |
7146 | (char *) "self", NULL | |
7147 | }; | |
7148 | ||
7149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7152 | { |
7153 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7154 | { | |
7155 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7156 | result = (wxColour *) &_result_ref; | |
7157 | } | |
7158 | ||
7159 | wxPyEndAllowThreads(__tstate); | |
7160 | if (PyErr_Occurred()) SWIG_fail; | |
7161 | } | |
2f4c0a16 | 7162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7163 | return resultobj; |
7164 | fail: | |
7165 | return NULL; | |
7166 | } | |
7167 | ||
7168 | ||
7169 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7170 | PyObject *resultobj; | |
7171 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7172 | wxColour *result; | |
7173 | PyObject * obj0 = 0 ; | |
7174 | char *kwnames[] = { | |
7175 | (char *) "self", NULL | |
7176 | }; | |
7177 | ||
7178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7179 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7181 | { |
7182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7183 | { | |
7184 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7185 | result = (wxColour *) &_result_ref; | |
7186 | } | |
7187 | ||
7188 | wxPyEndAllowThreads(__tstate); | |
7189 | if (PyErr_Occurred()) SWIG_fail; | |
7190 | } | |
2f4c0a16 | 7191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7192 | return resultobj; |
7193 | fail: | |
7194 | return NULL; | |
7195 | } | |
7196 | ||
7197 | ||
7198 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7199 | PyObject *resultobj; | |
7200 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7201 | wxFont *result; | |
7202 | PyObject * obj0 = 0 ; | |
7203 | char *kwnames[] = { | |
7204 | (char *) "self", NULL | |
7205 | }; | |
7206 | ||
7207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7210 | { |
7211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7212 | { | |
7213 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7214 | result = (wxFont *) &_result_ref; | |
7215 | } | |
7216 | ||
7217 | wxPyEndAllowThreads(__tstate); | |
7218 | if (PyErr_Occurred()) SWIG_fail; | |
7219 | } | |
fe763115 RD |
7220 | { |
7221 | wxFont* resultptr = new wxFont(*result); | |
7222 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7223 | } | |
d14a1e28 RD |
7224 | return resultobj; |
7225 | fail: | |
7226 | return NULL; | |
7227 | } | |
7228 | ||
7229 | ||
7230 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7231 | PyObject *resultobj; | |
7232 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7233 | int result; | |
7234 | PyObject * obj0 = 0 ; | |
7235 | char *kwnames[] = { | |
7236 | (char *) "self", NULL | |
7237 | }; | |
7238 | ||
7239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7242 | { |
7243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7244 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7245 | ||
7246 | wxPyEndAllowThreads(__tstate); | |
7247 | if (PyErr_Occurred()) SWIG_fail; | |
7248 | } | |
2f4c0a16 | 7249 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7250 | return resultobj; |
7251 | fail: | |
7252 | return NULL; | |
7253 | } | |
7254 | ||
7255 | ||
7256 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7257 | PyObject *resultobj; | |
7258 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7259 | wxArrayInt *result; | |
7260 | PyObject * obj0 = 0 ; | |
7261 | char *kwnames[] = { | |
7262 | (char *) "self", NULL | |
7263 | }; | |
7264 | ||
7265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7268 | { |
7269 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7270 | { | |
7271 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7272 | result = (wxArrayInt *) &_result_ref; | |
7273 | } | |
7274 | ||
7275 | wxPyEndAllowThreads(__tstate); | |
7276 | if (PyErr_Occurred()) SWIG_fail; | |
7277 | } | |
7278 | { | |
7279 | resultobj = PyList_New(0); | |
7280 | size_t idx; | |
7281 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7282 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7283 | PyList_Append(resultobj, val); | |
7284 | Py_DECREF(val); | |
7285 | } | |
7286 | } | |
7287 | return resultobj; | |
7288 | fail: | |
7289 | return NULL; | |
7290 | } | |
7291 | ||
7292 | ||
7293 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7294 | PyObject *resultobj; | |
7295 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7296 | long result; | |
7297 | PyObject * obj0 = 0 ; | |
7298 | char *kwnames[] = { | |
7299 | (char *) "self", NULL | |
7300 | }; | |
7301 | ||
7302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7305 | { |
7306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7307 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7308 | ||
7309 | wxPyEndAllowThreads(__tstate); | |
7310 | if (PyErr_Occurred()) SWIG_fail; | |
7311 | } | |
2f4c0a16 | 7312 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7313 | return resultobj; |
7314 | fail: | |
7315 | return NULL; | |
7316 | } | |
7317 | ||
7318 | ||
7319 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7320 | PyObject *resultobj; | |
7321 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7322 | long result; | |
7323 | PyObject * obj0 = 0 ; | |
7324 | char *kwnames[] = { | |
7325 | (char *) "self", NULL | |
7326 | }; | |
7327 | ||
7328 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7329 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7330 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7331 | { |
7332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7333 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7334 | ||
7335 | wxPyEndAllowThreads(__tstate); | |
7336 | if (PyErr_Occurred()) SWIG_fail; | |
7337 | } | |
2f4c0a16 | 7338 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7339 | return resultobj; |
7340 | fail: | |
7341 | return NULL; | |
7342 | } | |
7343 | ||
7344 | ||
7345 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7346 | PyObject *resultobj; | |
7347 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7348 | long result; | |
7349 | PyObject * obj0 = 0 ; | |
7350 | char *kwnames[] = { | |
7351 | (char *) "self", NULL | |
7352 | }; | |
7353 | ||
7354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7357 | { |
7358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7359 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7360 | ||
7361 | wxPyEndAllowThreads(__tstate); | |
7362 | if (PyErr_Occurred()) SWIG_fail; | |
7363 | } | |
2f4c0a16 | 7364 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7365 | return resultobj; |
7366 | fail: | |
7367 | return NULL; | |
7368 | } | |
7369 | ||
7370 | ||
7371 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7372 | PyObject *resultobj; | |
7373 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7374 | bool result; | |
7375 | PyObject * obj0 = 0 ; | |
7376 | char *kwnames[] = { | |
7377 | (char *) "self", NULL | |
7378 | }; | |
7379 | ||
7380 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7381 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7383 | { |
7384 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7385 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7386 | ||
7387 | wxPyEndAllowThreads(__tstate); | |
7388 | if (PyErr_Occurred()) SWIG_fail; | |
7389 | } | |
4f89f6a3 RD |
7390 | { |
7391 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7392 | } | |
d14a1e28 RD |
7393 | return resultobj; |
7394 | fail: | |
7395 | return NULL; | |
7396 | } | |
7397 | ||
7398 | ||
7399 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7400 | PyObject *resultobj; | |
7401 | wxTextAttr *arg1 = 0 ; | |
7402 | wxTextAttr *arg2 = 0 ; | |
7403 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7404 | wxTextAttr result; | |
7405 | PyObject * obj0 = 0 ; | |
7406 | PyObject * obj1 = 0 ; | |
7407 | PyObject * obj2 = 0 ; | |
7408 | char *kwnames[] = { | |
7409 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7410 | }; | |
7411 | ||
7412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
7413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7414 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7415 | SWIG_fail; | |
d14a1e28 | 7416 | if (arg1 == NULL) { |
2f4c0a16 RD |
7417 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7418 | SWIG_fail; | |
d14a1e28 | 7419 | } |
2f4c0a16 RD |
7420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7422 | SWIG_fail; | |
d14a1e28 | 7423 | if (arg2 == NULL) { |
2f4c0a16 RD |
7424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7425 | SWIG_fail; | |
d14a1e28 | 7426 | } |
2f4c0a16 RD |
7427 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7429 | { |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7432 | ||
7433 | wxPyEndAllowThreads(__tstate); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
7436 | { | |
7437 | wxTextAttr * resultptr; | |
7438 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
2f4c0a16 | 7439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7440 | } |
7441 | return resultobj; | |
7442 | fail: | |
7443 | return NULL; | |
7444 | } | |
7445 | ||
7446 | ||
7447 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7448 | PyObject *obj; | |
7449 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7450 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7451 | Py_INCREF(obj); | |
7452 | return Py_BuildValue((char *)""); | |
7453 | } | |
7454 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7455 | PyObject *resultobj; | |
7456 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 7457 | int arg2 ; |
d14a1e28 RD |
7458 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7459 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7460 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7461 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7462 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7463 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7464 | long arg6 = (long) 0 ; | |
7465 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7466 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7467 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7468 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7469 | wxTextCtrl *result; | |
423f194a | 7470 | bool temp3 = False ; |
d14a1e28 RD |
7471 | wxPoint temp4 ; |
7472 | wxSize temp5 ; | |
423f194a | 7473 | bool temp8 = False ; |
d14a1e28 | 7474 | PyObject * obj0 = 0 ; |
8edf1c75 | 7475 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7476 | PyObject * obj2 = 0 ; |
7477 | PyObject * obj3 = 0 ; | |
7478 | PyObject * obj4 = 0 ; | |
8edf1c75 | 7479 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7480 | PyObject * obj6 = 0 ; |
7481 | PyObject * obj7 = 0 ; | |
7482 | char *kwnames[] = { | |
7483 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7484 | }; | |
7485 | ||
8edf1c75 | 7486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
7487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7489 | arg2 = (int) SWIG_AsInt(obj1); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7491 | if (obj2) { |
7492 | { | |
7493 | arg3 = wxString_in_helper(obj2); | |
7494 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 7495 | temp3 = True; |
d14a1e28 RD |
7496 | } |
7497 | } | |
7498 | if (obj3) { | |
7499 | { | |
7500 | arg4 = &temp4; | |
7501 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
7502 | } | |
7503 | } | |
7504 | if (obj4) { | |
7505 | { | |
7506 | arg5 = &temp5; | |
7507 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
7508 | } | |
7509 | } | |
8edf1c75 | 7510 | if (obj5) { |
2f4c0a16 RD |
7511 | arg6 = (long) SWIG_AsLong(obj5); |
7512 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7513 | } |
d14a1e28 | 7514 | if (obj6) { |
2f4c0a16 RD |
7515 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
7516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7517 | SWIG_fail; | |
d14a1e28 | 7518 | if (arg7 == NULL) { |
2f4c0a16 RD |
7519 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7520 | SWIG_fail; | |
d14a1e28 RD |
7521 | } |
7522 | } | |
7523 | if (obj7) { | |
7524 | { | |
7525 | arg8 = wxString_in_helper(obj7); | |
7526 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 7527 | temp8 = True; |
d14a1e28 RD |
7528 | } |
7529 | } | |
7530 | { | |
7531 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7532 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
7533 | ||
7534 | wxPyEndAllowThreads(__tstate); | |
7535 | if (PyErr_Occurred()) SWIG_fail; | |
7536 | } | |
7537 | { | |
7538 | resultobj = wxPyMake_wxObject(result); | |
7539 | } | |
7540 | { | |
7541 | if (temp3) | |
7542 | delete arg3; | |
7543 | } | |
7544 | { | |
7545 | if (temp8) | |
7546 | delete arg8; | |
7547 | } | |
7548 | return resultobj; | |
7549 | fail: | |
7550 | { | |
7551 | if (temp3) | |
7552 | delete arg3; | |
7553 | } | |
7554 | { | |
7555 | if (temp8) | |
7556 | delete arg8; | |
7557 | } | |
7558 | return NULL; | |
7559 | } | |
7560 | ||
7561 | ||
7562 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7563 | PyObject *resultobj; | |
7564 | wxTextCtrl *result; | |
7565 | char *kwnames[] = { | |
7566 | NULL | |
7567 | }; | |
7568 | ||
7569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
7570 | { | |
7571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7572 | result = (wxTextCtrl *)new wxTextCtrl(); | |
7573 | ||
7574 | wxPyEndAllowThreads(__tstate); | |
7575 | if (PyErr_Occurred()) SWIG_fail; | |
7576 | } | |
7577 | { | |
7578 | resultobj = wxPyMake_wxObject(result); | |
7579 | } | |
7580 | return resultobj; | |
7581 | fail: | |
7582 | return NULL; | |
7583 | } | |
7584 | ||
7585 | ||
7586 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7587 | PyObject *resultobj; | |
7588 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7589 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 7590 | int arg3 ; |
d14a1e28 RD |
7591 | wxString const &arg4_defvalue = wxPyEmptyString ; |
7592 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
7593 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
7594 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
7595 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
7596 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
7597 | long arg7 = (long) 0 ; | |
7598 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
7599 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
7600 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
7601 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
7602 | bool result; | |
423f194a | 7603 | bool temp4 = False ; |
d14a1e28 RD |
7604 | wxPoint temp5 ; |
7605 | wxSize temp6 ; | |
423f194a | 7606 | bool temp9 = False ; |
d14a1e28 RD |
7607 | PyObject * obj0 = 0 ; |
7608 | PyObject * obj1 = 0 ; | |
8edf1c75 | 7609 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7610 | PyObject * obj3 = 0 ; |
7611 | PyObject * obj4 = 0 ; | |
7612 | PyObject * obj5 = 0 ; | |
8edf1c75 | 7613 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
7614 | PyObject * obj7 = 0 ; |
7615 | PyObject * obj8 = 0 ; | |
7616 | char *kwnames[] = { | |
7617 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7618 | }; | |
7619 | ||
8edf1c75 | 7620 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
7621 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7623 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
7624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7625 | arg3 = (int) SWIG_AsInt(obj2); | |
7626 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7627 | if (obj3) { |
7628 | { | |
7629 | arg4 = wxString_in_helper(obj3); | |
7630 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 7631 | temp4 = True; |
d14a1e28 RD |
7632 | } |
7633 | } | |
7634 | if (obj4) { | |
7635 | { | |
7636 | arg5 = &temp5; | |
7637 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
7638 | } | |
7639 | } | |
7640 | if (obj5) { | |
7641 | { | |
7642 | arg6 = &temp6; | |
7643 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
7644 | } | |
7645 | } | |
8edf1c75 | 7646 | if (obj6) { |
2f4c0a16 RD |
7647 | arg7 = (long) SWIG_AsLong(obj6); |
7648 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 7649 | } |
d14a1e28 | 7650 | if (obj7) { |
2f4c0a16 RD |
7651 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
7652 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7653 | SWIG_fail; | |
d14a1e28 | 7654 | if (arg8 == NULL) { |
2f4c0a16 RD |
7655 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7656 | SWIG_fail; | |
d14a1e28 RD |
7657 | } |
7658 | } | |
7659 | if (obj8) { | |
7660 | { | |
7661 | arg9 = wxString_in_helper(obj8); | |
7662 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 7663 | temp9 = True; |
d14a1e28 RD |
7664 | } |
7665 | } | |
7666 | { | |
7667 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7668 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
7669 | ||
7670 | wxPyEndAllowThreads(__tstate); | |
7671 | if (PyErr_Occurred()) SWIG_fail; | |
7672 | } | |
4f89f6a3 RD |
7673 | { |
7674 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7675 | } | |
d14a1e28 RD |
7676 | { |
7677 | if (temp4) | |
7678 | delete arg4; | |
7679 | } | |
7680 | { | |
7681 | if (temp9) | |
7682 | delete arg9; | |
7683 | } | |
7684 | return resultobj; | |
7685 | fail: | |
7686 | { | |
7687 | if (temp4) | |
7688 | delete arg4; | |
7689 | } | |
7690 | { | |
7691 | if (temp9) | |
7692 | delete arg9; | |
7693 | } | |
7694 | return NULL; | |
7695 | } | |
7696 | ||
7697 | ||
7698 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7699 | PyObject *resultobj; | |
7700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7701 | wxString result; | |
7702 | PyObject * obj0 = 0 ; | |
7703 | char *kwnames[] = { | |
7704 | (char *) "self", NULL | |
7705 | }; | |
7706 | ||
7707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7710 | { |
7711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7712 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
7713 | ||
7714 | wxPyEndAllowThreads(__tstate); | |
7715 | if (PyErr_Occurred()) SWIG_fail; | |
7716 | } | |
7717 | { | |
7718 | #if wxUSE_UNICODE | |
7719 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7720 | #else | |
7721 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7722 | #endif | |
7723 | } | |
7724 | return resultobj; | |
7725 | fail: | |
7726 | return NULL; | |
7727 | } | |
7728 | ||
7729 | ||
7730 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7731 | PyObject *resultobj; | |
7732 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7733 | wxString *arg2 = 0 ; | |
423f194a | 7734 | bool temp2 = False ; |
d14a1e28 RD |
7735 | PyObject * obj0 = 0 ; |
7736 | PyObject * obj1 = 0 ; | |
7737 | char *kwnames[] = { | |
7738 | (char *) "self",(char *) "value", NULL | |
7739 | }; | |
7740 | ||
7741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
7742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7744 | { |
7745 | arg2 = wxString_in_helper(obj1); | |
7746 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 7747 | temp2 = True; |
d14a1e28 RD |
7748 | } |
7749 | { | |
7750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7751 | (arg1)->SetValue((wxString const &)*arg2); | |
7752 | ||
7753 | wxPyEndAllowThreads(__tstate); | |
7754 | if (PyErr_Occurred()) SWIG_fail; | |
7755 | } | |
7756 | Py_INCREF(Py_None); resultobj = Py_None; | |
7757 | { | |
7758 | if (temp2) | |
7759 | delete arg2; | |
7760 | } | |
7761 | return resultobj; | |
7762 | fail: | |
7763 | { | |
7764 | if (temp2) | |
7765 | delete arg2; | |
7766 | } | |
7767 | return NULL; | |
7768 | } | |
7769 | ||
7770 | ||
7771 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7772 | PyObject *resultobj; | |
7773 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7774 | long arg2 ; | |
7775 | long arg3 ; | |
7776 | wxString result; | |
7777 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
7778 | PyObject * obj1 = 0 ; |
7779 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
7780 | char *kwnames[] = { |
7781 | (char *) "self",(char *) "from",(char *) "to", NULL | |
7782 | }; | |
7783 | ||
8edf1c75 | 7784 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
7785 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7786 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7787 | arg2 = (long) SWIG_AsLong(obj1); | |
7788 | if (PyErr_Occurred()) SWIG_fail; | |
7789 | arg3 = (long) SWIG_AsLong(obj2); | |
7790 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7791 | { |
7792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7793 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
7794 | ||
7795 | wxPyEndAllowThreads(__tstate); | |
7796 | if (PyErr_Occurred()) SWIG_fail; | |
7797 | } | |
7798 | { | |
7799 | #if wxUSE_UNICODE | |
7800 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7801 | #else | |
7802 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7803 | #endif | |
7804 | } | |
7805 | return resultobj; | |
7806 | fail: | |
7807 | return NULL; | |
7808 | } | |
7809 | ||
7810 | ||
7811 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7812 | PyObject *resultobj; | |
7813 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7814 | long arg2 ; | |
7815 | int result; | |
7816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7817 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7818 | char *kwnames[] = { |
7819 | (char *) "self",(char *) "lineNo", NULL | |
7820 | }; | |
7821 | ||
8edf1c75 | 7822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7825 | arg2 = (long) SWIG_AsLong(obj1); | |
7826 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7827 | { |
7828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7829 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
7830 | ||
7831 | wxPyEndAllowThreads(__tstate); | |
7832 | if (PyErr_Occurred()) SWIG_fail; | |
7833 | } | |
2f4c0a16 | 7834 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7835 | return resultobj; |
7836 | fail: | |
7837 | return NULL; | |
7838 | } | |
7839 | ||
7840 | ||
7841 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7842 | PyObject *resultobj; | |
7843 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7844 | long arg2 ; | |
7845 | wxString result; | |
7846 | PyObject * obj0 = 0 ; | |
8edf1c75 | 7847 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7848 | char *kwnames[] = { |
7849 | (char *) "self",(char *) "lineNo", NULL | |
7850 | }; | |
7851 | ||
8edf1c75 | 7852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
7853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7855 | arg2 = (long) SWIG_AsLong(obj1); | |
7856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7857 | { |
7858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7859 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
7860 | ||
7861 | wxPyEndAllowThreads(__tstate); | |
7862 | if (PyErr_Occurred()) SWIG_fail; | |
7863 | } | |
7864 | { | |
7865 | #if wxUSE_UNICODE | |
7866 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
7867 | #else | |
7868 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
7869 | #endif | |
7870 | } | |
7871 | return resultobj; | |
7872 | fail: | |
7873 | return NULL; | |
7874 | } | |
7875 | ||
7876 | ||
7877 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7878 | PyObject *resultobj; | |
7879 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7880 | int result; | |
7881 | PyObject * obj0 = 0 ; | |
7882 | char *kwnames[] = { | |
7883 | (char *) "self", NULL | |
7884 | }; | |
7885 | ||
7886 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7887 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7888 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7889 | { |
7890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7891 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
7892 | ||
7893 | wxPyEndAllowThreads(__tstate); | |
7894 | if (PyErr_Occurred()) SWIG_fail; | |
7895 | } | |
2f4c0a16 | 7896 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7897 | return resultobj; |
7898 | fail: | |
7899 | return NULL; | |
7900 | } | |
7901 | ||
7902 | ||
7903 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7904 | PyObject *resultobj; | |
7905 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7906 | bool result; | |
7907 | PyObject * obj0 = 0 ; | |
7908 | char *kwnames[] = { | |
7909 | (char *) "self", NULL | |
7910 | }; | |
7911 | ||
7912 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7913 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7914 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7915 | { |
7916 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7917 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
7918 | ||
7919 | wxPyEndAllowThreads(__tstate); | |
7920 | if (PyErr_Occurred()) SWIG_fail; | |
7921 | } | |
4f89f6a3 RD |
7922 | { |
7923 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7924 | } | |
d14a1e28 RD |
7925 | return resultobj; |
7926 | fail: | |
7927 | return NULL; | |
7928 | } | |
7929 | ||
7930 | ||
7931 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7932 | PyObject *resultobj; | |
7933 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7934 | bool result; | |
7935 | PyObject * obj0 = 0 ; | |
7936 | char *kwnames[] = { | |
7937 | (char *) "self", NULL | |
7938 | }; | |
7939 | ||
7940 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7941 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7942 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7943 | { |
7944 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7945 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
7946 | ||
7947 | wxPyEndAllowThreads(__tstate); | |
7948 | if (PyErr_Occurred()) SWIG_fail; | |
7949 | } | |
4f89f6a3 RD |
7950 | { |
7951 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7952 | } | |
d14a1e28 RD |
7953 | return resultobj; |
7954 | fail: | |
7955 | return NULL; | |
7956 | } | |
7957 | ||
7958 | ||
7959 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7960 | PyObject *resultobj; | |
7961 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7962 | bool result; | |
7963 | PyObject * obj0 = 0 ; | |
7964 | char *kwnames[] = { | |
7965 | (char *) "self", NULL | |
7966 | }; | |
7967 | ||
7968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7971 | { |
7972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7973 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
7974 | ||
7975 | wxPyEndAllowThreads(__tstate); | |
7976 | if (PyErr_Occurred()) SWIG_fail; | |
7977 | } | |
4f89f6a3 RD |
7978 | { |
7979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7980 | } | |
d14a1e28 RD |
7981 | return resultobj; |
7982 | fail: | |
7983 | return NULL; | |
7984 | } | |
7985 | ||
7986 | ||
7987 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7988 | PyObject *resultobj; | |
7989 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
7990 | bool result; | |
7991 | PyObject * obj0 = 0 ; | |
7992 | char *kwnames[] = { | |
7993 | (char *) "self", NULL | |
7994 | }; | |
7995 | ||
7996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
7997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
7998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7999 | { |
8000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8001 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8002 | ||
8003 | wxPyEndAllowThreads(__tstate); | |
8004 | if (PyErr_Occurred()) SWIG_fail; | |
8005 | } | |
4f89f6a3 RD |
8006 | { |
8007 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8008 | } | |
d14a1e28 RD |
8009 | return resultobj; |
8010 | fail: | |
8011 | return NULL; | |
8012 | } | |
8013 | ||
8014 | ||
8015 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8016 | PyObject *resultobj; | |
8017 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8018 | long *arg2 = (long *) 0 ; | |
8019 | long *arg3 = (long *) 0 ; | |
8020 | long temp2 ; | |
8021 | long temp3 ; | |
8022 | PyObject * obj0 = 0 ; | |
8023 | char *kwnames[] = { | |
8024 | (char *) "self", NULL | |
8025 | }; | |
8026 | ||
8027 | arg2 = &temp2; | |
8028 | arg3 = &temp3; | |
8029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8032 | { |
8033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8034 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8035 | ||
8036 | wxPyEndAllowThreads(__tstate); | |
8037 | if (PyErr_Occurred()) SWIG_fail; | |
8038 | } | |
8039 | Py_INCREF(Py_None); resultobj = Py_None; | |
8040 | { | |
8041 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8042 | resultobj = t_output_helper(resultobj,o); | |
8043 | } | |
8044 | { | |
8045 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8046 | resultobj = t_output_helper(resultobj,o); | |
8047 | } | |
8048 | return resultobj; | |
8049 | fail: | |
8050 | return NULL; | |
8051 | } | |
8052 | ||
8053 | ||
8054 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8055 | PyObject *resultobj; | |
8056 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8057 | wxString result; | |
8058 | PyObject * obj0 = 0 ; | |
8059 | char *kwnames[] = { | |
8060 | (char *) "self", NULL | |
8061 | }; | |
8062 | ||
8063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8066 | { |
8067 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8068 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8069 | ||
8070 | wxPyEndAllowThreads(__tstate); | |
8071 | if (PyErr_Occurred()) SWIG_fail; | |
8072 | } | |
8073 | { | |
8074 | #if wxUSE_UNICODE | |
8075 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8076 | #else | |
8077 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8078 | #endif | |
8079 | } | |
8080 | return resultobj; | |
8081 | fail: | |
8082 | return NULL; | |
8083 | } | |
8084 | ||
8085 | ||
8086 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8087 | PyObject *resultobj; | |
8088 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8089 | PyObject * obj0 = 0 ; | |
8090 | char *kwnames[] = { | |
8091 | (char *) "self", NULL | |
8092 | }; | |
8093 | ||
8094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8097 | { |
8098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8099 | (arg1)->Clear(); | |
8100 | ||
8101 | wxPyEndAllowThreads(__tstate); | |
8102 | if (PyErr_Occurred()) SWIG_fail; | |
8103 | } | |
8104 | Py_INCREF(Py_None); resultobj = Py_None; | |
8105 | return resultobj; | |
8106 | fail: | |
8107 | return NULL; | |
8108 | } | |
8109 | ||
8110 | ||
8111 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8112 | PyObject *resultobj; | |
8113 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8114 | long arg2 ; | |
8115 | long arg3 ; | |
8116 | wxString *arg4 = 0 ; | |
423f194a | 8117 | bool temp4 = False ; |
d14a1e28 | 8118 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
8119 | PyObject * obj1 = 0 ; |
8120 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8121 | PyObject * obj3 = 0 ; |
8122 | char *kwnames[] = { | |
8123 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8124 | }; | |
8125 | ||
8edf1c75 | 8126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8129 | arg2 = (long) SWIG_AsLong(obj1); | |
8130 | if (PyErr_Occurred()) SWIG_fail; | |
8131 | arg3 = (long) SWIG_AsLong(obj2); | |
8132 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8133 | { |
8134 | arg4 = wxString_in_helper(obj3); | |
8135 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 8136 | temp4 = True; |
d14a1e28 RD |
8137 | } |
8138 | { | |
8139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8140 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8141 | ||
8142 | wxPyEndAllowThreads(__tstate); | |
8143 | if (PyErr_Occurred()) SWIG_fail; | |
8144 | } | |
8145 | Py_INCREF(Py_None); resultobj = Py_None; | |
8146 | { | |
8147 | if (temp4) | |
8148 | delete arg4; | |
8149 | } | |
8150 | return resultobj; | |
8151 | fail: | |
8152 | { | |
8153 | if (temp4) | |
8154 | delete arg4; | |
8155 | } | |
8156 | return NULL; | |
8157 | } | |
8158 | ||
8159 | ||
8160 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8161 | PyObject *resultobj; | |
8162 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8163 | long arg2 ; | |
8164 | long arg3 ; | |
8165 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8166 | PyObject * obj1 = 0 ; |
8167 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8168 | char *kwnames[] = { |
8169 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8170 | }; | |
8171 | ||
8edf1c75 | 8172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8175 | arg2 = (long) SWIG_AsLong(obj1); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | arg3 = (long) SWIG_AsLong(obj2); | |
8178 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8179 | { |
8180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8181 | (arg1)->Remove(arg2,arg3); | |
8182 | ||
8183 | wxPyEndAllowThreads(__tstate); | |
8184 | if (PyErr_Occurred()) SWIG_fail; | |
8185 | } | |
8186 | Py_INCREF(Py_None); resultobj = Py_None; | |
8187 | return resultobj; | |
8188 | fail: | |
8189 | return NULL; | |
8190 | } | |
8191 | ||
8192 | ||
8193 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8194 | PyObject *resultobj; | |
8195 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8196 | wxString *arg2 = 0 ; | |
8197 | bool result; | |
423f194a | 8198 | bool temp2 = False ; |
d14a1e28 RD |
8199 | PyObject * obj0 = 0 ; |
8200 | PyObject * obj1 = 0 ; | |
8201 | char *kwnames[] = { | |
8202 | (char *) "self",(char *) "file", NULL | |
8203 | }; | |
8204 | ||
8205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8208 | { |
8209 | arg2 = wxString_in_helper(obj1); | |
8210 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8211 | temp2 = True; |
d14a1e28 RD |
8212 | } |
8213 | { | |
8214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8215 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8216 | ||
8217 | wxPyEndAllowThreads(__tstate); | |
8218 | if (PyErr_Occurred()) SWIG_fail; | |
8219 | } | |
4f89f6a3 RD |
8220 | { |
8221 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8222 | } | |
d14a1e28 RD |
8223 | { |
8224 | if (temp2) | |
8225 | delete arg2; | |
8226 | } | |
8227 | return resultobj; | |
8228 | fail: | |
8229 | { | |
8230 | if (temp2) | |
8231 | delete arg2; | |
8232 | } | |
8233 | return NULL; | |
8234 | } | |
8235 | ||
8236 | ||
8237 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8238 | PyObject *resultobj; | |
8239 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8240 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8241 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8242 | bool result; | |
423f194a | 8243 | bool temp2 = False ; |
d14a1e28 RD |
8244 | PyObject * obj0 = 0 ; |
8245 | PyObject * obj1 = 0 ; | |
8246 | char *kwnames[] = { | |
8247 | (char *) "self",(char *) "file", NULL | |
8248 | }; | |
8249 | ||
8250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8253 | if (obj1) { |
8254 | { | |
8255 | arg2 = wxString_in_helper(obj1); | |
8256 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8257 | temp2 = True; |
d14a1e28 RD |
8258 | } |
8259 | } | |
8260 | { | |
8261 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8262 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8263 | ||
8264 | wxPyEndAllowThreads(__tstate); | |
8265 | if (PyErr_Occurred()) SWIG_fail; | |
8266 | } | |
4f89f6a3 RD |
8267 | { |
8268 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8269 | } | |
d14a1e28 RD |
8270 | { |
8271 | if (temp2) | |
8272 | delete arg2; | |
8273 | } | |
8274 | return resultobj; | |
8275 | fail: | |
8276 | { | |
8277 | if (temp2) | |
8278 | delete arg2; | |
8279 | } | |
8280 | return NULL; | |
8281 | } | |
8282 | ||
8283 | ||
8284 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8285 | PyObject *resultobj; | |
8286 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8287 | PyObject * obj0 = 0 ; | |
8288 | char *kwnames[] = { | |
8289 | (char *) "self", NULL | |
8290 | }; | |
8291 | ||
8292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8295 | { |
8296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8297 | (arg1)->MarkDirty(); | |
8298 | ||
8299 | wxPyEndAllowThreads(__tstate); | |
8300 | if (PyErr_Occurred()) SWIG_fail; | |
8301 | } | |
8302 | Py_INCREF(Py_None); resultobj = Py_None; | |
8303 | return resultobj; | |
8304 | fail: | |
8305 | return NULL; | |
8306 | } | |
8307 | ||
8308 | ||
8309 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8310 | PyObject *resultobj; | |
8311 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8312 | PyObject * obj0 = 0 ; | |
8313 | char *kwnames[] = { | |
8314 | (char *) "self", NULL | |
8315 | }; | |
8316 | ||
8317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8320 | { |
8321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8322 | (arg1)->DiscardEdits(); | |
8323 | ||
8324 | wxPyEndAllowThreads(__tstate); | |
8325 | if (PyErr_Occurred()) SWIG_fail; | |
8326 | } | |
8327 | Py_INCREF(Py_None); resultobj = Py_None; | |
8328 | return resultobj; | |
8329 | fail: | |
8330 | return NULL; | |
8331 | } | |
8332 | ||
8333 | ||
8334 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8335 | PyObject *resultobj; | |
8336 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8337 | unsigned long arg2 ; | |
8338 | PyObject * obj0 = 0 ; | |
8339 | PyObject * obj1 = 0 ; | |
8340 | char *kwnames[] = { | |
8341 | (char *) "self",(char *) "len", NULL | |
8342 | }; | |
8343 | ||
8344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8347 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8348 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8349 | { |
8350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8351 | (arg1)->SetMaxLength(arg2); | |
8352 | ||
8353 | wxPyEndAllowThreads(__tstate); | |
8354 | if (PyErr_Occurred()) SWIG_fail; | |
8355 | } | |
8356 | Py_INCREF(Py_None); resultobj = Py_None; | |
8357 | return resultobj; | |
8358 | fail: | |
8359 | return NULL; | |
8360 | } | |
8361 | ||
8362 | ||
8363 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8364 | PyObject *resultobj; | |
8365 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8366 | wxString *arg2 = 0 ; | |
423f194a | 8367 | bool temp2 = False ; |
d14a1e28 RD |
8368 | PyObject * obj0 = 0 ; |
8369 | PyObject * obj1 = 0 ; | |
8370 | char *kwnames[] = { | |
8371 | (char *) "self",(char *) "text", NULL | |
8372 | }; | |
8373 | ||
8374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8377 | { |
8378 | arg2 = wxString_in_helper(obj1); | |
8379 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8380 | temp2 = True; |
d14a1e28 RD |
8381 | } |
8382 | { | |
8383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8384 | (arg1)->WriteText((wxString const &)*arg2); | |
8385 | ||
8386 | wxPyEndAllowThreads(__tstate); | |
8387 | if (PyErr_Occurred()) SWIG_fail; | |
8388 | } | |
8389 | Py_INCREF(Py_None); resultobj = Py_None; | |
8390 | { | |
8391 | if (temp2) | |
8392 | delete arg2; | |
8393 | } | |
8394 | return resultobj; | |
8395 | fail: | |
8396 | { | |
8397 | if (temp2) | |
8398 | delete arg2; | |
8399 | } | |
8400 | return NULL; | |
8401 | } | |
8402 | ||
8403 | ||
8404 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8405 | PyObject *resultobj; | |
8406 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8407 | wxString *arg2 = 0 ; | |
423f194a | 8408 | bool temp2 = False ; |
d14a1e28 RD |
8409 | PyObject * obj0 = 0 ; |
8410 | PyObject * obj1 = 0 ; | |
8411 | char *kwnames[] = { | |
8412 | (char *) "self",(char *) "text", NULL | |
8413 | }; | |
8414 | ||
8415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8418 | { |
8419 | arg2 = wxString_in_helper(obj1); | |
8420 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 8421 | temp2 = True; |
d14a1e28 RD |
8422 | } |
8423 | { | |
8424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8425 | (arg1)->AppendText((wxString const &)*arg2); | |
8426 | ||
8427 | wxPyEndAllowThreads(__tstate); | |
8428 | if (PyErr_Occurred()) SWIG_fail; | |
8429 | } | |
8430 | Py_INCREF(Py_None); resultobj = Py_None; | |
8431 | { | |
8432 | if (temp2) | |
8433 | delete arg2; | |
8434 | } | |
8435 | return resultobj; | |
8436 | fail: | |
8437 | { | |
8438 | if (temp2) | |
8439 | delete arg2; | |
8440 | } | |
8441 | return NULL; | |
8442 | } | |
8443 | ||
8444 | ||
8445 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8446 | PyObject *resultobj; | |
8447 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8448 | wxKeyEvent *arg2 = 0 ; | |
8449 | bool result; | |
8450 | PyObject * obj0 = 0 ; | |
8451 | PyObject * obj1 = 0 ; | |
8452 | char *kwnames[] = { | |
8453 | (char *) "self",(char *) "event", NULL | |
8454 | }; | |
8455 | ||
8456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8459 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8460 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8461 | SWIG_fail; | |
d14a1e28 | 8462 | if (arg2 == NULL) { |
2f4c0a16 RD |
8463 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8464 | SWIG_fail; | |
d14a1e28 RD |
8465 | } |
8466 | { | |
8467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8468 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8469 | ||
8470 | wxPyEndAllowThreads(__tstate); | |
8471 | if (PyErr_Occurred()) SWIG_fail; | |
8472 | } | |
4f89f6a3 RD |
8473 | { |
8474 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8475 | } | |
d14a1e28 RD |
8476 | return resultobj; |
8477 | fail: | |
8478 | return NULL; | |
8479 | } | |
8480 | ||
8481 | ||
8482 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8483 | PyObject *resultobj; | |
8484 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8485 | long arg2 ; | |
8486 | long arg3 ; | |
8487 | wxTextAttr *arg4 = 0 ; | |
8488 | bool result; | |
8489 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8490 | PyObject * obj1 = 0 ; |
8491 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8492 | PyObject * obj3 = 0 ; |
8493 | char *kwnames[] = { | |
8494 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
8495 | }; | |
8496 | ||
8edf1c75 | 8497 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
8498 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8499 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8500 | arg2 = (long) SWIG_AsLong(obj1); | |
8501 | if (PyErr_Occurred()) SWIG_fail; | |
8502 | arg3 = (long) SWIG_AsLong(obj2); | |
8503 | if (PyErr_Occurred()) SWIG_fail; | |
8504 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
8505 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8506 | SWIG_fail; | |
d14a1e28 | 8507 | if (arg4 == NULL) { |
2f4c0a16 RD |
8508 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8509 | SWIG_fail; | |
d14a1e28 RD |
8510 | } |
8511 | { | |
8512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8513 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
8514 | ||
8515 | wxPyEndAllowThreads(__tstate); | |
8516 | if (PyErr_Occurred()) SWIG_fail; | |
8517 | } | |
4f89f6a3 RD |
8518 | { |
8519 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8520 | } | |
d14a1e28 RD |
8521 | return resultobj; |
8522 | fail: | |
8523 | return NULL; | |
8524 | } | |
8525 | ||
8526 | ||
8527 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8528 | PyObject *resultobj; | |
8529 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8530 | long arg2 ; | |
8531 | wxTextAttr *arg3 = 0 ; | |
8532 | bool result; | |
8533 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8534 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8535 | PyObject * obj2 = 0 ; |
8536 | char *kwnames[] = { | |
8537 | (char *) "self",(char *) "position",(char *) "style", NULL | |
8538 | }; | |
8539 | ||
8edf1c75 | 8540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8543 | arg2 = (long) SWIG_AsLong(obj1); | |
8544 | if (PyErr_Occurred()) SWIG_fail; | |
8545 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
8546 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8547 | SWIG_fail; | |
d14a1e28 | 8548 | if (arg3 == NULL) { |
2f4c0a16 RD |
8549 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8550 | SWIG_fail; | |
d14a1e28 RD |
8551 | } |
8552 | { | |
8553 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8554 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
8555 | ||
8556 | wxPyEndAllowThreads(__tstate); | |
8557 | if (PyErr_Occurred()) SWIG_fail; | |
8558 | } | |
4f89f6a3 RD |
8559 | { |
8560 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8561 | } | |
d14a1e28 RD |
8562 | return resultobj; |
8563 | fail: | |
8564 | return NULL; | |
8565 | } | |
8566 | ||
8567 | ||
8568 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8569 | PyObject *resultobj; | |
8570 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8571 | wxTextAttr *arg2 = 0 ; | |
8572 | bool result; | |
8573 | PyObject * obj0 = 0 ; | |
8574 | PyObject * obj1 = 0 ; | |
8575 | char *kwnames[] = { | |
8576 | (char *) "self",(char *) "style", NULL | |
8577 | }; | |
8578 | ||
8579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8582 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
8583 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8584 | SWIG_fail; | |
d14a1e28 | 8585 | if (arg2 == NULL) { |
2f4c0a16 RD |
8586 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8587 | SWIG_fail; | |
d14a1e28 RD |
8588 | } |
8589 | { | |
8590 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8591 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
8592 | ||
8593 | wxPyEndAllowThreads(__tstate); | |
8594 | if (PyErr_Occurred()) SWIG_fail; | |
8595 | } | |
4f89f6a3 RD |
8596 | { |
8597 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8598 | } | |
d14a1e28 RD |
8599 | return resultobj; |
8600 | fail: | |
8601 | return NULL; | |
8602 | } | |
8603 | ||
8604 | ||
8605 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8606 | PyObject *resultobj; | |
8607 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8608 | wxTextAttr *result; | |
8609 | PyObject * obj0 = 0 ; | |
8610 | char *kwnames[] = { | |
8611 | (char *) "self", NULL | |
8612 | }; | |
8613 | ||
8614 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8615 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8616 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8617 | { |
8618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8619 | { | |
8620 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
8621 | result = (wxTextAttr *) &_result_ref; | |
8622 | } | |
8623 | ||
8624 | wxPyEndAllowThreads(__tstate); | |
8625 | if (PyErr_Occurred()) SWIG_fail; | |
8626 | } | |
2f4c0a16 | 8627 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
8628 | return resultobj; |
8629 | fail: | |
8630 | return NULL; | |
8631 | } | |
8632 | ||
8633 | ||
8634 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8635 | PyObject *resultobj; | |
8636 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8637 | long arg2 ; | |
8638 | long arg3 ; | |
8639 | long result; | |
8640 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
8641 | PyObject * obj1 = 0 ; |
8642 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8643 | char *kwnames[] = { |
8644 | (char *) "self",(char *) "x",(char *) "y", NULL | |
8645 | }; | |
8646 | ||
8edf1c75 | 8647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
8648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8650 | arg2 = (long) SWIG_AsLong(obj1); | |
8651 | if (PyErr_Occurred()) SWIG_fail; | |
8652 | arg3 = (long) SWIG_AsLong(obj2); | |
8653 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8654 | { |
8655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8656 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
8657 | ||
8658 | wxPyEndAllowThreads(__tstate); | |
8659 | if (PyErr_Occurred()) SWIG_fail; | |
8660 | } | |
2f4c0a16 | 8661 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
8662 | return resultobj; |
8663 | fail: | |
8664 | return NULL; | |
8665 | } | |
8666 | ||
8667 | ||
8668 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8669 | PyObject *resultobj; | |
8670 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8671 | long arg2 ; | |
8672 | long *arg3 = (long *) 0 ; | |
8673 | long *arg4 = (long *) 0 ; | |
8674 | long temp3 ; | |
8675 | long temp4 ; | |
8676 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8677 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8678 | char *kwnames[] = { |
8679 | (char *) "self",(char *) "pos", NULL | |
8680 | }; | |
8681 | ||
8682 | arg3 = &temp3; | |
8683 | arg4 = &temp4; | |
8edf1c75 | 8684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8687 | arg2 = (long) SWIG_AsLong(obj1); | |
8688 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8689 | { |
8690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8691 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
8692 | ||
8693 | wxPyEndAllowThreads(__tstate); | |
8694 | if (PyErr_Occurred()) SWIG_fail; | |
8695 | } | |
8696 | Py_INCREF(Py_None); resultobj = Py_None; | |
8697 | { | |
8698 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8699 | resultobj = t_output_helper(resultobj,o); | |
8700 | } | |
8701 | { | |
8702 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8703 | resultobj = t_output_helper(resultobj,o); | |
8704 | } | |
8705 | return resultobj; | |
8706 | fail: | |
8707 | return NULL; | |
8708 | } | |
8709 | ||
8710 | ||
8711 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8712 | PyObject *resultobj; | |
8713 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8714 | long arg2 ; | |
8715 | PyObject * obj0 = 0 ; | |
8edf1c75 | 8716 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8717 | char *kwnames[] = { |
8718 | (char *) "self",(char *) "pos", NULL | |
8719 | }; | |
8720 | ||
8edf1c75 | 8721 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
8722 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8724 | arg2 = (long) SWIG_AsLong(obj1); | |
8725 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8726 | { |
8727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8728 | (arg1)->ShowPosition(arg2); | |
8729 | ||
8730 | wxPyEndAllowThreads(__tstate); | |
8731 | if (PyErr_Occurred()) SWIG_fail; | |
8732 | } | |
8733 | Py_INCREF(Py_None); resultobj = Py_None; | |
8734 | return resultobj; | |
8735 | fail: | |
8736 | return NULL; | |
8737 | } | |
8738 | ||
8739 | ||
4e760a36 RD |
8740 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
8741 | PyObject *resultobj; | |
8742 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8743 | wxPoint *arg2 = 0 ; | |
8744 | long *arg3 = (long *) 0 ; | |
8745 | long *arg4 = (long *) 0 ; | |
8746 | int result; | |
8747 | wxPoint temp2 ; | |
8748 | long temp3 ; | |
8749 | long temp4 ; | |
8750 | PyObject * obj0 = 0 ; | |
8751 | PyObject * obj1 = 0 ; | |
8752 | char *kwnames[] = { | |
8753 | (char *) "self",(char *) "pt", NULL | |
8754 | }; | |
8755 | ||
8756 | arg3 = &temp3; | |
8757 | arg4 = &temp4; | |
8758 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
8759 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8760 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4e760a36 RD |
8761 | { |
8762 | arg2 = &temp2; | |
8763 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
8764 | } | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
2f4c0a16 | 8772 | resultobj = SWIG_FromInt((int)result); |
4e760a36 RD |
8773 | { |
8774 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8775 | resultobj = t_output_helper(resultobj,o); | |
8776 | } | |
8777 | { | |
8778 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
8779 | resultobj = t_output_helper(resultobj,o); | |
8780 | } | |
8781 | return resultobj; | |
8782 | fail: | |
8783 | return NULL; | |
8784 | } | |
8785 | ||
8786 | ||
d14a1e28 RD |
8787 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
8788 | PyObject *resultobj; | |
8789 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8790 | PyObject * obj0 = 0 ; | |
8791 | char *kwnames[] = { | |
8792 | (char *) "self", NULL | |
8793 | }; | |
8794 | ||
8795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8798 | { |
8799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8800 | (arg1)->Copy(); | |
8801 | ||
8802 | wxPyEndAllowThreads(__tstate); | |
8803 | if (PyErr_Occurred()) SWIG_fail; | |
8804 | } | |
8805 | Py_INCREF(Py_None); resultobj = Py_None; | |
8806 | return resultobj; | |
8807 | fail: | |
8808 | return NULL; | |
8809 | } | |
8810 | ||
8811 | ||
8812 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8813 | PyObject *resultobj; | |
8814 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8815 | PyObject * obj0 = 0 ; | |
8816 | char *kwnames[] = { | |
8817 | (char *) "self", NULL | |
8818 | }; | |
8819 | ||
8820 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8821 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8822 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8823 | { |
8824 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8825 | (arg1)->Cut(); | |
8826 | ||
8827 | wxPyEndAllowThreads(__tstate); | |
8828 | if (PyErr_Occurred()) SWIG_fail; | |
8829 | } | |
8830 | Py_INCREF(Py_None); resultobj = Py_None; | |
8831 | return resultobj; | |
8832 | fail: | |
8833 | return NULL; | |
8834 | } | |
8835 | ||
8836 | ||
8837 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8838 | PyObject *resultobj; | |
8839 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8840 | PyObject * obj0 = 0 ; | |
8841 | char *kwnames[] = { | |
8842 | (char *) "self", NULL | |
8843 | }; | |
8844 | ||
8845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8848 | { |
8849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8850 | (arg1)->Paste(); | |
8851 | ||
8852 | wxPyEndAllowThreads(__tstate); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
8854 | } | |
8855 | Py_INCREF(Py_None); resultobj = Py_None; | |
8856 | return resultobj; | |
8857 | fail: | |
8858 | return NULL; | |
8859 | } | |
8860 | ||
8861 | ||
8862 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8863 | PyObject *resultobj; | |
8864 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8865 | bool result; | |
8866 | PyObject * obj0 = 0 ; | |
8867 | char *kwnames[] = { | |
8868 | (char *) "self", NULL | |
8869 | }; | |
8870 | ||
8871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8874 | { |
8875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8876 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
8877 | ||
8878 | wxPyEndAllowThreads(__tstate); | |
8879 | if (PyErr_Occurred()) SWIG_fail; | |
8880 | } | |
4f89f6a3 RD |
8881 | { |
8882 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8883 | } | |
d14a1e28 RD |
8884 | return resultobj; |
8885 | fail: | |
8886 | return NULL; | |
8887 | } | |
8888 | ||
8889 | ||
8890 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8891 | PyObject *resultobj; | |
8892 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8893 | bool result; | |
8894 | PyObject * obj0 = 0 ; | |
8895 | char *kwnames[] = { | |
8896 | (char *) "self", NULL | |
8897 | }; | |
8898 | ||
8899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8902 | { |
8903 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8904 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
8905 | ||
8906 | wxPyEndAllowThreads(__tstate); | |
8907 | if (PyErr_Occurred()) SWIG_fail; | |
8908 | } | |
4f89f6a3 RD |
8909 | { |
8910 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8911 | } | |
d14a1e28 RD |
8912 | return resultobj; |
8913 | fail: | |
8914 | return NULL; | |
8915 | } | |
8916 | ||
8917 | ||
8918 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8919 | PyObject *resultobj; | |
8920 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8921 | bool result; | |
8922 | PyObject * obj0 = 0 ; | |
8923 | char *kwnames[] = { | |
8924 | (char *) "self", NULL | |
8925 | }; | |
8926 | ||
8927 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8928 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8929 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8930 | { |
8931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8932 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
8933 | ||
8934 | wxPyEndAllowThreads(__tstate); | |
8935 | if (PyErr_Occurred()) SWIG_fail; | |
8936 | } | |
4f89f6a3 RD |
8937 | { |
8938 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8939 | } | |
d14a1e28 RD |
8940 | return resultobj; |
8941 | fail: | |
8942 | return NULL; | |
8943 | } | |
8944 | ||
8945 | ||
8946 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8947 | PyObject *resultobj; | |
8948 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8949 | PyObject * obj0 = 0 ; | |
8950 | char *kwnames[] = { | |
8951 | (char *) "self", NULL | |
8952 | }; | |
8953 | ||
8954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8957 | { |
8958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8959 | (arg1)->Undo(); | |
8960 | ||
8961 | wxPyEndAllowThreads(__tstate); | |
8962 | if (PyErr_Occurred()) SWIG_fail; | |
8963 | } | |
8964 | Py_INCREF(Py_None); resultobj = Py_None; | |
8965 | return resultobj; | |
8966 | fail: | |
8967 | return NULL; | |
8968 | } | |
8969 | ||
8970 | ||
8971 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8972 | PyObject *resultobj; | |
8973 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8974 | PyObject * obj0 = 0 ; | |
8975 | char *kwnames[] = { | |
8976 | (char *) "self", NULL | |
8977 | }; | |
8978 | ||
8979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
8980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8982 | { |
8983 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8984 | (arg1)->Redo(); | |
8985 | ||
8986 | wxPyEndAllowThreads(__tstate); | |
8987 | if (PyErr_Occurred()) SWIG_fail; | |
8988 | } | |
8989 | Py_INCREF(Py_None); resultobj = Py_None; | |
8990 | return resultobj; | |
8991 | fail: | |
8992 | return NULL; | |
8993 | } | |
8994 | ||
8995 | ||
8996 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8997 | PyObject *resultobj; | |
8998 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8999 | bool result; | |
9000 | PyObject * obj0 = 0 ; | |
9001 | char *kwnames[] = { | |
9002 | (char *) "self", NULL | |
9003 | }; | |
9004 | ||
9005 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9006 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9007 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9008 | { |
9009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9010 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9011 | ||
9012 | wxPyEndAllowThreads(__tstate); | |
9013 | if (PyErr_Occurred()) SWIG_fail; | |
9014 | } | |
4f89f6a3 RD |
9015 | { |
9016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9017 | } | |
d14a1e28 RD |
9018 | return resultobj; |
9019 | fail: | |
9020 | return NULL; | |
9021 | } | |
9022 | ||
9023 | ||
9024 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9025 | PyObject *resultobj; | |
9026 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9027 | bool result; | |
9028 | PyObject * obj0 = 0 ; | |
9029 | char *kwnames[] = { | |
9030 | (char *) "self", NULL | |
9031 | }; | |
9032 | ||
9033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9036 | { |
9037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9038 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9039 | ||
9040 | wxPyEndAllowThreads(__tstate); | |
9041 | if (PyErr_Occurred()) SWIG_fail; | |
9042 | } | |
4f89f6a3 RD |
9043 | { |
9044 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9045 | } | |
d14a1e28 RD |
9046 | return resultobj; |
9047 | fail: | |
9048 | return NULL; | |
9049 | } | |
9050 | ||
9051 | ||
9052 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9053 | PyObject *resultobj; | |
9054 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9055 | long arg2 ; | |
9056 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9057 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9058 | char *kwnames[] = { |
9059 | (char *) "self",(char *) "pos", NULL | |
9060 | }; | |
9061 | ||
8edf1c75 | 9062 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9063 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9064 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9065 | arg2 = (long) SWIG_AsLong(obj1); | |
9066 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9067 | { |
9068 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9069 | (arg1)->SetInsertionPoint(arg2); | |
9070 | ||
9071 | wxPyEndAllowThreads(__tstate); | |
9072 | if (PyErr_Occurred()) SWIG_fail; | |
9073 | } | |
9074 | Py_INCREF(Py_None); resultobj = Py_None; | |
9075 | return resultobj; | |
9076 | fail: | |
9077 | return NULL; | |
9078 | } | |
9079 | ||
9080 | ||
9081 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9082 | PyObject *resultobj; | |
9083 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9084 | PyObject * obj0 = 0 ; | |
9085 | char *kwnames[] = { | |
9086 | (char *) "self", NULL | |
9087 | }; | |
9088 | ||
9089 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9090 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9091 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9092 | { |
9093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9094 | (arg1)->SetInsertionPointEnd(); | |
9095 | ||
9096 | wxPyEndAllowThreads(__tstate); | |
9097 | if (PyErr_Occurred()) SWIG_fail; | |
9098 | } | |
9099 | Py_INCREF(Py_None); resultobj = Py_None; | |
9100 | return resultobj; | |
9101 | fail: | |
9102 | return NULL; | |
9103 | } | |
9104 | ||
9105 | ||
9106 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9107 | PyObject *resultobj; | |
9108 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9109 | long result; | |
9110 | PyObject * obj0 = 0 ; | |
9111 | char *kwnames[] = { | |
9112 | (char *) "self", NULL | |
9113 | }; | |
9114 | ||
9115 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9116 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9117 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9118 | { |
9119 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9120 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9121 | ||
9122 | wxPyEndAllowThreads(__tstate); | |
9123 | if (PyErr_Occurred()) SWIG_fail; | |
9124 | } | |
2f4c0a16 | 9125 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9126 | return resultobj; |
9127 | fail: | |
9128 | return NULL; | |
9129 | } | |
9130 | ||
9131 | ||
9132 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9133 | PyObject *resultobj; | |
9134 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9135 | long result; | |
9136 | PyObject * obj0 = 0 ; | |
9137 | char *kwnames[] = { | |
9138 | (char *) "self", NULL | |
9139 | }; | |
9140 | ||
9141 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9142 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9143 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9144 | { |
9145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9146 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9147 | ||
9148 | wxPyEndAllowThreads(__tstate); | |
9149 | if (PyErr_Occurred()) SWIG_fail; | |
9150 | } | |
2f4c0a16 | 9151 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9152 | return resultobj; |
9153 | fail: | |
9154 | return NULL; | |
9155 | } | |
9156 | ||
9157 | ||
9158 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9159 | PyObject *resultobj; | |
9160 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9161 | long arg2 ; | |
9162 | long arg3 ; | |
9163 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9164 | PyObject * obj1 = 0 ; |
9165 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9166 | char *kwnames[] = { |
9167 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9168 | }; | |
9169 | ||
8edf1c75 | 9170 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9171 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9172 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9173 | arg2 = (long) SWIG_AsLong(obj1); | |
9174 | if (PyErr_Occurred()) SWIG_fail; | |
9175 | arg3 = (long) SWIG_AsLong(obj2); | |
9176 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9177 | { |
9178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9179 | (arg1)->SetSelection(arg2,arg3); | |
9180 | ||
9181 | wxPyEndAllowThreads(__tstate); | |
9182 | if (PyErr_Occurred()) SWIG_fail; | |
9183 | } | |
9184 | Py_INCREF(Py_None); resultobj = Py_None; | |
9185 | return resultobj; | |
9186 | fail: | |
9187 | return NULL; | |
9188 | } | |
9189 | ||
9190 | ||
9191 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9192 | PyObject *resultobj; | |
9193 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9194 | PyObject * obj0 = 0 ; | |
9195 | char *kwnames[] = { | |
9196 | (char *) "self", NULL | |
9197 | }; | |
9198 | ||
9199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9202 | { |
9203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9204 | (arg1)->SelectAll(); | |
9205 | ||
9206 | wxPyEndAllowThreads(__tstate); | |
9207 | if (PyErr_Occurred()) SWIG_fail; | |
9208 | } | |
9209 | Py_INCREF(Py_None); resultobj = Py_None; | |
9210 | return resultobj; | |
9211 | fail: | |
9212 | return NULL; | |
9213 | } | |
9214 | ||
9215 | ||
9216 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9217 | PyObject *resultobj; | |
9218 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9219 | bool arg2 ; | |
9220 | PyObject * obj0 = 0 ; | |
9221 | PyObject * obj1 = 0 ; | |
9222 | char *kwnames[] = { | |
9223 | (char *) "self",(char *) "editable", NULL | |
9224 | }; | |
9225 | ||
9226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9229 | arg2 = (bool) SWIG_AsBool(obj1); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9231 | { |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9233 | (arg1)->SetEditable(arg2); | |
9234 | ||
9235 | wxPyEndAllowThreads(__tstate); | |
9236 | if (PyErr_Occurred()) SWIG_fail; | |
9237 | } | |
9238 | Py_INCREF(Py_None); resultobj = Py_None; | |
9239 | return resultobj; | |
9240 | fail: | |
9241 | return NULL; | |
9242 | } | |
9243 | ||
9244 | ||
9245 | static PyObject *_wrap_TextCtrl_ShowNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9246 | PyObject *resultobj; | |
9247 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
423f194a | 9248 | bool arg2 = (bool) True ; |
d14a1e28 RD |
9249 | bool result; |
9250 | PyObject * obj0 = 0 ; | |
9251 | PyObject * obj1 = 0 ; | |
9252 | char *kwnames[] = { | |
9253 | (char *) "self",(char *) "show", NULL | |
9254 | }; | |
9255 | ||
9256 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_ShowNativeCaret",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9257 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9258 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 9259 | if (obj1) { |
2f4c0a16 RD |
9260 | arg2 = (bool) SWIG_AsBool(obj1); |
9261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9262 | } |
9263 | { | |
9264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9265 | result = (bool)(arg1)->ShowNativeCaret(arg2); | |
9266 | ||
9267 | wxPyEndAllowThreads(__tstate); | |
9268 | if (PyErr_Occurred()) SWIG_fail; | |
9269 | } | |
4f89f6a3 RD |
9270 | { |
9271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9272 | } | |
d14a1e28 RD |
9273 | return resultobj; |
9274 | fail: | |
9275 | return NULL; | |
9276 | } | |
9277 | ||
9278 | ||
9279 | static PyObject *_wrap_TextCtrl_HideNativeCaret(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9280 | PyObject *resultobj; | |
9281 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9282 | bool result; | |
9283 | PyObject * obj0 = 0 ; | |
9284 | char *kwnames[] = { | |
9285 | (char *) "self", NULL | |
9286 | }; | |
9287 | ||
9288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_HideNativeCaret",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9291 | { |
9292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9293 | result = (bool)(arg1)->HideNativeCaret(); | |
9294 | ||
9295 | wxPyEndAllowThreads(__tstate); | |
9296 | if (PyErr_Occurred()) SWIG_fail; | |
9297 | } | |
4f89f6a3 RD |
9298 | { |
9299 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9300 | } | |
d14a1e28 RD |
9301 | return resultobj; |
9302 | fail: | |
9303 | return NULL; | |
9304 | } | |
9305 | ||
9306 | ||
9307 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9308 | PyObject *resultobj; | |
9309 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9310 | wxString *arg2 = 0 ; | |
423f194a | 9311 | bool temp2 = False ; |
d14a1e28 RD |
9312 | PyObject * obj0 = 0 ; |
9313 | PyObject * obj1 = 0 ; | |
9314 | char *kwnames[] = { | |
9315 | (char *) "self",(char *) "text", NULL | |
9316 | }; | |
9317 | ||
9318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
9319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9321 | { |
9322 | arg2 = wxString_in_helper(obj1); | |
9323 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 9324 | temp2 = True; |
d14a1e28 RD |
9325 | } |
9326 | { | |
9327 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9328 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9329 | ||
9330 | wxPyEndAllowThreads(__tstate); | |
9331 | if (PyErr_Occurred()) SWIG_fail; | |
9332 | } | |
9333 | Py_INCREF(Py_None); resultobj = Py_None; | |
9334 | { | |
9335 | if (temp2) | |
9336 | delete arg2; | |
9337 | } | |
9338 | return resultobj; | |
9339 | fail: | |
9340 | { | |
9341 | if (temp2) | |
9342 | delete arg2; | |
9343 | } | |
9344 | return NULL; | |
9345 | } | |
9346 | ||
9347 | ||
9348 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9349 | PyObject *resultobj; | |
9350 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9351 | long arg2 ; | |
9352 | long arg3 ; | |
9353 | wxString result; | |
9354 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
9355 | PyObject * obj1 = 0 ; |
9356 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9357 | char *kwnames[] = { |
9358 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9359 | }; | |
9360 | ||
8edf1c75 | 9361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
9362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9364 | arg2 = (long) SWIG_AsLong(obj1); | |
9365 | if (PyErr_Occurred()) SWIG_fail; | |
9366 | arg3 = (long) SWIG_AsLong(obj2); | |
9367 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9368 | { |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | { | |
9376 | #if wxUSE_UNICODE | |
9377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9378 | #else | |
9379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9380 | #endif | |
9381 | } | |
9382 | return resultobj; | |
9383 | fail: | |
9384 | return NULL; | |
9385 | } | |
9386 | ||
9387 | ||
9388 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { | |
9389 | PyObject *obj; | |
9390 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9391 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9392 | Py_INCREF(obj); | |
9393 | return Py_BuildValue((char *)""); | |
9394 | } | |
9395 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9396 | PyObject *resultobj; | |
9397 | int arg1 ; | |
9398 | wxMouseEvent *arg2 = 0 ; | |
9399 | long arg3 ; | |
9400 | long arg4 ; | |
9401 | wxTextUrlEvent *result; | |
8edf1c75 | 9402 | PyObject * obj0 = 0 ; |
d14a1e28 | 9403 | PyObject * obj1 = 0 ; |
8edf1c75 RD |
9404 | PyObject * obj2 = 0 ; |
9405 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9406 | char *kwnames[] = { |
9407 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9408 | }; | |
9409 | ||
8edf1c75 | 9410 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
9411 | arg1 = (int) SWIG_AsInt(obj0); |
9412 | if (PyErr_Occurred()) SWIG_fail; | |
9413 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9414 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9415 | SWIG_fail; | |
d14a1e28 | 9416 | if (arg2 == NULL) { |
2f4c0a16 RD |
9417 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9418 | SWIG_fail; | |
8edf1c75 | 9419 | } |
2f4c0a16 RD |
9420 | arg3 = (long) SWIG_AsLong(obj2); |
9421 | if (PyErr_Occurred()) SWIG_fail; | |
9422 | arg4 = (long) SWIG_AsLong(obj3); | |
9423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9424 | { |
9425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9426 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9427 | ||
9428 | wxPyEndAllowThreads(__tstate); | |
9429 | if (PyErr_Occurred()) SWIG_fail; | |
9430 | } | |
2f4c0a16 | 9431 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9432 | return resultobj; |
9433 | fail: | |
9434 | return NULL; | |
9435 | } | |
9436 | ||
9437 | ||
9438 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9439 | PyObject *resultobj; | |
9440 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9441 | wxMouseEvent *result; | |
9442 | PyObject * obj0 = 0 ; | |
9443 | char *kwnames[] = { | |
9444 | (char *) "self", NULL | |
9445 | }; | |
9446 | ||
9447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9450 | { |
9451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9452 | { | |
9453 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9454 | result = (wxMouseEvent *) &_result_ref; | |
9455 | } | |
9456 | ||
9457 | wxPyEndAllowThreads(__tstate); | |
9458 | if (PyErr_Occurred()) SWIG_fail; | |
9459 | } | |
2f4c0a16 | 9460 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9461 | return resultobj; |
9462 | fail: | |
9463 | return NULL; | |
9464 | } | |
9465 | ||
9466 | ||
9467 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9468 | PyObject *resultobj; | |
9469 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9470 | long result; | |
9471 | PyObject * obj0 = 0 ; | |
9472 | char *kwnames[] = { | |
9473 | (char *) "self", NULL | |
9474 | }; | |
9475 | ||
9476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9479 | { |
9480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9481 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9482 | ||
9483 | wxPyEndAllowThreads(__tstate); | |
9484 | if (PyErr_Occurred()) SWIG_fail; | |
9485 | } | |
2f4c0a16 | 9486 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9487 | return resultobj; |
9488 | fail: | |
9489 | return NULL; | |
9490 | } | |
9491 | ||
9492 | ||
9493 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9494 | PyObject *resultobj; | |
9495 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9496 | long result; | |
9497 | PyObject * obj0 = 0 ; | |
9498 | char *kwnames[] = { | |
9499 | (char *) "self", NULL | |
9500 | }; | |
9501 | ||
9502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9505 | { |
9506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9507 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
9508 | ||
9509 | wxPyEndAllowThreads(__tstate); | |
9510 | if (PyErr_Occurred()) SWIG_fail; | |
9511 | } | |
2f4c0a16 | 9512 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9513 | return resultobj; |
9514 | fail: | |
9515 | return NULL; | |
9516 | } | |
9517 | ||
9518 | ||
9519 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
9520 | PyObject *obj; | |
9521 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9522 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
9523 | Py_INCREF(obj); | |
9524 | return Py_BuildValue((char *)""); | |
9525 | } | |
2f4c0a16 | 9526 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
d03fd34d RD |
9527 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); |
9528 | return 1; | |
9529 | } | |
9530 | ||
9531 | ||
9532 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
9533 | PyObject *pyobj; | |
9534 | ||
9535 | { | |
9536 | #if wxUSE_UNICODE | |
9537 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9538 | #else | |
9539 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
9540 | #endif | |
9541 | } | |
9542 | return pyobj; | |
9543 | } | |
9544 | ||
9545 | ||
d14a1e28 RD |
9546 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
9547 | PyObject *resultobj; | |
9548 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 9549 | int arg2 = (int) -1 ; |
d14a1e28 RD |
9550 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
9551 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
9552 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
9553 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
9554 | long arg5 = (long) wxSB_HORIZONTAL ; | |
9555 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
9556 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
9557 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
9558 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
9559 | wxScrollBar *result; | |
9560 | wxPoint temp3 ; | |
9561 | wxSize temp4 ; | |
423f194a | 9562 | bool temp7 = False ; |
d14a1e28 | 9563 | PyObject * obj0 = 0 ; |
8edf1c75 | 9564 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9565 | PyObject * obj2 = 0 ; |
9566 | PyObject * obj3 = 0 ; | |
8edf1c75 | 9567 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
9568 | PyObject * obj5 = 0 ; |
9569 | PyObject * obj6 = 0 ; | |
9570 | char *kwnames[] = { | |
9571 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9572 | }; | |
9573 | ||
8edf1c75 | 9574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
9575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
9576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9577 | if (obj1) { |
2f4c0a16 RD |
9578 | arg2 = (int) SWIG_AsInt(obj1); |
9579 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9580 | } |
d14a1e28 RD |
9581 | if (obj2) { |
9582 | { | |
9583 | arg3 = &temp3; | |
9584 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
9585 | } | |
9586 | } | |
9587 | if (obj3) { | |
9588 | { | |
9589 | arg4 = &temp4; | |
9590 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
9591 | } | |
9592 | } | |
8edf1c75 | 9593 | if (obj4) { |
2f4c0a16 RD |
9594 | arg5 = (long) SWIG_AsLong(obj4); |
9595 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9596 | } |
d14a1e28 | 9597 | if (obj5) { |
2f4c0a16 RD |
9598 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
9599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9600 | SWIG_fail; | |
d14a1e28 | 9601 | if (arg6 == NULL) { |
2f4c0a16 RD |
9602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9603 | SWIG_fail; | |
d14a1e28 RD |
9604 | } |
9605 | } | |
9606 | if (obj6) { | |
9607 | { | |
9608 | arg7 = wxString_in_helper(obj6); | |
9609 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 9610 | temp7 = True; |
d14a1e28 RD |
9611 | } |
9612 | } | |
9613 | { | |
9614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9615 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
9616 | ||
9617 | wxPyEndAllowThreads(__tstate); | |
9618 | if (PyErr_Occurred()) SWIG_fail; | |
9619 | } | |
2f4c0a16 | 9620 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9621 | { |
9622 | if (temp7) | |
9623 | delete arg7; | |
9624 | } | |
9625 | return resultobj; | |
9626 | fail: | |
9627 | { | |
9628 | if (temp7) | |
9629 | delete arg7; | |
9630 | } | |
9631 | return NULL; | |
9632 | } | |
9633 | ||
9634 | ||
9635 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9636 | PyObject *resultobj; | |
9637 | wxScrollBar *result; | |
9638 | char *kwnames[] = { | |
9639 | NULL | |
9640 | }; | |
9641 | ||
9642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
9643 | { | |
9644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9645 | result = (wxScrollBar *)new wxScrollBar(); | |
9646 | ||
9647 | wxPyEndAllowThreads(__tstate); | |
9648 | if (PyErr_Occurred()) SWIG_fail; | |
9649 | } | |
2f4c0a16 | 9650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
9651 | return resultobj; |
9652 | fail: | |
9653 | return NULL; | |
9654 | } | |
9655 | ||
9656 | ||
9657 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9658 | PyObject *resultobj; | |
9659 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9660 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 9661 | int arg3 = (int) -1 ; |
d14a1e28 RD |
9662 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
9663 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
9664 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
9665 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
9666 | long arg6 = (long) wxSB_HORIZONTAL ; | |
9667 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
9668 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
9669 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
9670 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
9671 | bool result; | |
9672 | wxPoint temp4 ; | |
9673 | wxSize temp5 ; | |
423f194a | 9674 | bool temp8 = False ; |
d14a1e28 RD |
9675 | PyObject * obj0 = 0 ; |
9676 | PyObject * obj1 = 0 ; | |
8edf1c75 | 9677 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
9678 | PyObject * obj3 = 0 ; |
9679 | PyObject * obj4 = 0 ; | |
8edf1c75 | 9680 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
9681 | PyObject * obj6 = 0 ; |
9682 | PyObject * obj7 = 0 ; | |
9683 | char *kwnames[] = { | |
9684 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
9685 | }; | |
9686 | ||
8edf1c75 | 9687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
9688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9690 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
9691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 9692 | if (obj2) { |
2f4c0a16 RD |
9693 | arg3 = (int) SWIG_AsInt(obj2); |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9695 | } |
d14a1e28 RD |
9696 | if (obj3) { |
9697 | { | |
9698 | arg4 = &temp4; | |
9699 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
9700 | } | |
9701 | } | |
9702 | if (obj4) { | |
9703 | { | |
9704 | arg5 = &temp5; | |
9705 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
9706 | } | |
9707 | } | |
8edf1c75 | 9708 | if (obj5) { |
2f4c0a16 RD |
9709 | arg6 = (long) SWIG_AsLong(obj5); |
9710 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 9711 | } |
d14a1e28 | 9712 | if (obj6) { |
2f4c0a16 RD |
9713 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
9714 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9715 | SWIG_fail; | |
d14a1e28 | 9716 | if (arg7 == NULL) { |
2f4c0a16 RD |
9717 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9718 | SWIG_fail; | |
d14a1e28 RD |
9719 | } |
9720 | } | |
9721 | if (obj7) { | |
9722 | { | |
9723 | arg8 = wxString_in_helper(obj7); | |
9724 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 9725 | temp8 = True; |
d14a1e28 RD |
9726 | } |
9727 | } | |
9728 | { | |
9729 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9730 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
9731 | ||
9732 | wxPyEndAllowThreads(__tstate); | |
9733 | if (PyErr_Occurred()) SWIG_fail; | |
9734 | } | |
4f89f6a3 RD |
9735 | { |
9736 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9737 | } | |
d14a1e28 RD |
9738 | { |
9739 | if (temp8) | |
9740 | delete arg8; | |
9741 | } | |
9742 | return resultobj; | |
9743 | fail: | |
9744 | { | |
9745 | if (temp8) | |
9746 | delete arg8; | |
9747 | } | |
9748 | return NULL; | |
9749 | } | |
9750 | ||
9751 | ||
9752 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9753 | PyObject *resultobj; | |
9754 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9755 | int result; | |
9756 | PyObject * obj0 = 0 ; | |
9757 | char *kwnames[] = { | |
9758 | (char *) "self", NULL | |
9759 | }; | |
9760 | ||
9761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9764 | { |
9765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9766 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
9767 | ||
9768 | wxPyEndAllowThreads(__tstate); | |
9769 | if (PyErr_Occurred()) SWIG_fail; | |
9770 | } | |
2f4c0a16 | 9771 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9772 | return resultobj; |
9773 | fail: | |
9774 | return NULL; | |
9775 | } | |
9776 | ||
9777 | ||
9778 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9779 | PyObject *resultobj; | |
9780 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9781 | int result; | |
9782 | PyObject * obj0 = 0 ; | |
9783 | char *kwnames[] = { | |
9784 | (char *) "self", NULL | |
9785 | }; | |
9786 | ||
9787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9790 | { |
9791 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9792 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
9793 | ||
9794 | wxPyEndAllowThreads(__tstate); | |
9795 | if (PyErr_Occurred()) SWIG_fail; | |
9796 | } | |
2f4c0a16 | 9797 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9798 | return resultobj; |
9799 | fail: | |
9800 | return NULL; | |
9801 | } | |
9802 | ||
9803 | ||
9804 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9805 | PyObject *resultobj; | |
9806 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9807 | int result; | |
9808 | PyObject * obj0 = 0 ; | |
9809 | char *kwnames[] = { | |
9810 | (char *) "self", NULL | |
9811 | }; | |
9812 | ||
9813 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9814 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9815 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9816 | { |
9817 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9818 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
9819 | ||
9820 | wxPyEndAllowThreads(__tstate); | |
9821 | if (PyErr_Occurred()) SWIG_fail; | |
9822 | } | |
2f4c0a16 | 9823 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9824 | return resultobj; |
9825 | fail: | |
9826 | return NULL; | |
9827 | } | |
9828 | ||
9829 | ||
9830 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9831 | PyObject *resultobj; | |
9832 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9833 | int result; | |
9834 | PyObject * obj0 = 0 ; | |
9835 | char *kwnames[] = { | |
9836 | (char *) "self", NULL | |
9837 | }; | |
9838 | ||
9839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9842 | { |
9843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9844 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
9845 | ||
9846 | wxPyEndAllowThreads(__tstate); | |
9847 | if (PyErr_Occurred()) SWIG_fail; | |
9848 | } | |
2f4c0a16 | 9849 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
9850 | return resultobj; |
9851 | fail: | |
9852 | return NULL; | |
9853 | } | |
9854 | ||
9855 | ||
9856 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9857 | PyObject *resultobj; | |
9858 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9859 | bool result; | |
9860 | PyObject * obj0 = 0 ; | |
9861 | char *kwnames[] = { | |
9862 | (char *) "self", NULL | |
9863 | }; | |
9864 | ||
9865 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
9866 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9867 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9868 | { |
9869 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9870 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
9871 | ||
9872 | wxPyEndAllowThreads(__tstate); | |
9873 | if (PyErr_Occurred()) SWIG_fail; | |
9874 | } | |
4f89f6a3 RD |
9875 | { |
9876 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9877 | } | |
d14a1e28 RD |
9878 | return resultobj; |
9879 | fail: | |
9880 | return NULL; | |
9881 | } | |
9882 | ||
9883 | ||
9884 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9885 | PyObject *resultobj; | |
9886 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9887 | int arg2 ; | |
9888 | PyObject * obj0 = 0 ; | |
8edf1c75 | 9889 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9890 | char *kwnames[] = { |
9891 | (char *) "self",(char *) "viewStart", NULL | |
9892 | }; | |
9893 | ||
8edf1c75 | 9894 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
9895 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9896 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9897 | arg2 = (int) SWIG_AsInt(obj1); | |
9898 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9899 | { |
9900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9901 | (arg1)->SetThumbPosition(arg2); | |
9902 | ||
9903 | wxPyEndAllowThreads(__tstate); | |
9904 | if (PyErr_Occurred()) SWIG_fail; | |
9905 | } | |
9906 | Py_INCREF(Py_None); resultobj = Py_None; | |
9907 | return resultobj; | |
9908 | fail: | |
9909 | return NULL; | |
9910 | } | |
9911 | ||
9912 | ||
9913 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9914 | PyObject *resultobj; | |
9915 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
9916 | int arg2 ; | |
9917 | int arg3 ; | |
9918 | int arg4 ; | |
9919 | int arg5 ; | |
423f194a | 9920 | bool arg6 = (bool) True ; |
d14a1e28 | 9921 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
9922 | PyObject * obj1 = 0 ; |
9923 | PyObject * obj2 = 0 ; | |
9924 | PyObject * obj3 = 0 ; | |
9925 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
9926 | PyObject * obj5 = 0 ; |
9927 | char *kwnames[] = { | |
9928 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
9929 | }; | |
9930 | ||
8edf1c75 | 9931 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
9932 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
9933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9934 | arg2 = (int) SWIG_AsInt(obj1); | |
9935 | if (PyErr_Occurred()) SWIG_fail; | |
9936 | arg3 = (int) SWIG_AsInt(obj2); | |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | arg4 = (int) SWIG_AsInt(obj3); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
9940 | arg5 = (int) SWIG_AsInt(obj4); | |
9941 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 9942 | if (obj5) { |
2f4c0a16 RD |
9943 | arg6 = (bool) SWIG_AsBool(obj5); |
9944 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9945 | } |
9946 | { | |
9947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9948 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
9949 | ||
9950 | wxPyEndAllowThreads(__tstate); | |
9951 | if (PyErr_Occurred()) SWIG_fail; | |
9952 | } | |
9953 | Py_INCREF(Py_None); resultobj = Py_None; | |
9954 | return resultobj; | |
9955 | fail: | |
9956 | return NULL; | |
9957 | } | |
9958 | ||
9959 | ||
9960 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { | |
9961 | PyObject *obj; | |
9962 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9963 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
9964 | Py_INCREF(obj); | |
9965 | return Py_BuildValue((char *)""); | |
9966 | } | |
2f4c0a16 | 9967 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
d03fd34d RD |
9968 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); |
9969 | return 1; | |
9970 | } | |
9971 | ||
9972 | ||
9973 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
9974 | PyObject *pyobj; | |
9975 | ||
9976 | { | |
9977 | #if wxUSE_UNICODE | |
9978 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9979 | #else | |
9980 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
9981 | #endif | |
9982 | } | |
9983 | return pyobj; | |
9984 | } | |
9985 | ||
9986 | ||
2f4c0a16 | 9987 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
9988 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); |
9989 | return 1; | |
9990 | } | |
9991 | ||
9992 | ||
9993 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
9994 | PyObject *pyobj; | |
9995 | ||
9996 | { | |
9997 | #if wxUSE_UNICODE | |
9998 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
9999 | #else | |
10000 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10001 | #endif | |
10002 | } | |
10003 | return pyobj; | |
10004 | } | |
10005 | ||
10006 | ||
d14a1e28 RD |
10007 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10008 | PyObject *resultobj; | |
10009 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10010 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10011 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10012 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10013 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10014 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10015 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10016 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10017 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10018 | wxSpinButton *result; | |
10019 | wxPoint temp3 ; | |
10020 | wxSize temp4 ; | |
423f194a | 10021 | bool temp6 = False ; |
d14a1e28 | 10022 | PyObject * obj0 = 0 ; |
8edf1c75 | 10023 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10024 | PyObject * obj2 = 0 ; |
10025 | PyObject * obj3 = 0 ; | |
8edf1c75 | 10026 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10027 | PyObject * obj5 = 0 ; |
10028 | char *kwnames[] = { | |
10029 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10030 | }; | |
10031 | ||
8edf1c75 | 10032 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
10033 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10034 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10035 | if (obj1) { |
2f4c0a16 RD |
10036 | arg2 = (int) SWIG_AsInt(obj1); |
10037 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10038 | } |
d14a1e28 RD |
10039 | if (obj2) { |
10040 | { | |
10041 | arg3 = &temp3; | |
10042 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10043 | } | |
10044 | } | |
10045 | if (obj3) { | |
10046 | { | |
10047 | arg4 = &temp4; | |
10048 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10049 | } | |
10050 | } | |
8edf1c75 | 10051 | if (obj4) { |
2f4c0a16 RD |
10052 | arg5 = (long) SWIG_AsLong(obj4); |
10053 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10054 | } |
d14a1e28 RD |
10055 | if (obj5) { |
10056 | { | |
10057 | arg6 = wxString_in_helper(obj5); | |
10058 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 10059 | temp6 = True; |
d14a1e28 RD |
10060 | } |
10061 | } | |
10062 | { | |
10063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10064 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10065 | ||
10066 | wxPyEndAllowThreads(__tstate); | |
10067 | if (PyErr_Occurred()) SWIG_fail; | |
10068 | } | |
2f4c0a16 | 10069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10070 | { |
10071 | if (temp6) | |
10072 | delete arg6; | |
10073 | } | |
10074 | return resultobj; | |
10075 | fail: | |
10076 | { | |
10077 | if (temp6) | |
10078 | delete arg6; | |
10079 | } | |
10080 | return NULL; | |
10081 | } | |
10082 | ||
10083 | ||
10084 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10085 | PyObject *resultobj; | |
10086 | wxSpinButton *result; | |
10087 | char *kwnames[] = { | |
10088 | NULL | |
10089 | }; | |
10090 | ||
10091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10092 | { | |
10093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10094 | result = (wxSpinButton *)new wxSpinButton(); | |
10095 | ||
10096 | wxPyEndAllowThreads(__tstate); | |
10097 | if (PyErr_Occurred()) SWIG_fail; | |
10098 | } | |
2f4c0a16 | 10099 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10100 | return resultobj; |
10101 | fail: | |
10102 | return NULL; | |
10103 | } | |
10104 | ||
10105 | ||
10106 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10107 | PyObject *resultobj; | |
10108 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10109 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10110 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10111 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10112 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10113 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10114 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10115 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10116 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10117 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10118 | bool result; | |
10119 | wxPoint temp4 ; | |
10120 | wxSize temp5 ; | |
423f194a | 10121 | bool temp7 = False ; |
d14a1e28 RD |
10122 | PyObject * obj0 = 0 ; |
10123 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10124 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10125 | PyObject * obj3 = 0 ; |
10126 | PyObject * obj4 = 0 ; | |
8edf1c75 | 10127 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10128 | PyObject * obj6 = 0 ; |
10129 | char *kwnames[] = { | |
10130 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10131 | }; | |
10132 | ||
8edf1c75 | 10133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
10134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10136 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10138 | if (obj2) { |
2f4c0a16 RD |
10139 | arg3 = (int) SWIG_AsInt(obj2); |
10140 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10141 | } |
d14a1e28 RD |
10142 | if (obj3) { |
10143 | { | |
10144 | arg4 = &temp4; | |
10145 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10146 | } | |
10147 | } | |
10148 | if (obj4) { | |
10149 | { | |
10150 | arg5 = &temp5; | |
10151 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10152 | } | |
10153 | } | |
8edf1c75 | 10154 | if (obj5) { |
2f4c0a16 RD |
10155 | arg6 = (long) SWIG_AsLong(obj5); |
10156 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10157 | } |
d14a1e28 RD |
10158 | if (obj6) { |
10159 | { | |
10160 | arg7 = wxString_in_helper(obj6); | |
10161 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 10162 | temp7 = True; |
d14a1e28 RD |
10163 | } |
10164 | } | |
10165 | { | |
10166 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10167 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10168 | ||
10169 | wxPyEndAllowThreads(__tstate); | |
10170 | if (PyErr_Occurred()) SWIG_fail; | |
10171 | } | |
4f89f6a3 RD |
10172 | { |
10173 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10174 | } | |
d14a1e28 RD |
10175 | { |
10176 | if (temp7) | |
10177 | delete arg7; | |
10178 | } | |
10179 | return resultobj; | |
10180 | fail: | |
10181 | { | |
10182 | if (temp7) | |
10183 | delete arg7; | |
10184 | } | |
10185 | return NULL; | |
10186 | } | |
10187 | ||
10188 | ||
10189 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10190 | PyObject *resultobj; | |
10191 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10192 | int result; | |
10193 | PyObject * obj0 = 0 ; | |
10194 | char *kwnames[] = { | |
10195 | (char *) "self", NULL | |
10196 | }; | |
10197 | ||
10198 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10199 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10200 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10201 | { |
10202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10203 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10204 | ||
10205 | wxPyEndAllowThreads(__tstate); | |
10206 | if (PyErr_Occurred()) SWIG_fail; | |
10207 | } | |
2f4c0a16 | 10208 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10209 | return resultobj; |
10210 | fail: | |
10211 | return NULL; | |
10212 | } | |
10213 | ||
10214 | ||
10215 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10216 | PyObject *resultobj; | |
10217 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10218 | int result; | |
10219 | PyObject * obj0 = 0 ; | |
10220 | char *kwnames[] = { | |
10221 | (char *) "self", NULL | |
10222 | }; | |
10223 | ||
10224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10227 | { |
10228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10229 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10230 | ||
10231 | wxPyEndAllowThreads(__tstate); | |
10232 | if (PyErr_Occurred()) SWIG_fail; | |
10233 | } | |
2f4c0a16 | 10234 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10235 | return resultobj; |
10236 | fail: | |
10237 | return NULL; | |
10238 | } | |
10239 | ||
10240 | ||
10241 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10242 | PyObject *resultobj; | |
10243 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10244 | int result; | |
10245 | PyObject * obj0 = 0 ; | |
10246 | char *kwnames[] = { | |
10247 | (char *) "self", NULL | |
10248 | }; | |
10249 | ||
10250 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10251 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10252 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10253 | { |
10254 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10255 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10256 | ||
10257 | wxPyEndAllowThreads(__tstate); | |
10258 | if (PyErr_Occurred()) SWIG_fail; | |
10259 | } | |
2f4c0a16 | 10260 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10261 | return resultobj; |
10262 | fail: | |
10263 | return NULL; | |
10264 | } | |
10265 | ||
10266 | ||
10267 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10268 | PyObject *resultobj; | |
10269 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10270 | int arg2 ; | |
10271 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10272 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10273 | char *kwnames[] = { |
10274 | (char *) "self",(char *) "val", NULL | |
10275 | }; | |
10276 | ||
8edf1c75 | 10277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10280 | arg2 = (int) SWIG_AsInt(obj1); | |
10281 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | (arg1)->SetValue(arg2); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
10289 | Py_INCREF(Py_None); resultobj = Py_None; | |
10290 | return resultobj; | |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
10296 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10297 | PyObject *resultobj; | |
10298 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10299 | int arg2 ; | |
10300 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10302 | char *kwnames[] = { |
10303 | (char *) "self",(char *) "minVal", NULL | |
10304 | }; | |
10305 | ||
8edf1c75 | 10306 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10307 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10308 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10309 | arg2 = (int) SWIG_AsInt(obj1); | |
10310 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10311 | { |
10312 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10313 | (arg1)->SetMin(arg2); | |
10314 | ||
10315 | wxPyEndAllowThreads(__tstate); | |
10316 | if (PyErr_Occurred()) SWIG_fail; | |
10317 | } | |
10318 | Py_INCREF(Py_None); resultobj = Py_None; | |
10319 | return resultobj; | |
10320 | fail: | |
10321 | return NULL; | |
10322 | } | |
10323 | ||
10324 | ||
10325 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10326 | PyObject *resultobj; | |
10327 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10328 | int arg2 ; | |
10329 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10330 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10331 | char *kwnames[] = { |
10332 | (char *) "self",(char *) "maxVal", NULL | |
10333 | }; | |
10334 | ||
8edf1c75 | 10335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10338 | arg2 = (int) SWIG_AsInt(obj1); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10340 | { |
10341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10342 | (arg1)->SetMax(arg2); | |
10343 | ||
10344 | wxPyEndAllowThreads(__tstate); | |
10345 | if (PyErr_Occurred()) SWIG_fail; | |
10346 | } | |
10347 | Py_INCREF(Py_None); resultobj = Py_None; | |
10348 | return resultobj; | |
10349 | fail: | |
10350 | return NULL; | |
10351 | } | |
10352 | ||
10353 | ||
10354 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10355 | PyObject *resultobj; | |
10356 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10357 | int arg2 ; | |
10358 | int arg3 ; | |
10359 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10360 | PyObject * obj1 = 0 ; |
10361 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10362 | char *kwnames[] = { |
10363 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10364 | }; | |
10365 | ||
8edf1c75 | 10366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10369 | arg2 = (int) SWIG_AsInt(obj1); | |
10370 | if (PyErr_Occurred()) SWIG_fail; | |
10371 | arg3 = (int) SWIG_AsInt(obj2); | |
10372 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10373 | { |
10374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10375 | (arg1)->SetRange(arg2,arg3); | |
d14a1e28 RD |
10376 | |
10377 | wxPyEndAllowThreads(__tstate); | |
10378 | if (PyErr_Occurred()) SWIG_fail; | |
10379 | } | |
10380 | Py_INCREF(Py_None); resultobj = Py_None; | |
10381 | return resultobj; | |
10382 | fail: | |
10383 | return NULL; | |
10384 | } | |
10385 | ||
10386 | ||
10387 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10388 | PyObject *resultobj; | |
10389 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10390 | bool result; | |
10391 | PyObject * obj0 = 0 ; | |
10392 | char *kwnames[] = { | |
10393 | (char *) "self", NULL | |
10394 | }; | |
10395 | ||
10396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10399 | { |
10400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10401 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10402 | ||
10403 | wxPyEndAllowThreads(__tstate); | |
10404 | if (PyErr_Occurred()) SWIG_fail; | |
10405 | } | |
4f89f6a3 RD |
10406 | { |
10407 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10408 | } | |
d14a1e28 RD |
10409 | return resultobj; |
10410 | fail: | |
10411 | return NULL; | |
10412 | } | |
10413 | ||
10414 | ||
10415 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
10416 | PyObject *obj; | |
10417 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10418 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
10419 | Py_INCREF(obj); | |
10420 | return Py_BuildValue((char *)""); | |
10421 | } | |
10422 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10423 | PyObject *resultobj; | |
10424 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 10425 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10426 | wxString const &arg3_defvalue = wxPyEmptyString ; |
10427 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
10428 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
10429 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10430 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10431 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10432 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
10433 | int arg7 = (int) 0 ; | |
10434 | int arg8 = (int) 100 ; | |
10435 | int arg9 = (int) 0 ; | |
10436 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
10437 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
10438 | wxSpinCtrl *result; | |
423f194a | 10439 | bool temp3 = False ; |
d14a1e28 RD |
10440 | wxPoint temp4 ; |
10441 | wxSize temp5 ; | |
423f194a | 10442 | bool temp10 = False ; |
d14a1e28 | 10443 | PyObject * obj0 = 0 ; |
8edf1c75 | 10444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10445 | PyObject * obj2 = 0 ; |
10446 | PyObject * obj3 = 0 ; | |
10447 | PyObject * obj4 = 0 ; | |
8edf1c75 RD |
10448 | PyObject * obj5 = 0 ; |
10449 | PyObject * obj6 = 0 ; | |
10450 | PyObject * obj7 = 0 ; | |
10451 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
10452 | PyObject * obj9 = 0 ; |
10453 | char *kwnames[] = { | |
10454 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10455 | }; | |
10456 | ||
8edf1c75 | 10457 | 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 |
10458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10460 | if (obj1) { |
2f4c0a16 RD |
10461 | arg2 = (int) SWIG_AsInt(obj1); |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10463 | } |
d14a1e28 RD |
10464 | if (obj2) { |
10465 | { | |
10466 | arg3 = wxString_in_helper(obj2); | |
10467 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 10468 | temp3 = True; |
d14a1e28 RD |
10469 | } |
10470 | } | |
10471 | if (obj3) { | |
10472 | { | |
10473 | arg4 = &temp4; | |
10474 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10475 | } | |
10476 | } | |
10477 | if (obj4) { | |
10478 | { | |
10479 | arg5 = &temp5; | |
10480 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10481 | } | |
10482 | } | |
8edf1c75 | 10483 | if (obj5) { |
2f4c0a16 RD |
10484 | arg6 = (long) SWIG_AsLong(obj5); |
10485 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10486 | } |
10487 | if (obj6) { | |
2f4c0a16 RD |
10488 | arg7 = (int) SWIG_AsInt(obj6); |
10489 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10490 | } |
10491 | if (obj7) { | |
2f4c0a16 RD |
10492 | arg8 = (int) SWIG_AsInt(obj7); |
10493 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10494 | } |
10495 | if (obj8) { | |
2f4c0a16 RD |
10496 | arg9 = (int) SWIG_AsInt(obj8); |
10497 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10498 | } |
d14a1e28 RD |
10499 | if (obj9) { |
10500 | { | |
10501 | arg10 = wxString_in_helper(obj9); | |
10502 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 10503 | temp10 = True; |
d14a1e28 RD |
10504 | } |
10505 | } | |
10506 | { | |
10507 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10508 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
10509 | ||
10510 | wxPyEndAllowThreads(__tstate); | |
10511 | if (PyErr_Occurred()) SWIG_fail; | |
10512 | } | |
2f4c0a16 | 10513 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10514 | { |
10515 | if (temp3) | |
10516 | delete arg3; | |
10517 | } | |
10518 | { | |
10519 | if (temp10) | |
10520 | delete arg10; | |
10521 | } | |
10522 | return resultobj; | |
10523 | fail: | |
10524 | { | |
10525 | if (temp3) | |
10526 | delete arg3; | |
10527 | } | |
10528 | { | |
10529 | if (temp10) | |
10530 | delete arg10; | |
10531 | } | |
10532 | return NULL; | |
10533 | } | |
10534 | ||
10535 | ||
10536 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10537 | PyObject *resultobj; | |
10538 | wxSpinCtrl *result; | |
10539 | char *kwnames[] = { | |
10540 | NULL | |
10541 | }; | |
10542 | ||
10543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
10544 | { | |
10545 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10546 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
10547 | ||
10548 | wxPyEndAllowThreads(__tstate); | |
10549 | if (PyErr_Occurred()) SWIG_fail; | |
10550 | } | |
2f4c0a16 | 10551 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
10552 | return resultobj; |
10553 | fail: | |
10554 | return NULL; | |
10555 | } | |
10556 | ||
10557 | ||
10558 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10559 | PyObject *resultobj; | |
10560 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10561 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 10562 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10563 | wxString const &arg4_defvalue = wxPyEmptyString ; |
10564 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
10565 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
10566 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
10567 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
10568 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
10569 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
10570 | int arg8 = (int) 0 ; | |
10571 | int arg9 = (int) 100 ; | |
10572 | int arg10 = (int) 0 ; | |
10573 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
10574 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
10575 | bool result; | |
423f194a | 10576 | bool temp4 = False ; |
d14a1e28 RD |
10577 | wxPoint temp5 ; |
10578 | wxSize temp6 ; | |
423f194a | 10579 | bool temp11 = False ; |
d14a1e28 RD |
10580 | PyObject * obj0 = 0 ; |
10581 | PyObject * obj1 = 0 ; | |
8edf1c75 | 10582 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10583 | PyObject * obj3 = 0 ; |
10584 | PyObject * obj4 = 0 ; | |
10585 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
10586 | PyObject * obj6 = 0 ; |
10587 | PyObject * obj7 = 0 ; | |
10588 | PyObject * obj8 = 0 ; | |
10589 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
10590 | PyObject * obj10 = 0 ; |
10591 | char *kwnames[] = { | |
10592 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
10593 | }; | |
10594 | ||
8edf1c75 | 10595 | 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 |
10596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 10600 | if (obj2) { |
2f4c0a16 RD |
10601 | arg3 = (int) SWIG_AsInt(obj2); |
10602 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10603 | } |
d14a1e28 RD |
10604 | if (obj3) { |
10605 | { | |
10606 | arg4 = wxString_in_helper(obj3); | |
10607 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 10608 | temp4 = True; |
d14a1e28 RD |
10609 | } |
10610 | } | |
10611 | if (obj4) { | |
10612 | { | |
10613 | arg5 = &temp5; | |
10614 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
10615 | } | |
10616 | } | |
10617 | if (obj5) { | |
10618 | { | |
10619 | arg6 = &temp6; | |
10620 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
10621 | } | |
10622 | } | |
8edf1c75 | 10623 | if (obj6) { |
2f4c0a16 RD |
10624 | arg7 = (long) SWIG_AsLong(obj6); |
10625 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10626 | } |
10627 | if (obj7) { | |
2f4c0a16 RD |
10628 | arg8 = (int) SWIG_AsInt(obj7); |
10629 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10630 | } |
10631 | if (obj8) { | |
2f4c0a16 RD |
10632 | arg9 = (int) SWIG_AsInt(obj8); |
10633 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10634 | } |
10635 | if (obj9) { | |
2f4c0a16 RD |
10636 | arg10 = (int) SWIG_AsInt(obj9); |
10637 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10638 | } |
d14a1e28 RD |
10639 | if (obj10) { |
10640 | { | |
10641 | arg11 = wxString_in_helper(obj10); | |
10642 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 10643 | temp11 = True; |
d14a1e28 RD |
10644 | } |
10645 | } | |
10646 | { | |
10647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10648 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
10649 | ||
10650 | wxPyEndAllowThreads(__tstate); | |
10651 | if (PyErr_Occurred()) SWIG_fail; | |
10652 | } | |
4f89f6a3 RD |
10653 | { |
10654 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10655 | } | |
d14a1e28 RD |
10656 | { |
10657 | if (temp4) | |
10658 | delete arg4; | |
10659 | } | |
10660 | { | |
10661 | if (temp11) | |
10662 | delete arg11; | |
10663 | } | |
10664 | return resultobj; | |
10665 | fail: | |
10666 | { | |
10667 | if (temp4) | |
10668 | delete arg4; | |
10669 | } | |
10670 | { | |
10671 | if (temp11) | |
10672 | delete arg11; | |
10673 | } | |
10674 | return NULL; | |
10675 | } | |
10676 | ||
10677 | ||
10678 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10679 | PyObject *resultobj; | |
10680 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10681 | int result; | |
10682 | PyObject * obj0 = 0 ; | |
10683 | char *kwnames[] = { | |
10684 | (char *) "self", NULL | |
10685 | }; | |
10686 | ||
10687 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10688 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10689 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10690 | { |
10691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10692 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
10693 | ||
10694 | wxPyEndAllowThreads(__tstate); | |
10695 | if (PyErr_Occurred()) SWIG_fail; | |
10696 | } | |
2f4c0a16 | 10697 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10698 | return resultobj; |
10699 | fail: | |
10700 | return NULL; | |
10701 | } | |
10702 | ||
10703 | ||
10704 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10705 | PyObject *resultobj; | |
10706 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10707 | int arg2 ; | |
10708 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10709 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10710 | char *kwnames[] = { |
10711 | (char *) "self",(char *) "value", NULL | |
10712 | }; | |
10713 | ||
8edf1c75 | 10714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10717 | arg2 = (int) SWIG_AsInt(obj1); | |
10718 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10719 | { |
10720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10721 | (arg1)->SetValue(arg2); | |
10722 | ||
10723 | wxPyEndAllowThreads(__tstate); | |
10724 | if (PyErr_Occurred()) SWIG_fail; | |
10725 | } | |
10726 | Py_INCREF(Py_None); resultobj = Py_None; | |
10727 | return resultobj; | |
10728 | fail: | |
10729 | return NULL; | |
10730 | } | |
10731 | ||
10732 | ||
10733 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10734 | PyObject *resultobj; | |
10735 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10736 | wxString *arg2 = 0 ; | |
423f194a | 10737 | bool temp2 = False ; |
d14a1e28 RD |
10738 | PyObject * obj0 = 0 ; |
10739 | PyObject * obj1 = 0 ; | |
10740 | char *kwnames[] = { | |
10741 | (char *) "self",(char *) "text", NULL | |
10742 | }; | |
10743 | ||
10744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
10745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10747 | { |
10748 | arg2 = wxString_in_helper(obj1); | |
10749 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 10750 | temp2 = True; |
d14a1e28 RD |
10751 | } |
10752 | { | |
10753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10754 | (arg1)->SetValue((wxString const &)*arg2); | |
10755 | ||
10756 | wxPyEndAllowThreads(__tstate); | |
10757 | if (PyErr_Occurred()) SWIG_fail; | |
10758 | } | |
10759 | Py_INCREF(Py_None); resultobj = Py_None; | |
10760 | { | |
10761 | if (temp2) | |
10762 | delete arg2; | |
10763 | } | |
10764 | return resultobj; | |
10765 | fail: | |
10766 | { | |
10767 | if (temp2) | |
10768 | delete arg2; | |
10769 | } | |
10770 | return NULL; | |
10771 | } | |
10772 | ||
10773 | ||
10774 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10775 | PyObject *resultobj; | |
10776 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10777 | int arg2 ; | |
10778 | int arg3 ; | |
10779 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10780 | PyObject * obj1 = 0 ; |
10781 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10782 | char *kwnames[] = { |
10783 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10784 | }; | |
10785 | ||
8edf1c75 | 10786 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10787 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10788 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10789 | arg2 = (int) SWIG_AsInt(obj1); | |
10790 | if (PyErr_Occurred()) SWIG_fail; | |
10791 | arg3 = (int) SWIG_AsInt(obj2); | |
10792 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10793 | { |
10794 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10795 | (arg1)->SetRange(arg2,arg3); | |
10796 | ||
10797 | wxPyEndAllowThreads(__tstate); | |
10798 | if (PyErr_Occurred()) SWIG_fail; | |
10799 | } | |
10800 | Py_INCREF(Py_None); resultobj = Py_None; | |
10801 | return resultobj; | |
10802 | fail: | |
10803 | return NULL; | |
10804 | } | |
10805 | ||
10806 | ||
10807 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10808 | PyObject *resultobj; | |
10809 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10810 | int result; | |
10811 | PyObject * obj0 = 0 ; | |
10812 | char *kwnames[] = { | |
10813 | (char *) "self", NULL | |
10814 | }; | |
10815 | ||
10816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10819 | { |
10820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10821 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
10822 | ||
10823 | wxPyEndAllowThreads(__tstate); | |
10824 | if (PyErr_Occurred()) SWIG_fail; | |
10825 | } | |
2f4c0a16 | 10826 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10827 | return resultobj; |
10828 | fail: | |
10829 | return NULL; | |
10830 | } | |
10831 | ||
10832 | ||
10833 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10834 | PyObject *resultobj; | |
10835 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10836 | int result; | |
10837 | PyObject * obj0 = 0 ; | |
10838 | char *kwnames[] = { | |
10839 | (char *) "self", NULL | |
10840 | }; | |
10841 | ||
10842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10845 | { |
10846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10847 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
10848 | ||
10849 | wxPyEndAllowThreads(__tstate); | |
10850 | if (PyErr_Occurred()) SWIG_fail; | |
10851 | } | |
2f4c0a16 | 10852 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10853 | return resultobj; |
10854 | fail: | |
10855 | return NULL; | |
10856 | } | |
10857 | ||
10858 | ||
10859 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10860 | PyObject *resultobj; | |
10861 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
10862 | long arg2 ; | |
10863 | long arg3 ; | |
10864 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
10865 | PyObject * obj1 = 0 ; |
10866 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10867 | char *kwnames[] = { |
10868 | (char *) "self",(char *) "from",(char *) "to", NULL | |
10869 | }; | |
10870 | ||
8edf1c75 | 10871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
10872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
10873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10874 | arg2 = (long) SWIG_AsLong(obj1); | |
10875 | if (PyErr_Occurred()) SWIG_fail; | |
10876 | arg3 = (long) SWIG_AsLong(obj2); | |
10877 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10878 | { |
10879 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10880 | (arg1)->SetSelection(arg2,arg3); | |
10881 | ||
10882 | wxPyEndAllowThreads(__tstate); | |
10883 | if (PyErr_Occurred()) SWIG_fail; | |
10884 | } | |
10885 | Py_INCREF(Py_None); resultobj = Py_None; | |
10886 | return resultobj; | |
10887 | fail: | |
10888 | return NULL; | |
10889 | } | |
10890 | ||
10891 | ||
10892 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { | |
10893 | PyObject *obj; | |
10894 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10895 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
10896 | Py_INCREF(obj); | |
10897 | return Py_BuildValue((char *)""); | |
10898 | } | |
eb9b6107 RD |
10899 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
10900 | PyObject *resultobj; | |
10901 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
10902 | int arg2 = (int) 0 ; | |
10903 | wxSpinEvent *result; | |
8edf1c75 RD |
10904 | PyObject * obj0 = 0 ; |
10905 | PyObject * obj1 = 0 ; | |
eb9b6107 RD |
10906 | char *kwnames[] = { |
10907 | (char *) "commandType",(char *) "winid", NULL | |
10908 | }; | |
10909 | ||
8edf1c75 RD |
10910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
10911 | if (obj0) { | |
2f4c0a16 RD |
10912 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
10913 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
10914 | } |
10915 | if (obj1) { | |
2f4c0a16 RD |
10916 | arg2 = (int) SWIG_AsInt(obj1); |
10917 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 10918 | } |
eb9b6107 RD |
10919 | { |
10920 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10921 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
10922 | ||
10923 | wxPyEndAllowThreads(__tstate); | |
10924 | if (PyErr_Occurred()) SWIG_fail; | |
10925 | } | |
2f4c0a16 | 10926 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
eb9b6107 RD |
10927 | return resultobj; |
10928 | fail: | |
10929 | return NULL; | |
10930 | } | |
10931 | ||
10932 | ||
10933 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10934 | PyObject *resultobj; | |
10935 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10936 | int result; | |
10937 | PyObject * obj0 = 0 ; | |
10938 | char *kwnames[] = { | |
10939 | (char *) "self", NULL | |
10940 | }; | |
10941 | ||
10942 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
10943 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
10944 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
eb9b6107 RD |
10945 | { |
10946 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10947 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
10948 | ||
10949 | wxPyEndAllowThreads(__tstate); | |
10950 | if (PyErr_Occurred()) SWIG_fail; | |
10951 | } | |
2f4c0a16 | 10952 | resultobj = SWIG_FromInt((int)result); |
eb9b6107 RD |
10953 | return resultobj; |
10954 | fail: | |
10955 | return NULL; | |
10956 | } | |
10957 | ||
10958 | ||
10959 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10960 | PyObject *resultobj; | |
10961 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
10962 | int arg2 ; | |
10963 | PyObject * obj0 = 0 ; | |
8edf1c75 | 10964 | PyObject * obj1 = 0 ; |
eb9b6107 RD |
10965 | char *kwnames[] = { |
10966 | (char *) "self",(char *) "pos", NULL | |
10967 | }; | |
10968 | ||
8edf1c75 | 10969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
10970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
10971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10972 | arg2 = (int) SWIG_AsInt(obj1); | |
10973 | if (PyErr_Occurred()) SWIG_fail; | |
eb9b6107 RD |
10974 | { |
10975 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10976 | (arg1)->SetPosition(arg2); | |
10977 | ||
10978 | wxPyEndAllowThreads(__tstate); | |
10979 | if (PyErr_Occurred()) SWIG_fail; | |
10980 | } | |
10981 | Py_INCREF(Py_None); resultobj = Py_None; | |
10982 | return resultobj; | |
10983 | fail: | |
10984 | return NULL; | |
10985 | } | |
10986 | ||
10987 | ||
10988 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
10989 | PyObject *obj; | |
10990 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10991 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
10992 | Py_INCREF(obj); | |
10993 | return Py_BuildValue((char *)""); | |
10994 | } | |
2f4c0a16 | 10995 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
d03fd34d RD |
10996 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); |
10997 | return 1; | |
10998 | } | |
10999 | ||
11000 | ||
11001 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11002 | PyObject *pyobj; | |
11003 | ||
11004 | { | |
11005 | #if wxUSE_UNICODE | |
11006 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11007 | #else | |
11008 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11009 | #endif | |
11010 | } | |
11011 | return pyobj; | |
11012 | } | |
11013 | ||
11014 | ||
2f4c0a16 | 11015 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
11016 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); |
11017 | return 1; | |
11018 | } | |
11019 | ||
11020 | ||
11021 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11022 | PyObject *pyobj; | |
11023 | ||
11024 | { | |
11025 | #if wxUSE_UNICODE | |
11026 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11027 | #else | |
11028 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11029 | #endif | |
11030 | } | |
11031 | return pyobj; | |
11032 | } | |
11033 | ||
11034 | ||
d14a1e28 RD |
11035 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11036 | PyObject *resultobj; | |
11037 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11038 | int arg2 ; |
d14a1e28 RD |
11039 | wxString *arg3 = 0 ; |
11040 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11041 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11042 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11043 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4e760a36 RD |
11044 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11045 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11046 | int arg7 = (int) 0 ; | |
11047 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11048 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11049 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11050 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11051 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11052 | wxRadioBox *result; |
423f194a | 11053 | bool temp3 = False ; |
d14a1e28 RD |
11054 | wxPoint temp4 ; |
11055 | wxSize temp5 ; | |
db914595 | 11056 | bool temp6 = False ; |
423f194a | 11057 | bool temp10 = False ; |
d14a1e28 | 11058 | PyObject * obj0 = 0 ; |
8edf1c75 | 11059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11060 | PyObject * obj2 = 0 ; |
11061 | PyObject * obj3 = 0 ; | |
11062 | PyObject * obj4 = 0 ; | |
11063 | PyObject * obj5 = 0 ; | |
8edf1c75 RD |
11064 | PyObject * obj6 = 0 ; |
11065 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11066 | PyObject * obj8 = 0 ; |
11067 | PyObject * obj9 = 0 ; | |
11068 | char *kwnames[] = { | |
8edf1c75 | 11069 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11070 | }; |
11071 | ||
8edf1c75 | 11072 | 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 |
11073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11075 | arg2 = (int) SWIG_AsInt(obj1); | |
11076 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11077 | { |
11078 | arg3 = wxString_in_helper(obj2); | |
11079 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11080 | temp3 = True; |
d14a1e28 RD |
11081 | } |
11082 | if (obj3) { | |
11083 | { | |
11084 | arg4 = &temp4; | |
11085 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11086 | } | |
11087 | } | |
11088 | if (obj4) { | |
11089 | { | |
11090 | arg5 = &temp5; | |
11091 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11092 | } | |
11093 | } | |
11094 | if (obj5) { | |
11095 | { | |
4e760a36 RD |
11096 | if (! PySequence_Check(obj5)) { |
11097 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11098 | SWIG_fail; | |
11099 | } | |
11100 | arg6 = new wxArrayString; | |
db914595 | 11101 | temp6 = True; |
4e760a36 RD |
11102 | int i, len=PySequence_Length(obj5); |
11103 | for (i=0; i<len; i++) { | |
11104 | PyObject* item = PySequence_GetItem(obj5, i); | |
11105 | #if wxUSE_UNICODE | |
11106 | PyObject* str = PyObject_Unicode(item); | |
11107 | #else | |
11108 | PyObject* str = PyObject_Str(item); | |
11109 | #endif | |
11110 | arg6->Add(Py2wxString(str)); | |
11111 | Py_DECREF(item); | |
11112 | Py_DECREF(str); | |
11113 | } | |
d14a1e28 RD |
11114 | } |
11115 | } | |
8edf1c75 | 11116 | if (obj6) { |
2f4c0a16 RD |
11117 | arg7 = (int) SWIG_AsInt(obj6); |
11118 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11119 | } |
11120 | if (obj7) { | |
2f4c0a16 RD |
11121 | arg8 = (long) SWIG_AsLong(obj7); |
11122 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11123 | } |
d14a1e28 | 11124 | if (obj8) { |
2f4c0a16 RD |
11125 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11126 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11127 | SWIG_fail; | |
4e760a36 | 11128 | if (arg9 == NULL) { |
2f4c0a16 RD |
11129 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11130 | SWIG_fail; | |
d14a1e28 RD |
11131 | } |
11132 | } | |
11133 | if (obj9) { | |
11134 | { | |
4e760a36 RD |
11135 | arg10 = wxString_in_helper(obj9); |
11136 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 11137 | temp10 = True; |
d14a1e28 RD |
11138 | } |
11139 | } | |
11140 | { | |
11141 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11142 | 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 |
11143 | |
11144 | wxPyEndAllowThreads(__tstate); | |
11145 | if (PyErr_Occurred()) SWIG_fail; | |
11146 | } | |
2f4c0a16 | 11147 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11148 | { |
11149 | if (temp3) | |
11150 | delete arg3; | |
11151 | } | |
11152 | { | |
db914595 | 11153 | if (temp6) delete arg6; |
d14a1e28 RD |
11154 | } |
11155 | { | |
11156 | if (temp10) | |
4e760a36 | 11157 | delete arg10; |
d14a1e28 RD |
11158 | } |
11159 | return resultobj; | |
11160 | fail: | |
11161 | { | |
11162 | if (temp3) | |
11163 | delete arg3; | |
11164 | } | |
11165 | { | |
db914595 | 11166 | if (temp6) delete arg6; |
d14a1e28 RD |
11167 | } |
11168 | { | |
11169 | if (temp10) | |
4e760a36 | 11170 | delete arg10; |
d14a1e28 RD |
11171 | } |
11172 | return NULL; | |
11173 | } | |
11174 | ||
11175 | ||
11176 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11177 | PyObject *resultobj; | |
11178 | wxRadioBox *result; | |
11179 | char *kwnames[] = { | |
11180 | NULL | |
11181 | }; | |
11182 | ||
11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11184 | { | |
11185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11186 | result = (wxRadioBox *)new wxRadioBox(); | |
11187 | ||
11188 | wxPyEndAllowThreads(__tstate); | |
11189 | if (PyErr_Occurred()) SWIG_fail; | |
11190 | } | |
2f4c0a16 | 11191 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11192 | return resultobj; |
11193 | fail: | |
11194 | return NULL; | |
11195 | } | |
11196 | ||
11197 | ||
11198 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11199 | PyObject *resultobj; | |
11200 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11201 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11202 | int arg3 ; |
d14a1e28 RD |
11203 | wxString *arg4 = 0 ; |
11204 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11205 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11206 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11207 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4e760a36 RD |
11208 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11209 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11210 | int arg8 = (int) 0 ; | |
11211 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11212 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11213 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11214 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11215 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11216 | bool result; |
423f194a | 11217 | bool temp4 = False ; |
d14a1e28 RD |
11218 | wxPoint temp5 ; |
11219 | wxSize temp6 ; | |
db914595 | 11220 | bool temp7 = False ; |
423f194a | 11221 | bool temp11 = False ; |
d14a1e28 RD |
11222 | PyObject * obj0 = 0 ; |
11223 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11224 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11225 | PyObject * obj3 = 0 ; |
11226 | PyObject * obj4 = 0 ; | |
11227 | PyObject * obj5 = 0 ; | |
11228 | PyObject * obj6 = 0 ; | |
8edf1c75 RD |
11229 | PyObject * obj7 = 0 ; |
11230 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11231 | PyObject * obj9 = 0 ; |
11232 | PyObject * obj10 = 0 ; | |
11233 | char *kwnames[] = { | |
8edf1c75 | 11234 | (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 |
11235 | }; |
11236 | ||
8edf1c75 | 11237 | 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 |
11238 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11239 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11240 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11242 | arg3 = (int) SWIG_AsInt(obj2); | |
11243 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11244 | { |
11245 | arg4 = wxString_in_helper(obj3); | |
11246 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11247 | temp4 = True; |
d14a1e28 RD |
11248 | } |
11249 | if (obj4) { | |
11250 | { | |
11251 | arg5 = &temp5; | |
11252 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11253 | } | |
11254 | } | |
11255 | if (obj5) { | |
11256 | { | |
11257 | arg6 = &temp6; | |
11258 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11259 | } | |
11260 | } | |
11261 | if (obj6) { | |
11262 | { | |
4e760a36 RD |
11263 | if (! PySequence_Check(obj6)) { |
11264 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11265 | SWIG_fail; | |
11266 | } | |
11267 | arg7 = new wxArrayString; | |
db914595 | 11268 | temp7 = True; |
4e760a36 RD |
11269 | int i, len=PySequence_Length(obj6); |
11270 | for (i=0; i<len; i++) { | |
11271 | PyObject* item = PySequence_GetItem(obj6, i); | |
11272 | #if wxUSE_UNICODE | |
11273 | PyObject* str = PyObject_Unicode(item); | |
11274 | #else | |
11275 | PyObject* str = PyObject_Str(item); | |
11276 | #endif | |
11277 | arg7->Add(Py2wxString(str)); | |
11278 | Py_DECREF(item); | |
11279 | Py_DECREF(str); | |
11280 | } | |
d14a1e28 RD |
11281 | } |
11282 | } | |
8edf1c75 | 11283 | if (obj7) { |
2f4c0a16 RD |
11284 | arg8 = (int) SWIG_AsInt(obj7); |
11285 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
11286 | } |
11287 | if (obj8) { | |
2f4c0a16 RD |
11288 | arg9 = (long) SWIG_AsLong(obj8); |
11289 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11290 | } |
d14a1e28 | 11291 | if (obj9) { |
2f4c0a16 RD |
11292 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11293 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11294 | SWIG_fail; | |
4e760a36 | 11295 | if (arg10 == NULL) { |
2f4c0a16 RD |
11296 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11297 | SWIG_fail; | |
d14a1e28 RD |
11298 | } |
11299 | } | |
11300 | if (obj10) { | |
11301 | { | |
4e760a36 RD |
11302 | arg11 = wxString_in_helper(obj10); |
11303 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 11304 | temp11 = True; |
d14a1e28 RD |
11305 | } |
11306 | } | |
11307 | { | |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4e760a36 | 11309 | 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 |
11310 | |
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
4f89f6a3 RD |
11314 | { |
11315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11316 | } | |
d14a1e28 RD |
11317 | { |
11318 | if (temp4) | |
11319 | delete arg4; | |
11320 | } | |
11321 | { | |
db914595 | 11322 | if (temp7) delete arg7; |
d14a1e28 RD |
11323 | } |
11324 | { | |
11325 | if (temp11) | |
4e760a36 | 11326 | delete arg11; |
d14a1e28 RD |
11327 | } |
11328 | return resultobj; | |
11329 | fail: | |
11330 | { | |
11331 | if (temp4) | |
11332 | delete arg4; | |
11333 | } | |
11334 | { | |
db914595 | 11335 | if (temp7) delete arg7; |
d14a1e28 RD |
11336 | } |
11337 | { | |
11338 | if (temp11) | |
4e760a36 | 11339 | delete arg11; |
d14a1e28 RD |
11340 | } |
11341 | return NULL; | |
11342 | } | |
11343 | ||
11344 | ||
11345 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11346 | PyObject *resultobj; | |
11347 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11348 | int arg2 ; | |
11349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11351 | char *kwnames[] = { |
11352 | (char *) "self",(char *) "n", NULL | |
11353 | }; | |
11354 | ||
8edf1c75 | 11355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11358 | arg2 = (int) SWIG_AsInt(obj1); | |
11359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11360 | { |
11361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11362 | (arg1)->SetSelection(arg2); | |
11363 | ||
11364 | wxPyEndAllowThreads(__tstate); | |
11365 | if (PyErr_Occurred()) SWIG_fail; | |
11366 | } | |
11367 | Py_INCREF(Py_None); resultobj = Py_None; | |
11368 | return resultobj; | |
11369 | fail: | |
11370 | return NULL; | |
11371 | } | |
11372 | ||
11373 | ||
11374 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11375 | PyObject *resultobj; | |
11376 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11377 | int result; | |
11378 | PyObject * obj0 = 0 ; | |
11379 | char *kwnames[] = { | |
11380 | (char *) "self", NULL | |
11381 | }; | |
11382 | ||
11383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11386 | { |
11387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11388 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
11389 | ||
11390 | wxPyEndAllowThreads(__tstate); | |
11391 | if (PyErr_Occurred()) SWIG_fail; | |
11392 | } | |
2f4c0a16 | 11393 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11394 | return resultobj; |
11395 | fail: | |
11396 | return NULL; | |
11397 | } | |
11398 | ||
11399 | ||
11400 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11401 | PyObject *resultobj; | |
11402 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11403 | wxString result; | |
11404 | PyObject * obj0 = 0 ; | |
11405 | char *kwnames[] = { | |
11406 | (char *) "self", NULL | |
11407 | }; | |
11408 | ||
11409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11410 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11411 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11412 | { |
11413 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11414 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
11415 | ||
11416 | wxPyEndAllowThreads(__tstate); | |
11417 | if (PyErr_Occurred()) SWIG_fail; | |
11418 | } | |
11419 | { | |
11420 | #if wxUSE_UNICODE | |
11421 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11422 | #else | |
11423 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11424 | #endif | |
11425 | } | |
11426 | return resultobj; | |
11427 | fail: | |
11428 | return NULL; | |
11429 | } | |
11430 | ||
11431 | ||
11432 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11433 | PyObject *resultobj; | |
11434 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11435 | wxString *arg2 = 0 ; | |
11436 | bool result; | |
423f194a | 11437 | bool temp2 = False ; |
d14a1e28 RD |
11438 | PyObject * obj0 = 0 ; |
11439 | PyObject * obj1 = 0 ; | |
11440 | char *kwnames[] = { | |
11441 | (char *) "self",(char *) "s", NULL | |
11442 | }; | |
11443 | ||
11444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11447 | { |
11448 | arg2 = wxString_in_helper(obj1); | |
11449 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11450 | temp2 = True; |
d14a1e28 RD |
11451 | } |
11452 | { | |
11453 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11454 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
11455 | ||
11456 | wxPyEndAllowThreads(__tstate); | |
11457 | if (PyErr_Occurred()) SWIG_fail; | |
11458 | } | |
4f89f6a3 RD |
11459 | { |
11460 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11461 | } | |
d14a1e28 RD |
11462 | { |
11463 | if (temp2) | |
11464 | delete arg2; | |
11465 | } | |
11466 | return resultobj; | |
11467 | fail: | |
11468 | { | |
11469 | if (temp2) | |
11470 | delete arg2; | |
11471 | } | |
11472 | return NULL; | |
11473 | } | |
11474 | ||
11475 | ||
11476 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11477 | PyObject *resultobj; | |
11478 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11479 | int result; | |
11480 | PyObject * obj0 = 0 ; | |
11481 | char *kwnames[] = { | |
11482 | (char *) "self", NULL | |
11483 | }; | |
11484 | ||
11485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11488 | { |
11489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11490 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
11491 | ||
11492 | wxPyEndAllowThreads(__tstate); | |
11493 | if (PyErr_Occurred()) SWIG_fail; | |
11494 | } | |
2f4c0a16 | 11495 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11496 | return resultobj; |
11497 | fail: | |
11498 | return NULL; | |
11499 | } | |
11500 | ||
11501 | ||
11502 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11503 | PyObject *resultobj; | |
11504 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11505 | wxString *arg2 = 0 ; | |
11506 | int result; | |
423f194a | 11507 | bool temp2 = False ; |
d14a1e28 RD |
11508 | PyObject * obj0 = 0 ; |
11509 | PyObject * obj1 = 0 ; | |
11510 | char *kwnames[] = { | |
11511 | (char *) "self",(char *) "s", NULL | |
11512 | }; | |
11513 | ||
11514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
11515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11517 | { |
11518 | arg2 = wxString_in_helper(obj1); | |
11519 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 11520 | temp2 = True; |
d14a1e28 RD |
11521 | } |
11522 | { | |
11523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11524 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
11525 | ||
11526 | wxPyEndAllowThreads(__tstate); | |
11527 | if (PyErr_Occurred()) SWIG_fail; | |
11528 | } | |
2f4c0a16 | 11529 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11530 | { |
11531 | if (temp2) | |
11532 | delete arg2; | |
11533 | } | |
11534 | return resultobj; | |
11535 | fail: | |
11536 | { | |
11537 | if (temp2) | |
11538 | delete arg2; | |
11539 | } | |
11540 | return NULL; | |
11541 | } | |
11542 | ||
11543 | ||
11544 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11545 | PyObject *resultobj; | |
11546 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11547 | int arg2 ; | |
11548 | wxString result; | |
11549 | PyObject * obj0 = 0 ; | |
8edf1c75 | 11550 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11551 | char *kwnames[] = { |
11552 | (char *) "self",(char *) "n", NULL | |
11553 | }; | |
11554 | ||
8edf1c75 | 11555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
11556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11558 | arg2 = (int) SWIG_AsInt(obj1); | |
11559 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11560 | { |
11561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11562 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
11563 | ||
11564 | wxPyEndAllowThreads(__tstate); | |
11565 | if (PyErr_Occurred()) SWIG_fail; | |
11566 | } | |
11567 | { | |
11568 | #if wxUSE_UNICODE | |
11569 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
11570 | #else | |
11571 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
11572 | #endif | |
11573 | } | |
11574 | return resultobj; | |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
11580 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11581 | PyObject *resultobj; | |
11582 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11583 | int arg2 ; | |
11584 | wxString *arg3 = 0 ; | |
423f194a | 11585 | bool temp3 = False ; |
d14a1e28 | 11586 | PyObject * obj0 = 0 ; |
8edf1c75 | 11587 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11588 | PyObject * obj2 = 0 ; |
11589 | char *kwnames[] = { | |
11590 | (char *) "self",(char *) "n",(char *) "label", NULL | |
11591 | }; | |
11592 | ||
8edf1c75 | 11593 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11594 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11595 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11596 | arg2 = (int) SWIG_AsInt(obj1); | |
11597 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11598 | { |
11599 | arg3 = wxString_in_helper(obj2); | |
11600 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11601 | temp3 = True; |
d14a1e28 RD |
11602 | } |
11603 | { | |
11604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11605 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
11606 | ||
11607 | wxPyEndAllowThreads(__tstate); | |
11608 | if (PyErr_Occurred()) SWIG_fail; | |
11609 | } | |
11610 | Py_INCREF(Py_None); resultobj = Py_None; | |
11611 | { | |
11612 | if (temp3) | |
11613 | delete arg3; | |
11614 | } | |
11615 | return resultobj; | |
11616 | fail: | |
11617 | { | |
11618 | if (temp3) | |
11619 | delete arg3; | |
11620 | } | |
11621 | return NULL; | |
11622 | } | |
11623 | ||
11624 | ||
11625 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11626 | PyObject *resultobj; | |
11627 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11628 | int arg2 ; | |
423f194a | 11629 | bool arg3 = (bool) True ; |
d14a1e28 | 11630 | PyObject * obj0 = 0 ; |
8edf1c75 | 11631 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11632 | PyObject * obj2 = 0 ; |
11633 | char *kwnames[] = { | |
11634 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
11635 | }; | |
11636 | ||
8edf1c75 | 11637 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11638 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11639 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11640 | arg2 = (int) SWIG_AsInt(obj1); | |
11641 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11642 | if (obj2) { |
2f4c0a16 RD |
11643 | arg3 = (bool) SWIG_AsBool(obj2); |
11644 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11645 | } |
11646 | { | |
11647 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11648 | (arg1)->Enable(arg2,arg3); | |
11649 | ||
11650 | wxPyEndAllowThreads(__tstate); | |
11651 | if (PyErr_Occurred()) SWIG_fail; | |
11652 | } | |
11653 | Py_INCREF(Py_None); resultobj = Py_None; | |
11654 | return resultobj; | |
11655 | fail: | |
11656 | return NULL; | |
11657 | } | |
11658 | ||
11659 | ||
11660 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11661 | PyObject *resultobj; | |
11662 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11663 | int arg2 ; | |
423f194a | 11664 | bool arg3 = (bool) True ; |
d14a1e28 | 11665 | PyObject * obj0 = 0 ; |
8edf1c75 | 11666 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11667 | PyObject * obj2 = 0 ; |
11668 | char *kwnames[] = { | |
11669 | (char *) "self",(char *) "n",(char *) "show", NULL | |
11670 | }; | |
11671 | ||
8edf1c75 | 11672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
11673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11675 | arg2 = (int) SWIG_AsInt(obj1); | |
11676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 11677 | if (obj2) { |
2f4c0a16 RD |
11678 | arg3 = (bool) SWIG_AsBool(obj2); |
11679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11680 | } |
11681 | { | |
11682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11683 | (arg1)->Show(arg2,arg3); | |
11684 | ||
11685 | wxPyEndAllowThreads(__tstate); | |
11686 | if (PyErr_Occurred()) SWIG_fail; | |
11687 | } | |
11688 | Py_INCREF(Py_None); resultobj = Py_None; | |
11689 | return resultobj; | |
11690 | fail: | |
11691 | return NULL; | |
11692 | } | |
11693 | ||
11694 | ||
11695 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11696 | PyObject *resultobj; | |
11697 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11698 | int result; | |
11699 | PyObject * obj0 = 0 ; | |
11700 | char *kwnames[] = { | |
11701 | (char *) "self", NULL | |
11702 | }; | |
11703 | ||
11704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11707 | { |
11708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11709 | result = (int)((wxRadioBox const *)arg1)->GetColumnCount(); | |
11710 | ||
11711 | wxPyEndAllowThreads(__tstate); | |
11712 | if (PyErr_Occurred()) SWIG_fail; | |
11713 | } | |
2f4c0a16 | 11714 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11715 | return resultobj; |
11716 | fail: | |
11717 | return NULL; | |
11718 | } | |
11719 | ||
11720 | ||
11721 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11722 | PyObject *resultobj; | |
11723 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11724 | int result; | |
11725 | PyObject * obj0 = 0 ; | |
11726 | char *kwnames[] = { | |
11727 | (char *) "self", NULL | |
11728 | }; | |
11729 | ||
11730 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
11731 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11732 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11733 | { |
11734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11735 | result = (int)((wxRadioBox const *)arg1)->GetRowCount(); | |
11736 | ||
11737 | wxPyEndAllowThreads(__tstate); | |
11738 | if (PyErr_Occurred()) SWIG_fail; | |
11739 | } | |
2f4c0a16 | 11740 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11741 | return resultobj; |
11742 | fail: | |
11743 | return NULL; | |
11744 | } | |
11745 | ||
11746 | ||
11747 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11748 | PyObject *resultobj; | |
11749 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11750 | int arg2 ; | |
11751 | int arg3 ; | |
11752 | long arg4 ; | |
11753 | int result; | |
11754 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
11755 | PyObject * obj1 = 0 ; |
11756 | PyObject * obj2 = 0 ; | |
11757 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
11758 | char *kwnames[] = { |
11759 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
11760 | }; | |
11761 | ||
8edf1c75 | 11762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
11763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11765 | arg2 = (int) SWIG_AsInt(obj1); | |
11766 | if (PyErr_Occurred()) SWIG_fail; | |
11767 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
11768 | if (PyErr_Occurred()) SWIG_fail; | |
11769 | arg4 = (long) SWIG_AsLong(obj3); | |
11770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11771 | { |
11772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11773 | result = (int)((wxRadioBox const *)arg1)->GetNextItem(arg2,(wxDirection )arg3,arg4); | |
11774 | ||
11775 | wxPyEndAllowThreads(__tstate); | |
11776 | if (PyErr_Occurred()) SWIG_fail; | |
11777 | } | |
2f4c0a16 | 11778 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11779 | return resultobj; |
11780 | fail: | |
11781 | return NULL; | |
11782 | } | |
11783 | ||
11784 | ||
11785 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { | |
11786 | PyObject *obj; | |
11787 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11788 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
11789 | Py_INCREF(obj); | |
11790 | return Py_BuildValue((char *)""); | |
11791 | } | |
11792 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11793 | PyObject *resultobj; | |
11794 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 11795 | int arg2 ; |
d14a1e28 RD |
11796 | wxString *arg3 = 0 ; |
11797 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11798 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11799 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11800 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11801 | long arg6 = (long) 0 ; | |
11802 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
11803 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
11804 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
11805 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
11806 | wxRadioButton *result; | |
423f194a | 11807 | bool temp3 = False ; |
d14a1e28 RD |
11808 | wxPoint temp4 ; |
11809 | wxSize temp5 ; | |
423f194a | 11810 | bool temp8 = False ; |
d14a1e28 | 11811 | PyObject * obj0 = 0 ; |
8edf1c75 | 11812 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11813 | PyObject * obj2 = 0 ; |
11814 | PyObject * obj3 = 0 ; | |
11815 | PyObject * obj4 = 0 ; | |
8edf1c75 | 11816 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
11817 | PyObject * obj6 = 0 ; |
11818 | PyObject * obj7 = 0 ; | |
11819 | char *kwnames[] = { | |
11820 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11821 | }; | |
11822 | ||
8edf1c75 | 11823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
11824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11826 | arg2 = (int) SWIG_AsInt(obj1); | |
11827 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11828 | { |
11829 | arg3 = wxString_in_helper(obj2); | |
11830 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 11831 | temp3 = True; |
d14a1e28 RD |
11832 | } |
11833 | if (obj3) { | |
11834 | { | |
11835 | arg4 = &temp4; | |
11836 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11837 | } | |
11838 | } | |
11839 | if (obj4) { | |
11840 | { | |
11841 | arg5 = &temp5; | |
11842 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11843 | } | |
11844 | } | |
8edf1c75 | 11845 | if (obj5) { |
2f4c0a16 RD |
11846 | arg6 = (long) SWIG_AsLong(obj5); |
11847 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11848 | } |
d14a1e28 | 11849 | if (obj6) { |
2f4c0a16 RD |
11850 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
11851 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11852 | SWIG_fail; | |
d14a1e28 | 11853 | if (arg7 == NULL) { |
2f4c0a16 RD |
11854 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11855 | SWIG_fail; | |
d14a1e28 RD |
11856 | } |
11857 | } | |
11858 | if (obj7) { | |
11859 | { | |
11860 | arg8 = wxString_in_helper(obj7); | |
11861 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 11862 | temp8 = True; |
d14a1e28 RD |
11863 | } |
11864 | } | |
11865 | { | |
11866 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11867 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
11868 | ||
11869 | wxPyEndAllowThreads(__tstate); | |
11870 | if (PyErr_Occurred()) SWIG_fail; | |
11871 | } | |
2f4c0a16 | 11872 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11873 | { |
11874 | if (temp3) | |
11875 | delete arg3; | |
11876 | } | |
11877 | { | |
11878 | if (temp8) | |
11879 | delete arg8; | |
11880 | } | |
11881 | return resultobj; | |
11882 | fail: | |
11883 | { | |
11884 | if (temp3) | |
11885 | delete arg3; | |
11886 | } | |
11887 | { | |
11888 | if (temp8) | |
11889 | delete arg8; | |
11890 | } | |
11891 | return NULL; | |
11892 | } | |
11893 | ||
11894 | ||
11895 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11896 | PyObject *resultobj; | |
11897 | wxRadioButton *result; | |
11898 | char *kwnames[] = { | |
11899 | NULL | |
11900 | }; | |
11901 | ||
11902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
11903 | { | |
11904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11905 | result = (wxRadioButton *)new wxRadioButton(); | |
11906 | ||
11907 | wxPyEndAllowThreads(__tstate); | |
11908 | if (PyErr_Occurred()) SWIG_fail; | |
11909 | } | |
2f4c0a16 | 11910 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
11911 | return resultobj; |
11912 | fail: | |
11913 | return NULL; | |
11914 | } | |
11915 | ||
11916 | ||
11917 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11918 | PyObject *resultobj; | |
11919 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
11920 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 11921 | int arg3 ; |
d14a1e28 RD |
11922 | wxString *arg4 = 0 ; |
11923 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11924 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11925 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11926 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11927 | long arg7 = (long) 0 ; | |
11928 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
11929 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
11930 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
11931 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
11932 | bool result; | |
423f194a | 11933 | bool temp4 = False ; |
d14a1e28 RD |
11934 | wxPoint temp5 ; |
11935 | wxSize temp6 ; | |
423f194a | 11936 | bool temp9 = False ; |
d14a1e28 RD |
11937 | PyObject * obj0 = 0 ; |
11938 | PyObject * obj1 = 0 ; | |
8edf1c75 | 11939 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11940 | PyObject * obj3 = 0 ; |
11941 | PyObject * obj4 = 0 ; | |
11942 | PyObject * obj5 = 0 ; | |
8edf1c75 | 11943 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
11944 | PyObject * obj7 = 0 ; |
11945 | PyObject * obj8 = 0 ; | |
11946 | char *kwnames[] = { | |
11947 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
11948 | }; | |
11949 | ||
8edf1c75 | 11950 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
11951 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
11952 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11953 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11954 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11955 | arg3 = (int) SWIG_AsInt(obj2); | |
11956 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11957 | { |
11958 | arg4 = wxString_in_helper(obj3); | |
11959 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 11960 | temp4 = True; |
d14a1e28 RD |
11961 | } |
11962 | if (obj4) { | |
11963 | { | |
11964 | arg5 = &temp5; | |
11965 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11966 | } | |
11967 | } | |
11968 | if (obj5) { | |
11969 | { | |
11970 | arg6 = &temp6; | |
11971 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11972 | } | |
11973 | } | |
8edf1c75 | 11974 | if (obj6) { |
2f4c0a16 RD |
11975 | arg7 = (long) SWIG_AsLong(obj6); |
11976 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 11977 | } |
d14a1e28 | 11978 | if (obj7) { |
2f4c0a16 RD |
11979 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
11980 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11981 | SWIG_fail; | |
d14a1e28 | 11982 | if (arg8 == NULL) { |
2f4c0a16 RD |
11983 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11984 | SWIG_fail; | |
d14a1e28 RD |
11985 | } |
11986 | } | |
11987 | if (obj8) { | |
11988 | { | |
11989 | arg9 = wxString_in_helper(obj8); | |
11990 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 11991 | temp9 = True; |
d14a1e28 RD |
11992 | } |
11993 | } | |
11994 | { | |
11995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11996 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
11997 | ||
11998 | wxPyEndAllowThreads(__tstate); | |
11999 | if (PyErr_Occurred()) SWIG_fail; | |
12000 | } | |
4f89f6a3 RD |
12001 | { |
12002 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12003 | } | |
d14a1e28 RD |
12004 | { |
12005 | if (temp4) | |
12006 | delete arg4; | |
12007 | } | |
12008 | { | |
12009 | if (temp9) | |
12010 | delete arg9; | |
12011 | } | |
12012 | return resultobj; | |
12013 | fail: | |
12014 | { | |
12015 | if (temp4) | |
12016 | delete arg4; | |
12017 | } | |
12018 | { | |
12019 | if (temp9) | |
12020 | delete arg9; | |
12021 | } | |
12022 | return NULL; | |
12023 | } | |
12024 | ||
12025 | ||
12026 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12027 | PyObject *resultobj; | |
12028 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12029 | bool result; | |
12030 | PyObject * obj0 = 0 ; | |
12031 | char *kwnames[] = { | |
12032 | (char *) "self", NULL | |
12033 | }; | |
12034 | ||
12035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12038 | { |
12039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12040 | result = (bool)(arg1)->GetValue(); | |
12041 | ||
12042 | wxPyEndAllowThreads(__tstate); | |
12043 | if (PyErr_Occurred()) SWIG_fail; | |
12044 | } | |
4f89f6a3 RD |
12045 | { |
12046 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12047 | } | |
d14a1e28 RD |
12048 | return resultobj; |
12049 | fail: | |
12050 | return NULL; | |
12051 | } | |
12052 | ||
12053 | ||
12054 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12055 | PyObject *resultobj; | |
12056 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12057 | bool arg2 ; | |
12058 | PyObject * obj0 = 0 ; | |
12059 | PyObject * obj1 = 0 ; | |
12060 | char *kwnames[] = { | |
12061 | (char *) "self",(char *) "value", NULL | |
12062 | }; | |
12063 | ||
12064 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
12065 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12066 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12067 | arg2 = (bool) SWIG_AsBool(obj1); | |
12068 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12069 | { |
12070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12071 | (arg1)->SetValue(arg2); | |
12072 | ||
12073 | wxPyEndAllowThreads(__tstate); | |
12074 | if (PyErr_Occurred()) SWIG_fail; | |
12075 | } | |
12076 | Py_INCREF(Py_None); resultobj = Py_None; | |
12077 | return resultobj; | |
12078 | fail: | |
12079 | return NULL; | |
12080 | } | |
12081 | ||
12082 | ||
12083 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { | |
12084 | PyObject *obj; | |
12085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12086 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12087 | Py_INCREF(obj); | |
12088 | return Py_BuildValue((char *)""); | |
12089 | } | |
2f4c0a16 | 12090 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
d03fd34d RD |
12091 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); |
12092 | return 1; | |
12093 | } | |
12094 | ||
12095 | ||
12096 | static PyObject *_wrap_SliderNameStr_get() { | |
12097 | PyObject *pyobj; | |
12098 | ||
12099 | { | |
12100 | #if wxUSE_UNICODE | |
12101 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12102 | #else | |
12103 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12104 | #endif | |
12105 | } | |
12106 | return pyobj; | |
12107 | } | |
12108 | ||
12109 | ||
d14a1e28 RD |
12110 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12111 | PyObject *resultobj; | |
12112 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12113 | int arg2 ; |
d14a1e28 RD |
12114 | int arg3 ; |
12115 | int arg4 ; | |
12116 | int arg5 ; | |
12117 | wxPoint const &arg6_defvalue = wxDefaultPosition ; | |
12118 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12119 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12120 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12121 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12122 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12123 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12124 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12125 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12126 | wxSlider *result; | |
12127 | wxPoint temp6 ; | |
12128 | wxSize temp7 ; | |
423f194a | 12129 | bool temp10 = False ; |
d14a1e28 | 12130 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12131 | PyObject * obj1 = 0 ; |
12132 | PyObject * obj2 = 0 ; | |
12133 | PyObject * obj3 = 0 ; | |
12134 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12135 | PyObject * obj5 = 0 ; |
12136 | PyObject * obj6 = 0 ; | |
8edf1c75 | 12137 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12138 | PyObject * obj8 = 0 ; |
12139 | PyObject * obj9 = 0 ; | |
12140 | char *kwnames[] = { | |
8edf1c75 | 12141 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12142 | }; |
12143 | ||
8edf1c75 | 12144 | 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 |
12145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12147 | arg2 = (int) SWIG_AsInt(obj1); | |
12148 | if (PyErr_Occurred()) SWIG_fail; | |
12149 | arg3 = (int) SWIG_AsInt(obj2); | |
12150 | if (PyErr_Occurred()) SWIG_fail; | |
12151 | arg4 = (int) SWIG_AsInt(obj3); | |
12152 | if (PyErr_Occurred()) SWIG_fail; | |
12153 | arg5 = (int) SWIG_AsInt(obj4); | |
12154 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12155 | if (obj5) { |
12156 | { | |
12157 | arg6 = &temp6; | |
12158 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12159 | } | |
12160 | } | |
12161 | if (obj6) { | |
12162 | { | |
12163 | arg7 = &temp7; | |
12164 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12165 | } | |
12166 | } | |
8edf1c75 | 12167 | if (obj7) { |
2f4c0a16 RD |
12168 | arg8 = (long) SWIG_AsLong(obj7); |
12169 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12170 | } |
d14a1e28 | 12171 | if (obj8) { |
2f4c0a16 RD |
12172 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12174 | SWIG_fail; | |
d14a1e28 | 12175 | if (arg9 == NULL) { |
2f4c0a16 RD |
12176 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12177 | SWIG_fail; | |
d14a1e28 RD |
12178 | } |
12179 | } | |
12180 | if (obj9) { | |
12181 | { | |
12182 | arg10 = wxString_in_helper(obj9); | |
12183 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 12184 | temp10 = True; |
d14a1e28 RD |
12185 | } |
12186 | } | |
12187 | { | |
12188 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12189 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12190 | ||
12191 | wxPyEndAllowThreads(__tstate); | |
12192 | if (PyErr_Occurred()) SWIG_fail; | |
12193 | } | |
2f4c0a16 | 12194 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12195 | { |
12196 | if (temp10) | |
12197 | delete arg10; | |
12198 | } | |
12199 | return resultobj; | |
12200 | fail: | |
12201 | { | |
12202 | if (temp10) | |
12203 | delete arg10; | |
12204 | } | |
12205 | return NULL; | |
12206 | } | |
12207 | ||
12208 | ||
12209 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12210 | PyObject *resultobj; | |
12211 | wxSlider *result; | |
12212 | char *kwnames[] = { | |
12213 | NULL | |
12214 | }; | |
12215 | ||
12216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12217 | { | |
12218 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12219 | result = (wxSlider *)new wxSlider(); | |
12220 | ||
12221 | wxPyEndAllowThreads(__tstate); | |
12222 | if (PyErr_Occurred()) SWIG_fail; | |
12223 | } | |
2f4c0a16 | 12224 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12225 | return resultobj; |
12226 | fail: | |
12227 | return NULL; | |
12228 | } | |
12229 | ||
12230 | ||
12231 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12232 | PyObject *resultobj; | |
12233 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12234 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 12235 | int arg3 ; |
d14a1e28 RD |
12236 | int arg4 ; |
12237 | int arg5 ; | |
12238 | int arg6 ; | |
12239 | wxPoint const &arg7_defvalue = wxDefaultPosition ; | |
12240 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12241 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12242 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12243 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12244 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12245 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12246 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12247 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12248 | bool result; | |
12249 | wxPoint temp7 ; | |
12250 | wxSize temp8 ; | |
423f194a | 12251 | bool temp11 = False ; |
d14a1e28 RD |
12252 | PyObject * obj0 = 0 ; |
12253 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
12254 | PyObject * obj2 = 0 ; |
12255 | PyObject * obj3 = 0 ; | |
12256 | PyObject * obj4 = 0 ; | |
12257 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12258 | PyObject * obj6 = 0 ; |
12259 | PyObject * obj7 = 0 ; | |
8edf1c75 | 12260 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12261 | PyObject * obj9 = 0 ; |
12262 | PyObject * obj10 = 0 ; | |
12263 | char *kwnames[] = { | |
8edf1c75 | 12264 | (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 |
12265 | }; |
12266 | ||
8edf1c75 | 12267 | 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 |
12268 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12270 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12271 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12272 | arg3 = (int) SWIG_AsInt(obj2); | |
12273 | if (PyErr_Occurred()) SWIG_fail; | |
12274 | arg4 = (int) SWIG_AsInt(obj3); | |
12275 | if (PyErr_Occurred()) SWIG_fail; | |
12276 | arg5 = (int) SWIG_AsInt(obj4); | |
12277 | if (PyErr_Occurred()) SWIG_fail; | |
12278 | arg6 = (int) SWIG_AsInt(obj5); | |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12280 | if (obj6) { |
12281 | { | |
12282 | arg7 = &temp7; | |
12283 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
12284 | } | |
12285 | } | |
12286 | if (obj7) { | |
12287 | { | |
12288 | arg8 = &temp8; | |
12289 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
12290 | } | |
12291 | } | |
8edf1c75 | 12292 | if (obj8) { |
2f4c0a16 RD |
12293 | arg9 = (long) SWIG_AsLong(obj8); |
12294 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12295 | } |
d14a1e28 | 12296 | if (obj9) { |
2f4c0a16 RD |
12297 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
12298 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12299 | SWIG_fail; | |
d14a1e28 | 12300 | if (arg10 == NULL) { |
2f4c0a16 RD |
12301 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12302 | SWIG_fail; | |
d14a1e28 RD |
12303 | } |
12304 | } | |
12305 | if (obj10) { | |
12306 | { | |
12307 | arg11 = wxString_in_helper(obj10); | |
12308 | if (arg11 == NULL) SWIG_fail; | |
423f194a | 12309 | temp11 = True; |
d14a1e28 RD |
12310 | } |
12311 | } | |
12312 | { | |
12313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12314 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
12315 | ||
12316 | wxPyEndAllowThreads(__tstate); | |
12317 | if (PyErr_Occurred()) SWIG_fail; | |
12318 | } | |
4f89f6a3 RD |
12319 | { |
12320 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12321 | } | |
d14a1e28 RD |
12322 | { |
12323 | if (temp11) | |
12324 | delete arg11; | |
12325 | } | |
12326 | return resultobj; | |
12327 | fail: | |
12328 | { | |
12329 | if (temp11) | |
12330 | delete arg11; | |
12331 | } | |
12332 | return NULL; | |
12333 | } | |
12334 | ||
12335 | ||
12336 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12337 | PyObject *resultobj; | |
12338 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12339 | int result; | |
12340 | PyObject * obj0 = 0 ; | |
12341 | char *kwnames[] = { | |
12342 | (char *) "self", NULL | |
12343 | }; | |
12344 | ||
12345 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12346 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12347 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12348 | { |
12349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12350 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
12351 | ||
12352 | wxPyEndAllowThreads(__tstate); | |
12353 | if (PyErr_Occurred()) SWIG_fail; | |
12354 | } | |
2f4c0a16 | 12355 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12356 | return resultobj; |
12357 | fail: | |
12358 | return NULL; | |
12359 | } | |
12360 | ||
12361 | ||
12362 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12363 | PyObject *resultobj; | |
12364 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12365 | int arg2 ; | |
12366 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12367 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12368 | char *kwnames[] = { |
12369 | (char *) "self",(char *) "value", NULL | |
12370 | }; | |
12371 | ||
8edf1c75 | 12372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12375 | arg2 = (int) SWIG_AsInt(obj1); | |
12376 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12377 | { |
12378 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12379 | (arg1)->SetValue(arg2); | |
12380 | ||
12381 | wxPyEndAllowThreads(__tstate); | |
12382 | if (PyErr_Occurred()) SWIG_fail; | |
12383 | } | |
12384 | Py_INCREF(Py_None); resultobj = Py_None; | |
12385 | return resultobj; | |
12386 | fail: | |
12387 | return NULL; | |
12388 | } | |
12389 | ||
12390 | ||
12391 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12392 | PyObject *resultobj; | |
12393 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12394 | int arg2 ; | |
12395 | int arg3 ; | |
12396 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12397 | PyObject * obj1 = 0 ; |
12398 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12399 | char *kwnames[] = { |
12400 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
12401 | }; | |
12402 | ||
8edf1c75 | 12403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12406 | arg2 = (int) SWIG_AsInt(obj1); | |
12407 | if (PyErr_Occurred()) SWIG_fail; | |
12408 | arg3 = (int) SWIG_AsInt(obj2); | |
12409 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12410 | { |
12411 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12412 | (arg1)->SetRange(arg2,arg3); | |
12413 | ||
12414 | wxPyEndAllowThreads(__tstate); | |
12415 | if (PyErr_Occurred()) SWIG_fail; | |
12416 | } | |
12417 | Py_INCREF(Py_None); resultobj = Py_None; | |
12418 | return resultobj; | |
12419 | fail: | |
12420 | return NULL; | |
12421 | } | |
12422 | ||
12423 | ||
12424 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12425 | PyObject *resultobj; | |
12426 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12427 | int result; | |
12428 | PyObject * obj0 = 0 ; | |
12429 | char *kwnames[] = { | |
12430 | (char *) "self", NULL | |
12431 | }; | |
12432 | ||
12433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12436 | { |
12437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12438 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
12439 | ||
12440 | wxPyEndAllowThreads(__tstate); | |
12441 | if (PyErr_Occurred()) SWIG_fail; | |
12442 | } | |
2f4c0a16 | 12443 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12444 | return resultobj; |
12445 | fail: | |
12446 | return NULL; | |
12447 | } | |
12448 | ||
12449 | ||
12450 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12451 | PyObject *resultobj; | |
12452 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12453 | int result; | |
12454 | PyObject * obj0 = 0 ; | |
12455 | char *kwnames[] = { | |
12456 | (char *) "self", NULL | |
12457 | }; | |
12458 | ||
12459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12462 | { |
12463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12464 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
12465 | ||
12466 | wxPyEndAllowThreads(__tstate); | |
12467 | if (PyErr_Occurred()) SWIG_fail; | |
12468 | } | |
2f4c0a16 | 12469 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12470 | return resultobj; |
12471 | fail: | |
12472 | return NULL; | |
12473 | } | |
12474 | ||
12475 | ||
12476 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12477 | PyObject *resultobj; | |
12478 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12479 | int arg2 ; | |
12480 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12481 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12482 | char *kwnames[] = { |
12483 | (char *) "self",(char *) "minValue", NULL | |
12484 | }; | |
12485 | ||
8edf1c75 | 12486 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12487 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12488 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12489 | arg2 = (int) SWIG_AsInt(obj1); | |
12490 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12491 | { |
12492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12493 | (arg1)->SetMin(arg2); | |
12494 | ||
12495 | wxPyEndAllowThreads(__tstate); | |
12496 | if (PyErr_Occurred()) SWIG_fail; | |
12497 | } | |
12498 | Py_INCREF(Py_None); resultobj = Py_None; | |
12499 | return resultobj; | |
12500 | fail: | |
12501 | return NULL; | |
12502 | } | |
12503 | ||
12504 | ||
12505 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12506 | PyObject *resultobj; | |
12507 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12508 | int arg2 ; | |
12509 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12511 | char *kwnames[] = { |
12512 | (char *) "self",(char *) "maxValue", NULL | |
12513 | }; | |
12514 | ||
8edf1c75 | 12515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12518 | arg2 = (int) SWIG_AsInt(obj1); | |
12519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12520 | { |
12521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12522 | (arg1)->SetMax(arg2); | |
12523 | ||
12524 | wxPyEndAllowThreads(__tstate); | |
12525 | if (PyErr_Occurred()) SWIG_fail; | |
12526 | } | |
12527 | Py_INCREF(Py_None); resultobj = Py_None; | |
12528 | return resultobj; | |
12529 | fail: | |
12530 | return NULL; | |
12531 | } | |
12532 | ||
12533 | ||
12534 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12535 | PyObject *resultobj; | |
12536 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12537 | int arg2 ; | |
12538 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12539 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12540 | char *kwnames[] = { |
12541 | (char *) "self",(char *) "lineSize", NULL | |
12542 | }; | |
12543 | ||
8edf1c75 | 12544 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12545 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12546 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12547 | arg2 = (int) SWIG_AsInt(obj1); | |
12548 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12549 | { |
12550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12551 | (arg1)->SetLineSize(arg2); | |
12552 | ||
12553 | wxPyEndAllowThreads(__tstate); | |
12554 | if (PyErr_Occurred()) SWIG_fail; | |
12555 | } | |
12556 | Py_INCREF(Py_None); resultobj = Py_None; | |
12557 | return resultobj; | |
12558 | fail: | |
12559 | return NULL; | |
12560 | } | |
12561 | ||
12562 | ||
12563 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12564 | PyObject *resultobj; | |
12565 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12566 | int arg2 ; | |
12567 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12568 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12569 | char *kwnames[] = { |
12570 | (char *) "self",(char *) "pageSize", NULL | |
12571 | }; | |
12572 | ||
8edf1c75 | 12573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12576 | arg2 = (int) SWIG_AsInt(obj1); | |
12577 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12578 | { |
12579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12580 | (arg1)->SetPageSize(arg2); | |
12581 | ||
12582 | wxPyEndAllowThreads(__tstate); | |
12583 | if (PyErr_Occurred()) SWIG_fail; | |
12584 | } | |
12585 | Py_INCREF(Py_None); resultobj = Py_None; | |
12586 | return resultobj; | |
12587 | fail: | |
12588 | return NULL; | |
12589 | } | |
12590 | ||
12591 | ||
12592 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12593 | PyObject *resultobj; | |
12594 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12595 | int result; | |
12596 | PyObject * obj0 = 0 ; | |
12597 | char *kwnames[] = { | |
12598 | (char *) "self", NULL | |
12599 | }; | |
12600 | ||
12601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12604 | { |
12605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12606 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
12607 | ||
12608 | wxPyEndAllowThreads(__tstate); | |
12609 | if (PyErr_Occurred()) SWIG_fail; | |
12610 | } | |
2f4c0a16 | 12611 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12612 | return resultobj; |
12613 | fail: | |
12614 | return NULL; | |
12615 | } | |
12616 | ||
12617 | ||
12618 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12619 | PyObject *resultobj; | |
12620 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12621 | int result; | |
12622 | PyObject * obj0 = 0 ; | |
12623 | char *kwnames[] = { | |
12624 | (char *) "self", NULL | |
12625 | }; | |
12626 | ||
12627 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12628 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12629 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12630 | { |
12631 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12632 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
12633 | ||
12634 | wxPyEndAllowThreads(__tstate); | |
12635 | if (PyErr_Occurred()) SWIG_fail; | |
12636 | } | |
2f4c0a16 | 12637 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12638 | return resultobj; |
12639 | fail: | |
12640 | return NULL; | |
12641 | } | |
12642 | ||
12643 | ||
12644 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12645 | PyObject *resultobj; | |
12646 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12647 | int arg2 ; | |
12648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12650 | char *kwnames[] = { |
12651 | (char *) "self",(char *) "lenPixels", NULL | |
12652 | }; | |
12653 | ||
8edf1c75 | 12654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12657 | arg2 = (int) SWIG_AsInt(obj1); | |
12658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12659 | { |
12660 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12661 | (arg1)->SetThumbLength(arg2); | |
12662 | ||
12663 | wxPyEndAllowThreads(__tstate); | |
12664 | if (PyErr_Occurred()) SWIG_fail; | |
12665 | } | |
12666 | Py_INCREF(Py_None); resultobj = Py_None; | |
12667 | return resultobj; | |
12668 | fail: | |
12669 | return NULL; | |
12670 | } | |
12671 | ||
12672 | ||
12673 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12674 | PyObject *resultobj; | |
12675 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12676 | int result; | |
12677 | PyObject * obj0 = 0 ; | |
12678 | char *kwnames[] = { | |
12679 | (char *) "self", NULL | |
12680 | }; | |
12681 | ||
12682 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12683 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12684 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12685 | { |
12686 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12687 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
12688 | ||
12689 | wxPyEndAllowThreads(__tstate); | |
12690 | if (PyErr_Occurred()) SWIG_fail; | |
12691 | } | |
2f4c0a16 | 12692 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12693 | return resultobj; |
12694 | fail: | |
12695 | return NULL; | |
12696 | } | |
12697 | ||
12698 | ||
12699 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12700 | PyObject *resultobj; | |
12701 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12702 | int arg2 ; | |
8edf1c75 | 12703 | int arg3 = (int) 1 ; |
d14a1e28 | 12704 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
12705 | PyObject * obj1 = 0 ; |
12706 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12707 | char *kwnames[] = { |
12708 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
12709 | }; | |
12710 | ||
8edf1c75 | 12711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12714 | arg2 = (int) SWIG_AsInt(obj1); | |
12715 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12716 | if (obj2) { |
2f4c0a16 RD |
12717 | arg3 = (int) SWIG_AsInt(obj2); |
12718 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 12719 | } |
d14a1e28 RD |
12720 | { |
12721 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12722 | (arg1)->SetTickFreq(arg2,arg3); | |
12723 | ||
12724 | wxPyEndAllowThreads(__tstate); | |
12725 | if (PyErr_Occurred()) SWIG_fail; | |
12726 | } | |
12727 | Py_INCREF(Py_None); resultobj = Py_None; | |
12728 | return resultobj; | |
12729 | fail: | |
12730 | return NULL; | |
12731 | } | |
12732 | ||
12733 | ||
12734 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12735 | PyObject *resultobj; | |
12736 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12737 | int result; | |
12738 | PyObject * obj0 = 0 ; | |
12739 | char *kwnames[] = { | |
12740 | (char *) "self", NULL | |
12741 | }; | |
12742 | ||
12743 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12744 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12746 | { |
12747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12748 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
12749 | ||
12750 | wxPyEndAllowThreads(__tstate); | |
12751 | if (PyErr_Occurred()) SWIG_fail; | |
12752 | } | |
2f4c0a16 | 12753 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12754 | return resultobj; |
12755 | fail: | |
12756 | return NULL; | |
12757 | } | |
12758 | ||
12759 | ||
12760 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12761 | PyObject *resultobj; | |
12762 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12763 | PyObject * obj0 = 0 ; | |
12764 | char *kwnames[] = { | |
12765 | (char *) "self", NULL | |
12766 | }; | |
12767 | ||
12768 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12769 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12771 | { |
12772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12773 | (arg1)->ClearTicks(); | |
12774 | ||
12775 | wxPyEndAllowThreads(__tstate); | |
12776 | if (PyErr_Occurred()) SWIG_fail; | |
12777 | } | |
12778 | Py_INCREF(Py_None); resultobj = Py_None; | |
12779 | return resultobj; | |
12780 | fail: | |
12781 | return NULL; | |
12782 | } | |
12783 | ||
12784 | ||
12785 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12786 | PyObject *resultobj; | |
12787 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12788 | int arg2 ; | |
12789 | PyObject * obj0 = 0 ; | |
8edf1c75 | 12790 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12791 | char *kwnames[] = { |
12792 | (char *) "self",(char *) "tickPos", NULL | |
12793 | }; | |
12794 | ||
8edf1c75 | 12795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
12796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12798 | arg2 = (int) SWIG_AsInt(obj1); | |
12799 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12800 | { |
12801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12802 | (arg1)->SetTick(arg2); | |
12803 | ||
12804 | wxPyEndAllowThreads(__tstate); | |
12805 | if (PyErr_Occurred()) SWIG_fail; | |
12806 | } | |
12807 | Py_INCREF(Py_None); resultobj = Py_None; | |
12808 | return resultobj; | |
12809 | fail: | |
12810 | return NULL; | |
12811 | } | |
12812 | ||
12813 | ||
12814 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12815 | PyObject *resultobj; | |
12816 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12817 | PyObject * obj0 = 0 ; | |
12818 | char *kwnames[] = { | |
12819 | (char *) "self", NULL | |
12820 | }; | |
12821 | ||
12822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12825 | { |
12826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12827 | (arg1)->ClearSel(); | |
12828 | ||
12829 | wxPyEndAllowThreads(__tstate); | |
12830 | if (PyErr_Occurred()) SWIG_fail; | |
12831 | } | |
12832 | Py_INCREF(Py_None); resultobj = Py_None; | |
12833 | return resultobj; | |
12834 | fail: | |
12835 | return NULL; | |
12836 | } | |
12837 | ||
12838 | ||
12839 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12840 | PyObject *resultobj; | |
12841 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12842 | int result; | |
12843 | PyObject * obj0 = 0 ; | |
12844 | char *kwnames[] = { | |
12845 | (char *) "self", NULL | |
12846 | }; | |
12847 | ||
12848 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12849 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12850 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12851 | { |
12852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12853 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
12854 | ||
12855 | wxPyEndAllowThreads(__tstate); | |
12856 | if (PyErr_Occurred()) SWIG_fail; | |
12857 | } | |
2f4c0a16 | 12858 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12859 | return resultobj; |
12860 | fail: | |
12861 | return NULL; | |
12862 | } | |
12863 | ||
12864 | ||
12865 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12866 | PyObject *resultobj; | |
12867 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12868 | int result; | |
12869 | PyObject * obj0 = 0 ; | |
12870 | char *kwnames[] = { | |
12871 | (char *) "self", NULL | |
12872 | }; | |
12873 | ||
12874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
12875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12877 | { |
12878 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12879 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
12880 | ||
12881 | wxPyEndAllowThreads(__tstate); | |
12882 | if (PyErr_Occurred()) SWIG_fail; | |
12883 | } | |
2f4c0a16 | 12884 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12885 | return resultobj; |
12886 | fail: | |
12887 | return NULL; | |
12888 | } | |
12889 | ||
12890 | ||
12891 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12892 | PyObject *resultobj; | |
12893 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12894 | int arg2 ; | |
12895 | int arg3 ; | |
12896 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
12897 | PyObject * obj1 = 0 ; |
12898 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
12899 | char *kwnames[] = { |
12900 | (char *) "self",(char *) "min",(char *) "max", NULL | |
12901 | }; | |
12902 | ||
8edf1c75 | 12903 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
12904 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12905 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12906 | arg2 = (int) SWIG_AsInt(obj1); | |
12907 | if (PyErr_Occurred()) SWIG_fail; | |
12908 | arg3 = (int) SWIG_AsInt(obj2); | |
12909 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12910 | { |
12911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12912 | (arg1)->SetSelection(arg2,arg3); | |
12913 | ||
12914 | wxPyEndAllowThreads(__tstate); | |
12915 | if (PyErr_Occurred()) SWIG_fail; | |
12916 | } | |
12917 | Py_INCREF(Py_None); resultobj = Py_None; | |
12918 | return resultobj; | |
12919 | fail: | |
12920 | return NULL; | |
12921 | } | |
12922 | ||
12923 | ||
12924 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { | |
12925 | PyObject *obj; | |
12926 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12927 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
12928 | Py_INCREF(obj); | |
12929 | return Py_BuildValue((char *)""); | |
12930 | } | |
2f4c0a16 | 12931 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
d03fd34d RD |
12932 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); |
12933 | return 1; | |
12934 | } | |
12935 | ||
12936 | ||
12937 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
12938 | PyObject *pyobj; | |
12939 | ||
12940 | { | |
12941 | #if wxUSE_UNICODE | |
12942 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12943 | #else | |
12944 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
12945 | #endif | |
12946 | } | |
12947 | return pyobj; | |
12948 | } | |
12949 | ||
12950 | ||
d14a1e28 RD |
12951 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
12952 | PyObject *resultobj; | |
12953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 12954 | int arg2 ; |
d14a1e28 RD |
12955 | wxString *arg3 = 0 ; |
12956 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
12957 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12958 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12959 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12960 | long arg6 = (long) 0 ; | |
12961 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12962 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12963 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
12964 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12965 | wxToggleButton *result; | |
423f194a | 12966 | bool temp3 = False ; |
d14a1e28 RD |
12967 | wxPoint temp4 ; |
12968 | wxSize temp5 ; | |
423f194a | 12969 | bool temp8 = False ; |
d14a1e28 | 12970 | PyObject * obj0 = 0 ; |
8edf1c75 | 12971 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12972 | PyObject * obj2 = 0 ; |
12973 | PyObject * obj3 = 0 ; | |
12974 | PyObject * obj4 = 0 ; | |
8edf1c75 | 12975 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12976 | PyObject * obj6 = 0 ; |
12977 | PyObject * obj7 = 0 ; | |
12978 | char *kwnames[] = { | |
12979 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12980 | }; | |
12981 | ||
8edf1c75 | 12982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
12983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12985 | arg2 = (int) SWIG_AsInt(obj1); | |
12986 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12987 | { |
12988 | arg3 = wxString_in_helper(obj2); | |
12989 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 12990 | temp3 = True; |
d14a1e28 RD |
12991 | } |
12992 | if (obj3) { | |
12993 | { | |
12994 | arg4 = &temp4; | |
12995 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12996 | } | |
12997 | } | |
12998 | if (obj4) { | |
12999 | { | |
13000 | arg5 = &temp5; | |
13001 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13002 | } | |
13003 | } | |
8edf1c75 | 13004 | if (obj5) { |
2f4c0a16 RD |
13005 | arg6 = (long) SWIG_AsLong(obj5); |
13006 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13007 | } |
d14a1e28 | 13008 | if (obj6) { |
2f4c0a16 RD |
13009 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13011 | SWIG_fail; | |
d14a1e28 | 13012 | if (arg7 == NULL) { |
2f4c0a16 RD |
13013 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13014 | SWIG_fail; | |
d14a1e28 RD |
13015 | } |
13016 | } | |
13017 | if (obj7) { | |
13018 | { | |
13019 | arg8 = wxString_in_helper(obj7); | |
13020 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 13021 | temp8 = True; |
d14a1e28 RD |
13022 | } |
13023 | } | |
13024 | { | |
13025 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13026 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13027 | ||
13028 | wxPyEndAllowThreads(__tstate); | |
13029 | if (PyErr_Occurred()) SWIG_fail; | |
13030 | } | |
2f4c0a16 | 13031 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13032 | { |
13033 | if (temp3) | |
13034 | delete arg3; | |
13035 | } | |
13036 | { | |
13037 | if (temp8) | |
13038 | delete arg8; | |
13039 | } | |
13040 | return resultobj; | |
13041 | fail: | |
13042 | { | |
13043 | if (temp3) | |
13044 | delete arg3; | |
13045 | } | |
13046 | { | |
13047 | if (temp8) | |
13048 | delete arg8; | |
13049 | } | |
13050 | return NULL; | |
13051 | } | |
13052 | ||
13053 | ||
13054 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13055 | PyObject *resultobj; | |
13056 | wxToggleButton *result; | |
13057 | char *kwnames[] = { | |
13058 | NULL | |
13059 | }; | |
13060 | ||
13061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13062 | { | |
13063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13064 | result = (wxToggleButton *)new wxToggleButton(); | |
13065 | ||
13066 | wxPyEndAllowThreads(__tstate); | |
13067 | if (PyErr_Occurred()) SWIG_fail; | |
13068 | } | |
2f4c0a16 | 13069 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13070 | return resultobj; |
13071 | fail: | |
13072 | return NULL; | |
13073 | } | |
13074 | ||
13075 | ||
13076 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13077 | PyObject *resultobj; | |
13078 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13079 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 13080 | int arg3 ; |
d14a1e28 RD |
13081 | wxString *arg4 = 0 ; |
13082 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
13083 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13084 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13085 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13086 | long arg7 = (long) 0 ; | |
13087 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13088 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13089 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13090 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13091 | bool result; | |
423f194a | 13092 | bool temp4 = False ; |
d14a1e28 RD |
13093 | wxPoint temp5 ; |
13094 | wxSize temp6 ; | |
423f194a | 13095 | bool temp9 = False ; |
d14a1e28 RD |
13096 | PyObject * obj0 = 0 ; |
13097 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13098 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13099 | PyObject * obj3 = 0 ; |
13100 | PyObject * obj4 = 0 ; | |
13101 | PyObject * obj5 = 0 ; | |
8edf1c75 | 13102 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13103 | PyObject * obj7 = 0 ; |
13104 | PyObject * obj8 = 0 ; | |
13105 | char *kwnames[] = { | |
13106 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13107 | }; | |
13108 | ||
8edf1c75 | 13109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
13110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13112 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13113 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13114 | arg3 = (int) SWIG_AsInt(obj2); | |
13115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13116 | { |
13117 | arg4 = wxString_in_helper(obj3); | |
13118 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13119 | temp4 = True; |
d14a1e28 RD |
13120 | } |
13121 | if (obj4) { | |
13122 | { | |
13123 | arg5 = &temp5; | |
13124 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13125 | } | |
13126 | } | |
13127 | if (obj5) { | |
13128 | { | |
13129 | arg6 = &temp6; | |
13130 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13131 | } | |
13132 | } | |
8edf1c75 | 13133 | if (obj6) { |
2f4c0a16 RD |
13134 | arg7 = (long) SWIG_AsLong(obj6); |
13135 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 13136 | } |
d14a1e28 | 13137 | if (obj7) { |
2f4c0a16 RD |
13138 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13140 | SWIG_fail; | |
d14a1e28 | 13141 | if (arg8 == NULL) { |
2f4c0a16 RD |
13142 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13143 | SWIG_fail; | |
d14a1e28 RD |
13144 | } |
13145 | } | |
13146 | if (obj8) { | |
13147 | { | |
13148 | arg9 = wxString_in_helper(obj8); | |
13149 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 13150 | temp9 = True; |
d14a1e28 RD |
13151 | } |
13152 | } | |
13153 | { | |
13154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13155 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13156 | ||
13157 | wxPyEndAllowThreads(__tstate); | |
13158 | if (PyErr_Occurred()) SWIG_fail; | |
13159 | } | |
4f89f6a3 RD |
13160 | { |
13161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13162 | } | |
d14a1e28 RD |
13163 | { |
13164 | if (temp4) | |
13165 | delete arg4; | |
13166 | } | |
13167 | { | |
13168 | if (temp9) | |
13169 | delete arg9; | |
13170 | } | |
13171 | return resultobj; | |
13172 | fail: | |
13173 | { | |
13174 | if (temp4) | |
13175 | delete arg4; | |
13176 | } | |
13177 | { | |
13178 | if (temp9) | |
13179 | delete arg9; | |
13180 | } | |
13181 | return NULL; | |
13182 | } | |
13183 | ||
13184 | ||
13185 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13186 | PyObject *resultobj; | |
13187 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13188 | bool arg2 ; | |
13189 | PyObject * obj0 = 0 ; | |
13190 | PyObject * obj1 = 0 ; | |
13191 | char *kwnames[] = { | |
13192 | (char *) "self",(char *) "value", NULL | |
13193 | }; | |
13194 | ||
13195 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13196 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13197 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13198 | arg2 = (bool) SWIG_AsBool(obj1); | |
13199 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13200 | { |
13201 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13202 | (arg1)->SetValue(arg2); | |
13203 | ||
13204 | wxPyEndAllowThreads(__tstate); | |
13205 | if (PyErr_Occurred()) SWIG_fail; | |
13206 | } | |
13207 | Py_INCREF(Py_None); resultobj = Py_None; | |
13208 | return resultobj; | |
13209 | fail: | |
13210 | return NULL; | |
13211 | } | |
13212 | ||
13213 | ||
13214 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13215 | PyObject *resultobj; | |
13216 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13217 | bool result; | |
13218 | PyObject * obj0 = 0 ; | |
13219 | char *kwnames[] = { | |
13220 | (char *) "self", NULL | |
13221 | }; | |
13222 | ||
13223 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13224 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13225 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13226 | { |
13227 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13228 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
13229 | ||
13230 | wxPyEndAllowThreads(__tstate); | |
13231 | if (PyErr_Occurred()) SWIG_fail; | |
13232 | } | |
4f89f6a3 RD |
13233 | { |
13234 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13235 | } | |
d14a1e28 RD |
13236 | return resultobj; |
13237 | fail: | |
13238 | return NULL; | |
13239 | } | |
13240 | ||
13241 | ||
13242 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13243 | PyObject *resultobj; | |
13244 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13245 | wxString *arg2 = 0 ; | |
423f194a | 13246 | bool temp2 = False ; |
d14a1e28 RD |
13247 | PyObject * obj0 = 0 ; |
13248 | PyObject * obj1 = 0 ; | |
13249 | char *kwnames[] = { | |
13250 | (char *) "self",(char *) "label", NULL | |
13251 | }; | |
13252 | ||
13253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13256 | { |
13257 | arg2 = wxString_in_helper(obj1); | |
13258 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 13259 | temp2 = True; |
d14a1e28 RD |
13260 | } |
13261 | { | |
13262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13263 | (arg1)->SetLabel((wxString const &)*arg2); | |
13264 | ||
13265 | wxPyEndAllowThreads(__tstate); | |
13266 | if (PyErr_Occurred()) SWIG_fail; | |
13267 | } | |
13268 | Py_INCREF(Py_None); resultobj = Py_None; | |
13269 | { | |
13270 | if (temp2) | |
13271 | delete arg2; | |
13272 | } | |
13273 | return resultobj; | |
13274 | fail: | |
13275 | { | |
13276 | if (temp2) | |
13277 | delete arg2; | |
13278 | } | |
13279 | return NULL; | |
13280 | } | |
13281 | ||
13282 | ||
13283 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { | |
13284 | PyObject *obj; | |
13285 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13286 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
13287 | Py_INCREF(obj); | |
13288 | return Py_BuildValue((char *)""); | |
13289 | } | |
2f4c0a16 | 13290 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
d03fd34d RD |
13291 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); |
13292 | return 1; | |
13293 | } | |
13294 | ||
13295 | ||
13296 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
13297 | PyObject *pyobj; | |
13298 | ||
13299 | { | |
13300 | #if wxUSE_UNICODE | |
13301 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13302 | #else | |
13303 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
13304 | #endif | |
13305 | } | |
13306 | return pyobj; | |
13307 | } | |
13308 | ||
13309 | ||
d14a1e28 RD |
13310 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
13311 | PyObject *resultobj; | |
13312 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13313 | size_t result; | |
13314 | PyObject * obj0 = 0 ; | |
13315 | char *kwnames[] = { | |
13316 | (char *) "self", NULL | |
13317 | }; | |
13318 | ||
13319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13322 | { |
13323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13324 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
13325 | ||
13326 | wxPyEndAllowThreads(__tstate); | |
13327 | if (PyErr_Occurred()) SWIG_fail; | |
13328 | } | |
2f4c0a16 | 13329 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
13330 | return resultobj; |
13331 | fail: | |
13332 | return NULL; | |
13333 | } | |
13334 | ||
13335 | ||
13336 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13337 | PyObject *resultobj; | |
13338 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13339 | size_t arg2 ; | |
13340 | wxWindow *result; | |
13341 | PyObject * obj0 = 0 ; | |
13342 | PyObject * obj1 = 0 ; | |
13343 | char *kwnames[] = { | |
13344 | (char *) "self",(char *) "n", NULL | |
13345 | }; | |
13346 | ||
13347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13350 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13352 | { |
13353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13354 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
13355 | ||
13356 | wxPyEndAllowThreads(__tstate); | |
13357 | if (PyErr_Occurred()) SWIG_fail; | |
13358 | } | |
13359 | { | |
13360 | resultobj = wxPyMake_wxObject(result); | |
13361 | } | |
13362 | return resultobj; | |
13363 | fail: | |
13364 | return NULL; | |
13365 | } | |
13366 | ||
13367 | ||
13368 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13369 | PyObject *resultobj; | |
13370 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13371 | int result; | |
13372 | PyObject * obj0 = 0 ; | |
13373 | char *kwnames[] = { | |
13374 | (char *) "self", NULL | |
13375 | }; | |
13376 | ||
13377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13380 | { |
13381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13382 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
13383 | ||
13384 | wxPyEndAllowThreads(__tstate); | |
13385 | if (PyErr_Occurred()) SWIG_fail; | |
13386 | } | |
2f4c0a16 | 13387 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13388 | return resultobj; |
13389 | fail: | |
13390 | return NULL; | |
13391 | } | |
13392 | ||
13393 | ||
13394 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13395 | PyObject *resultobj; | |
13396 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13397 | size_t arg2 ; | |
13398 | wxString *arg3 = 0 ; | |
13399 | bool result; | |
423f194a | 13400 | bool temp3 = False ; |
d14a1e28 RD |
13401 | PyObject * obj0 = 0 ; |
13402 | PyObject * obj1 = 0 ; | |
13403 | PyObject * obj2 = 0 ; | |
13404 | char *kwnames[] = { | |
13405 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
13406 | }; | |
13407 | ||
13408 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
13409 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13410 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13411 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13412 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13413 | { |
13414 | arg3 = wxString_in_helper(obj2); | |
13415 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13416 | temp3 = True; |
d14a1e28 RD |
13417 | } |
13418 | { | |
13419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13420 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
13421 | ||
13422 | wxPyEndAllowThreads(__tstate); | |
13423 | if (PyErr_Occurred()) SWIG_fail; | |
13424 | } | |
4f89f6a3 RD |
13425 | { |
13426 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13427 | } | |
d14a1e28 RD |
13428 | { |
13429 | if (temp3) | |
13430 | delete arg3; | |
13431 | } | |
13432 | return resultobj; | |
13433 | fail: | |
13434 | { | |
13435 | if (temp3) | |
13436 | delete arg3; | |
13437 | } | |
13438 | return NULL; | |
13439 | } | |
13440 | ||
13441 | ||
13442 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13443 | PyObject *resultobj; | |
13444 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13445 | size_t arg2 ; | |
13446 | wxString result; | |
13447 | PyObject * obj0 = 0 ; | |
13448 | PyObject * obj1 = 0 ; | |
13449 | char *kwnames[] = { | |
13450 | (char *) "self",(char *) "n", NULL | |
13451 | }; | |
13452 | ||
13453 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13454 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13455 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13456 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13457 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13458 | { |
13459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13460 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
13461 | ||
13462 | wxPyEndAllowThreads(__tstate); | |
13463 | if (PyErr_Occurred()) SWIG_fail; | |
13464 | } | |
13465 | { | |
13466 | #if wxUSE_UNICODE | |
13467 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
13468 | #else | |
13469 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
13470 | #endif | |
13471 | } | |
13472 | return resultobj; | |
13473 | fail: | |
13474 | return NULL; | |
13475 | } | |
13476 | ||
13477 | ||
13478 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13479 | PyObject *resultobj; | |
13480 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13481 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13482 | PyObject * obj0 = 0 ; | |
13483 | PyObject * obj1 = 0 ; | |
13484 | char *kwnames[] = { | |
13485 | (char *) "self",(char *) "imageList", NULL | |
13486 | }; | |
13487 | ||
13488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13491 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13493 | { |
13494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13495 | (arg1)->SetImageList(arg2); | |
13496 | ||
13497 | wxPyEndAllowThreads(__tstate); | |
13498 | if (PyErr_Occurred()) SWIG_fail; | |
13499 | } | |
13500 | Py_INCREF(Py_None); resultobj = Py_None; | |
13501 | return resultobj; | |
13502 | fail: | |
13503 | return NULL; | |
13504 | } | |
13505 | ||
13506 | ||
13507 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13508 | PyObject *resultobj; | |
13509 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13510 | wxImageList *arg2 = (wxImageList *) 0 ; | |
13511 | PyObject * obj0 = 0 ; | |
13512 | PyObject * obj1 = 0 ; | |
13513 | char *kwnames[] = { | |
13514 | (char *) "self",(char *) "imageList", NULL | |
13515 | }; | |
13516 | ||
13517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13518 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13519 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13520 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
13521 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
13522 | { |
13523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13524 | (arg1)->AssignImageList(arg2); | |
13525 | ||
13526 | wxPyEndAllowThreads(__tstate); | |
13527 | if (PyErr_Occurred()) SWIG_fail; | |
13528 | } | |
13529 | Py_INCREF(Py_None); resultobj = Py_None; | |
13530 | return resultobj; | |
13531 | fail: | |
13532 | return NULL; | |
13533 | } | |
13534 | ||
13535 | ||
13536 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13537 | PyObject *resultobj; | |
13538 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13539 | wxImageList *result; | |
13540 | PyObject * obj0 = 0 ; | |
13541 | char *kwnames[] = { | |
13542 | (char *) "self", NULL | |
13543 | }; | |
13544 | ||
13545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13548 | { |
13549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13550 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
13551 | ||
13552 | wxPyEndAllowThreads(__tstate); | |
13553 | if (PyErr_Occurred()) SWIG_fail; | |
13554 | } | |
13555 | { | |
13556 | resultobj = wxPyMake_wxObject(result); | |
13557 | } | |
13558 | return resultobj; | |
13559 | fail: | |
13560 | return NULL; | |
13561 | } | |
13562 | ||
13563 | ||
13564 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13565 | PyObject *resultobj; | |
13566 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13567 | size_t arg2 ; | |
13568 | int result; | |
13569 | PyObject * obj0 = 0 ; | |
13570 | PyObject * obj1 = 0 ; | |
13571 | char *kwnames[] = { | |
13572 | (char *) "self",(char *) "n", NULL | |
13573 | }; | |
13574 | ||
13575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13578 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13579 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13580 | { |
13581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13582 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
13583 | ||
13584 | wxPyEndAllowThreads(__tstate); | |
13585 | if (PyErr_Occurred()) SWIG_fail; | |
13586 | } | |
2f4c0a16 | 13587 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13588 | return resultobj; |
13589 | fail: | |
13590 | return NULL; | |
13591 | } | |
13592 | ||
13593 | ||
13594 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13595 | PyObject *resultobj; | |
13596 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13597 | size_t arg2 ; | |
13598 | int arg3 ; | |
13599 | bool result; | |
13600 | PyObject * obj0 = 0 ; | |
13601 | PyObject * obj1 = 0 ; | |
8edf1c75 | 13602 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13603 | char *kwnames[] = { |
13604 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
13605 | }; | |
13606 | ||
8edf1c75 | 13607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
13608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13610 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13611 | if (PyErr_Occurred()) SWIG_fail; | |
13612 | arg3 = (int) SWIG_AsInt(obj2); | |
13613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13614 | { |
13615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13616 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
13617 | ||
13618 | wxPyEndAllowThreads(__tstate); | |
13619 | if (PyErr_Occurred()) SWIG_fail; | |
13620 | } | |
4f89f6a3 RD |
13621 | { |
13622 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13623 | } | |
d14a1e28 RD |
13624 | return resultobj; |
13625 | fail: | |
13626 | return NULL; | |
13627 | } | |
13628 | ||
13629 | ||
13630 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13631 | PyObject *resultobj; | |
13632 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13633 | wxSize *arg2 = 0 ; | |
13634 | wxSize temp2 ; | |
13635 | PyObject * obj0 = 0 ; | |
13636 | PyObject * obj1 = 0 ; | |
13637 | char *kwnames[] = { | |
13638 | (char *) "self",(char *) "size", NULL | |
13639 | }; | |
13640 | ||
13641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13644 | { |
13645 | arg2 = &temp2; | |
13646 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13647 | } | |
13648 | { | |
13649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13650 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
13651 | ||
13652 | wxPyEndAllowThreads(__tstate); | |
13653 | if (PyErr_Occurred()) SWIG_fail; | |
13654 | } | |
13655 | Py_INCREF(Py_None); resultobj = Py_None; | |
13656 | return resultobj; | |
13657 | fail: | |
13658 | return NULL; | |
13659 | } | |
13660 | ||
13661 | ||
13662 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13663 | PyObject *resultobj; | |
13664 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13665 | wxSize *arg2 = 0 ; | |
13666 | wxSize result; | |
13667 | wxSize temp2 ; | |
13668 | PyObject * obj0 = 0 ; | |
13669 | PyObject * obj1 = 0 ; | |
13670 | char *kwnames[] = { | |
13671 | (char *) "self",(char *) "sizePage", NULL | |
13672 | }; | |
13673 | ||
13674 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13675 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13676 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13677 | { |
13678 | arg2 = &temp2; | |
13679 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
13680 | } | |
13681 | { | |
13682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13683 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
13684 | ||
13685 | wxPyEndAllowThreads(__tstate); | |
13686 | if (PyErr_Occurred()) SWIG_fail; | |
13687 | } | |
13688 | { | |
13689 | wxSize * resultptr; | |
13690 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 13691 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
13692 | } |
13693 | return resultobj; | |
13694 | fail: | |
13695 | return NULL; | |
13696 | } | |
13697 | ||
13698 | ||
13699 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13700 | PyObject *resultobj; | |
13701 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13702 | size_t arg2 ; | |
13703 | bool result; | |
13704 | PyObject * obj0 = 0 ; | |
13705 | PyObject * obj1 = 0 ; | |
13706 | char *kwnames[] = { | |
13707 | (char *) "self",(char *) "n", NULL | |
13708 | }; | |
13709 | ||
13710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13713 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13714 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13715 | { |
13716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13717 | result = (bool)(arg1)->DeletePage(arg2); | |
13718 | ||
13719 | wxPyEndAllowThreads(__tstate); | |
13720 | if (PyErr_Occurred()) SWIG_fail; | |
13721 | } | |
4f89f6a3 RD |
13722 | { |
13723 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13724 | } | |
d14a1e28 RD |
13725 | return resultobj; |
13726 | fail: | |
13727 | return NULL; | |
13728 | } | |
13729 | ||
13730 | ||
13731 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13732 | PyObject *resultobj; | |
13733 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13734 | size_t arg2 ; | |
13735 | bool result; | |
13736 | PyObject * obj0 = 0 ; | |
13737 | PyObject * obj1 = 0 ; | |
13738 | char *kwnames[] = { | |
13739 | (char *) "self",(char *) "n", NULL | |
13740 | }; | |
13741 | ||
13742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13745 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13746 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13747 | { |
13748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13749 | result = (bool)(arg1)->RemovePage(arg2); | |
13750 | ||
13751 | wxPyEndAllowThreads(__tstate); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
4f89f6a3 RD |
13754 | { |
13755 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13756 | } | |
d14a1e28 RD |
13757 | return resultobj; |
13758 | fail: | |
13759 | return NULL; | |
13760 | } | |
13761 | ||
13762 | ||
13763 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13764 | PyObject *resultobj; | |
13765 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13766 | bool result; | |
13767 | PyObject * obj0 = 0 ; | |
13768 | char *kwnames[] = { | |
13769 | (char *) "self", NULL | |
13770 | }; | |
13771 | ||
13772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
13773 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13774 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13775 | { |
13776 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13777 | result = (bool)(arg1)->DeleteAllPages(); | |
13778 | ||
13779 | wxPyEndAllowThreads(__tstate); | |
13780 | if (PyErr_Occurred()) SWIG_fail; | |
13781 | } | |
4f89f6a3 RD |
13782 | { |
13783 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13784 | } | |
d14a1e28 RD |
13785 | return resultobj; |
13786 | fail: | |
13787 | return NULL; | |
13788 | } | |
13789 | ||
13790 | ||
13791 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13792 | PyObject *resultobj; | |
13793 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13794 | wxWindow *arg2 = (wxWindow *) 0 ; | |
13795 | wxString *arg3 = 0 ; | |
423f194a | 13796 | bool arg4 = (bool) False ; |
d14a1e28 RD |
13797 | int arg5 = (int) -1 ; |
13798 | bool result; | |
423f194a | 13799 | bool temp3 = False ; |
d14a1e28 RD |
13800 | PyObject * obj0 = 0 ; |
13801 | PyObject * obj1 = 0 ; | |
13802 | PyObject * obj2 = 0 ; | |
13803 | PyObject * obj3 = 0 ; | |
8edf1c75 | 13804 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
13805 | char *kwnames[] = { |
13806 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13807 | }; | |
13808 | ||
8edf1c75 | 13809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
13810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13814 | { |
13815 | arg3 = wxString_in_helper(obj2); | |
13816 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 13817 | temp3 = True; |
d14a1e28 RD |
13818 | } |
13819 | if (obj3) { | |
2f4c0a16 RD |
13820 | arg4 = (bool) SWIG_AsBool(obj3); |
13821 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13822 | } |
13823 | if (obj4) { | |
2f4c0a16 RD |
13824 | arg5 = (int) SWIG_AsInt(obj4); |
13825 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13826 | } |
13827 | { | |
13828 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13829 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
13830 | ||
13831 | wxPyEndAllowThreads(__tstate); | |
13832 | if (PyErr_Occurred()) SWIG_fail; | |
13833 | } | |
4f89f6a3 RD |
13834 | { |
13835 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13836 | } | |
d14a1e28 RD |
13837 | { |
13838 | if (temp3) | |
13839 | delete arg3; | |
13840 | } | |
13841 | return resultobj; | |
13842 | fail: | |
13843 | { | |
13844 | if (temp3) | |
13845 | delete arg3; | |
13846 | } | |
13847 | return NULL; | |
13848 | } | |
13849 | ||
13850 | ||
13851 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13852 | PyObject *resultobj; | |
13853 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13854 | size_t arg2 ; | |
13855 | wxWindow *arg3 = (wxWindow *) 0 ; | |
13856 | wxString *arg4 = 0 ; | |
423f194a | 13857 | bool arg5 = (bool) False ; |
d14a1e28 RD |
13858 | int arg6 = (int) -1 ; |
13859 | bool result; | |
423f194a | 13860 | bool temp4 = False ; |
d14a1e28 RD |
13861 | PyObject * obj0 = 0 ; |
13862 | PyObject * obj1 = 0 ; | |
13863 | PyObject * obj2 = 0 ; | |
13864 | PyObject * obj3 = 0 ; | |
13865 | PyObject * obj4 = 0 ; | |
8edf1c75 | 13866 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13867 | char *kwnames[] = { |
13868 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
13869 | }; | |
13870 | ||
8edf1c75 | 13871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
13872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13874 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13875 | if (PyErr_Occurred()) SWIG_fail; | |
13876 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
13877 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13878 | { |
13879 | arg4 = wxString_in_helper(obj3); | |
13880 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 13881 | temp4 = True; |
d14a1e28 RD |
13882 | } |
13883 | if (obj4) { | |
2f4c0a16 RD |
13884 | arg5 = (bool) SWIG_AsBool(obj4); |
13885 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
13886 | } |
13887 | if (obj5) { | |
2f4c0a16 RD |
13888 | arg6 = (int) SWIG_AsInt(obj5); |
13889 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13890 | } |
13891 | { | |
13892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13893 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
13894 | ||
13895 | wxPyEndAllowThreads(__tstate); | |
13896 | if (PyErr_Occurred()) SWIG_fail; | |
13897 | } | |
4f89f6a3 RD |
13898 | { |
13899 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13900 | } | |
d14a1e28 RD |
13901 | { |
13902 | if (temp4) | |
13903 | delete arg4; | |
13904 | } | |
13905 | return resultobj; | |
13906 | fail: | |
13907 | { | |
13908 | if (temp4) | |
13909 | delete arg4; | |
13910 | } | |
13911 | return NULL; | |
13912 | } | |
13913 | ||
13914 | ||
13915 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13916 | PyObject *resultobj; | |
13917 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
13918 | size_t arg2 ; | |
13919 | int result; | |
13920 | PyObject * obj0 = 0 ; | |
13921 | PyObject * obj1 = 0 ; | |
13922 | char *kwnames[] = { | |
13923 | (char *) "self",(char *) "n", NULL | |
13924 | }; | |
13925 | ||
13926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13929 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
13930 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13931 | { |
13932 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13933 | result = (int)(arg1)->SetSelection(arg2); | |
13934 | ||
13935 | wxPyEndAllowThreads(__tstate); | |
13936 | if (PyErr_Occurred()) SWIG_fail; | |
13937 | } | |
2f4c0a16 | 13938 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13939 | return resultobj; |
13940 | fail: | |
13941 | return NULL; | |
13942 | } | |
13943 | ||
13944 | ||
13945 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13946 | PyObject *resultobj; | |
13947 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
423f194a | 13948 | bool arg2 = (bool) True ; |
d14a1e28 RD |
13949 | PyObject * obj0 = 0 ; |
13950 | PyObject * obj1 = 0 ; | |
13951 | char *kwnames[] = { | |
13952 | (char *) "self",(char *) "forward", NULL | |
13953 | }; | |
13954 | ||
13955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
13956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
13957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 13958 | if (obj1) { |
2f4c0a16 RD |
13959 | arg2 = (bool) SWIG_AsBool(obj1); |
13960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13961 | } |
13962 | { | |
13963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13964 | (arg1)->AdvanceSelection(arg2); | |
13965 | ||
13966 | wxPyEndAllowThreads(__tstate); | |
13967 | if (PyErr_Occurred()) SWIG_fail; | |
13968 | } | |
13969 | Py_INCREF(Py_None); resultobj = Py_None; | |
13970 | return resultobj; | |
13971 | fail: | |
13972 | return NULL; | |
13973 | } | |
13974 | ||
13975 | ||
13976 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { | |
13977 | PyObject *obj; | |
13978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13979 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
13980 | Py_INCREF(obj); | |
13981 | return Py_BuildValue((char *)""); | |
13982 | } | |
13983 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13984 | PyObject *resultobj; | |
13985 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
13986 | int arg2 = (int) 0 ; | |
13987 | int arg3 = (int) -1 ; | |
13988 | int arg4 = (int) -1 ; | |
13989 | wxBookCtrlEvent *result; | |
8edf1c75 RD |
13990 | PyObject * obj0 = 0 ; |
13991 | PyObject * obj1 = 0 ; | |
13992 | PyObject * obj2 = 0 ; | |
13993 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
13994 | char *kwnames[] = { |
13995 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
13996 | }; | |
13997 | ||
8edf1c75 RD |
13998 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
13999 | if (obj0) { | |
2f4c0a16 RD |
14000 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14001 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14002 | } |
14003 | if (obj1) { | |
2f4c0a16 RD |
14004 | arg2 = (int) SWIG_AsInt(obj1); |
14005 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14006 | } |
14007 | if (obj2) { | |
2f4c0a16 RD |
14008 | arg3 = (int) SWIG_AsInt(obj2); |
14009 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14010 | } |
14011 | if (obj3) { | |
2f4c0a16 RD |
14012 | arg4 = (int) SWIG_AsInt(obj3); |
14013 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14014 | } |
d14a1e28 RD |
14015 | { |
14016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14017 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14018 | ||
14019 | wxPyEndAllowThreads(__tstate); | |
14020 | if (PyErr_Occurred()) SWIG_fail; | |
14021 | } | |
2f4c0a16 | 14022 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14023 | return resultobj; |
14024 | fail: | |
14025 | return NULL; | |
14026 | } | |
14027 | ||
14028 | ||
14029 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14030 | PyObject *resultobj; | |
14031 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14032 | int result; | |
14033 | PyObject * obj0 = 0 ; | |
14034 | char *kwnames[] = { | |
14035 | (char *) "self", NULL | |
14036 | }; | |
14037 | ||
14038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14041 | { |
14042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14043 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14044 | ||
14045 | wxPyEndAllowThreads(__tstate); | |
14046 | if (PyErr_Occurred()) SWIG_fail; | |
14047 | } | |
2f4c0a16 | 14048 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14049 | return resultobj; |
14050 | fail: | |
14051 | return NULL; | |
14052 | } | |
14053 | ||
14054 | ||
14055 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14056 | PyObject *resultobj; | |
14057 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14058 | int arg2 ; | |
14059 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14060 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14061 | char *kwnames[] = { |
14062 | (char *) "self",(char *) "nSel", NULL | |
14063 | }; | |
14064 | ||
8edf1c75 | 14065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14068 | arg2 = (int) SWIG_AsInt(obj1); | |
14069 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14070 | { |
14071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14072 | (arg1)->SetSelection(arg2); | |
14073 | ||
14074 | wxPyEndAllowThreads(__tstate); | |
14075 | if (PyErr_Occurred()) SWIG_fail; | |
14076 | } | |
14077 | Py_INCREF(Py_None); resultobj = Py_None; | |
14078 | return resultobj; | |
14079 | fail: | |
14080 | return NULL; | |
14081 | } | |
14082 | ||
14083 | ||
14084 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14085 | PyObject *resultobj; | |
14086 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14087 | int result; | |
14088 | PyObject * obj0 = 0 ; | |
14089 | char *kwnames[] = { | |
14090 | (char *) "self", NULL | |
14091 | }; | |
14092 | ||
14093 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14094 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14095 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14096 | { |
14097 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14098 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14099 | ||
14100 | wxPyEndAllowThreads(__tstate); | |
14101 | if (PyErr_Occurred()) SWIG_fail; | |
14102 | } | |
2f4c0a16 | 14103 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14104 | return resultobj; |
14105 | fail: | |
14106 | return NULL; | |
14107 | } | |
14108 | ||
14109 | ||
14110 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14111 | PyObject *resultobj; | |
14112 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14113 | int arg2 ; | |
14114 | PyObject * obj0 = 0 ; | |
8edf1c75 | 14115 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14116 | char *kwnames[] = { |
14117 | (char *) "self",(char *) "nOldSel", NULL | |
14118 | }; | |
14119 | ||
8edf1c75 | 14120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
14121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14123 | arg2 = (int) SWIG_AsInt(obj1); | |
14124 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14125 | { |
14126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14127 | (arg1)->SetOldSelection(arg2); | |
14128 | ||
14129 | wxPyEndAllowThreads(__tstate); | |
14130 | if (PyErr_Occurred()) SWIG_fail; | |
14131 | } | |
14132 | Py_INCREF(Py_None); resultobj = Py_None; | |
14133 | return resultobj; | |
14134 | fail: | |
14135 | return NULL; | |
14136 | } | |
14137 | ||
14138 | ||
14139 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14140 | PyObject *obj; | |
14141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14142 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14143 | Py_INCREF(obj); | |
14144 | return Py_BuildValue((char *)""); | |
14145 | } | |
14146 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14147 | PyObject *resultobj; | |
14148 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14149 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14150 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14151 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14152 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14153 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14154 | long arg5 = (long) 0 ; | |
14155 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14156 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14157 | wxNotebook *result; | |
14158 | wxPoint temp3 ; | |
14159 | wxSize temp4 ; | |
423f194a | 14160 | bool temp6 = False ; |
d14a1e28 | 14161 | PyObject * obj0 = 0 ; |
8edf1c75 | 14162 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14163 | PyObject * obj2 = 0 ; |
14164 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14165 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14166 | PyObject * obj5 = 0 ; |
14167 | char *kwnames[] = { | |
14168 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14169 | }; | |
14170 | ||
4f89f6a3 | 14171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14174 | if (obj1) { |
14175 | arg2 = (int) SWIG_AsInt(obj1); | |
14176 | if (PyErr_Occurred()) SWIG_fail; | |
14177 | } | |
d14a1e28 RD |
14178 | if (obj2) { |
14179 | { | |
14180 | arg3 = &temp3; | |
14181 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14182 | } | |
14183 | } | |
14184 | if (obj3) { | |
14185 | { | |
14186 | arg4 = &temp4; | |
14187 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14188 | } | |
14189 | } | |
8edf1c75 | 14190 | if (obj4) { |
2f4c0a16 RD |
14191 | arg5 = (long) SWIG_AsLong(obj4); |
14192 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14193 | } |
d14a1e28 RD |
14194 | if (obj5) { |
14195 | { | |
14196 | arg6 = wxString_in_helper(obj5); | |
14197 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14198 | temp6 = True; |
d14a1e28 RD |
14199 | } |
14200 | } | |
14201 | { | |
14202 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14203 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14204 | ||
14205 | wxPyEndAllowThreads(__tstate); | |
14206 | if (PyErr_Occurred()) SWIG_fail; | |
14207 | } | |
14208 | { | |
14209 | resultobj = wxPyMake_wxObject(result); | |
14210 | } | |
14211 | { | |
14212 | if (temp6) | |
14213 | delete arg6; | |
14214 | } | |
14215 | return resultobj; | |
14216 | fail: | |
14217 | { | |
14218 | if (temp6) | |
14219 | delete arg6; | |
14220 | } | |
14221 | return NULL; | |
14222 | } | |
14223 | ||
14224 | ||
14225 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14226 | PyObject *resultobj; | |
14227 | wxNotebook *result; | |
14228 | char *kwnames[] = { | |
14229 | NULL | |
14230 | }; | |
14231 | ||
14232 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
14233 | { | |
14234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14235 | result = (wxNotebook *)new wxNotebook(); | |
14236 | ||
14237 | wxPyEndAllowThreads(__tstate); | |
14238 | if (PyErr_Occurred()) SWIG_fail; | |
14239 | } | |
14240 | { | |
14241 | resultobj = wxPyMake_wxObject(result); | |
14242 | } | |
14243 | return resultobj; | |
14244 | fail: | |
14245 | return NULL; | |
14246 | } | |
14247 | ||
14248 | ||
14249 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14250 | PyObject *resultobj; | |
14251 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14252 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14253 | int arg3 ; |
d14a1e28 RD |
14254 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14255 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14256 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14257 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14258 | long arg6 = (long) 0 ; | |
14259 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
14260 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14261 | bool result; | |
14262 | wxPoint temp4 ; | |
14263 | wxSize temp5 ; | |
423f194a | 14264 | bool temp7 = False ; |
d14a1e28 RD |
14265 | PyObject * obj0 = 0 ; |
14266 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14267 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14268 | PyObject * obj3 = 0 ; |
14269 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14270 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14271 | PyObject * obj6 = 0 ; |
14272 | char *kwnames[] = { | |
14273 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14274 | }; | |
14275 | ||
8edf1c75 | 14276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14279 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14280 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14281 | arg3 = (int) SWIG_AsInt(obj2); | |
14282 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14283 | if (obj3) { |
14284 | { | |
14285 | arg4 = &temp4; | |
14286 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14287 | } | |
14288 | } | |
14289 | if (obj4) { | |
14290 | { | |
14291 | arg5 = &temp5; | |
14292 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14293 | } | |
14294 | } | |
8edf1c75 | 14295 | if (obj5) { |
2f4c0a16 RD |
14296 | arg6 = (long) SWIG_AsLong(obj5); |
14297 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14298 | } |
d14a1e28 RD |
14299 | if (obj6) { |
14300 | { | |
14301 | arg7 = wxString_in_helper(obj6); | |
14302 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14303 | temp7 = True; |
d14a1e28 RD |
14304 | } |
14305 | } | |
14306 | { | |
14307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14308 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14309 | ||
14310 | wxPyEndAllowThreads(__tstate); | |
14311 | if (PyErr_Occurred()) SWIG_fail; | |
14312 | } | |
4f89f6a3 RD |
14313 | { |
14314 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14315 | } | |
d14a1e28 RD |
14316 | { |
14317 | if (temp7) | |
14318 | delete arg7; | |
14319 | } | |
14320 | return resultobj; | |
14321 | fail: | |
14322 | { | |
14323 | if (temp7) | |
14324 | delete arg7; | |
14325 | } | |
14326 | return NULL; | |
14327 | } | |
14328 | ||
14329 | ||
14330 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14331 | PyObject *resultobj; | |
14332 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14333 | int result; | |
14334 | PyObject * obj0 = 0 ; | |
14335 | char *kwnames[] = { | |
14336 | (char *) "self", NULL | |
14337 | }; | |
14338 | ||
14339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14342 | { |
14343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14344 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
14345 | ||
14346 | wxPyEndAllowThreads(__tstate); | |
14347 | if (PyErr_Occurred()) SWIG_fail; | |
14348 | } | |
2f4c0a16 | 14349 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14350 | return resultobj; |
14351 | fail: | |
14352 | return NULL; | |
14353 | } | |
14354 | ||
14355 | ||
14356 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14357 | PyObject *resultobj; | |
14358 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14359 | wxSize *arg2 = 0 ; | |
14360 | wxSize temp2 ; | |
14361 | PyObject * obj0 = 0 ; | |
14362 | PyObject * obj1 = 0 ; | |
14363 | char *kwnames[] = { | |
14364 | (char *) "self",(char *) "padding", NULL | |
14365 | }; | |
14366 | ||
14367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14370 | { |
14371 | arg2 = &temp2; | |
14372 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14373 | } | |
14374 | { | |
14375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14376 | (arg1)->SetPadding((wxSize const &)*arg2); | |
14377 | ||
14378 | wxPyEndAllowThreads(__tstate); | |
14379 | if (PyErr_Occurred()) SWIG_fail; | |
14380 | } | |
14381 | Py_INCREF(Py_None); resultobj = Py_None; | |
14382 | return resultobj; | |
14383 | fail: | |
14384 | return NULL; | |
14385 | } | |
14386 | ||
14387 | ||
14388 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14389 | PyObject *resultobj; | |
14390 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14391 | wxSize *arg2 = 0 ; | |
14392 | wxSize temp2 ; | |
14393 | PyObject * obj0 = 0 ; | |
14394 | PyObject * obj1 = 0 ; | |
14395 | char *kwnames[] = { | |
14396 | (char *) "self",(char *) "sz", NULL | |
14397 | }; | |
14398 | ||
14399 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14400 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14401 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14402 | { |
14403 | arg2 = &temp2; | |
14404 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14405 | } | |
14406 | { | |
14407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14408 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
14409 | ||
14410 | wxPyEndAllowThreads(__tstate); | |
14411 | if (PyErr_Occurred()) SWIG_fail; | |
14412 | } | |
14413 | Py_INCREF(Py_None); resultobj = Py_None; | |
14414 | return resultobj; | |
14415 | fail: | |
14416 | return NULL; | |
14417 | } | |
14418 | ||
14419 | ||
14420 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14421 | PyObject *resultobj; | |
14422 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14423 | wxPoint *arg2 = 0 ; | |
14424 | long *arg3 = (long *) 0 ; | |
14425 | int result; | |
14426 | wxPoint temp2 ; | |
14427 | long temp3 ; | |
14428 | PyObject * obj0 = 0 ; | |
14429 | PyObject * obj1 = 0 ; | |
14430 | char *kwnames[] = { | |
14431 | (char *) "self",(char *) "pt", NULL | |
14432 | }; | |
14433 | ||
14434 | arg3 = &temp3; | |
14435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14438 | { |
14439 | arg2 = &temp2; | |
14440 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
14441 | } | |
14442 | { | |
14443 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14444 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
14445 | ||
14446 | wxPyEndAllowThreads(__tstate); | |
14447 | if (PyErr_Occurred()) SWIG_fail; | |
14448 | } | |
2f4c0a16 | 14449 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14450 | { |
14451 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
14452 | resultobj = t_output_helper(resultobj,o); | |
14453 | } | |
14454 | return resultobj; | |
14455 | fail: | |
14456 | return NULL; | |
14457 | } | |
14458 | ||
14459 | ||
14460 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14461 | PyObject *resultobj; | |
14462 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14463 | wxSize *arg2 = 0 ; | |
14464 | wxSize result; | |
14465 | wxSize temp2 ; | |
14466 | PyObject * obj0 = 0 ; | |
14467 | PyObject * obj1 = 0 ; | |
14468 | char *kwnames[] = { | |
14469 | (char *) "self",(char *) "sizePage", NULL | |
14470 | }; | |
14471 | ||
14472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
14473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14475 | { |
14476 | arg2 = &temp2; | |
14477 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14478 | } | |
14479 | { | |
14480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14481 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14482 | ||
14483 | wxPyEndAllowThreads(__tstate); | |
14484 | if (PyErr_Occurred()) SWIG_fail; | |
14485 | } | |
14486 | { | |
14487 | wxSize * resultptr; | |
14488 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14489 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14490 | } |
14491 | return resultobj; | |
14492 | fail: | |
14493 | return NULL; | |
14494 | } | |
14495 | ||
14496 | ||
14497 | static PyObject *_wrap_Notebook_ApplyThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14498 | PyObject *resultobj; | |
14499 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14500 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14501 | wxColour *arg3 = 0 ; | |
14502 | wxColour temp3 ; | |
14503 | PyObject * obj0 = 0 ; | |
14504 | PyObject * obj1 = 0 ; | |
14505 | PyObject * obj2 = 0 ; | |
14506 | char *kwnames[] = { | |
14507 | (char *) "self",(char *) "window",(char *) "colour", NULL | |
14508 | }; | |
14509 | ||
14510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Notebook_ApplyThemeBackground",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
14511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14513 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14515 | { |
14516 | arg3 = &temp3; | |
14517 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
14518 | } | |
14519 | { | |
14520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14521 | (arg1)->ApplyThemeBackground(arg2,(wxColour const &)*arg3); | |
14522 | ||
14523 | wxPyEndAllowThreads(__tstate); | |
14524 | if (PyErr_Occurred()) SWIG_fail; | |
14525 | } | |
14526 | Py_INCREF(Py_None); resultobj = Py_None; | |
14527 | return resultobj; | |
14528 | fail: | |
14529 | return NULL; | |
14530 | } | |
14531 | ||
14532 | ||
14533 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { | |
14534 | PyObject *obj; | |
14535 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14536 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
14537 | Py_INCREF(obj); | |
14538 | return Py_BuildValue((char *)""); | |
14539 | } | |
14540 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14543 | int arg2 = (int) 0 ; | |
14544 | int arg3 = (int) -1 ; | |
14545 | int arg4 = (int) -1 ; | |
14546 | wxNotebookEvent *result; | |
8edf1c75 RD |
14547 | PyObject * obj0 = 0 ; |
14548 | PyObject * obj1 = 0 ; | |
14549 | PyObject * obj2 = 0 ; | |
14550 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14551 | char *kwnames[] = { |
14552 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14553 | }; | |
14554 | ||
8edf1c75 RD |
14555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14556 | if (obj0) { | |
2f4c0a16 RD |
14557 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14558 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14559 | } |
14560 | if (obj1) { | |
2f4c0a16 RD |
14561 | arg2 = (int) SWIG_AsInt(obj1); |
14562 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14563 | } |
14564 | if (obj2) { | |
2f4c0a16 RD |
14565 | arg3 = (int) SWIG_AsInt(obj2); |
14566 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14567 | } |
14568 | if (obj3) { | |
2f4c0a16 RD |
14569 | arg4 = (int) SWIG_AsInt(obj3); |
14570 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14571 | } |
d14a1e28 RD |
14572 | { |
14573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14574 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
14575 | ||
14576 | wxPyEndAllowThreads(__tstate); | |
14577 | if (PyErr_Occurred()) SWIG_fail; | |
14578 | } | |
2f4c0a16 | 14579 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
14580 | return resultobj; |
14581 | fail: | |
14582 | return NULL; | |
14583 | } | |
14584 | ||
14585 | ||
14586 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
14587 | PyObject *obj; | |
14588 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14589 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
14590 | Py_INCREF(obj); | |
14591 | return Py_BuildValue((char *)""); | |
14592 | } | |
14593 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14594 | PyObject *resultobj; | |
14595 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14596 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14597 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14598 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14599 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14600 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14601 | long arg5 = (long) 0 ; | |
14602 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
14603 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14604 | wxListbook *result; | |
14605 | wxPoint temp3 ; | |
14606 | wxSize temp4 ; | |
423f194a | 14607 | bool temp6 = False ; |
d14a1e28 | 14608 | PyObject * obj0 = 0 ; |
8edf1c75 | 14609 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14610 | PyObject * obj2 = 0 ; |
14611 | PyObject * obj3 = 0 ; | |
8edf1c75 | 14612 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14613 | PyObject * obj5 = 0 ; |
14614 | char *kwnames[] = { | |
14615 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14616 | }; | |
14617 | ||
4f89f6a3 | 14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
14619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
14620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
14621 | if (obj1) { |
14622 | arg2 = (int) SWIG_AsInt(obj1); | |
14623 | if (PyErr_Occurred()) SWIG_fail; | |
14624 | } | |
d14a1e28 RD |
14625 | if (obj2) { |
14626 | { | |
14627 | arg3 = &temp3; | |
14628 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
14629 | } | |
14630 | } | |
14631 | if (obj3) { | |
14632 | { | |
14633 | arg4 = &temp4; | |
14634 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
14635 | } | |
14636 | } | |
8edf1c75 | 14637 | if (obj4) { |
2f4c0a16 RD |
14638 | arg5 = (long) SWIG_AsLong(obj4); |
14639 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14640 | } |
d14a1e28 RD |
14641 | if (obj5) { |
14642 | { | |
14643 | arg6 = wxString_in_helper(obj5); | |
14644 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 14645 | temp6 = True; |
d14a1e28 RD |
14646 | } |
14647 | } | |
14648 | { | |
14649 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14650 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
14651 | ||
14652 | wxPyEndAllowThreads(__tstate); | |
14653 | if (PyErr_Occurred()) SWIG_fail; | |
14654 | } | |
2f4c0a16 | 14655 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14656 | { |
14657 | if (temp6) | |
14658 | delete arg6; | |
14659 | } | |
14660 | return resultobj; | |
14661 | fail: | |
14662 | { | |
14663 | if (temp6) | |
14664 | delete arg6; | |
14665 | } | |
14666 | return NULL; | |
14667 | } | |
14668 | ||
14669 | ||
14670 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14671 | PyObject *resultobj; | |
14672 | wxListbook *result; | |
14673 | char *kwnames[] = { | |
14674 | NULL | |
14675 | }; | |
14676 | ||
14677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
14678 | { | |
14679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14680 | result = (wxListbook *)new wxListbook(); | |
14681 | ||
14682 | wxPyEndAllowThreads(__tstate); | |
14683 | if (PyErr_Occurred()) SWIG_fail; | |
14684 | } | |
2f4c0a16 | 14685 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
14686 | return resultobj; |
14687 | fail: | |
14688 | return NULL; | |
14689 | } | |
14690 | ||
14691 | ||
14692 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14693 | PyObject *resultobj; | |
14694 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14695 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 14696 | int arg3 ; |
d14a1e28 RD |
14697 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
14698 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
14699 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
14700 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
14701 | long arg6 = (long) 0 ; | |
14702 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
14703 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
14704 | bool result; | |
14705 | wxPoint temp4 ; | |
14706 | wxSize temp5 ; | |
423f194a | 14707 | bool temp7 = False ; |
d14a1e28 RD |
14708 | PyObject * obj0 = 0 ; |
14709 | PyObject * obj1 = 0 ; | |
8edf1c75 | 14710 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14711 | PyObject * obj3 = 0 ; |
14712 | PyObject * obj4 = 0 ; | |
8edf1c75 | 14713 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14714 | PyObject * obj6 = 0 ; |
14715 | char *kwnames[] = { | |
14716 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
14717 | }; | |
14718 | ||
8edf1c75 | 14719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
14720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14722 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14723 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14724 | arg3 = (int) SWIG_AsInt(obj2); | |
14725 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14726 | if (obj3) { |
14727 | { | |
14728 | arg4 = &temp4; | |
14729 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
14730 | } | |
14731 | } | |
14732 | if (obj4) { | |
14733 | { | |
14734 | arg5 = &temp5; | |
14735 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
14736 | } | |
14737 | } | |
8edf1c75 | 14738 | if (obj5) { |
2f4c0a16 RD |
14739 | arg6 = (long) SWIG_AsLong(obj5); |
14740 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14741 | } |
d14a1e28 RD |
14742 | if (obj6) { |
14743 | { | |
14744 | arg7 = wxString_in_helper(obj6); | |
14745 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 14746 | temp7 = True; |
d14a1e28 RD |
14747 | } |
14748 | } | |
14749 | { | |
14750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14751 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
14752 | ||
14753 | wxPyEndAllowThreads(__tstate); | |
14754 | if (PyErr_Occurred()) SWIG_fail; | |
14755 | } | |
4f89f6a3 RD |
14756 | { |
14757 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14758 | } | |
d14a1e28 RD |
14759 | { |
14760 | if (temp7) | |
14761 | delete arg7; | |
14762 | } | |
14763 | return resultobj; | |
14764 | fail: | |
14765 | { | |
14766 | if (temp7) | |
14767 | delete arg7; | |
14768 | } | |
14769 | return NULL; | |
14770 | } | |
14771 | ||
14772 | ||
14773 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14774 | PyObject *resultobj; | |
14775 | wxListbook *arg1 = (wxListbook *) 0 ; | |
14776 | bool result; | |
14777 | PyObject * obj0 = 0 ; | |
14778 | char *kwnames[] = { | |
14779 | (char *) "self", NULL | |
14780 | }; | |
14781 | ||
14782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
14784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14785 | { |
14786 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14787 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
14788 | ||
14789 | wxPyEndAllowThreads(__tstate); | |
14790 | if (PyErr_Occurred()) SWIG_fail; | |
14791 | } | |
4f89f6a3 RD |
14792 | { |
14793 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14794 | } | |
d14a1e28 RD |
14795 | return resultobj; |
14796 | fail: | |
14797 | return NULL; | |
14798 | } | |
14799 | ||
14800 | ||
14801 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
14802 | PyObject *obj; | |
14803 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14804 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
14805 | Py_INCREF(obj); | |
14806 | return Py_BuildValue((char *)""); | |
14807 | } | |
14808 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14809 | PyObject *resultobj; | |
14810 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14811 | int arg2 = (int) 0 ; | |
14812 | int arg3 = (int) -1 ; | |
14813 | int arg4 = (int) -1 ; | |
14814 | wxListbookEvent *result; | |
8edf1c75 RD |
14815 | PyObject * obj0 = 0 ; |
14816 | PyObject * obj1 = 0 ; | |
14817 | PyObject * obj2 = 0 ; | |
14818 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14819 | char *kwnames[] = { |
14820 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14821 | }; | |
14822 | ||
8edf1c75 RD |
14823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14824 | if (obj0) { | |
2f4c0a16 RD |
14825 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14826 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14827 | } |
14828 | if (obj1) { | |
2f4c0a16 RD |
14829 | arg2 = (int) SWIG_AsInt(obj1); |
14830 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14831 | } |
14832 | if (obj2) { | |
2f4c0a16 RD |
14833 | arg3 = (int) SWIG_AsInt(obj2); |
14834 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
14835 | } |
14836 | if (obj3) { | |
2f4c0a16 RD |
14837 | arg4 = (int) SWIG_AsInt(obj3); |
14838 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 14839 | } |
d14a1e28 RD |
14840 | { |
14841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14842 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
14843 | ||
14844 | wxPyEndAllowThreads(__tstate); | |
14845 | if (PyErr_Occurred()) SWIG_fail; | |
14846 | } | |
2f4c0a16 | 14847 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
14848 | return resultobj; |
14849 | fail: | |
14850 | return NULL; | |
14851 | } | |
14852 | ||
14853 | ||
14854 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
14855 | PyObject *obj; | |
14856 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14857 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
14858 | Py_INCREF(obj); | |
14859 | return Py_BuildValue((char *)""); | |
14860 | } | |
14861 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14862 | PyObject *resultobj; | |
14863 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14864 | wxBookCtrlSizer *result; | |
14865 | PyObject * obj0 = 0 ; | |
14866 | char *kwnames[] = { | |
14867 | (char *) "nb", NULL | |
14868 | }; | |
14869 | ||
14870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14873 | { |
14874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14875 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
14876 | ||
14877 | wxPyEndAllowThreads(__tstate); | |
14878 | if (PyErr_Occurred()) SWIG_fail; | |
14879 | } | |
2f4c0a16 | 14880 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
14881 | return resultobj; |
14882 | fail: | |
14883 | return NULL; | |
14884 | } | |
14885 | ||
14886 | ||
14887 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14888 | PyObject *resultobj; | |
14889 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14890 | PyObject * obj0 = 0 ; | |
14891 | char *kwnames[] = { | |
14892 | (char *) "self", NULL | |
14893 | }; | |
14894 | ||
14895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14898 | { |
14899 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14900 | (arg1)->RecalcSizes(); | |
14901 | ||
14902 | wxPyEndAllowThreads(__tstate); | |
14903 | if (PyErr_Occurred()) SWIG_fail; | |
14904 | } | |
14905 | Py_INCREF(Py_None); resultobj = Py_None; | |
14906 | return resultobj; | |
14907 | fail: | |
14908 | return NULL; | |
14909 | } | |
14910 | ||
14911 | ||
14912 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14913 | PyObject *resultobj; | |
14914 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14915 | wxSize result; | |
14916 | PyObject * obj0 = 0 ; | |
14917 | char *kwnames[] = { | |
14918 | (char *) "self", NULL | |
14919 | }; | |
14920 | ||
14921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14924 | { |
14925 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14926 | result = (arg1)->CalcMin(); | |
14927 | ||
14928 | wxPyEndAllowThreads(__tstate); | |
14929 | if (PyErr_Occurred()) SWIG_fail; | |
14930 | } | |
14931 | { | |
14932 | wxSize * resultptr; | |
14933 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 14934 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14935 | } |
14936 | return resultobj; | |
14937 | fail: | |
14938 | return NULL; | |
14939 | } | |
14940 | ||
14941 | ||
14942 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14943 | PyObject *resultobj; | |
14944 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
14945 | wxBookCtrl *result; | |
14946 | PyObject * obj0 = 0 ; | |
14947 | char *kwnames[] = { | |
14948 | (char *) "self", NULL | |
14949 | }; | |
14950 | ||
14951 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14952 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
14953 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14954 | { |
14955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14956 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
14957 | ||
14958 | wxPyEndAllowThreads(__tstate); | |
14959 | if (PyErr_Occurred()) SWIG_fail; | |
14960 | } | |
2f4c0a16 | 14961 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
14962 | return resultobj; |
14963 | fail: | |
14964 | return NULL; | |
14965 | } | |
14966 | ||
14967 | ||
14968 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
14969 | PyObject *obj; | |
14970 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14971 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
14972 | Py_INCREF(obj); | |
14973 | return Py_BuildValue((char *)""); | |
14974 | } | |
14975 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14976 | PyObject *resultobj; | |
14977 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
14978 | wxNotebookSizer *result; | |
14979 | PyObject * obj0 = 0 ; | |
14980 | char *kwnames[] = { | |
14981 | (char *) "nb", NULL | |
14982 | }; | |
14983 | ||
14984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
14985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
14986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14987 | { |
14988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14989 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
14990 | ||
14991 | wxPyEndAllowThreads(__tstate); | |
14992 | if (PyErr_Occurred()) SWIG_fail; | |
14993 | } | |
2f4c0a16 | 14994 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
14995 | return resultobj; |
14996 | fail: | |
14997 | return NULL; | |
14998 | } | |
14999 | ||
15000 | ||
15001 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15002 | PyObject *resultobj; | |
15003 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15004 | PyObject * obj0 = 0 ; | |
15005 | char *kwnames[] = { | |
15006 | (char *) "self", NULL | |
15007 | }; | |
15008 | ||
15009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15012 | { |
15013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15014 | (arg1)->RecalcSizes(); | |
15015 | ||
15016 | wxPyEndAllowThreads(__tstate); | |
15017 | if (PyErr_Occurred()) SWIG_fail; | |
15018 | } | |
15019 | Py_INCREF(Py_None); resultobj = Py_None; | |
15020 | return resultobj; | |
15021 | fail: | |
15022 | return NULL; | |
15023 | } | |
15024 | ||
15025 | ||
15026 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15027 | PyObject *resultobj; | |
15028 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15029 | wxSize result; | |
15030 | PyObject * obj0 = 0 ; | |
15031 | char *kwnames[] = { | |
15032 | (char *) "self", NULL | |
15033 | }; | |
15034 | ||
15035 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15036 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15037 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15038 | { |
15039 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15040 | result = (arg1)->CalcMin(); | |
15041 | ||
15042 | wxPyEndAllowThreads(__tstate); | |
15043 | if (PyErr_Occurred()) SWIG_fail; | |
15044 | } | |
15045 | { | |
15046 | wxSize * resultptr; | |
15047 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 15048 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15049 | } |
15050 | return resultobj; | |
15051 | fail: | |
15052 | return NULL; | |
15053 | } | |
15054 | ||
15055 | ||
15056 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15057 | PyObject *resultobj; | |
15058 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15059 | wxNotebook *result; | |
15060 | PyObject * obj0 = 0 ; | |
15061 | char *kwnames[] = { | |
15062 | (char *) "self", NULL | |
15063 | }; | |
15064 | ||
15065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15068 | { |
15069 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15070 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15071 | ||
15072 | wxPyEndAllowThreads(__tstate); | |
15073 | if (PyErr_Occurred()) SWIG_fail; | |
15074 | } | |
15075 | { | |
15076 | resultobj = wxPyMake_wxObject(result); | |
15077 | } | |
15078 | return resultobj; | |
15079 | fail: | |
15080 | return NULL; | |
15081 | } | |
15082 | ||
15083 | ||
15084 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15085 | PyObject *obj; | |
15086 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15087 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15088 | Py_INCREF(obj); | |
15089 | return Py_BuildValue((char *)""); | |
15090 | } | |
15091 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15092 | PyObject *resultobj; | |
15093 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15094 | int result; | |
15095 | PyObject * obj0 = 0 ; | |
15096 | char *kwnames[] = { | |
15097 | (char *) "self", NULL | |
15098 | }; | |
15099 | ||
15100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15103 | { |
15104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15105 | result = (int)(arg1)->GetId(); | |
15106 | ||
15107 | wxPyEndAllowThreads(__tstate); | |
15108 | if (PyErr_Occurred()) SWIG_fail; | |
15109 | } | |
2f4c0a16 | 15110 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15111 | return resultobj; |
15112 | fail: | |
15113 | return NULL; | |
15114 | } | |
15115 | ||
15116 | ||
15117 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15118 | PyObject *resultobj; | |
15119 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15120 | wxControl *result; | |
15121 | PyObject * obj0 = 0 ; | |
15122 | char *kwnames[] = { | |
15123 | (char *) "self", NULL | |
15124 | }; | |
15125 | ||
15126 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15127 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15128 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15129 | { |
15130 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15131 | result = (wxControl *)(arg1)->GetControl(); | |
15132 | ||
15133 | wxPyEndAllowThreads(__tstate); | |
15134 | if (PyErr_Occurred()) SWIG_fail; | |
15135 | } | |
15136 | { | |
15137 | resultobj = wxPyMake_wxObject(result); | |
15138 | } | |
15139 | return resultobj; | |
15140 | fail: | |
15141 | return NULL; | |
15142 | } | |
15143 | ||
15144 | ||
15145 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15146 | PyObject *resultobj; | |
15147 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15148 | wxToolBarBase *result; | |
15149 | PyObject * obj0 = 0 ; | |
15150 | char *kwnames[] = { | |
15151 | (char *) "self", NULL | |
15152 | }; | |
15153 | ||
15154 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15155 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15156 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15157 | { |
15158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15159 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
15160 | ||
15161 | wxPyEndAllowThreads(__tstate); | |
15162 | if (PyErr_Occurred()) SWIG_fail; | |
15163 | } | |
15164 | { | |
15165 | resultobj = wxPyMake_wxObject(result); | |
15166 | } | |
15167 | return resultobj; | |
15168 | fail: | |
15169 | return NULL; | |
15170 | } | |
15171 | ||
15172 | ||
15173 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15174 | PyObject *resultobj; | |
15175 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15176 | int result; | |
15177 | PyObject * obj0 = 0 ; | |
15178 | char *kwnames[] = { | |
15179 | (char *) "self", NULL | |
15180 | }; | |
15181 | ||
15182 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15183 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15184 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15185 | { |
15186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15187 | result = (int)(arg1)->IsButton(); | |
15188 | ||
15189 | wxPyEndAllowThreads(__tstate); | |
15190 | if (PyErr_Occurred()) SWIG_fail; | |
15191 | } | |
2f4c0a16 | 15192 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15193 | return resultobj; |
15194 | fail: | |
15195 | return NULL; | |
15196 | } | |
15197 | ||
15198 | ||
15199 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15200 | PyObject *resultobj; | |
15201 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15202 | int result; | |
15203 | PyObject * obj0 = 0 ; | |
15204 | char *kwnames[] = { | |
15205 | (char *) "self", NULL | |
15206 | }; | |
15207 | ||
15208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15211 | { |
15212 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15213 | result = (int)(arg1)->IsControl(); | |
15214 | ||
15215 | wxPyEndAllowThreads(__tstate); | |
15216 | if (PyErr_Occurred()) SWIG_fail; | |
15217 | } | |
2f4c0a16 | 15218 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15219 | return resultobj; |
15220 | fail: | |
15221 | return NULL; | |
15222 | } | |
15223 | ||
15224 | ||
15225 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15226 | PyObject *resultobj; | |
15227 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15228 | int result; | |
15229 | PyObject * obj0 = 0 ; | |
15230 | char *kwnames[] = { | |
15231 | (char *) "self", NULL | |
15232 | }; | |
15233 | ||
15234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15237 | { |
15238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15239 | result = (int)(arg1)->IsSeparator(); | |
15240 | ||
15241 | wxPyEndAllowThreads(__tstate); | |
15242 | if (PyErr_Occurred()) SWIG_fail; | |
15243 | } | |
2f4c0a16 | 15244 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15245 | return resultobj; |
15246 | fail: | |
15247 | return NULL; | |
15248 | } | |
15249 | ||
15250 | ||
15251 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15252 | PyObject *resultobj; | |
15253 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15254 | int result; | |
15255 | PyObject * obj0 = 0 ; | |
15256 | char *kwnames[] = { | |
15257 | (char *) "self", NULL | |
15258 | }; | |
15259 | ||
15260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15263 | { |
15264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15265 | result = (int)(arg1)->GetStyle(); | |
15266 | ||
15267 | wxPyEndAllowThreads(__tstate); | |
15268 | if (PyErr_Occurred()) SWIG_fail; | |
15269 | } | |
2f4c0a16 | 15270 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15271 | return resultobj; |
15272 | fail: | |
15273 | return NULL; | |
15274 | } | |
15275 | ||
15276 | ||
15277 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15278 | PyObject *resultobj; | |
15279 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15280 | int result; | |
15281 | PyObject * obj0 = 0 ; | |
15282 | char *kwnames[] = { | |
15283 | (char *) "self", NULL | |
15284 | }; | |
15285 | ||
15286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15289 | { |
15290 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15291 | result = (int)(arg1)->GetKind(); | |
15292 | ||
15293 | wxPyEndAllowThreads(__tstate); | |
15294 | if (PyErr_Occurred()) SWIG_fail; | |
15295 | } | |
2f4c0a16 | 15296 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15297 | return resultobj; |
15298 | fail: | |
15299 | return NULL; | |
15300 | } | |
15301 | ||
15302 | ||
15303 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15304 | PyObject *resultobj; | |
15305 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15306 | bool result; | |
15307 | PyObject * obj0 = 0 ; | |
15308 | char *kwnames[] = { | |
15309 | (char *) "self", NULL | |
15310 | }; | |
15311 | ||
15312 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15313 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15314 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15315 | { |
15316 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15317 | result = (bool)(arg1)->IsEnabled(); | |
15318 | ||
15319 | wxPyEndAllowThreads(__tstate); | |
15320 | if (PyErr_Occurred()) SWIG_fail; | |
15321 | } | |
4f89f6a3 RD |
15322 | { |
15323 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15324 | } | |
d14a1e28 RD |
15325 | return resultobj; |
15326 | fail: | |
15327 | return NULL; | |
15328 | } | |
15329 | ||
15330 | ||
15331 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15332 | PyObject *resultobj; | |
15333 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15334 | bool result; | |
15335 | PyObject * obj0 = 0 ; | |
15336 | char *kwnames[] = { | |
15337 | (char *) "self", NULL | |
15338 | }; | |
15339 | ||
15340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15343 | { |
15344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15345 | result = (bool)(arg1)->IsToggled(); | |
15346 | ||
15347 | wxPyEndAllowThreads(__tstate); | |
15348 | if (PyErr_Occurred()) SWIG_fail; | |
15349 | } | |
4f89f6a3 RD |
15350 | { |
15351 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15352 | } | |
d14a1e28 RD |
15353 | return resultobj; |
15354 | fail: | |
15355 | return NULL; | |
15356 | } | |
15357 | ||
15358 | ||
15359 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15360 | PyObject *resultobj; | |
15361 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15362 | bool result; | |
15363 | PyObject * obj0 = 0 ; | |
15364 | char *kwnames[] = { | |
15365 | (char *) "self", NULL | |
15366 | }; | |
15367 | ||
15368 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15369 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15370 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15371 | { |
15372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15373 | result = (bool)(arg1)->CanBeToggled(); | |
15374 | ||
15375 | wxPyEndAllowThreads(__tstate); | |
15376 | if (PyErr_Occurred()) SWIG_fail; | |
15377 | } | |
4f89f6a3 RD |
15378 | { |
15379 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15380 | } | |
d14a1e28 RD |
15381 | return resultobj; |
15382 | fail: | |
15383 | return NULL; | |
15384 | } | |
15385 | ||
15386 | ||
15387 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15388 | PyObject *resultobj; | |
15389 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15390 | wxBitmap *result; | |
15391 | PyObject * obj0 = 0 ; | |
15392 | char *kwnames[] = { | |
15393 | (char *) "self", NULL | |
15394 | }; | |
15395 | ||
15396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15399 | { |
15400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15401 | { | |
15402 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
15403 | result = (wxBitmap *) &_result_ref; | |
15404 | } | |
15405 | ||
15406 | wxPyEndAllowThreads(__tstate); | |
15407 | if (PyErr_Occurred()) SWIG_fail; | |
15408 | } | |
fe763115 RD |
15409 | { |
15410 | wxBitmap* resultptr = new wxBitmap(*result); | |
15411 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15412 | } | |
d14a1e28 RD |
15413 | return resultobj; |
15414 | fail: | |
15415 | return NULL; | |
15416 | } | |
15417 | ||
15418 | ||
15419 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15420 | PyObject *resultobj; | |
15421 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15422 | wxBitmap *result; | |
15423 | PyObject * obj0 = 0 ; | |
15424 | char *kwnames[] = { | |
15425 | (char *) "self", NULL | |
15426 | }; | |
15427 | ||
15428 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15429 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15430 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15431 | { |
15432 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15433 | { | |
15434 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
15435 | result = (wxBitmap *) &_result_ref; | |
15436 | } | |
15437 | ||
15438 | wxPyEndAllowThreads(__tstate); | |
15439 | if (PyErr_Occurred()) SWIG_fail; | |
15440 | } | |
fe763115 RD |
15441 | { |
15442 | wxBitmap* resultptr = new wxBitmap(*result); | |
15443 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
15444 | } | |
d14a1e28 RD |
15445 | return resultobj; |
15446 | fail: | |
15447 | return NULL; | |
15448 | } | |
15449 | ||
15450 | ||
15451 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15452 | PyObject *resultobj; | |
15453 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15454 | wxBitmap result; | |
15455 | PyObject * obj0 = 0 ; | |
15456 | char *kwnames[] = { | |
15457 | (char *) "self", NULL | |
15458 | }; | |
15459 | ||
15460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15463 | { |
15464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15465 | result = (arg1)->GetBitmap(); | |
15466 | ||
15467 | wxPyEndAllowThreads(__tstate); | |
15468 | if (PyErr_Occurred()) SWIG_fail; | |
15469 | } | |
15470 | { | |
15471 | wxBitmap * resultptr; | |
15472 | resultptr = new wxBitmap((wxBitmap &) result); | |
2f4c0a16 | 15473 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
15474 | } |
15475 | return resultobj; | |
15476 | fail: | |
15477 | return NULL; | |
15478 | } | |
15479 | ||
15480 | ||
15481 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15482 | PyObject *resultobj; | |
15483 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15484 | wxString result; | |
15485 | PyObject * obj0 = 0 ; | |
15486 | char *kwnames[] = { | |
15487 | (char *) "self", NULL | |
15488 | }; | |
15489 | ||
15490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15493 | { |
15494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15495 | result = (arg1)->GetLabel(); | |
15496 | ||
15497 | wxPyEndAllowThreads(__tstate); | |
15498 | if (PyErr_Occurred()) SWIG_fail; | |
15499 | } | |
15500 | { | |
15501 | #if wxUSE_UNICODE | |
15502 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15503 | #else | |
15504 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15505 | #endif | |
15506 | } | |
15507 | return resultobj; | |
15508 | fail: | |
15509 | return NULL; | |
15510 | } | |
15511 | ||
15512 | ||
15513 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15514 | PyObject *resultobj; | |
15515 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15516 | wxString result; | |
15517 | PyObject * obj0 = 0 ; | |
15518 | char *kwnames[] = { | |
15519 | (char *) "self", NULL | |
15520 | }; | |
15521 | ||
15522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15525 | { |
15526 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15527 | result = (arg1)->GetShortHelp(); | |
15528 | ||
15529 | wxPyEndAllowThreads(__tstate); | |
15530 | if (PyErr_Occurred()) SWIG_fail; | |
15531 | } | |
15532 | { | |
15533 | #if wxUSE_UNICODE | |
15534 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15535 | #else | |
15536 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15537 | #endif | |
15538 | } | |
15539 | return resultobj; | |
15540 | fail: | |
15541 | return NULL; | |
15542 | } | |
15543 | ||
15544 | ||
15545 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15546 | PyObject *resultobj; | |
15547 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15548 | wxString result; | |
15549 | PyObject * obj0 = 0 ; | |
15550 | char *kwnames[] = { | |
15551 | (char *) "self", NULL | |
15552 | }; | |
15553 | ||
15554 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15555 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15556 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15557 | { |
15558 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15559 | result = (arg1)->GetLongHelp(); | |
15560 | ||
15561 | wxPyEndAllowThreads(__tstate); | |
15562 | if (PyErr_Occurred()) SWIG_fail; | |
15563 | } | |
15564 | { | |
15565 | #if wxUSE_UNICODE | |
15566 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
15567 | #else | |
15568 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
15569 | #endif | |
15570 | } | |
15571 | return resultobj; | |
15572 | fail: | |
15573 | return NULL; | |
15574 | } | |
15575 | ||
15576 | ||
15577 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15578 | PyObject *resultobj; | |
15579 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15580 | bool arg2 ; | |
15581 | bool result; | |
15582 | PyObject * obj0 = 0 ; | |
15583 | PyObject * obj1 = 0 ; | |
15584 | char *kwnames[] = { | |
15585 | (char *) "self",(char *) "enable", NULL | |
15586 | }; | |
15587 | ||
15588 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15589 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15590 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15591 | arg2 = (bool) SWIG_AsBool(obj1); | |
15592 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15593 | { |
15594 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15595 | result = (bool)(arg1)->Enable(arg2); | |
15596 | ||
15597 | wxPyEndAllowThreads(__tstate); | |
15598 | if (PyErr_Occurred()) SWIG_fail; | |
15599 | } | |
4f89f6a3 RD |
15600 | { |
15601 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15602 | } | |
d14a1e28 RD |
15603 | return resultobj; |
15604 | fail: | |
15605 | return NULL; | |
15606 | } | |
15607 | ||
15608 | ||
15609 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15610 | PyObject *resultobj; | |
15611 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15612 | PyObject * obj0 = 0 ; | |
15613 | char *kwnames[] = { | |
15614 | (char *) "self", NULL | |
15615 | }; | |
15616 | ||
15617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15620 | { |
15621 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15622 | (arg1)->Toggle(); | |
15623 | ||
15624 | wxPyEndAllowThreads(__tstate); | |
15625 | if (PyErr_Occurred()) SWIG_fail; | |
15626 | } | |
15627 | Py_INCREF(Py_None); resultobj = Py_None; | |
15628 | return resultobj; | |
15629 | fail: | |
15630 | return NULL; | |
15631 | } | |
15632 | ||
15633 | ||
15634 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15635 | PyObject *resultobj; | |
15636 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15637 | bool arg2 ; | |
15638 | bool result; | |
15639 | PyObject * obj0 = 0 ; | |
15640 | PyObject * obj1 = 0 ; | |
15641 | char *kwnames[] = { | |
15642 | (char *) "self",(char *) "toggle", NULL | |
15643 | }; | |
15644 | ||
15645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15648 | arg2 = (bool) SWIG_AsBool(obj1); | |
15649 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
15650 | { |
15651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15652 | result = (bool)(arg1)->SetToggle(arg2); | |
15653 | ||
15654 | wxPyEndAllowThreads(__tstate); | |
15655 | if (PyErr_Occurred()) SWIG_fail; | |
15656 | } | |
4f89f6a3 RD |
15657 | { |
15658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15659 | } | |
d14a1e28 RD |
15660 | return resultobj; |
15661 | fail: | |
15662 | return NULL; | |
15663 | } | |
15664 | ||
15665 | ||
15666 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15667 | PyObject *resultobj; | |
15668 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15669 | wxString *arg2 = 0 ; | |
15670 | bool result; | |
423f194a | 15671 | bool temp2 = False ; |
d14a1e28 RD |
15672 | PyObject * obj0 = 0 ; |
15673 | PyObject * obj1 = 0 ; | |
15674 | char *kwnames[] = { | |
15675 | (char *) "self",(char *) "help", NULL | |
15676 | }; | |
15677 | ||
15678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15681 | { |
15682 | arg2 = wxString_in_helper(obj1); | |
15683 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15684 | temp2 = True; |
d14a1e28 RD |
15685 | } |
15686 | { | |
15687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15688 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
15689 | ||
15690 | wxPyEndAllowThreads(__tstate); | |
15691 | if (PyErr_Occurred()) SWIG_fail; | |
15692 | } | |
4f89f6a3 RD |
15693 | { |
15694 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15695 | } | |
d14a1e28 RD |
15696 | { |
15697 | if (temp2) | |
15698 | delete arg2; | |
15699 | } | |
15700 | return resultobj; | |
15701 | fail: | |
15702 | { | |
15703 | if (temp2) | |
15704 | delete arg2; | |
15705 | } | |
15706 | return NULL; | |
15707 | } | |
15708 | ||
15709 | ||
15710 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15711 | PyObject *resultobj; | |
15712 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15713 | wxString *arg2 = 0 ; | |
15714 | bool result; | |
423f194a | 15715 | bool temp2 = False ; |
d14a1e28 RD |
15716 | PyObject * obj0 = 0 ; |
15717 | PyObject * obj1 = 0 ; | |
15718 | char *kwnames[] = { | |
15719 | (char *) "self",(char *) "help", NULL | |
15720 | }; | |
15721 | ||
15722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15725 | { |
15726 | arg2 = wxString_in_helper(obj1); | |
15727 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15728 | temp2 = True; |
d14a1e28 RD |
15729 | } |
15730 | { | |
15731 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15732 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
15733 | ||
15734 | wxPyEndAllowThreads(__tstate); | |
15735 | if (PyErr_Occurred()) SWIG_fail; | |
15736 | } | |
4f89f6a3 RD |
15737 | { |
15738 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15739 | } | |
d14a1e28 RD |
15740 | { |
15741 | if (temp2) | |
15742 | delete arg2; | |
15743 | } | |
15744 | return resultobj; | |
15745 | fail: | |
15746 | { | |
15747 | if (temp2) | |
15748 | delete arg2; | |
15749 | } | |
15750 | return NULL; | |
15751 | } | |
15752 | ||
15753 | ||
15754 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15755 | PyObject *resultobj; | |
15756 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15757 | wxBitmap *arg2 = 0 ; | |
15758 | PyObject * obj0 = 0 ; | |
15759 | PyObject * obj1 = 0 ; | |
15760 | char *kwnames[] = { | |
15761 | (char *) "self",(char *) "bmp", NULL | |
15762 | }; | |
15763 | ||
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15767 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15768 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15769 | SWIG_fail; | |
d14a1e28 | 15770 | if (arg2 == NULL) { |
2f4c0a16 RD |
15771 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15772 | SWIG_fail; | |
d14a1e28 RD |
15773 | } |
15774 | { | |
15775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15776 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
15777 | ||
15778 | wxPyEndAllowThreads(__tstate); | |
15779 | if (PyErr_Occurred()) SWIG_fail; | |
15780 | } | |
15781 | Py_INCREF(Py_None); resultobj = Py_None; | |
15782 | return resultobj; | |
15783 | fail: | |
15784 | return NULL; | |
15785 | } | |
15786 | ||
15787 | ||
15788 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15789 | PyObject *resultobj; | |
15790 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15791 | wxBitmap *arg2 = 0 ; | |
15792 | PyObject * obj0 = 0 ; | |
15793 | PyObject * obj1 = 0 ; | |
15794 | char *kwnames[] = { | |
15795 | (char *) "self",(char *) "bmp", NULL | |
15796 | }; | |
15797 | ||
15798 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15799 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15801 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
15802 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15803 | SWIG_fail; | |
d14a1e28 | 15804 | if (arg2 == NULL) { |
2f4c0a16 RD |
15805 | PyErr_SetString(PyExc_TypeError,"null reference"); |
15806 | SWIG_fail; | |
d14a1e28 RD |
15807 | } |
15808 | { | |
15809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15810 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
15811 | ||
15812 | wxPyEndAllowThreads(__tstate); | |
15813 | if (PyErr_Occurred()) SWIG_fail; | |
15814 | } | |
15815 | Py_INCREF(Py_None); resultobj = Py_None; | |
15816 | return resultobj; | |
15817 | fail: | |
15818 | return NULL; | |
15819 | } | |
15820 | ||
15821 | ||
15822 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15823 | PyObject *resultobj; | |
15824 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15825 | wxString *arg2 = 0 ; | |
423f194a | 15826 | bool temp2 = False ; |
d14a1e28 RD |
15827 | PyObject * obj0 = 0 ; |
15828 | PyObject * obj1 = 0 ; | |
15829 | char *kwnames[] = { | |
15830 | (char *) "self",(char *) "label", NULL | |
15831 | }; | |
15832 | ||
15833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15836 | { |
15837 | arg2 = wxString_in_helper(obj1); | |
15838 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 15839 | temp2 = True; |
d14a1e28 RD |
15840 | } |
15841 | { | |
15842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15843 | (arg1)->SetLabel((wxString const &)*arg2); | |
15844 | ||
15845 | wxPyEndAllowThreads(__tstate); | |
15846 | if (PyErr_Occurred()) SWIG_fail; | |
15847 | } | |
15848 | Py_INCREF(Py_None); resultobj = Py_None; | |
15849 | { | |
15850 | if (temp2) | |
15851 | delete arg2; | |
15852 | } | |
15853 | return resultobj; | |
15854 | fail: | |
15855 | { | |
15856 | if (temp2) | |
15857 | delete arg2; | |
15858 | } | |
15859 | return NULL; | |
15860 | } | |
15861 | ||
15862 | ||
15863 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15864 | PyObject *resultobj; | |
15865 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15866 | PyObject * obj0 = 0 ; | |
15867 | char *kwnames[] = { | |
15868 | (char *) "self", NULL | |
15869 | }; | |
15870 | ||
15871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15872 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15873 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15874 | { |
15875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15876 | (arg1)->Detach(); | |
15877 | ||
15878 | wxPyEndAllowThreads(__tstate); | |
15879 | if (PyErr_Occurred()) SWIG_fail; | |
15880 | } | |
15881 | Py_INCREF(Py_None); resultobj = Py_None; | |
15882 | return resultobj; | |
15883 | fail: | |
15884 | return NULL; | |
15885 | } | |
15886 | ||
15887 | ||
15888 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15889 | PyObject *resultobj; | |
15890 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15891 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
15892 | PyObject * obj0 = 0 ; | |
15893 | PyObject * obj1 = 0 ; | |
15894 | char *kwnames[] = { | |
15895 | (char *) "self",(char *) "tbar", NULL | |
15896 | }; | |
15897 | ||
15898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15901 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
15902 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15903 | { |
15904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15905 | (arg1)->Attach(arg2); | |
15906 | ||
15907 | wxPyEndAllowThreads(__tstate); | |
15908 | if (PyErr_Occurred()) SWIG_fail; | |
15909 | } | |
15910 | Py_INCREF(Py_None); resultobj = Py_None; | |
15911 | return resultobj; | |
15912 | fail: | |
15913 | return NULL; | |
15914 | } | |
15915 | ||
15916 | ||
15917 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15918 | PyObject *resultobj; | |
15919 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15920 | PyObject *result; | |
15921 | PyObject * obj0 = 0 ; | |
15922 | char *kwnames[] = { | |
15923 | (char *) "self", NULL | |
15924 | }; | |
15925 | ||
15926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
15927 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15928 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15929 | { |
15930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15931 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
15932 | ||
15933 | wxPyEndAllowThreads(__tstate); | |
15934 | if (PyErr_Occurred()) SWIG_fail; | |
15935 | } | |
15936 | resultobj = result; | |
15937 | return resultobj; | |
15938 | fail: | |
15939 | return NULL; | |
15940 | } | |
15941 | ||
15942 | ||
15943 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15944 | PyObject *resultobj; | |
15945 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15946 | PyObject *arg2 = (PyObject *) 0 ; | |
15947 | PyObject * obj0 = 0 ; | |
15948 | PyObject * obj1 = 0 ; | |
15949 | char *kwnames[] = { | |
15950 | (char *) "self",(char *) "clientData", NULL | |
15951 | }; | |
15952 | ||
15953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
15954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15956 | arg2 = obj1; |
15957 | { | |
15958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15959 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
15960 | ||
15961 | wxPyEndAllowThreads(__tstate); | |
15962 | if (PyErr_Occurred()) SWIG_fail; | |
15963 | } | |
15964 | Py_INCREF(Py_None); resultobj = Py_None; | |
15965 | return resultobj; | |
15966 | fail: | |
15967 | return NULL; | |
15968 | } | |
15969 | ||
15970 | ||
15971 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
15972 | PyObject *obj; | |
15973 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15974 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
15975 | Py_INCREF(obj); | |
15976 | return Py_BuildValue((char *)""); | |
15977 | } | |
15978 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15979 | PyObject *resultobj; | |
15980 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
15981 | int arg2 ; | |
15982 | wxString *arg3 = 0 ; | |
15983 | wxBitmap *arg4 = 0 ; | |
15984 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
15985 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
15986 | int arg6 = (int) wxITEM_NORMAL ; | |
15987 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15988 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15989 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
15990 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
15991 | PyObject *arg9 = (PyObject *) NULL ; | |
15992 | wxToolBarToolBase *result; | |
423f194a RD |
15993 | bool temp3 = False ; |
15994 | bool temp7 = False ; | |
15995 | bool temp8 = False ; | |
d14a1e28 | 15996 | PyObject * obj0 = 0 ; |
8edf1c75 | 15997 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15998 | PyObject * obj2 = 0 ; |
15999 | PyObject * obj3 = 0 ; | |
16000 | PyObject * obj4 = 0 ; | |
8edf1c75 | 16001 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16002 | PyObject * obj6 = 0 ; |
16003 | PyObject * obj7 = 0 ; | |
16004 | PyObject * obj8 = 0 ; | |
16005 | char *kwnames[] = { | |
16006 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16007 | }; | |
16008 | ||
8edf1c75 | 16009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
16010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16012 | arg2 = (int) SWIG_AsInt(obj1); | |
16013 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16014 | { |
16015 | arg3 = wxString_in_helper(obj2); | |
16016 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16017 | temp3 = True; |
d14a1e28 | 16018 | } |
2f4c0a16 RD |
16019 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16020 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16021 | SWIG_fail; | |
d14a1e28 | 16022 | if (arg4 == NULL) { |
2f4c0a16 RD |
16023 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16024 | SWIG_fail; | |
d14a1e28 RD |
16025 | } |
16026 | if (obj4) { | |
2f4c0a16 RD |
16027 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16028 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16029 | SWIG_fail; | |
d14a1e28 | 16030 | if (arg5 == NULL) { |
2f4c0a16 RD |
16031 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16032 | SWIG_fail; | |
d14a1e28 RD |
16033 | } |
16034 | } | |
8edf1c75 | 16035 | if (obj5) { |
2f4c0a16 RD |
16036 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16037 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16038 | } |
d14a1e28 RD |
16039 | if (obj6) { |
16040 | { | |
16041 | arg7 = wxString_in_helper(obj6); | |
16042 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 16043 | temp7 = True; |
d14a1e28 RD |
16044 | } |
16045 | } | |
16046 | if (obj7) { | |
16047 | { | |
16048 | arg8 = wxString_in_helper(obj7); | |
16049 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16050 | temp8 = True; |
d14a1e28 RD |
16051 | } |
16052 | } | |
16053 | if (obj8) { | |
16054 | arg9 = obj8; | |
16055 | } | |
16056 | { | |
16057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16058 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16059 | ||
16060 | wxPyEndAllowThreads(__tstate); | |
16061 | if (PyErr_Occurred()) SWIG_fail; | |
16062 | } | |
16063 | { | |
16064 | resultobj = wxPyMake_wxObject(result); | |
16065 | } | |
16066 | { | |
16067 | if (temp3) | |
16068 | delete arg3; | |
16069 | } | |
16070 | { | |
16071 | if (temp7) | |
16072 | delete arg7; | |
16073 | } | |
16074 | { | |
16075 | if (temp8) | |
16076 | delete arg8; | |
16077 | } | |
16078 | return resultobj; | |
16079 | fail: | |
16080 | { | |
16081 | if (temp3) | |
16082 | delete arg3; | |
16083 | } | |
16084 | { | |
16085 | if (temp7) | |
16086 | delete arg7; | |
16087 | } | |
16088 | { | |
16089 | if (temp8) | |
16090 | delete arg8; | |
16091 | } | |
16092 | return NULL; | |
16093 | } | |
16094 | ||
16095 | ||
16096 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16097 | PyObject *resultobj; | |
16098 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16099 | size_t arg2 ; | |
16100 | int arg3 ; | |
16101 | wxString *arg4 = 0 ; | |
16102 | wxBitmap *arg5 = 0 ; | |
16103 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16104 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16105 | int arg7 = (int) wxITEM_NORMAL ; | |
16106 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16107 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16108 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16109 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16110 | PyObject *arg10 = (PyObject *) NULL ; | |
16111 | wxToolBarToolBase *result; | |
423f194a RD |
16112 | bool temp4 = False ; |
16113 | bool temp8 = False ; | |
16114 | bool temp9 = False ; | |
d14a1e28 RD |
16115 | PyObject * obj0 = 0 ; |
16116 | PyObject * obj1 = 0 ; | |
8edf1c75 | 16117 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16118 | PyObject * obj3 = 0 ; |
16119 | PyObject * obj4 = 0 ; | |
16120 | PyObject * obj5 = 0 ; | |
8edf1c75 | 16121 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16122 | PyObject * obj7 = 0 ; |
16123 | PyObject * obj8 = 0 ; | |
16124 | PyObject * obj9 = 0 ; | |
16125 | char *kwnames[] = { | |
16126 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16127 | }; | |
16128 | ||
8edf1c75 | 16129 | 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 |
16130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16132 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16133 | if (PyErr_Occurred()) SWIG_fail; | |
16134 | arg3 = (int) SWIG_AsInt(obj2); | |
16135 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16136 | { |
16137 | arg4 = wxString_in_helper(obj3); | |
16138 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 16139 | temp4 = True; |
d14a1e28 | 16140 | } |
2f4c0a16 RD |
16141 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16142 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16143 | SWIG_fail; | |
d14a1e28 | 16144 | if (arg5 == NULL) { |
2f4c0a16 RD |
16145 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16146 | SWIG_fail; | |
d14a1e28 RD |
16147 | } |
16148 | if (obj5) { | |
2f4c0a16 RD |
16149 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16150 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16151 | SWIG_fail; | |
d14a1e28 | 16152 | if (arg6 == NULL) { |
2f4c0a16 RD |
16153 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16154 | SWIG_fail; | |
d14a1e28 RD |
16155 | } |
16156 | } | |
8edf1c75 | 16157 | if (obj6) { |
2f4c0a16 RD |
16158 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
16159 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 16160 | } |
d14a1e28 RD |
16161 | if (obj7) { |
16162 | { | |
16163 | arg8 = wxString_in_helper(obj7); | |
16164 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 16165 | temp8 = True; |
d14a1e28 RD |
16166 | } |
16167 | } | |
16168 | if (obj8) { | |
16169 | { | |
16170 | arg9 = wxString_in_helper(obj8); | |
16171 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 16172 | temp9 = True; |
d14a1e28 RD |
16173 | } |
16174 | } | |
16175 | if (obj9) { | |
16176 | arg10 = obj9; | |
16177 | } | |
16178 | { | |
16179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16180 | 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); | |
16181 | ||
16182 | wxPyEndAllowThreads(__tstate); | |
16183 | if (PyErr_Occurred()) SWIG_fail; | |
16184 | } | |
16185 | { | |
16186 | resultobj = wxPyMake_wxObject(result); | |
16187 | } | |
16188 | { | |
16189 | if (temp4) | |
16190 | delete arg4; | |
16191 | } | |
16192 | { | |
16193 | if (temp8) | |
16194 | delete arg8; | |
16195 | } | |
16196 | { | |
16197 | if (temp9) | |
16198 | delete arg9; | |
16199 | } | |
16200 | return resultobj; | |
16201 | fail: | |
16202 | { | |
16203 | if (temp4) | |
16204 | delete arg4; | |
16205 | } | |
16206 | { | |
16207 | if (temp8) | |
16208 | delete arg8; | |
16209 | } | |
16210 | { | |
16211 | if (temp9) | |
16212 | delete arg9; | |
16213 | } | |
16214 | return NULL; | |
16215 | } | |
16216 | ||
16217 | ||
d03fd34d RD |
16218 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
16219 | PyObject *resultobj; | |
16220 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16221 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
16222 | wxToolBarToolBase *result; | |
16223 | PyObject * obj0 = 0 ; | |
16224 | PyObject * obj1 = 0 ; | |
16225 | char *kwnames[] = { | |
16226 | (char *) "self",(char *) "tool", NULL | |
16227 | }; | |
16228 | ||
16229 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16230 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16231 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16232 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
16233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16234 | { |
16235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16236 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
16237 | ||
16238 | wxPyEndAllowThreads(__tstate); | |
16239 | if (PyErr_Occurred()) SWIG_fail; | |
16240 | } | |
16241 | { | |
16242 | resultobj = wxPyMake_wxObject(result); | |
16243 | } | |
16244 | return resultobj; | |
16245 | fail: | |
16246 | return NULL; | |
16247 | } | |
16248 | ||
16249 | ||
16250 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16251 | PyObject *resultobj; | |
16252 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16253 | size_t arg2 ; | |
16254 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
16255 | wxToolBarToolBase *result; | |
16256 | PyObject * obj0 = 0 ; | |
16257 | PyObject * obj1 = 0 ; | |
16258 | PyObject * obj2 = 0 ; | |
16259 | char *kwnames[] = { | |
16260 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
16261 | }; | |
16262 | ||
16263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16266 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16267 | if (PyErr_Occurred()) SWIG_fail; | |
16268 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
16269 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d RD |
16270 | { |
16271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16272 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
16273 | ||
16274 | wxPyEndAllowThreads(__tstate); | |
16275 | if (PyErr_Occurred()) SWIG_fail; | |
16276 | } | |
16277 | { | |
16278 | resultobj = wxPyMake_wxObject(result); | |
16279 | } | |
16280 | return resultobj; | |
16281 | fail: | |
16282 | return NULL; | |
16283 | } | |
16284 | ||
16285 | ||
d14a1e28 RD |
16286 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
16287 | PyObject *resultobj; | |
16288 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16289 | wxControl *arg2 = (wxControl *) 0 ; | |
16290 | wxToolBarToolBase *result; | |
16291 | PyObject * obj0 = 0 ; | |
16292 | PyObject * obj1 = 0 ; | |
16293 | char *kwnames[] = { | |
16294 | (char *) "self",(char *) "control", NULL | |
16295 | }; | |
16296 | ||
16297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
16301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16302 | { |
16303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16304 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
16305 | ||
16306 | wxPyEndAllowThreads(__tstate); | |
16307 | if (PyErr_Occurred()) SWIG_fail; | |
16308 | } | |
16309 | { | |
16310 | resultobj = wxPyMake_wxObject(result); | |
16311 | } | |
16312 | return resultobj; | |
16313 | fail: | |
16314 | return NULL; | |
16315 | } | |
16316 | ||
16317 | ||
16318 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16319 | PyObject *resultobj; | |
16320 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16321 | size_t arg2 ; | |
16322 | wxControl *arg3 = (wxControl *) 0 ; | |
16323 | wxToolBarToolBase *result; | |
16324 | PyObject * obj0 = 0 ; | |
16325 | PyObject * obj1 = 0 ; | |
16326 | PyObject * obj2 = 0 ; | |
16327 | char *kwnames[] = { | |
16328 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
16329 | }; | |
16330 | ||
16331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
16332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16334 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16335 | if (PyErr_Occurred()) SWIG_fail; | |
16336 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
16337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16338 | { |
16339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16340 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
16341 | ||
16342 | wxPyEndAllowThreads(__tstate); | |
16343 | if (PyErr_Occurred()) SWIG_fail; | |
16344 | } | |
16345 | { | |
16346 | resultobj = wxPyMake_wxObject(result); | |
16347 | } | |
16348 | return resultobj; | |
16349 | fail: | |
16350 | return NULL; | |
16351 | } | |
16352 | ||
16353 | ||
16354 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16355 | PyObject *resultobj; | |
16356 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16357 | int arg2 ; | |
16358 | wxControl *result; | |
16359 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16360 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16361 | char *kwnames[] = { |
16362 | (char *) "self",(char *) "id", NULL | |
16363 | }; | |
16364 | ||
8edf1c75 | 16365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16368 | arg2 = (int) SWIG_AsInt(obj1); | |
16369 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16370 | { |
16371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16372 | result = (wxControl *)(arg1)->FindControl(arg2); | |
16373 | ||
16374 | wxPyEndAllowThreads(__tstate); | |
16375 | if (PyErr_Occurred()) SWIG_fail; | |
16376 | } | |
16377 | { | |
16378 | resultobj = wxPyMake_wxObject(result); | |
16379 | } | |
16380 | return resultobj; | |
16381 | fail: | |
16382 | return NULL; | |
16383 | } | |
16384 | ||
16385 | ||
16386 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16387 | PyObject *resultobj; | |
16388 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16389 | wxToolBarToolBase *result; | |
16390 | PyObject * obj0 = 0 ; | |
16391 | char *kwnames[] = { | |
16392 | (char *) "self", NULL | |
16393 | }; | |
16394 | ||
16395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16398 | { |
16399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16400 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
16401 | ||
16402 | wxPyEndAllowThreads(__tstate); | |
16403 | if (PyErr_Occurred()) SWIG_fail; | |
16404 | } | |
16405 | { | |
16406 | resultobj = wxPyMake_wxObject(result); | |
16407 | } | |
16408 | return resultobj; | |
16409 | fail: | |
16410 | return NULL; | |
16411 | } | |
16412 | ||
16413 | ||
16414 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16415 | PyObject *resultobj; | |
16416 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16417 | size_t arg2 ; | |
16418 | wxToolBarToolBase *result; | |
16419 | PyObject * obj0 = 0 ; | |
16420 | PyObject * obj1 = 0 ; | |
16421 | char *kwnames[] = { | |
16422 | (char *) "self",(char *) "pos", NULL | |
16423 | }; | |
16424 | ||
16425 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16426 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16427 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16428 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16429 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16430 | { |
16431 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16432 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
16433 | ||
16434 | wxPyEndAllowThreads(__tstate); | |
16435 | if (PyErr_Occurred()) SWIG_fail; | |
16436 | } | |
16437 | { | |
16438 | resultobj = wxPyMake_wxObject(result); | |
16439 | } | |
16440 | return resultobj; | |
16441 | fail: | |
16442 | return NULL; | |
16443 | } | |
16444 | ||
16445 | ||
16446 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16447 | PyObject *resultobj; | |
16448 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16449 | int arg2 ; | |
16450 | wxToolBarToolBase *result; | |
16451 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16452 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16453 | char *kwnames[] = { |
16454 | (char *) "self",(char *) "id", NULL | |
16455 | }; | |
16456 | ||
8edf1c75 | 16457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16460 | arg2 = (int) SWIG_AsInt(obj1); | |
16461 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16462 | { |
16463 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16464 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
16465 | ||
16466 | wxPyEndAllowThreads(__tstate); | |
16467 | if (PyErr_Occurred()) SWIG_fail; | |
16468 | } | |
16469 | { | |
16470 | resultobj = wxPyMake_wxObject(result); | |
16471 | } | |
16472 | return resultobj; | |
16473 | fail: | |
16474 | return NULL; | |
16475 | } | |
16476 | ||
16477 | ||
16478 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16479 | PyObject *resultobj; | |
16480 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16481 | size_t arg2 ; | |
16482 | bool result; | |
16483 | PyObject * obj0 = 0 ; | |
16484 | PyObject * obj1 = 0 ; | |
16485 | char *kwnames[] = { | |
16486 | (char *) "self",(char *) "pos", NULL | |
16487 | }; | |
16488 | ||
16489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
16490 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16491 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16492 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16493 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16494 | { |
16495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16496 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
16497 | ||
16498 | wxPyEndAllowThreads(__tstate); | |
16499 | if (PyErr_Occurred()) SWIG_fail; | |
16500 | } | |
4f89f6a3 RD |
16501 | { |
16502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16503 | } | |
d14a1e28 RD |
16504 | return resultobj; |
16505 | fail: | |
16506 | return NULL; | |
16507 | } | |
16508 | ||
16509 | ||
16510 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16511 | PyObject *resultobj; | |
16512 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16513 | int arg2 ; | |
16514 | bool result; | |
16515 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16516 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16517 | char *kwnames[] = { |
16518 | (char *) "self",(char *) "id", NULL | |
16519 | }; | |
16520 | ||
8edf1c75 | 16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16524 | arg2 = (int) SWIG_AsInt(obj1); | |
16525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16526 | { |
16527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16528 | result = (bool)(arg1)->DeleteTool(arg2); | |
16529 | ||
16530 | wxPyEndAllowThreads(__tstate); | |
16531 | if (PyErr_Occurred()) SWIG_fail; | |
16532 | } | |
4f89f6a3 RD |
16533 | { |
16534 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16535 | } | |
d14a1e28 RD |
16536 | return resultobj; |
16537 | fail: | |
16538 | return NULL; | |
16539 | } | |
16540 | ||
16541 | ||
16542 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16543 | PyObject *resultobj; | |
16544 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16545 | PyObject * obj0 = 0 ; | |
16546 | char *kwnames[] = { | |
16547 | (char *) "self", NULL | |
16548 | }; | |
16549 | ||
16550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16553 | { |
16554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16555 | (arg1)->ClearTools(); | |
16556 | ||
16557 | wxPyEndAllowThreads(__tstate); | |
16558 | if (PyErr_Occurred()) SWIG_fail; | |
16559 | } | |
16560 | Py_INCREF(Py_None); resultobj = Py_None; | |
16561 | return resultobj; | |
16562 | fail: | |
16563 | return NULL; | |
16564 | } | |
16565 | ||
16566 | ||
16567 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16568 | PyObject *resultobj; | |
16569 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16570 | bool result; | |
16571 | PyObject * obj0 = 0 ; | |
16572 | char *kwnames[] = { | |
16573 | (char *) "self", NULL | |
16574 | }; | |
16575 | ||
16576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
16577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16579 | { |
16580 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16581 | result = (bool)(arg1)->Realize(); | |
16582 | ||
16583 | wxPyEndAllowThreads(__tstate); | |
16584 | if (PyErr_Occurred()) SWIG_fail; | |
16585 | } | |
4f89f6a3 RD |
16586 | { |
16587 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16588 | } | |
d14a1e28 RD |
16589 | return resultobj; |
16590 | fail: | |
16591 | return NULL; | |
16592 | } | |
16593 | ||
16594 | ||
16595 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16596 | PyObject *resultobj; | |
16597 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16598 | int arg2 ; | |
16599 | bool arg3 ; | |
16600 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16601 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16602 | PyObject * obj2 = 0 ; |
16603 | char *kwnames[] = { | |
16604 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
16605 | }; | |
16606 | ||
8edf1c75 | 16607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16610 | arg2 = (int) SWIG_AsInt(obj1); | |
16611 | if (PyErr_Occurred()) SWIG_fail; | |
16612 | arg3 = (bool) SWIG_AsBool(obj2); | |
16613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16614 | { |
16615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16616 | (arg1)->EnableTool(arg2,arg3); | |
16617 | ||
16618 | wxPyEndAllowThreads(__tstate); | |
16619 | if (PyErr_Occurred()) SWIG_fail; | |
16620 | } | |
16621 | Py_INCREF(Py_None); resultobj = Py_None; | |
16622 | return resultobj; | |
16623 | fail: | |
16624 | return NULL; | |
16625 | } | |
16626 | ||
16627 | ||
16628 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16629 | PyObject *resultobj; | |
16630 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16631 | int arg2 ; | |
16632 | bool arg3 ; | |
16633 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16634 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16635 | PyObject * obj2 = 0 ; |
16636 | char *kwnames[] = { | |
16637 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16638 | }; | |
16639 | ||
8edf1c75 | 16640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16643 | arg2 = (int) SWIG_AsInt(obj1); | |
16644 | if (PyErr_Occurred()) SWIG_fail; | |
16645 | arg3 = (bool) SWIG_AsBool(obj2); | |
16646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16647 | { |
16648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16649 | (arg1)->ToggleTool(arg2,arg3); | |
16650 | ||
16651 | wxPyEndAllowThreads(__tstate); | |
16652 | if (PyErr_Occurred()) SWIG_fail; | |
16653 | } | |
16654 | Py_INCREF(Py_None); resultobj = Py_None; | |
16655 | return resultobj; | |
16656 | fail: | |
16657 | return NULL; | |
16658 | } | |
16659 | ||
16660 | ||
16661 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16662 | PyObject *resultobj; | |
16663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16664 | int arg2 ; | |
16665 | bool arg3 ; | |
16666 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16668 | PyObject * obj2 = 0 ; |
16669 | char *kwnames[] = { | |
16670 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
16671 | }; | |
16672 | ||
8edf1c75 | 16673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16676 | arg2 = (int) SWIG_AsInt(obj1); | |
16677 | if (PyErr_Occurred()) SWIG_fail; | |
16678 | arg3 = (bool) SWIG_AsBool(obj2); | |
16679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16680 | { |
16681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16682 | (arg1)->SetToggle(arg2,arg3); | |
16683 | ||
16684 | wxPyEndAllowThreads(__tstate); | |
16685 | if (PyErr_Occurred()) SWIG_fail; | |
16686 | } | |
16687 | Py_INCREF(Py_None); resultobj = Py_None; | |
16688 | return resultobj; | |
16689 | fail: | |
16690 | return NULL; | |
16691 | } | |
16692 | ||
16693 | ||
16694 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16695 | PyObject *resultobj; | |
16696 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16697 | int arg2 ; | |
16698 | PyObject *result; | |
16699 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16701 | char *kwnames[] = { |
16702 | (char *) "self",(char *) "id", NULL | |
16703 | }; | |
16704 | ||
8edf1c75 | 16705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16708 | arg2 = (int) SWIG_AsInt(obj1); | |
16709 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16710 | { |
16711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16712 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
16713 | ||
16714 | wxPyEndAllowThreads(__tstate); | |
16715 | if (PyErr_Occurred()) SWIG_fail; | |
16716 | } | |
16717 | resultobj = result; | |
16718 | return resultobj; | |
16719 | fail: | |
16720 | return NULL; | |
16721 | } | |
16722 | ||
16723 | ||
16724 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16725 | PyObject *resultobj; | |
16726 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16727 | int arg2 ; | |
16728 | PyObject *arg3 = (PyObject *) 0 ; | |
16729 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16730 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16731 | PyObject * obj2 = 0 ; |
16732 | char *kwnames[] = { | |
16733 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
16734 | }; | |
16735 | ||
8edf1c75 | 16736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16739 | arg2 = (int) SWIG_AsInt(obj1); | |
16740 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16741 | arg3 = obj2; |
16742 | { | |
16743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16744 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
16745 | ||
16746 | wxPyEndAllowThreads(__tstate); | |
16747 | if (PyErr_Occurred()) SWIG_fail; | |
16748 | } | |
16749 | Py_INCREF(Py_None); resultobj = Py_None; | |
16750 | return resultobj; | |
16751 | fail: | |
16752 | return NULL; | |
16753 | } | |
16754 | ||
16755 | ||
16756 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16757 | PyObject *resultobj; | |
16758 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16759 | int arg2 ; | |
16760 | int result; | |
16761 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16763 | char *kwnames[] = { |
16764 | (char *) "self",(char *) "id", NULL | |
16765 | }; | |
16766 | ||
8edf1c75 | 16767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16770 | arg2 = (int) SWIG_AsInt(obj1); | |
16771 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16772 | { |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
2f4c0a16 | 16779 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16780 | return resultobj; |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16787 | PyObject *resultobj; | |
16788 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16789 | int arg2 ; | |
16790 | bool result; | |
16791 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16792 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16793 | char *kwnames[] = { |
16794 | (char *) "self",(char *) "id", NULL | |
16795 | }; | |
16796 | ||
8edf1c75 | 16797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16800 | arg2 = (int) SWIG_AsInt(obj1); | |
16801 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16802 | { |
16803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16804 | result = (bool)(arg1)->GetToolState(arg2); | |
16805 | ||
16806 | wxPyEndAllowThreads(__tstate); | |
16807 | if (PyErr_Occurred()) SWIG_fail; | |
16808 | } | |
4f89f6a3 RD |
16809 | { |
16810 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16811 | } | |
d14a1e28 RD |
16812 | return resultobj; |
16813 | fail: | |
16814 | return NULL; | |
16815 | } | |
16816 | ||
16817 | ||
16818 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16819 | PyObject *resultobj; | |
16820 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16821 | int arg2 ; | |
16822 | bool result; | |
16823 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16824 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16825 | char *kwnames[] = { |
16826 | (char *) "self",(char *) "id", NULL | |
16827 | }; | |
16828 | ||
8edf1c75 | 16829 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16830 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16831 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16832 | arg2 = (int) SWIG_AsInt(obj1); | |
16833 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16834 | { |
16835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16836 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
16837 | ||
16838 | wxPyEndAllowThreads(__tstate); | |
16839 | if (PyErr_Occurred()) SWIG_fail; | |
16840 | } | |
4f89f6a3 RD |
16841 | { |
16842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16843 | } | |
d14a1e28 RD |
16844 | return resultobj; |
16845 | fail: | |
16846 | return NULL; | |
16847 | } | |
16848 | ||
16849 | ||
16850 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16851 | PyObject *resultobj; | |
16852 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16853 | int arg2 ; | |
16854 | wxString *arg3 = 0 ; | |
423f194a | 16855 | bool temp3 = False ; |
d14a1e28 | 16856 | PyObject * obj0 = 0 ; |
8edf1c75 | 16857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16858 | PyObject * obj2 = 0 ; |
16859 | char *kwnames[] = { | |
16860 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16861 | }; | |
16862 | ||
8edf1c75 | 16863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16866 | arg2 = (int) SWIG_AsInt(obj1); | |
16867 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16868 | { |
16869 | arg3 = wxString_in_helper(obj2); | |
16870 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16871 | temp3 = True; |
d14a1e28 RD |
16872 | } |
16873 | { | |
16874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16875 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
16876 | ||
16877 | wxPyEndAllowThreads(__tstate); | |
16878 | if (PyErr_Occurred()) SWIG_fail; | |
16879 | } | |
16880 | Py_INCREF(Py_None); resultobj = Py_None; | |
16881 | { | |
16882 | if (temp3) | |
16883 | delete arg3; | |
16884 | } | |
16885 | return resultobj; | |
16886 | fail: | |
16887 | { | |
16888 | if (temp3) | |
16889 | delete arg3; | |
16890 | } | |
16891 | return NULL; | |
16892 | } | |
16893 | ||
16894 | ||
16895 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16896 | PyObject *resultobj; | |
16897 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16898 | int arg2 ; | |
16899 | wxString result; | |
16900 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16901 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16902 | char *kwnames[] = { |
16903 | (char *) "self",(char *) "id", NULL | |
16904 | }; | |
16905 | ||
8edf1c75 | 16906 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16907 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16908 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16909 | arg2 = (int) SWIG_AsInt(obj1); | |
16910 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16911 | { |
16912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16913 | result = (arg1)->GetToolShortHelp(arg2); | |
16914 | ||
16915 | wxPyEndAllowThreads(__tstate); | |
16916 | if (PyErr_Occurred()) SWIG_fail; | |
16917 | } | |
16918 | { | |
16919 | #if wxUSE_UNICODE | |
16920 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16921 | #else | |
16922 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16923 | #endif | |
16924 | } | |
16925 | return resultobj; | |
16926 | fail: | |
16927 | return NULL; | |
16928 | } | |
16929 | ||
16930 | ||
16931 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16932 | PyObject *resultobj; | |
16933 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16934 | int arg2 ; | |
16935 | wxString *arg3 = 0 ; | |
423f194a | 16936 | bool temp3 = False ; |
d14a1e28 | 16937 | PyObject * obj0 = 0 ; |
8edf1c75 | 16938 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16939 | PyObject * obj2 = 0 ; |
16940 | char *kwnames[] = { | |
16941 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
16942 | }; | |
16943 | ||
8edf1c75 | 16944 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
16945 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16946 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16947 | arg2 = (int) SWIG_AsInt(obj1); | |
16948 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16949 | { |
16950 | arg3 = wxString_in_helper(obj2); | |
16951 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 16952 | temp3 = True; |
d14a1e28 RD |
16953 | } |
16954 | { | |
16955 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16956 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
16957 | ||
16958 | wxPyEndAllowThreads(__tstate); | |
16959 | if (PyErr_Occurred()) SWIG_fail; | |
16960 | } | |
16961 | Py_INCREF(Py_None); resultobj = Py_None; | |
16962 | { | |
16963 | if (temp3) | |
16964 | delete arg3; | |
16965 | } | |
16966 | return resultobj; | |
16967 | fail: | |
16968 | { | |
16969 | if (temp3) | |
16970 | delete arg3; | |
16971 | } | |
16972 | return NULL; | |
16973 | } | |
16974 | ||
16975 | ||
16976 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16977 | PyObject *resultobj; | |
16978 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16979 | int arg2 ; | |
16980 | wxString result; | |
16981 | PyObject * obj0 = 0 ; | |
8edf1c75 | 16982 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16983 | char *kwnames[] = { |
16984 | (char *) "self",(char *) "id", NULL | |
16985 | }; | |
16986 | ||
8edf1c75 | 16987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
16988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16990 | arg2 = (int) SWIG_AsInt(obj1); | |
16991 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16992 | { |
16993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16994 | result = (arg1)->GetToolLongHelp(arg2); | |
16995 | ||
16996 | wxPyEndAllowThreads(__tstate); | |
16997 | if (PyErr_Occurred()) SWIG_fail; | |
16998 | } | |
16999 | { | |
17000 | #if wxUSE_UNICODE | |
17001 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17002 | #else | |
17003 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17004 | #endif | |
17005 | } | |
17006 | return resultobj; | |
17007 | fail: | |
17008 | return NULL; | |
17009 | } | |
17010 | ||
17011 | ||
17012 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17013 | PyObject *resultobj; | |
17014 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17015 | int arg2 ; | |
17016 | int arg3 ; | |
17017 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17018 | PyObject * obj1 = 0 ; |
17019 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17020 | char *kwnames[] = { |
17021 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17022 | }; | |
17023 | ||
8edf1c75 | 17024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17027 | arg2 = (int) SWIG_AsInt(obj1); | |
17028 | if (PyErr_Occurred()) SWIG_fail; | |
17029 | arg3 = (int) SWIG_AsInt(obj2); | |
17030 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17031 | { |
17032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17033 | (arg1)->SetMargins(arg2,arg3); | |
17034 | ||
17035 | wxPyEndAllowThreads(__tstate); | |
17036 | if (PyErr_Occurred()) SWIG_fail; | |
17037 | } | |
17038 | Py_INCREF(Py_None); resultobj = Py_None; | |
17039 | return resultobj; | |
17040 | fail: | |
17041 | return NULL; | |
17042 | } | |
17043 | ||
17044 | ||
17045 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17046 | PyObject *resultobj; | |
17047 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17048 | wxSize *arg2 = 0 ; | |
17049 | wxSize temp2 ; | |
17050 | PyObject * obj0 = 0 ; | |
17051 | PyObject * obj1 = 0 ; | |
17052 | char *kwnames[] = { | |
17053 | (char *) "self",(char *) "size", NULL | |
17054 | }; | |
17055 | ||
17056 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17057 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17059 | { |
17060 | arg2 = &temp2; | |
17061 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17062 | } | |
17063 | { | |
17064 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17065 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17066 | ||
17067 | wxPyEndAllowThreads(__tstate); | |
17068 | if (PyErr_Occurred()) SWIG_fail; | |
17069 | } | |
17070 | Py_INCREF(Py_None); resultobj = Py_None; | |
17071 | return resultobj; | |
17072 | fail: | |
17073 | return NULL; | |
17074 | } | |
17075 | ||
17076 | ||
17077 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17078 | PyObject *resultobj; | |
17079 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17080 | int arg2 ; | |
17081 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17083 | char *kwnames[] = { |
17084 | (char *) "self",(char *) "packing", NULL | |
17085 | }; | |
17086 | ||
8edf1c75 | 17087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17090 | arg2 = (int) SWIG_AsInt(obj1); | |
17091 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17092 | { |
17093 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17094 | (arg1)->SetToolPacking(arg2); | |
17095 | ||
17096 | wxPyEndAllowThreads(__tstate); | |
17097 | if (PyErr_Occurred()) SWIG_fail; | |
17098 | } | |
17099 | Py_INCREF(Py_None); resultobj = Py_None; | |
17100 | return resultobj; | |
17101 | fail: | |
17102 | return NULL; | |
17103 | } | |
17104 | ||
17105 | ||
17106 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17107 | PyObject *resultobj; | |
17108 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17109 | int arg2 ; | |
17110 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17111 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17112 | char *kwnames[] = { |
17113 | (char *) "self",(char *) "separation", NULL | |
17114 | }; | |
17115 | ||
8edf1c75 | 17116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17119 | arg2 = (int) SWIG_AsInt(obj1); | |
17120 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17121 | { |
17122 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17123 | (arg1)->SetToolSeparation(arg2); | |
17124 | ||
17125 | wxPyEndAllowThreads(__tstate); | |
17126 | if (PyErr_Occurred()) SWIG_fail; | |
17127 | } | |
17128 | Py_INCREF(Py_None); resultobj = Py_None; | |
17129 | return resultobj; | |
17130 | fail: | |
17131 | return NULL; | |
17132 | } | |
17133 | ||
17134 | ||
17135 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17136 | PyObject *resultobj; | |
17137 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17138 | wxSize result; | |
17139 | PyObject * obj0 = 0 ; | |
17140 | char *kwnames[] = { | |
17141 | (char *) "self", NULL | |
17142 | }; | |
17143 | ||
17144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17147 | { |
17148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17149 | result = (arg1)->GetToolMargins(); | |
17150 | ||
17151 | wxPyEndAllowThreads(__tstate); | |
17152 | if (PyErr_Occurred()) SWIG_fail; | |
17153 | } | |
17154 | { | |
17155 | wxSize * resultptr; | |
17156 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17157 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17158 | } |
17159 | return resultobj; | |
17160 | fail: | |
17161 | return NULL; | |
17162 | } | |
17163 | ||
17164 | ||
17165 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17166 | PyObject *resultobj; | |
17167 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17168 | wxSize result; | |
17169 | PyObject * obj0 = 0 ; | |
17170 | char *kwnames[] = { | |
17171 | (char *) "self", NULL | |
17172 | }; | |
17173 | ||
17174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17177 | { |
17178 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17179 | result = (arg1)->GetMargins(); | |
17180 | ||
17181 | wxPyEndAllowThreads(__tstate); | |
17182 | if (PyErr_Occurred()) SWIG_fail; | |
17183 | } | |
17184 | { | |
17185 | wxSize * resultptr; | |
17186 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17187 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17188 | } |
17189 | return resultobj; | |
17190 | fail: | |
17191 | return NULL; | |
17192 | } | |
17193 | ||
17194 | ||
17195 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17196 | PyObject *resultobj; | |
17197 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17198 | int result; | |
17199 | PyObject * obj0 = 0 ; | |
17200 | char *kwnames[] = { | |
17201 | (char *) "self", NULL | |
17202 | }; | |
17203 | ||
17204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17207 | { |
17208 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17209 | result = (int)(arg1)->GetToolPacking(); | |
17210 | ||
17211 | wxPyEndAllowThreads(__tstate); | |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
17213 | } | |
2f4c0a16 | 17214 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17215 | return resultobj; |
17216 | fail: | |
17217 | return NULL; | |
17218 | } | |
17219 | ||
17220 | ||
17221 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17222 | PyObject *resultobj; | |
17223 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17224 | int result; | |
17225 | PyObject * obj0 = 0 ; | |
17226 | char *kwnames[] = { | |
17227 | (char *) "self", NULL | |
17228 | }; | |
17229 | ||
17230 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17231 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17232 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17233 | { |
17234 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17235 | result = (int)(arg1)->GetToolSeparation(); | |
17236 | ||
17237 | wxPyEndAllowThreads(__tstate); | |
17238 | if (PyErr_Occurred()) SWIG_fail; | |
17239 | } | |
2f4c0a16 | 17240 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17241 | return resultobj; |
17242 | fail: | |
17243 | return NULL; | |
17244 | } | |
17245 | ||
17246 | ||
17247 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17248 | PyObject *resultobj; | |
17249 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17250 | int arg2 ; | |
17251 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17252 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17253 | char *kwnames[] = { |
17254 | (char *) "self",(char *) "nRows", NULL | |
17255 | }; | |
17256 | ||
8edf1c75 | 17257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17260 | arg2 = (int) SWIG_AsInt(obj1); | |
17261 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17262 | { |
17263 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17264 | (arg1)->SetRows(arg2); | |
17265 | ||
17266 | wxPyEndAllowThreads(__tstate); | |
17267 | if (PyErr_Occurred()) SWIG_fail; | |
17268 | } | |
17269 | Py_INCREF(Py_None); resultobj = Py_None; | |
17270 | return resultobj; | |
17271 | fail: | |
17272 | return NULL; | |
17273 | } | |
17274 | ||
17275 | ||
17276 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17277 | PyObject *resultobj; | |
17278 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17279 | int arg2 ; | |
17280 | int arg3 ; | |
17281 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17282 | PyObject * obj1 = 0 ; |
17283 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17284 | char *kwnames[] = { |
17285 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
17286 | }; | |
17287 | ||
8edf1c75 | 17288 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17289 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17290 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17291 | arg2 = (int) SWIG_AsInt(obj1); | |
17292 | if (PyErr_Occurred()) SWIG_fail; | |
17293 | arg3 = (int) SWIG_AsInt(obj2); | |
17294 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17295 | { |
17296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17297 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
17298 | ||
17299 | wxPyEndAllowThreads(__tstate); | |
17300 | if (PyErr_Occurred()) SWIG_fail; | |
17301 | } | |
17302 | Py_INCREF(Py_None); resultobj = Py_None; | |
17303 | return resultobj; | |
17304 | fail: | |
17305 | return NULL; | |
17306 | } | |
17307 | ||
17308 | ||
17309 | static PyObject *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17310 | PyObject *resultobj; | |
17311 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17312 | int result; | |
17313 | PyObject * obj0 = 0 ; | |
17314 | char *kwnames[] = { | |
17315 | (char *) "self", NULL | |
17316 | }; | |
17317 | ||
17318 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17319 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17320 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17321 | { |
17322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17323 | result = (int)(arg1)->GetMaxRows(); | |
17324 | ||
17325 | wxPyEndAllowThreads(__tstate); | |
17326 | if (PyErr_Occurred()) SWIG_fail; | |
17327 | } | |
2f4c0a16 | 17328 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17329 | return resultobj; |
17330 | fail: | |
17331 | return NULL; | |
17332 | } | |
17333 | ||
17334 | ||
17335 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17336 | PyObject *resultobj; | |
17337 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17338 | int result; | |
17339 | PyObject * obj0 = 0 ; | |
17340 | char *kwnames[] = { | |
17341 | (char *) "self", NULL | |
17342 | }; | |
17343 | ||
17344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17347 | { |
17348 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17349 | result = (int)(arg1)->GetMaxCols(); | |
17350 | ||
17351 | wxPyEndAllowThreads(__tstate); | |
17352 | if (PyErr_Occurred()) SWIG_fail; | |
17353 | } | |
2f4c0a16 | 17354 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17355 | return resultobj; |
17356 | fail: | |
17357 | return NULL; | |
17358 | } | |
17359 | ||
17360 | ||
17361 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17362 | PyObject *resultobj; | |
17363 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17364 | wxSize *arg2 = 0 ; | |
17365 | wxSize temp2 ; | |
17366 | PyObject * obj0 = 0 ; | |
17367 | PyObject * obj1 = 0 ; | |
17368 | char *kwnames[] = { | |
17369 | (char *) "self",(char *) "size", NULL | |
17370 | }; | |
17371 | ||
17372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17373 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17374 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17375 | { |
17376 | arg2 = &temp2; | |
17377 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17378 | } | |
17379 | { | |
17380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17381 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
17382 | ||
17383 | wxPyEndAllowThreads(__tstate); | |
17384 | if (PyErr_Occurred()) SWIG_fail; | |
17385 | } | |
17386 | Py_INCREF(Py_None); resultobj = Py_None; | |
17387 | return resultobj; | |
17388 | fail: | |
17389 | return NULL; | |
17390 | } | |
17391 | ||
17392 | ||
17393 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17394 | PyObject *resultobj; | |
17395 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17396 | wxSize result; | |
17397 | PyObject * obj0 = 0 ; | |
17398 | char *kwnames[] = { | |
17399 | (char *) "self", NULL | |
17400 | }; | |
17401 | ||
17402 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17403 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17404 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17405 | { |
17406 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17407 | result = (arg1)->GetToolBitmapSize(); | |
17408 | ||
17409 | wxPyEndAllowThreads(__tstate); | |
17410 | if (PyErr_Occurred()) SWIG_fail; | |
17411 | } | |
17412 | { | |
17413 | wxSize * resultptr; | |
17414 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17415 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17416 | } |
17417 | return resultobj; | |
17418 | fail: | |
17419 | return NULL; | |
17420 | } | |
17421 | ||
17422 | ||
17423 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17424 | PyObject *resultobj; | |
17425 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17426 | wxSize result; | |
17427 | PyObject * obj0 = 0 ; | |
17428 | char *kwnames[] = { | |
17429 | (char *) "self", NULL | |
17430 | }; | |
17431 | ||
17432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17435 | { |
17436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17437 | result = (arg1)->GetToolSize(); | |
17438 | ||
17439 | wxPyEndAllowThreads(__tstate); | |
17440 | if (PyErr_Occurred()) SWIG_fail; | |
17441 | } | |
17442 | { | |
17443 | wxSize * resultptr; | |
17444 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 17445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
17446 | } |
17447 | return resultobj; | |
17448 | fail: | |
17449 | return NULL; | |
17450 | } | |
17451 | ||
17452 | ||
17453 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17454 | PyObject *resultobj; | |
17455 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
423f194a RD |
17456 | int arg2 ; |
17457 | int arg3 ; | |
d14a1e28 RD |
17458 | wxToolBarToolBase *result; |
17459 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17460 | PyObject * obj1 = 0 ; |
17461 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17462 | char *kwnames[] = { |
17463 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17464 | }; | |
17465 | ||
8edf1c75 | 17466 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17467 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17468 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17469 | arg2 = (int) SWIG_AsInt(obj1); | |
17470 | if (PyErr_Occurred()) SWIG_fail; | |
17471 | arg3 = (int) SWIG_AsInt(obj2); | |
17472 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17473 | { |
17474 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17475 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17476 | ||
17477 | wxPyEndAllowThreads(__tstate); | |
17478 | if (PyErr_Occurred()) SWIG_fail; | |
17479 | } | |
17480 | { | |
17481 | resultobj = wxPyMake_wxObject(result); | |
17482 | } | |
17483 | return resultobj; | |
17484 | fail: | |
17485 | return NULL; | |
17486 | } | |
17487 | ||
17488 | ||
d03fd34d RD |
17489 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
17490 | PyObject *resultobj; | |
17491 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17492 | int arg2 ; | |
17493 | wxToolBarToolBase *result; | |
17494 | PyObject * obj0 = 0 ; | |
8edf1c75 | 17495 | PyObject * obj1 = 0 ; |
d03fd34d RD |
17496 | char *kwnames[] = { |
17497 | (char *) "self",(char *) "toolid", NULL | |
17498 | }; | |
17499 | ||
8edf1c75 | 17500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
17501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17503 | arg2 = (int) SWIG_AsInt(obj1); | |
17504 | if (PyErr_Occurred()) SWIG_fail; | |
d03fd34d RD |
17505 | { |
17506 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17507 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
17508 | ||
17509 | wxPyEndAllowThreads(__tstate); | |
17510 | if (PyErr_Occurred()) SWIG_fail; | |
17511 | } | |
17512 | { | |
17513 | resultobj = wxPyMake_wxObject(result); | |
17514 | } | |
17515 | return resultobj; | |
17516 | fail: | |
17517 | return NULL; | |
17518 | } | |
17519 | ||
17520 | ||
d14a1e28 RD |
17521 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
17522 | PyObject *resultobj; | |
17523 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17524 | bool result; | |
17525 | PyObject * obj0 = 0 ; | |
17526 | char *kwnames[] = { | |
17527 | (char *) "self", NULL | |
17528 | }; | |
17529 | ||
17530 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17531 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17532 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17533 | { |
17534 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17535 | result = (bool)(arg1)->IsVertical(); | |
17536 | ||
17537 | wxPyEndAllowThreads(__tstate); | |
17538 | if (PyErr_Occurred()) SWIG_fail; | |
17539 | } | |
4f89f6a3 RD |
17540 | { |
17541 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17542 | } | |
d14a1e28 RD |
17543 | return resultobj; |
17544 | fail: | |
17545 | return NULL; | |
17546 | } | |
17547 | ||
17548 | ||
17549 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
17550 | PyObject *obj; | |
17551 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17552 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
17553 | Py_INCREF(obj); | |
17554 | return Py_BuildValue((char *)""); | |
17555 | } | |
17556 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17557 | PyObject *resultobj; | |
17558 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 17559 | int arg2 ; |
d14a1e28 RD |
17560 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
17561 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
17562 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
17563 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
17564 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17565 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
17566 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
17567 | wxToolBar *result; | |
17568 | wxPoint temp3 ; | |
17569 | wxSize temp4 ; | |
423f194a | 17570 | bool temp6 = False ; |
d14a1e28 | 17571 | PyObject * obj0 = 0 ; |
8edf1c75 | 17572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17573 | PyObject * obj2 = 0 ; |
17574 | PyObject * obj3 = 0 ; | |
8edf1c75 | 17575 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
17576 | PyObject * obj5 = 0 ; |
17577 | char *kwnames[] = { | |
17578 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17579 | }; | |
17580 | ||
8edf1c75 | 17581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
17582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
17583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17584 | arg2 = (int) SWIG_AsInt(obj1); | |
17585 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17586 | if (obj2) { |
17587 | { | |
17588 | arg3 = &temp3; | |
17589 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
17590 | } | |
17591 | } | |
17592 | if (obj3) { | |
17593 | { | |
17594 | arg4 = &temp4; | |
17595 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
17596 | } | |
17597 | } | |
8edf1c75 | 17598 | if (obj4) { |
2f4c0a16 RD |
17599 | arg5 = (long) SWIG_AsLong(obj4); |
17600 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17601 | } |
d14a1e28 RD |
17602 | if (obj5) { |
17603 | { | |
17604 | arg6 = wxString_in_helper(obj5); | |
17605 | if (arg6 == NULL) SWIG_fail; | |
423f194a | 17606 | temp6 = True; |
d14a1e28 RD |
17607 | } |
17608 | } | |
17609 | { | |
17610 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17611 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
17612 | ||
17613 | wxPyEndAllowThreads(__tstate); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
17615 | } | |
17616 | { | |
17617 | resultobj = wxPyMake_wxObject(result); | |
17618 | } | |
17619 | { | |
17620 | if (temp6) | |
17621 | delete arg6; | |
17622 | } | |
17623 | return resultobj; | |
17624 | fail: | |
17625 | { | |
17626 | if (temp6) | |
17627 | delete arg6; | |
17628 | } | |
17629 | return NULL; | |
17630 | } | |
17631 | ||
17632 | ||
17633 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17634 | PyObject *resultobj; | |
17635 | wxToolBar *result; | |
17636 | char *kwnames[] = { | |
17637 | NULL | |
17638 | }; | |
17639 | ||
17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
17641 | { | |
17642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17643 | result = (wxToolBar *)new wxToolBar(); | |
17644 | ||
17645 | wxPyEndAllowThreads(__tstate); | |
17646 | if (PyErr_Occurred()) SWIG_fail; | |
17647 | } | |
17648 | { | |
17649 | resultobj = wxPyMake_wxObject(result); | |
17650 | } | |
17651 | return resultobj; | |
17652 | fail: | |
17653 | return NULL; | |
17654 | } | |
17655 | ||
17656 | ||
17657 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17658 | PyObject *resultobj; | |
17659 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
17660 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 17661 | int arg3 ; |
d14a1e28 RD |
17662 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
17663 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
17664 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
17665 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
17666 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
17667 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
17668 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
17669 | bool result; | |
17670 | wxPoint temp4 ; | |
17671 | wxSize temp5 ; | |
423f194a | 17672 | bool temp7 = False ; |
d14a1e28 RD |
17673 | PyObject * obj0 = 0 ; |
17674 | PyObject * obj1 = 0 ; | |
8edf1c75 | 17675 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
17676 | PyObject * obj3 = 0 ; |
17677 | PyObject * obj4 = 0 ; | |
8edf1c75 | 17678 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
17679 | PyObject * obj6 = 0 ; |
17680 | char *kwnames[] = { | |
17681 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
17682 | }; | |
17683 | ||
8edf1c75 | 17684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
17685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17687 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
17688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17689 | arg3 = (int) SWIG_AsInt(obj2); | |
17690 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17691 | if (obj3) { |
17692 | { | |
17693 | arg4 = &temp4; | |
17694 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
17695 | } | |
17696 | } | |
17697 | if (obj4) { | |
17698 | { | |
17699 | arg5 = &temp5; | |
17700 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
17701 | } | |
17702 | } | |
8edf1c75 | 17703 | if (obj5) { |
2f4c0a16 RD |
17704 | arg6 = (long) SWIG_AsLong(obj5); |
17705 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 17706 | } |
d14a1e28 RD |
17707 | if (obj6) { |
17708 | { | |
17709 | arg7 = wxString_in_helper(obj6); | |
17710 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 17711 | temp7 = True; |
d14a1e28 RD |
17712 | } |
17713 | } | |
17714 | { | |
17715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17716 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
17717 | ||
17718 | wxPyEndAllowThreads(__tstate); | |
17719 | if (PyErr_Occurred()) SWIG_fail; | |
17720 | } | |
4f89f6a3 RD |
17721 | { |
17722 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17723 | } | |
d14a1e28 RD |
17724 | { |
17725 | if (temp7) | |
17726 | delete arg7; | |
17727 | } | |
17728 | return resultobj; | |
17729 | fail: | |
17730 | { | |
17731 | if (temp7) | |
17732 | delete arg7; | |
17733 | } | |
17734 | return NULL; | |
17735 | } | |
17736 | ||
17737 | ||
17738 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17739 | PyObject *resultobj; | |
17740 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
423f194a RD |
17741 | int arg2 ; |
17742 | int arg3 ; | |
d14a1e28 RD |
17743 | wxToolBarToolBase *result; |
17744 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
17745 | PyObject * obj1 = 0 ; |
17746 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17747 | char *kwnames[] = { |
17748 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17749 | }; | |
17750 | ||
8edf1c75 | 17751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
17752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
17753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17754 | arg2 = (int) SWIG_AsInt(obj1); | |
17755 | if (PyErr_Occurred()) SWIG_fail; | |
17756 | arg3 = (int) SWIG_AsInt(obj2); | |
17757 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17758 | { |
17759 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17760 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
17761 | ||
17762 | wxPyEndAllowThreads(__tstate); | |
17763 | if (PyErr_Occurred()) SWIG_fail; | |
17764 | } | |
17765 | { | |
17766 | resultobj = wxPyMake_wxObject(result); | |
17767 | } | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
17774 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { | |
17775 | PyObject *obj; | |
17776 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
17777 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
17778 | Py_INCREF(obj); | |
17779 | return Py_BuildValue((char *)""); | |
17780 | } | |
2f4c0a16 | 17781 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
17782 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); |
17783 | return 1; | |
17784 | } | |
17785 | ||
17786 | ||
17787 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
17788 | PyObject *pyobj; | |
17789 | ||
17790 | { | |
17791 | #if wxUSE_UNICODE | |
17792 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17793 | #else | |
17794 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
17795 | #endif | |
17796 | } | |
17797 | return pyobj; | |
17798 | } | |
17799 | ||
17800 | ||
d14a1e28 RD |
17801 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
17802 | PyObject *resultobj; | |
17803 | wxColour const &arg1_defvalue = wxNullColour ; | |
17804 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
17805 | wxColour const &arg2_defvalue = wxNullColour ; | |
17806 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
17807 | wxFont const &arg3_defvalue = wxNullFont ; | |
17808 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
17809 | wxListItemAttr *result; | |
17810 | wxColour temp1 ; | |
17811 | wxColour temp2 ; | |
17812 | PyObject * obj0 = 0 ; | |
17813 | PyObject * obj1 = 0 ; | |
17814 | PyObject * obj2 = 0 ; | |
17815 | char *kwnames[] = { | |
17816 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
17817 | }; | |
17818 | ||
17819 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
17820 | if (obj0) { | |
17821 | { | |
17822 | arg1 = &temp1; | |
17823 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
17824 | } | |
17825 | } | |
17826 | if (obj1) { | |
17827 | { | |
17828 | arg2 = &temp2; | |
17829 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17830 | } | |
17831 | } | |
17832 | if (obj2) { | |
2f4c0a16 RD |
17833 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
17834 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17835 | SWIG_fail; | |
d14a1e28 | 17836 | if (arg3 == NULL) { |
2f4c0a16 RD |
17837 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17838 | SWIG_fail; | |
d14a1e28 RD |
17839 | } |
17840 | } | |
17841 | { | |
17842 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17843 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
17844 | ||
17845 | wxPyEndAllowThreads(__tstate); | |
17846 | if (PyErr_Occurred()) SWIG_fail; | |
17847 | } | |
2f4c0a16 | 17848 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
17849 | return resultobj; |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
17855 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17856 | PyObject *resultobj; | |
17857 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17858 | wxColour *arg2 = 0 ; | |
17859 | wxColour temp2 ; | |
17860 | PyObject * obj0 = 0 ; | |
17861 | PyObject * obj1 = 0 ; | |
17862 | char *kwnames[] = { | |
17863 | (char *) "self",(char *) "colText", NULL | |
17864 | }; | |
17865 | ||
17866 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17867 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17868 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17869 | { |
17870 | arg2 = &temp2; | |
17871 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17872 | } | |
17873 | { | |
17874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17875 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
17876 | ||
17877 | wxPyEndAllowThreads(__tstate); | |
17878 | if (PyErr_Occurred()) SWIG_fail; | |
17879 | } | |
17880 | Py_INCREF(Py_None); resultobj = Py_None; | |
17881 | return resultobj; | |
17882 | fail: | |
17883 | return NULL; | |
17884 | } | |
17885 | ||
17886 | ||
17887 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17888 | PyObject *resultobj; | |
17889 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17890 | wxColour *arg2 = 0 ; | |
17891 | wxColour temp2 ; | |
17892 | PyObject * obj0 = 0 ; | |
17893 | PyObject * obj1 = 0 ; | |
17894 | char *kwnames[] = { | |
17895 | (char *) "self",(char *) "colBack", NULL | |
17896 | }; | |
17897 | ||
17898 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17899 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17900 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17901 | { |
17902 | arg2 = &temp2; | |
17903 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
17904 | } | |
17905 | { | |
17906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17907 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
17908 | ||
17909 | wxPyEndAllowThreads(__tstate); | |
17910 | if (PyErr_Occurred()) SWIG_fail; | |
17911 | } | |
17912 | Py_INCREF(Py_None); resultobj = Py_None; | |
17913 | return resultobj; | |
17914 | fail: | |
17915 | return NULL; | |
17916 | } | |
17917 | ||
17918 | ||
17919 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17920 | PyObject *resultobj; | |
17921 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17922 | wxFont *arg2 = 0 ; | |
17923 | PyObject * obj0 = 0 ; | |
17924 | PyObject * obj1 = 0 ; | |
17925 | char *kwnames[] = { | |
17926 | (char *) "self",(char *) "font", NULL | |
17927 | }; | |
17928 | ||
17929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
17930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17932 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
17933 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
17934 | SWIG_fail; | |
d14a1e28 | 17935 | if (arg2 == NULL) { |
2f4c0a16 RD |
17936 | PyErr_SetString(PyExc_TypeError,"null reference"); |
17937 | SWIG_fail; | |
d14a1e28 RD |
17938 | } |
17939 | { | |
17940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17941 | (arg1)->SetFont((wxFont const &)*arg2); | |
17942 | ||
17943 | wxPyEndAllowThreads(__tstate); | |
17944 | if (PyErr_Occurred()) SWIG_fail; | |
17945 | } | |
17946 | Py_INCREF(Py_None); resultobj = Py_None; | |
17947 | return resultobj; | |
17948 | fail: | |
17949 | return NULL; | |
17950 | } | |
17951 | ||
17952 | ||
17953 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17954 | PyObject *resultobj; | |
17955 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17956 | bool result; | |
17957 | PyObject * obj0 = 0 ; | |
17958 | char *kwnames[] = { | |
17959 | (char *) "self", NULL | |
17960 | }; | |
17961 | ||
17962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17965 | { |
17966 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17967 | result = (bool)(arg1)->HasTextColour(); | |
17968 | ||
17969 | wxPyEndAllowThreads(__tstate); | |
17970 | if (PyErr_Occurred()) SWIG_fail; | |
17971 | } | |
4f89f6a3 RD |
17972 | { |
17973 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17974 | } | |
d14a1e28 RD |
17975 | return resultobj; |
17976 | fail: | |
17977 | return NULL; | |
17978 | } | |
17979 | ||
17980 | ||
17981 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17982 | PyObject *resultobj; | |
17983 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
17984 | bool result; | |
17985 | PyObject * obj0 = 0 ; | |
17986 | char *kwnames[] = { | |
17987 | (char *) "self", NULL | |
17988 | }; | |
17989 | ||
17990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
17991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
17992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17993 | { |
17994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17995 | result = (bool)(arg1)->HasBackgroundColour(); | |
17996 | ||
17997 | wxPyEndAllowThreads(__tstate); | |
17998 | if (PyErr_Occurred()) SWIG_fail; | |
17999 | } | |
4f89f6a3 RD |
18000 | { |
18001 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18002 | } | |
d14a1e28 RD |
18003 | return resultobj; |
18004 | fail: | |
18005 | return NULL; | |
18006 | } | |
18007 | ||
18008 | ||
18009 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18010 | PyObject *resultobj; | |
18011 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18012 | bool result; | |
18013 | PyObject * obj0 = 0 ; | |
18014 | char *kwnames[] = { | |
18015 | (char *) "self", NULL | |
18016 | }; | |
18017 | ||
18018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18021 | { |
18022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18023 | result = (bool)(arg1)->HasFont(); | |
18024 | ||
18025 | wxPyEndAllowThreads(__tstate); | |
18026 | if (PyErr_Occurred()) SWIG_fail; | |
18027 | } | |
4f89f6a3 RD |
18028 | { |
18029 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18030 | } | |
d14a1e28 RD |
18031 | return resultobj; |
18032 | fail: | |
18033 | return NULL; | |
18034 | } | |
18035 | ||
18036 | ||
18037 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18038 | PyObject *resultobj; | |
18039 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18040 | wxColour result; | |
18041 | PyObject * obj0 = 0 ; | |
18042 | char *kwnames[] = { | |
18043 | (char *) "self", NULL | |
18044 | }; | |
18045 | ||
18046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18049 | { |
18050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18051 | result = (arg1)->GetTextColour(); | |
18052 | ||
18053 | wxPyEndAllowThreads(__tstate); | |
18054 | if (PyErr_Occurred()) SWIG_fail; | |
18055 | } | |
18056 | { | |
18057 | wxColour * resultptr; | |
18058 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18059 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18060 | } |
18061 | return resultobj; | |
18062 | fail: | |
18063 | return NULL; | |
18064 | } | |
18065 | ||
18066 | ||
18067 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18068 | PyObject *resultobj; | |
18069 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18070 | wxColour result; | |
18071 | PyObject * obj0 = 0 ; | |
18072 | char *kwnames[] = { | |
18073 | (char *) "self", NULL | |
18074 | }; | |
18075 | ||
18076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18079 | { |
18080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18081 | result = (arg1)->GetBackgroundColour(); | |
18082 | ||
18083 | wxPyEndAllowThreads(__tstate); | |
18084 | if (PyErr_Occurred()) SWIG_fail; | |
18085 | } | |
18086 | { | |
18087 | wxColour * resultptr; | |
18088 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18089 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18090 | } |
18091 | return resultobj; | |
18092 | fail: | |
18093 | return NULL; | |
18094 | } | |
18095 | ||
18096 | ||
18097 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18098 | PyObject *resultobj; | |
18099 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18100 | wxFont result; | |
18101 | PyObject * obj0 = 0 ; | |
18102 | char *kwnames[] = { | |
18103 | (char *) "self", NULL | |
18104 | }; | |
18105 | ||
18106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18109 | { |
18110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18111 | result = (arg1)->GetFont(); | |
18112 | ||
18113 | wxPyEndAllowThreads(__tstate); | |
18114 | if (PyErr_Occurred()) SWIG_fail; | |
18115 | } | |
18116 | { | |
18117 | wxFont * resultptr; | |
18118 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 18119 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18120 | } |
18121 | return resultobj; | |
18122 | fail: | |
18123 | return NULL; | |
18124 | } | |
18125 | ||
18126 | ||
18127 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18128 | PyObject *resultobj; | |
18129 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18130 | PyObject * obj0 = 0 ; | |
18131 | char *kwnames[] = { | |
18132 | (char *) "self", NULL | |
18133 | }; | |
18134 | ||
18135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18138 | { |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | wxListItemAttr_Destroy(arg1); | |
18141 | ||
18142 | wxPyEndAllowThreads(__tstate); | |
18143 | if (PyErr_Occurred()) SWIG_fail; | |
18144 | } | |
18145 | Py_INCREF(Py_None); resultobj = Py_None; | |
18146 | return resultobj; | |
18147 | fail: | |
18148 | return NULL; | |
18149 | } | |
18150 | ||
18151 | ||
18152 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
18153 | PyObject *obj; | |
18154 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18155 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
18156 | Py_INCREF(obj); | |
18157 | return Py_BuildValue((char *)""); | |
18158 | } | |
18159 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18160 | PyObject *resultobj; | |
18161 | wxListItem *result; | |
18162 | char *kwnames[] = { | |
18163 | NULL | |
18164 | }; | |
18165 | ||
18166 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
18167 | { | |
18168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18169 | result = (wxListItem *)new wxListItem(); | |
18170 | ||
18171 | wxPyEndAllowThreads(__tstate); | |
18172 | if (PyErr_Occurred()) SWIG_fail; | |
18173 | } | |
18174 | { | |
18175 | resultobj = wxPyMake_wxObject(result); | |
18176 | } | |
18177 | return resultobj; | |
18178 | fail: | |
18179 | return NULL; | |
18180 | } | |
18181 | ||
18182 | ||
18183 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18184 | PyObject *resultobj; | |
18185 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18186 | PyObject * obj0 = 0 ; | |
18187 | char *kwnames[] = { | |
18188 | (char *) "self", NULL | |
18189 | }; | |
18190 | ||
18191 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18192 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18193 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18194 | { |
18195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18196 | delete arg1; | |
18197 | ||
18198 | wxPyEndAllowThreads(__tstate); | |
18199 | if (PyErr_Occurred()) SWIG_fail; | |
18200 | } | |
18201 | Py_INCREF(Py_None); resultobj = Py_None; | |
18202 | return resultobj; | |
18203 | fail: | |
18204 | return NULL; | |
18205 | } | |
18206 | ||
18207 | ||
18208 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18209 | PyObject *resultobj; | |
18210 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18211 | PyObject * obj0 = 0 ; | |
18212 | char *kwnames[] = { | |
18213 | (char *) "self", NULL | |
18214 | }; | |
18215 | ||
18216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18219 | { |
18220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18221 | (arg1)->Clear(); | |
18222 | ||
18223 | wxPyEndAllowThreads(__tstate); | |
18224 | if (PyErr_Occurred()) SWIG_fail; | |
18225 | } | |
18226 | Py_INCREF(Py_None); resultobj = Py_None; | |
18227 | return resultobj; | |
18228 | fail: | |
18229 | return NULL; | |
18230 | } | |
18231 | ||
18232 | ||
18233 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18234 | PyObject *resultobj; | |
18235 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18236 | PyObject * obj0 = 0 ; | |
18237 | char *kwnames[] = { | |
18238 | (char *) "self", NULL | |
18239 | }; | |
18240 | ||
18241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18244 | { |
18245 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18246 | (arg1)->ClearAttributes(); | |
18247 | ||
18248 | wxPyEndAllowThreads(__tstate); | |
18249 | if (PyErr_Occurred()) SWIG_fail; | |
18250 | } | |
18251 | Py_INCREF(Py_None); resultobj = Py_None; | |
18252 | return resultobj; | |
18253 | fail: | |
18254 | return NULL; | |
18255 | } | |
18256 | ||
18257 | ||
18258 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18259 | PyObject *resultobj; | |
18260 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18261 | long arg2 ; | |
18262 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18263 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18264 | char *kwnames[] = { |
18265 | (char *) "self",(char *) "mask", NULL | |
18266 | }; | |
18267 | ||
8edf1c75 | 18268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18271 | arg2 = (long) SWIG_AsLong(obj1); | |
18272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18273 | { |
18274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18275 | (arg1)->SetMask(arg2); | |
18276 | ||
18277 | wxPyEndAllowThreads(__tstate); | |
18278 | if (PyErr_Occurred()) SWIG_fail; | |
18279 | } | |
18280 | Py_INCREF(Py_None); resultobj = Py_None; | |
18281 | return resultobj; | |
18282 | fail: | |
18283 | return NULL; | |
18284 | } | |
18285 | ||
18286 | ||
18287 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18288 | PyObject *resultobj; | |
18289 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18290 | long arg2 ; | |
18291 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18292 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18293 | char *kwnames[] = { |
18294 | (char *) "self",(char *) "id", NULL | |
18295 | }; | |
18296 | ||
8edf1c75 | 18297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18300 | arg2 = (long) SWIG_AsLong(obj1); | |
18301 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18302 | { |
18303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18304 | (arg1)->SetId(arg2); | |
18305 | ||
18306 | wxPyEndAllowThreads(__tstate); | |
18307 | if (PyErr_Occurred()) SWIG_fail; | |
18308 | } | |
18309 | Py_INCREF(Py_None); resultobj = Py_None; | |
18310 | return resultobj; | |
18311 | fail: | |
18312 | return NULL; | |
18313 | } | |
18314 | ||
18315 | ||
18316 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18317 | PyObject *resultobj; | |
18318 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18319 | int arg2 ; | |
18320 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18321 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18322 | char *kwnames[] = { |
18323 | (char *) "self",(char *) "col", NULL | |
18324 | }; | |
18325 | ||
8edf1c75 | 18326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18329 | arg2 = (int) SWIG_AsInt(obj1); | |
18330 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18331 | { |
18332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18333 | (arg1)->SetColumn(arg2); | |
18334 | ||
18335 | wxPyEndAllowThreads(__tstate); | |
18336 | if (PyErr_Occurred()) SWIG_fail; | |
18337 | } | |
18338 | Py_INCREF(Py_None); resultobj = Py_None; | |
18339 | return resultobj; | |
18340 | fail: | |
18341 | return NULL; | |
18342 | } | |
18343 | ||
18344 | ||
18345 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18346 | PyObject *resultobj; | |
18347 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18348 | long arg2 ; | |
18349 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18350 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18351 | char *kwnames[] = { |
18352 | (char *) "self",(char *) "state", NULL | |
18353 | }; | |
18354 | ||
8edf1c75 | 18355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18358 | arg2 = (long) SWIG_AsLong(obj1); | |
18359 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18360 | { |
18361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18362 | (arg1)->SetState(arg2); | |
18363 | ||
18364 | wxPyEndAllowThreads(__tstate); | |
18365 | if (PyErr_Occurred()) SWIG_fail; | |
18366 | } | |
18367 | Py_INCREF(Py_None); resultobj = Py_None; | |
18368 | return resultobj; | |
18369 | fail: | |
18370 | return NULL; | |
18371 | } | |
18372 | ||
18373 | ||
18374 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18375 | PyObject *resultobj; | |
18376 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18377 | long arg2 ; | |
18378 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18379 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18380 | char *kwnames[] = { |
18381 | (char *) "self",(char *) "stateMask", NULL | |
18382 | }; | |
18383 | ||
8edf1c75 | 18384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18387 | arg2 = (long) SWIG_AsLong(obj1); | |
18388 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18389 | { |
18390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18391 | (arg1)->SetStateMask(arg2); | |
18392 | ||
18393 | wxPyEndAllowThreads(__tstate); | |
18394 | if (PyErr_Occurred()) SWIG_fail; | |
18395 | } | |
18396 | Py_INCREF(Py_None); resultobj = Py_None; | |
18397 | return resultobj; | |
18398 | fail: | |
18399 | return NULL; | |
18400 | } | |
18401 | ||
18402 | ||
18403 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18404 | PyObject *resultobj; | |
18405 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18406 | wxString *arg2 = 0 ; | |
423f194a | 18407 | bool temp2 = False ; |
d14a1e28 RD |
18408 | PyObject * obj0 = 0 ; |
18409 | PyObject * obj1 = 0 ; | |
18410 | char *kwnames[] = { | |
18411 | (char *) "self",(char *) "text", NULL | |
18412 | }; | |
18413 | ||
18414 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18415 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18416 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18417 | { |
18418 | arg2 = wxString_in_helper(obj1); | |
18419 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 18420 | temp2 = True; |
d14a1e28 RD |
18421 | } |
18422 | { | |
18423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18424 | (arg1)->SetText((wxString const &)*arg2); | |
18425 | ||
18426 | wxPyEndAllowThreads(__tstate); | |
18427 | if (PyErr_Occurred()) SWIG_fail; | |
18428 | } | |
18429 | Py_INCREF(Py_None); resultobj = Py_None; | |
18430 | { | |
18431 | if (temp2) | |
18432 | delete arg2; | |
18433 | } | |
18434 | return resultobj; | |
18435 | fail: | |
18436 | { | |
18437 | if (temp2) | |
18438 | delete arg2; | |
18439 | } | |
18440 | return NULL; | |
18441 | } | |
18442 | ||
18443 | ||
18444 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18445 | PyObject *resultobj; | |
18446 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18447 | int arg2 ; | |
18448 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18449 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18450 | char *kwnames[] = { |
18451 | (char *) "self",(char *) "image", NULL | |
18452 | }; | |
18453 | ||
8edf1c75 | 18454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18457 | arg2 = (int) SWIG_AsInt(obj1); | |
18458 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18459 | { |
18460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18461 | (arg1)->SetImage(arg2); | |
18462 | ||
18463 | wxPyEndAllowThreads(__tstate); | |
18464 | if (PyErr_Occurred()) SWIG_fail; | |
18465 | } | |
18466 | Py_INCREF(Py_None); resultobj = Py_None; | |
18467 | return resultobj; | |
18468 | fail: | |
18469 | return NULL; | |
18470 | } | |
18471 | ||
18472 | ||
18473 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18474 | PyObject *resultobj; | |
18475 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18476 | long arg2 ; | |
18477 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18478 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18479 | char *kwnames[] = { |
18480 | (char *) "self",(char *) "data", NULL | |
18481 | }; | |
18482 | ||
8edf1c75 | 18483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18486 | arg2 = (long) SWIG_AsLong(obj1); | |
18487 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18488 | { |
18489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18490 | (arg1)->SetData(arg2); | |
18491 | ||
18492 | wxPyEndAllowThreads(__tstate); | |
18493 | if (PyErr_Occurred()) SWIG_fail; | |
18494 | } | |
18495 | Py_INCREF(Py_None); resultobj = Py_None; | |
18496 | return resultobj; | |
18497 | fail: | |
18498 | return NULL; | |
18499 | } | |
18500 | ||
18501 | ||
18502 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18503 | PyObject *resultobj; | |
18504 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18505 | int arg2 ; | |
18506 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18508 | char *kwnames[] = { |
18509 | (char *) "self",(char *) "width", NULL | |
18510 | }; | |
18511 | ||
8edf1c75 | 18512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18515 | arg2 = (int) SWIG_AsInt(obj1); | |
18516 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18517 | { |
18518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18519 | (arg1)->SetWidth(arg2); | |
18520 | ||
18521 | wxPyEndAllowThreads(__tstate); | |
18522 | if (PyErr_Occurred()) SWIG_fail; | |
18523 | } | |
18524 | Py_INCREF(Py_None); resultobj = Py_None; | |
18525 | return resultobj; | |
18526 | fail: | |
18527 | return NULL; | |
18528 | } | |
18529 | ||
18530 | ||
18531 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18532 | PyObject *resultobj; | |
18533 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18534 | int arg2 ; | |
18535 | PyObject * obj0 = 0 ; | |
8edf1c75 | 18536 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18537 | char *kwnames[] = { |
18538 | (char *) "self",(char *) "align", NULL | |
18539 | }; | |
18540 | ||
8edf1c75 | 18541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
18542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18544 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
18545 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18546 | { |
18547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18548 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
18549 | ||
18550 | wxPyEndAllowThreads(__tstate); | |
18551 | if (PyErr_Occurred()) SWIG_fail; | |
18552 | } | |
18553 | Py_INCREF(Py_None); resultobj = Py_None; | |
18554 | return resultobj; | |
18555 | fail: | |
18556 | return NULL; | |
18557 | } | |
18558 | ||
18559 | ||
18560 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18561 | PyObject *resultobj; | |
18562 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18563 | wxColour *arg2 = 0 ; | |
18564 | wxColour temp2 ; | |
18565 | PyObject * obj0 = 0 ; | |
18566 | PyObject * obj1 = 0 ; | |
18567 | char *kwnames[] = { | |
18568 | (char *) "self",(char *) "colText", NULL | |
18569 | }; | |
18570 | ||
18571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18574 | { |
18575 | arg2 = &temp2; | |
18576 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18577 | } | |
18578 | { | |
18579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18580 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18581 | ||
18582 | wxPyEndAllowThreads(__tstate); | |
18583 | if (PyErr_Occurred()) SWIG_fail; | |
18584 | } | |
18585 | Py_INCREF(Py_None); resultobj = Py_None; | |
18586 | return resultobj; | |
18587 | fail: | |
18588 | return NULL; | |
18589 | } | |
18590 | ||
18591 | ||
18592 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18593 | PyObject *resultobj; | |
18594 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18595 | wxColour *arg2 = 0 ; | |
18596 | wxColour temp2 ; | |
18597 | PyObject * obj0 = 0 ; | |
18598 | PyObject * obj1 = 0 ; | |
18599 | char *kwnames[] = { | |
18600 | (char *) "self",(char *) "colBack", NULL | |
18601 | }; | |
18602 | ||
18603 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18604 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18605 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18606 | { |
18607 | arg2 = &temp2; | |
18608 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18609 | } | |
18610 | { | |
18611 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18612 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18613 | ||
18614 | wxPyEndAllowThreads(__tstate); | |
18615 | if (PyErr_Occurred()) SWIG_fail; | |
18616 | } | |
18617 | Py_INCREF(Py_None); resultobj = Py_None; | |
18618 | return resultobj; | |
18619 | fail: | |
18620 | return NULL; | |
18621 | } | |
18622 | ||
18623 | ||
18624 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18625 | PyObject *resultobj; | |
18626 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18627 | wxFont *arg2 = 0 ; | |
18628 | PyObject * obj0 = 0 ; | |
18629 | PyObject * obj1 = 0 ; | |
18630 | char *kwnames[] = { | |
18631 | (char *) "self",(char *) "font", NULL | |
18632 | }; | |
18633 | ||
18634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
18635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18639 | SWIG_fail; | |
d14a1e28 | 18640 | if (arg2 == NULL) { |
2f4c0a16 RD |
18641 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18642 | SWIG_fail; | |
d14a1e28 RD |
18643 | } |
18644 | { | |
18645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18646 | (arg1)->SetFont((wxFont const &)*arg2); | |
18647 | ||
18648 | wxPyEndAllowThreads(__tstate); | |
18649 | if (PyErr_Occurred()) SWIG_fail; | |
18650 | } | |
18651 | Py_INCREF(Py_None); resultobj = Py_None; | |
18652 | return resultobj; | |
18653 | fail: | |
18654 | return NULL; | |
18655 | } | |
18656 | ||
18657 | ||
18658 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18659 | PyObject *resultobj; | |
18660 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18661 | long result; | |
18662 | PyObject * obj0 = 0 ; | |
18663 | char *kwnames[] = { | |
18664 | (char *) "self", NULL | |
18665 | }; | |
18666 | ||
18667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18670 | { |
18671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18672 | result = (long)(arg1)->GetMask(); | |
18673 | ||
18674 | wxPyEndAllowThreads(__tstate); | |
18675 | if (PyErr_Occurred()) SWIG_fail; | |
18676 | } | |
2f4c0a16 | 18677 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18678 | return resultobj; |
18679 | fail: | |
18680 | return NULL; | |
18681 | } | |
18682 | ||
18683 | ||
18684 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18685 | PyObject *resultobj; | |
18686 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18687 | long result; | |
18688 | PyObject * obj0 = 0 ; | |
18689 | char *kwnames[] = { | |
18690 | (char *) "self", NULL | |
18691 | }; | |
18692 | ||
18693 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18694 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18695 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18696 | { |
18697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18698 | result = (long)(arg1)->GetId(); | |
18699 | ||
18700 | wxPyEndAllowThreads(__tstate); | |
18701 | if (PyErr_Occurred()) SWIG_fail; | |
18702 | } | |
2f4c0a16 | 18703 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18704 | return resultobj; |
18705 | fail: | |
18706 | return NULL; | |
18707 | } | |
18708 | ||
18709 | ||
18710 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18711 | PyObject *resultobj; | |
18712 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18713 | int result; | |
18714 | PyObject * obj0 = 0 ; | |
18715 | char *kwnames[] = { | |
18716 | (char *) "self", NULL | |
18717 | }; | |
18718 | ||
18719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18722 | { |
18723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18724 | result = (int)(arg1)->GetColumn(); | |
18725 | ||
18726 | wxPyEndAllowThreads(__tstate); | |
18727 | if (PyErr_Occurred()) SWIG_fail; | |
18728 | } | |
2f4c0a16 | 18729 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18730 | return resultobj; |
18731 | fail: | |
18732 | return NULL; | |
18733 | } | |
18734 | ||
18735 | ||
18736 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18737 | PyObject *resultobj; | |
18738 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18739 | long result; | |
18740 | PyObject * obj0 = 0 ; | |
18741 | char *kwnames[] = { | |
18742 | (char *) "self", NULL | |
18743 | }; | |
18744 | ||
18745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18748 | { |
18749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18750 | result = (long)(arg1)->GetState(); | |
18751 | ||
18752 | wxPyEndAllowThreads(__tstate); | |
18753 | if (PyErr_Occurred()) SWIG_fail; | |
18754 | } | |
2f4c0a16 | 18755 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18756 | return resultobj; |
18757 | fail: | |
18758 | return NULL; | |
18759 | } | |
18760 | ||
18761 | ||
18762 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18763 | PyObject *resultobj; | |
18764 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18765 | wxString *result; | |
18766 | PyObject * obj0 = 0 ; | |
18767 | char *kwnames[] = { | |
18768 | (char *) "self", NULL | |
18769 | }; | |
18770 | ||
18771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18774 | { |
18775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18776 | { | |
18777 | wxString const &_result_ref = (arg1)->GetText(); | |
18778 | result = (wxString *) &_result_ref; | |
18779 | } | |
18780 | ||
18781 | wxPyEndAllowThreads(__tstate); | |
18782 | if (PyErr_Occurred()) SWIG_fail; | |
18783 | } | |
f0983263 RD |
18784 | { |
18785 | #if wxUSE_UNICODE | |
18786 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
18787 | #else | |
18788 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
18789 | #endif | |
18790 | } | |
d14a1e28 RD |
18791 | return resultobj; |
18792 | fail: | |
18793 | return NULL; | |
18794 | } | |
18795 | ||
18796 | ||
18797 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18798 | PyObject *resultobj; | |
18799 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18800 | int result; | |
18801 | PyObject * obj0 = 0 ; | |
18802 | char *kwnames[] = { | |
18803 | (char *) "self", NULL | |
18804 | }; | |
18805 | ||
18806 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18807 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18808 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18809 | { |
18810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18811 | result = (int)(arg1)->GetImage(); | |
18812 | ||
18813 | wxPyEndAllowThreads(__tstate); | |
18814 | if (PyErr_Occurred()) SWIG_fail; | |
18815 | } | |
2f4c0a16 | 18816 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18817 | return resultobj; |
18818 | fail: | |
18819 | return NULL; | |
18820 | } | |
18821 | ||
18822 | ||
18823 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18824 | PyObject *resultobj; | |
18825 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18826 | long result; | |
18827 | PyObject * obj0 = 0 ; | |
18828 | char *kwnames[] = { | |
18829 | (char *) "self", NULL | |
18830 | }; | |
18831 | ||
18832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18835 | { |
18836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18837 | result = (long)(arg1)->GetData(); | |
18838 | ||
18839 | wxPyEndAllowThreads(__tstate); | |
18840 | if (PyErr_Occurred()) SWIG_fail; | |
18841 | } | |
2f4c0a16 | 18842 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
18843 | return resultobj; |
18844 | fail: | |
18845 | return NULL; | |
18846 | } | |
18847 | ||
18848 | ||
18849 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18850 | PyObject *resultobj; | |
18851 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18852 | int result; | |
18853 | PyObject * obj0 = 0 ; | |
18854 | char *kwnames[] = { | |
18855 | (char *) "self", NULL | |
18856 | }; | |
18857 | ||
18858 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18859 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18860 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18861 | { |
18862 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18863 | result = (int)(arg1)->GetWidth(); | |
18864 | ||
18865 | wxPyEndAllowThreads(__tstate); | |
18866 | if (PyErr_Occurred()) SWIG_fail; | |
18867 | } | |
2f4c0a16 | 18868 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18869 | return resultobj; |
18870 | fail: | |
18871 | return NULL; | |
18872 | } | |
18873 | ||
18874 | ||
18875 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18876 | PyObject *resultobj; | |
18877 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18878 | int result; | |
18879 | PyObject * obj0 = 0 ; | |
18880 | char *kwnames[] = { | |
18881 | (char *) "self", NULL | |
18882 | }; | |
18883 | ||
18884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18887 | { |
18888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18889 | result = (int)(arg1)->GetAlign(); | |
18890 | ||
18891 | wxPyEndAllowThreads(__tstate); | |
18892 | if (PyErr_Occurred()) SWIG_fail; | |
18893 | } | |
2f4c0a16 | 18894 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18895 | return resultobj; |
18896 | fail: | |
18897 | return NULL; | |
18898 | } | |
18899 | ||
18900 | ||
18901 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18902 | PyObject *resultobj; | |
18903 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18904 | wxListItemAttr *result; | |
18905 | PyObject * obj0 = 0 ; | |
18906 | char *kwnames[] = { | |
18907 | (char *) "self", NULL | |
18908 | }; | |
18909 | ||
18910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18913 | { |
18914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18915 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
18916 | ||
18917 | wxPyEndAllowThreads(__tstate); | |
18918 | if (PyErr_Occurred()) SWIG_fail; | |
18919 | } | |
2f4c0a16 | 18920 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
18921 | return resultobj; |
18922 | fail: | |
18923 | return NULL; | |
18924 | } | |
18925 | ||
18926 | ||
18927 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18928 | PyObject *resultobj; | |
18929 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18930 | bool result; | |
18931 | PyObject * obj0 = 0 ; | |
18932 | char *kwnames[] = { | |
18933 | (char *) "self", NULL | |
18934 | }; | |
18935 | ||
18936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18939 | { |
18940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18941 | result = (bool)(arg1)->HasAttributes(); | |
18942 | ||
18943 | wxPyEndAllowThreads(__tstate); | |
18944 | if (PyErr_Occurred()) SWIG_fail; | |
18945 | } | |
4f89f6a3 RD |
18946 | { |
18947 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18948 | } | |
d14a1e28 RD |
18949 | return resultobj; |
18950 | fail: | |
18951 | return NULL; | |
18952 | } | |
18953 | ||
18954 | ||
18955 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18956 | PyObject *resultobj; | |
18957 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18958 | wxColour result; | |
18959 | PyObject * obj0 = 0 ; | |
18960 | char *kwnames[] = { | |
18961 | (char *) "self", NULL | |
18962 | }; | |
18963 | ||
18964 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18965 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18966 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18967 | { |
18968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18969 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
18970 | ||
18971 | wxPyEndAllowThreads(__tstate); | |
18972 | if (PyErr_Occurred()) SWIG_fail; | |
18973 | } | |
18974 | { | |
18975 | wxColour * resultptr; | |
18976 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 18977 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18978 | } |
18979 | return resultobj; | |
18980 | fail: | |
18981 | return NULL; | |
18982 | } | |
18983 | ||
18984 | ||
18985 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18986 | PyObject *resultobj; | |
18987 | wxListItem *arg1 = (wxListItem *) 0 ; | |
18988 | wxColour result; | |
18989 | PyObject * obj0 = 0 ; | |
18990 | char *kwnames[] = { | |
18991 | (char *) "self", NULL | |
18992 | }; | |
18993 | ||
18994 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
18995 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
18996 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18997 | { |
18998 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18999 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19000 | ||
19001 | wxPyEndAllowThreads(__tstate); | |
19002 | if (PyErr_Occurred()) SWIG_fail; | |
19003 | } | |
19004 | { | |
19005 | wxColour * resultptr; | |
19006 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 19007 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19008 | } |
19009 | return resultobj; | |
19010 | fail: | |
19011 | return NULL; | |
19012 | } | |
19013 | ||
19014 | ||
19015 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19016 | PyObject *resultobj; | |
19017 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19018 | wxFont result; | |
19019 | PyObject * obj0 = 0 ; | |
19020 | char *kwnames[] = { | |
19021 | (char *) "self", NULL | |
19022 | }; | |
19023 | ||
19024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19027 | { |
19028 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19029 | result = ((wxListItem const *)arg1)->GetFont(); | |
19030 | ||
19031 | wxPyEndAllowThreads(__tstate); | |
19032 | if (PyErr_Occurred()) SWIG_fail; | |
19033 | } | |
19034 | { | |
19035 | wxFont * resultptr; | |
19036 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 19037 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19038 | } |
19039 | return resultobj; | |
19040 | fail: | |
19041 | return NULL; | |
19042 | } | |
19043 | ||
19044 | ||
19045 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19046 | PyObject *resultobj; | |
19047 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19048 | long arg2 ; | |
19049 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19050 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19051 | char *kwnames[] = { |
19052 | (char *) "self",(char *) "m_mask", NULL | |
19053 | }; | |
19054 | ||
8edf1c75 | 19055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19058 | arg2 = (long) SWIG_AsLong(obj1); | |
19059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19060 | if (arg1) (arg1)->m_mask = arg2; |
19061 | ||
19062 | Py_INCREF(Py_None); resultobj = Py_None; | |
19063 | return resultobj; | |
19064 | fail: | |
19065 | return NULL; | |
19066 | } | |
19067 | ||
19068 | ||
19069 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19070 | PyObject *resultobj; | |
19071 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19072 | long result; | |
19073 | PyObject * obj0 = 0 ; | |
19074 | char *kwnames[] = { | |
19075 | (char *) "self", NULL | |
19076 | }; | |
19077 | ||
19078 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19079 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19080 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19081 | result = (long) ((arg1)->m_mask); |
19082 | ||
2f4c0a16 | 19083 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19084 | return resultobj; |
19085 | fail: | |
19086 | return NULL; | |
19087 | } | |
19088 | ||
19089 | ||
19090 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19091 | PyObject *resultobj; | |
19092 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19093 | long arg2 ; | |
19094 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19096 | char *kwnames[] = { |
19097 | (char *) "self",(char *) "m_itemId", NULL | |
19098 | }; | |
19099 | ||
8edf1c75 | 19100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19103 | arg2 = (long) SWIG_AsLong(obj1); | |
19104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19105 | if (arg1) (arg1)->m_itemId = arg2; |
19106 | ||
19107 | Py_INCREF(Py_None); resultobj = Py_None; | |
19108 | return resultobj; | |
19109 | fail: | |
19110 | return NULL; | |
19111 | } | |
19112 | ||
19113 | ||
19114 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19115 | PyObject *resultobj; | |
19116 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19117 | long result; | |
19118 | PyObject * obj0 = 0 ; | |
19119 | char *kwnames[] = { | |
19120 | (char *) "self", NULL | |
19121 | }; | |
19122 | ||
19123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19126 | result = (long) ((arg1)->m_itemId); |
19127 | ||
2f4c0a16 | 19128 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19129 | return resultobj; |
19130 | fail: | |
19131 | return NULL; | |
19132 | } | |
19133 | ||
19134 | ||
19135 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19136 | PyObject *resultobj; | |
19137 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19138 | int arg2 ; | |
19139 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19140 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19141 | char *kwnames[] = { |
19142 | (char *) "self",(char *) "m_col", NULL | |
19143 | }; | |
19144 | ||
8edf1c75 | 19145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19146 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19147 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19148 | arg2 = (int) SWIG_AsInt(obj1); | |
19149 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19150 | if (arg1) (arg1)->m_col = arg2; |
19151 | ||
19152 | Py_INCREF(Py_None); resultobj = Py_None; | |
19153 | return resultobj; | |
19154 | fail: | |
19155 | return NULL; | |
19156 | } | |
19157 | ||
19158 | ||
19159 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19160 | PyObject *resultobj; | |
19161 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19162 | int result; | |
19163 | PyObject * obj0 = 0 ; | |
19164 | char *kwnames[] = { | |
19165 | (char *) "self", NULL | |
19166 | }; | |
19167 | ||
19168 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19169 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19170 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19171 | result = (int) ((arg1)->m_col); |
19172 | ||
2f4c0a16 | 19173 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19174 | return resultobj; |
19175 | fail: | |
19176 | return NULL; | |
19177 | } | |
19178 | ||
19179 | ||
19180 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19181 | PyObject *resultobj; | |
19182 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19183 | long arg2 ; | |
19184 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19186 | char *kwnames[] = { |
19187 | (char *) "self",(char *) "m_state", NULL | |
19188 | }; | |
19189 | ||
8edf1c75 | 19190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19193 | arg2 = (long) SWIG_AsLong(obj1); | |
19194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19195 | if (arg1) (arg1)->m_state = arg2; |
19196 | ||
19197 | Py_INCREF(Py_None); resultobj = Py_None; | |
19198 | return resultobj; | |
19199 | fail: | |
19200 | return NULL; | |
19201 | } | |
19202 | ||
19203 | ||
19204 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19205 | PyObject *resultobj; | |
19206 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19207 | long result; | |
19208 | PyObject * obj0 = 0 ; | |
19209 | char *kwnames[] = { | |
19210 | (char *) "self", NULL | |
19211 | }; | |
19212 | ||
19213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19216 | result = (long) ((arg1)->m_state); |
19217 | ||
2f4c0a16 | 19218 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19219 | return resultobj; |
19220 | fail: | |
19221 | return NULL; | |
19222 | } | |
19223 | ||
19224 | ||
19225 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19226 | PyObject *resultobj; | |
19227 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19228 | long arg2 ; | |
19229 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19230 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19231 | char *kwnames[] = { |
19232 | (char *) "self",(char *) "m_stateMask", NULL | |
19233 | }; | |
19234 | ||
8edf1c75 | 19235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19238 | arg2 = (long) SWIG_AsLong(obj1); | |
19239 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19240 | if (arg1) (arg1)->m_stateMask = arg2; |
19241 | ||
19242 | Py_INCREF(Py_None); resultobj = Py_None; | |
19243 | return resultobj; | |
19244 | fail: | |
19245 | return NULL; | |
19246 | } | |
19247 | ||
19248 | ||
19249 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19250 | PyObject *resultobj; | |
19251 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19252 | long result; | |
19253 | PyObject * obj0 = 0 ; | |
19254 | char *kwnames[] = { | |
19255 | (char *) "self", NULL | |
19256 | }; | |
19257 | ||
19258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19261 | result = (long) ((arg1)->m_stateMask); |
19262 | ||
2f4c0a16 | 19263 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19264 | return resultobj; |
19265 | fail: | |
19266 | return NULL; | |
19267 | } | |
19268 | ||
19269 | ||
19270 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19271 | PyObject *resultobj; | |
19272 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19273 | wxString *arg2 = (wxString *) 0 ; |
f775c30d | 19274 | bool temp2 = False ; |
d14a1e28 RD |
19275 | PyObject * obj0 = 0 ; |
19276 | PyObject * obj1 = 0 ; | |
19277 | char *kwnames[] = { | |
19278 | (char *) "self",(char *) "m_text", NULL | |
19279 | }; | |
19280 | ||
19281 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19282 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19283 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
f775c30d RD |
19284 | { |
19285 | arg2 = wxString_in_helper(obj1); | |
19286 | if (arg2 == NULL) SWIG_fail; | |
19287 | temp2 = True; | |
19288 | } | |
d03fd34d | 19289 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
19290 | |
19291 | Py_INCREF(Py_None); resultobj = Py_None; | |
f775c30d RD |
19292 | { |
19293 | if (temp2) | |
19294 | delete arg2; | |
19295 | } | |
d14a1e28 RD |
19296 | return resultobj; |
19297 | fail: | |
f775c30d RD |
19298 | { |
19299 | if (temp2) | |
19300 | delete arg2; | |
19301 | } | |
d14a1e28 RD |
19302 | return NULL; |
19303 | } | |
19304 | ||
19305 | ||
19306 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19307 | PyObject *resultobj; | |
19308 | wxListItem *arg1 = (wxListItem *) 0 ; | |
d03fd34d | 19309 | wxString *result; |
d14a1e28 RD |
19310 | PyObject * obj0 = 0 ; |
19311 | char *kwnames[] = { | |
19312 | (char *) "self", NULL | |
19313 | }; | |
19314 | ||
19315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d03fd34d | 19318 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
19319 | |
19320 | { | |
19321 | #if wxUSE_UNICODE | |
d03fd34d | 19322 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 19323 | #else |
d03fd34d | 19324 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
19325 | #endif |
19326 | } | |
19327 | return resultobj; | |
19328 | fail: | |
19329 | return NULL; | |
19330 | } | |
19331 | ||
19332 | ||
19333 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19334 | PyObject *resultobj; | |
19335 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19336 | int arg2 ; | |
19337 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19338 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19339 | char *kwnames[] = { |
19340 | (char *) "self",(char *) "m_image", NULL | |
19341 | }; | |
19342 | ||
8edf1c75 | 19343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19346 | arg2 = (int) SWIG_AsInt(obj1); | |
19347 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19348 | if (arg1) (arg1)->m_image = arg2; |
19349 | ||
19350 | Py_INCREF(Py_None); resultobj = Py_None; | |
19351 | return resultobj; | |
19352 | fail: | |
19353 | return NULL; | |
19354 | } | |
19355 | ||
19356 | ||
19357 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19358 | PyObject *resultobj; | |
19359 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19360 | int result; | |
19361 | PyObject * obj0 = 0 ; | |
19362 | char *kwnames[] = { | |
19363 | (char *) "self", NULL | |
19364 | }; | |
19365 | ||
19366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19369 | result = (int) ((arg1)->m_image); |
19370 | ||
2f4c0a16 | 19371 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19372 | return resultobj; |
19373 | fail: | |
19374 | return NULL; | |
19375 | } | |
19376 | ||
19377 | ||
19378 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19379 | PyObject *resultobj; | |
19380 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19381 | long arg2 ; | |
19382 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19383 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19384 | char *kwnames[] = { |
19385 | (char *) "self",(char *) "m_data", NULL | |
19386 | }; | |
19387 | ||
8edf1c75 | 19388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19391 | arg2 = (long) SWIG_AsLong(obj1); | |
19392 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19393 | if (arg1) (arg1)->m_data = arg2; |
19394 | ||
19395 | Py_INCREF(Py_None); resultobj = Py_None; | |
19396 | return resultobj; | |
19397 | fail: | |
19398 | return NULL; | |
19399 | } | |
19400 | ||
19401 | ||
19402 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19403 | PyObject *resultobj; | |
19404 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19405 | long result; | |
19406 | PyObject * obj0 = 0 ; | |
19407 | char *kwnames[] = { | |
19408 | (char *) "self", NULL | |
19409 | }; | |
19410 | ||
19411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19414 | result = (long) ((arg1)->m_data); |
19415 | ||
2f4c0a16 | 19416 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19417 | return resultobj; |
19418 | fail: | |
19419 | return NULL; | |
19420 | } | |
19421 | ||
19422 | ||
19423 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19424 | PyObject *resultobj; | |
19425 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19426 | int arg2 ; | |
19427 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19428 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19429 | char *kwnames[] = { |
19430 | (char *) "self",(char *) "m_format", NULL | |
19431 | }; | |
19432 | ||
8edf1c75 | 19433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19436 | arg2 = (int) SWIG_AsInt(obj1); | |
19437 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19438 | if (arg1) (arg1)->m_format = arg2; |
19439 | ||
19440 | Py_INCREF(Py_None); resultobj = Py_None; | |
19441 | return resultobj; | |
19442 | fail: | |
19443 | return NULL; | |
19444 | } | |
19445 | ||
19446 | ||
19447 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19448 | PyObject *resultobj; | |
19449 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19450 | int result; | |
19451 | PyObject * obj0 = 0 ; | |
19452 | char *kwnames[] = { | |
19453 | (char *) "self", NULL | |
19454 | }; | |
19455 | ||
19456 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19457 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19458 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19459 | result = (int) ((arg1)->m_format); |
19460 | ||
2f4c0a16 | 19461 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19462 | return resultobj; |
19463 | fail: | |
19464 | return NULL; | |
19465 | } | |
19466 | ||
19467 | ||
19468 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19469 | PyObject *resultobj; | |
19470 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19471 | int arg2 ; | |
19472 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19473 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19474 | char *kwnames[] = { |
19475 | (char *) "self",(char *) "m_width", NULL | |
19476 | }; | |
19477 | ||
8edf1c75 | 19478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19481 | arg2 = (int) SWIG_AsInt(obj1); | |
19482 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19483 | if (arg1) (arg1)->m_width = arg2; |
19484 | ||
19485 | Py_INCREF(Py_None); resultobj = Py_None; | |
19486 | return resultobj; | |
19487 | fail: | |
19488 | return NULL; | |
19489 | } | |
19490 | ||
19491 | ||
19492 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19493 | PyObject *resultobj; | |
19494 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19495 | int result; | |
19496 | PyObject * obj0 = 0 ; | |
19497 | char *kwnames[] = { | |
19498 | (char *) "self", NULL | |
19499 | }; | |
19500 | ||
19501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19504 | result = (int) ((arg1)->m_width); |
19505 | ||
2f4c0a16 | 19506 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19507 | return resultobj; |
19508 | fail: | |
19509 | return NULL; | |
19510 | } | |
19511 | ||
19512 | ||
19513 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
19514 | PyObject *obj; | |
19515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19516 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
19517 | Py_INCREF(obj); | |
19518 | return Py_BuildValue((char *)""); | |
19519 | } | |
19520 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19521 | PyObject *resultobj; | |
19522 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
19523 | int arg2 = (int) 0 ; | |
19524 | wxListEvent *result; | |
8edf1c75 RD |
19525 | PyObject * obj0 = 0 ; |
19526 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
19527 | char *kwnames[] = { |
19528 | (char *) "commandType",(char *) "id", NULL | |
19529 | }; | |
19530 | ||
8edf1c75 RD |
19531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
19532 | if (obj0) { | |
2f4c0a16 RD |
19533 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
19534 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
19535 | } |
19536 | if (obj1) { | |
2f4c0a16 RD |
19537 | arg2 = (int) SWIG_AsInt(obj1); |
19538 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 19539 | } |
d14a1e28 RD |
19540 | { |
19541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19542 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
19543 | ||
19544 | wxPyEndAllowThreads(__tstate); | |
19545 | if (PyErr_Occurred()) SWIG_fail; | |
19546 | } | |
2f4c0a16 | 19547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
19548 | return resultobj; |
19549 | fail: | |
19550 | return NULL; | |
19551 | } | |
19552 | ||
19553 | ||
19554 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19555 | PyObject *resultobj; | |
19556 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19557 | int arg2 ; | |
19558 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19559 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19560 | char *kwnames[] = { |
19561 | (char *) "self",(char *) "m_code", NULL | |
19562 | }; | |
19563 | ||
8edf1c75 | 19564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19567 | arg2 = (int) SWIG_AsInt(obj1); | |
19568 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19569 | if (arg1) (arg1)->m_code = arg2; |
19570 | ||
19571 | Py_INCREF(Py_None); resultobj = Py_None; | |
19572 | return resultobj; | |
19573 | fail: | |
19574 | return NULL; | |
19575 | } | |
19576 | ||
19577 | ||
19578 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19579 | PyObject *resultobj; | |
19580 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19581 | int result; | |
19582 | PyObject * obj0 = 0 ; | |
19583 | char *kwnames[] = { | |
19584 | (char *) "self", NULL | |
19585 | }; | |
19586 | ||
19587 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19588 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19589 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19590 | result = (int) ((arg1)->m_code); |
19591 | ||
2f4c0a16 | 19592 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19593 | return resultobj; |
19594 | fail: | |
19595 | return NULL; | |
19596 | } | |
19597 | ||
19598 | ||
19599 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19600 | PyObject *resultobj; | |
19601 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19602 | long arg2 ; | |
19603 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19604 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19605 | char *kwnames[] = { |
19606 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
19607 | }; | |
19608 | ||
8edf1c75 | 19609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19612 | arg2 = (long) SWIG_AsLong(obj1); | |
19613 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19614 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
19615 | ||
19616 | Py_INCREF(Py_None); resultobj = Py_None; | |
19617 | return resultobj; | |
19618 | fail: | |
19619 | return NULL; | |
19620 | } | |
19621 | ||
19622 | ||
19623 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19624 | PyObject *resultobj; | |
19625 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19626 | long result; | |
19627 | PyObject * obj0 = 0 ; | |
19628 | char *kwnames[] = { | |
19629 | (char *) "self", NULL | |
19630 | }; | |
19631 | ||
19632 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19633 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19634 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19635 | result = (long) ((arg1)->m_oldItemIndex); |
19636 | ||
2f4c0a16 | 19637 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19638 | return resultobj; |
19639 | fail: | |
19640 | return NULL; | |
19641 | } | |
19642 | ||
19643 | ||
19644 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19645 | PyObject *resultobj; | |
19646 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19647 | long arg2 ; | |
19648 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19650 | char *kwnames[] = { |
19651 | (char *) "self",(char *) "m_itemIndex", NULL | |
19652 | }; | |
19653 | ||
8edf1c75 | 19654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19657 | arg2 = (long) SWIG_AsLong(obj1); | |
19658 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19659 | if (arg1) (arg1)->m_itemIndex = arg2; |
19660 | ||
19661 | Py_INCREF(Py_None); resultobj = Py_None; | |
19662 | return resultobj; | |
19663 | fail: | |
19664 | return NULL; | |
19665 | } | |
19666 | ||
19667 | ||
19668 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19669 | PyObject *resultobj; | |
19670 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19671 | long result; | |
19672 | PyObject * obj0 = 0 ; | |
19673 | char *kwnames[] = { | |
19674 | (char *) "self", NULL | |
19675 | }; | |
19676 | ||
19677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19680 | result = (long) ((arg1)->m_itemIndex); |
19681 | ||
2f4c0a16 | 19682 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19683 | return resultobj; |
19684 | fail: | |
19685 | return NULL; | |
19686 | } | |
19687 | ||
19688 | ||
19689 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19690 | PyObject *resultobj; | |
19691 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19692 | int arg2 ; | |
19693 | PyObject * obj0 = 0 ; | |
8edf1c75 | 19694 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19695 | char *kwnames[] = { |
19696 | (char *) "self",(char *) "m_col", NULL | |
19697 | }; | |
19698 | ||
8edf1c75 | 19699 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
19700 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19701 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19702 | arg2 = (int) SWIG_AsInt(obj1); | |
19703 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19704 | if (arg1) (arg1)->m_col = arg2; |
19705 | ||
19706 | Py_INCREF(Py_None); resultobj = Py_None; | |
19707 | return resultobj; | |
19708 | fail: | |
19709 | return NULL; | |
19710 | } | |
19711 | ||
19712 | ||
19713 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19714 | PyObject *resultobj; | |
19715 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19716 | int result; | |
19717 | PyObject * obj0 = 0 ; | |
19718 | char *kwnames[] = { | |
19719 | (char *) "self", NULL | |
19720 | }; | |
19721 | ||
19722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19725 | result = (int) ((arg1)->m_col); |
19726 | ||
2f4c0a16 | 19727 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19728 | return resultobj; |
19729 | fail: | |
19730 | return NULL; | |
19731 | } | |
19732 | ||
19733 | ||
19734 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19735 | PyObject *resultobj; | |
19736 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19737 | wxPoint *arg2 = (wxPoint *) 0 ; | |
19738 | PyObject * obj0 = 0 ; | |
19739 | PyObject * obj1 = 0 ; | |
19740 | char *kwnames[] = { | |
19741 | (char *) "self",(char *) "m_pointDrag", NULL | |
19742 | }; | |
19743 | ||
19744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
19745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19747 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
19748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19749 | if (arg1) (arg1)->m_pointDrag = *arg2; |
19750 | ||
19751 | Py_INCREF(Py_None); resultobj = Py_None; | |
19752 | return resultobj; | |
19753 | fail: | |
19754 | return NULL; | |
19755 | } | |
19756 | ||
19757 | ||
19758 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19759 | PyObject *resultobj; | |
19760 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19761 | wxPoint *result; | |
19762 | PyObject * obj0 = 0 ; | |
19763 | char *kwnames[] = { | |
19764 | (char *) "self", NULL | |
19765 | }; | |
19766 | ||
19767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19770 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
19771 | ||
2f4c0a16 | 19772 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
19773 | return resultobj; |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19782 | wxListItem *result; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19791 | result = (wxListItem *)& ((arg1)->m_item); |
19792 | ||
19793 | { | |
19794 | resultobj = wxPyMake_wxObject(result); | |
19795 | } | |
19796 | return resultobj; | |
19797 | fail: | |
19798 | return NULL; | |
19799 | } | |
19800 | ||
19801 | ||
19802 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19803 | PyObject *resultobj; | |
19804 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19805 | int result; | |
19806 | PyObject * obj0 = 0 ; | |
19807 | char *kwnames[] = { | |
19808 | (char *) "self", NULL | |
19809 | }; | |
19810 | ||
19811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19812 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19813 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19814 | { |
19815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19816 | result = (int)(arg1)->GetKeyCode(); | |
19817 | ||
19818 | wxPyEndAllowThreads(__tstate); | |
19819 | if (PyErr_Occurred()) SWIG_fail; | |
19820 | } | |
2f4c0a16 | 19821 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19822 | return resultobj; |
19823 | fail: | |
19824 | return NULL; | |
19825 | } | |
19826 | ||
19827 | ||
19828 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19829 | PyObject *resultobj; | |
19830 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19831 | long result; | |
19832 | PyObject * obj0 = 0 ; | |
19833 | char *kwnames[] = { | |
19834 | (char *) "self", NULL | |
19835 | }; | |
19836 | ||
19837 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19838 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19839 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19840 | { |
19841 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19842 | result = (long)(arg1)->GetIndex(); | |
19843 | ||
19844 | wxPyEndAllowThreads(__tstate); | |
19845 | if (PyErr_Occurred()) SWIG_fail; | |
19846 | } | |
2f4c0a16 | 19847 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19848 | return resultobj; |
19849 | fail: | |
19850 | return NULL; | |
19851 | } | |
19852 | ||
19853 | ||
19854 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19855 | PyObject *resultobj; | |
19856 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19857 | int result; | |
19858 | PyObject * obj0 = 0 ; | |
19859 | char *kwnames[] = { | |
19860 | (char *) "self", NULL | |
19861 | }; | |
19862 | ||
19863 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19864 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19865 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19866 | { |
19867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19868 | result = (int)(arg1)->GetColumn(); | |
19869 | ||
19870 | wxPyEndAllowThreads(__tstate); | |
19871 | if (PyErr_Occurred()) SWIG_fail; | |
19872 | } | |
2f4c0a16 | 19873 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19874 | return resultobj; |
19875 | fail: | |
19876 | return NULL; | |
19877 | } | |
19878 | ||
19879 | ||
19880 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19881 | PyObject *resultobj; | |
19882 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19883 | wxPoint result; | |
19884 | PyObject * obj0 = 0 ; | |
19885 | char *kwnames[] = { | |
19886 | (char *) "self", NULL | |
19887 | }; | |
19888 | ||
19889 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19890 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19891 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19892 | { |
19893 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19894 | result = (arg1)->GetPoint(); | |
19895 | ||
19896 | wxPyEndAllowThreads(__tstate); | |
19897 | if (PyErr_Occurred()) SWIG_fail; | |
19898 | } | |
19899 | { | |
19900 | wxPoint * resultptr; | |
19901 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 19902 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
19903 | } |
19904 | return resultobj; | |
19905 | fail: | |
19906 | return NULL; | |
19907 | } | |
19908 | ||
19909 | ||
19910 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19911 | PyObject *resultobj; | |
19912 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19913 | wxString *result; | |
19914 | PyObject * obj0 = 0 ; | |
19915 | char *kwnames[] = { | |
19916 | (char *) "self", NULL | |
19917 | }; | |
19918 | ||
19919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19922 | { |
19923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19924 | { | |
19925 | wxString const &_result_ref = (arg1)->GetLabel(); | |
19926 | result = (wxString *) &_result_ref; | |
19927 | } | |
19928 | ||
19929 | wxPyEndAllowThreads(__tstate); | |
19930 | if (PyErr_Occurred()) SWIG_fail; | |
19931 | } | |
f0983263 RD |
19932 | { |
19933 | #if wxUSE_UNICODE | |
19934 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19935 | #else | |
19936 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19937 | #endif | |
19938 | } | |
d14a1e28 RD |
19939 | return resultobj; |
19940 | fail: | |
19941 | return NULL; | |
19942 | } | |
19943 | ||
19944 | ||
19945 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19946 | PyObject *resultobj; | |
19947 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19948 | wxString *result; | |
19949 | PyObject * obj0 = 0 ; | |
19950 | char *kwnames[] = { | |
19951 | (char *) "self", NULL | |
19952 | }; | |
19953 | ||
19954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19957 | { |
19958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19959 | { | |
19960 | wxString const &_result_ref = (arg1)->GetText(); | |
19961 | result = (wxString *) &_result_ref; | |
19962 | } | |
19963 | ||
19964 | wxPyEndAllowThreads(__tstate); | |
19965 | if (PyErr_Occurred()) SWIG_fail; | |
19966 | } | |
f0983263 RD |
19967 | { |
19968 | #if wxUSE_UNICODE | |
19969 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19970 | #else | |
19971 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19972 | #endif | |
19973 | } | |
d14a1e28 RD |
19974 | return resultobj; |
19975 | fail: | |
19976 | return NULL; | |
19977 | } | |
19978 | ||
19979 | ||
19980 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19981 | PyObject *resultobj; | |
19982 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
19983 | int result; | |
19984 | PyObject * obj0 = 0 ; | |
19985 | char *kwnames[] = { | |
19986 | (char *) "self", NULL | |
19987 | }; | |
19988 | ||
19989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
19990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
19991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19992 | { |
19993 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19994 | result = (int)(arg1)->GetImage(); | |
19995 | ||
19996 | wxPyEndAllowThreads(__tstate); | |
19997 | if (PyErr_Occurred()) SWIG_fail; | |
19998 | } | |
2f4c0a16 | 19999 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20000 | return resultobj; |
20001 | fail: | |
20002 | return NULL; | |
20003 | } | |
20004 | ||
20005 | ||
20006 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20007 | PyObject *resultobj; | |
20008 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20009 | long result; | |
20010 | PyObject * obj0 = 0 ; | |
20011 | char *kwnames[] = { | |
20012 | (char *) "self", NULL | |
20013 | }; | |
20014 | ||
20015 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20016 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20017 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20018 | { |
20019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20020 | result = (long)(arg1)->GetData(); | |
20021 | ||
20022 | wxPyEndAllowThreads(__tstate); | |
20023 | if (PyErr_Occurred()) SWIG_fail; | |
20024 | } | |
2f4c0a16 | 20025 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20026 | return resultobj; |
20027 | fail: | |
20028 | return NULL; | |
20029 | } | |
20030 | ||
20031 | ||
20032 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20033 | PyObject *resultobj; | |
20034 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20035 | long result; | |
20036 | PyObject * obj0 = 0 ; | |
20037 | char *kwnames[] = { | |
20038 | (char *) "self", NULL | |
20039 | }; | |
20040 | ||
20041 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20042 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20043 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20044 | { |
20045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20046 | result = (long)(arg1)->GetMask(); | |
20047 | ||
20048 | wxPyEndAllowThreads(__tstate); | |
20049 | if (PyErr_Occurred()) SWIG_fail; | |
20050 | } | |
2f4c0a16 | 20051 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20052 | return resultobj; |
20053 | fail: | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20061 | wxListItem *result; | |
20062 | PyObject * obj0 = 0 ; | |
20063 | char *kwnames[] = { | |
20064 | (char *) "self", NULL | |
20065 | }; | |
20066 | ||
20067 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20068 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20069 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20070 | { |
20071 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20072 | { | |
20073 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20074 | result = (wxListItem *) &_result_ref; | |
20075 | } | |
20076 | ||
20077 | wxPyEndAllowThreads(__tstate); | |
20078 | if (PyErr_Occurred()) SWIG_fail; | |
20079 | } | |
2f4c0a16 | 20080 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20081 | return resultobj; |
20082 | fail: | |
20083 | return NULL; | |
20084 | } | |
20085 | ||
20086 | ||
20087 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20088 | PyObject *resultobj; | |
20089 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20090 | long result; | |
20091 | PyObject * obj0 = 0 ; | |
20092 | char *kwnames[] = { | |
20093 | (char *) "self", NULL | |
20094 | }; | |
20095 | ||
20096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20099 | { |
20100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20101 | result = (long)(arg1)->GetCacheFrom(); | |
20102 | ||
20103 | wxPyEndAllowThreads(__tstate); | |
20104 | if (PyErr_Occurred()) SWIG_fail; | |
20105 | } | |
2f4c0a16 | 20106 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20107 | return resultobj; |
20108 | fail: | |
20109 | return NULL; | |
20110 | } | |
20111 | ||
20112 | ||
20113 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20114 | PyObject *resultobj; | |
20115 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20116 | long result; | |
20117 | PyObject * obj0 = 0 ; | |
20118 | char *kwnames[] = { | |
20119 | (char *) "self", NULL | |
20120 | }; | |
20121 | ||
20122 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20123 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20124 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20125 | { |
20126 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20127 | result = (long)(arg1)->GetCacheTo(); | |
20128 | ||
20129 | wxPyEndAllowThreads(__tstate); | |
20130 | if (PyErr_Occurred()) SWIG_fail; | |
20131 | } | |
2f4c0a16 | 20132 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20133 | return resultobj; |
20134 | fail: | |
20135 | return NULL; | |
20136 | } | |
20137 | ||
20138 | ||
20139 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20140 | PyObject *resultobj; | |
20141 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20142 | bool result; | |
20143 | PyObject * obj0 = 0 ; | |
20144 | char *kwnames[] = { | |
20145 | (char *) "self", NULL | |
20146 | }; | |
20147 | ||
20148 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20149 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20151 | { |
20152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20153 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
20154 | ||
20155 | wxPyEndAllowThreads(__tstate); | |
20156 | if (PyErr_Occurred()) SWIG_fail; | |
20157 | } | |
4f89f6a3 RD |
20158 | { |
20159 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20160 | } | |
d14a1e28 RD |
20161 | return resultobj; |
20162 | fail: | |
20163 | return NULL; | |
20164 | } | |
20165 | ||
20166 | ||
20167 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20168 | PyObject *resultobj; | |
20169 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20170 | bool arg2 ; | |
20171 | PyObject * obj0 = 0 ; | |
20172 | PyObject * obj1 = 0 ; | |
20173 | char *kwnames[] = { | |
20174 | (char *) "self",(char *) "editCancelled", NULL | |
20175 | }; | |
20176 | ||
20177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20180 | arg2 = (bool) SWIG_AsBool(obj1); | |
20181 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20182 | { |
20183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20184 | (arg1)->SetEditCanceled(arg2); | |
20185 | ||
20186 | wxPyEndAllowThreads(__tstate); | |
20187 | if (PyErr_Occurred()) SWIG_fail; | |
20188 | } | |
20189 | Py_INCREF(Py_None); resultobj = Py_None; | |
20190 | return resultobj; | |
20191 | fail: | |
20192 | return NULL; | |
20193 | } | |
20194 | ||
20195 | ||
20196 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
20197 | PyObject *obj; | |
20198 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20199 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
20200 | Py_INCREF(obj); | |
20201 | return Py_BuildValue((char *)""); | |
20202 | } | |
20203 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20204 | PyObject *resultobj; | |
20205 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 20206 | int arg2 = (int) -1 ; |
d14a1e28 RD |
20207 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
20208 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
20209 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
20210 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
20211 | long arg5 = (long) wxLC_ICON ; | |
20212 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
20213 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
20214 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
20215 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
20216 | wxPyListCtrl *result; | |
20217 | wxPoint temp3 ; | |
20218 | wxSize temp4 ; | |
423f194a | 20219 | bool temp7 = False ; |
d14a1e28 | 20220 | PyObject * obj0 = 0 ; |
8edf1c75 | 20221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20222 | PyObject * obj2 = 0 ; |
20223 | PyObject * obj3 = 0 ; | |
8edf1c75 | 20224 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20225 | PyObject * obj5 = 0 ; |
20226 | PyObject * obj6 = 0 ; | |
20227 | char *kwnames[] = { | |
20228 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20229 | }; | |
20230 | ||
8edf1c75 | 20231 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
20232 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
20233 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20234 | if (obj1) { |
2f4c0a16 RD |
20235 | arg2 = (int) SWIG_AsInt(obj1); |
20236 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20237 | } |
d14a1e28 RD |
20238 | if (obj2) { |
20239 | { | |
20240 | arg3 = &temp3; | |
20241 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
20242 | } | |
20243 | } | |
20244 | if (obj3) { | |
20245 | { | |
20246 | arg4 = &temp4; | |
20247 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
20248 | } | |
20249 | } | |
8edf1c75 | 20250 | if (obj4) { |
2f4c0a16 RD |
20251 | arg5 = (long) SWIG_AsLong(obj4); |
20252 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20253 | } |
d14a1e28 | 20254 | if (obj5) { |
2f4c0a16 RD |
20255 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
20256 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20257 | SWIG_fail; | |
d14a1e28 | 20258 | if (arg6 == NULL) { |
2f4c0a16 RD |
20259 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20260 | SWIG_fail; | |
d14a1e28 RD |
20261 | } |
20262 | } | |
20263 | if (obj6) { | |
20264 | { | |
20265 | arg7 = wxString_in_helper(obj6); | |
20266 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 20267 | temp7 = True; |
d14a1e28 RD |
20268 | } |
20269 | } | |
20270 | { | |
20271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20272 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
20273 | ||
20274 | wxPyEndAllowThreads(__tstate); | |
20275 | if (PyErr_Occurred()) SWIG_fail; | |
20276 | } | |
2f4c0a16 | 20277 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20278 | { |
20279 | if (temp7) | |
20280 | delete arg7; | |
20281 | } | |
20282 | return resultobj; | |
20283 | fail: | |
20284 | { | |
20285 | if (temp7) | |
20286 | delete arg7; | |
20287 | } | |
20288 | return NULL; | |
20289 | } | |
20290 | ||
20291 | ||
20292 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20293 | PyObject *resultobj; | |
20294 | wxPyListCtrl *result; | |
20295 | char *kwnames[] = { | |
20296 | NULL | |
20297 | }; | |
20298 | ||
20299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
20300 | { | |
20301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20302 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
20303 | ||
20304 | wxPyEndAllowThreads(__tstate); | |
20305 | if (PyErr_Occurred()) SWIG_fail; | |
20306 | } | |
2f4c0a16 | 20307 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
20308 | return resultobj; |
20309 | fail: | |
20310 | return NULL; | |
20311 | } | |
20312 | ||
20313 | ||
20314 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20315 | PyObject *resultobj; | |
20316 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20317 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 20318 | int arg3 = (int) -1 ; |
d14a1e28 RD |
20319 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
20320 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
20321 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
20322 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
20323 | long arg6 = (long) wxLC_ICON ; | |
20324 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
20325 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
20326 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
20327 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
20328 | bool result; | |
20329 | wxPoint temp4 ; | |
20330 | wxSize temp5 ; | |
423f194a | 20331 | bool temp8 = False ; |
d14a1e28 RD |
20332 | PyObject * obj0 = 0 ; |
20333 | PyObject * obj1 = 0 ; | |
8edf1c75 | 20334 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
20335 | PyObject * obj3 = 0 ; |
20336 | PyObject * obj4 = 0 ; | |
8edf1c75 | 20337 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
20338 | PyObject * obj6 = 0 ; |
20339 | PyObject * obj7 = 0 ; | |
20340 | char *kwnames[] = { | |
20341 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
20342 | }; | |
20343 | ||
8edf1c75 | 20344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
20345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20347 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
20348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 20349 | if (obj2) { |
2f4c0a16 RD |
20350 | arg3 = (int) SWIG_AsInt(obj2); |
20351 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20352 | } |
d14a1e28 RD |
20353 | if (obj3) { |
20354 | { | |
20355 | arg4 = &temp4; | |
20356 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
20357 | } | |
20358 | } | |
20359 | if (obj4) { | |
20360 | { | |
20361 | arg5 = &temp5; | |
20362 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
20363 | } | |
20364 | } | |
8edf1c75 | 20365 | if (obj5) { |
2f4c0a16 RD |
20366 | arg6 = (long) SWIG_AsLong(obj5); |
20367 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20368 | } |
d14a1e28 | 20369 | if (obj6) { |
2f4c0a16 RD |
20370 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
20371 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20372 | SWIG_fail; | |
d14a1e28 | 20373 | if (arg7 == NULL) { |
2f4c0a16 RD |
20374 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20375 | SWIG_fail; | |
d14a1e28 RD |
20376 | } |
20377 | } | |
20378 | if (obj7) { | |
20379 | { | |
20380 | arg8 = wxString_in_helper(obj7); | |
20381 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 20382 | temp8 = True; |
d14a1e28 RD |
20383 | } |
20384 | } | |
20385 | { | |
20386 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20387 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
20388 | ||
20389 | wxPyEndAllowThreads(__tstate); | |
20390 | if (PyErr_Occurred()) SWIG_fail; | |
20391 | } | |
4f89f6a3 RD |
20392 | { |
20393 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20394 | } | |
d14a1e28 RD |
20395 | { |
20396 | if (temp8) | |
20397 | delete arg8; | |
20398 | } | |
20399 | return resultobj; | |
20400 | fail: | |
20401 | { | |
20402 | if (temp8) | |
20403 | delete arg8; | |
20404 | } | |
20405 | return NULL; | |
20406 | } | |
20407 | ||
20408 | ||
20409 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20410 | PyObject *resultobj; | |
20411 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20412 | PyObject *arg2 = (PyObject *) 0 ; | |
20413 | PyObject *arg3 = (PyObject *) 0 ; | |
20414 | PyObject * obj0 = 0 ; | |
20415 | PyObject * obj1 = 0 ; | |
20416 | PyObject * obj2 = 0 ; | |
20417 | char *kwnames[] = { | |
20418 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
20419 | }; | |
20420 | ||
20421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
20422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20424 | arg2 = obj1; |
20425 | arg3 = obj2; | |
20426 | { | |
20427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20428 | (arg1)->_setCallbackInfo(arg2,arg3); | |
20429 | ||
20430 | wxPyEndAllowThreads(__tstate); | |
20431 | if (PyErr_Occurred()) SWIG_fail; | |
20432 | } | |
20433 | Py_INCREF(Py_None); resultobj = Py_None; | |
20434 | return resultobj; | |
20435 | fail: | |
20436 | return NULL; | |
20437 | } | |
20438 | ||
20439 | ||
20440 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20441 | PyObject *resultobj; | |
20442 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20443 | wxColour *arg2 = 0 ; | |
20444 | bool result; | |
20445 | wxColour temp2 ; | |
20446 | PyObject * obj0 = 0 ; | |
20447 | PyObject * obj1 = 0 ; | |
20448 | char *kwnames[] = { | |
20449 | (char *) "self",(char *) "col", NULL | |
20450 | }; | |
20451 | ||
20452 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20453 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20454 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20455 | { |
20456 | arg2 = &temp2; | |
20457 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20458 | } | |
20459 | { | |
20460 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20461 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
20462 | ||
20463 | wxPyEndAllowThreads(__tstate); | |
20464 | if (PyErr_Occurred()) SWIG_fail; | |
20465 | } | |
4f89f6a3 RD |
20466 | { |
20467 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20468 | } | |
d14a1e28 RD |
20469 | return resultobj; |
20470 | fail: | |
20471 | return NULL; | |
20472 | } | |
20473 | ||
20474 | ||
20475 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20476 | PyObject *resultobj; | |
20477 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20478 | wxColour *arg2 = 0 ; | |
20479 | bool result; | |
20480 | wxColour temp2 ; | |
20481 | PyObject * obj0 = 0 ; | |
20482 | PyObject * obj1 = 0 ; | |
20483 | char *kwnames[] = { | |
20484 | (char *) "self",(char *) "col", NULL | |
20485 | }; | |
20486 | ||
20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20490 | { |
20491 | arg2 = &temp2; | |
20492 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
20493 | } | |
20494 | { | |
20495 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20496 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
20497 | ||
20498 | wxPyEndAllowThreads(__tstate); | |
20499 | if (PyErr_Occurred()) SWIG_fail; | |
20500 | } | |
4f89f6a3 RD |
20501 | { |
20502 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20503 | } | |
d14a1e28 RD |
20504 | return resultobj; |
20505 | fail: | |
20506 | return NULL; | |
20507 | } | |
20508 | ||
20509 | ||
20510 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20511 | PyObject *resultobj; | |
20512 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20513 | int arg2 ; | |
20514 | wxListItem *result; | |
20515 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20516 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20517 | char *kwnames[] = { |
20518 | (char *) "self",(char *) "col", NULL | |
20519 | }; | |
20520 | ||
8edf1c75 | 20521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20524 | arg2 = (int) SWIG_AsInt(obj1); | |
20525 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20526 | { |
20527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20528 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
20529 | ||
20530 | wxPyEndAllowThreads(__tstate); | |
20531 | if (PyErr_Occurred()) SWIG_fail; | |
20532 | } | |
20533 | { | |
20534 | resultobj = wxPyMake_wxObject(result); | |
20535 | } | |
20536 | return resultobj; | |
20537 | fail: | |
20538 | return NULL; | |
20539 | } | |
20540 | ||
20541 | ||
20542 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20543 | PyObject *resultobj; | |
20544 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20545 | int arg2 ; | |
20546 | wxListItem *arg3 = 0 ; | |
20547 | bool result; | |
20548 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20549 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20550 | PyObject * obj2 = 0 ; |
20551 | char *kwnames[] = { | |
20552 | (char *) "self",(char *) "col",(char *) "item", NULL | |
20553 | }; | |
20554 | ||
8edf1c75 | 20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20558 | arg2 = (int) SWIG_AsInt(obj1); | |
20559 | if (PyErr_Occurred()) SWIG_fail; | |
20560 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
20561 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20562 | SWIG_fail; | |
d14a1e28 | 20563 | if (arg3 == NULL) { |
2f4c0a16 RD |
20564 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20565 | SWIG_fail; | |
d14a1e28 RD |
20566 | } |
20567 | { | |
20568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20569 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
20570 | ||
20571 | wxPyEndAllowThreads(__tstate); | |
20572 | if (PyErr_Occurred()) SWIG_fail; | |
20573 | } | |
4f89f6a3 RD |
20574 | { |
20575 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20576 | } | |
d14a1e28 RD |
20577 | return resultobj; |
20578 | fail: | |
20579 | return NULL; | |
20580 | } | |
20581 | ||
20582 | ||
20583 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20584 | PyObject *resultobj; | |
20585 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20586 | int arg2 ; | |
20587 | int result; | |
20588 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20589 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20590 | char *kwnames[] = { |
20591 | (char *) "self",(char *) "col", NULL | |
20592 | }; | |
20593 | ||
8edf1c75 | 20594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20597 | arg2 = (int) SWIG_AsInt(obj1); | |
20598 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20599 | { |
20600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20601 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
20602 | ||
20603 | wxPyEndAllowThreads(__tstate); | |
20604 | if (PyErr_Occurred()) SWIG_fail; | |
20605 | } | |
2f4c0a16 | 20606 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20607 | return resultobj; |
20608 | fail: | |
20609 | return NULL; | |
20610 | } | |
20611 | ||
20612 | ||
20613 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20614 | PyObject *resultobj; | |
20615 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20616 | int arg2 ; | |
20617 | int arg3 ; | |
20618 | bool result; | |
20619 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20620 | PyObject * obj1 = 0 ; |
20621 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20622 | char *kwnames[] = { |
20623 | (char *) "self",(char *) "col",(char *) "width", NULL | |
20624 | }; | |
20625 | ||
8edf1c75 | 20626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20629 | arg2 = (int) SWIG_AsInt(obj1); | |
20630 | if (PyErr_Occurred()) SWIG_fail; | |
20631 | arg3 = (int) SWIG_AsInt(obj2); | |
20632 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20633 | { |
20634 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20635 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
20636 | ||
20637 | wxPyEndAllowThreads(__tstate); | |
20638 | if (PyErr_Occurred()) SWIG_fail; | |
20639 | } | |
4f89f6a3 RD |
20640 | { |
20641 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20642 | } | |
d14a1e28 RD |
20643 | return resultobj; |
20644 | fail: | |
20645 | return NULL; | |
20646 | } | |
20647 | ||
20648 | ||
20649 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20650 | PyObject *resultobj; | |
20651 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20652 | int result; | |
20653 | PyObject * obj0 = 0 ; | |
20654 | char *kwnames[] = { | |
20655 | (char *) "self", NULL | |
20656 | }; | |
20657 | ||
20658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20661 | { |
20662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20663 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
20664 | ||
20665 | wxPyEndAllowThreads(__tstate); | |
20666 | if (PyErr_Occurred()) SWIG_fail; | |
20667 | } | |
2f4c0a16 | 20668 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20669 | return resultobj; |
20670 | fail: | |
20671 | return NULL; | |
20672 | } | |
20673 | ||
20674 | ||
20675 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20676 | PyObject *resultobj; | |
20677 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20678 | wxRect result; | |
20679 | PyObject * obj0 = 0 ; | |
20680 | char *kwnames[] = { | |
20681 | (char *) "self", NULL | |
20682 | }; | |
20683 | ||
20684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20687 | { |
20688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20689 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
20690 | ||
20691 | wxPyEndAllowThreads(__tstate); | |
20692 | if (PyErr_Occurred()) SWIG_fail; | |
20693 | } | |
20694 | { | |
20695 | wxRect * resultptr; | |
20696 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 20697 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
20698 | } |
20699 | return resultobj; | |
20700 | fail: | |
20701 | return NULL; | |
20702 | } | |
20703 | ||
20704 | ||
20705 | static PyObject *_wrap_ListCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20706 | PyObject *resultobj; | |
20707 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20708 | wxTextCtrl *result; | |
20709 | PyObject * obj0 = 0 ; | |
20710 | char *kwnames[] = { | |
20711 | (char *) "self", NULL | |
20712 | }; | |
20713 | ||
20714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
20715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20717 | { |
20718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20719 | result = (wxTextCtrl *)((wxPyListCtrl const *)arg1)->GetEditControl(); | |
20720 | ||
20721 | wxPyEndAllowThreads(__tstate); | |
20722 | if (PyErr_Occurred()) SWIG_fail; | |
20723 | } | |
20724 | { | |
20725 | resultobj = wxPyMake_wxObject(result); | |
20726 | } | |
20727 | return resultobj; | |
20728 | fail: | |
20729 | return NULL; | |
20730 | } | |
20731 | ||
20732 | ||
20733 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20734 | PyObject *resultobj; | |
20735 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20736 | long arg2 ; | |
20737 | int arg3 = (int) 0 ; | |
20738 | wxListItem *result; | |
20739 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20740 | PyObject * obj1 = 0 ; |
20741 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20742 | char *kwnames[] = { |
20743 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
20744 | }; | |
20745 | ||
8edf1c75 | 20746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20749 | arg2 = (long) SWIG_AsLong(obj1); | |
20750 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20751 | if (obj2) { |
2f4c0a16 RD |
20752 | arg3 = (int) SWIG_AsInt(obj2); |
20753 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20754 | } |
d14a1e28 RD |
20755 | { |
20756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20757 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
20758 | ||
20759 | wxPyEndAllowThreads(__tstate); | |
20760 | if (PyErr_Occurred()) SWIG_fail; | |
20761 | } | |
20762 | { | |
20763 | resultobj = wxPyMake_wxObject(result); | |
20764 | } | |
20765 | return resultobj; | |
20766 | fail: | |
20767 | return NULL; | |
20768 | } | |
20769 | ||
20770 | ||
20771 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20772 | PyObject *resultobj; | |
20773 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20774 | wxListItem *arg2 = 0 ; | |
20775 | bool result; | |
20776 | PyObject * obj0 = 0 ; | |
20777 | PyObject * obj1 = 0 ; | |
20778 | char *kwnames[] = { | |
20779 | (char *) "self",(char *) "info", NULL | |
20780 | }; | |
20781 | ||
20782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
20783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20785 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
20786 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
20787 | SWIG_fail; | |
d14a1e28 | 20788 | if (arg2 == NULL) { |
2f4c0a16 RD |
20789 | PyErr_SetString(PyExc_TypeError,"null reference"); |
20790 | SWIG_fail; | |
d14a1e28 RD |
20791 | } |
20792 | { | |
20793 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20794 | result = (bool)(arg1)->SetItem(*arg2); | |
20795 | ||
20796 | wxPyEndAllowThreads(__tstate); | |
20797 | if (PyErr_Occurred()) SWIG_fail; | |
20798 | } | |
4f89f6a3 RD |
20799 | { |
20800 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20801 | } | |
d14a1e28 RD |
20802 | return resultobj; |
20803 | fail: | |
20804 | return NULL; | |
20805 | } | |
20806 | ||
20807 | ||
20808 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20809 | PyObject *resultobj; | |
20810 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20811 | long arg2 ; | |
20812 | int arg3 ; | |
20813 | wxString *arg4 = 0 ; | |
20814 | int arg5 = (int) -1 ; | |
20815 | long result; | |
423f194a | 20816 | bool temp4 = False ; |
d14a1e28 | 20817 | PyObject * obj0 = 0 ; |
8edf1c75 RD |
20818 | PyObject * obj1 = 0 ; |
20819 | PyObject * obj2 = 0 ; | |
d14a1e28 | 20820 | PyObject * obj3 = 0 ; |
8edf1c75 | 20821 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
20822 | char *kwnames[] = { |
20823 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
20824 | }; | |
20825 | ||
8edf1c75 | 20826 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
20827 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20828 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20829 | arg2 = (long) SWIG_AsLong(obj1); | |
20830 | if (PyErr_Occurred()) SWIG_fail; | |
20831 | arg3 = (int) SWIG_AsInt(obj2); | |
20832 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20833 | { |
20834 | arg4 = wxString_in_helper(obj3); | |
20835 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 20836 | temp4 = True; |
d14a1e28 | 20837 | } |
8edf1c75 | 20838 | if (obj4) { |
2f4c0a16 RD |
20839 | arg5 = (int) SWIG_AsInt(obj4); |
20840 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 20841 | } |
d14a1e28 RD |
20842 | { |
20843 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20844 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
20845 | ||
20846 | wxPyEndAllowThreads(__tstate); | |
20847 | if (PyErr_Occurred()) SWIG_fail; | |
20848 | } | |
2f4c0a16 | 20849 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20850 | { |
20851 | if (temp4) | |
20852 | delete arg4; | |
20853 | } | |
20854 | return resultobj; | |
20855 | fail: | |
20856 | { | |
20857 | if (temp4) | |
20858 | delete arg4; | |
20859 | } | |
20860 | return NULL; | |
20861 | } | |
20862 | ||
20863 | ||
20864 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20865 | PyObject *resultobj; | |
20866 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20867 | long arg2 ; | |
20868 | long arg3 ; | |
20869 | int result; | |
20870 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20871 | PyObject * obj1 = 0 ; |
20872 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
20873 | char *kwnames[] = { |
20874 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
20875 | }; | |
20876 | ||
8edf1c75 | 20877 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
20878 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20879 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20880 | arg2 = (long) SWIG_AsLong(obj1); | |
20881 | if (PyErr_Occurred()) SWIG_fail; | |
20882 | arg3 = (long) SWIG_AsLong(obj2); | |
20883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20884 | { |
20885 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20886 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
20887 | ||
20888 | wxPyEndAllowThreads(__tstate); | |
20889 | if (PyErr_Occurred()) SWIG_fail; | |
20890 | } | |
2f4c0a16 | 20891 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20892 | return resultobj; |
20893 | fail: | |
20894 | return NULL; | |
20895 | } | |
20896 | ||
20897 | ||
20898 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20899 | PyObject *resultobj; | |
20900 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20901 | long arg2 ; | |
20902 | long arg3 ; | |
20903 | long arg4 ; | |
20904 | bool result; | |
20905 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20906 | PyObject * obj1 = 0 ; |
20907 | PyObject * obj2 = 0 ; | |
20908 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20909 | char *kwnames[] = { |
20910 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
20911 | }; | |
20912 | ||
8edf1c75 | 20913 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20914 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20915 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20916 | arg2 = (long) SWIG_AsLong(obj1); | |
20917 | if (PyErr_Occurred()) SWIG_fail; | |
20918 | arg3 = (long) SWIG_AsLong(obj2); | |
20919 | if (PyErr_Occurred()) SWIG_fail; | |
20920 | arg4 = (long) SWIG_AsLong(obj3); | |
20921 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20922 | { |
20923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20924 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
20925 | ||
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
4f89f6a3 RD |
20929 | { |
20930 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20931 | } | |
d14a1e28 RD |
20932 | return resultobj; |
20933 | fail: | |
20934 | return NULL; | |
20935 | } | |
20936 | ||
20937 | ||
20938 | static PyObject *_wrap_ListCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20939 | PyObject *resultobj; | |
20940 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20941 | long arg2 ; | |
20942 | int arg3 ; | |
20943 | int arg4 ; | |
20944 | bool result; | |
20945 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
20946 | PyObject * obj1 = 0 ; |
20947 | PyObject * obj2 = 0 ; | |
20948 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
20949 | char *kwnames[] = { |
20950 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
20951 | }; | |
20952 | ||
8edf1c75 | 20953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
20954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20956 | arg2 = (long) SWIG_AsLong(obj1); | |
20957 | if (PyErr_Occurred()) SWIG_fail; | |
20958 | arg3 = (int) SWIG_AsInt(obj2); | |
20959 | if (PyErr_Occurred()) SWIG_fail; | |
20960 | arg4 = (int) SWIG_AsInt(obj3); | |
20961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20962 | { |
20963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20964 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
20965 | ||
20966 | wxPyEndAllowThreads(__tstate); | |
20967 | if (PyErr_Occurred()) SWIG_fail; | |
20968 | } | |
4f89f6a3 RD |
20969 | { |
20970 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
20971 | } | |
d14a1e28 RD |
20972 | return resultobj; |
20973 | fail: | |
20974 | return NULL; | |
20975 | } | |
20976 | ||
20977 | ||
20978 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20979 | PyObject *resultobj; | |
20980 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
20981 | long arg2 ; | |
20982 | wxString result; | |
20983 | PyObject * obj0 = 0 ; | |
8edf1c75 | 20984 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20985 | char *kwnames[] = { |
20986 | (char *) "self",(char *) "item", NULL | |
20987 | }; | |
20988 | ||
8edf1c75 | 20989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
20990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
20991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20992 | arg2 = (long) SWIG_AsLong(obj1); | |
20993 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20994 | { |
20995 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20996 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
20997 | ||
20998 | wxPyEndAllowThreads(__tstate); | |
20999 | if (PyErr_Occurred()) SWIG_fail; | |
21000 | } | |
21001 | { | |
21002 | #if wxUSE_UNICODE | |
21003 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21004 | #else | |
21005 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21006 | #endif | |
21007 | } | |
21008 | return resultobj; | |
21009 | fail: | |
21010 | return NULL; | |
21011 | } | |
21012 | ||
21013 | ||
21014 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21015 | PyObject *resultobj; | |
21016 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21017 | long arg2 ; | |
21018 | wxString *arg3 = 0 ; | |
423f194a | 21019 | bool temp3 = False ; |
d14a1e28 | 21020 | PyObject * obj0 = 0 ; |
8edf1c75 | 21021 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21022 | PyObject * obj2 = 0 ; |
21023 | char *kwnames[] = { | |
21024 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21025 | }; | |
21026 | ||
8edf1c75 | 21027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21030 | arg2 = (long) SWIG_AsLong(obj1); | |
21031 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21032 | { |
21033 | arg3 = wxString_in_helper(obj2); | |
21034 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 21035 | temp3 = True; |
d14a1e28 RD |
21036 | } |
21037 | { | |
21038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21039 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21040 | ||
21041 | wxPyEndAllowThreads(__tstate); | |
21042 | if (PyErr_Occurred()) SWIG_fail; | |
21043 | } | |
21044 | Py_INCREF(Py_None); resultobj = Py_None; | |
21045 | { | |
21046 | if (temp3) | |
21047 | delete arg3; | |
21048 | } | |
21049 | return resultobj; | |
21050 | fail: | |
21051 | { | |
21052 | if (temp3) | |
21053 | delete arg3; | |
21054 | } | |
21055 | return NULL; | |
21056 | } | |
21057 | ||
21058 | ||
21059 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21060 | PyObject *resultobj; | |
21061 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21062 | long arg2 ; | |
21063 | long result; | |
21064 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21065 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21066 | char *kwnames[] = { |
21067 | (char *) "self",(char *) "item", NULL | |
21068 | }; | |
21069 | ||
8edf1c75 | 21070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21073 | arg2 = (long) SWIG_AsLong(obj1); | |
21074 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21075 | { |
21076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21077 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21078 | ||
21079 | wxPyEndAllowThreads(__tstate); | |
21080 | if (PyErr_Occurred()) SWIG_fail; | |
21081 | } | |
2f4c0a16 | 21082 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21083 | return resultobj; |
21084 | fail: | |
21085 | return NULL; | |
21086 | } | |
21087 | ||
21088 | ||
21089 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21090 | PyObject *resultobj; | |
21091 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21092 | long arg2 ; | |
21093 | long arg3 ; | |
21094 | bool result; | |
21095 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21096 | PyObject * obj1 = 0 ; |
21097 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21098 | char *kwnames[] = { |
21099 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21100 | }; | |
21101 | ||
8edf1c75 | 21102 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21103 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21104 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21105 | arg2 = (long) SWIG_AsLong(obj1); | |
21106 | if (PyErr_Occurred()) SWIG_fail; | |
21107 | arg3 = (long) SWIG_AsLong(obj2); | |
21108 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21109 | { |
21110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21111 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21112 | ||
21113 | wxPyEndAllowThreads(__tstate); | |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
21115 | } | |
4f89f6a3 RD |
21116 | { |
21117 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21118 | } | |
d14a1e28 RD |
21119 | return resultobj; |
21120 | fail: | |
21121 | return NULL; | |
21122 | } | |
21123 | ||
21124 | ||
21125 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21126 | PyObject *resultobj; | |
21127 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21128 | long arg2 ; | |
21129 | wxPoint result; | |
21130 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21131 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21132 | char *kwnames[] = { |
21133 | (char *) "self",(char *) "item", NULL | |
21134 | }; | |
21135 | ||
8edf1c75 | 21136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21139 | arg2 = (long) SWIG_AsLong(obj1); | |
21140 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21141 | { |
21142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21143 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21144 | ||
21145 | wxPyEndAllowThreads(__tstate); | |
21146 | if (PyErr_Occurred()) SWIG_fail; | |
21147 | } | |
21148 | { | |
21149 | wxPoint * resultptr; | |
21150 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 21151 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
21152 | } |
21153 | return resultobj; | |
21154 | fail: | |
21155 | return NULL; | |
21156 | } | |
21157 | ||
21158 | ||
21159 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21160 | PyObject *resultobj; | |
21161 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21162 | long arg2 ; | |
21163 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
21164 | wxRect result; | |
21165 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21166 | PyObject * obj1 = 0 ; |
21167 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21168 | char *kwnames[] = { |
21169 | (char *) "self",(char *) "item",(char *) "code", NULL | |
21170 | }; | |
21171 | ||
8edf1c75 | 21172 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21173 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21174 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21175 | arg2 = (long) SWIG_AsLong(obj1); | |
21176 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21177 | if (obj2) { |
2f4c0a16 RD |
21178 | arg3 = (int) SWIG_AsInt(obj2); |
21179 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21180 | } |
d14a1e28 RD |
21181 | { |
21182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21183 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
21184 | ||
21185 | wxPyEndAllowThreads(__tstate); | |
21186 | if (PyErr_Occurred()) SWIG_fail; | |
21187 | } | |
21188 | { | |
21189 | wxRect * resultptr; | |
21190 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 21191 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21192 | } |
21193 | return resultobj; | |
21194 | fail: | |
21195 | return NULL; | |
21196 | } | |
21197 | ||
21198 | ||
21199 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21200 | PyObject *resultobj; | |
21201 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21202 | long arg2 ; | |
21203 | wxPoint *arg3 = 0 ; | |
21204 | bool result; | |
21205 | wxPoint temp3 ; | |
21206 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21207 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21208 | PyObject * obj2 = 0 ; |
21209 | char *kwnames[] = { | |
21210 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
21211 | }; | |
21212 | ||
8edf1c75 | 21213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21216 | arg2 = (long) SWIG_AsLong(obj1); | |
21217 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21218 | { |
21219 | arg3 = &temp3; | |
21220 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21221 | } | |
21222 | { | |
21223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21224 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
21225 | ||
21226 | wxPyEndAllowThreads(__tstate); | |
21227 | if (PyErr_Occurred()) SWIG_fail; | |
21228 | } | |
4f89f6a3 RD |
21229 | { |
21230 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21231 | } | |
d14a1e28 RD |
21232 | return resultobj; |
21233 | fail: | |
21234 | return NULL; | |
21235 | } | |
21236 | ||
21237 | ||
21238 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21239 | PyObject *resultobj; | |
21240 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21241 | int result; | |
21242 | PyObject * obj0 = 0 ; | |
21243 | char *kwnames[] = { | |
21244 | (char *) "self", NULL | |
21245 | }; | |
21246 | ||
21247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21250 | { |
21251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21252 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
21253 | ||
21254 | wxPyEndAllowThreads(__tstate); | |
21255 | if (PyErr_Occurred()) SWIG_fail; | |
21256 | } | |
2f4c0a16 | 21257 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21258 | return resultobj; |
21259 | fail: | |
21260 | return NULL; | |
21261 | } | |
21262 | ||
21263 | ||
21264 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21265 | PyObject *resultobj; | |
21266 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21267 | int result; | |
21268 | PyObject * obj0 = 0 ; | |
21269 | char *kwnames[] = { | |
21270 | (char *) "self", NULL | |
21271 | }; | |
21272 | ||
21273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21276 | { |
21277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21278 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
21279 | ||
21280 | wxPyEndAllowThreads(__tstate); | |
21281 | if (PyErr_Occurred()) SWIG_fail; | |
21282 | } | |
2f4c0a16 | 21283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21284 | return resultobj; |
21285 | fail: | |
21286 | return NULL; | |
21287 | } | |
21288 | ||
21289 | ||
21290 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21291 | PyObject *resultobj; | |
21292 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21293 | wxSize result; | |
21294 | PyObject * obj0 = 0 ; | |
21295 | char *kwnames[] = { | |
21296 | (char *) "self", NULL | |
21297 | }; | |
21298 | ||
21299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21302 | { |
21303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21304 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
21305 | ||
21306 | wxPyEndAllowThreads(__tstate); | |
21307 | if (PyErr_Occurred()) SWIG_fail; | |
21308 | } | |
21309 | { | |
21310 | wxSize * resultptr; | |
21311 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 21312 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
21313 | } |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
21320 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21321 | PyObject *resultobj; | |
21322 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21323 | int result; | |
21324 | PyObject * obj0 = 0 ; | |
21325 | char *kwnames[] = { | |
21326 | (char *) "self", NULL | |
21327 | }; | |
21328 | ||
21329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21332 | { |
21333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21334 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
21335 | ||
21336 | wxPyEndAllowThreads(__tstate); | |
21337 | if (PyErr_Occurred()) SWIG_fail; | |
21338 | } | |
2f4c0a16 | 21339 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21340 | return resultobj; |
21341 | fail: | |
21342 | return NULL; | |
21343 | } | |
21344 | ||
21345 | ||
21346 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21347 | PyObject *resultobj; | |
21348 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21349 | wxColour result; | |
21350 | PyObject * obj0 = 0 ; | |
21351 | char *kwnames[] = { | |
21352 | (char *) "self", NULL | |
21353 | }; | |
21354 | ||
21355 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21356 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21357 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21358 | { |
21359 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21360 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
21361 | ||
21362 | wxPyEndAllowThreads(__tstate); | |
21363 | if (PyErr_Occurred()) SWIG_fail; | |
21364 | } | |
21365 | { | |
21366 | wxColour * resultptr; | |
21367 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 21368 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
21369 | } |
21370 | return resultobj; | |
21371 | fail: | |
21372 | return NULL; | |
21373 | } | |
21374 | ||
21375 | ||
21376 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21377 | PyObject *resultobj; | |
21378 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21379 | wxColour *arg2 = 0 ; | |
21380 | wxColour temp2 ; | |
21381 | PyObject * obj0 = 0 ; | |
21382 | PyObject * obj1 = 0 ; | |
21383 | char *kwnames[] = { | |
21384 | (char *) "self",(char *) "col", NULL | |
21385 | }; | |
21386 | ||
21387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21390 | { |
21391 | arg2 = &temp2; | |
21392 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21393 | } | |
21394 | { | |
21395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21396 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
21397 | ||
21398 | wxPyEndAllowThreads(__tstate); | |
21399 | if (PyErr_Occurred()) SWIG_fail; | |
21400 | } | |
21401 | Py_INCREF(Py_None); resultobj = Py_None; | |
21402 | return resultobj; | |
21403 | fail: | |
21404 | return NULL; | |
21405 | } | |
21406 | ||
21407 | ||
21408 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21409 | PyObject *resultobj; | |
21410 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21411 | long result; | |
21412 | PyObject * obj0 = 0 ; | |
21413 | char *kwnames[] = { | |
21414 | (char *) "self", NULL | |
21415 | }; | |
21416 | ||
21417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21420 | { |
21421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21422 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
21423 | ||
21424 | wxPyEndAllowThreads(__tstate); | |
21425 | if (PyErr_Occurred()) SWIG_fail; | |
21426 | } | |
2f4c0a16 | 21427 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21428 | return resultobj; |
21429 | fail: | |
21430 | return NULL; | |
21431 | } | |
21432 | ||
21433 | ||
21434 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21435 | PyObject *resultobj; | |
21436 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21437 | long arg2 ; | |
423f194a | 21438 | bool arg3 = (bool) True ; |
d14a1e28 | 21439 | PyObject * obj0 = 0 ; |
8edf1c75 | 21440 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21441 | PyObject * obj2 = 0 ; |
21442 | char *kwnames[] = { | |
21443 | (char *) "self",(char *) "style",(char *) "add", NULL | |
21444 | }; | |
21445 | ||
8edf1c75 | 21446 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21447 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21448 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21449 | arg2 = (long) SWIG_AsLong(obj1); | |
21450 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 21451 | if (obj2) { |
2f4c0a16 RD |
21452 | arg3 = (bool) SWIG_AsBool(obj2); |
21453 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21454 | } |
21455 | { | |
21456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21457 | (arg1)->SetSingleStyle(arg2,arg3); | |
21458 | ||
21459 | wxPyEndAllowThreads(__tstate); | |
21460 | if (PyErr_Occurred()) SWIG_fail; | |
21461 | } | |
21462 | Py_INCREF(Py_None); resultobj = Py_None; | |
21463 | return resultobj; | |
21464 | fail: | |
21465 | return NULL; | |
21466 | } | |
21467 | ||
21468 | ||
21469 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21470 | PyObject *resultobj; | |
21471 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21472 | long arg2 ; | |
21473 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21474 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21475 | char *kwnames[] = { |
21476 | (char *) "self",(char *) "style", NULL | |
21477 | }; | |
21478 | ||
8edf1c75 | 21479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21482 | arg2 = (long) SWIG_AsLong(obj1); | |
21483 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21484 | { |
21485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21486 | (arg1)->SetWindowStyleFlag(arg2); | |
21487 | ||
21488 | wxPyEndAllowThreads(__tstate); | |
21489 | if (PyErr_Occurred()) SWIG_fail; | |
21490 | } | |
21491 | Py_INCREF(Py_None); resultobj = Py_None; | |
21492 | return resultobj; | |
21493 | fail: | |
21494 | return NULL; | |
21495 | } | |
21496 | ||
21497 | ||
21498 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21499 | PyObject *resultobj; | |
21500 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21501 | long arg2 ; | |
21502 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
21503 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
21504 | long result; | |
21505 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21506 | PyObject * obj1 = 0 ; |
21507 | PyObject * obj2 = 0 ; | |
21508 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21509 | char *kwnames[] = { |
21510 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
21511 | }; | |
21512 | ||
8edf1c75 | 21513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
21514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21516 | arg2 = (long) SWIG_AsLong(obj1); | |
21517 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21518 | if (obj2) { |
2f4c0a16 RD |
21519 | arg3 = (int) SWIG_AsInt(obj2); |
21520 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
21521 | } |
21522 | if (obj3) { | |
2f4c0a16 RD |
21523 | arg4 = (int) SWIG_AsInt(obj3); |
21524 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21525 | } |
d14a1e28 RD |
21526 | { |
21527 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21528 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
21529 | ||
21530 | wxPyEndAllowThreads(__tstate); | |
21531 | if (PyErr_Occurred()) SWIG_fail; | |
21532 | } | |
2f4c0a16 | 21533 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21534 | return resultobj; |
21535 | fail: | |
21536 | return NULL; | |
21537 | } | |
21538 | ||
21539 | ||
21540 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21541 | PyObject *resultobj; | |
21542 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21543 | int arg2 ; | |
21544 | wxImageList *result; | |
21545 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21546 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21547 | char *kwnames[] = { |
21548 | (char *) "self",(char *) "which", NULL | |
21549 | }; | |
21550 | ||
8edf1c75 | 21551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21554 | arg2 = (int) SWIG_AsInt(obj1); | |
21555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21556 | { |
21557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21558 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
21559 | ||
21560 | wxPyEndAllowThreads(__tstate); | |
21561 | if (PyErr_Occurred()) SWIG_fail; | |
21562 | } | |
21563 | { | |
21564 | resultobj = wxPyMake_wxObject(result); | |
21565 | } | |
21566 | return resultobj; | |
21567 | fail: | |
21568 | return NULL; | |
21569 | } | |
21570 | ||
21571 | ||
21572 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21573 | PyObject *resultobj; | |
21574 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21575 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21576 | int arg3 ; | |
21577 | PyObject * obj0 = 0 ; | |
21578 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21579 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21580 | char *kwnames[] = { |
21581 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21582 | }; | |
21583 | ||
8edf1c75 | 21584 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21585 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21586 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21587 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21589 | arg3 = (int) SWIG_AsInt(obj2); | |
21590 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21591 | { |
21592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21593 | (arg1)->SetImageList(arg2,arg3); | |
21594 | ||
21595 | wxPyEndAllowThreads(__tstate); | |
21596 | if (PyErr_Occurred()) SWIG_fail; | |
21597 | } | |
21598 | Py_INCREF(Py_None); resultobj = Py_None; | |
21599 | return resultobj; | |
21600 | fail: | |
21601 | return NULL; | |
21602 | } | |
21603 | ||
21604 | ||
21605 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21606 | PyObject *resultobj; | |
21607 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21608 | wxImageList *arg2 = (wxImageList *) 0 ; | |
21609 | int arg3 ; | |
21610 | PyObject * obj0 = 0 ; | |
21611 | PyObject * obj1 = 0 ; | |
8edf1c75 | 21612 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21613 | char *kwnames[] = { |
21614 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
21615 | }; | |
21616 | ||
8edf1c75 | 21617 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21618 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21619 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21620 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
21621 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
21622 | arg3 = (int) SWIG_AsInt(obj2); | |
21623 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21624 | { |
21625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21626 | (arg1)->AssignImageList(arg2,arg3); | |
21627 | ||
21628 | wxPyEndAllowThreads(__tstate); | |
21629 | if (PyErr_Occurred()) SWIG_fail; | |
21630 | } | |
21631 | Py_INCREF(Py_None); resultobj = Py_None; | |
21632 | return resultobj; | |
21633 | fail: | |
21634 | return NULL; | |
21635 | } | |
21636 | ||
21637 | ||
fe763115 RD |
21638 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
21639 | PyObject *resultobj; | |
21640 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21641 | bool result; | |
21642 | PyObject * obj0 = 0 ; | |
21643 | char *kwnames[] = { | |
21644 | (char *) "self", NULL | |
21645 | }; | |
21646 | ||
21647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
21648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
21649 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21650 | { | |
21651 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21652 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
21653 | ||
21654 | wxPyEndAllowThreads(__tstate); | |
21655 | if (PyErr_Occurred()) SWIG_fail; | |
21656 | } | |
4f89f6a3 RD |
21657 | { |
21658 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21659 | } | |
fe763115 RD |
21660 | return resultobj; |
21661 | fail: | |
21662 | return NULL; | |
21663 | } | |
21664 | ||
21665 | ||
d14a1e28 RD |
21666 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
21667 | PyObject *resultobj; | |
21668 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21669 | bool result; | |
21670 | PyObject * obj0 = 0 ; | |
21671 | char *kwnames[] = { | |
21672 | (char *) "self", NULL | |
21673 | }; | |
21674 | ||
21675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21678 | { |
21679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21680 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
21681 | ||
21682 | wxPyEndAllowThreads(__tstate); | |
21683 | if (PyErr_Occurred()) SWIG_fail; | |
21684 | } | |
4f89f6a3 RD |
21685 | { |
21686 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21687 | } | |
d14a1e28 RD |
21688 | return resultobj; |
21689 | fail: | |
21690 | return NULL; | |
21691 | } | |
21692 | ||
21693 | ||
21694 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21695 | PyObject *resultobj; | |
21696 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21697 | long arg2 ; | |
21698 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21699 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21700 | char *kwnames[] = { |
21701 | (char *) "self",(char *) "item", NULL | |
21702 | }; | |
21703 | ||
8edf1c75 | 21704 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21705 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21706 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21707 | arg2 = (long) SWIG_AsLong(obj1); | |
21708 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21709 | { |
21710 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21711 | (arg1)->RefreshItem(arg2); | |
21712 | ||
21713 | wxPyEndAllowThreads(__tstate); | |
21714 | if (PyErr_Occurred()) SWIG_fail; | |
21715 | } | |
21716 | Py_INCREF(Py_None); resultobj = Py_None; | |
21717 | return resultobj; | |
21718 | fail: | |
21719 | return NULL; | |
21720 | } | |
21721 | ||
21722 | ||
21723 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21724 | PyObject *resultobj; | |
21725 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21726 | long arg2 ; | |
21727 | long arg3 ; | |
21728 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
21729 | PyObject * obj1 = 0 ; |
21730 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21731 | char *kwnames[] = { |
21732 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
21733 | }; | |
21734 | ||
8edf1c75 | 21735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
21736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21738 | arg2 = (long) SWIG_AsLong(obj1); | |
21739 | if (PyErr_Occurred()) SWIG_fail; | |
21740 | arg3 = (long) SWIG_AsLong(obj2); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21742 | { |
21743 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21744 | (arg1)->RefreshItems(arg2,arg3); | |
21745 | ||
21746 | wxPyEndAllowThreads(__tstate); | |
21747 | if (PyErr_Occurred()) SWIG_fail; | |
21748 | } | |
21749 | Py_INCREF(Py_None); resultobj = Py_None; | |
21750 | return resultobj; | |
21751 | fail: | |
21752 | return NULL; | |
21753 | } | |
21754 | ||
21755 | ||
21756 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21757 | PyObject *resultobj; | |
21758 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21759 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
21760 | bool result; | |
21761 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21762 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21763 | char *kwnames[] = { |
21764 | (char *) "self",(char *) "flag", NULL | |
21765 | }; | |
21766 | ||
8edf1c75 | 21767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 21770 | if (obj1) { |
2f4c0a16 RD |
21771 | arg2 = (int) SWIG_AsInt(obj1); |
21772 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 21773 | } |
d14a1e28 RD |
21774 | { |
21775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21776 | result = (bool)(arg1)->Arrange(arg2); | |
21777 | ||
21778 | wxPyEndAllowThreads(__tstate); | |
21779 | if (PyErr_Occurred()) SWIG_fail; | |
21780 | } | |
4f89f6a3 RD |
21781 | { |
21782 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21783 | } | |
d14a1e28 RD |
21784 | return resultobj; |
21785 | fail: | |
21786 | return NULL; | |
21787 | } | |
21788 | ||
21789 | ||
21790 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21791 | PyObject *resultobj; | |
21792 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21793 | long arg2 ; | |
21794 | bool result; | |
21795 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21796 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21797 | char *kwnames[] = { |
21798 | (char *) "self",(char *) "item", NULL | |
21799 | }; | |
21800 | ||
8edf1c75 | 21801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21804 | arg2 = (long) SWIG_AsLong(obj1); | |
21805 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21806 | { |
21807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21808 | result = (bool)(arg1)->DeleteItem(arg2); | |
21809 | ||
21810 | wxPyEndAllowThreads(__tstate); | |
21811 | if (PyErr_Occurred()) SWIG_fail; | |
21812 | } | |
4f89f6a3 RD |
21813 | { |
21814 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21815 | } | |
d14a1e28 RD |
21816 | return resultobj; |
21817 | fail: | |
21818 | return NULL; | |
21819 | } | |
21820 | ||
21821 | ||
21822 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21823 | PyObject *resultobj; | |
21824 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21825 | bool result; | |
21826 | PyObject * obj0 = 0 ; | |
21827 | char *kwnames[] = { | |
21828 | (char *) "self", NULL | |
21829 | }; | |
21830 | ||
21831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21834 | { |
21835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21836 | result = (bool)(arg1)->DeleteAllItems(); | |
21837 | ||
21838 | wxPyEndAllowThreads(__tstate); | |
21839 | if (PyErr_Occurred()) SWIG_fail; | |
21840 | } | |
4f89f6a3 RD |
21841 | { |
21842 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21843 | } | |
d14a1e28 RD |
21844 | return resultobj; |
21845 | fail: | |
21846 | return NULL; | |
21847 | } | |
21848 | ||
21849 | ||
21850 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21851 | PyObject *resultobj; | |
21852 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21853 | int arg2 ; | |
21854 | bool result; | |
21855 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21856 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21857 | char *kwnames[] = { |
21858 | (char *) "self",(char *) "col", NULL | |
21859 | }; | |
21860 | ||
8edf1c75 | 21861 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21862 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21863 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21864 | arg2 = (int) SWIG_AsInt(obj1); | |
21865 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21866 | { |
21867 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21868 | result = (bool)(arg1)->DeleteColumn(arg2); | |
21869 | ||
21870 | wxPyEndAllowThreads(__tstate); | |
21871 | if (PyErr_Occurred()) SWIG_fail; | |
21872 | } | |
4f89f6a3 RD |
21873 | { |
21874 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21875 | } | |
d14a1e28 RD |
21876 | return resultobj; |
21877 | fail: | |
21878 | return NULL; | |
21879 | } | |
21880 | ||
21881 | ||
21882 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21883 | PyObject *resultobj; | |
21884 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21885 | bool result; | |
21886 | PyObject * obj0 = 0 ; | |
21887 | char *kwnames[] = { | |
21888 | (char *) "self", NULL | |
21889 | }; | |
21890 | ||
21891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21894 | { |
21895 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21896 | result = (bool)(arg1)->DeleteAllColumns(); | |
21897 | ||
21898 | wxPyEndAllowThreads(__tstate); | |
21899 | if (PyErr_Occurred()) SWIG_fail; | |
21900 | } | |
4f89f6a3 RD |
21901 | { |
21902 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21903 | } | |
d14a1e28 RD |
21904 | return resultobj; |
21905 | fail: | |
21906 | return NULL; | |
21907 | } | |
21908 | ||
21909 | ||
21910 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21911 | PyObject *resultobj; | |
21912 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21913 | PyObject * obj0 = 0 ; | |
21914 | char *kwnames[] = { | |
21915 | (char *) "self", NULL | |
21916 | }; | |
21917 | ||
21918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
21919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21921 | { |
21922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21923 | (arg1)->ClearAll(); | |
21924 | ||
21925 | wxPyEndAllowThreads(__tstate); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
21927 | } | |
21928 | Py_INCREF(Py_None); resultobj = Py_None; | |
21929 | return resultobj; | |
21930 | fail: | |
21931 | return NULL; | |
21932 | } | |
21933 | ||
21934 | ||
21935 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21936 | PyObject *resultobj; | |
21937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21938 | long arg2 ; | |
21939 | wxTextCtrl *result; | |
21940 | PyObject * obj0 = 0 ; | |
8edf1c75 | 21941 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21942 | char *kwnames[] = { |
21943 | (char *) "self",(char *) "item", NULL | |
21944 | }; | |
21945 | ||
8edf1c75 | 21946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
21947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21949 | arg2 = (long) SWIG_AsLong(obj1); | |
21950 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21951 | { |
21952 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21953 | result = (wxTextCtrl *)(arg1)->EditLabel(arg2); | |
21954 | ||
21955 | wxPyEndAllowThreads(__tstate); | |
21956 | if (PyErr_Occurred()) SWIG_fail; | |
21957 | } | |
21958 | { | |
21959 | resultobj = wxPyMake_wxObject(result); | |
21960 | } | |
21961 | return resultobj; | |
21962 | fail: | |
21963 | return NULL; | |
21964 | } | |
21965 | ||
21966 | ||
21967 | static PyObject *_wrap_ListCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21968 | PyObject *resultobj; | |
21969 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21970 | bool arg2 ; | |
21971 | bool result; | |
21972 | PyObject * obj0 = 0 ; | |
21973 | PyObject * obj1 = 0 ; | |
21974 | char *kwnames[] = { | |
21975 | (char *) "self",(char *) "cancel", NULL | |
21976 | }; | |
21977 | ||
21978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EndEditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
21979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21981 | arg2 = (bool) SWIG_AsBool(obj1); | |
21982 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21983 | { |
21984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21985 | result = (bool)(arg1)->EndEditLabel(arg2); | |
21986 | ||
21987 | wxPyEndAllowThreads(__tstate); | |
21988 | if (PyErr_Occurred()) SWIG_fail; | |
21989 | } | |
4f89f6a3 RD |
21990 | { |
21991 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21992 | } | |
d14a1e28 RD |
21993 | return resultobj; |
21994 | fail: | |
21995 | return NULL; | |
21996 | } | |
21997 | ||
21998 | ||
21999 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22000 | PyObject *resultobj; | |
22001 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22002 | long arg2 ; | |
22003 | bool result; | |
22004 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22005 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22006 | char *kwnames[] = { |
22007 | (char *) "self",(char *) "item", NULL | |
22008 | }; | |
22009 | ||
8edf1c75 | 22010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22013 | arg2 = (long) SWIG_AsLong(obj1); | |
22014 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22015 | { |
22016 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22017 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22018 | ||
22019 | wxPyEndAllowThreads(__tstate); | |
22020 | if (PyErr_Occurred()) SWIG_fail; | |
22021 | } | |
4f89f6a3 RD |
22022 | { |
22023 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22024 | } | |
d14a1e28 RD |
22025 | return resultobj; |
22026 | fail: | |
22027 | return NULL; | |
22028 | } | |
22029 | ||
22030 | ||
22031 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22032 | PyObject *resultobj; | |
22033 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22034 | long arg2 ; | |
22035 | wxString *arg3 = 0 ; | |
423f194a | 22036 | bool arg4 = (bool) False ; |
d14a1e28 | 22037 | long result; |
423f194a | 22038 | bool temp3 = False ; |
d14a1e28 | 22039 | PyObject * obj0 = 0 ; |
8edf1c75 | 22040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22041 | PyObject * obj2 = 0 ; |
22042 | PyObject * obj3 = 0 ; | |
22043 | char *kwnames[] = { | |
22044 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22045 | }; | |
22046 | ||
8edf1c75 | 22047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22050 | arg2 = (long) SWIG_AsLong(obj1); | |
22051 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22052 | { |
22053 | arg3 = wxString_in_helper(obj2); | |
22054 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22055 | temp3 = True; |
d14a1e28 RD |
22056 | } |
22057 | if (obj3) { | |
2f4c0a16 RD |
22058 | arg4 = (bool) SWIG_AsBool(obj3); |
22059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22060 | } |
22061 | { | |
22062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22063 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22064 | ||
22065 | wxPyEndAllowThreads(__tstate); | |
22066 | if (PyErr_Occurred()) SWIG_fail; | |
22067 | } | |
2f4c0a16 | 22068 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22069 | { |
22070 | if (temp3) | |
22071 | delete arg3; | |
22072 | } | |
22073 | return resultobj; | |
22074 | fail: | |
22075 | { | |
22076 | if (temp3) | |
22077 | delete arg3; | |
22078 | } | |
22079 | return NULL; | |
22080 | } | |
22081 | ||
22082 | ||
22083 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22084 | PyObject *resultobj; | |
22085 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22086 | long arg2 ; | |
22087 | long arg3 ; | |
22088 | long result; | |
22089 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22090 | PyObject * obj1 = 0 ; |
22091 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22092 | char *kwnames[] = { |
22093 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22094 | }; | |
22095 | ||
8edf1c75 | 22096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22099 | arg2 = (long) SWIG_AsLong(obj1); | |
22100 | if (PyErr_Occurred()) SWIG_fail; | |
22101 | arg3 = (long) SWIG_AsLong(obj2); | |
22102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22103 | { |
22104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22105 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22106 | ||
22107 | wxPyEndAllowThreads(__tstate); | |
22108 | if (PyErr_Occurred()) SWIG_fail; | |
22109 | } | |
2f4c0a16 | 22110 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22111 | return resultobj; |
22112 | fail: | |
22113 | return NULL; | |
22114 | } | |
22115 | ||
22116 | ||
22117 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22118 | PyObject *resultobj; | |
22119 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22120 | long arg2 ; | |
22121 | wxPoint *arg3 = 0 ; | |
22122 | int arg4 ; | |
22123 | long result; | |
22124 | wxPoint temp3 ; | |
22125 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22126 | PyObject * obj1 = 0 ; |
d14a1e28 | 22127 | PyObject * obj2 = 0 ; |
8edf1c75 | 22128 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22129 | char *kwnames[] = { |
22130 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22131 | }; | |
22132 | ||
8edf1c75 | 22133 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22134 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22135 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22136 | arg2 = (long) SWIG_AsLong(obj1); | |
22137 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22138 | { |
22139 | arg3 = &temp3; | |
22140 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22141 | } | |
2f4c0a16 RD |
22142 | arg4 = (int) SWIG_AsInt(obj3); |
22143 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22144 | { |
22145 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22146 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22147 | ||
22148 | wxPyEndAllowThreads(__tstate); | |
22149 | if (PyErr_Occurred()) SWIG_fail; | |
22150 | } | |
2f4c0a16 | 22151 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22152 | return resultobj; |
22153 | fail: | |
22154 | return NULL; | |
22155 | } | |
22156 | ||
22157 | ||
22158 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22159 | PyObject *resultobj; | |
22160 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22161 | wxPoint *arg2 = 0 ; | |
22162 | int *arg3 = 0 ; | |
22163 | long result; | |
22164 | wxPoint temp2 ; | |
22165 | int temp3 ; | |
22166 | PyObject * obj0 = 0 ; | |
22167 | PyObject * obj1 = 0 ; | |
22168 | char *kwnames[] = { | |
22169 | (char *) "self",(char *) "point", NULL | |
22170 | }; | |
22171 | ||
22172 | arg3 = &temp3; | |
22173 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22174 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22175 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22176 | { |
22177 | arg2 = &temp2; | |
22178 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
22179 | } | |
22180 | { | |
22181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22182 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
22183 | ||
22184 | wxPyEndAllowThreads(__tstate); | |
22185 | if (PyErr_Occurred()) SWIG_fail; | |
22186 | } | |
2f4c0a16 | 22187 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22188 | { |
22189 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
22190 | resultobj = t_output_helper(resultobj,o); | |
22191 | } | |
22192 | return resultobj; | |
22193 | fail: | |
22194 | return NULL; | |
22195 | } | |
22196 | ||
22197 | ||
22198 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22199 | PyObject *resultobj; | |
22200 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22201 | wxListItem *arg2 = 0 ; | |
22202 | long result; | |
22203 | PyObject * obj0 = 0 ; | |
22204 | PyObject * obj1 = 0 ; | |
22205 | char *kwnames[] = { | |
22206 | (char *) "self",(char *) "info", NULL | |
22207 | }; | |
22208 | ||
22209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
22213 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22214 | SWIG_fail; | |
d14a1e28 | 22215 | if (arg2 == NULL) { |
2f4c0a16 RD |
22216 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22217 | SWIG_fail; | |
d14a1e28 RD |
22218 | } |
22219 | { | |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22221 | result = (long)(arg1)->InsertItem(*arg2); | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
2f4c0a16 | 22226 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22227 | return resultobj; |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
22233 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22234 | PyObject *resultobj; | |
22235 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22236 | long arg2 ; | |
22237 | wxString *arg3 = 0 ; | |
22238 | long result; | |
423f194a | 22239 | bool temp3 = False ; |
d14a1e28 | 22240 | PyObject * obj0 = 0 ; |
8edf1c75 | 22241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22242 | PyObject * obj2 = 0 ; |
22243 | char *kwnames[] = { | |
22244 | (char *) "self",(char *) "index",(char *) "label", NULL | |
22245 | }; | |
22246 | ||
8edf1c75 | 22247 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22248 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22249 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22250 | arg2 = (long) SWIG_AsLong(obj1); | |
22251 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22252 | { |
22253 | arg3 = wxString_in_helper(obj2); | |
22254 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22255 | temp3 = True; |
d14a1e28 RD |
22256 | } |
22257 | { | |
22258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22259 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
22260 | ||
22261 | wxPyEndAllowThreads(__tstate); | |
22262 | if (PyErr_Occurred()) SWIG_fail; | |
22263 | } | |
2f4c0a16 | 22264 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22265 | { |
22266 | if (temp3) | |
22267 | delete arg3; | |
22268 | } | |
22269 | return resultobj; | |
22270 | fail: | |
22271 | { | |
22272 | if (temp3) | |
22273 | delete arg3; | |
22274 | } | |
22275 | return NULL; | |
22276 | } | |
22277 | ||
22278 | ||
22279 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22280 | PyObject *resultobj; | |
22281 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22282 | long arg2 ; | |
22283 | int arg3 ; | |
22284 | long result; | |
22285 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22286 | PyObject * obj1 = 0 ; |
22287 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22288 | char *kwnames[] = { |
22289 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
22290 | }; | |
22291 | ||
8edf1c75 | 22292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22295 | arg2 = (long) SWIG_AsLong(obj1); | |
22296 | if (PyErr_Occurred()) SWIG_fail; | |
22297 | arg3 = (int) SWIG_AsInt(obj2); | |
22298 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22299 | { |
22300 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22301 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
22302 | ||
22303 | wxPyEndAllowThreads(__tstate); | |
22304 | if (PyErr_Occurred()) SWIG_fail; | |
22305 | } | |
2f4c0a16 | 22306 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22307 | return resultobj; |
22308 | fail: | |
22309 | return NULL; | |
22310 | } | |
22311 | ||
22312 | ||
22313 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22314 | PyObject *resultobj; | |
22315 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22316 | long arg2 ; | |
22317 | wxString *arg3 = 0 ; | |
22318 | int arg4 ; | |
22319 | long result; | |
423f194a | 22320 | bool temp3 = False ; |
d14a1e28 | 22321 | PyObject * obj0 = 0 ; |
8edf1c75 | 22322 | PyObject * obj1 = 0 ; |
d14a1e28 | 22323 | PyObject * obj2 = 0 ; |
8edf1c75 | 22324 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22325 | char *kwnames[] = { |
22326 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
22327 | }; | |
22328 | ||
8edf1c75 | 22329 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
22330 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22331 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22332 | arg2 = (long) SWIG_AsLong(obj1); | |
22333 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22334 | { |
22335 | arg3 = wxString_in_helper(obj2); | |
22336 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22337 | temp3 = True; |
d14a1e28 | 22338 | } |
2f4c0a16 RD |
22339 | arg4 = (int) SWIG_AsInt(obj3); |
22340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22341 | { |
22342 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22343 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
22344 | ||
22345 | wxPyEndAllowThreads(__tstate); | |
22346 | if (PyErr_Occurred()) SWIG_fail; | |
22347 | } | |
2f4c0a16 | 22348 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22349 | { |
22350 | if (temp3) | |
22351 | delete arg3; | |
22352 | } | |
22353 | return resultobj; | |
22354 | fail: | |
22355 | { | |
22356 | if (temp3) | |
22357 | delete arg3; | |
22358 | } | |
22359 | return NULL; | |
22360 | } | |
22361 | ||
22362 | ||
22363 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22364 | PyObject *resultobj; | |
22365 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22366 | long arg2 ; | |
22367 | wxListItem *arg3 = 0 ; | |
22368 | long result; | |
22369 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22370 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22371 | PyObject * obj2 = 0 ; |
22372 | char *kwnames[] = { | |
22373 | (char *) "self",(char *) "col",(char *) "info", NULL | |
22374 | }; | |
22375 | ||
8edf1c75 | 22376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22379 | arg2 = (long) SWIG_AsLong(obj1); | |
22380 | if (PyErr_Occurred()) SWIG_fail; | |
22381 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
22382 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22383 | SWIG_fail; | |
d14a1e28 | 22384 | if (arg3 == NULL) { |
2f4c0a16 RD |
22385 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22386 | SWIG_fail; | |
d14a1e28 RD |
22387 | } |
22388 | { | |
22389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22390 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
22391 | ||
22392 | wxPyEndAllowThreads(__tstate); | |
22393 | if (PyErr_Occurred()) SWIG_fail; | |
22394 | } | |
2f4c0a16 | 22395 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22396 | return resultobj; |
22397 | fail: | |
22398 | return NULL; | |
22399 | } | |
22400 | ||
22401 | ||
22402 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22403 | PyObject *resultobj; | |
22404 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22405 | long arg2 ; | |
22406 | wxString *arg3 = 0 ; | |
22407 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
22408 | int arg5 = (int) -1 ; | |
22409 | long result; | |
423f194a | 22410 | bool temp3 = False ; |
d14a1e28 | 22411 | PyObject * obj0 = 0 ; |
8edf1c75 | 22412 | PyObject * obj1 = 0 ; |
d14a1e28 | 22413 | PyObject * obj2 = 0 ; |
8edf1c75 RD |
22414 | PyObject * obj3 = 0 ; |
22415 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
22416 | char *kwnames[] = { |
22417 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
22418 | }; | |
22419 | ||
8edf1c75 | 22420 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
22421 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22422 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22423 | arg2 = (long) SWIG_AsLong(obj1); | |
22424 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22425 | { |
22426 | arg3 = wxString_in_helper(obj2); | |
22427 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 22428 | temp3 = True; |
d14a1e28 | 22429 | } |
8edf1c75 | 22430 | if (obj3) { |
2f4c0a16 RD |
22431 | arg4 = (int) SWIG_AsInt(obj3); |
22432 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
22433 | } |
22434 | if (obj4) { | |
2f4c0a16 RD |
22435 | arg5 = (int) SWIG_AsInt(obj4); |
22436 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22437 | } |
d14a1e28 RD |
22438 | { |
22439 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22440 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
22441 | ||
22442 | wxPyEndAllowThreads(__tstate); | |
22443 | if (PyErr_Occurred()) SWIG_fail; | |
22444 | } | |
2f4c0a16 | 22445 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22446 | { |
22447 | if (temp3) | |
22448 | delete arg3; | |
22449 | } | |
22450 | return resultobj; | |
22451 | fail: | |
22452 | { | |
22453 | if (temp3) | |
22454 | delete arg3; | |
22455 | } | |
22456 | return NULL; | |
22457 | } | |
22458 | ||
22459 | ||
22460 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22461 | PyObject *resultobj; | |
22462 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22463 | long arg2 ; | |
22464 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22465 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22466 | char *kwnames[] = { |
22467 | (char *) "self",(char *) "count", NULL | |
22468 | }; | |
22469 | ||
8edf1c75 | 22470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22473 | arg2 = (long) SWIG_AsLong(obj1); | |
22474 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22475 | { |
22476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22477 | (arg1)->SetItemCount(arg2); | |
22478 | ||
22479 | wxPyEndAllowThreads(__tstate); | |
22480 | if (PyErr_Occurred()) SWIG_fail; | |
22481 | } | |
22482 | Py_INCREF(Py_None); resultobj = Py_None; | |
22483 | return resultobj; | |
22484 | fail: | |
22485 | return NULL; | |
22486 | } | |
22487 | ||
22488 | ||
22489 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22490 | PyObject *resultobj; | |
22491 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22492 | int arg2 ; | |
22493 | int arg3 ; | |
22494 | bool result; | |
22495 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
22496 | PyObject * obj1 = 0 ; |
22497 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22498 | char *kwnames[] = { |
22499 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
22500 | }; | |
22501 | ||
8edf1c75 | 22502 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22503 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22504 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22505 | arg2 = (int) SWIG_AsInt(obj1); | |
22506 | if (PyErr_Occurred()) SWIG_fail; | |
22507 | arg3 = (int) SWIG_AsInt(obj2); | |
22508 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22509 | { |
22510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22511 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
22512 | ||
22513 | wxPyEndAllowThreads(__tstate); | |
22514 | if (PyErr_Occurred()) SWIG_fail; | |
22515 | } | |
4f89f6a3 RD |
22516 | { |
22517 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22518 | } | |
d14a1e28 RD |
22519 | return resultobj; |
22520 | fail: | |
22521 | return NULL; | |
22522 | } | |
22523 | ||
22524 | ||
22525 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22526 | PyObject *resultobj; | |
22527 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22528 | long arg2 ; | |
22529 | wxColour *arg3 = 0 ; | |
22530 | wxColour temp3 ; | |
22531 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22532 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22533 | PyObject * obj2 = 0 ; |
22534 | char *kwnames[] = { | |
22535 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22536 | }; | |
22537 | ||
8edf1c75 | 22538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22541 | arg2 = (long) SWIG_AsLong(obj1); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22543 | { |
22544 | arg3 = &temp3; | |
22545 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22546 | } | |
22547 | { | |
22548 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22549 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
22550 | ||
22551 | wxPyEndAllowThreads(__tstate); | |
22552 | if (PyErr_Occurred()) SWIG_fail; | |
22553 | } | |
22554 | Py_INCREF(Py_None); resultobj = Py_None; | |
22555 | return resultobj; | |
22556 | fail: | |
22557 | return NULL; | |
22558 | } | |
22559 | ||
22560 | ||
22561 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22562 | PyObject *resultobj; | |
22563 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22564 | long arg2 ; | |
22565 | wxColour result; | |
22566 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22567 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22568 | char *kwnames[] = { |
22569 | (char *) "self",(char *) "item", NULL | |
22570 | }; | |
22571 | ||
8edf1c75 | 22572 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22573 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22574 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22575 | arg2 = (long) SWIG_AsLong(obj1); | |
22576 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22577 | { |
22578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22579 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
22580 | ||
22581 | wxPyEndAllowThreads(__tstate); | |
22582 | if (PyErr_Occurred()) SWIG_fail; | |
22583 | } | |
22584 | { | |
22585 | wxColour * resultptr; | |
22586 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22587 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22588 | } |
22589 | return resultobj; | |
22590 | fail: | |
22591 | return NULL; | |
22592 | } | |
22593 | ||
22594 | ||
22595 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22596 | PyObject *resultobj; | |
22597 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22598 | long arg2 ; | |
22599 | wxColour *arg3 = 0 ; | |
22600 | wxColour temp3 ; | |
22601 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22603 | PyObject * obj2 = 0 ; |
22604 | char *kwnames[] = { | |
22605 | (char *) "self",(char *) "item",(char *) "col", NULL | |
22606 | }; | |
22607 | ||
8edf1c75 | 22608 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22609 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22610 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22611 | arg2 = (long) SWIG_AsLong(obj1); | |
22612 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22613 | { |
22614 | arg3 = &temp3; | |
22615 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
22616 | } | |
22617 | { | |
22618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22619 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
22620 | ||
22621 | wxPyEndAllowThreads(__tstate); | |
22622 | if (PyErr_Occurred()) SWIG_fail; | |
22623 | } | |
22624 | Py_INCREF(Py_None); resultobj = Py_None; | |
22625 | return resultobj; | |
22626 | fail: | |
22627 | return NULL; | |
22628 | } | |
22629 | ||
22630 | ||
22631 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22632 | PyObject *resultobj; | |
22633 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22634 | long arg2 ; | |
22635 | wxColour result; | |
22636 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22637 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22638 | char *kwnames[] = { |
22639 | (char *) "self",(char *) "item", NULL | |
22640 | }; | |
22641 | ||
8edf1c75 | 22642 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
22643 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22644 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22645 | arg2 = (long) SWIG_AsLong(obj1); | |
22646 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22647 | { |
22648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22649 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
22650 | ||
22651 | wxPyEndAllowThreads(__tstate); | |
22652 | if (PyErr_Occurred()) SWIG_fail; | |
22653 | } | |
22654 | { | |
22655 | wxColour * resultptr; | |
22656 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 22657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22658 | } |
22659 | return resultobj; | |
22660 | fail: | |
22661 | return NULL; | |
22662 | } | |
22663 | ||
22664 | ||
22665 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22666 | PyObject *resultobj; | |
22667 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22668 | PyObject *arg2 = (PyObject *) 0 ; | |
22669 | bool result; | |
22670 | PyObject * obj0 = 0 ; | |
22671 | PyObject * obj1 = 0 ; | |
22672 | char *kwnames[] = { | |
22673 | (char *) "self",(char *) "func", NULL | |
22674 | }; | |
22675 | ||
22676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
22677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22679 | arg2 = obj1; |
22680 | { | |
22681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22682 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
22683 | ||
22684 | wxPyEndAllowThreads(__tstate); | |
22685 | if (PyErr_Occurred()) SWIG_fail; | |
22686 | } | |
4f89f6a3 RD |
22687 | { |
22688 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22689 | } | |
d14a1e28 RD |
22690 | return resultobj; |
22691 | fail: | |
22692 | return NULL; | |
22693 | } | |
22694 | ||
22695 | ||
22696 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22697 | PyObject *resultobj; | |
22698 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22699 | wxWindow *result; | |
22700 | PyObject * obj0 = 0 ; | |
22701 | char *kwnames[] = { | |
22702 | (char *) "self", NULL | |
22703 | }; | |
22704 | ||
22705 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
22706 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22707 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22708 | { |
22709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22710 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
22711 | ||
22712 | wxPyEndAllowThreads(__tstate); | |
22713 | if (PyErr_Occurred()) SWIG_fail; | |
22714 | } | |
22715 | { | |
22716 | resultobj = wxPyMake_wxObject(result); | |
22717 | } | |
22718 | return resultobj; | |
22719 | fail: | |
22720 | return NULL; | |
22721 | } | |
22722 | ||
22723 | ||
22724 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { | |
22725 | PyObject *obj; | |
22726 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
22727 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
22728 | Py_INCREF(obj); | |
22729 | return Py_BuildValue((char *)""); | |
22730 | } | |
22731 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22732 | PyObject *resultobj; | |
22733 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 22734 | int arg2 = (int) -1 ; |
d14a1e28 RD |
22735 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
22736 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
22737 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
22738 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
22739 | long arg5 = (long) wxLC_REPORT ; | |
22740 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
22741 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
22742 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
22743 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
22744 | wxListView *result; | |
22745 | wxPoint temp3 ; | |
22746 | wxSize temp4 ; | |
423f194a | 22747 | bool temp7 = False ; |
d14a1e28 | 22748 | PyObject * obj0 = 0 ; |
8edf1c75 | 22749 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22750 | PyObject * obj2 = 0 ; |
22751 | PyObject * obj3 = 0 ; | |
8edf1c75 | 22752 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
22753 | PyObject * obj5 = 0 ; |
22754 | PyObject * obj6 = 0 ; | |
22755 | char *kwnames[] = { | |
22756 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22757 | }; | |
22758 | ||
8edf1c75 | 22759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
22760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
22761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22762 | if (obj1) { |
2f4c0a16 RD |
22763 | arg2 = (int) SWIG_AsInt(obj1); |
22764 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22765 | } |
d14a1e28 RD |
22766 | if (obj2) { |
22767 | { | |
22768 | arg3 = &temp3; | |
22769 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22770 | } | |
22771 | } | |
22772 | if (obj3) { | |
22773 | { | |
22774 | arg4 = &temp4; | |
22775 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
22776 | } | |
22777 | } | |
8edf1c75 | 22778 | if (obj4) { |
2f4c0a16 RD |
22779 | arg5 = (long) SWIG_AsLong(obj4); |
22780 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22781 | } |
d14a1e28 | 22782 | if (obj5) { |
2f4c0a16 RD |
22783 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
22784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22785 | SWIG_fail; | |
d14a1e28 | 22786 | if (arg6 == NULL) { |
2f4c0a16 RD |
22787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22788 | SWIG_fail; | |
d14a1e28 RD |
22789 | } |
22790 | } | |
22791 | if (obj6) { | |
22792 | { | |
22793 | arg7 = wxString_in_helper(obj6); | |
22794 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 22795 | temp7 = True; |
d14a1e28 RD |
22796 | } |
22797 | } | |
22798 | { | |
22799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22800 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
22801 | ||
22802 | wxPyEndAllowThreads(__tstate); | |
22803 | if (PyErr_Occurred()) SWIG_fail; | |
22804 | } | |
2f4c0a16 | 22805 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22806 | { |
22807 | if (temp7) | |
22808 | delete arg7; | |
22809 | } | |
22810 | return resultobj; | |
22811 | fail: | |
22812 | { | |
22813 | if (temp7) | |
22814 | delete arg7; | |
22815 | } | |
22816 | return NULL; | |
22817 | } | |
22818 | ||
22819 | ||
22820 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22821 | PyObject *resultobj; | |
22822 | wxListView *result; | |
22823 | char *kwnames[] = { | |
22824 | NULL | |
22825 | }; | |
22826 | ||
22827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
22828 | { | |
22829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22830 | result = (wxListView *)new wxListView(); | |
22831 | ||
22832 | wxPyEndAllowThreads(__tstate); | |
22833 | if (PyErr_Occurred()) SWIG_fail; | |
22834 | } | |
2f4c0a16 | 22835 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
22836 | return resultobj; |
22837 | fail: | |
22838 | return NULL; | |
22839 | } | |
22840 | ||
22841 | ||
22842 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22843 | PyObject *resultobj; | |
22844 | wxListView *arg1 = (wxListView *) 0 ; | |
22845 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 22846 | int arg3 = (int) -1 ; |
d14a1e28 RD |
22847 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
22848 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
22849 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
22850 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
22851 | long arg6 = (long) wxLC_REPORT ; | |
22852 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
22853 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
22854 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
22855 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
22856 | bool result; | |
22857 | wxPoint temp4 ; | |
22858 | wxSize temp5 ; | |
423f194a | 22859 | bool temp8 = False ; |
d14a1e28 RD |
22860 | PyObject * obj0 = 0 ; |
22861 | PyObject * obj1 = 0 ; | |
8edf1c75 | 22862 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22863 | PyObject * obj3 = 0 ; |
22864 | PyObject * obj4 = 0 ; | |
8edf1c75 | 22865 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
22866 | PyObject * obj6 = 0 ; |
22867 | PyObject * obj7 = 0 ; | |
22868 | char *kwnames[] = { | |
22869 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
22870 | }; | |
22871 | ||
8edf1c75 | 22872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
22873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
22874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22875 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
22876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 22877 | if (obj2) { |
2f4c0a16 RD |
22878 | arg3 = (int) SWIG_AsInt(obj2); |
22879 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22880 | } |
d14a1e28 RD |
22881 | if (obj3) { |
22882 | { | |
22883 | arg4 = &temp4; | |
22884 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
22885 | } | |
22886 | } | |
22887 | if (obj4) { | |
22888 | { | |
22889 | arg5 = &temp5; | |
22890 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
22891 | } | |
22892 | } | |
8edf1c75 | 22893 | if (obj5) { |
2f4c0a16 RD |
22894 | arg6 = (long) SWIG_AsLong(obj5); |
22895 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 22896 | } |
d14a1e28 | 22897 | if (obj6) { |
2f4c0a16 RD |
22898 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
22899 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
22900 | SWIG_fail; | |
d14a1e28 | 22901 | if (arg7 == NULL) { |
2f4c0a16 RD |
22902 | PyErr_SetString(PyExc_TypeError,"null reference"); |
22903 | SWIG_fail; | |
d14a1e28 RD |
22904 | } |
22905 | } | |
22906 | if (obj7) { | |
22907 | { | |
22908 | arg8 = wxString_in_helper(obj7); | |
22909 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 22910 | temp8 = True; |
d14a1e28 RD |
22911 | } |
22912 | } | |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
4f89f6a3 RD |
22920 | { |
22921 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22922 | } | |
d14a1e28 RD |
22923 | { |
22924 | if (temp8) | |
22925 | delete arg8; | |
22926 | } | |
22927 | return resultobj; | |
22928 | fail: | |
22929 | { | |
22930 | if (temp8) | |
22931 | delete arg8; | |
22932 | } | |
22933 | return NULL; | |
22934 | } | |
22935 | ||
22936 | ||
22937 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22938 | PyObject *resultobj; | |
22939 | wxListView *arg1 = (wxListView *) 0 ; | |
22940 | long arg2 ; | |
423f194a | 22941 | bool arg3 = (bool) True ; |
d14a1e28 | 22942 | PyObject * obj0 = 0 ; |
8edf1c75 | 22943 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22944 | PyObject * obj2 = 0 ; |
22945 | char *kwnames[] = { | |
22946 | (char *) "self",(char *) "n",(char *) "on", NULL | |
22947 | }; | |
22948 | ||
8edf1c75 | 22949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
22950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
22951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22952 | arg2 = (long) SWIG_AsLong(obj1); | |
22953 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22954 | if (obj2) { |
2f4c0a16 RD |
22955 | arg3 = (bool) SWIG_AsBool(obj2); |
22956 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22957 | } |
22958 | { | |
22959 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22960 | (arg1)->Select(arg2,arg3); | |
22961 | ||
22962 | wxPyEndAllowThreads(__tstate); | |
22963 | if (PyErr_Occurred()) SWIG_fail; | |
22964 | } | |
22965 | Py_INCREF(Py_None); resultobj = Py_None; | |
22966 | return resultobj; | |
22967 | fail: | |
22968 | return NULL; | |
22969 | } | |
22970 | ||
22971 | ||
22972 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22973 | PyObject *resultobj; | |
22974 | wxListView *arg1 = (wxListView *) 0 ; | |
22975 | long arg2 ; | |
22976 | PyObject * obj0 = 0 ; | |
8edf1c75 | 22977 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22978 | char *kwnames[] = { |
22979 | (char *) "self",(char *) "index", NULL | |
22980 | }; | |
22981 | ||
2f4c0a16 RD |
22982 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
22983 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
22984 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22985 | arg2 = (long) SWIG_AsLong(obj1); | |
22986 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22987 | { |
22988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22989 | (arg1)->Focus(arg2); | |
22990 | ||
22991 | wxPyEndAllowThreads(__tstate); | |
22992 | if (PyErr_Occurred()) SWIG_fail; | |
22993 | } | |
22994 | Py_INCREF(Py_None); resultobj = Py_None; | |
22995 | return resultobj; | |
22996 | fail: | |
22997 | return NULL; | |
22998 | } | |
22999 | ||
23000 | ||
23001 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23002 | PyObject *resultobj; | |
23003 | wxListView *arg1 = (wxListView *) 0 ; | |
23004 | long result; | |
23005 | PyObject * obj0 = 0 ; | |
23006 | char *kwnames[] = { | |
23007 | (char *) "self", NULL | |
23008 | }; | |
23009 | ||
23010 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23011 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23012 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23013 | { |
23014 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23015 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23016 | ||
23017 | wxPyEndAllowThreads(__tstate); | |
23018 | if (PyErr_Occurred()) SWIG_fail; | |
23019 | } | |
2f4c0a16 | 23020 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23021 | return resultobj; |
23022 | fail: | |
23023 | return NULL; | |
23024 | } | |
23025 | ||
23026 | ||
23027 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23028 | PyObject *resultobj; | |
23029 | wxListView *arg1 = (wxListView *) 0 ; | |
23030 | long arg2 ; | |
23031 | long result; | |
23032 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23033 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23034 | char *kwnames[] = { |
23035 | (char *) "self",(char *) "item", NULL | |
23036 | }; | |
23037 | ||
8edf1c75 | 23038 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23039 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23040 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23041 | arg2 = (long) SWIG_AsLong(obj1); | |
23042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23043 | { |
23044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23045 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23046 | ||
23047 | wxPyEndAllowThreads(__tstate); | |
23048 | if (PyErr_Occurred()) SWIG_fail; | |
23049 | } | |
2f4c0a16 | 23050 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23051 | return resultobj; |
23052 | fail: | |
23053 | return NULL; | |
23054 | } | |
23055 | ||
23056 | ||
23057 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23058 | PyObject *resultobj; | |
23059 | wxListView *arg1 = (wxListView *) 0 ; | |
23060 | long result; | |
23061 | PyObject * obj0 = 0 ; | |
23062 | char *kwnames[] = { | |
23063 | (char *) "self", NULL | |
23064 | }; | |
23065 | ||
23066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23069 | { |
23070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23071 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23072 | ||
23073 | wxPyEndAllowThreads(__tstate); | |
23074 | if (PyErr_Occurred()) SWIG_fail; | |
23075 | } | |
2f4c0a16 | 23076 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23077 | return resultobj; |
23078 | fail: | |
23079 | return NULL; | |
23080 | } | |
23081 | ||
23082 | ||
23083 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23084 | PyObject *resultobj; | |
23085 | wxListView *arg1 = (wxListView *) 0 ; | |
23086 | long arg2 ; | |
23087 | bool result; | |
23088 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23089 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23090 | char *kwnames[] = { |
23091 | (char *) "self",(char *) "index", NULL | |
23092 | }; | |
23093 | ||
8edf1c75 | 23094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23097 | arg2 = (long) SWIG_AsLong(obj1); | |
23098 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23099 | { |
23100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23101 | result = (bool)(arg1)->IsSelected(arg2); | |
23102 | ||
23103 | wxPyEndAllowThreads(__tstate); | |
23104 | if (PyErr_Occurred()) SWIG_fail; | |
23105 | } | |
4f89f6a3 RD |
23106 | { |
23107 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23108 | } | |
d14a1e28 RD |
23109 | return resultobj; |
23110 | fail: | |
23111 | return NULL; | |
23112 | } | |
23113 | ||
23114 | ||
23115 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23116 | PyObject *resultobj; | |
23117 | wxListView *arg1 = (wxListView *) 0 ; | |
23118 | int arg2 ; | |
23119 | int arg3 ; | |
23120 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
23121 | PyObject * obj1 = 0 ; |
23122 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23123 | char *kwnames[] = { |
23124 | (char *) "self",(char *) "col",(char *) "image", NULL | |
23125 | }; | |
23126 | ||
8edf1c75 | 23127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
23128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23130 | arg2 = (int) SWIG_AsInt(obj1); | |
23131 | if (PyErr_Occurred()) SWIG_fail; | |
23132 | arg3 = (int) SWIG_AsInt(obj2); | |
23133 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23134 | { |
23135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23136 | (arg1)->SetColumnImage(arg2,arg3); | |
23137 | ||
23138 | wxPyEndAllowThreads(__tstate); | |
23139 | if (PyErr_Occurred()) SWIG_fail; | |
23140 | } | |
23141 | Py_INCREF(Py_None); resultobj = Py_None; | |
23142 | return resultobj; | |
23143 | fail: | |
23144 | return NULL; | |
23145 | } | |
23146 | ||
23147 | ||
23148 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23149 | PyObject *resultobj; | |
23150 | wxListView *arg1 = (wxListView *) 0 ; | |
23151 | int arg2 ; | |
23152 | PyObject * obj0 = 0 ; | |
8edf1c75 | 23153 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23154 | char *kwnames[] = { |
23155 | (char *) "self",(char *) "col", NULL | |
23156 | }; | |
23157 | ||
8edf1c75 | 23158 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
23159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23161 | arg2 = (int) SWIG_AsInt(obj1); | |
23162 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23163 | { |
23164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23165 | (arg1)->ClearColumnImage(arg2); | |
23166 | ||
23167 | wxPyEndAllowThreads(__tstate); | |
23168 | if (PyErr_Occurred()) SWIG_fail; | |
23169 | } | |
23170 | Py_INCREF(Py_None); resultobj = Py_None; | |
23171 | return resultobj; | |
23172 | fail: | |
23173 | return NULL; | |
23174 | } | |
23175 | ||
23176 | ||
23177 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
23178 | PyObject *obj; | |
23179 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23180 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
23181 | Py_INCREF(obj); | |
23182 | return Py_BuildValue((char *)""); | |
23183 | } | |
2f4c0a16 | 23184 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
d03fd34d RD |
23185 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); |
23186 | return 1; | |
23187 | } | |
23188 | ||
23189 | ||
23190 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
23191 | PyObject *pyobj; | |
23192 | ||
23193 | { | |
23194 | #if wxUSE_UNICODE | |
23195 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23196 | #else | |
23197 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
23198 | #endif | |
23199 | } | |
23200 | return pyobj; | |
23201 | } | |
23202 | ||
23203 | ||
d14a1e28 RD |
23204 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
23205 | PyObject *resultobj; | |
23206 | wxTreeItemId *result; | |
23207 | char *kwnames[] = { | |
23208 | NULL | |
23209 | }; | |
23210 | ||
23211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
23212 | { | |
23213 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23214 | result = (wxTreeItemId *)new wxTreeItemId(); | |
23215 | ||
23216 | wxPyEndAllowThreads(__tstate); | |
23217 | if (PyErr_Occurred()) SWIG_fail; | |
23218 | } | |
2f4c0a16 | 23219 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23220 | return resultobj; |
23221 | fail: | |
23222 | return NULL; | |
23223 | } | |
23224 | ||
23225 | ||
23226 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23227 | PyObject *resultobj; | |
23228 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23229 | PyObject * obj0 = 0 ; | |
23230 | char *kwnames[] = { | |
23231 | (char *) "self", NULL | |
23232 | }; | |
23233 | ||
23234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23237 | { |
23238 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23239 | delete arg1; | |
23240 | ||
23241 | wxPyEndAllowThreads(__tstate); | |
23242 | if (PyErr_Occurred()) SWIG_fail; | |
23243 | } | |
23244 | Py_INCREF(Py_None); resultobj = Py_None; | |
23245 | return resultobj; | |
23246 | fail: | |
23247 | return NULL; | |
23248 | } | |
23249 | ||
23250 | ||
23251 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23252 | PyObject *resultobj; | |
23253 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23254 | bool result; | |
23255 | PyObject * obj0 = 0 ; | |
23256 | char *kwnames[] = { | |
23257 | (char *) "self", NULL | |
23258 | }; | |
23259 | ||
23260 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23261 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23262 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23263 | { |
23264 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23265 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
23266 | ||
23267 | wxPyEndAllowThreads(__tstate); | |
23268 | if (PyErr_Occurred()) SWIG_fail; | |
23269 | } | |
4f89f6a3 RD |
23270 | { |
23271 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23272 | } | |
d14a1e28 RD |
23273 | return resultobj; |
23274 | fail: | |
23275 | return NULL; | |
23276 | } | |
23277 | ||
23278 | ||
23279 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23280 | PyObject *resultobj; | |
23281 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23282 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23283 | bool result; | |
23284 | PyObject * obj0 = 0 ; | |
23285 | PyObject * obj1 = 0 ; | |
23286 | char *kwnames[] = { | |
23287 | (char *) "self",(char *) "other", NULL | |
23288 | }; | |
23289 | ||
23290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23291 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23292 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23293 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23295 | { |
23296 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23297 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23298 | |
23299 | wxPyEndAllowThreads(__tstate); | |
23300 | if (PyErr_Occurred()) SWIG_fail; | |
23301 | } | |
4f89f6a3 RD |
23302 | { |
23303 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23304 | } | |
d14a1e28 RD |
23305 | return resultobj; |
23306 | fail: | |
23307 | return NULL; | |
23308 | } | |
23309 | ||
23310 | ||
23311 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23312 | PyObject *resultobj; | |
23313 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
23314 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
23315 | bool result; | |
23316 | PyObject * obj0 = 0 ; | |
23317 | PyObject * obj1 = 0 ; | |
23318 | char *kwnames[] = { | |
23319 | (char *) "self",(char *) "other", NULL | |
23320 | }; | |
23321 | ||
23322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23325 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23327 | { |
23328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
328fcd84 | 23329 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
23330 | |
23331 | wxPyEndAllowThreads(__tstate); | |
23332 | if (PyErr_Occurred()) SWIG_fail; | |
23333 | } | |
4f89f6a3 RD |
23334 | { |
23335 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23336 | } | |
d14a1e28 RD |
23337 | return resultobj; |
23338 | fail: | |
23339 | return NULL; | |
23340 | } | |
23341 | ||
23342 | ||
23343 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23344 | PyObject *resultobj; | |
23345 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23346 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
23347 | PyObject * obj0 = 0 ; |
23348 | PyObject * obj1 = 0 ; | |
23349 | char *kwnames[] = { | |
23350 | (char *) "self",(char *) "m_pItem", NULL | |
23351 | }; | |
23352 | ||
23353 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23354 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23355 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23356 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
23357 | if (arg1) (arg1)->m_pItem = arg2; |
23358 | ||
23359 | Py_INCREF(Py_None); resultobj = Py_None; | |
23360 | return resultobj; | |
23361 | fail: | |
23362 | return NULL; | |
23363 | } | |
23364 | ||
23365 | ||
23366 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23367 | PyObject *resultobj; | |
23368 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 23369 | void *result; |
d14a1e28 RD |
23370 | PyObject * obj0 = 0 ; |
23371 | char *kwnames[] = { | |
23372 | (char *) "self", NULL | |
23373 | }; | |
23374 | ||
23375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
23377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 23378 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 23379 | |
2f4c0a16 | 23380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
23381 | return resultobj; |
23382 | fail: | |
23383 | return NULL; | |
23384 | } | |
23385 | ||
23386 | ||
23387 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
23388 | PyObject *obj; | |
23389 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23390 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
23391 | Py_INCREF(obj); | |
23392 | return Py_BuildValue((char *)""); | |
23393 | } | |
23394 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23395 | PyObject *resultobj; | |
23396 | PyObject *arg1 = (PyObject *) NULL ; | |
23397 | wxPyTreeItemData *result; | |
23398 | PyObject * obj0 = 0 ; | |
23399 | char *kwnames[] = { | |
23400 | (char *) "obj", NULL | |
23401 | }; | |
23402 | ||
23403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
23404 | if (obj0) { | |
23405 | arg1 = obj0; | |
23406 | } | |
23407 | { | |
23408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23409 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
23410 | ||
23411 | wxPyEndAllowThreads(__tstate); | |
23412 | if (PyErr_Occurred()) SWIG_fail; | |
23413 | } | |
2f4c0a16 | 23414 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
23415 | return resultobj; |
23416 | fail: | |
23417 | return NULL; | |
23418 | } | |
23419 | ||
23420 | ||
23421 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23422 | PyObject *resultobj; | |
23423 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23424 | PyObject *result; | |
23425 | PyObject * obj0 = 0 ; | |
23426 | char *kwnames[] = { | |
23427 | (char *) "self", NULL | |
23428 | }; | |
23429 | ||
23430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23433 | { |
23434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23435 | result = (PyObject *)(arg1)->GetData(); | |
23436 | ||
23437 | wxPyEndAllowThreads(__tstate); | |
23438 | if (PyErr_Occurred()) SWIG_fail; | |
23439 | } | |
23440 | resultobj = result; | |
23441 | return resultobj; | |
23442 | fail: | |
23443 | return NULL; | |
23444 | } | |
23445 | ||
23446 | ||
23447 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23448 | PyObject *resultobj; | |
23449 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23450 | PyObject *arg2 = (PyObject *) 0 ; | |
23451 | PyObject * obj0 = 0 ; | |
23452 | PyObject * obj1 = 0 ; | |
23453 | char *kwnames[] = { | |
23454 | (char *) "self",(char *) "obj", NULL | |
23455 | }; | |
23456 | ||
23457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23460 | arg2 = obj1; |
23461 | { | |
23462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23463 | (arg1)->SetData(arg2); | |
23464 | ||
23465 | wxPyEndAllowThreads(__tstate); | |
23466 | if (PyErr_Occurred()) SWIG_fail; | |
23467 | } | |
23468 | Py_INCREF(Py_None); resultobj = Py_None; | |
23469 | return resultobj; | |
23470 | fail: | |
23471 | return NULL; | |
23472 | } | |
23473 | ||
23474 | ||
23475 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23476 | PyObject *resultobj; | |
23477 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23478 | wxTreeItemId *result; | |
23479 | PyObject * obj0 = 0 ; | |
23480 | char *kwnames[] = { | |
23481 | (char *) "self", NULL | |
23482 | }; | |
23483 | ||
23484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23487 | { |
23488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23489 | { | |
23490 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
23491 | result = (wxTreeItemId *) &_result_ref; | |
23492 | } | |
23493 | ||
23494 | wxPyEndAllowThreads(__tstate); | |
23495 | if (PyErr_Occurred()) SWIG_fail; | |
23496 | } | |
2f4c0a16 | 23497 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
23498 | return resultobj; |
23499 | fail: | |
23500 | return NULL; | |
23501 | } | |
23502 | ||
23503 | ||
23504 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23505 | PyObject *resultobj; | |
23506 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23507 | wxTreeItemId *arg2 = 0 ; | |
23508 | PyObject * obj0 = 0 ; | |
23509 | PyObject * obj1 = 0 ; | |
23510 | char *kwnames[] = { | |
23511 | (char *) "self",(char *) "id", NULL | |
23512 | }; | |
23513 | ||
23514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23517 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23518 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23519 | SWIG_fail; | |
d14a1e28 | 23520 | if (arg2 == NULL) { |
2f4c0a16 RD |
23521 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23522 | SWIG_fail; | |
d14a1e28 RD |
23523 | } |
23524 | { | |
23525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23526 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
23527 | ||
23528 | wxPyEndAllowThreads(__tstate); | |
23529 | if (PyErr_Occurred()) SWIG_fail; | |
23530 | } | |
23531 | Py_INCREF(Py_None); resultobj = Py_None; | |
23532 | return resultobj; | |
23533 | fail: | |
23534 | return NULL; | |
23535 | } | |
23536 | ||
23537 | ||
23538 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23539 | PyObject *resultobj; | |
23540 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
23541 | PyObject * obj0 = 0 ; | |
23542 | char *kwnames[] = { | |
23543 | (char *) "self", NULL | |
23544 | }; | |
23545 | ||
23546 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23547 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
23548 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23549 | { |
23550 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23551 | wxPyTreeItemData_Destroy(arg1); | |
23552 | ||
23553 | wxPyEndAllowThreads(__tstate); | |
23554 | if (PyErr_Occurred()) SWIG_fail; | |
23555 | } | |
23556 | Py_INCREF(Py_None); resultobj = Py_None; | |
23557 | return resultobj; | |
23558 | fail: | |
23559 | return NULL; | |
23560 | } | |
23561 | ||
23562 | ||
23563 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
23564 | PyObject *obj; | |
23565 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23566 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
23567 | Py_INCREF(obj); | |
23568 | return Py_BuildValue((char *)""); | |
23569 | } | |
23570 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23571 | PyObject *resultobj; | |
23572 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
23573 | int arg2 = (int) 0 ; | |
23574 | wxTreeEvent *result; | |
8edf1c75 RD |
23575 | PyObject * obj0 = 0 ; |
23576 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
23577 | char *kwnames[] = { |
23578 | (char *) "commandType",(char *) "id", NULL | |
23579 | }; | |
23580 | ||
8edf1c75 RD |
23581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
23582 | if (obj0) { | |
2f4c0a16 RD |
23583 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
23584 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
23585 | } |
23586 | if (obj1) { | |
2f4c0a16 RD |
23587 | arg2 = (int) SWIG_AsInt(obj1); |
23588 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 23589 | } |
d14a1e28 RD |
23590 | { |
23591 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23592 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
23593 | ||
23594 | wxPyEndAllowThreads(__tstate); | |
23595 | if (PyErr_Occurred()) SWIG_fail; | |
23596 | } | |
2f4c0a16 | 23597 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
23598 | return resultobj; |
23599 | fail: | |
23600 | return NULL; | |
23601 | } | |
23602 | ||
23603 | ||
23604 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23605 | PyObject *resultobj; | |
23606 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23607 | wxTreeItemId result; | |
23608 | PyObject * obj0 = 0 ; | |
23609 | char *kwnames[] = { | |
23610 | (char *) "self", NULL | |
23611 | }; | |
23612 | ||
23613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23616 | { |
23617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23618 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
23619 | ||
23620 | wxPyEndAllowThreads(__tstate); | |
23621 | if (PyErr_Occurred()) SWIG_fail; | |
23622 | } | |
23623 | { | |
23624 | wxTreeItemId * resultptr; | |
23625 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23627 | } |
23628 | return resultobj; | |
23629 | fail: | |
23630 | return NULL; | |
23631 | } | |
23632 | ||
23633 | ||
23634 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23635 | PyObject *resultobj; | |
23636 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23637 | wxTreeItemId *arg2 = 0 ; | |
23638 | PyObject * obj0 = 0 ; | |
23639 | PyObject * obj1 = 0 ; | |
23640 | char *kwnames[] = { | |
23641 | (char *) "self",(char *) "item", NULL | |
23642 | }; | |
23643 | ||
23644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23648 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23649 | SWIG_fail; | |
d14a1e28 | 23650 | if (arg2 == NULL) { |
2f4c0a16 RD |
23651 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23652 | SWIG_fail; | |
d14a1e28 RD |
23653 | } |
23654 | { | |
23655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23656 | (arg1)->SetItem((wxTreeItemId const &)*arg2); | |
23657 | ||
23658 | wxPyEndAllowThreads(__tstate); | |
23659 | if (PyErr_Occurred()) SWIG_fail; | |
23660 | } | |
23661 | Py_INCREF(Py_None); resultobj = Py_None; | |
23662 | return resultobj; | |
23663 | fail: | |
23664 | return NULL; | |
23665 | } | |
23666 | ||
23667 | ||
23668 | static PyObject *_wrap_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23669 | PyObject *resultobj; | |
23670 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23671 | wxTreeItemId result; | |
23672 | PyObject * obj0 = 0 ; | |
23673 | char *kwnames[] = { | |
23674 | (char *) "self", NULL | |
23675 | }; | |
23676 | ||
23677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23680 | { |
23681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23682 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
23683 | ||
23684 | wxPyEndAllowThreads(__tstate); | |
23685 | if (PyErr_Occurred()) SWIG_fail; | |
23686 | } | |
23687 | { | |
23688 | wxTreeItemId * resultptr; | |
23689 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 23690 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
23691 | } |
23692 | return resultobj; | |
23693 | fail: | |
23694 | return NULL; | |
23695 | } | |
23696 | ||
23697 | ||
23698 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23699 | PyObject *resultobj; | |
23700 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23701 | wxTreeItemId *arg2 = 0 ; | |
23702 | PyObject * obj0 = 0 ; | |
23703 | PyObject * obj1 = 0 ; | |
23704 | char *kwnames[] = { | |
23705 | (char *) "self",(char *) "item", NULL | |
23706 | }; | |
23707 | ||
23708 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23709 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23710 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23711 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
23712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23713 | SWIG_fail; | |
d14a1e28 | 23714 | if (arg2 == NULL) { |
2f4c0a16 RD |
23715 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23716 | SWIG_fail; | |
d14a1e28 RD |
23717 | } |
23718 | { | |
23719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23720 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
23721 | ||
23722 | wxPyEndAllowThreads(__tstate); | |
23723 | if (PyErr_Occurred()) SWIG_fail; | |
23724 | } | |
23725 | Py_INCREF(Py_None); resultobj = Py_None; | |
23726 | return resultobj; | |
23727 | fail: | |
23728 | return NULL; | |
23729 | } | |
23730 | ||
23731 | ||
23732 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23733 | PyObject *resultobj; | |
23734 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23735 | wxPoint result; | |
23736 | PyObject * obj0 = 0 ; | |
23737 | char *kwnames[] = { | |
23738 | (char *) "self", NULL | |
23739 | }; | |
23740 | ||
23741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23744 | { |
23745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23746 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
23747 | ||
23748 | wxPyEndAllowThreads(__tstate); | |
23749 | if (PyErr_Occurred()) SWIG_fail; | |
23750 | } | |
23751 | { | |
23752 | wxPoint * resultptr; | |
23753 | resultptr = new wxPoint((wxPoint &) result); | |
2f4c0a16 | 23754 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
23755 | } |
23756 | return resultobj; | |
23757 | fail: | |
23758 | return NULL; | |
23759 | } | |
23760 | ||
23761 | ||
23762 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23763 | PyObject *resultobj; | |
23764 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23765 | wxPoint *arg2 = 0 ; | |
23766 | wxPoint temp2 ; | |
23767 | PyObject * obj0 = 0 ; | |
23768 | PyObject * obj1 = 0 ; | |
23769 | char *kwnames[] = { | |
23770 | (char *) "self",(char *) "pt", NULL | |
23771 | }; | |
23772 | ||
23773 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23774 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23775 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23776 | { |
23777 | arg2 = &temp2; | |
23778 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23779 | } | |
23780 | { | |
23781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23782 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
23783 | ||
23784 | wxPyEndAllowThreads(__tstate); | |
23785 | if (PyErr_Occurred()) SWIG_fail; | |
23786 | } | |
23787 | Py_INCREF(Py_None); resultobj = Py_None; | |
23788 | return resultobj; | |
23789 | fail: | |
23790 | return NULL; | |
23791 | } | |
23792 | ||
23793 | ||
23794 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23795 | PyObject *resultobj; | |
23796 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23797 | wxKeyEvent *result; | |
23798 | PyObject * obj0 = 0 ; | |
23799 | char *kwnames[] = { | |
23800 | (char *) "self", NULL | |
23801 | }; | |
23802 | ||
23803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23806 | { |
23807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23808 | { | |
23809 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
23810 | result = (wxKeyEvent *) &_result_ref; | |
23811 | } | |
23812 | ||
23813 | wxPyEndAllowThreads(__tstate); | |
23814 | if (PyErr_Occurred()) SWIG_fail; | |
23815 | } | |
2f4c0a16 | 23816 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
23817 | return resultobj; |
23818 | fail: | |
23819 | return NULL; | |
23820 | } | |
23821 | ||
23822 | ||
23823 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23824 | PyObject *resultobj; | |
23825 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23826 | int result; | |
23827 | PyObject * obj0 = 0 ; | |
23828 | char *kwnames[] = { | |
23829 | (char *) "self", NULL | |
23830 | }; | |
23831 | ||
23832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23835 | { |
23836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23837 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
23838 | ||
23839 | wxPyEndAllowThreads(__tstate); | |
23840 | if (PyErr_Occurred()) SWIG_fail; | |
23841 | } | |
2f4c0a16 | 23842 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
23843 | return resultobj; |
23844 | fail: | |
23845 | return NULL; | |
23846 | } | |
23847 | ||
23848 | ||
23849 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23850 | PyObject *resultobj; | |
23851 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23852 | wxKeyEvent *arg2 = 0 ; | |
23853 | PyObject * obj0 = 0 ; | |
23854 | PyObject * obj1 = 0 ; | |
23855 | char *kwnames[] = { | |
23856 | (char *) "self",(char *) "evt", NULL | |
23857 | }; | |
23858 | ||
23859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23862 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
23863 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23864 | SWIG_fail; | |
d14a1e28 | 23865 | if (arg2 == NULL) { |
2f4c0a16 RD |
23866 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23867 | SWIG_fail; | |
d14a1e28 RD |
23868 | } |
23869 | { | |
23870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23871 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
23872 | ||
23873 | wxPyEndAllowThreads(__tstate); | |
23874 | if (PyErr_Occurred()) SWIG_fail; | |
23875 | } | |
23876 | Py_INCREF(Py_None); resultobj = Py_None; | |
23877 | return resultobj; | |
23878 | fail: | |
23879 | return NULL; | |
23880 | } | |
23881 | ||
23882 | ||
23883 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23884 | PyObject *resultobj; | |
23885 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23886 | wxString *result; | |
23887 | PyObject * obj0 = 0 ; | |
23888 | char *kwnames[] = { | |
23889 | (char *) "self", NULL | |
23890 | }; | |
23891 | ||
23892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23895 | { |
23896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23897 | { | |
23898 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
23899 | result = (wxString *) &_result_ref; | |
23900 | } | |
23901 | ||
23902 | wxPyEndAllowThreads(__tstate); | |
23903 | if (PyErr_Occurred()) SWIG_fail; | |
23904 | } | |
f0983263 RD |
23905 | { |
23906 | #if wxUSE_UNICODE | |
23907 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
23908 | #else | |
23909 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
23910 | #endif | |
23911 | } | |
d14a1e28 RD |
23912 | return resultobj; |
23913 | fail: | |
23914 | return NULL; | |
23915 | } | |
23916 | ||
23917 | ||
23918 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23919 | PyObject *resultobj; | |
23920 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23921 | wxString *arg2 = 0 ; | |
423f194a | 23922 | bool temp2 = False ; |
d14a1e28 RD |
23923 | PyObject * obj0 = 0 ; |
23924 | PyObject * obj1 = 0 ; | |
23925 | char *kwnames[] = { | |
23926 | (char *) "self",(char *) "label", NULL | |
23927 | }; | |
23928 | ||
23929 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23930 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23932 | { |
23933 | arg2 = wxString_in_helper(obj1); | |
23934 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 23935 | temp2 = True; |
d14a1e28 RD |
23936 | } |
23937 | { | |
23938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23939 | (arg1)->SetLabel((wxString const &)*arg2); | |
23940 | ||
23941 | wxPyEndAllowThreads(__tstate); | |
23942 | if (PyErr_Occurred()) SWIG_fail; | |
23943 | } | |
23944 | Py_INCREF(Py_None); resultobj = Py_None; | |
23945 | { | |
23946 | if (temp2) | |
23947 | delete arg2; | |
23948 | } | |
23949 | return resultobj; | |
23950 | fail: | |
23951 | { | |
23952 | if (temp2) | |
23953 | delete arg2; | |
23954 | } | |
23955 | return NULL; | |
23956 | } | |
23957 | ||
23958 | ||
23959 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23960 | PyObject *resultobj; | |
23961 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23962 | bool result; | |
23963 | PyObject * obj0 = 0 ; | |
23964 | char *kwnames[] = { | |
23965 | (char *) "self", NULL | |
23966 | }; | |
23967 | ||
23968 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
23969 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23970 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23971 | { |
23972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23973 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
23974 | ||
23975 | wxPyEndAllowThreads(__tstate); | |
23976 | if (PyErr_Occurred()) SWIG_fail; | |
23977 | } | |
4f89f6a3 RD |
23978 | { |
23979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23980 | } | |
d14a1e28 RD |
23981 | return resultobj; |
23982 | fail: | |
23983 | return NULL; | |
23984 | } | |
23985 | ||
23986 | ||
23987 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23988 | PyObject *resultobj; | |
23989 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
23990 | bool arg2 ; | |
23991 | PyObject * obj0 = 0 ; | |
23992 | PyObject * obj1 = 0 ; | |
23993 | char *kwnames[] = { | |
23994 | (char *) "self",(char *) "editCancelled", NULL | |
23995 | }; | |
23996 | ||
23997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
23998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
23999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24000 | arg2 = (bool) SWIG_AsBool(obj1); | |
24001 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24002 | { |
24003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24004 | (arg1)->SetEditCanceled(arg2); | |
24005 | ||
24006 | wxPyEndAllowThreads(__tstate); | |
24007 | if (PyErr_Occurred()) SWIG_fail; | |
24008 | } | |
24009 | Py_INCREF(Py_None); resultobj = Py_None; | |
24010 | return resultobj; | |
24011 | fail: | |
24012 | return NULL; | |
24013 | } | |
24014 | ||
24015 | ||
9fd4be55 RD |
24016 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24017 | PyObject *resultobj; | |
24018 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24019 | wxString *arg2 = 0 ; | |
24020 | bool temp2 = False ; | |
24021 | PyObject * obj0 = 0 ; | |
24022 | PyObject * obj1 = 0 ; | |
24023 | char *kwnames[] = { | |
24024 | (char *) "self",(char *) "toolTip", NULL | |
24025 | }; | |
24026 | ||
24027 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24028 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24029 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9fd4be55 RD |
24030 | { |
24031 | arg2 = wxString_in_helper(obj1); | |
24032 | if (arg2 == NULL) SWIG_fail; | |
24033 | temp2 = True; | |
24034 | } | |
24035 | { | |
24036 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24037 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24038 | ||
24039 | wxPyEndAllowThreads(__tstate); | |
24040 | if (PyErr_Occurred()) SWIG_fail; | |
24041 | } | |
24042 | Py_INCREF(Py_None); resultobj = Py_None; | |
24043 | { | |
24044 | if (temp2) | |
24045 | delete arg2; | |
24046 | } | |
24047 | return resultobj; | |
24048 | fail: | |
24049 | { | |
24050 | if (temp2) | |
24051 | delete arg2; | |
24052 | } | |
24053 | return NULL; | |
24054 | } | |
24055 | ||
24056 | ||
d14a1e28 RD |
24057 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24058 | PyObject *obj; | |
24059 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24060 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24061 | Py_INCREF(obj); | |
24062 | return Py_BuildValue((char *)""); | |
24063 | } | |
24064 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24065 | PyObject *resultobj; | |
24066 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 24067 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24068 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24069 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24070 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24071 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24072 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24073 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24074 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
d03fd34d | 24075 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24076 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24077 | wxPyTreeCtrl *result; | |
24078 | wxPoint temp3 ; | |
24079 | wxSize temp4 ; | |
423f194a | 24080 | bool temp7 = False ; |
d14a1e28 | 24081 | PyObject * obj0 = 0 ; |
8edf1c75 | 24082 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24083 | PyObject * obj2 = 0 ; |
24084 | PyObject * obj3 = 0 ; | |
8edf1c75 | 24085 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24086 | PyObject * obj5 = 0 ; |
24087 | PyObject * obj6 = 0 ; | |
24088 | char *kwnames[] = { | |
24089 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24090 | }; | |
24091 | ||
8edf1c75 | 24092 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
24093 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24094 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24095 | if (obj1) { |
2f4c0a16 RD |
24096 | arg2 = (int) SWIG_AsInt(obj1); |
24097 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24098 | } |
d14a1e28 RD |
24099 | if (obj2) { |
24100 | { | |
24101 | arg3 = &temp3; | |
24102 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24103 | } | |
24104 | } | |
24105 | if (obj3) { | |
24106 | { | |
8edf1c75 RD |
24107 | arg4 = &temp4; |
24108 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24109 | } | |
24110 | } | |
24111 | if (obj4) { | |
2f4c0a16 RD |
24112 | arg5 = (long) SWIG_AsLong(obj4); |
24113 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24114 | } |
24115 | if (obj5) { | |
2f4c0a16 RD |
24116 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
24117 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24118 | SWIG_fail; | |
d14a1e28 | 24119 | if (arg6 == NULL) { |
2f4c0a16 RD |
24120 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24121 | SWIG_fail; | |
d14a1e28 RD |
24122 | } |
24123 | } | |
24124 | if (obj6) { | |
24125 | { | |
24126 | arg7 = wxString_in_helper(obj6); | |
24127 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 24128 | temp7 = True; |
d14a1e28 RD |
24129 | } |
24130 | } | |
24131 | { | |
24132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24133 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
24134 | ||
24135 | wxPyEndAllowThreads(__tstate); | |
24136 | if (PyErr_Occurred()) SWIG_fail; | |
24137 | } | |
d03fd34d RD |
24138 | { |
24139 | resultobj = wxPyMake_wxObject(result); | |
24140 | } | |
d14a1e28 RD |
24141 | { |
24142 | if (temp7) | |
24143 | delete arg7; | |
24144 | } | |
24145 | return resultobj; | |
24146 | fail: | |
24147 | { | |
24148 | if (temp7) | |
24149 | delete arg7; | |
24150 | } | |
24151 | return NULL; | |
24152 | } | |
24153 | ||
24154 | ||
24155 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24156 | PyObject *resultobj; | |
24157 | wxPyTreeCtrl *result; | |
24158 | char *kwnames[] = { | |
24159 | NULL | |
24160 | }; | |
24161 | ||
24162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
24163 | { | |
24164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24165 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
24166 | ||
24167 | wxPyEndAllowThreads(__tstate); | |
24168 | if (PyErr_Occurred()) SWIG_fail; | |
24169 | } | |
d03fd34d RD |
24170 | { |
24171 | resultobj = wxPyMake_wxObject(result); | |
24172 | } | |
d14a1e28 RD |
24173 | return resultobj; |
24174 | fail: | |
24175 | return NULL; | |
24176 | } | |
24177 | ||
24178 | ||
24179 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24180 | PyObject *resultobj; | |
24181 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24182 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 24183 | int arg3 = (int) -1 ; |
d14a1e28 RD |
24184 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
24185 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
24186 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
24187 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
24188 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
24189 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
24190 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
d03fd34d | 24191 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24192 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
24193 | bool result; | |
24194 | wxPoint temp4 ; | |
24195 | wxSize temp5 ; | |
423f194a | 24196 | bool temp8 = False ; |
d14a1e28 RD |
24197 | PyObject * obj0 = 0 ; |
24198 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24199 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24200 | PyObject * obj3 = 0 ; |
24201 | PyObject * obj4 = 0 ; | |
8edf1c75 | 24202 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
24203 | PyObject * obj6 = 0 ; |
24204 | PyObject * obj7 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24207 | }; | |
24208 | ||
8edf1c75 | 24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
2f4c0a16 RD |
24210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 24214 | if (obj2) { |
2f4c0a16 RD |
24215 | arg3 = (int) SWIG_AsInt(obj2); |
24216 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24217 | } |
d14a1e28 RD |
24218 | if (obj3) { |
24219 | { | |
24220 | arg4 = &temp4; | |
24221 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
24222 | } | |
24223 | } | |
24224 | if (obj4) { | |
24225 | { | |
24226 | arg5 = &temp5; | |
24227 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
24228 | } | |
24229 | } | |
8edf1c75 | 24230 | if (obj5) { |
2f4c0a16 RD |
24231 | arg6 = (long) SWIG_AsLong(obj5); |
24232 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24233 | } |
d14a1e28 | 24234 | if (obj6) { |
2f4c0a16 RD |
24235 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
24236 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24237 | SWIG_fail; | |
d14a1e28 | 24238 | if (arg7 == NULL) { |
2f4c0a16 RD |
24239 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24240 | SWIG_fail; | |
d14a1e28 RD |
24241 | } |
24242 | } | |
24243 | if (obj7) { | |
24244 | { | |
24245 | arg8 = wxString_in_helper(obj7); | |
24246 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 24247 | temp8 = True; |
d14a1e28 RD |
24248 | } |
24249 | } | |
24250 | { | |
24251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24252 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
24253 | ||
24254 | wxPyEndAllowThreads(__tstate); | |
24255 | if (PyErr_Occurred()) SWIG_fail; | |
24256 | } | |
4f89f6a3 RD |
24257 | { |
24258 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24259 | } | |
d14a1e28 RD |
24260 | { |
24261 | if (temp8) | |
24262 | delete arg8; | |
24263 | } | |
24264 | return resultobj; | |
24265 | fail: | |
24266 | { | |
24267 | if (temp8) | |
24268 | delete arg8; | |
24269 | } | |
24270 | return NULL; | |
24271 | } | |
24272 | ||
24273 | ||
24274 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24275 | PyObject *resultobj; | |
24276 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24277 | PyObject *arg2 = (PyObject *) 0 ; | |
24278 | PyObject *arg3 = (PyObject *) 0 ; | |
24279 | PyObject * obj0 = 0 ; | |
24280 | PyObject * obj1 = 0 ; | |
24281 | PyObject * obj2 = 0 ; | |
24282 | char *kwnames[] = { | |
24283 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
24284 | }; | |
24285 | ||
24286 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24287 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24288 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24289 | arg2 = obj1; |
24290 | arg3 = obj2; | |
24291 | { | |
24292 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24293 | (arg1)->_setCallbackInfo(arg2,arg3); | |
24294 | ||
24295 | wxPyEndAllowThreads(__tstate); | |
24296 | if (PyErr_Occurred()) SWIG_fail; | |
24297 | } | |
24298 | Py_INCREF(Py_None); resultobj = Py_None; | |
24299 | return resultobj; | |
24300 | fail: | |
24301 | return NULL; | |
24302 | } | |
24303 | ||
24304 | ||
24305 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24306 | PyObject *resultobj; | |
24307 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24308 | size_t result; | |
24309 | PyObject * obj0 = 0 ; | |
24310 | char *kwnames[] = { | |
24311 | (char *) "self", NULL | |
24312 | }; | |
24313 | ||
24314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24317 | { |
24318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24319 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
24320 | ||
24321 | wxPyEndAllowThreads(__tstate); | |
24322 | if (PyErr_Occurred()) SWIG_fail; | |
24323 | } | |
2f4c0a16 | 24324 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
24325 | return resultobj; |
24326 | fail: | |
24327 | return NULL; | |
24328 | } | |
24329 | ||
24330 | ||
24331 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24332 | PyObject *resultobj; | |
24333 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24334 | unsigned int result; | |
24335 | PyObject * obj0 = 0 ; | |
24336 | char *kwnames[] = { | |
24337 | (char *) "self", NULL | |
24338 | }; | |
24339 | ||
24340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24343 | { |
24344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24345 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
24346 | ||
24347 | wxPyEndAllowThreads(__tstate); | |
24348 | if (PyErr_Occurred()) SWIG_fail; | |
24349 | } | |
2f4c0a16 | 24350 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24351 | return resultobj; |
24352 | fail: | |
24353 | return NULL; | |
24354 | } | |
24355 | ||
24356 | ||
24357 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24358 | PyObject *resultobj; | |
24359 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24360 | unsigned int arg2 ; | |
24361 | PyObject * obj0 = 0 ; | |
24362 | PyObject * obj1 = 0 ; | |
24363 | char *kwnames[] = { | |
24364 | (char *) "self",(char *) "indent", NULL | |
24365 | }; | |
24366 | ||
24367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24370 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24371 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24372 | { |
24373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24374 | (arg1)->SetIndent(arg2); | |
24375 | ||
24376 | wxPyEndAllowThreads(__tstate); | |
24377 | if (PyErr_Occurred()) SWIG_fail; | |
24378 | } | |
24379 | Py_INCREF(Py_None); resultobj = Py_None; | |
24380 | return resultobj; | |
24381 | fail: | |
24382 | return NULL; | |
24383 | } | |
24384 | ||
24385 | ||
24386 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24387 | PyObject *resultobj; | |
24388 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24389 | unsigned int result; | |
24390 | PyObject * obj0 = 0 ; | |
24391 | char *kwnames[] = { | |
24392 | (char *) "self", NULL | |
24393 | }; | |
24394 | ||
24395 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24396 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24397 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24398 | { |
24399 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24400 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
24401 | ||
24402 | wxPyEndAllowThreads(__tstate); | |
24403 | if (PyErr_Occurred()) SWIG_fail; | |
24404 | } | |
2f4c0a16 | 24405 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
24406 | return resultobj; |
24407 | fail: | |
24408 | return NULL; | |
24409 | } | |
24410 | ||
24411 | ||
24412 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24413 | PyObject *resultobj; | |
24414 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24415 | unsigned int arg2 ; | |
24416 | PyObject * obj0 = 0 ; | |
24417 | PyObject * obj1 = 0 ; | |
24418 | char *kwnames[] = { | |
24419 | (char *) "self",(char *) "spacing", NULL | |
24420 | }; | |
24421 | ||
24422 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24423 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24424 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24425 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
24426 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24427 | { |
24428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24429 | (arg1)->SetSpacing(arg2); | |
24430 | ||
24431 | wxPyEndAllowThreads(__tstate); | |
24432 | if (PyErr_Occurred()) SWIG_fail; | |
24433 | } | |
24434 | Py_INCREF(Py_None); resultobj = Py_None; | |
24435 | return resultobj; | |
24436 | fail: | |
24437 | return NULL; | |
24438 | } | |
24439 | ||
24440 | ||
24441 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24442 | PyObject *resultobj; | |
24443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24444 | wxImageList *result; | |
24445 | PyObject * obj0 = 0 ; | |
24446 | char *kwnames[] = { | |
24447 | (char *) "self", NULL | |
24448 | }; | |
24449 | ||
24450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24453 | { |
24454 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24455 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
24456 | ||
24457 | wxPyEndAllowThreads(__tstate); | |
24458 | if (PyErr_Occurred()) SWIG_fail; | |
24459 | } | |
24460 | { | |
24461 | resultobj = wxPyMake_wxObject(result); | |
24462 | } | |
24463 | return resultobj; | |
24464 | fail: | |
24465 | return NULL; | |
24466 | } | |
24467 | ||
24468 | ||
24469 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24470 | PyObject *resultobj; | |
24471 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24472 | wxImageList *result; | |
24473 | PyObject * obj0 = 0 ; | |
24474 | char *kwnames[] = { | |
24475 | (char *) "self", NULL | |
24476 | }; | |
24477 | ||
24478 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
24479 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24480 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24481 | { |
24482 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24483 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
24484 | ||
24485 | wxPyEndAllowThreads(__tstate); | |
24486 | if (PyErr_Occurred()) SWIG_fail; | |
24487 | } | |
24488 | { | |
24489 | resultobj = wxPyMake_wxObject(result); | |
24490 | } | |
24491 | return resultobj; | |
24492 | fail: | |
24493 | return NULL; | |
24494 | } | |
24495 | ||
24496 | ||
24497 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24498 | PyObject *resultobj; | |
24499 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24500 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24501 | PyObject * obj0 = 0 ; | |
24502 | PyObject * obj1 = 0 ; | |
24503 | char *kwnames[] = { | |
24504 | (char *) "self",(char *) "imageList", NULL | |
24505 | }; | |
24506 | ||
24507 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24508 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24509 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24510 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24512 | { |
24513 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24514 | (arg1)->SetImageList(arg2); | |
24515 | ||
24516 | wxPyEndAllowThreads(__tstate); | |
24517 | if (PyErr_Occurred()) SWIG_fail; | |
24518 | } | |
24519 | Py_INCREF(Py_None); resultobj = Py_None; | |
24520 | return resultobj; | |
24521 | fail: | |
24522 | return NULL; | |
24523 | } | |
24524 | ||
24525 | ||
24526 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24527 | PyObject *resultobj; | |
24528 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24529 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24530 | PyObject * obj0 = 0 ; | |
24531 | PyObject * obj1 = 0 ; | |
24532 | char *kwnames[] = { | |
24533 | (char *) "self",(char *) "imageList", NULL | |
24534 | }; | |
24535 | ||
24536 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24537 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24538 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24539 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24541 | { |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | (arg1)->SetStateImageList(arg2); | |
24544 | ||
24545 | wxPyEndAllowThreads(__tstate); | |
24546 | if (PyErr_Occurred()) SWIG_fail; | |
24547 | } | |
24548 | Py_INCREF(Py_None); resultobj = Py_None; | |
24549 | return resultobj; | |
24550 | fail: | |
24551 | return NULL; | |
24552 | } | |
24553 | ||
24554 | ||
24555 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24556 | PyObject *resultobj; | |
24557 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24558 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24559 | PyObject * obj0 = 0 ; | |
24560 | PyObject * obj1 = 0 ; | |
24561 | char *kwnames[] = { | |
24562 | (char *) "self",(char *) "imageList", NULL | |
24563 | }; | |
24564 | ||
24565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24568 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24569 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24570 | { |
24571 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24572 | (arg1)->AssignImageList(arg2); | |
24573 | ||
24574 | wxPyEndAllowThreads(__tstate); | |
24575 | if (PyErr_Occurred()) SWIG_fail; | |
24576 | } | |
24577 | Py_INCREF(Py_None); resultobj = Py_None; | |
24578 | return resultobj; | |
24579 | fail: | |
24580 | return NULL; | |
24581 | } | |
24582 | ||
24583 | ||
24584 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24585 | PyObject *resultobj; | |
24586 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24587 | wxImageList *arg2 = (wxImageList *) 0 ; | |
24588 | PyObject * obj0 = 0 ; | |
24589 | PyObject * obj1 = 0 ; | |
24590 | char *kwnames[] = { | |
24591 | (char *) "self",(char *) "imageList", NULL | |
24592 | }; | |
24593 | ||
24594 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24595 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24596 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24597 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
24598 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24599 | { |
24600 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24601 | (arg1)->AssignStateImageList(arg2); | |
24602 | ||
24603 | wxPyEndAllowThreads(__tstate); | |
24604 | if (PyErr_Occurred()) SWIG_fail; | |
24605 | } | |
24606 | Py_INCREF(Py_None); resultobj = Py_None; | |
24607 | return resultobj; | |
24608 | fail: | |
24609 | return NULL; | |
24610 | } | |
24611 | ||
24612 | ||
24613 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24614 | PyObject *resultobj; | |
24615 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24616 | wxTreeItemId *arg2 = 0 ; | |
24617 | wxString result; | |
24618 | PyObject * obj0 = 0 ; | |
24619 | PyObject * obj1 = 0 ; | |
24620 | char *kwnames[] = { | |
24621 | (char *) "self",(char *) "item", NULL | |
24622 | }; | |
24623 | ||
24624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24629 | SWIG_fail; | |
d14a1e28 | 24630 | if (arg2 == NULL) { |
2f4c0a16 RD |
24631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24632 | SWIG_fail; | |
d14a1e28 RD |
24633 | } |
24634 | { | |
24635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24636 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
24637 | ||
24638 | wxPyEndAllowThreads(__tstate); | |
24639 | if (PyErr_Occurred()) SWIG_fail; | |
24640 | } | |
24641 | { | |
24642 | #if wxUSE_UNICODE | |
24643 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
24644 | #else | |
24645 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
24646 | #endif | |
24647 | } | |
24648 | return resultobj; | |
24649 | fail: | |
24650 | return NULL; | |
24651 | } | |
24652 | ||
24653 | ||
24654 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24655 | PyObject *resultobj; | |
24656 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24657 | wxTreeItemId *arg2 = 0 ; | |
24658 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
24659 | int result; | |
24660 | PyObject * obj0 = 0 ; | |
24661 | PyObject * obj1 = 0 ; | |
8edf1c75 | 24662 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
24663 | char *kwnames[] = { |
24664 | (char *) "self",(char *) "item",(char *) "which", NULL | |
24665 | }; | |
24666 | ||
8edf1c75 | 24667 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
24668 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24669 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24670 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24671 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24672 | SWIG_fail; | |
d14a1e28 | 24673 | if (arg2 == NULL) { |
2f4c0a16 RD |
24674 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24675 | SWIG_fail; | |
d14a1e28 | 24676 | } |
8edf1c75 | 24677 | if (obj2) { |
2f4c0a16 RD |
24678 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
24679 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24680 | } |
d14a1e28 RD |
24681 | { |
24682 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24683 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
24684 | ||
24685 | wxPyEndAllowThreads(__tstate); | |
24686 | if (PyErr_Occurred()) SWIG_fail; | |
24687 | } | |
2f4c0a16 | 24688 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24689 | return resultobj; |
24690 | fail: | |
24691 | return NULL; | |
24692 | } | |
24693 | ||
24694 | ||
24695 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24696 | PyObject *resultobj; | |
24697 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24698 | wxTreeItemId *arg2 = 0 ; | |
24699 | wxPyTreeItemData *result; | |
24700 | PyObject * obj0 = 0 ; | |
24701 | PyObject * obj1 = 0 ; | |
24702 | char *kwnames[] = { | |
24703 | (char *) "self",(char *) "item", NULL | |
24704 | }; | |
24705 | ||
24706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24709 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24710 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24711 | SWIG_fail; | |
d14a1e28 | 24712 | if (arg2 == NULL) { |
2f4c0a16 RD |
24713 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24714 | SWIG_fail; | |
d14a1e28 RD |
24715 | } |
24716 | { | |
24717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24718 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
24719 | ||
24720 | wxPyEndAllowThreads(__tstate); | |
24721 | if (PyErr_Occurred()) SWIG_fail; | |
24722 | } | |
2f4c0a16 | 24723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
24724 | return resultobj; |
24725 | fail: | |
24726 | return NULL; | |
24727 | } | |
24728 | ||
24729 | ||
24730 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24731 | PyObject *resultobj; | |
24732 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24733 | wxTreeItemId *arg2 = 0 ; | |
24734 | PyObject *result; | |
24735 | PyObject * obj0 = 0 ; | |
24736 | PyObject * obj1 = 0 ; | |
24737 | char *kwnames[] = { | |
24738 | (char *) "self",(char *) "item", NULL | |
24739 | }; | |
24740 | ||
24741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24745 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24746 | SWIG_fail; | |
d14a1e28 | 24747 | if (arg2 == NULL) { |
2f4c0a16 RD |
24748 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24749 | SWIG_fail; | |
d14a1e28 RD |
24750 | } |
24751 | { | |
24752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24753 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
24754 | ||
24755 | wxPyEndAllowThreads(__tstate); | |
24756 | if (PyErr_Occurred()) SWIG_fail; | |
24757 | } | |
24758 | resultobj = result; | |
24759 | return resultobj; | |
24760 | fail: | |
24761 | return NULL; | |
24762 | } | |
24763 | ||
24764 | ||
24765 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24766 | PyObject *resultobj; | |
24767 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24768 | wxTreeItemId *arg2 = 0 ; | |
24769 | wxColour result; | |
24770 | PyObject * obj0 = 0 ; | |
24771 | PyObject * obj1 = 0 ; | |
24772 | char *kwnames[] = { | |
24773 | (char *) "self",(char *) "item", NULL | |
24774 | }; | |
24775 | ||
24776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24780 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24781 | SWIG_fail; | |
d14a1e28 | 24782 | if (arg2 == NULL) { |
2f4c0a16 RD |
24783 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24784 | SWIG_fail; | |
d14a1e28 RD |
24785 | } |
24786 | { | |
24787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24788 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
24789 | ||
24790 | wxPyEndAllowThreads(__tstate); | |
24791 | if (PyErr_Occurred()) SWIG_fail; | |
24792 | } | |
24793 | { | |
24794 | wxColour * resultptr; | |
24795 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24796 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24797 | } |
24798 | return resultobj; | |
24799 | fail: | |
24800 | return NULL; | |
24801 | } | |
24802 | ||
24803 | ||
24804 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24805 | PyObject *resultobj; | |
24806 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24807 | wxTreeItemId *arg2 = 0 ; | |
24808 | wxColour result; | |
24809 | PyObject * obj0 = 0 ; | |
24810 | PyObject * obj1 = 0 ; | |
24811 | char *kwnames[] = { | |
24812 | (char *) "self",(char *) "item", NULL | |
24813 | }; | |
24814 | ||
24815 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24816 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24817 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24818 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24819 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24820 | SWIG_fail; | |
d14a1e28 | 24821 | if (arg2 == NULL) { |
2f4c0a16 RD |
24822 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24823 | SWIG_fail; | |
d14a1e28 RD |
24824 | } |
24825 | { | |
24826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24827 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
24828 | ||
24829 | wxPyEndAllowThreads(__tstate); | |
24830 | if (PyErr_Occurred()) SWIG_fail; | |
24831 | } | |
24832 | { | |
24833 | wxColour * resultptr; | |
24834 | resultptr = new wxColour((wxColour &) result); | |
2f4c0a16 | 24835 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
24836 | } |
24837 | return resultobj; | |
24838 | fail: | |
24839 | return NULL; | |
24840 | } | |
24841 | ||
24842 | ||
24843 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24844 | PyObject *resultobj; | |
24845 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24846 | wxTreeItemId *arg2 = 0 ; | |
24847 | wxFont result; | |
24848 | PyObject * obj0 = 0 ; | |
24849 | PyObject * obj1 = 0 ; | |
24850 | char *kwnames[] = { | |
24851 | (char *) "self",(char *) "item", NULL | |
24852 | }; | |
24853 | ||
24854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
24855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24857 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24858 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24859 | SWIG_fail; | |
d14a1e28 | 24860 | if (arg2 == NULL) { |
2f4c0a16 RD |
24861 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24862 | SWIG_fail; | |
d14a1e28 RD |
24863 | } |
24864 | { | |
24865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24866 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
24867 | ||
24868 | wxPyEndAllowThreads(__tstate); | |
24869 | if (PyErr_Occurred()) SWIG_fail; | |
24870 | } | |
24871 | { | |
24872 | wxFont * resultptr; | |
24873 | resultptr = new wxFont((wxFont &) result); | |
2f4c0a16 | 24874 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
24875 | } |
24876 | return resultobj; | |
24877 | fail: | |
24878 | return NULL; | |
24879 | } | |
24880 | ||
24881 | ||
24882 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24883 | PyObject *resultobj; | |
24884 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24885 | wxTreeItemId *arg2 = 0 ; | |
24886 | wxString *arg3 = 0 ; | |
423f194a | 24887 | bool temp3 = False ; |
d14a1e28 RD |
24888 | PyObject * obj0 = 0 ; |
24889 | PyObject * obj1 = 0 ; | |
24890 | PyObject * obj2 = 0 ; | |
24891 | char *kwnames[] = { | |
24892 | (char *) "self",(char *) "item",(char *) "text", NULL | |
24893 | }; | |
24894 | ||
24895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24896 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24897 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24898 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24899 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24900 | SWIG_fail; | |
d14a1e28 | 24901 | if (arg2 == NULL) { |
2f4c0a16 RD |
24902 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24903 | SWIG_fail; | |
d14a1e28 RD |
24904 | } |
24905 | { | |
24906 | arg3 = wxString_in_helper(obj2); | |
24907 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 24908 | temp3 = True; |
d14a1e28 RD |
24909 | } |
24910 | { | |
24911 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24912 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
24913 | ||
24914 | wxPyEndAllowThreads(__tstate); | |
24915 | if (PyErr_Occurred()) SWIG_fail; | |
24916 | } | |
24917 | Py_INCREF(Py_None); resultobj = Py_None; | |
24918 | { | |
24919 | if (temp3) | |
24920 | delete arg3; | |
24921 | } | |
24922 | return resultobj; | |
24923 | fail: | |
24924 | { | |
24925 | if (temp3) | |
24926 | delete arg3; | |
24927 | } | |
24928 | return NULL; | |
24929 | } | |
24930 | ||
24931 | ||
24932 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24933 | PyObject *resultobj; | |
24934 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24935 | wxTreeItemId *arg2 = 0 ; | |
24936 | int arg3 ; | |
24937 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
24938 | PyObject * obj0 = 0 ; | |
24939 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
24940 | PyObject * obj2 = 0 ; |
24941 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
24942 | char *kwnames[] = { |
24943 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
24944 | }; | |
24945 | ||
8edf1c75 | 24946 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
2f4c0a16 RD |
24947 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24948 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24949 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24950 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24951 | SWIG_fail; | |
d14a1e28 | 24952 | if (arg2 == NULL) { |
2f4c0a16 RD |
24953 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24954 | SWIG_fail; | |
8edf1c75 | 24955 | } |
2f4c0a16 RD |
24956 | arg3 = (int) SWIG_AsInt(obj2); |
24957 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24958 | if (obj3) { |
2f4c0a16 RD |
24959 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
24960 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 24961 | } |
d14a1e28 RD |
24962 | { |
24963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24964 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
24965 | ||
24966 | wxPyEndAllowThreads(__tstate); | |
24967 | if (PyErr_Occurred()) SWIG_fail; | |
24968 | } | |
24969 | Py_INCREF(Py_None); resultobj = Py_None; | |
24970 | return resultobj; | |
24971 | fail: | |
24972 | return NULL; | |
24973 | } | |
24974 | ||
24975 | ||
24976 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24977 | PyObject *resultobj; | |
24978 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
24979 | wxTreeItemId *arg2 = 0 ; | |
24980 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
24981 | PyObject * obj0 = 0 ; | |
24982 | PyObject * obj1 = 0 ; | |
24983 | PyObject * obj2 = 0 ; | |
24984 | char *kwnames[] = { | |
24985 | (char *) "self",(char *) "item",(char *) "data", NULL | |
24986 | }; | |
24987 | ||
24988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
24989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
24990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24993 | SWIG_fail; | |
d14a1e28 | 24994 | if (arg2 == NULL) { |
2f4c0a16 RD |
24995 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24996 | SWIG_fail; | |
d14a1e28 | 24997 | } |
2f4c0a16 RD |
24998 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
24999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25000 | { |
25001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25002 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25003 | ||
25004 | wxPyEndAllowThreads(__tstate); | |
25005 | if (PyErr_Occurred()) SWIG_fail; | |
25006 | } | |
25007 | Py_INCREF(Py_None); resultobj = Py_None; | |
25008 | return resultobj; | |
25009 | fail: | |
25010 | return NULL; | |
25011 | } | |
25012 | ||
25013 | ||
25014 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25015 | PyObject *resultobj; | |
25016 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25017 | wxTreeItemId *arg2 = 0 ; | |
25018 | PyObject *arg3 = (PyObject *) 0 ; | |
25019 | PyObject * obj0 = 0 ; | |
25020 | PyObject * obj1 = 0 ; | |
25021 | PyObject * obj2 = 0 ; | |
25022 | char *kwnames[] = { | |
25023 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25024 | }; | |
25025 | ||
25026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25029 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25030 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25031 | SWIG_fail; | |
d14a1e28 | 25032 | if (arg2 == NULL) { |
2f4c0a16 RD |
25033 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25034 | SWIG_fail; | |
d14a1e28 RD |
25035 | } |
25036 | arg3 = obj2; | |
25037 | { | |
25038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25039 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25040 | ||
25041 | wxPyEndAllowThreads(__tstate); | |
25042 | if (PyErr_Occurred()) SWIG_fail; | |
25043 | } | |
25044 | Py_INCREF(Py_None); resultobj = Py_None; | |
25045 | return resultobj; | |
25046 | fail: | |
25047 | return NULL; | |
25048 | } | |
25049 | ||
25050 | ||
25051 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25052 | PyObject *resultobj; | |
25053 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25054 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25055 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25056 | PyObject * obj0 = 0 ; |
25057 | PyObject * obj1 = 0 ; | |
25058 | PyObject * obj2 = 0 ; | |
25059 | char *kwnames[] = { | |
25060 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25061 | }; | |
25062 | ||
25063 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25064 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25065 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25066 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25067 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25068 | SWIG_fail; | |
d14a1e28 | 25069 | if (arg2 == NULL) { |
2f4c0a16 RD |
25070 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25071 | SWIG_fail; | |
d14a1e28 RD |
25072 | } |
25073 | if (obj2) { | |
2f4c0a16 RD |
25074 | arg3 = (bool) SWIG_AsBool(obj2); |
25075 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25076 | } |
25077 | { | |
25078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25079 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25080 | ||
25081 | wxPyEndAllowThreads(__tstate); | |
25082 | if (PyErr_Occurred()) SWIG_fail; | |
25083 | } | |
25084 | Py_INCREF(Py_None); resultobj = Py_None; | |
25085 | return resultobj; | |
25086 | fail: | |
25087 | return NULL; | |
25088 | } | |
25089 | ||
25090 | ||
25091 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25092 | PyObject *resultobj; | |
25093 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25094 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25095 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25096 | PyObject * obj0 = 0 ; |
25097 | PyObject * obj1 = 0 ; | |
25098 | PyObject * obj2 = 0 ; | |
25099 | char *kwnames[] = { | |
25100 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25101 | }; | |
25102 | ||
25103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25106 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25108 | SWIG_fail; | |
d14a1e28 | 25109 | if (arg2 == NULL) { |
2f4c0a16 RD |
25110 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25111 | SWIG_fail; | |
d14a1e28 RD |
25112 | } |
25113 | if (obj2) { | |
2f4c0a16 RD |
25114 | arg3 = (bool) SWIG_AsBool(obj2); |
25115 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25116 | } |
25117 | { | |
25118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25119 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
25120 | ||
25121 | wxPyEndAllowThreads(__tstate); | |
25122 | if (PyErr_Occurred()) SWIG_fail; | |
25123 | } | |
25124 | Py_INCREF(Py_None); resultobj = Py_None; | |
25125 | return resultobj; | |
25126 | fail: | |
25127 | return NULL; | |
25128 | } | |
25129 | ||
25130 | ||
25131 | static PyObject *_wrap_TreeCtrl_SetItemDropHighlight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25132 | PyObject *resultobj; | |
25133 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25134 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25135 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25136 | PyObject * obj0 = 0 ; |
25137 | PyObject * obj1 = 0 ; | |
25138 | PyObject * obj2 = 0 ; | |
25139 | char *kwnames[] = { | |
25140 | (char *) "self",(char *) "item",(char *) "highlight", NULL | |
25141 | }; | |
25142 | ||
25143 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemDropHighlight",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25144 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25145 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25146 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25147 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25148 | SWIG_fail; | |
d14a1e28 | 25149 | if (arg2 == NULL) { |
2f4c0a16 RD |
25150 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25151 | SWIG_fail; | |
d14a1e28 RD |
25152 | } |
25153 | if (obj2) { | |
2f4c0a16 RD |
25154 | arg3 = (bool) SWIG_AsBool(obj2); |
25155 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25156 | } |
25157 | { | |
25158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25159 | (arg1)->SetItemDropHighlight((wxTreeItemId const &)*arg2,arg3); | |
25160 | ||
25161 | wxPyEndAllowThreads(__tstate); | |
25162 | if (PyErr_Occurred()) SWIG_fail; | |
25163 | } | |
25164 | Py_INCREF(Py_None); resultobj = Py_None; | |
25165 | return resultobj; | |
25166 | fail: | |
25167 | return NULL; | |
25168 | } | |
25169 | ||
25170 | ||
25171 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25172 | PyObject *resultobj; | |
25173 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25174 | wxTreeItemId *arg2 = 0 ; | |
25175 | wxColour *arg3 = 0 ; | |
25176 | wxColour temp3 ; | |
25177 | PyObject * obj0 = 0 ; | |
25178 | PyObject * obj1 = 0 ; | |
25179 | PyObject * obj2 = 0 ; | |
25180 | char *kwnames[] = { | |
25181 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25182 | }; | |
25183 | ||
25184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25187 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25188 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25189 | SWIG_fail; | |
d14a1e28 | 25190 | if (arg2 == NULL) { |
2f4c0a16 RD |
25191 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25192 | SWIG_fail; | |
d14a1e28 RD |
25193 | } |
25194 | { | |
25195 | arg3 = &temp3; | |
25196 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25197 | } | |
25198 | { | |
25199 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25200 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25201 | ||
25202 | wxPyEndAllowThreads(__tstate); | |
25203 | if (PyErr_Occurred()) SWIG_fail; | |
25204 | } | |
25205 | Py_INCREF(Py_None); resultobj = Py_None; | |
25206 | return resultobj; | |
25207 | fail: | |
25208 | return NULL; | |
25209 | } | |
25210 | ||
25211 | ||
25212 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25213 | PyObject *resultobj; | |
25214 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25215 | wxTreeItemId *arg2 = 0 ; | |
25216 | wxColour *arg3 = 0 ; | |
25217 | wxColour temp3 ; | |
25218 | PyObject * obj0 = 0 ; | |
25219 | PyObject * obj1 = 0 ; | |
25220 | PyObject * obj2 = 0 ; | |
25221 | char *kwnames[] = { | |
25222 | (char *) "self",(char *) "item",(char *) "col", NULL | |
25223 | }; | |
25224 | ||
25225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25228 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25229 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25230 | SWIG_fail; | |
d14a1e28 | 25231 | if (arg2 == NULL) { |
2f4c0a16 RD |
25232 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25233 | SWIG_fail; | |
d14a1e28 RD |
25234 | } |
25235 | { | |
25236 | arg3 = &temp3; | |
25237 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
25238 | } | |
25239 | { | |
25240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25241 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
25242 | ||
25243 | wxPyEndAllowThreads(__tstate); | |
25244 | if (PyErr_Occurred()) SWIG_fail; | |
25245 | } | |
25246 | Py_INCREF(Py_None); resultobj = Py_None; | |
25247 | return resultobj; | |
25248 | fail: | |
25249 | return NULL; | |
25250 | } | |
25251 | ||
25252 | ||
25253 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25254 | PyObject *resultobj; | |
25255 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25256 | wxTreeItemId *arg2 = 0 ; | |
25257 | wxFont *arg3 = 0 ; | |
25258 | PyObject * obj0 = 0 ; | |
25259 | PyObject * obj1 = 0 ; | |
25260 | PyObject * obj2 = 0 ; | |
25261 | char *kwnames[] = { | |
25262 | (char *) "self",(char *) "item",(char *) "font", NULL | |
25263 | }; | |
25264 | ||
25265 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25266 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25267 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25268 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25269 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25270 | SWIG_fail; | |
d14a1e28 | 25271 | if (arg2 == NULL) { |
2f4c0a16 RD |
25272 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25273 | SWIG_fail; | |
d14a1e28 | 25274 | } |
2f4c0a16 RD |
25275 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
25276 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25277 | SWIG_fail; | |
d14a1e28 | 25278 | if (arg3 == NULL) { |
2f4c0a16 RD |
25279 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25280 | SWIG_fail; | |
d14a1e28 RD |
25281 | } |
25282 | { | |
25283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25284 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
25285 | ||
25286 | wxPyEndAllowThreads(__tstate); | |
25287 | if (PyErr_Occurred()) SWIG_fail; | |
25288 | } | |
25289 | Py_INCREF(Py_None); resultobj = Py_None; | |
25290 | return resultobj; | |
25291 | fail: | |
25292 | return NULL; | |
25293 | } | |
25294 | ||
25295 | ||
25296 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25297 | PyObject *resultobj; | |
25298 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25299 | wxTreeItemId *arg2 = 0 ; | |
25300 | bool result; | |
25301 | PyObject * obj0 = 0 ; | |
25302 | PyObject * obj1 = 0 ; | |
25303 | char *kwnames[] = { | |
25304 | (char *) "self",(char *) "item", NULL | |
25305 | }; | |
25306 | ||
25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25310 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25311 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25312 | SWIG_fail; | |
d14a1e28 | 25313 | if (arg2 == NULL) { |
2f4c0a16 RD |
25314 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25315 | SWIG_fail; | |
d14a1e28 RD |
25316 | } |
25317 | { | |
25318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25319 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
25320 | ||
25321 | wxPyEndAllowThreads(__tstate); | |
25322 | if (PyErr_Occurred()) SWIG_fail; | |
25323 | } | |
4f89f6a3 RD |
25324 | { |
25325 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25326 | } | |
d14a1e28 RD |
25327 | return resultobj; |
25328 | fail: | |
25329 | return NULL; | |
25330 | } | |
25331 | ||
25332 | ||
25333 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25334 | PyObject *resultobj; | |
25335 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25336 | wxTreeItemId *arg2 = 0 ; | |
25337 | bool result; | |
25338 | PyObject * obj0 = 0 ; | |
25339 | PyObject * obj1 = 0 ; | |
25340 | char *kwnames[] = { | |
25341 | (char *) "self",(char *) "item", NULL | |
25342 | }; | |
25343 | ||
25344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25347 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25348 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25349 | SWIG_fail; | |
d14a1e28 | 25350 | if (arg2 == NULL) { |
2f4c0a16 RD |
25351 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25352 | SWIG_fail; | |
d14a1e28 RD |
25353 | } |
25354 | { | |
25355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25356 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
25357 | ||
25358 | wxPyEndAllowThreads(__tstate); | |
25359 | if (PyErr_Occurred()) SWIG_fail; | |
25360 | } | |
4f89f6a3 RD |
25361 | { |
25362 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25363 | } | |
d14a1e28 RD |
25364 | return resultobj; |
25365 | fail: | |
25366 | return NULL; | |
25367 | } | |
25368 | ||
25369 | ||
25370 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25371 | PyObject *resultobj; | |
25372 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25373 | wxTreeItemId *arg2 = 0 ; | |
25374 | bool result; | |
25375 | PyObject * obj0 = 0 ; | |
25376 | PyObject * obj1 = 0 ; | |
25377 | char *kwnames[] = { | |
25378 | (char *) "self",(char *) "item", NULL | |
25379 | }; | |
25380 | ||
25381 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25382 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25383 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25384 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25385 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25386 | SWIG_fail; | |
d14a1e28 | 25387 | if (arg2 == NULL) { |
2f4c0a16 RD |
25388 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25389 | SWIG_fail; | |
d14a1e28 RD |
25390 | } |
25391 | { | |
25392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25393 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
25394 | ||
25395 | wxPyEndAllowThreads(__tstate); | |
25396 | if (PyErr_Occurred()) SWIG_fail; | |
25397 | } | |
4f89f6a3 RD |
25398 | { |
25399 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25400 | } | |
d14a1e28 RD |
25401 | return resultobj; |
25402 | fail: | |
25403 | return NULL; | |
25404 | } | |
25405 | ||
25406 | ||
25407 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25408 | PyObject *resultobj; | |
25409 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25410 | wxTreeItemId *arg2 = 0 ; | |
25411 | bool result; | |
25412 | PyObject * obj0 = 0 ; | |
25413 | PyObject * obj1 = 0 ; | |
25414 | char *kwnames[] = { | |
25415 | (char *) "self",(char *) "item", NULL | |
25416 | }; | |
25417 | ||
25418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25421 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25422 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25423 | SWIG_fail; | |
d14a1e28 | 25424 | if (arg2 == NULL) { |
2f4c0a16 RD |
25425 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25426 | SWIG_fail; | |
d14a1e28 RD |
25427 | } |
25428 | { | |
25429 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25430 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
25431 | ||
25432 | wxPyEndAllowThreads(__tstate); | |
25433 | if (PyErr_Occurred()) SWIG_fail; | |
25434 | } | |
4f89f6a3 RD |
25435 | { |
25436 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25437 | } | |
d14a1e28 RD |
25438 | return resultobj; |
25439 | fail: | |
25440 | return NULL; | |
25441 | } | |
25442 | ||
25443 | ||
25444 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25445 | PyObject *resultobj; | |
25446 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25447 | wxTreeItemId *arg2 = 0 ; | |
25448 | bool result; | |
25449 | PyObject * obj0 = 0 ; | |
25450 | PyObject * obj1 = 0 ; | |
25451 | char *kwnames[] = { | |
25452 | (char *) "self",(char *) "item", NULL | |
25453 | }; | |
25454 | ||
25455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25458 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25459 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25460 | SWIG_fail; | |
d14a1e28 | 25461 | if (arg2 == NULL) { |
2f4c0a16 RD |
25462 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25463 | SWIG_fail; | |
d14a1e28 RD |
25464 | } |
25465 | { | |
25466 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25467 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
25468 | ||
25469 | wxPyEndAllowThreads(__tstate); | |
25470 | if (PyErr_Occurred()) SWIG_fail; | |
25471 | } | |
4f89f6a3 RD |
25472 | { |
25473 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25474 | } | |
d14a1e28 RD |
25475 | return resultobj; |
25476 | fail: | |
25477 | return NULL; | |
25478 | } | |
25479 | ||
25480 | ||
25481 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25482 | PyObject *resultobj; | |
25483 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25484 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 25485 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25486 | size_t result; |
25487 | PyObject * obj0 = 0 ; | |
25488 | PyObject * obj1 = 0 ; | |
25489 | PyObject * obj2 = 0 ; | |
25490 | char *kwnames[] = { | |
25491 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
25492 | }; | |
25493 | ||
25494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25497 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25498 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25499 | SWIG_fail; | |
d14a1e28 | 25500 | if (arg2 == NULL) { |
2f4c0a16 RD |
25501 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25502 | SWIG_fail; | |
d14a1e28 RD |
25503 | } |
25504 | if (obj2) { | |
2f4c0a16 RD |
25505 | arg3 = (bool) SWIG_AsBool(obj2); |
25506 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25507 | } |
25508 | { | |
25509 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25510 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
25511 | ||
25512 | wxPyEndAllowThreads(__tstate); | |
25513 | if (PyErr_Occurred()) SWIG_fail; | |
25514 | } | |
2f4c0a16 | 25515 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25516 | return resultobj; |
25517 | fail: | |
25518 | return NULL; | |
25519 | } | |
25520 | ||
25521 | ||
25522 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25523 | PyObject *resultobj; | |
25524 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25525 | wxTreeItemId result; | |
25526 | PyObject * obj0 = 0 ; | |
25527 | char *kwnames[] = { | |
25528 | (char *) "self", NULL | |
25529 | }; | |
25530 | ||
25531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25534 | { |
25535 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25536 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
25537 | ||
25538 | wxPyEndAllowThreads(__tstate); | |
25539 | if (PyErr_Occurred()) SWIG_fail; | |
25540 | } | |
25541 | { | |
25542 | wxTreeItemId * resultptr; | |
25543 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25544 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25545 | } |
25546 | return resultobj; | |
25547 | fail: | |
25548 | return NULL; | |
25549 | } | |
25550 | ||
25551 | ||
25552 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25553 | PyObject *resultobj; | |
25554 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25555 | wxTreeItemId result; | |
25556 | PyObject * obj0 = 0 ; | |
25557 | char *kwnames[] = { | |
25558 | (char *) "self", NULL | |
25559 | }; | |
25560 | ||
25561 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25562 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25563 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25564 | { |
25565 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25566 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
25567 | ||
25568 | wxPyEndAllowThreads(__tstate); | |
25569 | if (PyErr_Occurred()) SWIG_fail; | |
25570 | } | |
25571 | { | |
25572 | wxTreeItemId * resultptr; | |
25573 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25574 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25575 | } |
25576 | return resultobj; | |
25577 | fail: | |
25578 | return NULL; | |
25579 | } | |
25580 | ||
25581 | ||
25582 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25583 | PyObject *resultobj; | |
25584 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25585 | PyObject *result; | |
25586 | PyObject * obj0 = 0 ; | |
25587 | char *kwnames[] = { | |
25588 | (char *) "self", NULL | |
25589 | }; | |
25590 | ||
25591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25594 | { |
25595 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25596 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
25597 | ||
25598 | wxPyEndAllowThreads(__tstate); | |
25599 | if (PyErr_Occurred()) SWIG_fail; | |
25600 | } | |
25601 | resultobj = result; | |
25602 | return resultobj; | |
25603 | fail: | |
25604 | return NULL; | |
25605 | } | |
25606 | ||
25607 | ||
25608 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25609 | PyObject *resultobj; | |
25610 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25611 | wxTreeItemId *arg2 = 0 ; | |
25612 | wxTreeItemId result; | |
25613 | PyObject * obj0 = 0 ; | |
25614 | PyObject * obj1 = 0 ; | |
25615 | char *kwnames[] = { | |
25616 | (char *) "self",(char *) "item", NULL | |
25617 | }; | |
25618 | ||
25619 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25620 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25621 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25622 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25623 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25624 | SWIG_fail; | |
d14a1e28 | 25625 | if (arg2 == NULL) { |
2f4c0a16 RD |
25626 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25627 | SWIG_fail; | |
d14a1e28 RD |
25628 | } |
25629 | { | |
25630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25631 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
25632 | ||
25633 | wxPyEndAllowThreads(__tstate); | |
25634 | if (PyErr_Occurred()) SWIG_fail; | |
25635 | } | |
25636 | { | |
25637 | wxTreeItemId * resultptr; | |
25638 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25639 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25640 | } |
25641 | return resultobj; | |
25642 | fail: | |
25643 | return NULL; | |
25644 | } | |
25645 | ||
25646 | ||
25647 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25648 | PyObject *resultobj; | |
25649 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25650 | wxTreeItemId *arg2 = 0 ; | |
25651 | PyObject *result; | |
25652 | PyObject * obj0 = 0 ; | |
25653 | PyObject * obj1 = 0 ; | |
25654 | char *kwnames[] = { | |
25655 | (char *) "self",(char *) "item", NULL | |
25656 | }; | |
25657 | ||
25658 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25659 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25660 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25661 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25662 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25663 | SWIG_fail; | |
d14a1e28 | 25664 | if (arg2 == NULL) { |
2f4c0a16 RD |
25665 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25666 | SWIG_fail; | |
d14a1e28 RD |
25667 | } |
25668 | { | |
25669 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25670 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
25671 | ||
25672 | wxPyEndAllowThreads(__tstate); | |
25673 | if (PyErr_Occurred()) SWIG_fail; | |
25674 | } | |
25675 | resultobj = result; | |
25676 | return resultobj; | |
25677 | fail: | |
25678 | return NULL; | |
25679 | } | |
25680 | ||
25681 | ||
25682 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25683 | PyObject *resultobj; | |
25684 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25685 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 25686 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
25687 | PyObject *result; |
25688 | PyObject * obj0 = 0 ; | |
25689 | PyObject * obj1 = 0 ; | |
25690 | PyObject * obj2 = 0 ; | |
25691 | char *kwnames[] = { | |
25692 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
25693 | }; | |
25694 | ||
25695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
25696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25697 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25698 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25699 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25700 | SWIG_fail; | |
d14a1e28 | 25701 | if (arg2 == NULL) { |
2f4c0a16 RD |
25702 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25703 | SWIG_fail; | |
d14a1e28 | 25704 | } |
2f4c0a16 | 25705 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
25706 | { |
25707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 25708 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
25709 | |
25710 | wxPyEndAllowThreads(__tstate); | |
25711 | if (PyErr_Occurred()) SWIG_fail; | |
25712 | } | |
25713 | resultobj = result; | |
25714 | return resultobj; | |
25715 | fail: | |
25716 | return NULL; | |
25717 | } | |
25718 | ||
25719 | ||
25720 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25721 | PyObject *resultobj; | |
25722 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25723 | wxTreeItemId *arg2 = 0 ; | |
25724 | wxTreeItemId result; | |
25725 | PyObject * obj0 = 0 ; | |
25726 | PyObject * obj1 = 0 ; | |
25727 | char *kwnames[] = { | |
25728 | (char *) "self",(char *) "item", NULL | |
25729 | }; | |
25730 | ||
25731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25734 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25735 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25736 | SWIG_fail; | |
d14a1e28 | 25737 | if (arg2 == NULL) { |
2f4c0a16 RD |
25738 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25739 | SWIG_fail; | |
d14a1e28 RD |
25740 | } |
25741 | { | |
25742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25743 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
25744 | ||
25745 | wxPyEndAllowThreads(__tstate); | |
25746 | if (PyErr_Occurred()) SWIG_fail; | |
25747 | } | |
25748 | { | |
25749 | wxTreeItemId * resultptr; | |
25750 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25751 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25752 | } |
25753 | return resultobj; | |
25754 | fail: | |
25755 | return NULL; | |
25756 | } | |
25757 | ||
25758 | ||
25759 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25760 | PyObject *resultobj; | |
25761 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25762 | wxTreeItemId *arg2 = 0 ; | |
25763 | wxTreeItemId result; | |
25764 | PyObject * obj0 = 0 ; | |
25765 | PyObject * obj1 = 0 ; | |
25766 | char *kwnames[] = { | |
25767 | (char *) "self",(char *) "item", NULL | |
25768 | }; | |
25769 | ||
25770 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25771 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25772 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25773 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25774 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25775 | SWIG_fail; | |
d14a1e28 | 25776 | if (arg2 == NULL) { |
2f4c0a16 RD |
25777 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25778 | SWIG_fail; | |
d14a1e28 RD |
25779 | } |
25780 | { | |
25781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25782 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
25783 | ||
25784 | wxPyEndAllowThreads(__tstate); | |
25785 | if (PyErr_Occurred()) SWIG_fail; | |
25786 | } | |
25787 | { | |
25788 | wxTreeItemId * resultptr; | |
25789 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25790 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25791 | } |
25792 | return resultobj; | |
25793 | fail: | |
25794 | return NULL; | |
25795 | } | |
25796 | ||
25797 | ||
25798 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25799 | PyObject *resultobj; | |
25800 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25801 | wxTreeItemId *arg2 = 0 ; | |
25802 | wxTreeItemId result; | |
25803 | PyObject * obj0 = 0 ; | |
25804 | PyObject * obj1 = 0 ; | |
25805 | char *kwnames[] = { | |
25806 | (char *) "self",(char *) "item", NULL | |
25807 | }; | |
25808 | ||
25809 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25810 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25811 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25812 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25813 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25814 | SWIG_fail; | |
d14a1e28 | 25815 | if (arg2 == NULL) { |
2f4c0a16 RD |
25816 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25817 | SWIG_fail; | |
d14a1e28 RD |
25818 | } |
25819 | { | |
25820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25821 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
25822 | ||
25823 | wxPyEndAllowThreads(__tstate); | |
25824 | if (PyErr_Occurred()) SWIG_fail; | |
25825 | } | |
25826 | { | |
25827 | wxTreeItemId * resultptr; | |
25828 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25829 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25830 | } |
25831 | return resultobj; | |
25832 | fail: | |
25833 | return NULL; | |
25834 | } | |
25835 | ||
25836 | ||
25837 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25838 | PyObject *resultobj; | |
25839 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25840 | wxTreeItemId result; | |
25841 | PyObject * obj0 = 0 ; | |
25842 | char *kwnames[] = { | |
25843 | (char *) "self", NULL | |
25844 | }; | |
25845 | ||
25846 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
25847 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25849 | { |
25850 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25851 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
25852 | ||
25853 | wxPyEndAllowThreads(__tstate); | |
25854 | if (PyErr_Occurred()) SWIG_fail; | |
25855 | } | |
25856 | { | |
25857 | wxTreeItemId * resultptr; | |
25858 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25859 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25860 | } |
25861 | return resultobj; | |
25862 | fail: | |
25863 | return NULL; | |
25864 | } | |
25865 | ||
25866 | ||
25867 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25868 | PyObject *resultobj; | |
25869 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25870 | wxTreeItemId *arg2 = 0 ; | |
25871 | wxTreeItemId result; | |
25872 | PyObject * obj0 = 0 ; | |
25873 | PyObject * obj1 = 0 ; | |
25874 | char *kwnames[] = { | |
25875 | (char *) "self",(char *) "item", NULL | |
25876 | }; | |
25877 | ||
25878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25881 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25882 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25883 | SWIG_fail; | |
d14a1e28 | 25884 | if (arg2 == NULL) { |
2f4c0a16 RD |
25885 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25886 | SWIG_fail; | |
d14a1e28 RD |
25887 | } |
25888 | { | |
25889 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25890 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
25891 | ||
25892 | wxPyEndAllowThreads(__tstate); | |
25893 | if (PyErr_Occurred()) SWIG_fail; | |
25894 | } | |
25895 | { | |
25896 | wxTreeItemId * resultptr; | |
25897 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25898 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25899 | } |
25900 | return resultobj; | |
25901 | fail: | |
25902 | return NULL; | |
25903 | } | |
25904 | ||
25905 | ||
25906 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25907 | PyObject *resultobj; | |
25908 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25909 | wxTreeItemId *arg2 = 0 ; | |
25910 | wxTreeItemId result; | |
25911 | PyObject * obj0 = 0 ; | |
25912 | PyObject * obj1 = 0 ; | |
25913 | char *kwnames[] = { | |
25914 | (char *) "self",(char *) "item", NULL | |
25915 | }; | |
25916 | ||
25917 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
25918 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25919 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25920 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25921 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25922 | SWIG_fail; | |
d14a1e28 | 25923 | if (arg2 == NULL) { |
2f4c0a16 RD |
25924 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25925 | SWIG_fail; | |
d14a1e28 RD |
25926 | } |
25927 | { | |
25928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25929 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
25930 | ||
25931 | wxPyEndAllowThreads(__tstate); | |
25932 | if (PyErr_Occurred()) SWIG_fail; | |
25933 | } | |
25934 | { | |
25935 | wxTreeItemId * resultptr; | |
25936 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25938 | } |
25939 | return resultobj; | |
25940 | fail: | |
25941 | return NULL; | |
25942 | } | |
25943 | ||
25944 | ||
25945 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25946 | PyObject *resultobj; | |
25947 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25948 | wxString *arg2 = 0 ; | |
25949 | int arg3 = (int) -1 ; | |
25950 | int arg4 = (int) -1 ; | |
25951 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
25952 | wxTreeItemId result; | |
423f194a | 25953 | bool temp2 = False ; |
d14a1e28 RD |
25954 | PyObject * obj0 = 0 ; |
25955 | PyObject * obj1 = 0 ; | |
8edf1c75 RD |
25956 | PyObject * obj2 = 0 ; |
25957 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25958 | PyObject * obj4 = 0 ; |
25959 | char *kwnames[] = { | |
25960 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
25961 | }; | |
25962 | ||
8edf1c75 | 25963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
25964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25966 | { |
25967 | arg2 = wxString_in_helper(obj1); | |
25968 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 25969 | temp2 = True; |
d14a1e28 | 25970 | } |
8edf1c75 | 25971 | if (obj2) { |
2f4c0a16 RD |
25972 | arg3 = (int) SWIG_AsInt(obj2); |
25973 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
25974 | } |
25975 | if (obj3) { | |
2f4c0a16 RD |
25976 | arg4 = (int) SWIG_AsInt(obj3); |
25977 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 25978 | } |
d14a1e28 | 25979 | if (obj4) { |
2f4c0a16 RD |
25980 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
25981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25982 | } |
25983 | { | |
25984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25985 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
25986 | ||
25987 | wxPyEndAllowThreads(__tstate); | |
25988 | if (PyErr_Occurred()) SWIG_fail; | |
25989 | } | |
25990 | { | |
25991 | wxTreeItemId * resultptr; | |
25992 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 25993 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
25994 | } |
25995 | { | |
25996 | if (temp2) | |
25997 | delete arg2; | |
25998 | } | |
25999 | return resultobj; | |
26000 | fail: | |
26001 | { | |
26002 | if (temp2) | |
26003 | delete arg2; | |
26004 | } | |
26005 | return NULL; | |
26006 | } | |
26007 | ||
26008 | ||
26009 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26010 | PyObject *resultobj; | |
26011 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26012 | wxTreeItemId *arg2 = 0 ; | |
26013 | wxString *arg3 = 0 ; | |
26014 | int arg4 = (int) -1 ; | |
26015 | int arg5 = (int) -1 ; | |
26016 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26017 | wxTreeItemId result; | |
423f194a | 26018 | bool temp3 = False ; |
d14a1e28 RD |
26019 | PyObject * obj0 = 0 ; |
26020 | PyObject * obj1 = 0 ; | |
26021 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26022 | PyObject * obj3 = 0 ; |
26023 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26024 | PyObject * obj5 = 0 ; |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26027 | }; | |
26028 | ||
8edf1c75 | 26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26032 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26033 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26034 | SWIG_fail; | |
d14a1e28 | 26035 | if (arg2 == NULL) { |
2f4c0a16 RD |
26036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26037 | SWIG_fail; | |
d14a1e28 RD |
26038 | } |
26039 | { | |
26040 | arg3 = wxString_in_helper(obj2); | |
26041 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26042 | temp3 = True; |
d14a1e28 | 26043 | } |
8edf1c75 | 26044 | if (obj3) { |
2f4c0a16 RD |
26045 | arg4 = (int) SWIG_AsInt(obj3); |
26046 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26047 | } |
26048 | if (obj4) { | |
2f4c0a16 RD |
26049 | arg5 = (int) SWIG_AsInt(obj4); |
26050 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26051 | } |
d14a1e28 | 26052 | if (obj5) { |
2f4c0a16 RD |
26053 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26055 | } |
26056 | { | |
26057 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26058 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26059 | ||
26060 | wxPyEndAllowThreads(__tstate); | |
26061 | if (PyErr_Occurred()) SWIG_fail; | |
26062 | } | |
26063 | { | |
26064 | wxTreeItemId * resultptr; | |
26065 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26066 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26067 | } |
26068 | { | |
26069 | if (temp3) | |
26070 | delete arg3; | |
26071 | } | |
26072 | return resultobj; | |
26073 | fail: | |
26074 | { | |
26075 | if (temp3) | |
26076 | delete arg3; | |
26077 | } | |
26078 | return NULL; | |
26079 | } | |
26080 | ||
26081 | ||
26082 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26083 | PyObject *resultobj; | |
26084 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26085 | wxTreeItemId *arg2 = 0 ; | |
26086 | wxTreeItemId *arg3 = 0 ; | |
26087 | wxString *arg4 = 0 ; | |
26088 | int arg5 = (int) -1 ; | |
26089 | int arg6 = (int) -1 ; | |
26090 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26091 | wxTreeItemId result; | |
423f194a | 26092 | bool temp4 = False ; |
d14a1e28 RD |
26093 | PyObject * obj0 = 0 ; |
26094 | PyObject * obj1 = 0 ; | |
26095 | PyObject * obj2 = 0 ; | |
26096 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26097 | PyObject * obj4 = 0 ; |
26098 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26099 | PyObject * obj6 = 0 ; |
26100 | char *kwnames[] = { | |
26101 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26102 | }; | |
26103 | ||
8edf1c75 | 26104 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26105 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26106 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26107 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26108 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26109 | SWIG_fail; | |
d14a1e28 | 26110 | if (arg2 == NULL) { |
2f4c0a16 RD |
26111 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26112 | SWIG_fail; | |
d14a1e28 | 26113 | } |
2f4c0a16 RD |
26114 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26116 | SWIG_fail; | |
d14a1e28 | 26117 | if (arg3 == NULL) { |
2f4c0a16 RD |
26118 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26119 | SWIG_fail; | |
d14a1e28 RD |
26120 | } |
26121 | { | |
26122 | arg4 = wxString_in_helper(obj3); | |
26123 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26124 | temp4 = True; |
d14a1e28 | 26125 | } |
8edf1c75 | 26126 | if (obj4) { |
2f4c0a16 RD |
26127 | arg5 = (int) SWIG_AsInt(obj4); |
26128 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26129 | } |
26130 | if (obj5) { | |
2f4c0a16 RD |
26131 | arg6 = (int) SWIG_AsInt(obj5); |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26133 | } |
d14a1e28 | 26134 | if (obj6) { |
2f4c0a16 RD |
26135 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26137 | } |
26138 | { | |
26139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26140 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26141 | ||
26142 | wxPyEndAllowThreads(__tstate); | |
26143 | if (PyErr_Occurred()) SWIG_fail; | |
26144 | } | |
26145 | { | |
26146 | wxTreeItemId * resultptr; | |
26147 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26148 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26149 | } |
26150 | { | |
26151 | if (temp4) | |
26152 | delete arg4; | |
26153 | } | |
26154 | return resultobj; | |
26155 | fail: | |
26156 | { | |
26157 | if (temp4) | |
26158 | delete arg4; | |
26159 | } | |
26160 | return NULL; | |
26161 | } | |
26162 | ||
26163 | ||
26164 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26165 | PyObject *resultobj; | |
26166 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26167 | wxTreeItemId *arg2 = 0 ; | |
26168 | size_t arg3 ; | |
26169 | wxString *arg4 = 0 ; | |
26170 | int arg5 = (int) -1 ; | |
26171 | int arg6 = (int) -1 ; | |
26172 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26173 | wxTreeItemId result; | |
423f194a | 26174 | bool temp4 = False ; |
d14a1e28 RD |
26175 | PyObject * obj0 = 0 ; |
26176 | PyObject * obj1 = 0 ; | |
26177 | PyObject * obj2 = 0 ; | |
26178 | PyObject * obj3 = 0 ; | |
8edf1c75 RD |
26179 | PyObject * obj4 = 0 ; |
26180 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26181 | PyObject * obj6 = 0 ; |
26182 | char *kwnames[] = { | |
26183 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26184 | }; | |
26185 | ||
8edf1c75 | 26186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
26187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26189 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26190 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26191 | SWIG_fail; | |
d14a1e28 | 26192 | if (arg2 == NULL) { |
2f4c0a16 RD |
26193 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26194 | SWIG_fail; | |
83448d71 | 26195 | } |
2f4c0a16 RD |
26196 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
26197 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26198 | { |
26199 | arg4 = wxString_in_helper(obj3); | |
26200 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 26201 | temp4 = True; |
d14a1e28 | 26202 | } |
8edf1c75 | 26203 | if (obj4) { |
2f4c0a16 RD |
26204 | arg5 = (int) SWIG_AsInt(obj4); |
26205 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26206 | } |
26207 | if (obj5) { | |
2f4c0a16 RD |
26208 | arg6 = (int) SWIG_AsInt(obj5); |
26209 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26210 | } |
d14a1e28 | 26211 | if (obj6) { |
2f4c0a16 RD |
26212 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26214 | } |
26215 | { | |
26216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26217 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26218 | ||
26219 | wxPyEndAllowThreads(__tstate); | |
26220 | if (PyErr_Occurred()) SWIG_fail; | |
26221 | } | |
26222 | { | |
26223 | wxTreeItemId * resultptr; | |
26224 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26225 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26226 | } |
26227 | { | |
26228 | if (temp4) | |
26229 | delete arg4; | |
26230 | } | |
26231 | return resultobj; | |
26232 | fail: | |
26233 | { | |
26234 | if (temp4) | |
26235 | delete arg4; | |
26236 | } | |
26237 | return NULL; | |
26238 | } | |
26239 | ||
26240 | ||
26241 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26242 | PyObject *resultobj; | |
26243 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26244 | wxTreeItemId *arg2 = 0 ; | |
26245 | wxString *arg3 = 0 ; | |
26246 | int arg4 = (int) -1 ; | |
26247 | int arg5 = (int) -1 ; | |
26248 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26249 | wxTreeItemId result; | |
423f194a | 26250 | bool temp3 = False ; |
d14a1e28 RD |
26251 | PyObject * obj0 = 0 ; |
26252 | PyObject * obj1 = 0 ; | |
26253 | PyObject * obj2 = 0 ; | |
8edf1c75 RD |
26254 | PyObject * obj3 = 0 ; |
26255 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26256 | PyObject * obj5 = 0 ; |
26257 | char *kwnames[] = { | |
26258 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26259 | }; | |
26260 | ||
8edf1c75 | 26261 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
26262 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26263 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26264 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26265 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26266 | SWIG_fail; | |
d14a1e28 | 26267 | if (arg2 == NULL) { |
2f4c0a16 RD |
26268 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26269 | SWIG_fail; | |
d14a1e28 RD |
26270 | } |
26271 | { | |
26272 | arg3 = wxString_in_helper(obj2); | |
26273 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 26274 | temp3 = True; |
d14a1e28 | 26275 | } |
8edf1c75 | 26276 | if (obj3) { |
2f4c0a16 RD |
26277 | arg4 = (int) SWIG_AsInt(obj3); |
26278 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
26279 | } |
26280 | if (obj4) { | |
2f4c0a16 RD |
26281 | arg5 = (int) SWIG_AsInt(obj4); |
26282 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 26283 | } |
d14a1e28 | 26284 | if (obj5) { |
2f4c0a16 RD |
26285 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26286 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26287 | } |
26288 | { | |
26289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26290 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26291 | ||
26292 | wxPyEndAllowThreads(__tstate); | |
26293 | if (PyErr_Occurred()) SWIG_fail; | |
26294 | } | |
26295 | { | |
26296 | wxTreeItemId * resultptr; | |
26297 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26298 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26299 | } |
26300 | { | |
26301 | if (temp3) | |
26302 | delete arg3; | |
26303 | } | |
26304 | return resultobj; | |
26305 | fail: | |
26306 | { | |
26307 | if (temp3) | |
26308 | delete arg3; | |
26309 | } | |
26310 | return NULL; | |
26311 | } | |
26312 | ||
26313 | ||
26314 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26315 | PyObject *resultobj; | |
26316 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26317 | wxTreeItemId *arg2 = 0 ; | |
26318 | PyObject * obj0 = 0 ; | |
26319 | PyObject * obj1 = 0 ; | |
26320 | char *kwnames[] = { | |
26321 | (char *) "self",(char *) "item", NULL | |
26322 | }; | |
26323 | ||
26324 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26325 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26326 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26327 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26328 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26329 | SWIG_fail; | |
d14a1e28 | 26330 | if (arg2 == NULL) { |
2f4c0a16 RD |
26331 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26332 | SWIG_fail; | |
d14a1e28 RD |
26333 | } |
26334 | { | |
26335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26336 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
26337 | ||
26338 | wxPyEndAllowThreads(__tstate); | |
26339 | if (PyErr_Occurred()) SWIG_fail; | |
26340 | } | |
26341 | Py_INCREF(Py_None); resultobj = Py_None; | |
26342 | return resultobj; | |
26343 | fail: | |
26344 | return NULL; | |
26345 | } | |
26346 | ||
26347 | ||
26348 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26349 | PyObject *resultobj; | |
26350 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26351 | wxTreeItemId *arg2 = 0 ; | |
26352 | PyObject * obj0 = 0 ; | |
26353 | PyObject * obj1 = 0 ; | |
26354 | char *kwnames[] = { | |
26355 | (char *) "self",(char *) "item", NULL | |
26356 | }; | |
26357 | ||
26358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26361 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26362 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26363 | SWIG_fail; | |
d14a1e28 | 26364 | if (arg2 == NULL) { |
2f4c0a16 RD |
26365 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26366 | SWIG_fail; | |
d14a1e28 RD |
26367 | } |
26368 | { | |
26369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26370 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
26371 | ||
26372 | wxPyEndAllowThreads(__tstate); | |
26373 | if (PyErr_Occurred()) SWIG_fail; | |
26374 | } | |
26375 | Py_INCREF(Py_None); resultobj = Py_None; | |
26376 | return resultobj; | |
26377 | fail: | |
26378 | return NULL; | |
26379 | } | |
26380 | ||
26381 | ||
26382 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26383 | PyObject *resultobj; | |
26384 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26385 | PyObject * obj0 = 0 ; | |
26386 | char *kwnames[] = { | |
26387 | (char *) "self", NULL | |
26388 | }; | |
26389 | ||
26390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26393 | { |
26394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26395 | (arg1)->DeleteAllItems(); | |
26396 | ||
26397 | wxPyEndAllowThreads(__tstate); | |
26398 | if (PyErr_Occurred()) SWIG_fail; | |
26399 | } | |
26400 | Py_INCREF(Py_None); resultobj = Py_None; | |
26401 | return resultobj; | |
26402 | fail: | |
26403 | return NULL; | |
26404 | } | |
26405 | ||
26406 | ||
26407 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26408 | PyObject *resultobj; | |
26409 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26410 | wxTreeItemId *arg2 = 0 ; | |
26411 | PyObject * obj0 = 0 ; | |
26412 | PyObject * obj1 = 0 ; | |
26413 | char *kwnames[] = { | |
26414 | (char *) "self",(char *) "item", NULL | |
26415 | }; | |
26416 | ||
26417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26420 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26421 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26422 | SWIG_fail; | |
d14a1e28 | 26423 | if (arg2 == NULL) { |
2f4c0a16 RD |
26424 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26425 | SWIG_fail; | |
d14a1e28 RD |
26426 | } |
26427 | { | |
26428 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26429 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
26430 | ||
26431 | wxPyEndAllowThreads(__tstate); | |
26432 | if (PyErr_Occurred()) SWIG_fail; | |
26433 | } | |
26434 | Py_INCREF(Py_None); resultobj = Py_None; | |
26435 | return resultobj; | |
26436 | fail: | |
26437 | return NULL; | |
26438 | } | |
26439 | ||
26440 | ||
26441 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26442 | PyObject *resultobj; | |
26443 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26444 | wxTreeItemId *arg2 = 0 ; | |
26445 | PyObject * obj0 = 0 ; | |
26446 | PyObject * obj1 = 0 ; | |
26447 | char *kwnames[] = { | |
26448 | (char *) "self",(char *) "item", NULL | |
26449 | }; | |
26450 | ||
26451 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26452 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26453 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26454 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26455 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26456 | SWIG_fail; | |
d14a1e28 | 26457 | if (arg2 == NULL) { |
2f4c0a16 RD |
26458 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26459 | SWIG_fail; | |
d14a1e28 RD |
26460 | } |
26461 | { | |
26462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26463 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
26464 | ||
26465 | wxPyEndAllowThreads(__tstate); | |
26466 | if (PyErr_Occurred()) SWIG_fail; | |
26467 | } | |
26468 | Py_INCREF(Py_None); resultobj = Py_None; | |
26469 | return resultobj; | |
26470 | fail: | |
26471 | return NULL; | |
26472 | } | |
26473 | ||
26474 | ||
26475 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26476 | PyObject *resultobj; | |
26477 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26478 | wxTreeItemId *arg2 = 0 ; | |
26479 | PyObject * obj0 = 0 ; | |
26480 | PyObject * obj1 = 0 ; | |
26481 | char *kwnames[] = { | |
26482 | (char *) "self",(char *) "item", NULL | |
26483 | }; | |
26484 | ||
26485 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26486 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26487 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26488 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26489 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26490 | SWIG_fail; | |
d14a1e28 | 26491 | if (arg2 == NULL) { |
2f4c0a16 RD |
26492 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26493 | SWIG_fail; | |
d14a1e28 RD |
26494 | } |
26495 | { | |
26496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26497 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
26498 | ||
26499 | wxPyEndAllowThreads(__tstate); | |
26500 | if (PyErr_Occurred()) SWIG_fail; | |
26501 | } | |
26502 | Py_INCREF(Py_None); resultobj = Py_None; | |
26503 | return resultobj; | |
26504 | fail: | |
26505 | return NULL; | |
26506 | } | |
26507 | ||
26508 | ||
26509 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26510 | PyObject *resultobj; | |
26511 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26512 | wxTreeItemId *arg2 = 0 ; | |
26513 | PyObject * obj0 = 0 ; | |
26514 | PyObject * obj1 = 0 ; | |
26515 | char *kwnames[] = { | |
26516 | (char *) "self",(char *) "item", NULL | |
26517 | }; | |
26518 | ||
26519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26522 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26523 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26524 | SWIG_fail; | |
d14a1e28 | 26525 | if (arg2 == NULL) { |
2f4c0a16 RD |
26526 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26527 | SWIG_fail; | |
d14a1e28 RD |
26528 | } |
26529 | { | |
26530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26531 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
26532 | ||
26533 | wxPyEndAllowThreads(__tstate); | |
26534 | if (PyErr_Occurred()) SWIG_fail; | |
26535 | } | |
26536 | Py_INCREF(Py_None); resultobj = Py_None; | |
26537 | return resultobj; | |
26538 | fail: | |
26539 | return NULL; | |
26540 | } | |
26541 | ||
26542 | ||
26543 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26544 | PyObject *resultobj; | |
26545 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26546 | PyObject * obj0 = 0 ; | |
26547 | char *kwnames[] = { | |
26548 | (char *) "self", NULL | |
26549 | }; | |
26550 | ||
26551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26554 | { |
26555 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26556 | (arg1)->Unselect(); | |
26557 | ||
26558 | wxPyEndAllowThreads(__tstate); | |
26559 | if (PyErr_Occurred()) SWIG_fail; | |
26560 | } | |
26561 | Py_INCREF(Py_None); resultobj = Py_None; | |
26562 | return resultobj; | |
26563 | fail: | |
26564 | return NULL; | |
26565 | } | |
26566 | ||
26567 | ||
db914595 RD |
26568 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
26569 | PyObject *resultobj; | |
26570 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26571 | wxTreeItemId *arg2 = 0 ; | |
26572 | PyObject * obj0 = 0 ; | |
26573 | PyObject * obj1 = 0 ; | |
26574 | char *kwnames[] = { | |
26575 | (char *) "self",(char *) "item", NULL | |
26576 | }; | |
26577 | ||
26578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26581 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26582 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26583 | SWIG_fail; | |
db914595 | 26584 | if (arg2 == NULL) { |
2f4c0a16 RD |
26585 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26586 | SWIG_fail; | |
db914595 RD |
26587 | } |
26588 | { | |
26589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26590 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
26591 | ||
26592 | wxPyEndAllowThreads(__tstate); | |
26593 | if (PyErr_Occurred()) SWIG_fail; | |
26594 | } | |
26595 | Py_INCREF(Py_None); resultobj = Py_None; | |
26596 | return resultobj; | |
26597 | fail: | |
26598 | return NULL; | |
26599 | } | |
26600 | ||
26601 | ||
d14a1e28 RD |
26602 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
26603 | PyObject *resultobj; | |
26604 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26605 | PyObject * obj0 = 0 ; | |
26606 | char *kwnames[] = { | |
26607 | (char *) "self", NULL | |
26608 | }; | |
26609 | ||
26610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26613 | { |
26614 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26615 | (arg1)->UnselectAll(); | |
26616 | ||
26617 | wxPyEndAllowThreads(__tstate); | |
26618 | if (PyErr_Occurred()) SWIG_fail; | |
26619 | } | |
26620 | Py_INCREF(Py_None); resultobj = Py_None; | |
26621 | return resultobj; | |
26622 | fail: | |
26623 | return NULL; | |
26624 | } | |
26625 | ||
26626 | ||
26627 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
db914595 RD |
26628 | PyObject *resultobj; |
26629 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26630 | wxTreeItemId *arg2 = 0 ; | |
26631 | bool arg3 = (bool) True ; | |
26632 | PyObject * obj0 = 0 ; | |
26633 | PyObject * obj1 = 0 ; | |
26634 | PyObject * obj2 = 0 ; | |
26635 | char *kwnames[] = { | |
26636 | (char *) "self",(char *) "item",(char *) "select", NULL | |
26637 | }; | |
26638 | ||
26639 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26640 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26641 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26642 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26643 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26644 | SWIG_fail; | |
db914595 | 26645 | if (arg2 == NULL) { |
2f4c0a16 RD |
26646 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26647 | SWIG_fail; | |
db914595 RD |
26648 | } |
26649 | if (obj2) { | |
2f4c0a16 RD |
26650 | arg3 = (bool) SWIG_AsBool(obj2); |
26651 | if (PyErr_Occurred()) SWIG_fail; | |
db914595 RD |
26652 | } |
26653 | { | |
26654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26655 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
26656 | ||
26657 | wxPyEndAllowThreads(__tstate); | |
26658 | if (PyErr_Occurred()) SWIG_fail; | |
26659 | } | |
26660 | Py_INCREF(Py_None); resultobj = Py_None; | |
26661 | return resultobj; | |
26662 | fail: | |
26663 | return NULL; | |
26664 | } | |
26665 | ||
26666 | ||
26667 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
26668 | PyObject *resultobj; |
26669 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26670 | wxTreeItemId *arg2 = 0 ; | |
26671 | PyObject * obj0 = 0 ; | |
26672 | PyObject * obj1 = 0 ; | |
26673 | char *kwnames[] = { | |
26674 | (char *) "self",(char *) "item", NULL | |
26675 | }; | |
26676 | ||
db914595 | 26677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
26678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26680 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26681 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26682 | SWIG_fail; | |
d14a1e28 | 26683 | if (arg2 == NULL) { |
2f4c0a16 RD |
26684 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26685 | SWIG_fail; | |
d14a1e28 RD |
26686 | } |
26687 | { | |
26688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db914595 | 26689 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
26690 | |
26691 | wxPyEndAllowThreads(__tstate); | |
26692 | if (PyErr_Occurred()) SWIG_fail; | |
26693 | } | |
26694 | Py_INCREF(Py_None); resultobj = Py_None; | |
26695 | return resultobj; | |
26696 | fail: | |
26697 | return NULL; | |
26698 | } | |
26699 | ||
26700 | ||
26701 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26702 | PyObject *resultobj; | |
26703 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26704 | wxTreeItemId *arg2 = 0 ; | |
26705 | PyObject * obj0 = 0 ; | |
26706 | PyObject * obj1 = 0 ; | |
26707 | char *kwnames[] = { | |
26708 | (char *) "self",(char *) "item", NULL | |
26709 | }; | |
26710 | ||
26711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26714 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26715 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26716 | SWIG_fail; | |
d14a1e28 | 26717 | if (arg2 == NULL) { |
2f4c0a16 RD |
26718 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26719 | SWIG_fail; | |
d14a1e28 RD |
26720 | } |
26721 | { | |
26722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26723 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
26724 | ||
26725 | wxPyEndAllowThreads(__tstate); | |
26726 | if (PyErr_Occurred()) SWIG_fail; | |
26727 | } | |
26728 | Py_INCREF(Py_None); resultobj = Py_None; | |
26729 | return resultobj; | |
26730 | fail: | |
26731 | return NULL; | |
26732 | } | |
26733 | ||
26734 | ||
26735 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26736 | PyObject *resultobj; | |
26737 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26738 | wxTreeItemId *arg2 = 0 ; | |
26739 | PyObject * obj0 = 0 ; | |
26740 | PyObject * obj1 = 0 ; | |
26741 | char *kwnames[] = { | |
26742 | (char *) "self",(char *) "item", NULL | |
26743 | }; | |
26744 | ||
26745 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26746 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26747 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26748 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26749 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26750 | SWIG_fail; | |
d14a1e28 | 26751 | if (arg2 == NULL) { |
2f4c0a16 RD |
26752 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26753 | SWIG_fail; | |
d14a1e28 RD |
26754 | } |
26755 | { | |
26756 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26757 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
26758 | ||
26759 | wxPyEndAllowThreads(__tstate); | |
26760 | if (PyErr_Occurred()) SWIG_fail; | |
26761 | } | |
26762 | Py_INCREF(Py_None); resultobj = Py_None; | |
26763 | return resultobj; | |
26764 | fail: | |
26765 | return NULL; | |
26766 | } | |
26767 | ||
26768 | ||
26769 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26770 | PyObject *resultobj; | |
26771 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26772 | wxTreeItemId *arg2 = 0 ; | |
26773 | PyObject * obj0 = 0 ; | |
26774 | PyObject * obj1 = 0 ; | |
26775 | char *kwnames[] = { | |
26776 | (char *) "self",(char *) "item", NULL | |
26777 | }; | |
26778 | ||
26779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26782 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26783 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26784 | SWIG_fail; | |
d14a1e28 | 26785 | if (arg2 == NULL) { |
2f4c0a16 RD |
26786 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26787 | SWIG_fail; | |
d14a1e28 RD |
26788 | } |
26789 | { | |
26790 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26791 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
26792 | ||
26793 | wxPyEndAllowThreads(__tstate); | |
26794 | if (PyErr_Occurred()) SWIG_fail; | |
26795 | } | |
26796 | Py_INCREF(Py_None); resultobj = Py_None; | |
26797 | return resultobj; | |
26798 | fail: | |
26799 | return NULL; | |
26800 | } | |
26801 | ||
26802 | ||
26803 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26804 | PyObject *resultobj; | |
26805 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26806 | wxTextCtrl *result; | |
26807 | PyObject * obj0 = 0 ; | |
26808 | char *kwnames[] = { | |
26809 | (char *) "self", NULL | |
26810 | }; | |
26811 | ||
26812 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
26813 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26814 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26815 | { |
26816 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26817 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
26818 | ||
26819 | wxPyEndAllowThreads(__tstate); | |
26820 | if (PyErr_Occurred()) SWIG_fail; | |
26821 | } | |
26822 | { | |
26823 | resultobj = wxPyMake_wxObject(result); | |
26824 | } | |
26825 | return resultobj; | |
26826 | fail: | |
26827 | return NULL; | |
26828 | } | |
26829 | ||
26830 | ||
26831 | static PyObject *_wrap_TreeCtrl_EndEditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26832 | PyObject *resultobj; | |
26833 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26834 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26835 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26836 | PyObject * obj0 = 0 ; |
26837 | PyObject * obj1 = 0 ; | |
26838 | PyObject * obj2 = 0 ; | |
26839 | char *kwnames[] = { | |
26840 | (char *) "self",(char *) "item",(char *) "discardChanges", NULL | |
26841 | }; | |
26842 | ||
26843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_EndEditLabel",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26846 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26847 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26848 | SWIG_fail; | |
d14a1e28 | 26849 | if (arg2 == NULL) { |
2f4c0a16 RD |
26850 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26851 | SWIG_fail; | |
d14a1e28 RD |
26852 | } |
26853 | if (obj2) { | |
2f4c0a16 RD |
26854 | arg3 = (bool) SWIG_AsBool(obj2); |
26855 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26856 | } |
26857 | { | |
26858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26859 | (arg1)->EndEditLabel((wxTreeItemId const &)*arg2,arg3); | |
26860 | ||
26861 | wxPyEndAllowThreads(__tstate); | |
26862 | if (PyErr_Occurred()) SWIG_fail; | |
26863 | } | |
26864 | Py_INCREF(Py_None); resultobj = Py_None; | |
26865 | return resultobj; | |
26866 | fail: | |
26867 | return NULL; | |
26868 | } | |
26869 | ||
26870 | ||
26871 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26872 | PyObject *resultobj; | |
26873 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26874 | wxTreeItemId *arg2 = 0 ; | |
26875 | PyObject * obj0 = 0 ; | |
26876 | PyObject * obj1 = 0 ; | |
26877 | char *kwnames[] = { | |
26878 | (char *) "self",(char *) "item", NULL | |
26879 | }; | |
26880 | ||
26881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26885 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26886 | SWIG_fail; | |
d14a1e28 | 26887 | if (arg2 == NULL) { |
2f4c0a16 RD |
26888 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26889 | SWIG_fail; | |
d14a1e28 RD |
26890 | } |
26891 | { | |
26892 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26893 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
26894 | ||
26895 | wxPyEndAllowThreads(__tstate); | |
26896 | if (PyErr_Occurred()) SWIG_fail; | |
26897 | } | |
26898 | Py_INCREF(Py_None); resultobj = Py_None; | |
26899 | return resultobj; | |
26900 | fail: | |
26901 | return NULL; | |
26902 | } | |
26903 | ||
26904 | ||
26905 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26906 | PyObject *resultobj; | |
26907 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26908 | wxPoint *arg2 = 0 ; | |
26909 | int *arg3 = 0 ; | |
26910 | wxTreeItemId result; | |
26911 | wxPoint temp2 ; | |
26912 | int temp3 ; | |
26913 | PyObject * obj0 = 0 ; | |
26914 | PyObject * obj1 = 0 ; | |
26915 | char *kwnames[] = { | |
26916 | (char *) "self",(char *) "point", NULL | |
26917 | }; | |
26918 | ||
26919 | arg3 = &temp3; | |
26920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
26921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26923 | { |
26924 | arg2 = &temp2; | |
26925 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
26926 | } | |
26927 | { | |
26928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26929 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
26930 | ||
26931 | wxPyEndAllowThreads(__tstate); | |
26932 | if (PyErr_Occurred()) SWIG_fail; | |
26933 | } | |
26934 | { | |
26935 | wxTreeItemId * resultptr; | |
26936 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 26937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26938 | } |
26939 | { | |
26940 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
26941 | resultobj = t_output_helper(resultobj,o); | |
26942 | } | |
26943 | return resultobj; | |
26944 | fail: | |
26945 | return NULL; | |
26946 | } | |
26947 | ||
26948 | ||
26949 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26950 | PyObject *resultobj; | |
26951 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26952 | wxTreeItemId *arg2 = 0 ; | |
423f194a | 26953 | bool arg3 = (bool) False ; |
d14a1e28 RD |
26954 | PyObject *result; |
26955 | PyObject * obj0 = 0 ; | |
26956 | PyObject * obj1 = 0 ; | |
26957 | PyObject * obj2 = 0 ; | |
26958 | char *kwnames[] = { | |
26959 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
26960 | }; | |
26961 | ||
26962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
26963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26965 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26966 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26967 | SWIG_fail; | |
d14a1e28 | 26968 | if (arg2 == NULL) { |
2f4c0a16 RD |
26969 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26970 | SWIG_fail; | |
d14a1e28 RD |
26971 | } |
26972 | if (obj2) { | |
2f4c0a16 RD |
26973 | arg3 = (bool) SWIG_AsBool(obj2); |
26974 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26975 | } |
26976 | { | |
26977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26978 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
26979 | ||
26980 | wxPyEndAllowThreads(__tstate); | |
26981 | if (PyErr_Occurred()) SWIG_fail; | |
26982 | } | |
26983 | resultobj = result; | |
26984 | return resultobj; | |
26985 | fail: | |
26986 | return NULL; | |
26987 | } | |
26988 | ||
26989 | ||
26990 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { | |
26991 | PyObject *obj; | |
26992 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
26993 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
26994 | Py_INCREF(obj); | |
26995 | return Py_BuildValue((char *)""); | |
26996 | } | |
2f4c0a16 | 26997 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
d03fd34d RD |
26998 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); |
26999 | return 1; | |
27000 | } | |
27001 | ||
27002 | ||
27003 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27004 | PyObject *pyobj; | |
27005 | ||
27006 | { | |
27007 | #if wxUSE_UNICODE | |
27008 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27009 | #else | |
27010 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27011 | #endif | |
27012 | } | |
27013 | return pyobj; | |
27014 | } | |
27015 | ||
27016 | ||
d14a1e28 RD |
27017 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27018 | PyObject *resultobj; | |
27019 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 27020 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27021 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27022 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27023 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27024 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27025 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27026 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27027 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27028 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27029 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27030 | int arg8 = (int) 0 ; | |
d03fd34d | 27031 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27032 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27033 | wxGenericDirCtrl *result; | |
423f194a | 27034 | bool temp3 = False ; |
d14a1e28 RD |
27035 | wxPoint temp4 ; |
27036 | wxSize temp5 ; | |
423f194a RD |
27037 | bool temp7 = False ; |
27038 | bool temp9 = False ; | |
d14a1e28 | 27039 | PyObject * obj0 = 0 ; |
8edf1c75 | 27040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27041 | PyObject * obj2 = 0 ; |
27042 | PyObject * obj3 = 0 ; | |
27043 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27044 | PyObject * obj5 = 0 ; |
d14a1e28 | 27045 | PyObject * obj6 = 0 ; |
8edf1c75 | 27046 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27047 | PyObject * obj8 = 0 ; |
27048 | char *kwnames[] = { | |
27049 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27050 | }; | |
27051 | ||
8edf1c75 | 27052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
2f4c0a16 RD |
27053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27055 | if (obj1) { |
2f4c0a16 RD |
27056 | arg2 = (int const) SWIG_AsInt(obj1); |
27057 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27058 | } |
d14a1e28 RD |
27059 | if (obj2) { |
27060 | { | |
27061 | arg3 = wxString_in_helper(obj2); | |
27062 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27063 | temp3 = True; |
d14a1e28 RD |
27064 | } |
27065 | } | |
27066 | if (obj3) { | |
27067 | { | |
27068 | arg4 = &temp4; | |
27069 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27070 | } | |
27071 | } | |
27072 | if (obj4) { | |
27073 | { | |
27074 | arg5 = &temp5; | |
27075 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27076 | } | |
27077 | } | |
8edf1c75 | 27078 | if (obj5) { |
2f4c0a16 RD |
27079 | arg6 = (long) SWIG_AsLong(obj5); |
27080 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27081 | } |
d14a1e28 RD |
27082 | if (obj6) { |
27083 | { | |
27084 | arg7 = wxString_in_helper(obj6); | |
27085 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 27086 | temp7 = True; |
d14a1e28 RD |
27087 | } |
27088 | } | |
8edf1c75 | 27089 | if (obj7) { |
2f4c0a16 RD |
27090 | arg8 = (int) SWIG_AsInt(obj7); |
27091 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27092 | } |
d14a1e28 RD |
27093 | if (obj8) { |
27094 | { | |
27095 | arg9 = wxString_in_helper(obj8); | |
27096 | if (arg9 == NULL) SWIG_fail; | |
423f194a | 27097 | temp9 = True; |
d14a1e28 RD |
27098 | } |
27099 | } | |
27100 | { | |
27101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27102 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27103 | ||
27104 | wxPyEndAllowThreads(__tstate); | |
27105 | if (PyErr_Occurred()) SWIG_fail; | |
27106 | } | |
2f4c0a16 | 27107 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27108 | { |
27109 | if (temp3) | |
27110 | delete arg3; | |
27111 | } | |
27112 | { | |
27113 | if (temp7) | |
27114 | delete arg7; | |
27115 | } | |
27116 | { | |
27117 | if (temp9) | |
27118 | delete arg9; | |
27119 | } | |
27120 | return resultobj; | |
27121 | fail: | |
27122 | { | |
27123 | if (temp3) | |
27124 | delete arg3; | |
27125 | } | |
27126 | { | |
27127 | if (temp7) | |
27128 | delete arg7; | |
27129 | } | |
27130 | { | |
27131 | if (temp9) | |
27132 | delete arg9; | |
27133 | } | |
27134 | return NULL; | |
27135 | } | |
27136 | ||
27137 | ||
27138 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27139 | PyObject *resultobj; | |
27140 | wxGenericDirCtrl *result; | |
27141 | char *kwnames[] = { | |
27142 | NULL | |
27143 | }; | |
27144 | ||
27145 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27146 | { | |
27147 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27148 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27149 | ||
27150 | wxPyEndAllowThreads(__tstate); | |
27151 | if (PyErr_Occurred()) SWIG_fail; | |
27152 | } | |
2f4c0a16 | 27153 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27154 | return resultobj; |
27155 | fail: | |
27156 | return NULL; | |
27157 | } | |
27158 | ||
27159 | ||
27160 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27161 | PyObject *resultobj; | |
27162 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27163 | wxWindow *arg2 = (wxWindow *) 0 ; | |
423f194a | 27164 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27165 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
27166 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
27167 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
27168 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
27169 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
27170 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
27171 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27172 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
27173 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
27174 | int arg9 = (int) 0 ; | |
d03fd34d | 27175 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27176 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
27177 | bool result; | |
423f194a | 27178 | bool temp4 = False ; |
d14a1e28 RD |
27179 | wxPoint temp5 ; |
27180 | wxSize temp6 ; | |
423f194a RD |
27181 | bool temp8 = False ; |
27182 | bool temp10 = False ; | |
d14a1e28 RD |
27183 | PyObject * obj0 = 0 ; |
27184 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27185 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27186 | PyObject * obj3 = 0 ; |
27187 | PyObject * obj4 = 0 ; | |
27188 | PyObject * obj5 = 0 ; | |
8edf1c75 | 27189 | PyObject * obj6 = 0 ; |
d14a1e28 | 27190 | PyObject * obj7 = 0 ; |
8edf1c75 | 27191 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
27192 | PyObject * obj9 = 0 ; |
27193 | char *kwnames[] = { | |
27194 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27195 | }; | |
27196 | ||
8edf1c75 | 27197 | 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 |
27198 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27199 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27200 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
27201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27202 | if (obj2) { |
2f4c0a16 RD |
27203 | arg3 = (int const) SWIG_AsInt(obj2); |
27204 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27205 | } |
d14a1e28 RD |
27206 | if (obj3) { |
27207 | { | |
27208 | arg4 = wxString_in_helper(obj3); | |
27209 | if (arg4 == NULL) SWIG_fail; | |
423f194a | 27210 | temp4 = True; |
d14a1e28 RD |
27211 | } |
27212 | } | |
27213 | if (obj4) { | |
27214 | { | |
27215 | arg5 = &temp5; | |
27216 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
27217 | } | |
27218 | } | |
27219 | if (obj5) { | |
27220 | { | |
27221 | arg6 = &temp6; | |
27222 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
27223 | } | |
27224 | } | |
8edf1c75 | 27225 | if (obj6) { |
2f4c0a16 RD |
27226 | arg7 = (long) SWIG_AsLong(obj6); |
27227 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27228 | } |
d14a1e28 RD |
27229 | if (obj7) { |
27230 | { | |
27231 | arg8 = wxString_in_helper(obj7); | |
27232 | if (arg8 == NULL) SWIG_fail; | |
423f194a | 27233 | temp8 = True; |
d14a1e28 RD |
27234 | } |
27235 | } | |
8edf1c75 | 27236 | if (obj8) { |
2f4c0a16 RD |
27237 | arg9 = (int) SWIG_AsInt(obj8); |
27238 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27239 | } |
d14a1e28 RD |
27240 | if (obj9) { |
27241 | { | |
27242 | arg10 = wxString_in_helper(obj9); | |
27243 | if (arg10 == NULL) SWIG_fail; | |
423f194a | 27244 | temp10 = True; |
d14a1e28 RD |
27245 | } |
27246 | } | |
27247 | { | |
27248 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27249 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
27250 | ||
27251 | wxPyEndAllowThreads(__tstate); | |
27252 | if (PyErr_Occurred()) SWIG_fail; | |
27253 | } | |
4f89f6a3 RD |
27254 | { |
27255 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27256 | } | |
d14a1e28 RD |
27257 | { |
27258 | if (temp4) | |
27259 | delete arg4; | |
27260 | } | |
27261 | { | |
27262 | if (temp8) | |
27263 | delete arg8; | |
27264 | } | |
27265 | { | |
27266 | if (temp10) | |
27267 | delete arg10; | |
27268 | } | |
27269 | return resultobj; | |
27270 | fail: | |
27271 | { | |
27272 | if (temp4) | |
27273 | delete arg4; | |
27274 | } | |
27275 | { | |
27276 | if (temp8) | |
27277 | delete arg8; | |
27278 | } | |
27279 | { | |
27280 | if (temp10) | |
27281 | delete arg10; | |
27282 | } | |
27283 | return NULL; | |
27284 | } | |
27285 | ||
27286 | ||
27287 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27288 | PyObject *resultobj; | |
27289 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27290 | wxString *arg2 = 0 ; | |
27291 | bool result; | |
423f194a | 27292 | bool temp2 = False ; |
d14a1e28 RD |
27293 | PyObject * obj0 = 0 ; |
27294 | PyObject * obj1 = 0 ; | |
27295 | char *kwnames[] = { | |
27296 | (char *) "self",(char *) "path", NULL | |
27297 | }; | |
27298 | ||
27299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27300 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27302 | { |
27303 | arg2 = wxString_in_helper(obj1); | |
27304 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27305 | temp2 = True; |
d14a1e28 RD |
27306 | } |
27307 | { | |
27308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27309 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
27310 | ||
27311 | wxPyEndAllowThreads(__tstate); | |
27312 | if (PyErr_Occurred()) SWIG_fail; | |
27313 | } | |
4f89f6a3 RD |
27314 | { |
27315 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27316 | } | |
d14a1e28 RD |
27317 | { |
27318 | if (temp2) | |
27319 | delete arg2; | |
27320 | } | |
27321 | return resultobj; | |
27322 | fail: | |
27323 | { | |
27324 | if (temp2) | |
27325 | delete arg2; | |
27326 | } | |
27327 | return NULL; | |
27328 | } | |
27329 | ||
27330 | ||
27331 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27332 | PyObject *resultobj; | |
27333 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27334 | wxString result; | |
27335 | PyObject * obj0 = 0 ; | |
27336 | char *kwnames[] = { | |
27337 | (char *) "self", NULL | |
27338 | }; | |
27339 | ||
27340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27343 | { |
27344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27345 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
27346 | ||
27347 | wxPyEndAllowThreads(__tstate); | |
27348 | if (PyErr_Occurred()) SWIG_fail; | |
27349 | } | |
27350 | { | |
27351 | #if wxUSE_UNICODE | |
27352 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27353 | #else | |
27354 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27355 | #endif | |
27356 | } | |
27357 | return resultobj; | |
27358 | fail: | |
27359 | return NULL; | |
27360 | } | |
27361 | ||
27362 | ||
27363 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27364 | PyObject *resultobj; | |
27365 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27366 | wxString *arg2 = 0 ; | |
423f194a | 27367 | bool temp2 = False ; |
d14a1e28 RD |
27368 | PyObject * obj0 = 0 ; |
27369 | PyObject * obj1 = 0 ; | |
27370 | char *kwnames[] = { | |
27371 | (char *) "self",(char *) "path", NULL | |
27372 | }; | |
27373 | ||
27374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27377 | { |
27378 | arg2 = wxString_in_helper(obj1); | |
27379 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27380 | temp2 = True; |
d14a1e28 RD |
27381 | } |
27382 | { | |
27383 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27384 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
27385 | ||
27386 | wxPyEndAllowThreads(__tstate); | |
27387 | if (PyErr_Occurred()) SWIG_fail; | |
27388 | } | |
27389 | Py_INCREF(Py_None); resultobj = Py_None; | |
27390 | { | |
27391 | if (temp2) | |
27392 | delete arg2; | |
27393 | } | |
27394 | return resultobj; | |
27395 | fail: | |
27396 | { | |
27397 | if (temp2) | |
27398 | delete arg2; | |
27399 | } | |
27400 | return NULL; | |
27401 | } | |
27402 | ||
27403 | ||
27404 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27405 | PyObject *resultobj; | |
27406 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27407 | wxString result; | |
27408 | PyObject * obj0 = 0 ; | |
27409 | char *kwnames[] = { | |
27410 | (char *) "self", NULL | |
27411 | }; | |
27412 | ||
27413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27416 | { |
27417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27418 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
27419 | ||
27420 | wxPyEndAllowThreads(__tstate); | |
27421 | if (PyErr_Occurred()) SWIG_fail; | |
27422 | } | |
27423 | { | |
27424 | #if wxUSE_UNICODE | |
27425 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27426 | #else | |
27427 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27428 | #endif | |
27429 | } | |
27430 | return resultobj; | |
27431 | fail: | |
27432 | return NULL; | |
27433 | } | |
27434 | ||
27435 | ||
27436 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27437 | PyObject *resultobj; | |
27438 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27439 | wxString result; | |
27440 | PyObject * obj0 = 0 ; | |
27441 | char *kwnames[] = { | |
27442 | (char *) "self", NULL | |
27443 | }; | |
27444 | ||
27445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27448 | { |
27449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27450 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
27451 | ||
27452 | wxPyEndAllowThreads(__tstate); | |
27453 | if (PyErr_Occurred()) SWIG_fail; | |
27454 | } | |
27455 | { | |
27456 | #if wxUSE_UNICODE | |
27457 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27458 | #else | |
27459 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27460 | #endif | |
27461 | } | |
27462 | return resultobj; | |
27463 | fail: | |
27464 | return NULL; | |
27465 | } | |
27466 | ||
27467 | ||
27468 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27469 | PyObject *resultobj; | |
27470 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27471 | wxString *arg2 = 0 ; | |
423f194a | 27472 | bool temp2 = False ; |
d14a1e28 RD |
27473 | PyObject * obj0 = 0 ; |
27474 | PyObject * obj1 = 0 ; | |
27475 | char *kwnames[] = { | |
27476 | (char *) "self",(char *) "path", NULL | |
27477 | }; | |
27478 | ||
27479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27482 | { |
27483 | arg2 = wxString_in_helper(obj1); | |
27484 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27485 | temp2 = True; |
d14a1e28 RD |
27486 | } |
27487 | { | |
27488 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27489 | (arg1)->SetPath((wxString const &)*arg2); | |
27490 | ||
27491 | wxPyEndAllowThreads(__tstate); | |
27492 | if (PyErr_Occurred()) SWIG_fail; | |
27493 | } | |
27494 | Py_INCREF(Py_None); resultobj = Py_None; | |
27495 | { | |
27496 | if (temp2) | |
27497 | delete arg2; | |
27498 | } | |
27499 | return resultobj; | |
27500 | fail: | |
27501 | { | |
27502 | if (temp2) | |
27503 | delete arg2; | |
27504 | } | |
27505 | return NULL; | |
27506 | } | |
27507 | ||
27508 | ||
27509 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27510 | PyObject *resultobj; | |
27511 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27512 | bool arg2 ; | |
27513 | PyObject * obj0 = 0 ; | |
27514 | PyObject * obj1 = 0 ; | |
27515 | char *kwnames[] = { | |
27516 | (char *) "self",(char *) "show", NULL | |
27517 | }; | |
27518 | ||
27519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27522 | arg2 = (bool) SWIG_AsBool(obj1); | |
27523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27524 | { |
27525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27526 | (arg1)->ShowHidden(arg2); | |
27527 | ||
27528 | wxPyEndAllowThreads(__tstate); | |
27529 | if (PyErr_Occurred()) SWIG_fail; | |
27530 | } | |
27531 | Py_INCREF(Py_None); resultobj = Py_None; | |
27532 | return resultobj; | |
27533 | fail: | |
27534 | return NULL; | |
27535 | } | |
27536 | ||
27537 | ||
27538 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27539 | PyObject *resultobj; | |
27540 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27541 | bool result; | |
27542 | PyObject * obj0 = 0 ; | |
27543 | char *kwnames[] = { | |
27544 | (char *) "self", NULL | |
27545 | }; | |
27546 | ||
27547 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27548 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27549 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27550 | { |
27551 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27552 | result = (bool)(arg1)->GetShowHidden(); | |
27553 | ||
27554 | wxPyEndAllowThreads(__tstate); | |
27555 | if (PyErr_Occurred()) SWIG_fail; | |
27556 | } | |
4f89f6a3 RD |
27557 | { |
27558 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
27559 | } | |
d14a1e28 RD |
27560 | return resultobj; |
27561 | fail: | |
27562 | return NULL; | |
27563 | } | |
27564 | ||
27565 | ||
27566 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27567 | PyObject *resultobj; | |
27568 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27569 | wxString result; | |
27570 | PyObject * obj0 = 0 ; | |
27571 | char *kwnames[] = { | |
27572 | (char *) "self", NULL | |
27573 | }; | |
27574 | ||
27575 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27576 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27577 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27578 | { |
27579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27580 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
27581 | ||
27582 | wxPyEndAllowThreads(__tstate); | |
27583 | if (PyErr_Occurred()) SWIG_fail; | |
27584 | } | |
27585 | { | |
27586 | #if wxUSE_UNICODE | |
27587 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
27588 | #else | |
27589 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
27590 | #endif | |
27591 | } | |
27592 | return resultobj; | |
27593 | fail: | |
27594 | return NULL; | |
27595 | } | |
27596 | ||
27597 | ||
27598 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27599 | PyObject *resultobj; | |
27600 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27601 | wxString *arg2 = 0 ; | |
423f194a | 27602 | bool temp2 = False ; |
d14a1e28 RD |
27603 | PyObject * obj0 = 0 ; |
27604 | PyObject * obj1 = 0 ; | |
27605 | char *kwnames[] = { | |
27606 | (char *) "self",(char *) "filter", NULL | |
27607 | }; | |
27608 | ||
27609 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
27610 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27611 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27612 | { |
27613 | arg2 = wxString_in_helper(obj1); | |
27614 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 27615 | temp2 = True; |
d14a1e28 RD |
27616 | } |
27617 | { | |
27618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27619 | (arg1)->SetFilter((wxString const &)*arg2); | |
27620 | ||
27621 | wxPyEndAllowThreads(__tstate); | |
27622 | if (PyErr_Occurred()) SWIG_fail; | |
27623 | } | |
27624 | Py_INCREF(Py_None); resultobj = Py_None; | |
27625 | { | |
27626 | if (temp2) | |
27627 | delete arg2; | |
27628 | } | |
27629 | return resultobj; | |
27630 | fail: | |
27631 | { | |
27632 | if (temp2) | |
27633 | delete arg2; | |
27634 | } | |
27635 | return NULL; | |
27636 | } | |
27637 | ||
27638 | ||
27639 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27640 | PyObject *resultobj; | |
27641 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27642 | int result; | |
27643 | PyObject * obj0 = 0 ; | |
27644 | char *kwnames[] = { | |
27645 | (char *) "self", NULL | |
27646 | }; | |
27647 | ||
27648 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27649 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27650 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27651 | { |
27652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27653 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
27654 | ||
27655 | wxPyEndAllowThreads(__tstate); | |
27656 | if (PyErr_Occurred()) SWIG_fail; | |
27657 | } | |
2f4c0a16 | 27658 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
27659 | return resultobj; |
27660 | fail: | |
27661 | return NULL; | |
27662 | } | |
27663 | ||
27664 | ||
27665 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27666 | PyObject *resultobj; | |
27667 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27668 | int arg2 ; | |
27669 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27670 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27671 | char *kwnames[] = { |
27672 | (char *) "self",(char *) "n", NULL | |
27673 | }; | |
27674 | ||
8edf1c75 | 27675 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
27676 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27678 | arg2 = (int) SWIG_AsInt(obj1); | |
27679 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27680 | { |
27681 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27682 | (arg1)->SetFilterIndex(arg2); | |
27683 | ||
27684 | wxPyEndAllowThreads(__tstate); | |
27685 | if (PyErr_Occurred()) SWIG_fail; | |
27686 | } | |
27687 | Py_INCREF(Py_None); resultobj = Py_None; | |
27688 | return resultobj; | |
27689 | fail: | |
27690 | return NULL; | |
27691 | } | |
27692 | ||
27693 | ||
27694 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27695 | PyObject *resultobj; | |
27696 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27697 | wxTreeItemId result; | |
27698 | PyObject * obj0 = 0 ; | |
27699 | char *kwnames[] = { | |
27700 | (char *) "self", NULL | |
27701 | }; | |
27702 | ||
27703 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27704 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27705 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27706 | { |
27707 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27708 | result = (arg1)->GetRootId(); | |
27709 | ||
27710 | wxPyEndAllowThreads(__tstate); | |
27711 | if (PyErr_Occurred()) SWIG_fail; | |
27712 | } | |
27713 | { | |
27714 | wxTreeItemId * resultptr; | |
27715 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27716 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27717 | } |
27718 | return resultobj; | |
27719 | fail: | |
27720 | return NULL; | |
27721 | } | |
27722 | ||
27723 | ||
27724 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27725 | PyObject *resultobj; | |
27726 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
d03fd34d | 27727 | wxPyTreeCtrl *result; |
d14a1e28 RD |
27728 | PyObject * obj0 = 0 ; |
27729 | char *kwnames[] = { | |
27730 | (char *) "self", NULL | |
27731 | }; | |
27732 | ||
27733 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27734 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27735 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27736 | { |
27737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
d03fd34d | 27738 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
27739 | |
27740 | wxPyEndAllowThreads(__tstate); | |
27741 | if (PyErr_Occurred()) SWIG_fail; | |
27742 | } | |
27743 | { | |
27744 | resultobj = wxPyMake_wxObject(result); | |
27745 | } | |
27746 | return resultobj; | |
27747 | fail: | |
27748 | return NULL; | |
27749 | } | |
27750 | ||
27751 | ||
27752 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27753 | PyObject *resultobj; | |
27754 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27755 | wxDirFilterListCtrl *result; | |
27756 | PyObject * obj0 = 0 ; | |
27757 | char *kwnames[] = { | |
27758 | (char *) "self", NULL | |
27759 | }; | |
27760 | ||
27761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27764 | { |
27765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27766 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
27767 | ||
27768 | wxPyEndAllowThreads(__tstate); | |
27769 | if (PyErr_Occurred()) SWIG_fail; | |
27770 | } | |
2f4c0a16 | 27771 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
27772 | return resultobj; |
27773 | fail: | |
27774 | return NULL; | |
27775 | } | |
27776 | ||
27777 | ||
27778 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27779 | PyObject *resultobj; | |
27780 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27781 | wxTreeItemId arg2 ; | |
27782 | wxString *arg3 = 0 ; | |
27783 | bool *arg4 = 0 ; | |
27784 | wxTreeItemId result; | |
27785 | wxTreeItemId *argp2 ; | |
423f194a | 27786 | bool temp3 = False ; |
d14a1e28 RD |
27787 | bool temp4 ; |
27788 | PyObject * obj0 = 0 ; | |
27789 | PyObject * obj1 = 0 ; | |
27790 | PyObject * obj2 = 0 ; | |
27791 | char *kwnames[] = { | |
27792 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
27793 | }; | |
27794 | ||
27795 | arg4 = &temp4; | |
27796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
27797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27799 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
27800 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
27801 | arg2 = *argp2; | |
d14a1e28 RD |
27802 | { |
27803 | arg3 = wxString_in_helper(obj2); | |
27804 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 27805 | temp3 = True; |
d14a1e28 RD |
27806 | } |
27807 | { | |
27808 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27809 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
27810 | ||
27811 | wxPyEndAllowThreads(__tstate); | |
27812 | if (PyErr_Occurred()) SWIG_fail; | |
27813 | } | |
27814 | { | |
27815 | wxTreeItemId * resultptr; | |
27816 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
2f4c0a16 | 27817 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27818 | } |
27819 | { | |
27820 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
27821 | resultobj = t_output_helper(resultobj,o); | |
27822 | } | |
27823 | { | |
27824 | if (temp3) | |
27825 | delete arg3; | |
27826 | } | |
27827 | return resultobj; | |
27828 | fail: | |
27829 | { | |
27830 | if (temp3) | |
27831 | delete arg3; | |
27832 | } | |
27833 | return NULL; | |
27834 | } | |
27835 | ||
27836 | ||
27837 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27838 | PyObject *resultobj; | |
27839 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27840 | PyObject * obj0 = 0 ; | |
27841 | char *kwnames[] = { | |
27842 | (char *) "self", NULL | |
27843 | }; | |
27844 | ||
27845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27848 | { |
27849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27850 | (arg1)->DoResize(); | |
27851 | ||
27852 | wxPyEndAllowThreads(__tstate); | |
27853 | if (PyErr_Occurred()) SWIG_fail; | |
27854 | } | |
27855 | Py_INCREF(Py_None); resultobj = Py_None; | |
27856 | return resultobj; | |
27857 | fail: | |
27858 | return NULL; | |
27859 | } | |
27860 | ||
27861 | ||
27862 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27863 | PyObject *resultobj; | |
27864 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
27865 | PyObject * obj0 = 0 ; | |
27866 | char *kwnames[] = { | |
27867 | (char *) "self", NULL | |
27868 | }; | |
27869 | ||
27870 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
27871 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27872 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27873 | { |
27874 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27875 | (arg1)->ReCreateTree(); | |
27876 | ||
27877 | wxPyEndAllowThreads(__tstate); | |
27878 | if (PyErr_Occurred()) SWIG_fail; | |
27879 | } | |
27880 | Py_INCREF(Py_None); resultobj = Py_None; | |
27881 | return resultobj; | |
27882 | fail: | |
27883 | return NULL; | |
27884 | } | |
27885 | ||
27886 | ||
27887 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
27888 | PyObject *obj; | |
27889 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27890 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
27891 | Py_INCREF(obj); | |
27892 | return Py_BuildValue((char *)""); | |
27893 | } | |
27894 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27895 | PyObject *resultobj; | |
27896 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27897 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27898 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
27899 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
27900 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
27901 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
27902 | long arg5 = (long) 0 ; | |
27903 | wxDirFilterListCtrl *result; | |
27904 | wxPoint temp3 ; | |
27905 | wxSize temp4 ; | |
27906 | PyObject * obj0 = 0 ; | |
8edf1c75 | 27907 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27908 | PyObject * obj2 = 0 ; |
27909 | PyObject * obj3 = 0 ; | |
8edf1c75 | 27910 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
27911 | char *kwnames[] = { |
27912 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27913 | }; | |
27914 | ||
8edf1c75 | 27915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
27916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
27917 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 27918 | if (obj1) { |
2f4c0a16 RD |
27919 | arg2 = (int const) SWIG_AsInt(obj1); |
27920 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27921 | } |
d14a1e28 RD |
27922 | if (obj2) { |
27923 | { | |
27924 | arg3 = &temp3; | |
27925 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
27926 | } | |
27927 | } | |
27928 | if (obj3) { | |
27929 | { | |
27930 | arg4 = &temp4; | |
27931 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
27932 | } | |
27933 | } | |
8edf1c75 | 27934 | if (obj4) { |
2f4c0a16 RD |
27935 | arg5 = (long) SWIG_AsLong(obj4); |
27936 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 27937 | } |
d14a1e28 RD |
27938 | { |
27939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27940 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
27941 | ||
27942 | wxPyEndAllowThreads(__tstate); | |
27943 | if (PyErr_Occurred()) SWIG_fail; | |
27944 | } | |
2f4c0a16 | 27945 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
27946 | return resultobj; |
27947 | fail: | |
27948 | return NULL; | |
27949 | } | |
27950 | ||
27951 | ||
27952 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27953 | PyObject *resultobj; | |
27954 | wxDirFilterListCtrl *result; | |
27955 | char *kwnames[] = { | |
27956 | NULL | |
27957 | }; | |
27958 | ||
27959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
27960 | { | |
27961 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27962 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
27963 | ||
27964 | wxPyEndAllowThreads(__tstate); | |
27965 | if (PyErr_Occurred()) SWIG_fail; | |
27966 | } | |
2f4c0a16 | 27967 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
27968 | return resultobj; |
27969 | fail: | |
27970 | return NULL; | |
27971 | } | |
27972 | ||
27973 | ||
27974 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27975 | PyObject *resultobj; | |
27976 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
27977 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
423f194a | 27978 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
27979 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
27980 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27981 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27982 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27983 | long arg6 = (long) 0 ; | |
27984 | bool result; | |
27985 | wxPoint temp4 ; | |
27986 | wxSize temp5 ; | |
27987 | PyObject * obj0 = 0 ; | |
27988 | PyObject * obj1 = 0 ; | |
8edf1c75 | 27989 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
27990 | PyObject * obj3 = 0 ; |
27991 | PyObject * obj4 = 0 ; | |
8edf1c75 | 27992 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
27993 | char *kwnames[] = { |
27994 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
27995 | }; | |
27996 | ||
8edf1c75 | 27997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
27998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
27999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28000 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 28002 | if (obj2) { |
2f4c0a16 RD |
28003 | arg3 = (int const) SWIG_AsInt(obj2); |
28004 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28005 | } |
d14a1e28 RD |
28006 | if (obj3) { |
28007 | { | |
28008 | arg4 = &temp4; | |
28009 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28010 | } | |
28011 | } | |
28012 | if (obj4) { | |
28013 | { | |
28014 | arg5 = &temp5; | |
28015 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28016 | } | |
28017 | } | |
8edf1c75 | 28018 | if (obj5) { |
2f4c0a16 RD |
28019 | arg6 = (long) SWIG_AsLong(obj5); |
28020 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28021 | } |
d14a1e28 RD |
28022 | { |
28023 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28024 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28025 | ||
28026 | wxPyEndAllowThreads(__tstate); | |
28027 | if (PyErr_Occurred()) SWIG_fail; | |
28028 | } | |
4f89f6a3 RD |
28029 | { |
28030 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28031 | } | |
d14a1e28 RD |
28032 | return resultobj; |
28033 | fail: | |
28034 | return NULL; | |
28035 | } | |
28036 | ||
28037 | ||
28038 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28039 | PyObject *resultobj; | |
28040 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28041 | wxString *arg2 = 0 ; | |
28042 | int arg3 ; | |
423f194a | 28043 | bool temp2 = False ; |
d14a1e28 RD |
28044 | PyObject * obj0 = 0 ; |
28045 | PyObject * obj1 = 0 ; | |
8edf1c75 | 28046 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28047 | char *kwnames[] = { |
28048 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28049 | }; | |
28050 | ||
8edf1c75 | 28051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28054 | { |
28055 | arg2 = wxString_in_helper(obj1); | |
28056 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 28057 | temp2 = True; |
d14a1e28 | 28058 | } |
2f4c0a16 RD |
28059 | arg3 = (int) SWIG_AsInt(obj2); |
28060 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28061 | { |
28062 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28063 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28064 | ||
28065 | wxPyEndAllowThreads(__tstate); | |
28066 | if (PyErr_Occurred()) SWIG_fail; | |
28067 | } | |
28068 | Py_INCREF(Py_None); resultobj = Py_None; | |
28069 | { | |
28070 | if (temp2) | |
28071 | delete arg2; | |
28072 | } | |
28073 | return resultobj; | |
28074 | fail: | |
28075 | { | |
28076 | if (temp2) | |
28077 | delete arg2; | |
28078 | } | |
28079 | return NULL; | |
28080 | } | |
28081 | ||
28082 | ||
28083 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28084 | PyObject *obj; | |
28085 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28086 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28087 | Py_INCREF(obj); | |
28088 | return Py_BuildValue((char *)""); | |
28089 | } | |
28090 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28091 | PyObject *resultobj; | |
28092 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 28093 | int arg2 ; |
d14a1e28 RD |
28094 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28095 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28096 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28097 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28098 | long arg5 = (long) 0 ; | |
28099 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28100 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28101 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28102 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28103 | wxPyControl *result; | |
28104 | wxPoint temp3 ; | |
28105 | wxSize temp4 ; | |
423f194a | 28106 | bool temp7 = False ; |
d14a1e28 | 28107 | PyObject * obj0 = 0 ; |
8edf1c75 | 28108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28109 | PyObject * obj2 = 0 ; |
28110 | PyObject * obj3 = 0 ; | |
8edf1c75 | 28111 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28112 | PyObject * obj5 = 0 ; |
28113 | PyObject * obj6 = 0 ; | |
28114 | char *kwnames[] = { | |
28115 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28116 | }; | |
28117 | ||
8edf1c75 | 28118 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
2f4c0a16 RD |
28119 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28121 | arg2 = (int const) SWIG_AsInt(obj1); | |
28122 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28123 | if (obj2) { |
28124 | { | |
28125 | arg3 = &temp3; | |
28126 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28127 | } | |
28128 | } | |
28129 | if (obj3) { | |
28130 | { | |
28131 | arg4 = &temp4; | |
28132 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28133 | } | |
28134 | } | |
8edf1c75 | 28135 | if (obj4) { |
2f4c0a16 RD |
28136 | arg5 = (long) SWIG_AsLong(obj4); |
28137 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28138 | } |
d14a1e28 | 28139 | if (obj5) { |
2f4c0a16 RD |
28140 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28141 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28142 | SWIG_fail; | |
d14a1e28 | 28143 | if (arg6 == NULL) { |
2f4c0a16 RD |
28144 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28145 | SWIG_fail; | |
d14a1e28 RD |
28146 | } |
28147 | } | |
28148 | if (obj6) { | |
28149 | { | |
28150 | arg7 = wxString_in_helper(obj6); | |
28151 | if (arg7 == NULL) SWIG_fail; | |
423f194a | 28152 | temp7 = True; |
d14a1e28 RD |
28153 | } |
28154 | } | |
28155 | { | |
28156 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28157 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
28158 | ||
28159 | wxPyEndAllowThreads(__tstate); | |
28160 | if (PyErr_Occurred()) SWIG_fail; | |
28161 | } | |
2f4c0a16 | 28162 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
28163 | { |
28164 | if (temp7) | |
28165 | delete arg7; | |
28166 | } | |
28167 | return resultobj; | |
28168 | fail: | |
28169 | { | |
28170 | if (temp7) | |
28171 | delete arg7; | |
28172 | } | |
28173 | return NULL; | |
28174 | } | |
28175 | ||
28176 | ||
e35a624d RD |
28177 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
28178 | PyObject *resultobj; | |
28179 | wxPyControl *result; | |
28180 | char *kwnames[] = { | |
28181 | NULL | |
28182 | }; | |
28183 | ||
28184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
28185 | { | |
28186 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28187 | result = (wxPyControl *)new wxPyControl(); | |
28188 | ||
28189 | wxPyEndAllowThreads(__tstate); | |
28190 | if (PyErr_Occurred()) SWIG_fail; | |
28191 | } | |
28192 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
28193 | return resultobj; | |
28194 | fail: | |
28195 | return NULL; | |
28196 | } | |
28197 | ||
28198 | ||
d14a1e28 RD |
28199 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
28200 | PyObject *resultobj; | |
28201 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28202 | PyObject *arg2 = (PyObject *) 0 ; | |
28203 | PyObject *arg3 = (PyObject *) 0 ; | |
28204 | PyObject * obj0 = 0 ; | |
28205 | PyObject * obj1 = 0 ; | |
28206 | PyObject * obj2 = 0 ; | |
28207 | char *kwnames[] = { | |
28208 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
28209 | }; | |
28210 | ||
28211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
28212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28214 | arg2 = obj1; |
28215 | arg3 = obj2; | |
28216 | { | |
28217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28218 | (arg1)->_setCallbackInfo(arg2,arg3); | |
28219 | ||
28220 | wxPyEndAllowThreads(__tstate); | |
28221 | if (PyErr_Occurred()) SWIG_fail; | |
28222 | } | |
28223 | Py_INCREF(Py_None); resultobj = Py_None; | |
28224 | return resultobj; | |
28225 | fail: | |
28226 | return NULL; | |
28227 | } | |
28228 | ||
28229 | ||
28230 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28231 | PyObject *resultobj; | |
28232 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28233 | int arg2 ; | |
28234 | int arg3 ; | |
28235 | int arg4 ; | |
28236 | int arg5 ; | |
28237 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28238 | PyObject * obj1 = 0 ; |
28239 | PyObject * obj2 = 0 ; | |
28240 | PyObject * obj3 = 0 ; | |
28241 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
28242 | char *kwnames[] = { |
28243 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
28244 | }; | |
28245 | ||
8edf1c75 | 28246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
28247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28249 | arg2 = (int) SWIG_AsInt(obj1); | |
28250 | if (PyErr_Occurred()) SWIG_fail; | |
28251 | arg3 = (int) SWIG_AsInt(obj2); | |
28252 | if (PyErr_Occurred()) SWIG_fail; | |
28253 | arg4 = (int) SWIG_AsInt(obj3); | |
28254 | if (PyErr_Occurred()) SWIG_fail; | |
28255 | arg5 = (int) SWIG_AsInt(obj4); | |
28256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28257 | { |
28258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28259 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
28260 | ||
28261 | wxPyEndAllowThreads(__tstate); | |
28262 | if (PyErr_Occurred()) SWIG_fail; | |
28263 | } | |
28264 | Py_INCREF(Py_None); resultobj = Py_None; | |
28265 | return resultobj; | |
28266 | fail: | |
28267 | return NULL; | |
28268 | } | |
28269 | ||
28270 | ||
28271 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28272 | PyObject *resultobj; | |
28273 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28274 | int arg2 ; | |
28275 | int arg3 ; | |
28276 | int arg4 ; | |
28277 | int arg5 ; | |
28278 | int arg6 = (int) wxSIZE_AUTO ; | |
28279 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28280 | PyObject * obj1 = 0 ; |
28281 | PyObject * obj2 = 0 ; | |
28282 | PyObject * obj3 = 0 ; | |
28283 | PyObject * obj4 = 0 ; | |
28284 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
28285 | char *kwnames[] = { |
28286 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
28287 | }; | |
28288 | ||
8edf1c75 | 28289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
2f4c0a16 RD |
28290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28292 | arg2 = (int) SWIG_AsInt(obj1); | |
28293 | if (PyErr_Occurred()) SWIG_fail; | |
28294 | arg3 = (int) SWIG_AsInt(obj2); | |
28295 | if (PyErr_Occurred()) SWIG_fail; | |
28296 | arg4 = (int) SWIG_AsInt(obj3); | |
28297 | if (PyErr_Occurred()) SWIG_fail; | |
28298 | arg5 = (int) SWIG_AsInt(obj4); | |
28299 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28300 | if (obj5) { |
2f4c0a16 RD |
28301 | arg6 = (int) SWIG_AsInt(obj5); |
28302 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28303 | } |
d14a1e28 RD |
28304 | { |
28305 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28306 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
28307 | ||
28308 | wxPyEndAllowThreads(__tstate); | |
28309 | if (PyErr_Occurred()) SWIG_fail; | |
28310 | } | |
28311 | Py_INCREF(Py_None); resultobj = Py_None; | |
28312 | return resultobj; | |
28313 | fail: | |
28314 | return NULL; | |
28315 | } | |
28316 | ||
28317 | ||
28318 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28319 | PyObject *resultobj; | |
28320 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28321 | int arg2 ; | |
28322 | int arg3 ; | |
28323 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28324 | PyObject * obj1 = 0 ; |
28325 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28326 | char *kwnames[] = { |
28327 | (char *) "self",(char *) "width",(char *) "height", NULL | |
28328 | }; | |
28329 | ||
8edf1c75 | 28330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28333 | arg2 = (int) SWIG_AsInt(obj1); | |
28334 | if (PyErr_Occurred()) SWIG_fail; | |
28335 | arg3 = (int) SWIG_AsInt(obj2); | |
28336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28337 | { |
28338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28339 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
28340 | ||
28341 | wxPyEndAllowThreads(__tstate); | |
28342 | if (PyErr_Occurred()) SWIG_fail; | |
28343 | } | |
28344 | Py_INCREF(Py_None); resultobj = Py_None; | |
28345 | return resultobj; | |
28346 | fail: | |
28347 | return NULL; | |
28348 | } | |
28349 | ||
28350 | ||
28351 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28352 | PyObject *resultobj; | |
28353 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28354 | int arg2 ; | |
28355 | int arg3 ; | |
28356 | PyObject * obj0 = 0 ; | |
8edf1c75 RD |
28357 | PyObject * obj1 = 0 ; |
28358 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
28359 | char *kwnames[] = { |
28360 | (char *) "self",(char *) "x",(char *) "y", NULL | |
28361 | }; | |
28362 | ||
8edf1c75 | 28363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
28364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28366 | arg2 = (int) SWIG_AsInt(obj1); | |
28367 | if (PyErr_Occurred()) SWIG_fail; | |
28368 | arg3 = (int) SWIG_AsInt(obj2); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28370 | { |
28371 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28372 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
28373 | ||
28374 | wxPyEndAllowThreads(__tstate); | |
28375 | if (PyErr_Occurred()) SWIG_fail; | |
28376 | } | |
28377 | Py_INCREF(Py_None); resultobj = Py_None; | |
28378 | return resultobj; | |
28379 | fail: | |
28380 | return NULL; | |
28381 | } | |
28382 | ||
28383 | ||
28384 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28385 | PyObject *resultobj; | |
28386 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28387 | int *arg2 = (int *) 0 ; | |
28388 | int *arg3 = (int *) 0 ; | |
28389 | int temp2 ; | |
28390 | int temp3 ; | |
28391 | PyObject * obj0 = 0 ; | |
28392 | char *kwnames[] = { | |
28393 | (char *) "self", NULL | |
28394 | }; | |
28395 | ||
28396 | arg2 = &temp2; | |
28397 | arg3 = &temp3; | |
28398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28401 | { |
28402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28403 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
28404 | ||
28405 | wxPyEndAllowThreads(__tstate); | |
28406 | if (PyErr_Occurred()) SWIG_fail; | |
28407 | } | |
28408 | Py_INCREF(Py_None); resultobj = Py_None; | |
28409 | { | |
28410 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28411 | resultobj = t_output_helper(resultobj,o); | |
28412 | } | |
28413 | { | |
28414 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28415 | resultobj = t_output_helper(resultobj,o); | |
28416 | } | |
28417 | return resultobj; | |
28418 | fail: | |
28419 | return NULL; | |
28420 | } | |
28421 | ||
28422 | ||
28423 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28424 | PyObject *resultobj; | |
28425 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28426 | int *arg2 = (int *) 0 ; | |
28427 | int *arg3 = (int *) 0 ; | |
28428 | int temp2 ; | |
28429 | int temp3 ; | |
28430 | PyObject * obj0 = 0 ; | |
28431 | char *kwnames[] = { | |
28432 | (char *) "self", NULL | |
28433 | }; | |
28434 | ||
28435 | arg2 = &temp2; | |
28436 | arg3 = &temp3; | |
28437 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28438 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28439 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28440 | { |
28441 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28442 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
28443 | ||
28444 | wxPyEndAllowThreads(__tstate); | |
28445 | if (PyErr_Occurred()) SWIG_fail; | |
28446 | } | |
28447 | Py_INCREF(Py_None); resultobj = Py_None; | |
28448 | { | |
28449 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28450 | resultobj = t_output_helper(resultobj,o); | |
28451 | } | |
28452 | { | |
28453 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28454 | resultobj = t_output_helper(resultobj,o); | |
28455 | } | |
28456 | return resultobj; | |
28457 | fail: | |
28458 | return NULL; | |
28459 | } | |
28460 | ||
28461 | ||
28462 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28463 | PyObject *resultobj; | |
28464 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28465 | int *arg2 = (int *) 0 ; | |
28466 | int *arg3 = (int *) 0 ; | |
28467 | int temp2 ; | |
28468 | int temp3 ; | |
28469 | PyObject * obj0 = 0 ; | |
28470 | char *kwnames[] = { | |
28471 | (char *) "self", NULL | |
28472 | }; | |
28473 | ||
28474 | arg2 = &temp2; | |
28475 | arg3 = &temp3; | |
28476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28479 | { |
28480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28481 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
28482 | ||
28483 | wxPyEndAllowThreads(__tstate); | |
28484 | if (PyErr_Occurred()) SWIG_fail; | |
28485 | } | |
28486 | Py_INCREF(Py_None); resultobj = Py_None; | |
28487 | { | |
28488 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
28489 | resultobj = t_output_helper(resultobj,o); | |
28490 | } | |
28491 | { | |
28492 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
28493 | resultobj = t_output_helper(resultobj,o); | |
28494 | } | |
28495 | return resultobj; | |
28496 | fail: | |
28497 | return NULL; | |
28498 | } | |
28499 | ||
28500 | ||
28501 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28502 | PyObject *resultobj; | |
28503 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28504 | wxSize result; | |
28505 | PyObject * obj0 = 0 ; | |
28506 | char *kwnames[] = { | |
28507 | (char *) "self", NULL | |
28508 | }; | |
28509 | ||
28510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28513 | { |
28514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28515 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
28516 | ||
28517 | wxPyEndAllowThreads(__tstate); | |
28518 | if (PyErr_Occurred()) SWIG_fail; | |
28519 | } | |
28520 | { | |
28521 | wxSize * resultptr; | |
28522 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28523 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28524 | } |
28525 | return resultobj; | |
28526 | fail: | |
28527 | return NULL; | |
28528 | } | |
28529 | ||
28530 | ||
28531 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28532 | PyObject *resultobj; | |
28533 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28534 | wxSize result; | |
28535 | PyObject * obj0 = 0 ; | |
28536 | char *kwnames[] = { | |
28537 | (char *) "self", NULL | |
28538 | }; | |
28539 | ||
28540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28543 | { |
28544 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28545 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
28546 | ||
28547 | wxPyEndAllowThreads(__tstate); | |
28548 | if (PyErr_Occurred()) SWIG_fail; | |
28549 | } | |
28550 | { | |
28551 | wxSize * resultptr; | |
28552 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28553 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28554 | } |
28555 | return resultobj; | |
28556 | fail: | |
28557 | return NULL; | |
28558 | } | |
28559 | ||
28560 | ||
28561 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28562 | PyObject *resultobj; | |
28563 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28564 | PyObject * obj0 = 0 ; | |
28565 | char *kwnames[] = { | |
28566 | (char *) "self", NULL | |
28567 | }; | |
28568 | ||
28569 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28570 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28571 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28572 | { |
28573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28574 | (arg1)->base_InitDialog(); | |
28575 | ||
28576 | wxPyEndAllowThreads(__tstate); | |
28577 | if (PyErr_Occurred()) SWIG_fail; | |
28578 | } | |
28579 | Py_INCREF(Py_None); resultobj = Py_None; | |
28580 | return resultobj; | |
28581 | fail: | |
28582 | return NULL; | |
28583 | } | |
28584 | ||
28585 | ||
28586 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28587 | PyObject *resultobj; | |
28588 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28589 | bool result; | |
28590 | PyObject * obj0 = 0 ; | |
28591 | char *kwnames[] = { | |
28592 | (char *) "self", NULL | |
28593 | }; | |
28594 | ||
28595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28598 | { |
28599 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28600 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
28601 | ||
28602 | wxPyEndAllowThreads(__tstate); | |
28603 | if (PyErr_Occurred()) SWIG_fail; | |
28604 | } | |
4f89f6a3 RD |
28605 | { |
28606 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28607 | } | |
d14a1e28 RD |
28608 | return resultobj; |
28609 | fail: | |
28610 | return NULL; | |
28611 | } | |
28612 | ||
28613 | ||
28614 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28615 | PyObject *resultobj; | |
28616 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28617 | bool result; | |
28618 | PyObject * obj0 = 0 ; | |
28619 | char *kwnames[] = { | |
28620 | (char *) "self", NULL | |
28621 | }; | |
28622 | ||
28623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28626 | { |
28627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28628 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
28629 | ||
28630 | wxPyEndAllowThreads(__tstate); | |
28631 | if (PyErr_Occurred()) SWIG_fail; | |
28632 | } | |
4f89f6a3 RD |
28633 | { |
28634 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28635 | } | |
d14a1e28 RD |
28636 | return resultobj; |
28637 | fail: | |
28638 | return NULL; | |
28639 | } | |
28640 | ||
28641 | ||
28642 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28643 | PyObject *resultobj; | |
28644 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28645 | bool result; | |
28646 | PyObject * obj0 = 0 ; | |
28647 | char *kwnames[] = { | |
28648 | (char *) "self", NULL | |
28649 | }; | |
28650 | ||
28651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28654 | { |
28655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28656 | result = (bool)(arg1)->base_Validate(); | |
28657 | ||
28658 | wxPyEndAllowThreads(__tstate); | |
28659 | if (PyErr_Occurred()) SWIG_fail; | |
28660 | } | |
4f89f6a3 RD |
28661 | { |
28662 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28663 | } | |
d14a1e28 RD |
28664 | return resultobj; |
28665 | fail: | |
28666 | return NULL; | |
28667 | } | |
28668 | ||
28669 | ||
28670 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28671 | PyObject *resultobj; | |
28672 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28673 | bool result; | |
28674 | PyObject * obj0 = 0 ; | |
28675 | char *kwnames[] = { | |
28676 | (char *) "self", NULL | |
28677 | }; | |
28678 | ||
28679 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28680 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28681 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28682 | { |
28683 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28684 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
28685 | ||
28686 | wxPyEndAllowThreads(__tstate); | |
28687 | if (PyErr_Occurred()) SWIG_fail; | |
28688 | } | |
4f89f6a3 RD |
28689 | { |
28690 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28691 | } | |
d14a1e28 RD |
28692 | return resultobj; |
28693 | fail: | |
28694 | return NULL; | |
28695 | } | |
28696 | ||
28697 | ||
28698 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28699 | PyObject *resultobj; | |
28700 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28701 | bool result; | |
28702 | PyObject * obj0 = 0 ; | |
28703 | char *kwnames[] = { | |
28704 | (char *) "self", NULL | |
28705 | }; | |
28706 | ||
28707 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28708 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28709 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28710 | { |
28711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28712 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
28713 | ||
28714 | wxPyEndAllowThreads(__tstate); | |
28715 | if (PyErr_Occurred()) SWIG_fail; | |
28716 | } | |
4f89f6a3 RD |
28717 | { |
28718 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28719 | } | |
d14a1e28 RD |
28720 | return resultobj; |
28721 | fail: | |
28722 | return NULL; | |
28723 | } | |
28724 | ||
28725 | ||
28726 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28727 | PyObject *resultobj; | |
28728 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28729 | wxSize result; | |
28730 | PyObject * obj0 = 0 ; | |
28731 | char *kwnames[] = { | |
28732 | (char *) "self", NULL | |
28733 | }; | |
28734 | ||
28735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28738 | { |
28739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28740 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
28741 | ||
28742 | wxPyEndAllowThreads(__tstate); | |
28743 | if (PyErr_Occurred()) SWIG_fail; | |
28744 | } | |
28745 | { | |
28746 | wxSize * resultptr; | |
28747 | resultptr = new wxSize((wxSize &) result); | |
2f4c0a16 | 28748 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
28749 | } |
28750 | return resultobj; | |
28751 | fail: | |
28752 | return NULL; | |
28753 | } | |
28754 | ||
28755 | ||
28756 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28757 | PyObject *resultobj; | |
28758 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28759 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28760 | PyObject * obj0 = 0 ; | |
28761 | PyObject * obj1 = 0 ; | |
28762 | char *kwnames[] = { | |
28763 | (char *) "self",(char *) "child", NULL | |
28764 | }; | |
28765 | ||
28766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28769 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28770 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28771 | { |
28772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28773 | (arg1)->base_AddChild(arg2); | |
28774 | ||
28775 | wxPyEndAllowThreads(__tstate); | |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
28777 | } | |
28778 | Py_INCREF(Py_None); resultobj = Py_None; | |
28779 | return resultobj; | |
28780 | fail: | |
28781 | return NULL; | |
28782 | } | |
28783 | ||
28784 | ||
28785 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28786 | PyObject *resultobj; | |
28787 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28788 | wxWindow *arg2 = (wxWindow *) 0 ; | |
28789 | PyObject * obj0 = 0 ; | |
28790 | PyObject * obj1 = 0 ; | |
28791 | char *kwnames[] = { | |
28792 | (char *) "self",(char *) "child", NULL | |
28793 | }; | |
28794 | ||
28795 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28796 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
28797 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28798 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28800 | { |
28801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28802 | (arg1)->base_RemoveChild(arg2); | |
28803 | ||
28804 | wxPyEndAllowThreads(__tstate); | |
28805 | if (PyErr_Occurred()) SWIG_fail; | |
28806 | } | |
28807 | Py_INCREF(Py_None); resultobj = Py_None; | |
28808 | return resultobj; | |
28809 | fail: | |
28810 | return NULL; | |
28811 | } | |
28812 | ||
28813 | ||
e35a624d RD |
28814 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
28815 | PyObject *resultobj; | |
28816 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28817 | bool result; | |
28818 | PyObject * obj0 = 0 ; | |
28819 | char *kwnames[] = { | |
28820 | (char *) "self", NULL | |
28821 | }; | |
28822 | ||
28823 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
28824 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28825 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28826 | { | |
28827 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28828 | result = (bool)(arg1)->base_ShouldInheritColours(); | |
28829 | ||
28830 | wxPyEndAllowThreads(__tstate); | |
28831 | if (PyErr_Occurred()) SWIG_fail; | |
28832 | } | |
28833 | { | |
28834 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28835 | } | |
28836 | return resultobj; | |
28837 | fail: | |
28838 | return NULL; | |
28839 | } | |
28840 | ||
28841 | ||
28842 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28843 | PyObject *resultobj; | |
28844 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
28845 | wxColour *arg2 = 0 ; | |
28846 | wxColour temp2 ; | |
28847 | PyObject * obj0 = 0 ; | |
28848 | PyObject * obj1 = 0 ; | |
28849 | char *kwnames[] = { | |
28850 | (char *) "self",(char *) "c", NULL | |
28851 | }; | |
28852 | ||
28853 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
28854 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
28855 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28856 | { | |
28857 | arg2 = &temp2; | |
28858 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
28859 | } | |
28860 | { | |
28861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28862 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
28863 | ||
28864 | wxPyEndAllowThreads(__tstate); | |
28865 | if (PyErr_Occurred()) SWIG_fail; | |
28866 | } | |
28867 | Py_INCREF(Py_None); resultobj = Py_None; | |
28868 | return resultobj; | |
28869 | fail: | |
28870 | return NULL; | |
28871 | } | |
28872 | ||
28873 | ||
d14a1e28 RD |
28874 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
28875 | PyObject *obj; | |
28876 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28877 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
28878 | Py_INCREF(obj); | |
28879 | return Py_BuildValue((char *)""); | |
28880 | } | |
28881 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28882 | PyObject *resultobj; | |
28883 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
423f194a | 28884 | int arg2 = (int) 0 ; |
d14a1e28 RD |
28885 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28886 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28887 | wxHelpEvent *result; | |
28888 | wxPoint temp3 ; | |
8edf1c75 RD |
28889 | PyObject * obj0 = 0 ; |
28890 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
28891 | PyObject * obj2 = 0 ; |
28892 | char *kwnames[] = { | |
28893 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
28894 | }; | |
28895 | ||
8edf1c75 RD |
28896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
28897 | if (obj0) { | |
2f4c0a16 RD |
28898 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
28899 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 RD |
28900 | } |
28901 | if (obj1) { | |
2f4c0a16 RD |
28902 | arg2 = (int) SWIG_AsInt(obj1); |
28903 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 28904 | } |
d14a1e28 RD |
28905 | if (obj2) { |
28906 | { | |
28907 | arg3 = &temp3; | |
28908 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28909 | } | |
28910 | } | |
28911 | { | |
28912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28913 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
28914 | ||
28915 | wxPyEndAllowThreads(__tstate); | |
28916 | if (PyErr_Occurred()) SWIG_fail; | |
28917 | } | |
2f4c0a16 | 28918 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
28919 | return resultobj; |
28920 | fail: | |
28921 | return NULL; | |
28922 | } | |
28923 | ||
28924 | ||
28925 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28926 | PyObject *resultobj; | |
28927 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
2f4c0a16 | 28928 | wxPoint result; |
d14a1e28 RD |
28929 | PyObject * obj0 = 0 ; |
28930 | char *kwnames[] = { | |
28931 | (char *) "self", NULL | |
28932 | }; | |
28933 | ||
28934 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28935 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28936 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28937 | { |
28938 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2f4c0a16 | 28939 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
28940 | |
28941 | wxPyEndAllowThreads(__tstate); | |
28942 | if (PyErr_Occurred()) SWIG_fail; | |
28943 | } | |
2f4c0a16 RD |
28944 | { |
28945 | wxPoint * resultptr; | |
28946 | resultptr = new wxPoint((wxPoint &) result); | |
28947 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
28948 | } | |
d14a1e28 RD |
28949 | return resultobj; |
28950 | fail: | |
28951 | return NULL; | |
28952 | } | |
28953 | ||
28954 | ||
28955 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28956 | PyObject *resultobj; | |
28957 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28958 | wxPoint *arg2 = 0 ; | |
28959 | wxPoint temp2 ; | |
28960 | PyObject * obj0 = 0 ; | |
28961 | PyObject * obj1 = 0 ; | |
28962 | char *kwnames[] = { | |
28963 | (char *) "self",(char *) "pos", NULL | |
28964 | }; | |
28965 | ||
28966 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
28967 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28968 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28969 | { |
28970 | arg2 = &temp2; | |
28971 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
28972 | } | |
28973 | { | |
28974 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28975 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
28976 | ||
28977 | wxPyEndAllowThreads(__tstate); | |
28978 | if (PyErr_Occurred()) SWIG_fail; | |
28979 | } | |
28980 | Py_INCREF(Py_None); resultobj = Py_None; | |
28981 | return resultobj; | |
28982 | fail: | |
28983 | return NULL; | |
28984 | } | |
28985 | ||
28986 | ||
28987 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28988 | PyObject *resultobj; | |
28989 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
28990 | wxString *result; | |
28991 | PyObject * obj0 = 0 ; | |
28992 | char *kwnames[] = { | |
28993 | (char *) "self", NULL | |
28994 | }; | |
28995 | ||
28996 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
28997 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
28998 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28999 | { |
29000 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29001 | { | |
29002 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29003 | result = (wxString *) &_result_ref; | |
29004 | } | |
29005 | ||
29006 | wxPyEndAllowThreads(__tstate); | |
29007 | if (PyErr_Occurred()) SWIG_fail; | |
29008 | } | |
f0983263 RD |
29009 | { |
29010 | #if wxUSE_UNICODE | |
29011 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29012 | #else | |
29013 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29014 | #endif | |
29015 | } | |
d14a1e28 RD |
29016 | return resultobj; |
29017 | fail: | |
29018 | return NULL; | |
29019 | } | |
29020 | ||
29021 | ||
29022 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29023 | PyObject *resultobj; | |
29024 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29025 | wxString *arg2 = 0 ; | |
423f194a | 29026 | bool temp2 = False ; |
d14a1e28 RD |
29027 | PyObject * obj0 = 0 ; |
29028 | PyObject * obj1 = 0 ; | |
29029 | char *kwnames[] = { | |
29030 | (char *) "self",(char *) "link", NULL | |
29031 | }; | |
29032 | ||
29033 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29034 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29035 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29036 | { |
29037 | arg2 = wxString_in_helper(obj1); | |
29038 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29039 | temp2 = True; |
d14a1e28 RD |
29040 | } |
29041 | { | |
29042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29043 | (arg1)->SetLink((wxString const &)*arg2); | |
29044 | ||
29045 | wxPyEndAllowThreads(__tstate); | |
29046 | if (PyErr_Occurred()) SWIG_fail; | |
29047 | } | |
29048 | Py_INCREF(Py_None); resultobj = Py_None; | |
29049 | { | |
29050 | if (temp2) | |
29051 | delete arg2; | |
29052 | } | |
29053 | return resultobj; | |
29054 | fail: | |
29055 | { | |
29056 | if (temp2) | |
29057 | delete arg2; | |
29058 | } | |
29059 | return NULL; | |
29060 | } | |
29061 | ||
29062 | ||
29063 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29064 | PyObject *resultobj; | |
29065 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29066 | wxString *result; | |
29067 | PyObject * obj0 = 0 ; | |
29068 | char *kwnames[] = { | |
29069 | (char *) "self", NULL | |
29070 | }; | |
29071 | ||
29072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29075 | { |
29076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29077 | { | |
29078 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29079 | result = (wxString *) &_result_ref; | |
29080 | } | |
29081 | ||
29082 | wxPyEndAllowThreads(__tstate); | |
29083 | if (PyErr_Occurred()) SWIG_fail; | |
29084 | } | |
f0983263 RD |
29085 | { |
29086 | #if wxUSE_UNICODE | |
29087 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29088 | #else | |
29089 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29090 | #endif | |
29091 | } | |
d14a1e28 RD |
29092 | return resultobj; |
29093 | fail: | |
29094 | return NULL; | |
29095 | } | |
29096 | ||
29097 | ||
29098 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29099 | PyObject *resultobj; | |
29100 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29101 | wxString *arg2 = 0 ; | |
423f194a | 29102 | bool temp2 = False ; |
d14a1e28 RD |
29103 | PyObject * obj0 = 0 ; |
29104 | PyObject * obj1 = 0 ; | |
29105 | char *kwnames[] = { | |
29106 | (char *) "self",(char *) "target", NULL | |
29107 | }; | |
29108 | ||
29109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29112 | { |
29113 | arg2 = wxString_in_helper(obj1); | |
29114 | if (arg2 == NULL) SWIG_fail; | |
423f194a | 29115 | temp2 = True; |
d14a1e28 RD |
29116 | } |
29117 | { | |
29118 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29119 | (arg1)->SetTarget((wxString const &)*arg2); | |
29120 | ||
29121 | wxPyEndAllowThreads(__tstate); | |
29122 | if (PyErr_Occurred()) SWIG_fail; | |
29123 | } | |
29124 | Py_INCREF(Py_None); resultobj = Py_None; | |
29125 | { | |
29126 | if (temp2) | |
29127 | delete arg2; | |
29128 | } | |
29129 | return resultobj; | |
29130 | fail: | |
29131 | { | |
29132 | if (temp2) | |
29133 | delete arg2; | |
29134 | } | |
29135 | return NULL; | |
29136 | } | |
29137 | ||
29138 | ||
29139 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
29140 | PyObject *obj; | |
29141 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29142 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
29143 | Py_INCREF(obj); | |
29144 | return Py_BuildValue((char *)""); | |
29145 | } | |
29146 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29147 | PyObject *resultobj; | |
29148 | wxWindow *arg1 = (wxWindow *) NULL ; | |
423f194a | 29149 | bool arg2 = (bool) True ; |
d14a1e28 RD |
29150 | wxContextHelp *result; |
29151 | PyObject * obj0 = 0 ; | |
29152 | PyObject * obj1 = 0 ; | |
29153 | char *kwnames[] = { | |
29154 | (char *) "window",(char *) "doNow", NULL | |
29155 | }; | |
29156 | ||
29157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
29158 | if (obj0) { | |
2f4c0a16 RD |
29159 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29160 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29161 | } |
29162 | if (obj1) { | |
2f4c0a16 RD |
29163 | arg2 = (bool) SWIG_AsBool(obj1); |
29164 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29165 | } |
29166 | { | |
29167 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29168 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
29169 | ||
29170 | wxPyEndAllowThreads(__tstate); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | } | |
2f4c0a16 | 29173 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
29174 | return resultobj; |
29175 | fail: | |
29176 | return NULL; | |
29177 | } | |
29178 | ||
29179 | ||
29180 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29181 | PyObject *resultobj; | |
29182 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29183 | PyObject * obj0 = 0 ; | |
29184 | char *kwnames[] = { | |
29185 | (char *) "self", NULL | |
29186 | }; | |
29187 | ||
29188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29191 | { |
29192 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29193 | delete arg1; | |
29194 | ||
29195 | wxPyEndAllowThreads(__tstate); | |
29196 | if (PyErr_Occurred()) SWIG_fail; | |
29197 | } | |
29198 | Py_INCREF(Py_None); resultobj = Py_None; | |
29199 | return resultobj; | |
29200 | fail: | |
29201 | return NULL; | |
29202 | } | |
29203 | ||
29204 | ||
29205 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29206 | PyObject *resultobj; | |
29207 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29208 | wxWindow *arg2 = (wxWindow *) NULL ; | |
29209 | bool result; | |
29210 | PyObject * obj0 = 0 ; | |
29211 | PyObject * obj1 = 0 ; | |
29212 | char *kwnames[] = { | |
29213 | (char *) "self",(char *) "window", NULL | |
29214 | }; | |
29215 | ||
29216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 29219 | if (obj1) { |
2f4c0a16 RD |
29220 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
29221 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29222 | } |
29223 | { | |
29224 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29225 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
29226 | ||
29227 | wxPyEndAllowThreads(__tstate); | |
29228 | if (PyErr_Occurred()) SWIG_fail; | |
29229 | } | |
4f89f6a3 RD |
29230 | { |
29231 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29232 | } | |
d14a1e28 RD |
29233 | return resultobj; |
29234 | fail: | |
29235 | return NULL; | |
29236 | } | |
29237 | ||
29238 | ||
29239 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29240 | PyObject *resultobj; | |
29241 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
29242 | bool result; | |
29243 | PyObject * obj0 = 0 ; | |
29244 | char *kwnames[] = { | |
29245 | (char *) "self", NULL | |
29246 | }; | |
29247 | ||
29248 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29249 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
29250 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29251 | { |
29252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29253 | result = (bool)(arg1)->EndContextHelp(); | |
29254 | ||
29255 | wxPyEndAllowThreads(__tstate); | |
29256 | if (PyErr_Occurred()) SWIG_fail; | |
29257 | } | |
4f89f6a3 RD |
29258 | { |
29259 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29260 | } | |
d14a1e28 RD |
29261 | return resultobj; |
29262 | fail: | |
29263 | return NULL; | |
29264 | } | |
29265 | ||
29266 | ||
29267 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
29268 | PyObject *obj; | |
29269 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29270 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
29271 | Py_INCREF(obj); | |
29272 | return Py_BuildValue((char *)""); | |
29273 | } | |
29274 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29275 | PyObject *resultobj; | |
29276 | wxWindow *arg1 = (wxWindow *) 0 ; | |
423f194a | 29277 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
29278 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29279 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29280 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
29281 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
29282 | long arg5 = (long) wxBU_AUTODRAW ; | |
29283 | wxContextHelpButton *result; | |
29284 | wxPoint temp3 ; | |
29285 | wxSize temp4 ; | |
29286 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29287 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29288 | PyObject * obj2 = 0 ; |
29289 | PyObject * obj3 = 0 ; | |
8edf1c75 | 29290 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
29291 | char *kwnames[] = { |
29292 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
29293 | }; | |
29294 | ||
8edf1c75 | 29295 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
2f4c0a16 RD |
29296 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
29297 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8edf1c75 | 29298 | if (obj1) { |
2f4c0a16 RD |
29299 | arg2 = (int) SWIG_AsInt(obj1); |
29300 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29301 | } |
d14a1e28 RD |
29302 | if (obj2) { |
29303 | { | |
29304 | arg3 = &temp3; | |
29305 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29306 | } | |
29307 | } | |
29308 | if (obj3) { | |
29309 | { | |
29310 | arg4 = &temp4; | |
29311 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
29312 | } | |
29313 | } | |
8edf1c75 | 29314 | if (obj4) { |
2f4c0a16 RD |
29315 | arg5 = (long) SWIG_AsLong(obj4); |
29316 | if (PyErr_Occurred()) SWIG_fail; | |
8edf1c75 | 29317 | } |
d14a1e28 RD |
29318 | { |
29319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29320 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
29321 | ||
29322 | wxPyEndAllowThreads(__tstate); | |
29323 | if (PyErr_Occurred()) SWIG_fail; | |
29324 | } | |
2f4c0a16 | 29325 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
29326 | return resultobj; |
29327 | fail: | |
29328 | return NULL; | |
29329 | } | |
29330 | ||
29331 | ||
29332 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
29333 | PyObject *obj; | |
29334 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29335 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
29336 | Py_INCREF(obj); | |
29337 | return Py_BuildValue((char *)""); | |
29338 | } | |
29339 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29340 | PyObject *resultobj; | |
29341 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29342 | wxHelpProvider *result; | |
29343 | PyObject * obj0 = 0 ; | |
29344 | char *kwnames[] = { | |
29345 | (char *) "helpProvider", NULL | |
29346 | }; | |
29347 | ||
29348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29349 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29350 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29351 | { |
29352 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29353 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
29354 | ||
29355 | wxPyEndAllowThreads(__tstate); | |
29356 | if (PyErr_Occurred()) SWIG_fail; | |
29357 | } | |
2f4c0a16 | 29358 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29359 | return resultobj; |
29360 | fail: | |
29361 | return NULL; | |
29362 | } | |
29363 | ||
29364 | ||
29365 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29366 | PyObject *resultobj; | |
29367 | wxHelpProvider *result; | |
29368 | char *kwnames[] = { | |
29369 | NULL | |
29370 | }; | |
29371 | ||
29372 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
29373 | { | |
29374 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29375 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
29376 | ||
29377 | wxPyEndAllowThreads(__tstate); | |
29378 | if (PyErr_Occurred()) SWIG_fail; | |
29379 | } | |
2f4c0a16 | 29380 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
29381 | return resultobj; |
29382 | fail: | |
29383 | return NULL; | |
29384 | } | |
29385 | ||
29386 | ||
29387 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29388 | PyObject *resultobj; | |
29389 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29390 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29391 | wxString result; | |
29392 | PyObject * obj0 = 0 ; | |
29393 | PyObject * obj1 = 0 ; | |
29394 | char *kwnames[] = { | |
29395 | (char *) "self",(char *) "window", NULL | |
29396 | }; | |
29397 | ||
29398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29401 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29403 | { |
29404 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29405 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
29406 | ||
29407 | wxPyEndAllowThreads(__tstate); | |
29408 | if (PyErr_Occurred()) SWIG_fail; | |
29409 | } | |
29410 | { | |
29411 | #if wxUSE_UNICODE | |
29412 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
29413 | #else | |
29414 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
29415 | #endif | |
29416 | } | |
29417 | return resultobj; | |
29418 | fail: | |
29419 | return NULL; | |
29420 | } | |
29421 | ||
29422 | ||
29423 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29424 | PyObject *resultobj; | |
29425 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29426 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29427 | bool result; | |
29428 | PyObject * obj0 = 0 ; | |
29429 | PyObject * obj1 = 0 ; | |
29430 | char *kwnames[] = { | |
29431 | (char *) "self",(char *) "window", NULL | |
29432 | }; | |
29433 | ||
29434 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29435 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29436 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29437 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29439 | { |
29440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29441 | result = (bool)(arg1)->ShowHelp(arg2); | |
29442 | ||
29443 | wxPyEndAllowThreads(__tstate); | |
29444 | if (PyErr_Occurred()) SWIG_fail; | |
29445 | } | |
4f89f6a3 RD |
29446 | { |
29447 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29448 | } | |
d14a1e28 RD |
29449 | return resultobj; |
29450 | fail: | |
29451 | return NULL; | |
29452 | } | |
29453 | ||
29454 | ||
29455 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29456 | PyObject *resultobj; | |
29457 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29459 | wxString *arg3 = 0 ; | |
423f194a | 29460 | bool temp3 = False ; |
d14a1e28 RD |
29461 | PyObject * obj0 = 0 ; |
29462 | PyObject * obj1 = 0 ; | |
29463 | PyObject * obj2 = 0 ; | |
29464 | char *kwnames[] = { | |
29465 | (char *) "self",(char *) "window",(char *) "text", NULL | |
29466 | }; | |
29467 | ||
29468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
29469 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29470 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29471 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29473 | { |
29474 | arg3 = wxString_in_helper(obj2); | |
29475 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29476 | temp3 = True; |
d14a1e28 RD |
29477 | } |
29478 | { | |
29479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29480 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29481 | ||
29482 | wxPyEndAllowThreads(__tstate); | |
29483 | if (PyErr_Occurred()) SWIG_fail; | |
29484 | } | |
29485 | Py_INCREF(Py_None); resultobj = Py_None; | |
29486 | { | |
29487 | if (temp3) | |
29488 | delete arg3; | |
29489 | } | |
29490 | return resultobj; | |
29491 | fail: | |
29492 | { | |
29493 | if (temp3) | |
29494 | delete arg3; | |
29495 | } | |
29496 | return NULL; | |
29497 | } | |
29498 | ||
29499 | ||
29500 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29501 | PyObject *resultobj; | |
29502 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
423f194a | 29503 | int arg2 ; |
d14a1e28 | 29504 | wxString *arg3 = 0 ; |
423f194a | 29505 | bool temp3 = False ; |
d14a1e28 | 29506 | PyObject * obj0 = 0 ; |
8edf1c75 | 29507 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
29508 | PyObject * obj2 = 0 ; |
29509 | char *kwnames[] = { | |
29510 | (char *) "self",(char *) "id",(char *) "text", NULL | |
29511 | }; | |
29512 | ||
8edf1c75 | 29513 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
2f4c0a16 RD |
29514 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29515 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29516 | arg2 = (int) SWIG_AsInt(obj1); | |
29517 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29518 | { |
29519 | arg3 = wxString_in_helper(obj2); | |
29520 | if (arg3 == NULL) SWIG_fail; | |
423f194a | 29521 | temp3 = True; |
d14a1e28 RD |
29522 | } |
29523 | { | |
29524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29525 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
29526 | ||
29527 | wxPyEndAllowThreads(__tstate); | |
29528 | if (PyErr_Occurred()) SWIG_fail; | |
29529 | } | |
29530 | Py_INCREF(Py_None); resultobj = Py_None; | |
29531 | { | |
29532 | if (temp3) | |
29533 | delete arg3; | |
29534 | } | |
29535 | return resultobj; | |
29536 | fail: | |
29537 | { | |
29538 | if (temp3) | |
29539 | delete arg3; | |
29540 | } | |
29541 | return NULL; | |
29542 | } | |
29543 | ||
29544 | ||
2f4c0a16 RD |
29545 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
29546 | PyObject *resultobj; | |
29547 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29548 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29549 | PyObject * obj0 = 0 ; | |
29550 | PyObject * obj1 = 0 ; | |
29551 | char *kwnames[] = { | |
29552 | (char *) "self",(char *) "window", NULL | |
29553 | }; | |
29554 | ||
29555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
29556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
29557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29558 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29560 | { | |
29561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29562 | (arg1)->RemoveHelp(arg2); | |
29563 | ||
29564 | wxPyEndAllowThreads(__tstate); | |
29565 | if (PyErr_Occurred()) SWIG_fail; | |
29566 | } | |
29567 | Py_INCREF(Py_None); resultobj = Py_None; | |
29568 | return resultobj; | |
29569 | fail: | |
29570 | return NULL; | |
29571 | } | |
29572 | ||
29573 | ||
d14a1e28 RD |
29574 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
29575 | PyObject *resultobj; | |
29576 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
29577 | PyObject * obj0 = 0 ; | |
29578 | char *kwnames[] = { | |
29579 | (char *) "self", NULL | |
29580 | }; | |
29581 | ||
29582 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29583 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
29584 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29585 | { |
29586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29587 | wxHelpProvider_Destroy(arg1); | |
29588 | ||
29589 | wxPyEndAllowThreads(__tstate); | |
29590 | if (PyErr_Occurred()) SWIG_fail; | |
29591 | } | |
29592 | Py_INCREF(Py_None); resultobj = Py_None; | |
29593 | return resultobj; | |
29594 | fail: | |
29595 | return NULL; | |
29596 | } | |
29597 | ||
29598 | ||
29599 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29600 | PyObject *obj; | |
29601 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29602 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
29603 | Py_INCREF(obj); | |
29604 | return Py_BuildValue((char *)""); | |
29605 | } | |
29606 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29607 | PyObject *resultobj; | |
29608 | wxSimpleHelpProvider *result; | |
29609 | char *kwnames[] = { | |
29610 | NULL | |
29611 | }; | |
29612 | ||
29613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
29614 | { | |
29615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29616 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
29617 | ||
29618 | wxPyEndAllowThreads(__tstate); | |
29619 | if (PyErr_Occurred()) SWIG_fail; | |
29620 | } | |
2f4c0a16 | 29621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
29622 | return resultobj; |
29623 | fail: | |
29624 | return NULL; | |
29625 | } | |
29626 | ||
29627 | ||
29628 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
29629 | PyObject *obj; | |
29630 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29631 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
29632 | Py_INCREF(obj); | |
29633 | return Py_BuildValue((char *)""); | |
29634 | } | |
423f194a RD |
29635 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
29636 | PyObject *resultobj; | |
29637 | wxBitmap *arg1 = 0 ; | |
29638 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29639 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29640 | wxGenericDragImage *result; | |
29641 | PyObject * obj0 = 0 ; | |
29642 | PyObject * obj1 = 0 ; | |
29643 | char *kwnames[] = { | |
29644 | (char *) "image",(char *) "cursor", NULL | |
29645 | }; | |
29646 | ||
29647 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29648 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
29649 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29650 | SWIG_fail; | |
423f194a | 29651 | if (arg1 == NULL) { |
2f4c0a16 RD |
29652 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29653 | SWIG_fail; | |
423f194a RD |
29654 | } |
29655 | if (obj1) { | |
2f4c0a16 RD |
29656 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29657 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29658 | SWIG_fail; | |
423f194a | 29659 | if (arg2 == NULL) { |
2f4c0a16 RD |
29660 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29661 | SWIG_fail; | |
423f194a RD |
29662 | } |
29663 | } | |
29664 | { | |
29665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29666 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
29667 | ||
29668 | wxPyEndAllowThreads(__tstate); | |
29669 | if (PyErr_Occurred()) SWIG_fail; | |
29670 | } | |
2f4c0a16 | 29671 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29672 | return resultobj; |
29673 | fail: | |
29674 | return NULL; | |
29675 | } | |
29676 | ||
29677 | ||
29678 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29679 | PyObject *resultobj; | |
29680 | wxIcon *arg1 = 0 ; | |
29681 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29682 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29683 | wxGenericDragImage *result; | |
29684 | PyObject * obj0 = 0 ; | |
29685 | PyObject * obj1 = 0 ; | |
29686 | char *kwnames[] = { | |
29687 | (char *) "image",(char *) "cursor", NULL | |
29688 | }; | |
29689 | ||
29690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
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 RD |
29697 | } |
29698 | if (obj1) { | |
2f4c0a16 RD |
29699 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29700 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29701 | SWIG_fail; | |
423f194a | 29702 | if (arg2 == NULL) { |
2f4c0a16 RD |
29703 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29704 | SWIG_fail; | |
423f194a RD |
29705 | } |
29706 | } | |
29707 | { | |
29708 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29709 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
29710 | ||
29711 | wxPyEndAllowThreads(__tstate); | |
29712 | if (PyErr_Occurred()) SWIG_fail; | |
29713 | } | |
2f4c0a16 | 29714 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29715 | return resultobj; |
29716 | fail: | |
29717 | return NULL; | |
29718 | } | |
29719 | ||
29720 | ||
29721 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29722 | PyObject *resultobj; | |
29723 | wxString *arg1 = 0 ; | |
29724 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
29725 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
29726 | wxGenericDragImage *result; | |
29727 | bool temp1 = False ; | |
29728 | PyObject * obj0 = 0 ; | |
29729 | PyObject * obj1 = 0 ; | |
29730 | char *kwnames[] = { | |
29731 | (char *) "str",(char *) "cursor", NULL | |
29732 | }; | |
29733 | ||
29734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
29735 | { | |
29736 | arg1 = wxString_in_helper(obj0); | |
29737 | if (arg1 == NULL) SWIG_fail; | |
29738 | temp1 = True; | |
29739 | } | |
29740 | if (obj1) { | |
2f4c0a16 RD |
29741 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
29742 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29743 | SWIG_fail; | |
423f194a | 29744 | if (arg2 == NULL) { |
2f4c0a16 RD |
29745 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29746 | SWIG_fail; | |
423f194a RD |
29747 | } |
29748 | } | |
29749 | { | |
29750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29751 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
29752 | ||
29753 | wxPyEndAllowThreads(__tstate); | |
29754 | if (PyErr_Occurred()) SWIG_fail; | |
29755 | } | |
2f4c0a16 | 29756 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29757 | { |
29758 | if (temp1) | |
29759 | delete arg1; | |
29760 | } | |
29761 | return resultobj; | |
29762 | fail: | |
29763 | { | |
29764 | if (temp1) | |
29765 | delete arg1; | |
29766 | } | |
29767 | return NULL; | |
29768 | } | |
29769 | ||
29770 | ||
29771 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29772 | PyObject *resultobj; | |
29773 | wxPyTreeCtrl *arg1 = 0 ; | |
29774 | wxTreeItemId *arg2 = 0 ; | |
29775 | wxGenericDragImage *result; | |
29776 | PyObject * obj0 = 0 ; | |
29777 | PyObject * obj1 = 0 ; | |
29778 | char *kwnames[] = { | |
29779 | (char *) "treeCtrl",(char *) "id", NULL | |
29780 | }; | |
29781 | ||
29782 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29783 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
29784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29785 | SWIG_fail; | |
423f194a | 29786 | if (arg1 == NULL) { |
2f4c0a16 RD |
29787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29788 | SWIG_fail; | |
423f194a | 29789 | } |
2f4c0a16 RD |
29790 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
29791 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29792 | SWIG_fail; | |
423f194a | 29793 | if (arg2 == NULL) { |
2f4c0a16 RD |
29794 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29795 | SWIG_fail; | |
423f194a RD |
29796 | } |
29797 | { | |
29798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29799 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
29800 | ||
29801 | wxPyEndAllowThreads(__tstate); | |
29802 | if (PyErr_Occurred()) SWIG_fail; | |
29803 | } | |
2f4c0a16 | 29804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29805 | return resultobj; |
29806 | fail: | |
29807 | return NULL; | |
29808 | } | |
29809 | ||
29810 | ||
29811 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29812 | PyObject *resultobj; | |
29813 | wxPyListCtrl *arg1 = 0 ; | |
29814 | long arg2 ; | |
29815 | wxGenericDragImage *result; | |
29816 | PyObject * obj0 = 0 ; | |
8edf1c75 | 29817 | PyObject * obj1 = 0 ; |
423f194a RD |
29818 | char *kwnames[] = { |
29819 | (char *) "listCtrl",(char *) "id", NULL | |
29820 | }; | |
29821 | ||
8edf1c75 | 29822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
2f4c0a16 RD |
29823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
29824 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
29825 | SWIG_fail; | |
423f194a | 29826 | if (arg1 == NULL) { |
2f4c0a16 RD |
29827 | PyErr_SetString(PyExc_TypeError,"null reference"); |
29828 | SWIG_fail; | |
8edf1c75 | 29829 | } |
2f4c0a16 RD |
29830 | arg2 = (long) SWIG_AsLong(obj1); |
29831 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
29832 | { |
29833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29834 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
29835 | ||
29836 | wxPyEndAllowThreads(__tstate); | |
29837 | if (PyErr_Occurred()) SWIG_fail; | |
29838 | } | |
2f4c0a16 | 29839 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
423f194a RD |
29840 | return resultobj; |
29841 | fail: | |
29842 | return NULL; | |
29843 | } | |
29844 | ||
29845 | ||
29846 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29847 | PyObject *resultobj; | |
29848 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29849 | PyObject * obj0 = 0 ; | |
29850 | char *kwnames[] = { | |
29851 | (char *) "self", NULL | |
29852 | }; | |
29853 | ||
29854 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
29855 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29856 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29857 | { |
29858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29859 | delete arg1; | |
29860 | ||
29861 | wxPyEndAllowThreads(__tstate); | |
29862 | if (PyErr_Occurred()) SWIG_fail; | |
29863 | } | |
29864 | Py_INCREF(Py_None); resultobj = Py_None; | |
29865 | return resultobj; | |
29866 | fail: | |
29867 | return NULL; | |
29868 | } | |
29869 | ||
29870 | ||
29871 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29872 | PyObject *resultobj; | |
29873 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29874 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
29875 | PyObject * obj0 = 0 ; | |
29876 | PyObject * obj1 = 0 ; | |
29877 | char *kwnames[] = { | |
29878 | (char *) "self",(char *) "bitmap", NULL | |
29879 | }; | |
29880 | ||
29881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
29882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
29885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29886 | { |
29887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29888 | (arg1)->SetBackingBitmap(arg2); | |
29889 | ||
29890 | wxPyEndAllowThreads(__tstate); | |
29891 | if (PyErr_Occurred()) SWIG_fail; | |
29892 | } | |
29893 | Py_INCREF(Py_None); resultobj = Py_None; | |
29894 | return resultobj; | |
29895 | fail: | |
29896 | return NULL; | |
29897 | } | |
29898 | ||
29899 | ||
29900 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29901 | PyObject *resultobj; | |
29902 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29903 | wxPoint *arg2 = 0 ; | |
29904 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29905 | bool arg4 = (bool) False ; | |
29906 | wxRect *arg5 = (wxRect *) NULL ; | |
29907 | bool result; | |
29908 | wxPoint temp2 ; | |
29909 | PyObject * obj0 = 0 ; | |
29910 | PyObject * obj1 = 0 ; | |
29911 | PyObject * obj2 = 0 ; | |
29912 | PyObject * obj3 = 0 ; | |
29913 | PyObject * obj4 = 0 ; | |
29914 | char *kwnames[] = { | |
29915 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
29916 | }; | |
29917 | ||
29918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
29919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29921 | { |
29922 | arg2 = &temp2; | |
29923 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29924 | } | |
2f4c0a16 RD |
29925 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
29926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a | 29927 | if (obj3) { |
2f4c0a16 RD |
29928 | arg4 = (bool) SWIG_AsBool(obj3); |
29929 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
29930 | } |
29931 | if (obj4) { | |
2f4c0a16 RD |
29932 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
29933 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29934 | } |
29935 | { | |
29936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29937 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
29938 | ||
29939 | wxPyEndAllowThreads(__tstate); | |
29940 | if (PyErr_Occurred()) SWIG_fail; | |
29941 | } | |
4f89f6a3 RD |
29942 | { |
29943 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29944 | } | |
423f194a RD |
29945 | return resultobj; |
29946 | fail: | |
29947 | return NULL; | |
29948 | } | |
29949 | ||
29950 | ||
29951 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29952 | PyObject *resultobj; | |
29953 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29954 | wxPoint *arg2 = 0 ; | |
29955 | wxWindow *arg3 = (wxWindow *) 0 ; | |
29956 | wxWindow *arg4 = (wxWindow *) 0 ; | |
29957 | bool result; | |
29958 | wxPoint temp2 ; | |
29959 | PyObject * obj0 = 0 ; | |
29960 | PyObject * obj1 = 0 ; | |
29961 | PyObject * obj2 = 0 ; | |
29962 | PyObject * obj3 = 0 ; | |
29963 | char *kwnames[] = { | |
29964 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
29965 | }; | |
29966 | ||
29967 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
2f4c0a16 RD |
29968 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
29969 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29970 | { |
29971 | arg2 = &temp2; | |
29972 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29973 | } | |
2f4c0a16 RD |
29974 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
29975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29976 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
29977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
29978 | { |
29979 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29980 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
29981 | ||
29982 | wxPyEndAllowThreads(__tstate); | |
29983 | if (PyErr_Occurred()) SWIG_fail; | |
29984 | } | |
4f89f6a3 RD |
29985 | { |
29986 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29987 | } | |
423f194a RD |
29988 | return resultobj; |
29989 | fail: | |
29990 | return NULL; | |
29991 | } | |
29992 | ||
29993 | ||
29994 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29995 | PyObject *resultobj; | |
29996 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
29997 | bool result; | |
29998 | PyObject * obj0 = 0 ; | |
29999 | char *kwnames[] = { | |
30000 | (char *) "self", NULL | |
30001 | }; | |
30002 | ||
30003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30006 | { |
30007 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30008 | result = (bool)(arg1)->EndDrag(); | |
30009 | ||
30010 | wxPyEndAllowThreads(__tstate); | |
30011 | if (PyErr_Occurred()) SWIG_fail; | |
30012 | } | |
4f89f6a3 RD |
30013 | { |
30014 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30015 | } | |
423f194a RD |
30016 | return resultobj; |
30017 | fail: | |
30018 | return NULL; | |
30019 | } | |
30020 | ||
30021 | ||
30022 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30023 | PyObject *resultobj; | |
30024 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30025 | wxPoint *arg2 = 0 ; | |
30026 | bool result; | |
30027 | wxPoint temp2 ; | |
30028 | PyObject * obj0 = 0 ; | |
30029 | PyObject * obj1 = 0 ; | |
30030 | char *kwnames[] = { | |
30031 | (char *) "self",(char *) "pt", NULL | |
30032 | }; | |
30033 | ||
30034 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30035 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30036 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30037 | { |
30038 | arg2 = &temp2; | |
30039 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30040 | } | |
30041 | { | |
30042 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30043 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30044 | ||
30045 | wxPyEndAllowThreads(__tstate); | |
30046 | if (PyErr_Occurred()) SWIG_fail; | |
30047 | } | |
4f89f6a3 RD |
30048 | { |
30049 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30050 | } | |
423f194a RD |
30051 | return resultobj; |
30052 | fail: | |
30053 | return NULL; | |
30054 | } | |
30055 | ||
30056 | ||
30057 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30058 | PyObject *resultobj; | |
30059 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30060 | bool result; | |
30061 | PyObject * obj0 = 0 ; | |
30062 | char *kwnames[] = { | |
30063 | (char *) "self", NULL | |
30064 | }; | |
30065 | ||
30066 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30069 | { |
30070 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30071 | result = (bool)(arg1)->Show(); | |
30072 | ||
30073 | wxPyEndAllowThreads(__tstate); | |
30074 | if (PyErr_Occurred()) SWIG_fail; | |
30075 | } | |
4f89f6a3 RD |
30076 | { |
30077 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30078 | } | |
423f194a RD |
30079 | return resultobj; |
30080 | fail: | |
30081 | return NULL; | |
30082 | } | |
30083 | ||
30084 | ||
30085 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30086 | PyObject *resultobj; | |
30087 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30088 | bool result; | |
30089 | PyObject * obj0 = 0 ; | |
30090 | char *kwnames[] = { | |
30091 | (char *) "self", NULL | |
30092 | }; | |
30093 | ||
30094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
2f4c0a16 RD |
30095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30097 | { |
30098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30099 | result = (bool)(arg1)->Hide(); | |
30100 | ||
30101 | wxPyEndAllowThreads(__tstate); | |
30102 | if (PyErr_Occurred()) SWIG_fail; | |
30103 | } | |
4f89f6a3 RD |
30104 | { |
30105 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30106 | } | |
423f194a RD |
30107 | return resultobj; |
30108 | fail: | |
30109 | return NULL; | |
30110 | } | |
30111 | ||
30112 | ||
30113 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30114 | PyObject *resultobj; | |
30115 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30116 | wxPoint *arg2 = 0 ; | |
30117 | wxRect result; | |
30118 | wxPoint temp2 ; | |
30119 | PyObject * obj0 = 0 ; | |
30120 | PyObject * obj1 = 0 ; | |
30121 | char *kwnames[] = { | |
30122 | (char *) "self",(char *) "pos", NULL | |
30123 | }; | |
30124 | ||
30125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
2f4c0a16 RD |
30126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30128 | { |
30129 | arg2 = &temp2; | |
30130 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30131 | } | |
30132 | { | |
30133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30134 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
30135 | ||
30136 | wxPyEndAllowThreads(__tstate); | |
30137 | if (PyErr_Occurred()) SWIG_fail; | |
30138 | } | |
30139 | { | |
30140 | wxRect * resultptr; | |
30141 | resultptr = new wxRect((wxRect &) result); | |
2f4c0a16 | 30142 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
423f194a RD |
30143 | } |
30144 | return resultobj; | |
30145 | fail: | |
30146 | return NULL; | |
30147 | } | |
30148 | ||
30149 | ||
30150 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30151 | PyObject *resultobj; | |
30152 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30153 | wxDC *arg2 = 0 ; | |
30154 | wxPoint *arg3 = 0 ; | |
30155 | bool result; | |
30156 | wxPoint temp3 ; | |
30157 | PyObject * obj0 = 0 ; | |
30158 | PyObject * obj1 = 0 ; | |
30159 | PyObject * obj2 = 0 ; | |
30160 | char *kwnames[] = { | |
30161 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
30162 | }; | |
30163 | ||
30164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
2f4c0a16 RD |
30165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30167 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30168 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30169 | SWIG_fail; | |
423f194a | 30170 | if (arg2 == NULL) { |
2f4c0a16 RD |
30171 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30172 | SWIG_fail; | |
423f194a RD |
30173 | } |
30174 | { | |
30175 | arg3 = &temp3; | |
30176 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30177 | } | |
30178 | { | |
30179 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30180 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
30181 | ||
30182 | wxPyEndAllowThreads(__tstate); | |
30183 | if (PyErr_Occurred()) SWIG_fail; | |
30184 | } | |
4f89f6a3 RD |
30185 | { |
30186 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30187 | } | |
423f194a RD |
30188 | return resultobj; |
30189 | fail: | |
30190 | return NULL; | |
30191 | } | |
30192 | ||
30193 | ||
30194 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30195 | PyObject *resultobj; | |
30196 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30197 | wxDC *arg2 = 0 ; | |
30198 | wxMemoryDC *arg3 = 0 ; | |
30199 | wxRect *arg4 = 0 ; | |
30200 | wxRect *arg5 = 0 ; | |
30201 | bool result; | |
30202 | wxRect temp4 ; | |
30203 | wxRect temp5 ; | |
30204 | PyObject * obj0 = 0 ; | |
30205 | PyObject * obj1 = 0 ; | |
30206 | PyObject * obj2 = 0 ; | |
30207 | PyObject * obj3 = 0 ; | |
30208 | PyObject * obj4 = 0 ; | |
30209 | char *kwnames[] = { | |
30210 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
30211 | }; | |
30212 | ||
30213 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30214 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30215 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30216 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
30217 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30218 | SWIG_fail; | |
423f194a | 30219 | if (arg2 == NULL) { |
2f4c0a16 RD |
30220 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30221 | SWIG_fail; | |
423f194a | 30222 | } |
2f4c0a16 RD |
30223 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
30224 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30225 | SWIG_fail; | |
423f194a | 30226 | if (arg3 == NULL) { |
2f4c0a16 RD |
30227 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30228 | SWIG_fail; | |
423f194a RD |
30229 | } |
30230 | { | |
30231 | arg4 = &temp4; | |
30232 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
30233 | } | |
30234 | { | |
30235 | arg5 = &temp5; | |
30236 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
30237 | } | |
30238 | { | |
30239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30240 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
30241 | ||
30242 | wxPyEndAllowThreads(__tstate); | |
30243 | if (PyErr_Occurred()) SWIG_fail; | |
30244 | } | |
4f89f6a3 RD |
30245 | { |
30246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30247 | } | |
423f194a RD |
30248 | return resultobj; |
30249 | fail: | |
30250 | return NULL; | |
30251 | } | |
30252 | ||
30253 | ||
30254 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30255 | PyObject *resultobj; | |
30256 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30257 | wxPoint *arg2 = 0 ; | |
30258 | wxPoint *arg3 = 0 ; | |
30259 | bool arg4 ; | |
30260 | bool arg5 ; | |
30261 | bool result; | |
30262 | wxPoint temp2 ; | |
30263 | wxPoint temp3 ; | |
30264 | PyObject * obj0 = 0 ; | |
30265 | PyObject * obj1 = 0 ; | |
30266 | PyObject * obj2 = 0 ; | |
30267 | PyObject * obj3 = 0 ; | |
30268 | PyObject * obj4 = 0 ; | |
30269 | char *kwnames[] = { | |
30270 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
30271 | }; | |
30272 | ||
30273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
2f4c0a16 RD |
30274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
423f194a RD |
30276 | { |
30277 | arg2 = &temp2; | |
30278 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30279 | } | |
30280 | { | |
30281 | arg3 = &temp3; | |
30282 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30283 | } | |
2f4c0a16 RD |
30284 | arg4 = (bool) SWIG_AsBool(obj3); |
30285 | if (PyErr_Occurred()) SWIG_fail; | |
30286 | arg5 = (bool) SWIG_AsBool(obj4); | |
30287 | if (PyErr_Occurred()) SWIG_fail; | |
423f194a RD |
30288 | { |
30289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30290 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
30291 | ||
30292 | wxPyEndAllowThreads(__tstate); | |
30293 | if (PyErr_Occurred()) SWIG_fail; | |
30294 | } | |
4f89f6a3 RD |
30295 | { |
30296 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30297 | } | |
423f194a RD |
30298 | return resultobj; |
30299 | fail: | |
30300 | return NULL; | |
30301 | } | |
30302 | ||
30303 | ||
30304 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
30305 | PyObject *obj; | |
30306 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30307 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
30308 | Py_INCREF(obj); | |
30309 | return Py_BuildValue((char *)""); | |
30310 | } | |
30311 | static PyMethodDef SwigMethods[] = { | |
30312 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
30313 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
30314 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
30315 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30316 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, |
30317 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, | |
30318 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30319 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
30320 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30321 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30322 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30323 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30324 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30325 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
30326 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
30327 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
30328 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
30329 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30330 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
30331 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
30332 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
30333 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30334 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
30335 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30336 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30337 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30338 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30339 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30340 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
30341 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
30342 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
30343 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, | |
30344 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
30345 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
30346 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30347 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
30348 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30349 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30350 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, | |
30351 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30352 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
30353 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30354 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30355 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30356 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
30357 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
30358 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30359 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30360 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30361 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30362 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
8a0b029b | 30363 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30364 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
30365 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30366 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30367 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30368 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, | |
30369 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
30370 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
30371 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
30372 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30373 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30374 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30375 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30376 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30377 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30378 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
30379 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30380 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
30381 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, | |
30382 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30383 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
30384 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30385 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, | |
30386 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30387 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
30388 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
30389 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30390 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
30391 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, | |
30392 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
30393 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
30394 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
30395 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, | |
30396 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30397 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30398 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
30399 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30400 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30401 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
30402 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, | |
30403 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
30404 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
30405 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30406 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
30407 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
30408 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
30409 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30410 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30411 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
30412 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
30413 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
30414 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30415 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30416 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
30417 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
30418 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30419 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30420 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
0ffb2aa6 RD |
30421 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
30422 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30423 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
423f194a RD |
30424 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
30425 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30426 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
30427 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30428 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
30429 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
30430 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
30431 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30432 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
30433 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
30434 | { (char *)"new_TextAttr", _wrap_new_TextAttr, METH_VARARGS }, | |
8edf1c75 | 30435 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
423f194a RD |
30436 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
30437 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30438 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30439 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30440 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30441 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30442 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30443 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30444 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30445 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30446 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30447 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30448 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30449 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
30450 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30451 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30452 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
30453 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30454 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30455 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30456 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
30457 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
30458 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
30459 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
30460 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
30461 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
30462 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
30463 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
30464 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30465 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30466 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30467 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30468 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30469 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30470 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
30471 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
30472 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
30473 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
30474 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
30475 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
30476 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
30477 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30478 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30479 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30480 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
30481 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
30482 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
30483 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
30484 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
30485 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
30486 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
30487 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
30488 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
30489 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
30490 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30491 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30492 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30493 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
30494 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
30495 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
30496 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4e760a36 | 30497 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
423f194a | 30498 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30499 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, |
30500 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
30501 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
30502 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
30503 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
30504 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
30505 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, | |
30506 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
30507 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
30508 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30509 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
30510 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
30511 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
30512 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30513 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
30514 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
30515 | { (char *)"TextCtrl_ShowNativeCaret", (PyCFunction) _wrap_TextCtrl_ShowNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30516 | { (char *)"TextCtrl_HideNativeCaret", (PyCFunction) _wrap_TextCtrl_HideNativeCaret, METH_VARARGS | METH_KEYWORDS }, | |
30517 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
30518 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30519 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, | |
30520 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30521 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
30522 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
30523 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
30524 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
30525 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30526 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
30527 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30528 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30529 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
30530 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30531 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
30532 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30533 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
30534 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
30535 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, | |
30536 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30537 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
30538 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30539 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30540 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30541 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30542 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30543 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30544 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30545 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30546 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30547 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, | |
30548 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30549 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30550 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30551 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30552 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30553 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
30554 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30555 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30556 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30557 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30558 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, | |
eb9b6107 RD |
30559 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
30560 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30561 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
30562 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
30563 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
30564 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
30565 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
30566 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30567 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30568 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30569 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
30570 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30571 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
30572 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
30573 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
30574 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
30575 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
30576 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30577 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30578 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30579 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, | |
30580 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30581 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
30582 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30583 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30584 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30585 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, | |
30586 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
30587 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
30588 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
30589 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30590 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30591 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
30592 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
30593 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
30594 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
30595 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
30596 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30597 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30598 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
30599 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30600 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30601 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
30602 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30603 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
30604 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
30605 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
30606 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
30607 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
30608 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
30609 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30610 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, | |
30611 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30612 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
30613 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
30614 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
30615 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
30616 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30617 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, | |
30618 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
30619 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
30620 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30621 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30622 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
30623 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30624 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30625 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30626 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30627 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
30628 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
30629 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30630 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
30631 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
30632 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
30633 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
30634 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
30635 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30636 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
30637 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, | |
30638 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
30639 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30640 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30641 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30642 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
30643 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
30644 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
30645 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30646 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30647 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
30648 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
30649 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
30650 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30651 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
30652 | { (char *)"Notebook_ApplyThemeBackground", (PyCFunction) _wrap_Notebook_ApplyThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
30653 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, | |
30654 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30655 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
30656 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
30657 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
30658 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
30659 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
30660 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
30661 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
30662 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
30663 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
30664 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30665 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30666 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30667 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
30668 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
30669 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
30670 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
30671 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
30672 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
30673 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30674 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
30675 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30676 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
30677 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
30678 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30679 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
30680 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
30681 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30682 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
30683 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
30684 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30685 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30686 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30687 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30688 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30689 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30690 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
30691 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
30692 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30693 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30694 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30695 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30696 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
30697 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30698 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
30699 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
30700 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30701 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
30702 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
30703 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
30704 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d RD |
30705 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
30706 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
30707 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
30708 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
30709 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
30710 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30711 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
30712 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
30713 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
30714 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
30715 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
30716 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
30717 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
30718 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
30719 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
30720 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30721 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
30722 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
30723 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
30724 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
30725 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30726 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
30727 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30728 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
30729 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
30730 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30731 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30732 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30733 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
30734 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
30735 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
30736 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
30737 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
30738 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
30739 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
30740 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
30741 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30742 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
30743 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
30744 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
d03fd34d | 30745 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30746 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
30747 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
30748 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30749 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
30750 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
30751 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
30752 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, | |
30753 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
30754 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30755 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30756 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30757 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30758 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30759 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
30760 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30761 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30762 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30763 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30764 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
30765 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30766 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
30767 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
30768 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30769 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
30770 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30771 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30772 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
30773 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
30774 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
30775 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
30776 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30777 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30778 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30779 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30780 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30781 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
30782 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30783 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30784 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30785 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
30786 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30787 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30788 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30789 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
30790 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
30791 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30792 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
30793 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30794 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30795 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
30796 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
30797 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
30798 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
30799 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
30800 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30801 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30802 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
30803 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
30804 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
30805 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
30806 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
30807 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
30808 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
30809 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
30810 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
30811 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
30812 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
30813 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
30814 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
30815 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
30816 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
30817 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
30818 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
30819 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
30820 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30821 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30822 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
30823 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
30824 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
30825 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
30826 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
30827 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
30828 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
30829 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30830 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
30831 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30832 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30833 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30834 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
30835 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
30836 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30837 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
30838 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30839 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
30840 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
30841 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30842 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
30843 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
30844 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30845 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30846 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30847 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30848 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30849 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30850 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30851 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
30852 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30853 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
30854 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
30855 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
30856 | { (char *)"ListCtrl_GetEditControl", (PyCFunction) _wrap_ListCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
30857 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30858 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30859 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30860 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30861 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
30862 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30863 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30864 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30865 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30866 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30867 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30868 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
30869 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
30870 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30871 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
30872 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30873 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30874 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30875 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30876 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
30877 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
30878 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
30879 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
30880 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30881 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30882 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
fe763115 | 30883 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30884 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
30885 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
30886 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
30887 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
30888 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
30889 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
30890 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
30891 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
30892 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
30893 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30894 | { (char *)"ListCtrl_EndEditLabel", (PyCFunction) _wrap_ListCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
30895 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
30896 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
30897 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
30898 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
30899 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
30900 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
30901 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30902 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
30903 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
30904 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
30905 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
30906 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
30907 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
30908 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30909 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30910 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30911 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30912 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
30913 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
30914 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, | |
30915 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
30916 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
30917 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
30918 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
30919 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
30920 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
30921 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
30922 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
30923 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30924 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30925 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
30926 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
30927 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30928 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
30929 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
30930 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
30931 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
30932 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
30933 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
30934 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
30935 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
30936 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
30937 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
30938 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
30939 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
30940 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
30941 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
30942 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
30943 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
30944 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
30945 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30946 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
30947 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30948 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
30949 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30950 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
30951 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
30952 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30953 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
30954 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
30955 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
9fd4be55 | 30956 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
30957 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
30958 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30959 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
30960 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
30961 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
30962 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
30963 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30964 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
30965 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30966 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
30967 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30968 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30969 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
30970 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30971 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
30972 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
30973 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30974 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30975 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30976 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30977 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30978 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30979 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30980 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
30981 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
30982 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
30983 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
30984 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30985 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
30986 | { (char *)"TreeCtrl_SetItemDropHighlight", (PyCFunction) _wrap_TreeCtrl_SetItemDropHighlight, METH_VARARGS | METH_KEYWORDS }, | |
30987 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
30988 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
30989 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
30990 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
30991 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
30992 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
30993 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
30994 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
30995 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
30996 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
30997 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
30998 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
30999 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31000 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31001 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31002 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31003 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31004 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31005 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31006 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31007 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31008 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31009 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31010 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31011 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31012 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31013 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31014 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31015 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31016 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31017 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31018 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31019 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31020 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 31021 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31022 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31023 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
db914595 | 31024 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31025 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31026 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31027 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31028 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31029 | { (char *)"TreeCtrl_EndEditLabel", (PyCFunction) _wrap_TreeCtrl_EndEditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31030 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31031 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31032 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
31033 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, | |
31034 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31035 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31036 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31037 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31038 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31039 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31040 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31041 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31042 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31043 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31044 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31045 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31046 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31047 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31048 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31049 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31050 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31051 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31052 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31053 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31054 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31055 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31056 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31057 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31058 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31059 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31060 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31061 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
e35a624d | 31062 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31063 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
31064 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, | |
31065 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
31066 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31067 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31068 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
31069 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
31070 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31071 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
31072 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
31073 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
31074 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
31075 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31076 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
31077 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
31078 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
31079 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
31080 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
31081 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
e35a624d RD |
31082 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
31083 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31084 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
31085 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
31086 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31087 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31088 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
31089 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
31090 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31091 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
31092 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
31093 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31094 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31095 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31096 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
31097 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
31098 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
31099 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
31100 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
31101 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
31102 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
31103 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
31104 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
31105 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
2f4c0a16 | 31106 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31107 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
31108 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
31109 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
31110 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
423f194a RD |
31111 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
31112 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
31113 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
31114 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
31115 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
31116 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
31117 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31118 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
31119 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
31120 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
31121 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
31122 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
31123 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
31124 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
31125 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31126 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
31127 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
31128 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31129 | { NULL, NULL } |
31130 | }; | |
31131 | ||
31132 | ||
31133 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
31134 | ||
31135 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
31136 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31137 | } | |
31138 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
31139 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31140 | } | |
31141 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
31142 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
31143 | } | |
31144 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
31145 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31146 | } | |
31147 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
31148 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31149 | } | |
31150 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
31151 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
31152 | } | |
31153 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
31154 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31155 | } | |
31156 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
31157 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
31158 | } | |
31159 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
31160 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
31161 | } | |
31162 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
31163 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
31164 | } | |
31165 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
31166 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31167 | } | |
31168 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
31169 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
31170 | } | |
31171 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
31172 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
31173 | } | |
31174 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
31175 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
31176 | } | |
31177 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
31178 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
31179 | } | |
31180 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
31181 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31182 | } | |
31183 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
31184 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
31185 | } | |
31186 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
31187 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
31188 | } | |
31189 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
31190 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
31191 | } | |
31192 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
31193 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31194 | } | |
31195 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
31196 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31197 | } | |
31198 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
31199 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
31200 | } | |
31201 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
31202 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31203 | } | |
31204 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
31205 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31206 | } | |
31207 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
31208 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31209 | } | |
31210 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
31211 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31212 | } | |
31213 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
31214 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
31215 | } | |
31216 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
31217 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
31218 | } | |
31219 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
31220 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31221 | } | |
31222 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
31223 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31224 | } | |
31225 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
31226 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
31227 | } | |
31228 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
31229 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
31230 | } | |
31231 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
31232 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
31233 | } | |
31234 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
31235 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
31236 | } | |
31237 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
31238 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
31239 | } | |
31240 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
31241 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
31242 | } | |
31243 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
31244 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
31245 | } | |
31246 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
31247 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31248 | } | |
31249 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
31250 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31251 | } | |
31252 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
31253 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31254 | } | |
31255 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
31256 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31257 | } | |
31258 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
31259 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31260 | } | |
31261 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
31262 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
31263 | } | |
31264 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
31265 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
31266 | } | |
31267 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
31268 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31269 | } | |
31270 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
31271 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
31272 | } | |
31273 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
31274 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
31275 | } | |
31276 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
31277 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31278 | } | |
31279 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
31280 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31281 | } | |
31282 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
31283 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31284 | } | |
31285 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
31286 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
31287 | } | |
31288 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
31289 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
31290 | } | |
eb9b6107 RD |
31291 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
31292 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31293 | } | |
d14a1e28 RD |
31294 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
31295 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31296 | } | |
31297 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
31298 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31299 | } | |
31300 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
31301 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
31302 | } | |
31303 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
31304 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
31305 | } | |
31306 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
31307 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
31308 | } | |
31309 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
31310 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31311 | } | |
31312 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
31313 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
31314 | } | |
31315 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
31316 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31317 | } | |
31318 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
31319 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
31320 | } | |
31321 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
31322 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
31323 | } | |
31324 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
31325 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
31326 | } | |
31327 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
31328 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
31329 | } | |
31330 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
31331 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31332 | } | |
31333 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
31334 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
31335 | } | |
31336 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
31337 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
31338 | } | |
31339 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
31340 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
31341 | } | |
31342 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
31343 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
31344 | } | |
31345 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
31346 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31347 | } | |
31348 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
31349 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
31350 | } | |
31351 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
31352 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
31353 | } | |
31354 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
31355 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
31356 | } | |
31357 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
31358 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
31359 | } | |
31360 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
31361 | return (void *)((wxControl *) ((wxGauge *) x)); | |
31362 | } | |
31363 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
31364 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
31365 | } | |
31366 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
31367 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
31368 | } | |
31369 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
31370 | return (void *)((wxControl *) ((wxButton *) x)); | |
31371 | } | |
31372 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
31373 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
31374 | } | |
31375 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
31376 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31377 | } | |
31378 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
31379 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
31380 | } | |
31381 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
31382 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
31383 | } | |
31384 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
31385 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
31386 | } | |
31387 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
31388 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
31389 | } | |
31390 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
31391 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
31392 | } | |
31393 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
31394 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
31395 | } | |
31396 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
31397 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
31398 | } | |
31399 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
31400 | return (void *)((wxControl *) ((wxSlider *) x)); | |
31401 | } | |
31402 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
31403 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
31404 | } | |
31405 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
31406 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
31407 | } | |
31408 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
31409 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
31410 | } | |
31411 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
31412 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
31413 | } | |
31414 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
31415 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
31416 | } | |
31417 | static void *_p_wxComboBoxTo_p_wxChoice(void *x) { | |
31418 | return (void *)((wxChoice *) ((wxComboBox *) x)); | |
31419 | } | |
31420 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
31421 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31422 | } | |
31423 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
31424 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31425 | } | |
31426 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
31427 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31428 | } | |
31429 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
31430 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
31431 | } | |
eb9b6107 RD |
31432 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
31433 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31434 | } | |
d14a1e28 RD |
31435 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
31436 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31437 | } | |
31438 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
31439 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31440 | } | |
31441 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
31442 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31443 | } | |
31444 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
31445 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
31446 | } | |
31447 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
31448 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
31449 | } | |
31450 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
31451 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
31452 | } | |
31453 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
31454 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31455 | } | |
31456 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
31457 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
31458 | } | |
31459 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
31460 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31461 | } | |
31462 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
31463 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31464 | } | |
31465 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
31466 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
31467 | } | |
31468 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
31469 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
31470 | } | |
31471 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
31472 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31473 | } | |
31474 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
31475 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31476 | } | |
31477 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
31478 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31479 | } | |
31480 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
31481 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31482 | } | |
31483 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
31484 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31485 | } | |
31486 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
31487 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
31488 | } | |
31489 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
31490 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31491 | } | |
31492 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
31493 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31494 | } | |
31495 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
31496 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31497 | } | |
31498 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
31499 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31500 | } | |
31501 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
31502 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31503 | } | |
31504 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
31505 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31506 | } | |
31507 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
31508 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31509 | } | |
31510 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
31511 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31512 | } | |
31513 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
31514 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31515 | } | |
31516 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
31517 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31518 | } | |
31519 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
31520 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31521 | } | |
31522 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
31523 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31524 | } | |
31525 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
31526 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31527 | } | |
31528 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
31529 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31530 | } | |
31531 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
31532 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31533 | } | |
31534 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
31535 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31536 | } | |
31537 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
31538 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31539 | } | |
31540 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
31541 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31542 | } | |
31543 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
31544 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31545 | } | |
31546 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
31547 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31548 | } | |
31549 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
31550 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
31551 | } | |
31552 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
31553 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31554 | } | |
31555 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
31556 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31557 | } | |
31558 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
31559 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31560 | } | |
31561 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
31562 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
31563 | } | |
31564 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
31565 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
31566 | } | |
31567 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
31568 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
31569 | } | |
31570 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
31571 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
31572 | } | |
31573 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
31574 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31575 | } | |
31576 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
31577 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31578 | } | |
31579 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
31580 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
31581 | } | |
31582 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
31583 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
31584 | } | |
31585 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
31586 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
31587 | } | |
31588 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
31589 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
31590 | } | |
31591 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
31592 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
31593 | } | |
31594 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
31595 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
31596 | } | |
31597 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
31598 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
31599 | } | |
31600 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
31601 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
31602 | } | |
31603 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
31604 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
31605 | } | |
31606 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
31607 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
31608 | } | |
31609 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
31610 | return (void *)((wxObject *) ((wxSizer *) x)); | |
31611 | } | |
31612 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
31613 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
31614 | } | |
31615 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
31616 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
31617 | } | |
31618 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
31619 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
31620 | } | |
31621 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
31622 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
31623 | } | |
31624 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
31625 | return (void *)((wxObject *) ((wxEvent *) x)); | |
31626 | } | |
31627 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
31628 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
31629 | } | |
31630 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
31631 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
31632 | } | |
31633 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
31634 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
31635 | } | |
31636 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
31637 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
31638 | } | |
31639 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
31640 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
31641 | } | |
31642 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
31643 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31644 | } | |
31645 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
31646 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
31647 | } | |
31648 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
31649 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
31650 | } | |
31651 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
31652 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
31653 | } | |
31654 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
31655 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
31656 | } | |
31657 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
31658 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
31659 | } | |
31660 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
31661 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
31662 | } | |
31663 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
31664 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
31665 | } | |
31666 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
31667 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
31668 | } | |
31669 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
31670 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
31671 | } | |
31672 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
31673 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
31674 | } | |
31675 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
31676 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
31677 | } | |
31678 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
31679 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
31680 | } | |
31681 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
31682 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
31683 | } | |
31684 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
31685 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
31686 | } | |
31687 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
31688 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
31689 | } | |
31690 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
31691 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
31692 | } | |
31693 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
31694 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
31695 | } | |
31696 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
31697 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
31698 | } | |
31699 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
31700 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
31701 | } | |
31702 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
31703 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
31704 | } | |
31705 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
31706 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
31707 | } | |
31708 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
31709 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
31710 | } | |
31711 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
31712 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31713 | } | |
31714 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
31715 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
31716 | } | |
31717 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
31718 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
31719 | } | |
31720 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
31721 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
31722 | } | |
31723 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
31724 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
31725 | } | |
31726 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
31727 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
31728 | } | |
31729 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
31730 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
31731 | } | |
31732 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
31733 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
31734 | } | |
31735 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
31736 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
31737 | } | |
31738 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
31739 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
31740 | } | |
31741 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
31742 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
31743 | } | |
31744 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
31745 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
31746 | } | |
31747 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
31748 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
31749 | } | |
31750 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
31751 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
31752 | } | |
31753 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
31754 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
31755 | } | |
31756 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
31757 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
31758 | } | |
31759 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
31760 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
31761 | } | |
31762 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
31763 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
31764 | } | |
31765 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
31766 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
31767 | } | |
31768 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
31769 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
31770 | } | |
31771 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
31772 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
31773 | } | |
31774 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
31775 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
31776 | } | |
31777 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
31778 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
31779 | } | |
31780 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
31781 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
31782 | } | |
31783 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
31784 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
31785 | } | |
31786 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
31787 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
31788 | } | |
31789 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
31790 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
31791 | } | |
31792 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
31793 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
31794 | } | |
31795 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
31796 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
31797 | } | |
31798 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
31799 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
31800 | } | |
31801 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
31802 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
31803 | } | |
31804 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
31805 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
31806 | } | |
d14a1e28 RD |
31807 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
31808 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
31809 | } | |
41f1cec7 RD |
31810 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
31811 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
31812 | } | |
d14a1e28 RD |
31813 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
31814 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
31815 | } | |
31816 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
31817 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
31818 | } | |
41f1cec7 RD |
31819 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
31820 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
31821 | } | |
d14a1e28 RD |
31822 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
31823 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
31824 | } | |
31825 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
31826 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
31827 | } | |
31828 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
31829 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31830 | } | |
31831 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
31832 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
31833 | } | |
31834 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
31835 | return (void *)((wxObject *) ((wxListItem *) x)); | |
31836 | } | |
31837 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
31838 | return (void *)((wxObject *) ((wxImage *) x)); | |
31839 | } | |
31840 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
31841 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
31842 | } | |
31843 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
31844 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
31845 | } | |
eb9b6107 RD |
31846 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
31847 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
31848 | } | |
423f194a RD |
31849 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
31850 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
31851 | } | |
d14a1e28 RD |
31852 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
31853 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
31854 | } | |
31855 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
31856 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
31857 | } | |
31858 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
31859 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
31860 | } | |
31861 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
31862 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
31863 | } | |
31864 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
31865 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
31866 | } | |
31867 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
31868 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
31869 | } | |
31870 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
31871 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
31872 | } | |
31873 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
31874 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
31875 | } | |
31876 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
31877 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
31878 | } | |
31879 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
31880 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
31881 | } | |
31882 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
31883 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
31884 | } | |
31885 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
31886 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
31887 | } | |
31888 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
31889 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
31890 | } | |
31891 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
31892 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
31893 | } | |
31894 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
31895 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
31896 | } | |
31897 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
31898 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
31899 | } | |
31900 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
31901 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
31902 | } | |
31903 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
31904 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
31905 | } | |
31906 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
31907 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
31908 | } | |
31909 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
31910 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
31911 | } | |
31912 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
31913 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
31914 | } | |
31915 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
31916 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
31917 | } | |
31918 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
31919 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
31920 | } | |
31921 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
31922 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
31923 | } | |
31924 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
31925 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
31926 | } | |
31927 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
31928 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31929 | } | |
31930 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
31931 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
31932 | } | |
31933 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
31934 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
31935 | } | |
31936 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
31937 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
31938 | } | |
31939 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
31940 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
31941 | } | |
31942 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
31943 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
31944 | } | |
31945 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
31946 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
31947 | } | |
31948 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
31949 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
31950 | } | |
31951 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
31952 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
31953 | } | |
31954 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
31955 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
31956 | } | |
31957 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
31958 | return (void *)((wxWindow *) ((wxControl *) x)); | |
31959 | } | |
31960 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
31961 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
31962 | } | |
31963 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
31964 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
31965 | } | |
31966 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
31967 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
31968 | } | |
31969 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
31970 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxComboBox *) x)); | |
31971 | } | |
31972 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
31973 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
31974 | } | |
31975 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
31976 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
31977 | } | |
31978 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
31979 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
31980 | } | |
31981 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
31982 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
31983 | } | |
31984 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
31985 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
31986 | } | |
31987 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
31988 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
31989 | } | |
31990 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
31991 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
31992 | } | |
31993 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
31994 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
31995 | } | |
31996 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
31997 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
31998 | } | |
31999 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32000 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32001 | } | |
32002 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32003 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32004 | } | |
32005 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32006 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32007 | } | |
32008 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32009 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32010 | } | |
32011 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32012 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32013 | } | |
32014 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32015 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32016 | } | |
32017 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32018 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32019 | } | |
32020 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32021 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32022 | } | |
32023 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32024 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32025 | } | |
32026 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32027 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32028 | } | |
32029 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32030 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32031 | } | |
32032 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32033 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32034 | } | |
32035 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32036 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32037 | } | |
32038 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32039 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32040 | } | |
32041 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32042 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32043 | } | |
32044 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32045 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32046 | } | |
32047 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32048 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32049 | } | |
32050 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32051 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32052 | } | |
32053 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32054 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32055 | } | |
32056 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32057 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32058 | } | |
32059 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32060 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32061 | } | |
32062 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32063 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32064 | } | |
32065 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
32066 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32067 | } | |
32068 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
32069 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32070 | } | |
32071 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
32072 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
32073 | } | |
32074 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
32075 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32076 | } | |
32077 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
32078 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32079 | } | |
eb9b6107 RD |
32080 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
32081 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32082 | } | |
d14a1e28 RD |
32083 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
32084 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
32085 | } | |
32086 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
32087 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32088 | } | |
32089 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
32090 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32091 | } | |
32092 | static void *_p_wxComboBoxTo_p_wxControlWithItems(void *x) { | |
32093 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxComboBox *) x)); | |
32094 | } | |
32095 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
32096 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32097 | } | |
32098 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
32099 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
32100 | } | |
32101 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
32102 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
32103 | } | |
32104 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
32105 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
32106 | } | |
32107 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
32108 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
32109 | } | |
2f4c0a16 RD |
32110 | 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}}; |
32111 | 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}}; | |
32112 | 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}}; | |
32113 | 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}}; | |
32114 | 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}}; | |
32115 | 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}}; | |
32116 | 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}}; | |
32117 | 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}}; | |
32118 | 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}}; | |
32119 | 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}}; | |
32120 | 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}}; | |
32121 | 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}}; | |
32122 | 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}}; | |
32123 | 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}}; | |
32124 | 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}}; | |
32125 | 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}}; | |
32126 | 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}}; | |
32127 | 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}}; | |
32128 | 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}}; | |
32129 | 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}}; | |
32130 | 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}}; | |
32131 | 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}}; | |
32132 | 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}}; | |
32133 | 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}}; | |
32134 | 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}}; | |
32135 | 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}}; | |
32136 | 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}}; | |
32137 | 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}}; | |
32138 | 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}}; | |
32139 | 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}}; | |
32140 | 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}}; | |
32141 | 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}}; | |
32142 | 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}}; | |
32143 | 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}}; | |
32144 | 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}}; | |
32145 | 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}}; | |
32146 | 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}}; | |
32147 | 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}}; | |
32148 | 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}}; | |
32149 | 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}}; | |
32150 | 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}}; | |
32151 | 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}}; | |
32152 | 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}}; | |
32153 | 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}}; | |
32154 | 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}}; | |
32155 | 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}}; | |
32156 | 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}}; | |
32157 | 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}}; | |
32158 | 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}}; | |
32159 | 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}}; | |
32160 | 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}}; | |
32161 | 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}}; | |
32162 | 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}}; | |
32163 | 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}}; | |
32164 | 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}}; | |
32165 | 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}}; | |
32166 | 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}}; | |
32167 | 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}}; | |
32168 | 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}}; | |
32169 | 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}}; | |
32170 | 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}}; | |
32171 | 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}}; | |
32172 | 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}}; | |
32173 | 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}}; | |
32174 | 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}}; | |
32175 | 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}}; | |
32176 | 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}}; | |
32177 | 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}}; | |
32178 | 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}}; | |
32179 | 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}}; | |
32180 | 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}}; | |
32181 | 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}}; | |
32182 | 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}}; | |
32183 | 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}}; | |
32184 | 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}}; | |
32185 | 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}}; | |
32186 | 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}}; | |
32187 | 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}}; | |
32188 | 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}}; | |
32189 | 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}}; | |
32190 | 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}}; | |
32191 | 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}}; | |
32192 | 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}}; | |
32193 | 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 |
32194 | |
32195 | static swig_type_info *swig_types_initial[] = { | |
32196 | _swigt__p_wxTextUrlEvent, | |
32197 | _swigt__p_wxBookCtrlEvent, | |
32198 | _swigt__p_wxSizer, | |
d14a1e28 RD |
32199 | _swigt__p_wxCheckBox, |
32200 | _swigt__p_wxPyTreeCtrl, | |
32201 | _swigt__p_wxEvent, | |
32202 | _swigt__p_wxGenericDirCtrl, | |
32203 | _swigt__p_bool, | |
32204 | _swigt__p_wxPyTreeItemData, | |
32205 | _swigt__p_wxItemContainer, | |
32206 | _swigt__p_wxDirFilterListCtrl, | |
32207 | _swigt__p_wxPyListCtrl, | |
32208 | _swigt__p_wxStaticLine, | |
32209 | _swigt__p_wxControl, | |
32210 | _swigt__p_wxPyControl, | |
32211 | _swigt__p_wxGauge, | |
32212 | _swigt__p_wxToolBarBase, | |
32213 | _swigt__p_wxFont, | |
32214 | _swigt__p_wxToggleButton, | |
32215 | _swigt__p_wxRadioButton, | |
32216 | _swigt__p_wxChoice, | |
423f194a | 32217 | _swigt__p_wxMemoryDC, |
d14a1e28 | 32218 | _swigt__p_wxListItemAttr, |
58203fa6 | 32219 | _swigt__p_void, |
d14a1e28 RD |
32220 | _swigt__p_int, |
32221 | _swigt__p_wxSize, | |
423f194a | 32222 | _swigt__p_wxDC, |
d14a1e28 RD |
32223 | _swigt__p_wxListView, |
32224 | _swigt__p_wxIcon, | |
32225 | _swigt__p_wxTextCtrl, | |
32226 | _swigt__p_wxNotebook, | |
32227 | _swigt__p_wxNotifyEvent, | |
32228 | _swigt__p_wxArrayString, | |
32229 | _swigt__p_wxListbook, | |
32230 | _swigt__p_wxStaticBitmap, | |
32231 | _swigt__p_wxSlider, | |
32232 | _swigt__p_wxStaticBox, | |
32233 | _swigt__p_wxArrayInt, | |
32234 | _swigt__p_wxContextHelp, | |
32235 | _swigt__p_long, | |
32236 | _swigt__p_wxEvtHandler, | |
32237 | _swigt__p_wxListEvent, | |
32238 | _swigt__p_wxListBox, | |
32239 | _swigt__p_wxCheckListBox, | |
32240 | _swigt__p_wxBookCtrl, | |
32241 | _swigt__p_wxSpinButton, | |
32242 | _swigt__p_wxButton, | |
32243 | _swigt__p_wxBitmapButton, | |
32244 | _swigt__p_wxRect, | |
32245 | _swigt__p_wxContextHelpButton, | |
32246 | _swigt__p_wxRadioBox, | |
32247 | _swigt__p_wxScrollBar, | |
8edf1c75 | 32248 | _swigt__p_char, |
d14a1e28 RD |
32249 | _swigt__p_wxTreeItemId, |
32250 | _swigt__p_wxComboBox, | |
32251 | _swigt__p_wxHelpEvent, | |
32252 | _swigt__p_wxListItem, | |
32253 | _swigt__p_wxNotebookSizer, | |
eb9b6107 | 32254 | _swigt__p_wxSpinEvent, |
423f194a | 32255 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
32256 | _swigt__p_wxSpinCtrl, |
32257 | _swigt__p_wxImageList, | |
32258 | _swigt__p_wxHelpProvider, | |
32259 | _swigt__p_wxTextAttr, | |
32260 | _swigt__p_wxSimpleHelpProvider, | |
32261 | _swigt__p_wxPoint, | |
32262 | _swigt__p_wxListbookEvent, | |
32263 | _swigt__p_wxNotebookEvent, | |
32264 | _swigt__p_wxObject, | |
423f194a | 32265 | _swigt__p_wxCursor, |
d14a1e28 RD |
32266 | _swigt__p_wxKeyEvent, |
32267 | _swigt__p_wxWindow, | |
32268 | _swigt__p_wxString, | |
32269 | _swigt__p_wxBitmap, | |
32270 | _swigt__p_wxTreeEvent, | |
32271 | _swigt__p_wxMouseEvent, | |
32272 | _swigt__p_wxCommandEvent, | |
32273 | _swigt__p_wxStaticText, | |
32274 | _swigt__p_wxControlWithItems, | |
32275 | _swigt__p_wxToolBarToolBase, | |
32276 | _swigt__p_wxColour, | |
32277 | _swigt__p_wxToolBar, | |
32278 | _swigt__p_wxBookCtrlSizer, | |
32279 | _swigt__p_wxValidator, | |
32280 | 0 | |
32281 | }; | |
32282 | ||
32283 | ||
32284 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
32285 | ||
32286 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
32287 | {0}}; |
32288 | ||
32289 | #ifdef __cplusplus | |
32290 | } | |
32291 | #endif | |
32292 | ||
32293 | #ifdef __cplusplus | |
32294 | extern "C" | |
32295 | #endif | |
32296 | SWIGEXPORT(void) SWIG_init(void) { | |
32297 | static PyObject *SWIG_globals = 0; | |
32298 | static int typeinit = 0; | |
32299 | PyObject *m, *d; | |
32300 | int i; | |
32301 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
32302 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
32303 | d = PyModule_GetDict(m); | |
32304 | ||
32305 | if (!typeinit) { | |
32306 | for (i = 0; swig_types_initial[i]; i++) { | |
32307 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
32308 | } | |
32309 | typeinit = 1; | |
32310 | } | |
32311 | SWIG_InstallConstants(d,swig_const_table); | |
32312 | ||
d03fd34d RD |
32313 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
32314 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
2f4c0a16 RD |
32315 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
32316 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
32317 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
32318 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
32319 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
32320 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
d03fd34d | 32321 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
2f4c0a16 RD |
32322 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
32323 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
32324 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
32325 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
32326 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
32327 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
d03fd34d RD |
32328 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
32329 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
32330 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
2f4c0a16 RD |
32331 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
32332 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
32333 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
32334 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
d03fd34d RD |
32335 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
32336 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
32337 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
32338 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
32339 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
2f4c0a16 RD |
32340 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
32341 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
32342 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
32343 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
32344 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
32345 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
32346 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
32347 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
32348 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
32349 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
32350 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
32351 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
32352 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
32353 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
32354 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
32355 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
32356 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
32357 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
32358 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
32359 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
32360 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
32361 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
32362 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
32363 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
32364 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
32365 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
32366 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
32367 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
32368 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
32369 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
32370 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
32371 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
32372 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
32373 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
32374 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
32375 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
32376 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
32377 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
32378 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
32379 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
32380 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
32381 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
32382 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
32383 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
32384 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
d03fd34d RD |
32385 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
32386 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
32387 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
2f4c0a16 RD |
32388 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
32389 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
32390 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
32391 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 32392 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
d03fd34d RD |
32393 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
32394 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
32395 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
32396 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 32397 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
d03fd34d | 32398 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
2f4c0a16 RD |
32399 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
32400 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
32401 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
32402 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
32403 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
32404 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
32405 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
32406 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
32407 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
32408 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
32409 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
32410 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32411 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
32412 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
32413 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
32414 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
32415 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
32416 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
32417 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
32418 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
2f4c0a16 RD |
32419 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
32420 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
32421 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
32422 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
32423 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
32424 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
32425 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
32426 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
32427 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
32428 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
32429 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
32430 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
32431 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
32432 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
d03fd34d | 32433 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
2f4c0a16 RD |
32434 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
32435 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
32436 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
32437 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
32438 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
32439 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
32440 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
32441 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
32442 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
32443 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
32444 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
32445 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
32446 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
32447 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
32448 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
32449 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
32450 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
32451 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
32452 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
32453 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
32454 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
32455 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
32456 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
32457 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
32458 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
32459 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
32460 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
32461 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
32462 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
32463 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
32464 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
32465 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
32466 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
32467 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
32468 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
32469 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
32470 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
32471 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
32472 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
32473 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
32474 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
32475 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
32476 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
32477 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
32478 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
32479 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
32480 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
32481 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
32482 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
32483 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
32484 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
32485 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
32486 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
32487 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
32488 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
32489 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
32490 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
32491 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
32492 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
32493 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
32494 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
32495 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
32496 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
32497 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
32498 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
32499 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
32500 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
32501 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
32502 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
32503 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
32504 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
32505 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
32506 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
32507 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
32508 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
32509 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
32510 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
32511 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
32512 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
32513 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
32514 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
32515 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
32516 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
32517 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
32518 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
32519 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
32520 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
32521 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
32522 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
32523 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
32524 | ||
32525 | // Map renamed classes back to their common name for OOR | |
32526 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
32527 | ||
d03fd34d | 32528 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
2f4c0a16 RD |
32529 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
32530 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
32531 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
32532 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
32533 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
32534 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
32535 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
32536 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
32537 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
32538 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
32539 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
32540 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
32541 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
32542 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
32543 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
32544 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
32545 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
32546 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
32547 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
32548 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
32549 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
32550 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
32551 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
32552 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
32553 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
32554 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
32555 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
32556 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
32557 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
32558 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
32559 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
32560 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
32561 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
32562 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
32563 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
32564 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
32565 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
32566 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
32567 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
32568 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
32569 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
32570 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
32571 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
32572 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
32573 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
32574 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
32575 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
32576 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
32577 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
32578 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
32579 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
32580 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
32581 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
32582 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
9fd4be55 | 32583 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
32584 | |
32585 | // Map renamed classes back to their common name for OOR | |
32586 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
32587 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
32588 | ||
d03fd34d | 32589 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
2f4c0a16 RD |
32590 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
32591 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
32592 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
32593 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
32594 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
32595 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
32596 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
32597 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
32598 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
423f194a RD |
32599 | |
32600 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
32601 | ||
d14a1e28 RD |
32602 | } |
32603 |