]>
Commit | Line | Data |
---|---|---|
d14a1e28 RD |
1 | /* ---------------------------------------------------------------------------- |
2 | * This file was automatically generated by SWIG (http://www.swig.org). | |
a41e16b6 | 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 | |
c9c7117a 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 | ||
cc6dd355 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 |
cc6dd355 RD |
83 | # define SWIGEXPORT(a) a |
84 | # define SWIGIMPORT(a) a | |
d14a1e28 RD |
85 | #endif |
86 | ||
87 | #ifdef SWIG_GLOBAL | |
cc6dd355 | 88 | # define SWIGRUNTIME(a) SWIGEXPORT(a) |
d14a1e28 | 89 | #else |
cc6dd355 | 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 { | |
cc6dd355 | 101 | const char *name; |
d14a1e28 RD |
102 | swig_converter_func converter; |
103 | const char *str; | |
cc6dd355 | 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 *); | |
cc6dd355 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) | |
a41e16b6 | 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 | ||
994141e6 | 186 | typedef double (*py_objasdbl_conv)(PyObject *obj); |
d14a1e28 | 187 | |
cc6dd355 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 | ||
9d1d5697 | 200 | #define SWIG_contract_assert(expr, msg) if (!(expr)) { PyErr_SetString(PyExc_RuntimeError, (char *) msg ); goto fail; } else |
d14a1e28 | 201 | |
d14a1e28 RD |
202 | #ifdef __cplusplus |
203 | } | |
204 | #endif | |
205 | ||
206 | ||
d14a1e28 RD |
207 | /* -------- TYPES TABLE (BEGIN) -------- */ |
208 | ||
209 | #define SWIGTYPE_p_wxTextUrlEvent swig_types[0] | |
210 | #define SWIGTYPE_p_wxBookCtrlEvent swig_types[1] | |
211 | #define SWIGTYPE_p_wxSizer swig_types[2] | |
58203fa6 RD |
212 | #define SWIGTYPE_p_wxCheckBox swig_types[3] |
213 | #define SWIGTYPE_p_wxPyTreeCtrl swig_types[4] | |
214 | #define SWIGTYPE_p_wxEvent swig_types[5] | |
215 | #define SWIGTYPE_p_wxGenericDirCtrl swig_types[6] | |
216 | #define SWIGTYPE_p_bool swig_types[7] | |
217 | #define SWIGTYPE_p_wxPyTreeItemData swig_types[8] | |
218 | #define SWIGTYPE_p_wxItemContainer swig_types[9] | |
74a57fcd RD |
219 | #define SWIGTYPE_p_wxPyListCtrl swig_types[10] |
220 | #define SWIGTYPE_p_wxDirFilterListCtrl swig_types[11] | |
58203fa6 RD |
221 | #define SWIGTYPE_p_wxStaticLine swig_types[12] |
222 | #define SWIGTYPE_p_wxControl swig_types[13] | |
223 | #define SWIGTYPE_p_wxPyControl swig_types[14] | |
224 | #define SWIGTYPE_p_wxGauge swig_types[15] | |
225 | #define SWIGTYPE_p_wxToolBarBase swig_types[16] | |
226 | #define SWIGTYPE_p_wxFont swig_types[17] | |
227 | #define SWIGTYPE_p_wxToggleButton swig_types[18] | |
228 | #define SWIGTYPE_p_wxRadioButton swig_types[19] | |
229 | #define SWIGTYPE_p_wxChoice swig_types[20] | |
230 | #define SWIGTYPE_p_wxMemoryDC swig_types[21] | |
231 | #define SWIGTYPE_p_wxListItemAttr swig_types[22] | |
232 | #define SWIGTYPE_p_void swig_types[23] | |
233 | #define SWIGTYPE_p_int swig_types[24] | |
234 | #define SWIGTYPE_p_wxSize swig_types[25] | |
235 | #define SWIGTYPE_p_wxDC swig_types[26] | |
236 | #define SWIGTYPE_p_wxListView swig_types[27] | |
237 | #define SWIGTYPE_p_wxIcon swig_types[28] | |
74a57fcd RD |
238 | #define SWIGTYPE_p_wxVisualAttributes swig_types[29] |
239 | #define SWIGTYPE_p_wxTextCtrl swig_types[30] | |
240 | #define SWIGTYPE_p_wxNotebook swig_types[31] | |
241 | #define SWIGTYPE_p_wxNotifyEvent swig_types[32] | |
242 | #define SWIGTYPE_p_wxArrayString swig_types[33] | |
243 | #define SWIGTYPE_p_wxListbook swig_types[34] | |
244 | #define SWIGTYPE_p_wxStaticBitmap swig_types[35] | |
245 | #define SWIGTYPE_p_wxSlider swig_types[36] | |
246 | #define SWIGTYPE_p_wxStaticBox swig_types[37] | |
247 | #define SWIGTYPE_p_wxArrayInt swig_types[38] | |
248 | #define SWIGTYPE_p_wxContextHelp swig_types[39] | |
249 | #define SWIGTYPE_p_long swig_types[40] | |
250 | #define SWIGTYPE_p_wxEvtHandler swig_types[41] | |
251 | #define SWIGTYPE_p_wxListEvent swig_types[42] | |
58203fa6 | 252 | #define SWIGTYPE_p_wxCheckListBox swig_types[43] |
74a57fcd RD |
253 | #define SWIGTYPE_p_wxListBox swig_types[44] |
254 | #define SWIGTYPE_p_wxBookCtrl swig_types[45] | |
255 | #define SWIGTYPE_p_wxSpinButton swig_types[46] | |
256 | #define SWIGTYPE_p_wxButton swig_types[47] | |
257 | #define SWIGTYPE_p_wxBitmapButton swig_types[48] | |
258 | #define SWIGTYPE_p_wxRect swig_types[49] | |
259 | #define SWIGTYPE_p_wxContextHelpButton swig_types[50] | |
260 | #define SWIGTYPE_p_wxRadioBox swig_types[51] | |
261 | #define SWIGTYPE_p_wxScrollBar swig_types[52] | |
262 | #define SWIGTYPE_p_char swig_types[53] | |
263 | #define SWIGTYPE_p_wxTreeItemId swig_types[54] | |
264 | #define SWIGTYPE_p_wxComboBox swig_types[55] | |
265 | #define SWIGTYPE_p_wxHelpEvent swig_types[56] | |
266 | #define SWIGTYPE_p_wxListItem swig_types[57] | |
267 | #define SWIGTYPE_p_wxNotebookSizer swig_types[58] | |
268 | #define SWIGTYPE_p_wxSpinEvent swig_types[59] | |
269 | #define SWIGTYPE_p_wxGenericDragImage swig_types[60] | |
270 | #define SWIGTYPE_p_wxSpinCtrl swig_types[61] | |
271 | #define SWIGTYPE_p_wxImageList swig_types[62] | |
272 | #define SWIGTYPE_p_wxHelpProvider swig_types[63] | |
273 | #define SWIGTYPE_p_wxTextAttr swig_types[64] | |
274 | #define SWIGTYPE_p_wxSimpleHelpProvider swig_types[65] | |
275 | #define SWIGTYPE_p_wxPoint swig_types[66] | |
276 | #define SWIGTYPE_p_wxListbookEvent swig_types[67] | |
277 | #define SWIGTYPE_p_wxNotebookEvent swig_types[68] | |
278 | #define SWIGTYPE_p_wxObject swig_types[69] | |
279 | #define SWIGTYPE_p_wxCursor swig_types[70] | |
280 | #define SWIGTYPE_p_wxKeyEvent swig_types[71] | |
281 | #define SWIGTYPE_p_wxWindow swig_types[72] | |
282 | #define SWIGTYPE_p_wxString swig_types[73] | |
283 | #define SWIGTYPE_p_wxBitmap swig_types[74] | |
284 | #define SWIGTYPE_p_wxTreeEvent swig_types[75] | |
285 | #define SWIGTYPE_p_wxMouseEvent swig_types[76] | |
286 | #define SWIGTYPE_p_wxCommandEvent swig_types[77] | |
287 | #define SWIGTYPE_p_wxStaticText swig_types[78] | |
288 | #define SWIGTYPE_p_wxControlWithItems swig_types[79] | |
289 | #define SWIGTYPE_p_wxToolBarToolBase swig_types[80] | |
290 | #define SWIGTYPE_p_wxColour swig_types[81] | |
291 | #define SWIGTYPE_p_wxToolBar swig_types[82] | |
292 | #define SWIGTYPE_p_wxBookCtrlSizer swig_types[83] | |
293 | #define SWIGTYPE_p_wxValidator swig_types[84] | |
294 | static swig_type_info *swig_types[86]; | |
d14a1e28 RD |
295 | |
296 | /* -------- TYPES TABLE (END) -------- */ | |
297 | ||
298 | ||
299 | /*----------------------------------------------- | |
54f9ee45 | 300 | @(target):= _controls_.so |
d14a1e28 | 301 | ------------------------------------------------*/ |
54f9ee45 | 302 | #define SWIG_init init_controls_ |
d14a1e28 | 303 | |
54f9ee45 | 304 | #define SWIG_name "_controls_" |
d14a1e28 | 305 | |
15afbcd0 | 306 | /* Auxiliar swig macros */ |
994141e6 | 307 | |
994141e6 | 308 | #ifdef __cplusplus |
15afbcd0 | 309 | #define SWIGSTATICINLINE(a) static inline a |
994141e6 | 310 | #define SWIGSTATIC(a) static a |
15afbcd0 RD |
311 | #define swig_new_array(type, size) (new type[(size)]) |
312 | #define swig_delete_array(cptr) delete[] cptr | |
313 | #define swig_const_cast(type,a) const_cast<type>(a) | |
314 | #define swig_static_cast(type,a) static_cast<type>(a) | |
315 | #define swig_reinterpret_cast(type,a) reinterpret_cast<type>(a) | |
994141e6 | 316 | |
994141e6 | 317 | #ifdef HAVE_NUMERIC_CAST |
15afbcd0 | 318 | #define swig_numeric_cast(type,a) numeric_cast<type>(a) |
994141e6 | 319 | #else |
15afbcd0 | 320 | #define swig_numeric_cast(type,a) static_cast<type>(a) |
994141e6 RD |
321 | #endif |
322 | ||
15afbcd0 RD |
323 | #else /* C case */ |
324 | ||
325 | #define SWIGSTATICINLINE(a) static a | |
326 | #define SWIGSTATIC(a) static a | |
327 | #define swig_new_array(type, size) ((type*) malloc((size)*sizeof(type))) | |
328 | #define swig_delete_array(cptr) free((char*)cptr) | |
329 | #define swig_const_cast(type,a) (type)(a) | |
330 | #define swig_static_cast(type,a) (type)(a) | |
331 | #define swig_reinterpret_cast(type,a) (type)(a) | |
332 | #define swig_numeric_cast(type,a) (type)(a) | |
333 | ||
334 | #endif /* __cplusplus */ | |
994141e6 RD |
335 | |
336 | ||
15afbcd0 RD |
337 | #define SWIG_FromSignedChar PyInt_FromLong |
338 | #define SWIG_FromUnsignedChar PyInt_FromLong | |
339 | #define SWIG_FromShort PyInt_FromLong | |
340 | #define SWIG_FromUnsignedShort PyInt_FromLong | |
341 | #define SWIG_FromInt PyInt_FromLong | |
342 | #define SWIG_FromLong PyInt_FromLong | |
343 | #define SWIG_FromFloat PyFloat_FromDouble | |
344 | #define SWIG_FromDouble PyFloat_FromDouble | |
345 | #define SWIG_FromFloat PyFloat_FromDouble | |
346 | #define SWIG_FromDouble PyFloat_FromDouble | |
994141e6 RD |
347 | |
348 | ||
d14a1e28 RD |
349 | #include "wx/wxPython/wxPython.h" |
350 | #include "wx/wxPython/pyclasses.h" | |
351 | ||
b2dc1044 RD |
352 | static const wxString wxPyPanelNameStr(wxPanelNameStr); |
353 | static const wxString wxPyEmptyString(wxEmptyString); | |
354 | static const wxString wxPyControlNameStr(wxControlNameStr); | |
4d5c3d91 RD |
355 | |
356 | const wxArrayString wxPyEmptyStringArray; | |
357 | ||
b2dc1044 | 358 | static const wxString wxPyButtonNameStr(wxButtonNameStr); |
994141e6 | 359 | |
15afbcd0 RD |
360 | #include <limits.h> |
361 | ||
362 | ||
363 | SWIGSTATICINLINE(long) | |
364 | SWIG_CheckLongInRange(long value, const char* type, | |
365 | long min_value, long max_value) | |
366 | { | |
367 | if (!PyErr_Occurred()) { | |
368 | if (value < min_value) { | |
369 | PyObject *err = | |
370 | PyString_FromFormat("value %ld is less than '%s' minimum %ld", | |
371 | value, type, min_value); | |
372 | ||
373 | PyErr_SetObject(PyExc_OverflowError, err); | |
374 | Py_DECREF(err); | |
375 | } else if (value > max_value) { | |
376 | PyObject *err = | |
377 | PyString_FromFormat("value %ld is greater than '%s' maximum %ld", | |
378 | value, type, max_value); | |
379 | PyErr_SetObject(PyExc_OverflowError, err); | |
380 | Py_DECREF(err); | |
381 | } | |
382 | } | |
383 | return value; | |
384 | } | |
385 | ||
386 | ||
387 | SWIGSTATICINLINE(long) | |
388 | SWIG_AsLong(PyObject * obj) | |
389 | { | |
69223c70 RD |
390 | if (PyNumber_Check(obj)) |
391 | return PyInt_AsLong(obj); | |
392 | else { | |
393 | PyObject* errmsg = PyString_FromFormat("Expected number, got %s", | |
394 | obj->ob_type->tp_name); | |
395 | PyErr_SetObject(PyExc_TypeError, errmsg); | |
396 | Py_DECREF(errmsg); | |
397 | return 0; | |
398 | } | |
15afbcd0 RD |
399 | } |
400 | ||
401 | ||
402 | #if INT_MAX != LONG_MAX | |
403 | SWIGSTATICINLINE(int) | |
404 | SWIG_AsInt(PyObject *obj) | |
994141e6 | 405 | { |
15afbcd0 RD |
406 | return swig_numeric_cast(int, |
407 | SWIG_CheckLongInRange(SWIG_AsLong(obj), | |
408 | "int", INT_MIN, INT_MAX)); | |
994141e6 | 409 | } |
15afbcd0 RD |
410 | #else |
411 | #define SWIG_AsInt SWIG_AsLong | |
412 | #endif | |
994141e6 RD |
413 | |
414 | ||
15afbcd0 RD |
415 | SWIGSTATICINLINE(int) |
416 | SWIG_CheckInt(PyObject* obj) | |
994141e6 | 417 | { |
15afbcd0 RD |
418 | SWIG_AsInt(obj); |
419 | if (PyErr_Occurred()) { | |
420 | PyErr_Clear(); | |
421 | return 0; | |
422 | } else { | |
423 | return 1; | |
424 | } | |
425 | } | |
426 | ||
427 | ||
428 | SWIGSTATICINLINE(int) | |
429 | SWIG_CheckLong(PyObject* obj) | |
430 | { | |
431 | SWIG_AsLong(obj); | |
432 | if (PyErr_Occurred()) { | |
433 | PyErr_Clear(); | |
434 | return 0; | |
435 | } else { | |
436 | return 1; | |
437 | } | |
994141e6 RD |
438 | } |
439 | ||
b2dc1044 | 440 | static const wxString wxPyCheckBoxNameStr(wxCheckBoxNameStr); |
994141e6 | 441 | |
15afbcd0 RD |
442 | SWIGSTATICINLINE(bool) |
443 | SWIG_AsBool(PyObject *obj) | |
994141e6 RD |
444 | { |
445 | return PyObject_IsTrue(obj) ? true : false; | |
446 | } | |
447 | ||
15afbcd0 RD |
448 | |
449 | SWIGSTATICINLINE(int) | |
450 | SWIG_CheckBool(PyObject* obj) | |
451 | { | |
452 | SWIG_AsBool(obj); | |
453 | if (PyErr_Occurred()) { | |
454 | PyErr_Clear(); | |
455 | return 0; | |
456 | } else { | |
457 | return 1; | |
458 | } | |
459 | } | |
460 | ||
b2dc1044 RD |
461 | static const wxString wxPyChoiceNameStr(wxChoiceNameStr); |
462 | static const wxString wxPyComboBoxNameStr(wxComboBoxNameStr); | |
463 | static const wxString wxPyGaugeNameStr(wxGaugeNameStr); | |
464 | static const wxString wxPyStaticBitmapNameStr(wxStaticBitmapNameStr); | |
465 | static const wxString wxPyStaticBoxNameStr(wxStaticBoxNameStr); | |
466 | static const wxString wxPyStaticTextNameStr(wxStaticTextNameStr); | |
d14a1e28 RD |
467 | |
468 | #include <wx/checklst.h> | |
469 | ||
d14a1e28 | 470 | |
b2dc1044 | 471 | static const wxString wxPyListBoxNameStr(wxListBoxNameStr); |
d14a1e28 RD |
472 | void wxListBox_Insert(wxListBox *self,wxString const &item,int pos,PyObject *clientData){ |
473 | if (clientData) { | |
474 | wxPyClientData* data = new wxPyClientData(clientData); | |
475 | self->Insert(item, pos, data); | |
476 | } else | |
477 | self->Insert(item, pos); | |
478 | } | |
479 | PyObject *wxListBox_GetSelections(wxListBox *self){ | |
480 | wxArrayInt lst; | |
481 | self->GetSelections(lst); | |
482 | PyObject *tup = PyTuple_New(lst.GetCount()); | |
483 | for(size_t i=0; i<lst.GetCount(); i++) { | |
484 | PyTuple_SetItem(tup, i, PyInt_FromLong(lst[i])); | |
485 | } | |
486 | return tup; | |
487 | } | |
c3eb6258 RD |
488 | void wxListBox_SetItemForegroundColour(wxListBox *self,int item,wxColour const &c){ |
489 | #ifdef __WXMSW__ | |
490 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
491 | self->GetItem(item)->SetTextColour(c); | |
492 | #endif | |
493 | } | |
494 | void wxListBox_SetItemBackgroundColour(wxListBox *self,int item,wxColour const &c){ | |
495 | #ifdef __WXMSW__ | |
496 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
497 | self->GetItem(item)->SetBackgroundColour(c); | |
498 | #endif | |
499 | } | |
500 | void wxListBox_SetItemFont(wxListBox *self,int item,wxFont const &f){ | |
501 | #ifdef __WXMSW__ | |
502 | if (self->GetWindowStyle() & wxLB_OWNERDRAW) | |
503 | self->GetItem(item)->SetFont(f); | |
504 | #endif | |
505 | } | |
b2dc1044 | 506 | static const wxString wxPyTextCtrlNameStr(wxTextCtrlNameStr); |
d14a1e28 RD |
507 | |
508 | static PyObject* t_output_helper(PyObject* target, PyObject* o) { | |
509 | PyObject* o2; | |
510 | PyObject* o3; | |
511 | ||
512 | if (!target) { | |
513 | target = o; | |
514 | } else if (target == Py_None) { | |
515 | Py_DECREF(Py_None); | |
516 | target = o; | |
517 | } else { | |
518 | if (!PyTuple_Check(target)) { | |
519 | o2 = target; | |
520 | target = PyTuple_New(1); | |
521 | PyTuple_SetItem(target, 0, o2); | |
522 | } | |
523 | o3 = PyTuple_New(1); | |
524 | PyTuple_SetItem(o3, 0, o); | |
525 | ||
526 | o2 = target; | |
527 | target = PySequence_Concat(o2, o3); | |
528 | Py_DECREF(o2); | |
529 | Py_DECREF(o3); | |
530 | } | |
531 | return target; | |
532 | } | |
533 | ||
15afbcd0 RD |
534 | |
535 | SWIGSTATICINLINE(unsigned long) | |
536 | SWIG_AsUnsignedLong(PyObject * obj) | |
537 | { | |
538 | if (PyLong_Check(obj)) { | |
539 | return PyLong_AsUnsignedLong(obj); | |
540 | } else { | |
69223c70 | 541 | long i = SWIG_AsLong(obj); |
15afbcd0 | 542 | if ( !PyErr_Occurred() && (i < 0)) { |
69223c70 | 543 | PyErr_SetString(PyExc_TypeError, "negative value received for unsigned type"); |
15afbcd0 RD |
544 | } |
545 | return i; | |
546 | } | |
547 | } | |
548 | ||
549 | ||
550 | SWIGSTATICINLINE(int) | |
551 | SWIG_CheckUnsignedLong(PyObject* obj) | |
552 | { | |
553 | SWIG_AsUnsignedLong(obj); | |
554 | if (PyErr_Occurred()) { | |
555 | PyErr_Clear(); | |
556 | return 0; | |
557 | } else { | |
558 | return 1; | |
559 | } | |
560 | } | |
561 | ||
d14a1e28 RD |
562 | void wxTextCtrl_write(wxTextCtrl *self,wxString const &text){ |
563 | self->AppendText(text); | |
564 | } | |
565 | wxString wxTextCtrl_GetString(wxTextCtrl *self,long from,long to){ | |
566 | return self->GetValue().Mid(from, to - from); | |
567 | } | |
b2dc1044 RD |
568 | static const wxString wxPyScrollBarNameStr(wxScrollBarNameStr); |
569 | static const wxString wxPySPIN_BUTTON_NAME(wxSPIN_BUTTON_NAME); | |
33b885b9 | 570 | static const wxString wxPySpinCtrlNameStr(_T("wxSpinCtrl")); |
b2dc1044 RD |
571 | static const wxString wxPyRadioBoxNameStr(wxRadioBoxNameStr); |
572 | static const wxString wxPyRadioButtonNameStr(wxRadioButtonNameStr); | |
d14a1e28 RD |
573 | int wxRadioBox_GetColumnCount(wxRadioBox const *self){ return -1; } |
574 | int wxRadioBox_GetRowCount(wxRadioBox const *self){ return -1; } | |
575 | int wxRadioBox_GetNextItem(wxRadioBox const *self,int item,wxDirection dir,long style){ return -1; } | |
576 | ||
577 | #include <wx/slider.h> | |
578 | ||
d14a1e28 | 579 | |
b2dc1044 | 580 | static const wxString wxPySliderNameStr(wxSliderNameStr); |
33b885b9 | 581 | static const wxString wxPyToggleButtonNameStr(_T("wxToggleButton")); |
d14a1e28 | 582 | |
15afbcd0 RD |
583 | #if !wxUSE_TOGGLEBTN |
584 | // implement dummy items for platforms that don't have this class | |
d14a1e28 RD |
585 | |
586 | #define wxEVT_COMMAND_TOGGLEBUTTON_CLICKED 0 | |
587 | ||
588 | class wxToggleButton : public wxControl | |
589 | { | |
590 | public: | |
591 | wxToggleButton(wxWindow *, wxWindowID, const wxString&, | |
592 | const wxPoint&, const wxSize&, long, | |
593 | const wxValidator&, const wxString&) | |
39f61e25 | 594 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
595 | |
596 | wxToggleButton() | |
39f61e25 | 597 | { wxPyRaiseNotImplemented(); } |
d14a1e28 RD |
598 | }; |
599 | #endif | |
600 | ||
b2dc1044 | 601 | static const wxString wxPyNOTEBOOK_NAME(wxNOTEBOOK_NAME); |
994141e6 | 602 | |
15afbcd0 RD |
603 | SWIGSTATICINLINE(PyObject* ) |
604 | SWIG_FromUnsignedLong(unsigned long value) | |
994141e6 | 605 | { |
15afbcd0 RD |
606 | return (value > LONG_MAX) ? |
607 | PyLong_FromUnsignedLong(value) | |
608 | : PyInt_FromLong(swig_numeric_cast(long,value)); | |
994141e6 RD |
609 | } |
610 | ||
b2dc1044 | 611 | static const wxString wxPyToolBarNameStr(wxToolBarNameStr); |
d14a1e28 RD |
612 | PyObject *wxToolBarToolBase_GetClientData(wxToolBarToolBase *self){ |
613 | wxPyUserData* udata = (wxPyUserData*)self->GetClientData(); | |
614 | if (udata) { | |
615 | Py_INCREF(udata->m_obj); | |
616 | return udata->m_obj; | |
617 | } else { | |
618 | Py_INCREF(Py_None); | |
619 | return Py_None; | |
620 | } | |
621 | } | |
622 | void wxToolBarToolBase_SetClientData(wxToolBarToolBase *self,PyObject *clientData){ | |
623 | self->SetClientData(new wxPyUserData(clientData)); | |
624 | } | |
625 | 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){ | |
626 | wxPyUserData* udata = NULL; | |
627 | if (clientData && clientData != Py_None) | |
628 | udata = new wxPyUserData(clientData); | |
629 | return self->AddTool(id, label, bitmap, bmpDisabled, kind, | |
630 | shortHelp, longHelp, udata); | |
631 | } | |
632 | 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){ | |
633 | wxPyUserData* udata = NULL; | |
634 | if (clientData && clientData != Py_None) | |
635 | udata = new wxPyUserData(clientData); | |
636 | return self->InsertTool(pos, id, label, bitmap, bmpDisabled, kind, | |
637 | shortHelp, longHelp, udata); | |
638 | } | |
639 | PyObject *wxToolBarBase_GetToolClientData(wxToolBarBase *self,int id){ | |
640 | wxPyUserData* udata = (wxPyUserData*)self->GetToolClientData(id); | |
641 | if (udata) { | |
642 | Py_INCREF(udata->m_obj); | |
643 | return udata->m_obj; | |
644 | } else { | |
645 | Py_INCREF(Py_None); | |
646 | return Py_None; | |
647 | } | |
648 | } | |
649 | void wxToolBarBase_SetToolClientData(wxToolBarBase *self,int id,PyObject *clientData){ | |
650 | self->SetToolClientData(id, new wxPyUserData(clientData)); | |
651 | } | |
652 | ||
653 | #include <wx/listctrl.h> | |
654 | ||
33b885b9 | 655 | static const wxString wxPyListCtrlNameStr(_T("wxListCtrl")); |
d14a1e28 RD |
656 | void wxListItemAttr_Destroy(wxListItemAttr *self){ delete self; } |
657 | // Python aware sorting function for wxPyListCtrl | |
658 | static int wxCALLBACK wxPyListCtrl_SortItems(long item1, long item2, long funcPtr) { | |
659 | int retval = 0; | |
660 | PyObject* func = (PyObject*)funcPtr; | |
4f89f6a3 | 661 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
662 | |
663 | PyObject* args = Py_BuildValue("(ii)", item1, item2); | |
664 | PyObject* result = PyEval_CallObject(func, args); | |
665 | Py_DECREF(args); | |
666 | if (result) { | |
667 | retval = PyInt_AsLong(result); | |
668 | Py_DECREF(result); | |
669 | } | |
670 | ||
4f89f6a3 | 671 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
672 | return retval; |
673 | } | |
674 | ||
675 | // C++ Version of a Python aware class | |
676 | class wxPyListCtrl : public wxListCtrl { | |
677 | DECLARE_ABSTRACT_CLASS(wxPyListCtrl); | |
678 | public: | |
679 | wxPyListCtrl() : wxListCtrl() {} | |
680 | wxPyListCtrl(wxWindow* parent, wxWindowID id, | |
681 | const wxPoint& pos, | |
682 | const wxSize& size, | |
683 | long style, | |
684 | const wxValidator& validator, | |
685 | const wxString& name) : | |
686 | wxListCtrl(parent, id, pos, size, style, validator, name) {} | |
687 | ||
688 | bool Create(wxWindow* parent, wxWindowID id, | |
689 | const wxPoint& pos, | |
690 | const wxSize& size, | |
691 | long style, | |
692 | const wxValidator& validator, | |
693 | const wxString& name) { | |
694 | return wxListCtrl::Create(parent, id, pos, size, style, validator, name); | |
695 | } | |
696 | ||
697 | DEC_PYCALLBACK_STRING_LONGLONG(OnGetItemText); | |
698 | DEC_PYCALLBACK_INT_LONG(OnGetItemImage); | |
699 | DEC_PYCALLBACK_LISTATTR_LONG(OnGetItemAttr); | |
700 | ||
701 | PYPRIVATE; | |
702 | }; | |
703 | ||
704 | IMPLEMENT_ABSTRACT_CLASS(wxPyListCtrl, wxListCtrl); | |
705 | ||
706 | IMP_PYCALLBACK_STRING_LONGLONG(wxPyListCtrl, wxListCtrl, OnGetItemText); | |
707 | IMP_PYCALLBACK_INT_LONG(wxPyListCtrl, wxListCtrl, OnGetItemImage); | |
708 | IMP_PYCALLBACK_LISTATTR_LONG(wxPyListCtrl, wxListCtrl, OnGetItemAttr); | |
709 | ||
710 | wxListItem *wxPyListCtrl_GetColumn(wxPyListCtrl *self,int col){ | |
711 | wxListItem item; | |
712 | item.SetMask( wxLIST_MASK_STATE | | |
713 | wxLIST_MASK_TEXT | | |
714 | wxLIST_MASK_IMAGE | | |
715 | wxLIST_MASK_DATA | | |
716 | wxLIST_SET_ITEM | | |
717 | wxLIST_MASK_WIDTH | | |
718 | wxLIST_MASK_FORMAT | |
719 | ); | |
720 | if (self->GetColumn(col, item)) | |
721 | return new wxListItem(item); | |
722 | else | |
723 | return NULL; | |
724 | } | |
725 | wxListItem *wxPyListCtrl_GetItem(wxPyListCtrl *self,long itemId,int col){ | |
726 | wxListItem* info = new wxListItem; | |
727 | info->m_itemId = itemId; | |
728 | info->m_col = col; | |
729 | info->m_mask = 0xFFFF; | |
730 | self->GetItem(*info); | |
731 | return info; | |
732 | } | |
733 | wxPoint wxPyListCtrl_GetItemPosition(wxPyListCtrl *self,long item){ | |
734 | wxPoint pos; | |
735 | self->GetItemPosition(item, pos); | |
736 | return pos; | |
737 | } | |
738 | wxRect wxPyListCtrl_GetItemRect(wxPyListCtrl *self,long item,int code){ | |
739 | wxRect rect; | |
740 | self->GetItemRect(item, rect, code); | |
741 | return rect; | |
742 | } | |
743 | bool wxPyListCtrl_SortItems(wxPyListCtrl *self,PyObject *func){ | |
744 | if (!PyCallable_Check(func)) | |
e811c8ce | 745 | return False; |
d14a1e28 RD |
746 | return self->SortItems((wxListCtrlCompare)wxPyListCtrl_SortItems, (long)func); |
747 | } | |
748 | wxWindow *wxPyListCtrl_GetMainWindow(wxPyListCtrl *self){ | |
749 | ||
750 | ||
751 | ||
752 | return (wxWindow*)self->m_mainWin; | |
753 | ||
754 | } | |
755 | ||
756 | #include <wx/treectrl.h> | |
757 | #include "wx/wxPython/pytree.h" | |
d14a1e28 | 758 | |
33b885b9 | 759 | static const wxString wxPyTreeCtrlNameStr(_T("wxTreeCtrl")); |
22faec7d RD |
760 | bool wxTreeItemId___eq__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self == *other) : False; } |
761 | bool wxTreeItemId___ne__(wxTreeItemId *self,wxTreeItemId const *other){ return other ? (*self != *other) : True; } | |
d14a1e28 RD |
762 | void wxPyTreeItemData_Destroy(wxPyTreeItemData *self){ delete self; } |
763 | // C++ version of Python aware wxTreeCtrl | |
764 | class wxPyTreeCtrl : public wxTreeCtrl { | |
765 | DECLARE_ABSTRACT_CLASS(wxPyTreeCtrl); | |
766 | public: | |
767 | wxPyTreeCtrl() : wxTreeCtrl() {} | |
768 | wxPyTreeCtrl(wxWindow *parent, wxWindowID id, | |
769 | const wxPoint& pos, | |
770 | const wxSize& size, | |
771 | long style, | |
772 | const wxValidator& validator, | |
773 | const wxString& name) : | |
774 | wxTreeCtrl(parent, id, pos, size, style, validator, name) {} | |
775 | ||
776 | bool Create(wxWindow *parent, wxWindowID id, | |
777 | const wxPoint& pos, | |
778 | const wxSize& size, | |
779 | long style, | |
780 | const wxValidator& validator, | |
781 | const wxString& name) { | |
782 | return wxTreeCtrl::Create(parent, id, pos, size, style, validator, name); | |
783 | } | |
784 | ||
785 | ||
786 | int OnCompareItems(const wxTreeItemId& item1, | |
787 | const wxTreeItemId& item2) { | |
788 | int rval = 0; | |
789 | bool found; | |
4f89f6a3 | 790 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 791 | if ((found = wxPyCBH_findCallback(m_myInst, "OnCompareItems"))) { |
e811c8ce RD |
792 | PyObject *o1 = wxPyConstructObject((void*)&item1, wxT("wxTreeItemId"), False); |
793 | PyObject *o2 = wxPyConstructObject((void*)&item2, wxT("wxTreeItemId"), False); | |
d14a1e28 RD |
794 | rval = wxPyCBH_callCallback(m_myInst, Py_BuildValue("(OO)",o1,o2)); |
795 | Py_DECREF(o1); | |
796 | Py_DECREF(o2); | |
797 | } | |
4f89f6a3 | 798 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
799 | if (! found) |
800 | rval = wxTreeCtrl::OnCompareItems(item1, item2); | |
801 | return rval; | |
802 | } | |
803 | PYPRIVATE; | |
804 | }; | |
805 | ||
806 | IMPLEMENT_ABSTRACT_CLASS(wxPyTreeCtrl, wxTreeCtrl); | |
807 | ||
808 | ||
994141e6 | 809 | |
15afbcd0 RD |
810 | #if UINT_MAX < LONG_MAX |
811 | #define SWIG_FromUnsignedInt SWIG_FromLong | |
812 | #else | |
813 | #define SWIG_FromUnsignedInt SWIG_FromUnsignedLong | |
814 | #endif | |
815 | ||
816 | ||
817 | SWIGSTATICINLINE(unsigned long) | |
818 | SWIG_CheckUnsignedLongInRange(unsigned long value, const char* type, | |
819 | unsigned long max_value) | |
820 | { | |
821 | if (!PyErr_Occurred()) { | |
822 | if (value > max_value) { | |
823 | PyObject *err = | |
824 | PyString_FromFormat("value %ld is greater than '%s' minimum %ld", | |
825 | value, type, max_value); | |
826 | PyErr_SetObject(PyExc_OverflowError, err); | |
827 | Py_DECREF(err); | |
828 | } | |
829 | } | |
830 | return value; | |
831 | } | |
994141e6 RD |
832 | |
833 | ||
15afbcd0 RD |
834 | #if UINT_MAX != ULONG_MAX |
835 | SWIGSTATICINLINE(unsigned int) | |
836 | SWIG_AsUnsignedInt(PyObject *obj) | |
994141e6 | 837 | { |
15afbcd0 RD |
838 | return swig_numeric_cast(unsigned int, |
839 | SWIG_CheckUnsignedLongInRange(SWIG_AsUnsignedLong(obj), | |
840 | "unsigned int", UINT_MAX)); | |
841 | } | |
842 | #else | |
843 | #define SWIG_AsUnsignedInt SWIG_AsUnsignedLong | |
844 | #endif | |
845 | ||
846 | ||
847 | SWIGSTATICINLINE(int) | |
848 | SWIG_CheckUnsignedInt(PyObject* obj) | |
849 | { | |
850 | SWIG_AsUnsignedInt(obj); | |
851 | if (PyErr_Occurred()) { | |
852 | PyErr_Clear(); | |
853 | return 0; | |
854 | } else { | |
855 | return 1; | |
856 | } | |
994141e6 RD |
857 | } |
858 | ||
d14a1e28 RD |
859 | wxPyTreeItemData *wxPyTreeCtrl_GetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item){ |
860 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
861 | if (data == NULL) { | |
862 | data = new wxPyTreeItemData(); | |
863 | data->SetId(item); // set the id | |
864 | self->SetItemData(item, data); | |
865 | } | |
866 | return data; | |
867 | } | |
868 | PyObject *wxPyTreeCtrl_GetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
869 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
870 | if (data == NULL) { | |
871 | data = new wxPyTreeItemData(); | |
872 | data->SetId(item); // set the id | |
873 | self->SetItemData(item, data); | |
874 | } | |
875 | return data->GetData(); | |
876 | } | |
877 | void wxPyTreeCtrl_SetItemData(wxPyTreeCtrl *self,wxTreeItemId const &item,wxPyTreeItemData *data){ | |
878 | data->SetId(item); // set the id | |
879 | self->SetItemData(item, data); | |
880 | } | |
881 | void wxPyTreeCtrl_SetItemPyData(wxPyTreeCtrl *self,wxTreeItemId const &item,PyObject *obj){ | |
882 | wxPyTreeItemData* data = (wxPyTreeItemData*)self->GetItemData(item); | |
883 | if (data == NULL) { | |
884 | data = new wxPyTreeItemData(obj); | |
885 | data->SetId(item); // set the id | |
886 | self->SetItemData(item, data); | |
887 | } else | |
888 | data->SetData(obj); | |
889 | } | |
890 | PyObject *wxPyTreeCtrl_GetSelections(wxPyTreeCtrl *self){ | |
4f89f6a3 | 891 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 RD |
892 | PyObject* rval = PyList_New(0); |
893 | wxArrayTreeItemIds array; | |
894 | size_t num, x; | |
895 | num = self->GetSelections(array); | |
896 | for (x=0; x < num; x++) { | |
897 | wxTreeItemId *tii = new wxTreeItemId(array.Item(x)); | |
e811c8ce | 898 | PyObject* item = wxPyConstructObject((void*)tii, wxT("wxTreeItemId"), True); |
d14a1e28 | 899 | PyList_Append(rval, item); |
1a10c483 | 900 | Py_DECREF(item); |
d14a1e28 | 901 | } |
4f89f6a3 | 902 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
903 | return rval; |
904 | } | |
905 | PyObject *wxPyTreeCtrl_GetFirstChild(wxPyTreeCtrl *self,wxTreeItemId const &item){ | |
58203fa6 RD |
906 | void* cookie = 0; |
907 | wxTreeItemId* ritem = new wxTreeItemId(self->GetFirstChild(item, cookie)); | |
4f89f6a3 | 908 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 909 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
910 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
911 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 912 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
913 | return tup; |
914 | } | |
58203fa6 RD |
915 | PyObject *wxPyTreeCtrl_GetNextChild(wxPyTreeCtrl *self,wxTreeItemId const &item,void *cookie){ |
916 | wxTreeItemId* ritem = new wxTreeItemId(self->GetNextChild(item, cookie)); | |
4f89f6a3 | 917 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 918 | PyObject* tup = PyTuple_New(2); |
58203fa6 RD |
919 | PyTuple_SET_ITEM(tup, 0, wxPyConstructObject(ritem, wxT("wxTreeItemId"), True)); |
920 | PyTuple_SET_ITEM(tup, 1, wxPyMakeSwigPtr(cookie, wxT("void"))); | |
4f89f6a3 | 921 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
922 | return tup; |
923 | } | |
924 | PyObject *wxPyTreeCtrl_GetBoundingRect(wxPyTreeCtrl *self,wxTreeItemId const &item,bool textOnly){ | |
925 | wxRect rect; | |
926 | if (self->GetBoundingRect(item, rect, textOnly)) { | |
4f89f6a3 | 927 | bool blocked = wxPyBeginBlockThreads(); |
d14a1e28 | 928 | wxRect* r = new wxRect(rect); |
e811c8ce | 929 | PyObject* val = wxPyConstructObject((void*)r, wxT("wxRect"), True); |
4f89f6a3 | 930 | wxPyEndBlockThreads(blocked); |
d14a1e28 RD |
931 | return val; |
932 | } | |
933 | else | |
934 | RETURN_NONE(); | |
935 | } | |
b2dc1044 | 936 | static const wxString wxPyDirDialogDefaultFolderStr(wxDirDialogDefaultFolderStr); |
d14a1e28 RD |
937 | // C++ version of Python aware wxControl |
938 | class wxPyControl : public wxControl | |
939 | { | |
940 | DECLARE_DYNAMIC_CLASS(wxPyControl) | |
941 | public: | |
942 | wxPyControl() : wxControl() {} | |
943 | wxPyControl(wxWindow* parent, const wxWindowID id, | |
944 | const wxPoint& pos = wxDefaultPosition, | |
945 | const wxSize& size = wxDefaultSize, | |
946 | long style = 0, | |
947 | const wxValidator& validator=wxDefaultValidator, | |
948 | const wxString& name = wxPyControlNameStr) | |
949 | : wxControl(parent, id, pos, size, style, validator, name) {} | |
950 | ||
db3e571a | 951 | void SetBestSize(const wxSize& size) { wxControl::SetBestSize(size); } |
d14a1e28 RD |
952 | |
953 | DEC_PYCALLBACK_VOID_INT4(DoMoveWindow); | |
954 | DEC_PYCALLBACK_VOID_INT5(DoSetSize); | |
955 | DEC_PYCALLBACK_VOID_INTINT(DoSetClientSize); | |
956 | DEC_PYCALLBACK_VOID_INTINT(DoSetVirtualSize); | |
957 | ||
958 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetSize); | |
959 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetClientSize); | |
960 | DEC_PYCALLBACK_VOID_INTPINTP_const(DoGetPosition); | |
961 | ||
962 | DEC_PYCALLBACK_SIZE_const(DoGetVirtualSize); | |
963 | DEC_PYCALLBACK_SIZE_const(DoGetBestSize); | |
964 | ||
965 | DEC_PYCALLBACK__(InitDialog); | |
966 | DEC_PYCALLBACK_BOOL_(TransferDataFromWindow); | |
967 | DEC_PYCALLBACK_BOOL_(TransferDataToWindow); | |
968 | DEC_PYCALLBACK_BOOL_(Validate); | |
969 | ||
970 | DEC_PYCALLBACK_BOOL_const(AcceptsFocus); | |
971 | DEC_PYCALLBACK_BOOL_const(AcceptsFocusFromKeyboard); | |
972 | DEC_PYCALLBACK_SIZE_const(GetMaxSize); | |
973 | ||
974 | DEC_PYCALLBACK_VOID_WXWINBASE(AddChild); | |
975 | DEC_PYCALLBACK_VOID_WXWINBASE(RemoveChild); | |
976 | ||
db3e571a | 977 | DEC_PYCALLBACK_BOOL_const(ShouldInheritColours); |
1cb4a8aa | 978 | DEC_PYCALLBACK__COLOUR(ApplyParentThemeBackground); |
db3e571a | 979 | DEC_PYCALLBACK_VIZATTR_(GetDefaultAttributes); |
4276dc52 | 980 | |
d14a1e28 RD |
981 | PYPRIVATE; |
982 | }; | |
983 | ||
984 | IMPLEMENT_DYNAMIC_CLASS(wxPyControl, wxControl); | |
985 | ||
986 | IMP_PYCALLBACK_VOID_INT4(wxPyControl, wxControl, DoMoveWindow); | |
987 | IMP_PYCALLBACK_VOID_INT5(wxPyControl, wxControl, DoSetSize); | |
988 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetClientSize); | |
989 | IMP_PYCALLBACK_VOID_INTINT(wxPyControl, wxControl, DoSetVirtualSize); | |
990 | ||
991 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetSize); | |
992 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetClientSize); | |
993 | IMP_PYCALLBACK_VOID_INTPINTP_const(wxPyControl, wxControl, DoGetPosition); | |
994 | ||
995 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetVirtualSize); | |
996 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, DoGetBestSize); | |
997 | ||
998 | IMP_PYCALLBACK__(wxPyControl, wxControl, InitDialog); | |
999 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataFromWindow); | |
1000 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, TransferDataToWindow); | |
1001 | IMP_PYCALLBACK_BOOL_(wxPyControl, wxControl, Validate); | |
1002 | ||
1003 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocus); | |
1004 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, AcceptsFocusFromKeyboard); | |
1005 | IMP_PYCALLBACK_SIZE_const(wxPyControl, wxControl, GetMaxSize); | |
1006 | ||
1007 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, AddChild); | |
1008 | IMP_PYCALLBACK_VOID_WXWINBASE(wxPyControl, wxControl, RemoveChild); | |
1009 | ||
db3e571a | 1010 | IMP_PYCALLBACK_BOOL_const(wxPyControl, wxControl, ShouldInheritColours); |
1cb4a8aa | 1011 | IMP_PYCALLBACK__COLOUR(wxPyControl, wxControl, ApplyParentThemeBackground); |
db3e571a | 1012 | IMP_PYCALLBACK_VIZATTR_(wxPyControl, wxControl, GetDefaultAttributes); |
d14a1e28 RD |
1013 | |
1014 | ||
1015 | ||
1016 | void wxHelpProvider_Destroy(wxHelpProvider *self){ delete self; } | |
e811c8ce RD |
1017 | |
1018 | #include <wx/generic/dragimgg.h> | |
1019 | ||
d14a1e28 RD |
1020 | #ifdef __cplusplus |
1021 | extern "C" { | |
1022 | #endif | |
b2dc1044 RD |
1023 | static int _wrap_ButtonNameStr_set(PyObject *_val) { |
1024 | PyErr_SetString(PyExc_TypeError,"Variable ButtonNameStr is read-only."); | |
1025 | return 1; | |
1026 | } | |
1027 | ||
1028 | ||
1029 | static PyObject *_wrap_ButtonNameStr_get() { | |
1030 | PyObject *pyobj; | |
1031 | ||
1032 | { | |
1033 | #if wxUSE_UNICODE | |
1034 | pyobj = PyUnicode_FromWideChar((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1035 | #else | |
1036 | pyobj = PyString_FromStringAndSize((&wxPyButtonNameStr)->c_str(), (&wxPyButtonNameStr)->Len()); | |
1037 | #endif | |
1038 | } | |
1039 | return pyobj; | |
1040 | } | |
1041 | ||
1042 | ||
d14a1e28 RD |
1043 | static PyObject *_wrap_new_Button(PyObject *self, PyObject *args, PyObject *kwargs) { |
1044 | PyObject *resultobj; | |
1045 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1046 | int arg2 = (int) -1 ; |
1047 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1048 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1049 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1050 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1051 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1052 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1053 | long arg6 = (long) 0 ; | |
1054 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1055 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1056 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1057 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1058 | wxButton *result; | |
e811c8ce | 1059 | bool temp3 = False ; |
d14a1e28 RD |
1060 | wxPoint temp4 ; |
1061 | wxSize temp5 ; | |
e811c8ce | 1062 | bool temp8 = False ; |
d14a1e28 | 1063 | PyObject * obj0 = 0 ; |
994141e6 | 1064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1065 | PyObject * obj2 = 0 ; |
1066 | PyObject * obj3 = 0 ; | |
1067 | PyObject * obj4 = 0 ; | |
994141e6 | 1068 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1069 | PyObject * obj6 = 0 ; |
1070 | PyObject * obj7 = 0 ; | |
1071 | char *kwnames[] = { | |
1072 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1073 | }; | |
1074 | ||
248ed943 | 1075 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Button",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1076 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1077 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1078 | if (obj1) { |
1079 | arg2 = (int) SWIG_AsInt(obj1); | |
1080 | if (PyErr_Occurred()) SWIG_fail; | |
1081 | } | |
1082 | if (obj2) { | |
1083 | { | |
1084 | arg3 = wxString_in_helper(obj2); | |
1085 | if (arg3 == NULL) SWIG_fail; | |
1086 | temp3 = True; | |
1087 | } | |
d14a1e28 RD |
1088 | } |
1089 | if (obj3) { | |
1090 | { | |
1091 | arg4 = &temp4; | |
1092 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1093 | } | |
1094 | } | |
1095 | if (obj4) { | |
1096 | { | |
1097 | arg5 = &temp5; | |
1098 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1099 | } | |
1100 | } | |
994141e6 | 1101 | if (obj5) { |
15afbcd0 RD |
1102 | arg6 = (long) SWIG_AsLong(obj5); |
1103 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1104 | } |
d14a1e28 | 1105 | if (obj6) { |
15afbcd0 RD |
1106 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1107 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1108 | SWIG_fail; | |
d14a1e28 | 1109 | if (arg7 == NULL) { |
15afbcd0 RD |
1110 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1111 | SWIG_fail; | |
d14a1e28 RD |
1112 | } |
1113 | } | |
1114 | if (obj7) { | |
1115 | { | |
1116 | arg8 = wxString_in_helper(obj7); | |
1117 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1118 | temp8 = True; |
d14a1e28 RD |
1119 | } |
1120 | } | |
1121 | { | |
e3b71cb8 | 1122 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1124 | result = (wxButton *)new wxButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1125 | ||
1126 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1127 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1128 | } |
b0f7404b | 1129 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1130 | { |
1131 | if (temp3) | |
1132 | delete arg3; | |
1133 | } | |
1134 | { | |
1135 | if (temp8) | |
1136 | delete arg8; | |
1137 | } | |
1138 | return resultobj; | |
1139 | fail: | |
1140 | { | |
1141 | if (temp3) | |
1142 | delete arg3; | |
1143 | } | |
1144 | { | |
1145 | if (temp8) | |
1146 | delete arg8; | |
1147 | } | |
1148 | return NULL; | |
1149 | } | |
1150 | ||
1151 | ||
1152 | static PyObject *_wrap_new_PreButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1153 | PyObject *resultobj; | |
1154 | wxButton *result; | |
1155 | char *kwnames[] = { | |
1156 | NULL | |
1157 | }; | |
1158 | ||
1159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreButton",kwnames)) goto fail; | |
1160 | { | |
e3b71cb8 | 1161 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1163 | result = (wxButton *)new wxButton(); | |
1164 | ||
1165 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1166 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1167 | } |
b0f7404b | 1168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxButton, 1); |
d14a1e28 RD |
1169 | return resultobj; |
1170 | fail: | |
1171 | return NULL; | |
1172 | } | |
1173 | ||
1174 | ||
1175 | static PyObject *_wrap_Button_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1176 | PyObject *resultobj; | |
1177 | wxButton *arg1 = (wxButton *) 0 ; | |
1178 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1179 | int arg3 = (int) -1 ; |
1180 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
1181 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
1182 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1183 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1184 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1185 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1186 | long arg7 = (long) 0 ; | |
1187 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1188 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1189 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1190 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1191 | bool result; | |
e811c8ce | 1192 | bool temp4 = False ; |
d14a1e28 RD |
1193 | wxPoint temp5 ; |
1194 | wxSize temp6 ; | |
e811c8ce | 1195 | bool temp9 = False ; |
d14a1e28 RD |
1196 | PyObject * obj0 = 0 ; |
1197 | PyObject * obj1 = 0 ; | |
994141e6 | 1198 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1199 | PyObject * obj3 = 0 ; |
1200 | PyObject * obj4 = 0 ; | |
1201 | PyObject * obj5 = 0 ; | |
994141e6 | 1202 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1203 | PyObject * obj7 = 0 ; |
1204 | PyObject * obj8 = 0 ; | |
1205 | char *kwnames[] = { | |
1206 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1207 | }; | |
1208 | ||
248ed943 | 1209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Button_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1214 | if (obj2) { |
1215 | arg3 = (int) SWIG_AsInt(obj2); | |
1216 | if (PyErr_Occurred()) SWIG_fail; | |
1217 | } | |
1218 | if (obj3) { | |
1219 | { | |
1220 | arg4 = wxString_in_helper(obj3); | |
1221 | if (arg4 == NULL) SWIG_fail; | |
1222 | temp4 = True; | |
1223 | } | |
d14a1e28 RD |
1224 | } |
1225 | if (obj4) { | |
1226 | { | |
1227 | arg5 = &temp5; | |
1228 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1229 | } | |
1230 | } | |
1231 | if (obj5) { | |
1232 | { | |
1233 | arg6 = &temp6; | |
1234 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1235 | } | |
1236 | } | |
994141e6 | 1237 | if (obj6) { |
15afbcd0 RD |
1238 | arg7 = (long) SWIG_AsLong(obj6); |
1239 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1240 | } |
d14a1e28 | 1241 | if (obj7) { |
15afbcd0 RD |
1242 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1243 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1244 | SWIG_fail; | |
d14a1e28 | 1245 | if (arg8 == NULL) { |
15afbcd0 RD |
1246 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1247 | SWIG_fail; | |
d14a1e28 RD |
1248 | } |
1249 | } | |
1250 | if (obj8) { | |
1251 | { | |
1252 | arg9 = wxString_in_helper(obj8); | |
1253 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1254 | temp9 = True; |
d14a1e28 RD |
1255 | } |
1256 | } | |
1257 | { | |
1258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1259 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1260 | ||
1261 | wxPyEndAllowThreads(__tstate); | |
1262 | if (PyErr_Occurred()) SWIG_fail; | |
1263 | } | |
4f89f6a3 RD |
1264 | { |
1265 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1266 | } | |
d14a1e28 RD |
1267 | { |
1268 | if (temp4) | |
1269 | delete arg4; | |
1270 | } | |
1271 | { | |
1272 | if (temp9) | |
1273 | delete arg9; | |
1274 | } | |
1275 | return resultobj; | |
1276 | fail: | |
1277 | { | |
1278 | if (temp4) | |
1279 | delete arg4; | |
1280 | } | |
1281 | { | |
1282 | if (temp9) | |
1283 | delete arg9; | |
1284 | } | |
1285 | return NULL; | |
1286 | } | |
1287 | ||
1288 | ||
1289 | static PyObject *_wrap_Button_SetDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1290 | PyObject *resultobj; | |
1291 | wxButton *arg1 = (wxButton *) 0 ; | |
1292 | PyObject * obj0 = 0 ; | |
1293 | char *kwnames[] = { | |
1294 | (char *) "self", NULL | |
1295 | }; | |
1296 | ||
1297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Button_SetDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxButton, |
1299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1300 | { |
1301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1302 | (arg1)->SetDefault(); | |
1303 | ||
1304 | wxPyEndAllowThreads(__tstate); | |
1305 | if (PyErr_Occurred()) SWIG_fail; | |
1306 | } | |
1307 | Py_INCREF(Py_None); resultobj = Py_None; | |
1308 | return resultobj; | |
1309 | fail: | |
1310 | return NULL; | |
1311 | } | |
1312 | ||
1313 | ||
1314 | static PyObject *_wrap_Button_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1315 | PyObject *resultobj; | |
1316 | wxSize result; | |
1317 | char *kwnames[] = { | |
1318 | NULL | |
1319 | }; | |
1320 | ||
1321 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":Button_GetDefaultSize",kwnames)) goto fail; | |
1322 | { | |
1323 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1324 | result = wxButton::GetDefaultSize(); | |
1325 | ||
1326 | wxPyEndAllowThreads(__tstate); | |
1327 | if (PyErr_Occurred()) SWIG_fail; | |
1328 | } | |
1329 | { | |
1330 | wxSize * resultptr; | |
1331 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 1332 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
1333 | } |
1334 | return resultobj; | |
1335 | fail: | |
1336 | return NULL; | |
1337 | } | |
1338 | ||
1339 | ||
22bfe96c RD |
1340 | static PyObject *_wrap_Button_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
1341 | PyObject *resultobj; | |
1342 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
1343 | wxVisualAttributes result; | |
1344 | PyObject * obj0 = 0 ; | |
1345 | char *kwnames[] = { | |
1346 | (char *) "variant", NULL | |
1347 | }; | |
1348 | ||
1349 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Button_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
1350 | if (obj0) { | |
1351 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
1352 | if (PyErr_Occurred()) SWIG_fail; | |
1353 | } | |
1354 | { | |
110da5b0 | 1355 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
1356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1357 | result = wxButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
1358 | ||
1359 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 1360 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
1361 | } |
1362 | { | |
1363 | wxVisualAttributes * resultptr; | |
1364 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
1365 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
1366 | } | |
1367 | return resultobj; | |
1368 | fail: | |
1369 | return NULL; | |
1370 | } | |
1371 | ||
1372 | ||
d14a1e28 RD |
1373 | static PyObject * Button_swigregister(PyObject *self, PyObject *args) { |
1374 | PyObject *obj; | |
1375 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1376 | SWIG_TypeClientData(SWIGTYPE_p_wxButton, obj); | |
1377 | Py_INCREF(obj); | |
1378 | return Py_BuildValue((char *)""); | |
1379 | } | |
1380 | static PyObject *_wrap_new_BitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1381 | PyObject *resultobj; | |
1382 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1383 | int arg2 = (int) -1 ; |
1384 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
1385 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
1386 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1387 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1388 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1389 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1390 | long arg6 = (long) wxBU_AUTODRAW ; | |
1391 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1392 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1393 | wxString const &arg8_defvalue = wxPyButtonNameStr ; | |
1394 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1395 | wxBitmapButton *result; | |
1396 | wxPoint temp4 ; | |
1397 | wxSize temp5 ; | |
e811c8ce | 1398 | bool temp8 = False ; |
d14a1e28 | 1399 | PyObject * obj0 = 0 ; |
994141e6 | 1400 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
1401 | PyObject * obj2 = 0 ; |
1402 | PyObject * obj3 = 0 ; | |
1403 | PyObject * obj4 = 0 ; | |
994141e6 | 1404 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
1405 | PyObject * obj6 = 0 ; |
1406 | PyObject * obj7 = 0 ; | |
1407 | char *kwnames[] = { | |
1408 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1409 | }; | |
1410 | ||
248ed943 | 1411 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_BitmapButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
1412 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
1413 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1414 | if (obj1) { |
1415 | arg2 = (int) SWIG_AsInt(obj1); | |
1416 | if (PyErr_Occurred()) SWIG_fail; | |
1417 | } | |
1418 | if (obj2) { | |
1419 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
1420 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1421 | SWIG_fail; |
248ed943 RD |
1422 | if (arg3 == NULL) { |
1423 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1424 | SWIG_fail; | |
1425 | } | |
d14a1e28 RD |
1426 | } |
1427 | if (obj3) { | |
1428 | { | |
1429 | arg4 = &temp4; | |
1430 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
1431 | } | |
1432 | } | |
1433 | if (obj4) { | |
1434 | { | |
1435 | arg5 = &temp5; | |
1436 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
1437 | } | |
1438 | } | |
994141e6 | 1439 | if (obj5) { |
15afbcd0 RD |
1440 | arg6 = (long) SWIG_AsLong(obj5); |
1441 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1442 | } |
d14a1e28 | 1443 | if (obj6) { |
15afbcd0 RD |
1444 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
1445 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1446 | SWIG_fail; | |
d14a1e28 | 1447 | if (arg7 == NULL) { |
15afbcd0 RD |
1448 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1449 | SWIG_fail; | |
d14a1e28 RD |
1450 | } |
1451 | } | |
1452 | if (obj7) { | |
1453 | { | |
1454 | arg8 = wxString_in_helper(obj7); | |
1455 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 1456 | temp8 = True; |
d14a1e28 RD |
1457 | } |
1458 | } | |
1459 | { | |
e3b71cb8 | 1460 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1461 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1462 | result = (wxBitmapButton *)new wxBitmapButton(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
1463 | ||
1464 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1465 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1466 | } |
b0f7404b | 1467 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1468 | { |
1469 | if (temp8) | |
1470 | delete arg8; | |
1471 | } | |
1472 | return resultobj; | |
1473 | fail: | |
1474 | { | |
1475 | if (temp8) | |
1476 | delete arg8; | |
1477 | } | |
1478 | return NULL; | |
1479 | } | |
1480 | ||
1481 | ||
1482 | static PyObject *_wrap_new_PreBitmapButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1483 | PyObject *resultobj; | |
1484 | wxBitmapButton *result; | |
1485 | char *kwnames[] = { | |
1486 | NULL | |
1487 | }; | |
1488 | ||
1489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreBitmapButton",kwnames)) goto fail; | |
1490 | { | |
e3b71cb8 | 1491 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
1492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
1493 | result = (wxBitmapButton *)new wxBitmapButton(); | |
1494 | ||
1495 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 1496 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 1497 | } |
b0f7404b | 1498 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBitmapButton, 1); |
d14a1e28 RD |
1499 | return resultobj; |
1500 | fail: | |
1501 | return NULL; | |
1502 | } | |
1503 | ||
1504 | ||
1505 | static PyObject *_wrap_BitmapButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1506 | PyObject *resultobj; | |
1507 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1508 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
1509 | int arg3 = (int) -1 ; |
1510 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
1511 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
1512 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
1513 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
1514 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
1515 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
1516 | long arg7 = (long) wxBU_AUTODRAW ; | |
1517 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
1518 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
1519 | wxString const &arg9_defvalue = wxPyButtonNameStr ; | |
1520 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
1521 | bool result; | |
1522 | wxPoint temp5 ; | |
1523 | wxSize temp6 ; | |
e811c8ce | 1524 | bool temp9 = False ; |
d14a1e28 RD |
1525 | PyObject * obj0 = 0 ; |
1526 | PyObject * obj1 = 0 ; | |
994141e6 | 1527 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
1528 | PyObject * obj3 = 0 ; |
1529 | PyObject * obj4 = 0 ; | |
1530 | PyObject * obj5 = 0 ; | |
994141e6 | 1531 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
1532 | PyObject * obj7 = 0 ; |
1533 | PyObject * obj8 = 0 ; | |
1534 | char *kwnames[] = { | |
1535 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
1536 | }; | |
1537 | ||
248ed943 | 1538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:BitmapButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
1539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1541 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
1542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
1543 | if (obj2) { |
1544 | arg3 = (int) SWIG_AsInt(obj2); | |
1545 | if (PyErr_Occurred()) SWIG_fail; | |
1546 | } | |
1547 | if (obj3) { | |
1548 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
1549 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 1550 | SWIG_fail; |
248ed943 RD |
1551 | if (arg4 == NULL) { |
1552 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
1553 | SWIG_fail; | |
1554 | } | |
d14a1e28 RD |
1555 | } |
1556 | if (obj4) { | |
1557 | { | |
1558 | arg5 = &temp5; | |
1559 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
1560 | } | |
1561 | } | |
1562 | if (obj5) { | |
1563 | { | |
1564 | arg6 = &temp6; | |
1565 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
1566 | } | |
1567 | } | |
994141e6 | 1568 | if (obj6) { |
15afbcd0 RD |
1569 | arg7 = (long) SWIG_AsLong(obj6); |
1570 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 1571 | } |
d14a1e28 | 1572 | if (obj7) { |
15afbcd0 RD |
1573 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
1574 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1575 | SWIG_fail; | |
d14a1e28 | 1576 | if (arg8 == NULL) { |
15afbcd0 RD |
1577 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1578 | SWIG_fail; | |
d14a1e28 RD |
1579 | } |
1580 | } | |
1581 | if (obj8) { | |
1582 | { | |
1583 | arg9 = wxString_in_helper(obj8); | |
1584 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 1585 | temp9 = True; |
d14a1e28 RD |
1586 | } |
1587 | } | |
1588 | { | |
1589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1590 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
1591 | ||
1592 | wxPyEndAllowThreads(__tstate); | |
1593 | if (PyErr_Occurred()) SWIG_fail; | |
1594 | } | |
4f89f6a3 RD |
1595 | { |
1596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
1597 | } | |
d14a1e28 RD |
1598 | { |
1599 | if (temp9) | |
1600 | delete arg9; | |
1601 | } | |
1602 | return resultobj; | |
1603 | fail: | |
1604 | { | |
1605 | if (temp9) | |
1606 | delete arg9; | |
1607 | } | |
1608 | return NULL; | |
1609 | } | |
1610 | ||
1611 | ||
1612 | static PyObject *_wrap_BitmapButton_GetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1613 | PyObject *resultobj; | |
1614 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1615 | wxBitmap result; | |
1616 | PyObject * obj0 = 0 ; | |
1617 | char *kwnames[] = { | |
1618 | (char *) "self", NULL | |
1619 | }; | |
1620 | ||
1621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1622 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1623 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1624 | { |
1625 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1626 | result = (arg1)->GetBitmapLabel(); | |
1627 | ||
1628 | wxPyEndAllowThreads(__tstate); | |
1629 | if (PyErr_Occurred()) SWIG_fail; | |
1630 | } | |
1631 | { | |
1632 | wxBitmap * resultptr; | |
1633 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1634 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1635 | } |
1636 | return resultobj; | |
1637 | fail: | |
1638 | return NULL; | |
1639 | } | |
1640 | ||
1641 | ||
1642 | static PyObject *_wrap_BitmapButton_GetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1643 | PyObject *resultobj; | |
1644 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1645 | wxBitmap result; | |
1646 | PyObject * obj0 = 0 ; | |
1647 | char *kwnames[] = { | |
1648 | (char *) "self", NULL | |
1649 | }; | |
1650 | ||
1651 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapDisabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1652 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1653 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1654 | { |
1655 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1656 | result = (arg1)->GetBitmapDisabled(); | |
1657 | ||
1658 | wxPyEndAllowThreads(__tstate); | |
1659 | if (PyErr_Occurred()) SWIG_fail; | |
1660 | } | |
1661 | { | |
1662 | wxBitmap * resultptr; | |
1663 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1664 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1665 | } |
1666 | return resultobj; | |
1667 | fail: | |
1668 | return NULL; | |
1669 | } | |
1670 | ||
1671 | ||
1672 | static PyObject *_wrap_BitmapButton_GetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1673 | PyObject *resultobj; | |
1674 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1675 | wxBitmap result; | |
1676 | PyObject * obj0 = 0 ; | |
1677 | char *kwnames[] = { | |
1678 | (char *) "self", NULL | |
1679 | }; | |
1680 | ||
1681 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1682 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1683 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1684 | { |
1685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1686 | result = (arg1)->GetBitmapFocus(); | |
1687 | ||
1688 | wxPyEndAllowThreads(__tstate); | |
1689 | if (PyErr_Occurred()) SWIG_fail; | |
1690 | } | |
1691 | { | |
1692 | wxBitmap * resultptr; | |
1693 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1694 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1695 | } |
1696 | return resultobj; | |
1697 | fail: | |
1698 | return NULL; | |
1699 | } | |
1700 | ||
1701 | ||
1702 | static PyObject *_wrap_BitmapButton_GetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1703 | PyObject *resultobj; | |
1704 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1705 | wxBitmap result; | |
1706 | PyObject * obj0 = 0 ; | |
1707 | char *kwnames[] = { | |
1708 | (char *) "self", NULL | |
1709 | }; | |
1710 | ||
1711 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetBitmapSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1712 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1713 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1714 | { |
1715 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1716 | result = (arg1)->GetBitmapSelected(); | |
1717 | ||
1718 | wxPyEndAllowThreads(__tstate); | |
1719 | if (PyErr_Occurred()) SWIG_fail; | |
1720 | } | |
1721 | { | |
1722 | wxBitmap * resultptr; | |
1723 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 1724 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
1725 | } |
1726 | return resultobj; | |
1727 | fail: | |
1728 | return NULL; | |
1729 | } | |
1730 | ||
1731 | ||
1732 | static PyObject *_wrap_BitmapButton_SetBitmapDisabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1733 | PyObject *resultobj; | |
1734 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1735 | wxBitmap *arg2 = 0 ; | |
1736 | PyObject * obj0 = 0 ; | |
1737 | PyObject * obj1 = 0 ; | |
1738 | char *kwnames[] = { | |
1739 | (char *) "self",(char *) "bitmap", NULL | |
1740 | }; | |
1741 | ||
1742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapDisabled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1745 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1746 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1747 | SWIG_fail; | |
d14a1e28 | 1748 | if (arg2 == NULL) { |
15afbcd0 RD |
1749 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1750 | SWIG_fail; | |
d14a1e28 RD |
1751 | } |
1752 | { | |
1753 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1754 | (arg1)->SetBitmapDisabled((wxBitmap const &)*arg2); | |
1755 | ||
1756 | wxPyEndAllowThreads(__tstate); | |
1757 | if (PyErr_Occurred()) SWIG_fail; | |
1758 | } | |
1759 | Py_INCREF(Py_None); resultobj = Py_None; | |
1760 | return resultobj; | |
1761 | fail: | |
1762 | return NULL; | |
1763 | } | |
1764 | ||
1765 | ||
1766 | static PyObject *_wrap_BitmapButton_SetBitmapFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1767 | PyObject *resultobj; | |
1768 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1769 | wxBitmap *arg2 = 0 ; | |
1770 | PyObject * obj0 = 0 ; | |
1771 | PyObject * obj1 = 0 ; | |
1772 | char *kwnames[] = { | |
1773 | (char *) "self",(char *) "bitmap", NULL | |
1774 | }; | |
1775 | ||
1776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapFocus",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1779 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1780 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1781 | SWIG_fail; | |
d14a1e28 | 1782 | if (arg2 == NULL) { |
15afbcd0 RD |
1783 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1784 | SWIG_fail; | |
d14a1e28 RD |
1785 | } |
1786 | { | |
1787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1788 | (arg1)->SetBitmapFocus((wxBitmap const &)*arg2); | |
1789 | ||
1790 | wxPyEndAllowThreads(__tstate); | |
1791 | if (PyErr_Occurred()) SWIG_fail; | |
1792 | } | |
1793 | Py_INCREF(Py_None); resultobj = Py_None; | |
1794 | return resultobj; | |
1795 | fail: | |
1796 | return NULL; | |
1797 | } | |
1798 | ||
1799 | ||
1800 | static PyObject *_wrap_BitmapButton_SetBitmapSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1801 | PyObject *resultobj; | |
1802 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1803 | wxBitmap *arg2 = 0 ; | |
1804 | PyObject * obj0 = 0 ; | |
1805 | PyObject * obj1 = 0 ; | |
1806 | char *kwnames[] = { | |
1807 | (char *) "self",(char *) "bitmap", NULL | |
1808 | }; | |
1809 | ||
1810 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1811 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1812 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1813 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1814 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1815 | SWIG_fail; | |
d14a1e28 | 1816 | if (arg2 == NULL) { |
15afbcd0 RD |
1817 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1818 | SWIG_fail; | |
d14a1e28 RD |
1819 | } |
1820 | { | |
1821 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1822 | (arg1)->SetBitmapSelected((wxBitmap const &)*arg2); | |
1823 | ||
1824 | wxPyEndAllowThreads(__tstate); | |
1825 | if (PyErr_Occurred()) SWIG_fail; | |
1826 | } | |
1827 | Py_INCREF(Py_None); resultobj = Py_None; | |
1828 | return resultobj; | |
1829 | fail: | |
1830 | return NULL; | |
1831 | } | |
1832 | ||
1833 | ||
1834 | static PyObject *_wrap_BitmapButton_SetBitmapLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1835 | PyObject *resultobj; | |
1836 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1837 | wxBitmap *arg2 = 0 ; | |
1838 | PyObject * obj0 = 0 ; | |
1839 | PyObject * obj1 = 0 ; | |
1840 | char *kwnames[] = { | |
1841 | (char *) "self",(char *) "bitmap", NULL | |
1842 | }; | |
1843 | ||
1844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BitmapButton_SetBitmapLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
1845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1847 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
1848 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
1849 | SWIG_fail; | |
d14a1e28 | 1850 | if (arg2 == NULL) { |
15afbcd0 RD |
1851 | PyErr_SetString(PyExc_TypeError,"null reference"); |
1852 | SWIG_fail; | |
d14a1e28 RD |
1853 | } |
1854 | { | |
1855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1856 | (arg1)->SetBitmapLabel((wxBitmap const &)*arg2); | |
1857 | ||
1858 | wxPyEndAllowThreads(__tstate); | |
1859 | if (PyErr_Occurred()) SWIG_fail; | |
1860 | } | |
1861 | Py_INCREF(Py_None); resultobj = Py_None; | |
1862 | return resultobj; | |
1863 | fail: | |
1864 | return NULL; | |
1865 | } | |
1866 | ||
1867 | ||
1868 | static PyObject *_wrap_BitmapButton_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1869 | PyObject *resultobj; | |
1870 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1871 | int arg2 ; | |
1872 | int arg3 ; | |
1873 | PyObject * obj0 = 0 ; | |
994141e6 RD |
1874 | PyObject * obj1 = 0 ; |
1875 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
1876 | char *kwnames[] = { |
1877 | (char *) "self",(char *) "x",(char *) "y", NULL | |
1878 | }; | |
1879 | ||
994141e6 | 1880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BitmapButton_SetMargins",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
1881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
1883 | arg2 = (int) SWIG_AsInt(obj1); | |
1884 | if (PyErr_Occurred()) SWIG_fail; | |
1885 | arg3 = (int) SWIG_AsInt(obj2); | |
1886 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
1887 | { |
1888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1889 | (arg1)->SetMargins(arg2,arg3); | |
1890 | ||
1891 | wxPyEndAllowThreads(__tstate); | |
1892 | if (PyErr_Occurred()) SWIG_fail; | |
1893 | } | |
1894 | Py_INCREF(Py_None); resultobj = Py_None; | |
1895 | return resultobj; | |
1896 | fail: | |
1897 | return NULL; | |
1898 | } | |
1899 | ||
1900 | ||
1901 | static PyObject *_wrap_BitmapButton_GetMarginX(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1902 | PyObject *resultobj; | |
1903 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1904 | int result; | |
1905 | PyObject * obj0 = 0 ; | |
1906 | char *kwnames[] = { | |
1907 | (char *) "self", NULL | |
1908 | }; | |
1909 | ||
1910 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginX",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1911 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1912 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1913 | { |
1914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1915 | result = (int)((wxBitmapButton const *)arg1)->GetMarginX(); | |
1916 | ||
1917 | wxPyEndAllowThreads(__tstate); | |
1918 | if (PyErr_Occurred()) SWIG_fail; | |
1919 | } | |
15afbcd0 | 1920 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1921 | return resultobj; |
1922 | fail: | |
1923 | return NULL; | |
1924 | } | |
1925 | ||
1926 | ||
1927 | static PyObject *_wrap_BitmapButton_GetMarginY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
1928 | PyObject *resultobj; | |
1929 | wxBitmapButton *arg1 = (wxBitmapButton *) 0 ; | |
1930 | int result; | |
1931 | PyObject * obj0 = 0 ; | |
1932 | char *kwnames[] = { | |
1933 | (char *) "self", NULL | |
1934 | }; | |
1935 | ||
1936 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BitmapButton_GetMarginY",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
1937 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmapButton, |
1938 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
1939 | { |
1940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
1941 | result = (int)((wxBitmapButton const *)arg1)->GetMarginY(); | |
1942 | ||
1943 | wxPyEndAllowThreads(__tstate); | |
1944 | if (PyErr_Occurred()) SWIG_fail; | |
1945 | } | |
15afbcd0 | 1946 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
1947 | return resultobj; |
1948 | fail: | |
1949 | return NULL; | |
1950 | } | |
1951 | ||
1952 | ||
1953 | static PyObject * BitmapButton_swigregister(PyObject *self, PyObject *args) { | |
1954 | PyObject *obj; | |
1955 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
1956 | SWIG_TypeClientData(SWIGTYPE_p_wxBitmapButton, obj); | |
1957 | Py_INCREF(obj); | |
1958 | return Py_BuildValue((char *)""); | |
1959 | } | |
b2dc1044 RD |
1960 | static int _wrap_CheckBoxNameStr_set(PyObject *_val) { |
1961 | PyErr_SetString(PyExc_TypeError,"Variable CheckBoxNameStr is read-only."); | |
1962 | return 1; | |
1963 | } | |
1964 | ||
1965 | ||
1966 | static PyObject *_wrap_CheckBoxNameStr_get() { | |
1967 | PyObject *pyobj; | |
1968 | ||
1969 | { | |
1970 | #if wxUSE_UNICODE | |
1971 | pyobj = PyUnicode_FromWideChar((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1972 | #else | |
1973 | pyobj = PyString_FromStringAndSize((&wxPyCheckBoxNameStr)->c_str(), (&wxPyCheckBoxNameStr)->Len()); | |
1974 | #endif | |
1975 | } | |
1976 | return pyobj; | |
1977 | } | |
1978 | ||
1979 | ||
d14a1e28 RD |
1980 | static PyObject *_wrap_new_CheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
1981 | PyObject *resultobj; | |
1982 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
1983 | int arg2 = (int) -1 ; |
1984 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
1985 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
1986 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
1987 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
1988 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
1989 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
1990 | long arg6 = (long) 0 ; | |
1991 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
1992 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
1993 | wxString const &arg8_defvalue = wxPyCheckBoxNameStr ; | |
1994 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
1995 | wxCheckBox *result; | |
e811c8ce | 1996 | bool temp3 = False ; |
d14a1e28 RD |
1997 | wxPoint temp4 ; |
1998 | wxSize temp5 ; | |
e811c8ce | 1999 | bool temp8 = False ; |
d14a1e28 | 2000 | PyObject * obj0 = 0 ; |
994141e6 | 2001 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2002 | PyObject * obj2 = 0 ; |
2003 | PyObject * obj3 = 0 ; | |
2004 | PyObject * obj4 = 0 ; | |
994141e6 | 2005 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2006 | PyObject * obj6 = 0 ; |
2007 | PyObject * obj7 = 0 ; | |
2008 | char *kwnames[] = { | |
2009 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2010 | }; | |
2011 | ||
248ed943 | 2012 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2013 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2014 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2015 | if (obj1) { |
2016 | arg2 = (int) SWIG_AsInt(obj1); | |
2017 | if (PyErr_Occurred()) SWIG_fail; | |
2018 | } | |
2019 | if (obj2) { | |
2020 | { | |
2021 | arg3 = wxString_in_helper(obj2); | |
2022 | if (arg3 == NULL) SWIG_fail; | |
2023 | temp3 = True; | |
2024 | } | |
d14a1e28 RD |
2025 | } |
2026 | if (obj3) { | |
2027 | { | |
2028 | arg4 = &temp4; | |
2029 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2030 | } | |
2031 | } | |
2032 | if (obj4) { | |
2033 | { | |
2034 | arg5 = &temp5; | |
2035 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2036 | } | |
2037 | } | |
994141e6 | 2038 | if (obj5) { |
15afbcd0 RD |
2039 | arg6 = (long) SWIG_AsLong(obj5); |
2040 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2041 | } |
d14a1e28 | 2042 | if (obj6) { |
15afbcd0 RD |
2043 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2044 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2045 | SWIG_fail; | |
d14a1e28 | 2046 | if (arg7 == NULL) { |
15afbcd0 RD |
2047 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2048 | SWIG_fail; | |
d14a1e28 RD |
2049 | } |
2050 | } | |
2051 | if (obj7) { | |
2052 | { | |
2053 | arg8 = wxString_in_helper(obj7); | |
2054 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2055 | temp8 = True; |
d14a1e28 RD |
2056 | } |
2057 | } | |
2058 | { | |
e3b71cb8 | 2059 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2060 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2061 | result = (wxCheckBox *)new wxCheckBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
2062 | ||
2063 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2064 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2065 | } |
15afbcd0 | 2066 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2067 | { |
2068 | if (temp3) | |
2069 | delete arg3; | |
2070 | } | |
2071 | { | |
2072 | if (temp8) | |
2073 | delete arg8; | |
2074 | } | |
2075 | return resultobj; | |
2076 | fail: | |
2077 | { | |
2078 | if (temp3) | |
2079 | delete arg3; | |
2080 | } | |
2081 | { | |
2082 | if (temp8) | |
2083 | delete arg8; | |
2084 | } | |
2085 | return NULL; | |
2086 | } | |
2087 | ||
2088 | ||
2089 | static PyObject *_wrap_new_PreCheckBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2090 | PyObject *resultobj; | |
2091 | wxCheckBox *result; | |
2092 | char *kwnames[] = { | |
2093 | NULL | |
2094 | }; | |
2095 | ||
2096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckBox",kwnames)) goto fail; | |
2097 | { | |
e3b71cb8 | 2098 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2099 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2100 | result = (wxCheckBox *)new wxCheckBox(); | |
2101 | ||
2102 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2103 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2104 | } |
15afbcd0 | 2105 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckBox, 1); |
d14a1e28 RD |
2106 | return resultobj; |
2107 | fail: | |
2108 | return NULL; | |
2109 | } | |
2110 | ||
2111 | ||
2112 | static PyObject *_wrap_CheckBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2113 | PyObject *resultobj; | |
2114 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2115 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
2116 | int arg3 = (int) -1 ; |
2117 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
2118 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
2119 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
2120 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
2121 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
2122 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
2123 | long arg7 = (long) 0 ; | |
2124 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2125 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2126 | wxString const &arg9_defvalue = wxPyCheckBoxNameStr ; | |
2127 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
2128 | bool result; | |
e811c8ce | 2129 | bool temp4 = False ; |
d14a1e28 RD |
2130 | wxPoint temp5 ; |
2131 | wxSize temp6 ; | |
e811c8ce | 2132 | bool temp9 = False ; |
d14a1e28 RD |
2133 | PyObject * obj0 = 0 ; |
2134 | PyObject * obj1 = 0 ; | |
994141e6 | 2135 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2136 | PyObject * obj3 = 0 ; |
2137 | PyObject * obj4 = 0 ; | |
2138 | PyObject * obj5 = 0 ; | |
994141e6 | 2139 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2140 | PyObject * obj7 = 0 ; |
2141 | PyObject * obj8 = 0 ; | |
2142 | char *kwnames[] = { | |
2143 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2144 | }; | |
2145 | ||
248ed943 | 2146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2149 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2150 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
2151 | if (obj2) { |
2152 | arg3 = (int) SWIG_AsInt(obj2); | |
2153 | if (PyErr_Occurred()) SWIG_fail; | |
2154 | } | |
2155 | if (obj3) { | |
2156 | { | |
2157 | arg4 = wxString_in_helper(obj3); | |
2158 | if (arg4 == NULL) SWIG_fail; | |
2159 | temp4 = True; | |
2160 | } | |
d14a1e28 RD |
2161 | } |
2162 | if (obj4) { | |
2163 | { | |
2164 | arg5 = &temp5; | |
2165 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
2166 | } | |
2167 | } | |
2168 | if (obj5) { | |
2169 | { | |
2170 | arg6 = &temp6; | |
2171 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
2172 | } | |
2173 | } | |
994141e6 | 2174 | if (obj6) { |
15afbcd0 RD |
2175 | arg7 = (long) SWIG_AsLong(obj6); |
2176 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2177 | } |
d14a1e28 | 2178 | if (obj7) { |
15afbcd0 RD |
2179 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2180 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2181 | SWIG_fail; | |
d14a1e28 | 2182 | if (arg8 == NULL) { |
15afbcd0 RD |
2183 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2184 | SWIG_fail; | |
d14a1e28 RD |
2185 | } |
2186 | } | |
2187 | if (obj8) { | |
2188 | { | |
2189 | arg9 = wxString_in_helper(obj8); | |
2190 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2191 | temp9 = True; |
d14a1e28 RD |
2192 | } |
2193 | } | |
2194 | { | |
2195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2196 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
2197 | ||
2198 | wxPyEndAllowThreads(__tstate); | |
2199 | if (PyErr_Occurred()) SWIG_fail; | |
2200 | } | |
4f89f6a3 RD |
2201 | { |
2202 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2203 | } | |
d14a1e28 RD |
2204 | { |
2205 | if (temp4) | |
2206 | delete arg4; | |
2207 | } | |
2208 | { | |
2209 | if (temp9) | |
2210 | delete arg9; | |
2211 | } | |
2212 | return resultobj; | |
2213 | fail: | |
2214 | { | |
2215 | if (temp4) | |
2216 | delete arg4; | |
2217 | } | |
2218 | { | |
2219 | if (temp9) | |
2220 | delete arg9; | |
2221 | } | |
2222 | return NULL; | |
2223 | } | |
2224 | ||
2225 | ||
2226 | static PyObject *_wrap_CheckBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2227 | PyObject *resultobj; | |
2228 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2229 | bool result; | |
2230 | PyObject * obj0 = 0 ; | |
2231 | char *kwnames[] = { | |
2232 | (char *) "self", NULL | |
2233 | }; | |
2234 | ||
2235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2238 | { |
2239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2240 | result = (bool)(arg1)->GetValue(); | |
2241 | ||
2242 | wxPyEndAllowThreads(__tstate); | |
2243 | if (PyErr_Occurred()) SWIG_fail; | |
2244 | } | |
4f89f6a3 RD |
2245 | { |
2246 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2247 | } | |
d14a1e28 RD |
2248 | return resultobj; |
2249 | fail: | |
2250 | return NULL; | |
2251 | } | |
2252 | ||
2253 | ||
2254 | static PyObject *_wrap_CheckBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2255 | PyObject *resultobj; | |
2256 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2257 | bool result; | |
2258 | PyObject * obj0 = 0 ; | |
2259 | char *kwnames[] = { | |
2260 | (char *) "self", NULL | |
2261 | }; | |
2262 | ||
2263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_IsChecked",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2266 | { |
2267 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2268 | result = (bool)(arg1)->IsChecked(); | |
2269 | ||
2270 | wxPyEndAllowThreads(__tstate); | |
2271 | if (PyErr_Occurred()) SWIG_fail; | |
2272 | } | |
4f89f6a3 RD |
2273 | { |
2274 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2275 | } | |
d14a1e28 RD |
2276 | return resultobj; |
2277 | fail: | |
2278 | return NULL; | |
2279 | } | |
2280 | ||
2281 | ||
2282 | static PyObject *_wrap_CheckBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2283 | PyObject *resultobj; | |
2284 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2285 | bool arg2 ; | |
2286 | PyObject * obj0 = 0 ; | |
2287 | PyObject * obj1 = 0 ; | |
2288 | char *kwnames[] = { | |
2289 | (char *) "self",(char *) "state", NULL | |
2290 | }; | |
2291 | ||
2292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2295 | arg2 = (bool const) SWIG_AsBool(obj1); | |
2296 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2297 | { |
2298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2299 | (arg1)->SetValue(arg2); | |
2300 | ||
2301 | wxPyEndAllowThreads(__tstate); | |
2302 | if (PyErr_Occurred()) SWIG_fail; | |
2303 | } | |
2304 | Py_INCREF(Py_None); resultobj = Py_None; | |
2305 | return resultobj; | |
2306 | fail: | |
2307 | return NULL; | |
2308 | } | |
2309 | ||
2310 | ||
2311 | static PyObject *_wrap_CheckBox_Get3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2312 | PyObject *resultobj; | |
2313 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2314 | int result; | |
2315 | PyObject * obj0 = 0 ; | |
2316 | char *kwnames[] = { | |
2317 | (char *) "self", NULL | |
2318 | }; | |
2319 | ||
2320 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Get3StateValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2321 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2322 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2323 | { |
2324 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2325 | result = (int)((wxCheckBox const *)arg1)->Get3StateValue(); | |
2326 | ||
2327 | wxPyEndAllowThreads(__tstate); | |
2328 | if (PyErr_Occurred()) SWIG_fail; | |
2329 | } | |
15afbcd0 | 2330 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
2331 | return resultobj; |
2332 | fail: | |
2333 | return NULL; | |
2334 | } | |
2335 | ||
2336 | ||
2337 | static PyObject *_wrap_CheckBox_Set3StateValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2338 | PyObject *resultobj; | |
2339 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2340 | int arg2 ; | |
2341 | PyObject * obj0 = 0 ; | |
994141e6 | 2342 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2343 | char *kwnames[] = { |
2344 | (char *) "self",(char *) "state", NULL | |
2345 | }; | |
2346 | ||
994141e6 | 2347 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckBox_Set3StateValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2348 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2349 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2350 | arg2 = (wxCheckBoxState) SWIG_AsInt(obj1); | |
2351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2352 | { |
2353 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2354 | (arg1)->Set3StateValue((wxCheckBoxState )arg2); | |
2355 | ||
2356 | wxPyEndAllowThreads(__tstate); | |
2357 | if (PyErr_Occurred()) SWIG_fail; | |
2358 | } | |
2359 | Py_INCREF(Py_None); resultobj = Py_None; | |
2360 | return resultobj; | |
2361 | fail: | |
2362 | return NULL; | |
2363 | } | |
2364 | ||
2365 | ||
2366 | static PyObject *_wrap_CheckBox_Is3State(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2367 | PyObject *resultobj; | |
2368 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2369 | bool result; | |
2370 | PyObject * obj0 = 0 ; | |
2371 | char *kwnames[] = { | |
2372 | (char *) "self", NULL | |
2373 | }; | |
2374 | ||
2375 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3State",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2376 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2377 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2378 | { |
2379 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2380 | result = (bool)((wxCheckBox const *)arg1)->Is3State(); | |
2381 | ||
2382 | wxPyEndAllowThreads(__tstate); | |
2383 | if (PyErr_Occurred()) SWIG_fail; | |
2384 | } | |
4f89f6a3 RD |
2385 | { |
2386 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2387 | } | |
d14a1e28 RD |
2388 | return resultobj; |
2389 | fail: | |
2390 | return NULL; | |
2391 | } | |
2392 | ||
2393 | ||
2394 | static PyObject *_wrap_CheckBox_Is3rdStateAllowedForUser(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2395 | PyObject *resultobj; | |
2396 | wxCheckBox *arg1 = (wxCheckBox *) 0 ; | |
2397 | bool result; | |
2398 | PyObject * obj0 = 0 ; | |
2399 | char *kwnames[] = { | |
2400 | (char *) "self", NULL | |
2401 | }; | |
2402 | ||
2403 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckBox_Is3rdStateAllowedForUser",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
2404 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckBox, |
2405 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2406 | { |
2407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2408 | result = (bool)((wxCheckBox const *)arg1)->Is3rdStateAllowedForUser(); | |
2409 | ||
2410 | wxPyEndAllowThreads(__tstate); | |
2411 | if (PyErr_Occurred()) SWIG_fail; | |
2412 | } | |
4f89f6a3 RD |
2413 | { |
2414 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2415 | } | |
d14a1e28 RD |
2416 | return resultobj; |
2417 | fail: | |
2418 | return NULL; | |
2419 | } | |
2420 | ||
2421 | ||
22bfe96c RD |
2422 | static PyObject *_wrap_CheckBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2423 | PyObject *resultobj; | |
2424 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2425 | wxVisualAttributes result; | |
2426 | PyObject * obj0 = 0 ; | |
2427 | char *kwnames[] = { | |
2428 | (char *) "variant", NULL | |
2429 | }; | |
2430 | ||
2431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:CheckBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2432 | if (obj0) { | |
2433 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2434 | if (PyErr_Occurred()) SWIG_fail; | |
2435 | } | |
2436 | { | |
110da5b0 | 2437 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2438 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2439 | result = wxCheckBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2440 | ||
2441 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2442 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2443 | } |
2444 | { | |
2445 | wxVisualAttributes * resultptr; | |
2446 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2447 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2448 | } | |
2449 | return resultobj; | |
2450 | fail: | |
2451 | return NULL; | |
2452 | } | |
2453 | ||
2454 | ||
d14a1e28 RD |
2455 | static PyObject * CheckBox_swigregister(PyObject *self, PyObject *args) { |
2456 | PyObject *obj; | |
2457 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2458 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckBox, obj); | |
2459 | Py_INCREF(obj); | |
2460 | return Py_BuildValue((char *)""); | |
2461 | } | |
b2dc1044 RD |
2462 | static int _wrap_ChoiceNameStr_set(PyObject *_val) { |
2463 | PyErr_SetString(PyExc_TypeError,"Variable ChoiceNameStr is read-only."); | |
2464 | return 1; | |
2465 | } | |
2466 | ||
2467 | ||
2468 | static PyObject *_wrap_ChoiceNameStr_get() { | |
2469 | PyObject *pyobj; | |
2470 | ||
2471 | { | |
2472 | #if wxUSE_UNICODE | |
2473 | pyobj = PyUnicode_FromWideChar((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2474 | #else | |
2475 | pyobj = PyString_FromStringAndSize((&wxPyChoiceNameStr)->c_str(), (&wxPyChoiceNameStr)->Len()); | |
2476 | #endif | |
2477 | } | |
2478 | return pyobj; | |
2479 | } | |
2480 | ||
2481 | ||
d14a1e28 RD |
2482 | static PyObject *_wrap_new_Choice(PyObject *self, PyObject *args, PyObject *kwargs) { |
2483 | PyObject *resultobj; | |
2484 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2485 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2486 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
2487 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
2488 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
2489 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
2490 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
2491 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
2492 | long arg6 = (long) 0 ; | |
2493 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
2494 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
2495 | wxString const &arg8_defvalue = wxPyChoiceNameStr ; | |
2496 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
2497 | wxChoice *result; |
2498 | wxPoint temp3 ; | |
2499 | wxSize temp4 ; | |
3adfb63b | 2500 | bool temp5 = False ; |
e811c8ce | 2501 | bool temp8 = False ; |
d14a1e28 | 2502 | PyObject * obj0 = 0 ; |
994141e6 | 2503 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2504 | PyObject * obj2 = 0 ; |
2505 | PyObject * obj3 = 0 ; | |
2506 | PyObject * obj4 = 0 ; | |
994141e6 | 2507 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
2508 | PyObject * obj6 = 0 ; |
2509 | PyObject * obj7 = 0 ; | |
2510 | char *kwnames[] = { | |
2511 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2512 | }; | |
2513 | ||
a95a7133 | 2514 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Choice",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
2515 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2516 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2517 | if (obj1) { |
2518 | arg2 = (int) SWIG_AsInt(obj1); | |
2519 | if (PyErr_Occurred()) SWIG_fail; | |
2520 | } | |
d14a1e28 RD |
2521 | if (obj2) { |
2522 | { | |
2523 | arg3 = &temp3; | |
2524 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
2525 | } | |
2526 | } | |
2527 | if (obj3) { | |
2528 | { | |
2529 | arg4 = &temp4; | |
2530 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
2531 | } | |
2532 | } | |
2533 | if (obj4) { | |
2534 | { | |
4d5c3d91 RD |
2535 | if (! PySequence_Check(obj4)) { |
2536 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2537 | SWIG_fail; | |
2538 | } | |
2539 | arg5 = new wxArrayString; | |
3adfb63b | 2540 | temp5 = True; |
4d5c3d91 RD |
2541 | int i, len=PySequence_Length(obj4); |
2542 | for (i=0; i<len; i++) { | |
2543 | PyObject* item = PySequence_GetItem(obj4, i); | |
2544 | #if wxUSE_UNICODE | |
2545 | PyObject* str = PyObject_Unicode(item); | |
2546 | #else | |
2547 | PyObject* str = PyObject_Str(item); | |
2548 | #endif | |
74a57fcd | 2549 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2550 | arg5->Add(Py2wxString(str)); |
2551 | Py_DECREF(item); | |
2552 | Py_DECREF(str); | |
2553 | } | |
d14a1e28 RD |
2554 | } |
2555 | } | |
994141e6 | 2556 | if (obj5) { |
15afbcd0 RD |
2557 | arg6 = (long) SWIG_AsLong(obj5); |
2558 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2559 | } |
d14a1e28 | 2560 | if (obj6) { |
15afbcd0 RD |
2561 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
2562 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2563 | SWIG_fail; | |
4d5c3d91 | 2564 | if (arg7 == NULL) { |
15afbcd0 RD |
2565 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2566 | SWIG_fail; | |
d14a1e28 RD |
2567 | } |
2568 | } | |
2569 | if (obj7) { | |
2570 | { | |
4d5c3d91 RD |
2571 | arg8 = wxString_in_helper(obj7); |
2572 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 2573 | temp8 = True; |
d14a1e28 RD |
2574 | } |
2575 | } | |
2576 | { | |
e3b71cb8 | 2577 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 2578 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 2579 | result = (wxChoice *)new wxChoice(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
2580 | |
2581 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2582 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2583 | } |
15afbcd0 | 2584 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 | 2585 | { |
3adfb63b | 2586 | if (temp5) delete arg5; |
d14a1e28 RD |
2587 | } |
2588 | { | |
2589 | if (temp8) | |
4d5c3d91 | 2590 | delete arg8; |
d14a1e28 RD |
2591 | } |
2592 | return resultobj; | |
2593 | fail: | |
2594 | { | |
3adfb63b | 2595 | if (temp5) delete arg5; |
d14a1e28 RD |
2596 | } |
2597 | { | |
2598 | if (temp8) | |
4d5c3d91 | 2599 | delete arg8; |
d14a1e28 RD |
2600 | } |
2601 | return NULL; | |
2602 | } | |
2603 | ||
2604 | ||
2605 | static PyObject *_wrap_new_PreChoice(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2606 | PyObject *resultobj; | |
2607 | wxChoice *result; | |
2608 | char *kwnames[] = { | |
2609 | NULL | |
2610 | }; | |
2611 | ||
2612 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreChoice",kwnames)) goto fail; | |
2613 | { | |
e3b71cb8 | 2614 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
2615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2616 | result = (wxChoice *)new wxChoice(); | |
2617 | ||
2618 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 2619 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 2620 | } |
15afbcd0 | 2621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxChoice, 1); |
d14a1e28 RD |
2622 | return resultobj; |
2623 | fail: | |
2624 | return NULL; | |
2625 | } | |
2626 | ||
2627 | ||
2628 | static PyObject *_wrap_Choice_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2629 | PyObject *resultobj; | |
2630 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2631 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 2632 | int arg3 = (int) -1 ; |
d14a1e28 RD |
2633 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
2634 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2635 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2636 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2637 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2638 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2639 | long arg7 = (long) 0 ; | |
2640 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2641 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2642 | wxString const &arg9_defvalue = wxPyChoiceNameStr ; | |
2643 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
2644 | bool result; |
2645 | wxPoint temp4 ; | |
2646 | wxSize temp5 ; | |
3adfb63b | 2647 | bool temp6 = False ; |
e811c8ce | 2648 | bool temp9 = False ; |
d14a1e28 RD |
2649 | PyObject * obj0 = 0 ; |
2650 | PyObject * obj1 = 0 ; | |
994141e6 | 2651 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
2652 | PyObject * obj3 = 0 ; |
2653 | PyObject * obj4 = 0 ; | |
2654 | PyObject * obj5 = 0 ; | |
994141e6 | 2655 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2656 | PyObject * obj7 = 0 ; |
2657 | PyObject * obj8 = 0 ; | |
2658 | char *kwnames[] = { | |
2659 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2660 | }; | |
2661 | ||
a95a7133 | 2662 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Choice_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2663 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2664 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2665 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
2666 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2667 | if (obj2) { |
2668 | arg3 = (int) SWIG_AsInt(obj2); | |
2669 | if (PyErr_Occurred()) SWIG_fail; | |
2670 | } | |
d14a1e28 RD |
2671 | if (obj3) { |
2672 | { | |
2673 | arg4 = &temp4; | |
2674 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2675 | } | |
2676 | } | |
2677 | if (obj4) { | |
2678 | { | |
2679 | arg5 = &temp5; | |
2680 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2681 | } | |
2682 | } | |
2683 | if (obj5) { | |
2684 | { | |
4d5c3d91 RD |
2685 | if (! PySequence_Check(obj5)) { |
2686 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
2687 | SWIG_fail; | |
2688 | } | |
2689 | arg6 = new wxArrayString; | |
3adfb63b | 2690 | temp6 = True; |
4d5c3d91 RD |
2691 | int i, len=PySequence_Length(obj5); |
2692 | for (i=0; i<len; i++) { | |
2693 | PyObject* item = PySequence_GetItem(obj5, i); | |
2694 | #if wxUSE_UNICODE | |
2695 | PyObject* str = PyObject_Unicode(item); | |
2696 | #else | |
2697 | PyObject* str = PyObject_Str(item); | |
2698 | #endif | |
74a57fcd | 2699 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
2700 | arg6->Add(Py2wxString(str)); |
2701 | Py_DECREF(item); | |
2702 | Py_DECREF(str); | |
2703 | } | |
d14a1e28 RD |
2704 | } |
2705 | } | |
994141e6 | 2706 | if (obj6) { |
15afbcd0 RD |
2707 | arg7 = (long) SWIG_AsLong(obj6); |
2708 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 2709 | } |
d14a1e28 | 2710 | if (obj7) { |
15afbcd0 RD |
2711 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
2712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
2713 | SWIG_fail; | |
4d5c3d91 | 2714 | if (arg8 == NULL) { |
15afbcd0 RD |
2715 | PyErr_SetString(PyExc_TypeError,"null reference"); |
2716 | SWIG_fail; | |
d14a1e28 RD |
2717 | } |
2718 | } | |
2719 | if (obj8) { | |
2720 | { | |
4d5c3d91 RD |
2721 | arg9 = wxString_in_helper(obj8); |
2722 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 2723 | temp9 = True; |
d14a1e28 RD |
2724 | } |
2725 | } | |
2726 | { | |
2727 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 2728 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
2729 | |
2730 | wxPyEndAllowThreads(__tstate); | |
2731 | if (PyErr_Occurred()) SWIG_fail; | |
2732 | } | |
4f89f6a3 RD |
2733 | { |
2734 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2735 | } | |
d14a1e28 | 2736 | { |
3adfb63b | 2737 | if (temp6) delete arg6; |
d14a1e28 RD |
2738 | } |
2739 | { | |
2740 | if (temp9) | |
4d5c3d91 | 2741 | delete arg9; |
d14a1e28 RD |
2742 | } |
2743 | return resultobj; | |
2744 | fail: | |
2745 | { | |
3adfb63b | 2746 | if (temp6) delete arg6; |
d14a1e28 RD |
2747 | } |
2748 | { | |
2749 | if (temp9) | |
4d5c3d91 | 2750 | delete arg9; |
d14a1e28 RD |
2751 | } |
2752 | return NULL; | |
2753 | } | |
2754 | ||
2755 | ||
d14a1e28 RD |
2756 | static PyObject *_wrap_Choice_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
2757 | PyObject *resultobj; | |
2758 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2759 | int arg2 ; | |
2760 | PyObject * obj0 = 0 ; | |
994141e6 | 2761 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2762 | char *kwnames[] = { |
2763 | (char *) "self",(char *) "n", NULL | |
2764 | }; | |
2765 | ||
994141e6 | 2766 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
2767 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2768 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2769 | arg2 = (int const) SWIG_AsInt(obj1); | |
2770 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2771 | { |
2772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2773 | (arg1)->SetSelection(arg2); | |
2774 | ||
2775 | wxPyEndAllowThreads(__tstate); | |
2776 | if (PyErr_Occurred()) SWIG_fail; | |
2777 | } | |
2778 | Py_INCREF(Py_None); resultobj = Py_None; | |
2779 | return resultobj; | |
2780 | fail: | |
2781 | return NULL; | |
2782 | } | |
2783 | ||
2784 | ||
2785 | static PyObject *_wrap_Choice_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2786 | PyObject *resultobj; | |
2787 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2788 | wxString *arg2 = 0 ; | |
121b9a67 | 2789 | bool result; |
e811c8ce | 2790 | bool temp2 = False ; |
d14a1e28 RD |
2791 | PyObject * obj0 = 0 ; |
2792 | PyObject * obj1 = 0 ; | |
2793 | char *kwnames[] = { | |
2794 | (char *) "self",(char *) "string", NULL | |
2795 | }; | |
2796 | ||
2797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Choice_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
2798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
2800 | { |
2801 | arg2 = wxString_in_helper(obj1); | |
2802 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 2803 | temp2 = True; |
d14a1e28 RD |
2804 | } |
2805 | { | |
2806 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
121b9a67 | 2807 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); |
d14a1e28 RD |
2808 | |
2809 | wxPyEndAllowThreads(__tstate); | |
2810 | if (PyErr_Occurred()) SWIG_fail; | |
2811 | } | |
121b9a67 RD |
2812 | { |
2813 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
2814 | } | |
d14a1e28 RD |
2815 | { |
2816 | if (temp2) | |
2817 | delete arg2; | |
2818 | } | |
2819 | return resultobj; | |
2820 | fail: | |
2821 | { | |
2822 | if (temp2) | |
2823 | delete arg2; | |
2824 | } | |
2825 | return NULL; | |
2826 | } | |
2827 | ||
2828 | ||
2829 | static PyObject *_wrap_Choice_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
2830 | PyObject *resultobj; | |
2831 | wxChoice *arg1 = (wxChoice *) 0 ; | |
2832 | int arg2 ; | |
2833 | wxString *arg3 = 0 ; | |
e811c8ce | 2834 | bool temp3 = False ; |
d14a1e28 | 2835 | PyObject * obj0 = 0 ; |
994141e6 | 2836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2837 | PyObject * obj2 = 0 ; |
2838 | char *kwnames[] = { | |
fcafa8a9 | 2839 | (char *) "self",(char *) "n",(char *) "string", NULL |
d14a1e28 RD |
2840 | }; |
2841 | ||
994141e6 | 2842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Choice_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
2843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxChoice, |
2844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
2845 | arg2 = (int) SWIG_AsInt(obj1); | |
2846 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
2847 | { |
2848 | arg3 = wxString_in_helper(obj2); | |
2849 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2850 | temp3 = True; |
d14a1e28 RD |
2851 | } |
2852 | { | |
2853 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
2854 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
2855 | ||
2856 | wxPyEndAllowThreads(__tstate); | |
2857 | if (PyErr_Occurred()) SWIG_fail; | |
2858 | } | |
2859 | Py_INCREF(Py_None); resultobj = Py_None; | |
2860 | { | |
2861 | if (temp3) | |
2862 | delete arg3; | |
2863 | } | |
2864 | return resultobj; | |
2865 | fail: | |
2866 | { | |
2867 | if (temp3) | |
2868 | delete arg3; | |
2869 | } | |
2870 | return NULL; | |
2871 | } | |
2872 | ||
2873 | ||
22bfe96c RD |
2874 | static PyObject *_wrap_Choice_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
2875 | PyObject *resultobj; | |
2876 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
2877 | wxVisualAttributes result; | |
2878 | PyObject * obj0 = 0 ; | |
2879 | char *kwnames[] = { | |
2880 | (char *) "variant", NULL | |
2881 | }; | |
2882 | ||
2883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Choice_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
2884 | if (obj0) { | |
2885 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
2886 | if (PyErr_Occurred()) SWIG_fail; | |
2887 | } | |
2888 | { | |
110da5b0 | 2889 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
2890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
2891 | result = wxChoice::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
2892 | ||
2893 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 2894 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
2895 | } |
2896 | { | |
2897 | wxVisualAttributes * resultptr; | |
2898 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
2899 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
2900 | } | |
2901 | return resultobj; | |
2902 | fail: | |
2903 | return NULL; | |
2904 | } | |
2905 | ||
2906 | ||
d14a1e28 RD |
2907 | static PyObject * Choice_swigregister(PyObject *self, PyObject *args) { |
2908 | PyObject *obj; | |
2909 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
2910 | SWIG_TypeClientData(SWIGTYPE_p_wxChoice, obj); | |
2911 | Py_INCREF(obj); | |
2912 | return Py_BuildValue((char *)""); | |
2913 | } | |
b2dc1044 RD |
2914 | static int _wrap_ComboBoxNameStr_set(PyObject *_val) { |
2915 | PyErr_SetString(PyExc_TypeError,"Variable ComboBoxNameStr is read-only."); | |
2916 | return 1; | |
2917 | } | |
2918 | ||
2919 | ||
2920 | static PyObject *_wrap_ComboBoxNameStr_get() { | |
2921 | PyObject *pyobj; | |
2922 | ||
2923 | { | |
2924 | #if wxUSE_UNICODE | |
2925 | pyobj = PyUnicode_FromWideChar((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2926 | #else | |
2927 | pyobj = PyString_FromStringAndSize((&wxPyComboBoxNameStr)->c_str(), (&wxPyComboBoxNameStr)->Len()); | |
2928 | #endif | |
2929 | } | |
2930 | return pyobj; | |
2931 | } | |
2932 | ||
2933 | ||
d14a1e28 RD |
2934 | static PyObject *_wrap_new_ComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
2935 | PyObject *resultobj; | |
2936 | wxWindow *arg1 = (wxWindow *) 0 ; | |
a95a7133 | 2937 | int arg2 = (int) -1 ; |
d14a1e28 RD |
2938 | wxString const &arg3_defvalue = wxPyEmptyString ; |
2939 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
2940 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
2941 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
2942 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
2943 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
2944 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
2945 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
2946 | long arg7 = (long) 0 ; | |
2947 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
2948 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
2949 | wxString const &arg9_defvalue = wxPyComboBoxNameStr ; | |
2950 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 | 2951 | wxComboBox *result; |
e811c8ce | 2952 | bool temp3 = False ; |
d14a1e28 RD |
2953 | wxPoint temp4 ; |
2954 | wxSize temp5 ; | |
3adfb63b | 2955 | bool temp6 = False ; |
e811c8ce | 2956 | bool temp9 = False ; |
d14a1e28 | 2957 | PyObject * obj0 = 0 ; |
994141e6 | 2958 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
2959 | PyObject * obj2 = 0 ; |
2960 | PyObject * obj3 = 0 ; | |
2961 | PyObject * obj4 = 0 ; | |
2962 | PyObject * obj5 = 0 ; | |
994141e6 | 2963 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
2964 | PyObject * obj7 = 0 ; |
2965 | PyObject * obj8 = 0 ; | |
2966 | char *kwnames[] = { | |
2967 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
2968 | }; | |
2969 | ||
a95a7133 | 2970 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_ComboBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
2971 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
2972 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
2973 | if (obj1) { |
2974 | arg2 = (int) SWIG_AsInt(obj1); | |
2975 | if (PyErr_Occurred()) SWIG_fail; | |
2976 | } | |
d14a1e28 RD |
2977 | if (obj2) { |
2978 | { | |
2979 | arg3 = wxString_in_helper(obj2); | |
2980 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 2981 | temp3 = True; |
d14a1e28 RD |
2982 | } |
2983 | } | |
2984 | if (obj3) { | |
2985 | { | |
2986 | arg4 = &temp4; | |
2987 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
2988 | } | |
2989 | } | |
2990 | if (obj4) { | |
2991 | { | |
2992 | arg5 = &temp5; | |
2993 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
2994 | } | |
2995 | } | |
2996 | if (obj5) { | |
2997 | { | |
4d5c3d91 RD |
2998 | if (! PySequence_Check(obj5)) { |
2999 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3000 | SWIG_fail; | |
3001 | } | |
3002 | arg6 = new wxArrayString; | |
3adfb63b | 3003 | temp6 = True; |
4d5c3d91 RD |
3004 | int i, len=PySequence_Length(obj5); |
3005 | for (i=0; i<len; i++) { | |
3006 | PyObject* item = PySequence_GetItem(obj5, i); | |
3007 | #if wxUSE_UNICODE | |
3008 | PyObject* str = PyObject_Unicode(item); | |
3009 | #else | |
3010 | PyObject* str = PyObject_Str(item); | |
3011 | #endif | |
74a57fcd | 3012 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3013 | arg6->Add(Py2wxString(str)); |
3014 | Py_DECREF(item); | |
3015 | Py_DECREF(str); | |
3016 | } | |
d14a1e28 RD |
3017 | } |
3018 | } | |
994141e6 | 3019 | if (obj6) { |
15afbcd0 RD |
3020 | arg7 = (long) SWIG_AsLong(obj6); |
3021 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3022 | } |
d14a1e28 | 3023 | if (obj7) { |
15afbcd0 RD |
3024 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
3025 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3026 | SWIG_fail; | |
4d5c3d91 | 3027 | if (arg8 == NULL) { |
15afbcd0 RD |
3028 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3029 | SWIG_fail; | |
d14a1e28 RD |
3030 | } |
3031 | } | |
3032 | if (obj8) { | |
3033 | { | |
4d5c3d91 RD |
3034 | arg9 = wxString_in_helper(obj8); |
3035 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 3036 | temp9 = True; |
d14a1e28 RD |
3037 | } |
3038 | } | |
3039 | { | |
e3b71cb8 | 3040 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 3041 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 3042 | 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 |
3043 | |
3044 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3045 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3046 | } |
15afbcd0 | 3047 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3048 | { |
3049 | if (temp3) | |
3050 | delete arg3; | |
3051 | } | |
3052 | { | |
3adfb63b | 3053 | if (temp6) delete arg6; |
d14a1e28 RD |
3054 | } |
3055 | { | |
3056 | if (temp9) | |
4d5c3d91 | 3057 | delete arg9; |
d14a1e28 RD |
3058 | } |
3059 | return resultobj; | |
3060 | fail: | |
3061 | { | |
3062 | if (temp3) | |
3063 | delete arg3; | |
3064 | } | |
3065 | { | |
3adfb63b | 3066 | if (temp6) delete arg6; |
d14a1e28 RD |
3067 | } |
3068 | { | |
3069 | if (temp9) | |
4d5c3d91 | 3070 | delete arg9; |
d14a1e28 RD |
3071 | } |
3072 | return NULL; | |
3073 | } | |
3074 | ||
3075 | ||
3076 | static PyObject *_wrap_new_PreComboBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3077 | PyObject *resultobj; | |
3078 | wxComboBox *result; | |
3079 | char *kwnames[] = { | |
3080 | NULL | |
3081 | }; | |
3082 | ||
3083 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreComboBox",kwnames)) goto fail; | |
3084 | { | |
e3b71cb8 | 3085 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3086 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3087 | result = (wxComboBox *)new wxComboBox(); | |
3088 | ||
3089 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3090 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3091 | } |
15afbcd0 | 3092 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxComboBox, 1); |
d14a1e28 RD |
3093 | return resultobj; |
3094 | fail: | |
3095 | return NULL; | |
3096 | } | |
3097 | ||
3098 | ||
3099 | static PyObject *_wrap_ComboBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3100 | PyObject *resultobj; | |
3101 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3102 | wxWindow *arg2 = (wxWindow *) 0 ; | |
a95a7133 | 3103 | int arg3 = (int) -1 ; |
d14a1e28 RD |
3104 | wxString const &arg4_defvalue = wxPyEmptyString ; |
3105 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
3106 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
3107 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3108 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3109 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
3110 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
3111 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
3112 | long arg8 = (long) 0 ; | |
3113 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
3114 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
b88bce5f | 3115 | wxString const &arg10_defvalue = wxPyChoiceNameStr ; |
4d5c3d91 | 3116 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
d14a1e28 | 3117 | bool result; |
e811c8ce | 3118 | bool temp4 = False ; |
d14a1e28 RD |
3119 | wxPoint temp5 ; |
3120 | wxSize temp6 ; | |
3adfb63b | 3121 | bool temp7 = False ; |
e811c8ce | 3122 | bool temp10 = False ; |
d14a1e28 RD |
3123 | PyObject * obj0 = 0 ; |
3124 | PyObject * obj1 = 0 ; | |
994141e6 | 3125 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
3126 | PyObject * obj3 = 0 ; |
3127 | PyObject * obj4 = 0 ; | |
3128 | PyObject * obj5 = 0 ; | |
3129 | PyObject * obj6 = 0 ; | |
994141e6 | 3130 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
3131 | PyObject * obj8 = 0 ; |
3132 | PyObject * obj9 = 0 ; | |
3133 | char *kwnames[] = { | |
3134 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3135 | }; | |
3136 | ||
a95a7133 | 3137 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:ComboBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
3138 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3139 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3140 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
a95a7133 RD |
3142 | if (obj2) { |
3143 | arg3 = (int) SWIG_AsInt(obj2); | |
3144 | if (PyErr_Occurred()) SWIG_fail; | |
3145 | } | |
d14a1e28 RD |
3146 | if (obj3) { |
3147 | { | |
3148 | arg4 = wxString_in_helper(obj3); | |
3149 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3150 | temp4 = True; |
d14a1e28 RD |
3151 | } |
3152 | } | |
3153 | if (obj4) { | |
3154 | { | |
3155 | arg5 = &temp5; | |
3156 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3157 | } | |
3158 | } | |
3159 | if (obj5) { | |
3160 | { | |
3161 | arg6 = &temp6; | |
3162 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3163 | } | |
3164 | } | |
3165 | if (obj6) { | |
3166 | { | |
4d5c3d91 RD |
3167 | if (! PySequence_Check(obj6)) { |
3168 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
3169 | SWIG_fail; | |
3170 | } | |
3171 | arg7 = new wxArrayString; | |
3adfb63b | 3172 | temp7 = True; |
4d5c3d91 RD |
3173 | int i, len=PySequence_Length(obj6); |
3174 | for (i=0; i<len; i++) { | |
3175 | PyObject* item = PySequence_GetItem(obj6, i); | |
3176 | #if wxUSE_UNICODE | |
3177 | PyObject* str = PyObject_Unicode(item); | |
3178 | #else | |
3179 | PyObject* str = PyObject_Str(item); | |
3180 | #endif | |
74a57fcd | 3181 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
3182 | arg7->Add(Py2wxString(str)); |
3183 | Py_DECREF(item); | |
3184 | Py_DECREF(str); | |
3185 | } | |
d14a1e28 RD |
3186 | } |
3187 | } | |
994141e6 | 3188 | if (obj7) { |
15afbcd0 RD |
3189 | arg8 = (long) SWIG_AsLong(obj7); |
3190 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3191 | } |
d14a1e28 | 3192 | if (obj8) { |
15afbcd0 RD |
3193 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
3194 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3195 | SWIG_fail; | |
4d5c3d91 | 3196 | if (arg9 == NULL) { |
15afbcd0 RD |
3197 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3198 | SWIG_fail; | |
d14a1e28 RD |
3199 | } |
3200 | } | |
3201 | if (obj9) { | |
3202 | { | |
4d5c3d91 RD |
3203 | arg10 = wxString_in_helper(obj9); |
3204 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 3205 | temp10 = True; |
d14a1e28 RD |
3206 | } |
3207 | } | |
3208 | { | |
3209 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 3210 | 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 |
3211 | |
3212 | wxPyEndAllowThreads(__tstate); | |
3213 | if (PyErr_Occurred()) SWIG_fail; | |
3214 | } | |
4f89f6a3 RD |
3215 | { |
3216 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3217 | } | |
d14a1e28 RD |
3218 | { |
3219 | if (temp4) | |
3220 | delete arg4; | |
3221 | } | |
3222 | { | |
3adfb63b | 3223 | if (temp7) delete arg7; |
d14a1e28 RD |
3224 | } |
3225 | { | |
3226 | if (temp10) | |
4d5c3d91 | 3227 | delete arg10; |
d14a1e28 RD |
3228 | } |
3229 | return resultobj; | |
3230 | fail: | |
3231 | { | |
3232 | if (temp4) | |
3233 | delete arg4; | |
3234 | } | |
3235 | { | |
3adfb63b | 3236 | if (temp7) delete arg7; |
d14a1e28 RD |
3237 | } |
3238 | { | |
3239 | if (temp10) | |
4d5c3d91 | 3240 | delete arg10; |
d14a1e28 RD |
3241 | } |
3242 | return NULL; | |
3243 | } | |
3244 | ||
3245 | ||
3246 | static PyObject *_wrap_ComboBox_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3247 | PyObject *resultobj; | |
3248 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3249 | wxString result; | |
3250 | PyObject * obj0 = 0 ; | |
3251 | char *kwnames[] = { | |
3252 | (char *) "self", NULL | |
3253 | }; | |
3254 | ||
3255 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3256 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3257 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3258 | { |
3259 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3260 | result = ((wxComboBox const *)arg1)->GetValue(); | |
3261 | ||
3262 | wxPyEndAllowThreads(__tstate); | |
3263 | if (PyErr_Occurred()) SWIG_fail; | |
3264 | } | |
3265 | { | |
3266 | #if wxUSE_UNICODE | |
3267 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
3268 | #else | |
3269 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
3270 | #endif | |
3271 | } | |
3272 | return resultobj; | |
3273 | fail: | |
3274 | return NULL; | |
3275 | } | |
3276 | ||
3277 | ||
3278 | static PyObject *_wrap_ComboBox_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3279 | PyObject *resultobj; | |
3280 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3281 | wxString *arg2 = 0 ; | |
e811c8ce | 3282 | bool temp2 = False ; |
d14a1e28 RD |
3283 | PyObject * obj0 = 0 ; |
3284 | PyObject * obj1 = 0 ; | |
3285 | char *kwnames[] = { | |
3286 | (char *) "self",(char *) "value", NULL | |
3287 | }; | |
3288 | ||
3289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3292 | { |
3293 | arg2 = wxString_in_helper(obj1); | |
3294 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 3295 | temp2 = True; |
d14a1e28 RD |
3296 | } |
3297 | { | |
3298 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3299 | (arg1)->SetValue((wxString const &)*arg2); | |
3300 | ||
3301 | wxPyEndAllowThreads(__tstate); | |
3302 | if (PyErr_Occurred()) SWIG_fail; | |
3303 | } | |
3304 | Py_INCREF(Py_None); resultobj = Py_None; | |
3305 | { | |
3306 | if (temp2) | |
3307 | delete arg2; | |
3308 | } | |
3309 | return resultobj; | |
3310 | fail: | |
3311 | { | |
3312 | if (temp2) | |
3313 | delete arg2; | |
3314 | } | |
3315 | return NULL; | |
3316 | } | |
3317 | ||
3318 | ||
3319 | static PyObject *_wrap_ComboBox_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3320 | PyObject *resultobj; | |
3321 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3322 | PyObject * obj0 = 0 ; | |
3323 | char *kwnames[] = { | |
3324 | (char *) "self", NULL | |
3325 | }; | |
3326 | ||
3327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3330 | { |
3331 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3332 | (arg1)->Copy(); | |
3333 | ||
3334 | wxPyEndAllowThreads(__tstate); | |
3335 | if (PyErr_Occurred()) SWIG_fail; | |
3336 | } | |
3337 | Py_INCREF(Py_None); resultobj = Py_None; | |
3338 | return resultobj; | |
3339 | fail: | |
3340 | return NULL; | |
3341 | } | |
3342 | ||
3343 | ||
3344 | static PyObject *_wrap_ComboBox_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3345 | PyObject *resultobj; | |
3346 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3347 | PyObject * obj0 = 0 ; | |
3348 | char *kwnames[] = { | |
3349 | (char *) "self", NULL | |
3350 | }; | |
3351 | ||
3352 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3353 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3354 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3355 | { |
3356 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3357 | (arg1)->Cut(); | |
3358 | ||
3359 | wxPyEndAllowThreads(__tstate); | |
3360 | if (PyErr_Occurred()) SWIG_fail; | |
3361 | } | |
3362 | Py_INCREF(Py_None); resultobj = Py_None; | |
3363 | return resultobj; | |
3364 | fail: | |
3365 | return NULL; | |
3366 | } | |
3367 | ||
3368 | ||
3369 | static PyObject *_wrap_ComboBox_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3370 | PyObject *resultobj; | |
3371 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3372 | PyObject * obj0 = 0 ; | |
3373 | char *kwnames[] = { | |
3374 | (char *) "self", NULL | |
3375 | }; | |
3376 | ||
3377 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3378 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3379 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3380 | { |
3381 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3382 | (arg1)->Paste(); | |
3383 | ||
3384 | wxPyEndAllowThreads(__tstate); | |
3385 | if (PyErr_Occurred()) SWIG_fail; | |
3386 | } | |
3387 | Py_INCREF(Py_None); resultobj = Py_None; | |
3388 | return resultobj; | |
3389 | fail: | |
3390 | return NULL; | |
3391 | } | |
3392 | ||
3393 | ||
3394 | static PyObject *_wrap_ComboBox_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3395 | PyObject *resultobj; | |
3396 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3397 | long arg2 ; | |
3398 | PyObject * obj0 = 0 ; | |
994141e6 | 3399 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
3400 | char *kwnames[] = { |
3401 | (char *) "self",(char *) "pos", NULL | |
3402 | }; | |
3403 | ||
994141e6 | 3404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3407 | arg2 = (long) SWIG_AsLong(obj1); | |
3408 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3409 | { |
3410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3411 | (arg1)->SetInsertionPoint(arg2); | |
3412 | ||
3413 | wxPyEndAllowThreads(__tstate); | |
3414 | if (PyErr_Occurred()) SWIG_fail; | |
3415 | } | |
3416 | Py_INCREF(Py_None); resultobj = Py_None; | |
3417 | return resultobj; | |
3418 | fail: | |
3419 | return NULL; | |
3420 | } | |
3421 | ||
3422 | ||
3423 | static PyObject *_wrap_ComboBox_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3424 | PyObject *resultobj; | |
3425 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3426 | long result; | |
3427 | PyObject * obj0 = 0 ; | |
3428 | char *kwnames[] = { | |
3429 | (char *) "self", NULL | |
3430 | }; | |
3431 | ||
3432 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3433 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3434 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3435 | { |
3436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3437 | result = (long)((wxComboBox const *)arg1)->GetInsertionPoint(); | |
3438 | ||
3439 | wxPyEndAllowThreads(__tstate); | |
3440 | if (PyErr_Occurred()) SWIG_fail; | |
3441 | } | |
15afbcd0 | 3442 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3443 | return resultobj; |
3444 | fail: | |
3445 | return NULL; | |
3446 | } | |
3447 | ||
3448 | ||
3449 | static PyObject *_wrap_ComboBox_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3450 | PyObject *resultobj; | |
3451 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3452 | long result; | |
3453 | PyObject * obj0 = 0 ; | |
3454 | char *kwnames[] = { | |
3455 | (char *) "self", NULL | |
3456 | }; | |
3457 | ||
3458 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3459 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3460 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3461 | { |
3462 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3463 | result = (long)((wxComboBox const *)arg1)->GetLastPosition(); | |
3464 | ||
3465 | wxPyEndAllowThreads(__tstate); | |
3466 | if (PyErr_Occurred()) SWIG_fail; | |
3467 | } | |
15afbcd0 | 3468 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
3469 | return resultobj; |
3470 | fail: | |
3471 | return NULL; | |
3472 | } | |
3473 | ||
3474 | ||
3475 | static PyObject *_wrap_ComboBox_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3476 | PyObject *resultobj; | |
3477 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3478 | long arg2 ; | |
3479 | long arg3 ; | |
3480 | wxString *arg4 = 0 ; | |
e811c8ce | 3481 | bool temp4 = False ; |
d14a1e28 | 3482 | PyObject * obj0 = 0 ; |
994141e6 RD |
3483 | PyObject * obj1 = 0 ; |
3484 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3485 | PyObject * obj3 = 0 ; |
3486 | char *kwnames[] = { | |
3487 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
3488 | }; | |
3489 | ||
994141e6 | 3490 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ComboBox_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
3491 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3492 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3493 | arg2 = (long) SWIG_AsLong(obj1); | |
3494 | if (PyErr_Occurred()) SWIG_fail; | |
3495 | arg3 = (long) SWIG_AsLong(obj2); | |
3496 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3497 | { |
3498 | arg4 = wxString_in_helper(obj3); | |
3499 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 3500 | temp4 = True; |
d14a1e28 RD |
3501 | } |
3502 | { | |
3503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3504 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
3505 | ||
3506 | wxPyEndAllowThreads(__tstate); | |
3507 | if (PyErr_Occurred()) SWIG_fail; | |
3508 | } | |
3509 | Py_INCREF(Py_None); resultobj = Py_None; | |
3510 | { | |
3511 | if (temp4) | |
3512 | delete arg4; | |
3513 | } | |
3514 | return resultobj; | |
3515 | fail: | |
3516 | { | |
3517 | if (temp4) | |
3518 | delete arg4; | |
3519 | } | |
3520 | return NULL; | |
3521 | } | |
3522 | ||
3523 | ||
fd3f2efe RD |
3524 | static PyObject *_wrap_ComboBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3525 | PyObject *resultobj; | |
3526 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3527 | int arg2 ; | |
3528 | PyObject * obj0 = 0 ; | |
994141e6 | 3529 | PyObject * obj1 = 0 ; |
fd3f2efe RD |
3530 | char *kwnames[] = { |
3531 | (char *) "self",(char *) "n", NULL | |
3532 | }; | |
3533 | ||
994141e6 | 3534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
3535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3537 | arg2 = (int) SWIG_AsInt(obj1); | |
3538 | if (PyErr_Occurred()) SWIG_fail; | |
fd3f2efe RD |
3539 | { |
3540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3541 | (arg1)->SetSelection(arg2); | |
3542 | ||
3543 | wxPyEndAllowThreads(__tstate); | |
3544 | if (PyErr_Occurred()) SWIG_fail; | |
3545 | } | |
3546 | Py_INCREF(Py_None); resultobj = Py_None; | |
3547 | return resultobj; | |
3548 | fail: | |
3549 | return NULL; | |
3550 | } | |
3551 | ||
3552 | ||
d14a1e28 RD |
3553 | static PyObject *_wrap_ComboBox_SetMark(PyObject *self, PyObject *args, PyObject *kwargs) { |
3554 | PyObject *resultobj; | |
3555 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3556 | long arg2 ; | |
3557 | long arg3 ; | |
3558 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3559 | PyObject * obj1 = 0 ; |
3560 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3561 | char *kwnames[] = { |
3562 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3563 | }; | |
3564 | ||
994141e6 | 3565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetMark",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3568 | arg2 = (long) SWIG_AsLong(obj1); | |
3569 | if (PyErr_Occurred()) SWIG_fail; | |
3570 | arg3 = (long) SWIG_AsLong(obj2); | |
3571 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3572 | { |
3573 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3574 | (arg1)->SetSelection(arg2,arg3); | |
3575 | ||
3576 | wxPyEndAllowThreads(__tstate); | |
3577 | if (PyErr_Occurred()) SWIG_fail; | |
3578 | } | |
3579 | Py_INCREF(Py_None); resultobj = Py_None; | |
3580 | return resultobj; | |
3581 | fail: | |
3582 | return NULL; | |
3583 | } | |
3584 | ||
3585 | ||
121b9a67 RD |
3586 | static PyObject *_wrap_ComboBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { |
3587 | PyObject *resultobj; | |
3588 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3589 | wxString *arg2 = 0 ; | |
3590 | bool result; | |
3591 | bool temp2 = False ; | |
3592 | PyObject * obj0 = 0 ; | |
3593 | PyObject * obj1 = 0 ; | |
3594 | char *kwnames[] = { | |
3595 | (char *) "self",(char *) "string", NULL | |
3596 | }; | |
3597 | ||
3598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
3599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3601 | { | |
3602 | arg2 = wxString_in_helper(obj1); | |
3603 | if (arg2 == NULL) SWIG_fail; | |
3604 | temp2 = True; | |
3605 | } | |
3606 | { | |
3607 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3608 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
3609 | ||
3610 | wxPyEndAllowThreads(__tstate); | |
3611 | if (PyErr_Occurred()) SWIG_fail; | |
3612 | } | |
3613 | { | |
3614 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
3615 | } | |
3616 | { | |
3617 | if (temp2) | |
3618 | delete arg2; | |
3619 | } | |
3620 | return resultobj; | |
3621 | fail: | |
3622 | { | |
3623 | if (temp2) | |
3624 | delete arg2; | |
3625 | } | |
3626 | return NULL; | |
3627 | } | |
3628 | ||
3629 | ||
3630 | static PyObject *_wrap_ComboBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3631 | PyObject *resultobj; | |
3632 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3633 | int arg2 ; | |
3634 | wxString *arg3 = 0 ; | |
3635 | bool temp3 = False ; | |
3636 | PyObject * obj0 = 0 ; | |
3637 | PyObject * obj1 = 0 ; | |
3638 | PyObject * obj2 = 0 ; | |
3639 | char *kwnames[] = { | |
3640 | (char *) "self",(char *) "n",(char *) "string", NULL | |
3641 | }; | |
3642 | ||
3643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
3644 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, | |
3645 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3646 | arg2 = (int) SWIG_AsInt(obj1); | |
3647 | if (PyErr_Occurred()) SWIG_fail; | |
3648 | { | |
3649 | arg3 = wxString_in_helper(obj2); | |
3650 | if (arg3 == NULL) SWIG_fail; | |
3651 | temp3 = True; | |
3652 | } | |
3653 | { | |
3654 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3655 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
3656 | ||
3657 | wxPyEndAllowThreads(__tstate); | |
3658 | if (PyErr_Occurred()) SWIG_fail; | |
3659 | } | |
3660 | Py_INCREF(Py_None); resultobj = Py_None; | |
3661 | { | |
3662 | if (temp3) | |
3663 | delete arg3; | |
3664 | } | |
3665 | return resultobj; | |
3666 | fail: | |
3667 | { | |
3668 | if (temp3) | |
3669 | delete arg3; | |
3670 | } | |
3671 | return NULL; | |
3672 | } | |
3673 | ||
3674 | ||
d14a1e28 RD |
3675 | static PyObject *_wrap_ComboBox_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { |
3676 | PyObject *resultobj; | |
3677 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3678 | bool arg2 ; | |
3679 | PyObject * obj0 = 0 ; | |
3680 | PyObject * obj1 = 0 ; | |
3681 | char *kwnames[] = { | |
3682 | (char *) "self",(char *) "editable", NULL | |
3683 | }; | |
3684 | ||
3685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ComboBox_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
3686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3688 | arg2 = (bool) SWIG_AsBool(obj1); | |
3689 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3690 | { |
3691 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3692 | (arg1)->SetEditable(arg2); | |
3693 | ||
3694 | wxPyEndAllowThreads(__tstate); | |
3695 | if (PyErr_Occurred()) SWIG_fail; | |
3696 | } | |
3697 | Py_INCREF(Py_None); resultobj = Py_None; | |
3698 | return resultobj; | |
3699 | fail: | |
3700 | return NULL; | |
3701 | } | |
3702 | ||
3703 | ||
3704 | static PyObject *_wrap_ComboBox_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3705 | PyObject *resultobj; | |
3706 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3707 | PyObject * obj0 = 0 ; | |
3708 | char *kwnames[] = { | |
3709 | (char *) "self", NULL | |
3710 | }; | |
3711 | ||
3712 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ComboBox_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
3713 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3714 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
3715 | { |
3716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3717 | (arg1)->SetInsertionPointEnd(); | |
3718 | ||
3719 | wxPyEndAllowThreads(__tstate); | |
3720 | if (PyErr_Occurred()) SWIG_fail; | |
3721 | } | |
3722 | Py_INCREF(Py_None); resultobj = Py_None; | |
3723 | return resultobj; | |
3724 | fail: | |
3725 | return NULL; | |
3726 | } | |
3727 | ||
3728 | ||
3729 | static PyObject *_wrap_ComboBox_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3730 | PyObject *resultobj; | |
3731 | wxComboBox *arg1 = (wxComboBox *) 0 ; | |
3732 | long arg2 ; | |
3733 | long arg3 ; | |
3734 | PyObject * obj0 = 0 ; | |
994141e6 RD |
3735 | PyObject * obj1 = 0 ; |
3736 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3737 | char *kwnames[] = { |
3738 | (char *) "self",(char *) "from",(char *) "to", NULL | |
3739 | }; | |
3740 | ||
994141e6 | 3741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ComboBox_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
3742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxComboBox, |
3743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3744 | arg2 = (long) SWIG_AsLong(obj1); | |
3745 | if (PyErr_Occurred()) SWIG_fail; | |
3746 | arg3 = (long) SWIG_AsLong(obj2); | |
3747 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
3748 | { |
3749 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3750 | (arg1)->Remove(arg2,arg3); | |
3751 | ||
3752 | wxPyEndAllowThreads(__tstate); | |
3753 | if (PyErr_Occurred()) SWIG_fail; | |
3754 | } | |
3755 | Py_INCREF(Py_None); resultobj = Py_None; | |
3756 | return resultobj; | |
3757 | fail: | |
3758 | return NULL; | |
3759 | } | |
3760 | ||
3761 | ||
22bfe96c RD |
3762 | static PyObject *_wrap_ComboBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
3763 | PyObject *resultobj; | |
3764 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
3765 | wxVisualAttributes result; | |
3766 | PyObject * obj0 = 0 ; | |
3767 | char *kwnames[] = { | |
3768 | (char *) "variant", NULL | |
3769 | }; | |
3770 | ||
3771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ComboBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
3772 | if (obj0) { | |
3773 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
3774 | if (PyErr_Occurred()) SWIG_fail; | |
3775 | } | |
3776 | { | |
110da5b0 | 3777 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
3778 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3779 | result = wxComboBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
3780 | ||
3781 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 3782 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
3783 | } |
3784 | { | |
3785 | wxVisualAttributes * resultptr; | |
3786 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
3787 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
3788 | } | |
3789 | return resultobj; | |
3790 | fail: | |
3791 | return NULL; | |
3792 | } | |
3793 | ||
3794 | ||
d14a1e28 RD |
3795 | static PyObject * ComboBox_swigregister(PyObject *self, PyObject *args) { |
3796 | PyObject *obj; | |
3797 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
3798 | SWIG_TypeClientData(SWIGTYPE_p_wxComboBox, obj); | |
3799 | Py_INCREF(obj); | |
3800 | return Py_BuildValue((char *)""); | |
3801 | } | |
b2dc1044 RD |
3802 | static int _wrap_GaugeNameStr_set(PyObject *_val) { |
3803 | PyErr_SetString(PyExc_TypeError,"Variable GaugeNameStr is read-only."); | |
3804 | return 1; | |
3805 | } | |
3806 | ||
3807 | ||
3808 | static PyObject *_wrap_GaugeNameStr_get() { | |
3809 | PyObject *pyobj; | |
3810 | ||
3811 | { | |
3812 | #if wxUSE_UNICODE | |
3813 | pyobj = PyUnicode_FromWideChar((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3814 | #else | |
3815 | pyobj = PyString_FromStringAndSize((&wxPyGaugeNameStr)->c_str(), (&wxPyGaugeNameStr)->Len()); | |
3816 | #endif | |
3817 | } | |
3818 | return pyobj; | |
3819 | } | |
3820 | ||
3821 | ||
d14a1e28 RD |
3822 | static PyObject *_wrap_new_Gauge(PyObject *self, PyObject *args, PyObject *kwargs) { |
3823 | PyObject *resultobj; | |
3824 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
3825 | int arg2 = (int) -1 ; |
3826 | int arg3 = (int) 100 ; | |
d14a1e28 RD |
3827 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
3828 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
3829 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
3830 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
3831 | long arg6 = (long) wxGA_HORIZONTAL ; | |
3832 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
3833 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
3834 | wxString const &arg8_defvalue = wxPyGaugeNameStr ; | |
3835 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
3836 | wxGauge *result; | |
3837 | wxPoint temp4 ; | |
3838 | wxSize temp5 ; | |
e811c8ce | 3839 | bool temp8 = False ; |
d14a1e28 | 3840 | PyObject * obj0 = 0 ; |
994141e6 RD |
3841 | PyObject * obj1 = 0 ; |
3842 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
3843 | PyObject * obj3 = 0 ; |
3844 | PyObject * obj4 = 0 ; | |
994141e6 | 3845 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
3846 | PyObject * obj6 = 0 ; |
3847 | PyObject * obj7 = 0 ; | |
3848 | char *kwnames[] = { | |
3849 | (char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3850 | }; | |
3851 | ||
248ed943 | 3852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_Gauge",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
3853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
3854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3855 | if (obj1) { |
3856 | arg2 = (int) SWIG_AsInt(obj1); | |
3857 | if (PyErr_Occurred()) SWIG_fail; | |
3858 | } | |
3859 | if (obj2) { | |
3860 | arg3 = (int) SWIG_AsInt(obj2); | |
3861 | if (PyErr_Occurred()) SWIG_fail; | |
3862 | } | |
d14a1e28 RD |
3863 | if (obj3) { |
3864 | { | |
3865 | arg4 = &temp4; | |
3866 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
3867 | } | |
3868 | } | |
3869 | if (obj4) { | |
3870 | { | |
3871 | arg5 = &temp5; | |
3872 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
3873 | } | |
3874 | } | |
994141e6 | 3875 | if (obj5) { |
15afbcd0 RD |
3876 | arg6 = (long) SWIG_AsLong(obj5); |
3877 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 3878 | } |
d14a1e28 | 3879 | if (obj6) { |
15afbcd0 RD |
3880 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
3881 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
3882 | SWIG_fail; | |
d14a1e28 | 3883 | if (arg7 == NULL) { |
15afbcd0 RD |
3884 | PyErr_SetString(PyExc_TypeError,"null reference"); |
3885 | SWIG_fail; | |
d14a1e28 RD |
3886 | } |
3887 | } | |
3888 | if (obj7) { | |
3889 | { | |
3890 | arg8 = wxString_in_helper(obj7); | |
3891 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 3892 | temp8 = True; |
d14a1e28 RD |
3893 | } |
3894 | } | |
3895 | { | |
e3b71cb8 | 3896 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3898 | result = (wxGauge *)new wxGauge(arg1,arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
3899 | ||
3900 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3901 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3902 | } |
15afbcd0 | 3903 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3904 | { |
3905 | if (temp8) | |
3906 | delete arg8; | |
3907 | } | |
3908 | return resultobj; | |
3909 | fail: | |
3910 | { | |
3911 | if (temp8) | |
3912 | delete arg8; | |
3913 | } | |
3914 | return NULL; | |
3915 | } | |
3916 | ||
3917 | ||
3918 | static PyObject *_wrap_new_PreGauge(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3919 | PyObject *resultobj; | |
3920 | wxGauge *result; | |
3921 | char *kwnames[] = { | |
3922 | NULL | |
3923 | }; | |
3924 | ||
3925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGauge",kwnames)) goto fail; | |
3926 | { | |
e3b71cb8 | 3927 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
3928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
3929 | result = (wxGauge *)new wxGauge(); | |
3930 | ||
3931 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 3932 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 3933 | } |
15afbcd0 | 3934 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGauge, 1); |
d14a1e28 RD |
3935 | return resultobj; |
3936 | fail: | |
3937 | return NULL; | |
3938 | } | |
3939 | ||
3940 | ||
3941 | static PyObject *_wrap_Gauge_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3942 | PyObject *resultobj; | |
3943 | wxGauge *arg1 = (wxGauge *) 0 ; | |
3944 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
3945 | int arg3 = (int) -1 ; |
3946 | int arg4 = (int) 100 ; | |
d14a1e28 RD |
3947 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
3948 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
3949 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
3950 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
3951 | long arg7 = (long) wxGA_HORIZONTAL ; | |
3952 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
3953 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
3954 | wxString const &arg9_defvalue = wxPyGaugeNameStr ; | |
3955 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
3956 | bool result; | |
3957 | wxPoint temp5 ; | |
3958 | wxSize temp6 ; | |
e811c8ce | 3959 | bool temp9 = False ; |
d14a1e28 RD |
3960 | PyObject * obj0 = 0 ; |
3961 | PyObject * obj1 = 0 ; | |
994141e6 RD |
3962 | PyObject * obj2 = 0 ; |
3963 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
3964 | PyObject * obj4 = 0 ; |
3965 | PyObject * obj5 = 0 ; | |
994141e6 | 3966 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
3967 | PyObject * obj7 = 0 ; |
3968 | PyObject * obj8 = 0 ; | |
3969 | char *kwnames[] = { | |
3970 | (char *) "self",(char *) "parent",(char *) "id",(char *) "range",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
3971 | }; | |
3972 | ||
248ed943 | 3973 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:Gauge_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
3974 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
3975 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3976 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
3977 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
3978 | if (obj2) { |
3979 | arg3 = (int) SWIG_AsInt(obj2); | |
3980 | if (PyErr_Occurred()) SWIG_fail; | |
3981 | } | |
3982 | if (obj3) { | |
3983 | arg4 = (int) SWIG_AsInt(obj3); | |
3984 | if (PyErr_Occurred()) SWIG_fail; | |
3985 | } | |
d14a1e28 RD |
3986 | if (obj4) { |
3987 | { | |
3988 | arg5 = &temp5; | |
3989 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
3990 | } | |
3991 | } | |
3992 | if (obj5) { | |
3993 | { | |
3994 | arg6 = &temp6; | |
3995 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
3996 | } | |
3997 | } | |
994141e6 | 3998 | if (obj6) { |
15afbcd0 RD |
3999 | arg7 = (long) SWIG_AsLong(obj6); |
4000 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4001 | } |
d14a1e28 | 4002 | if (obj7) { |
15afbcd0 RD |
4003 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
4004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
4005 | SWIG_fail; | |
d14a1e28 | 4006 | if (arg8 == NULL) { |
15afbcd0 RD |
4007 | PyErr_SetString(PyExc_TypeError,"null reference"); |
4008 | SWIG_fail; | |
d14a1e28 RD |
4009 | } |
4010 | } | |
4011 | if (obj8) { | |
4012 | { | |
4013 | arg9 = wxString_in_helper(obj8); | |
4014 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 4015 | temp9 = True; |
d14a1e28 RD |
4016 | } |
4017 | } | |
4018 | { | |
4019 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4020 | result = (bool)(arg1)->Create(arg2,arg3,arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
4021 | ||
4022 | wxPyEndAllowThreads(__tstate); | |
4023 | if (PyErr_Occurred()) SWIG_fail; | |
4024 | } | |
4f89f6a3 RD |
4025 | { |
4026 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4027 | } | |
d14a1e28 RD |
4028 | { |
4029 | if (temp9) | |
4030 | delete arg9; | |
4031 | } | |
4032 | return resultobj; | |
4033 | fail: | |
4034 | { | |
4035 | if (temp9) | |
4036 | delete arg9; | |
4037 | } | |
4038 | return NULL; | |
4039 | } | |
4040 | ||
4041 | ||
4042 | static PyObject *_wrap_Gauge_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4043 | PyObject *resultobj; | |
4044 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4045 | int arg2 ; | |
4046 | PyObject * obj0 = 0 ; | |
994141e6 | 4047 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4048 | char *kwnames[] = { |
4049 | (char *) "self",(char *) "range", NULL | |
4050 | }; | |
4051 | ||
994141e6 | 4052 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetRange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4053 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4054 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4055 | arg2 = (int) SWIG_AsInt(obj1); | |
4056 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4057 | { |
4058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4059 | (arg1)->SetRange(arg2); | |
4060 | ||
4061 | wxPyEndAllowThreads(__tstate); | |
4062 | if (PyErr_Occurred()) SWIG_fail; | |
4063 | } | |
4064 | Py_INCREF(Py_None); resultobj = Py_None; | |
4065 | return resultobj; | |
4066 | fail: | |
4067 | return NULL; | |
4068 | } | |
4069 | ||
4070 | ||
4071 | static PyObject *_wrap_Gauge_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4072 | PyObject *resultobj; | |
4073 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4074 | int result; | |
4075 | PyObject * obj0 = 0 ; | |
4076 | char *kwnames[] = { | |
4077 | (char *) "self", NULL | |
4078 | }; | |
4079 | ||
4080 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4081 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4082 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4083 | { |
4084 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4085 | result = (int)((wxGauge const *)arg1)->GetRange(); | |
4086 | ||
4087 | wxPyEndAllowThreads(__tstate); | |
4088 | if (PyErr_Occurred()) SWIG_fail; | |
4089 | } | |
15afbcd0 | 4090 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4091 | return resultobj; |
4092 | fail: | |
4093 | return NULL; | |
4094 | } | |
4095 | ||
4096 | ||
4097 | static PyObject *_wrap_Gauge_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4098 | PyObject *resultobj; | |
4099 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4100 | int arg2 ; | |
4101 | PyObject * obj0 = 0 ; | |
994141e6 | 4102 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4103 | char *kwnames[] = { |
4104 | (char *) "self",(char *) "pos", NULL | |
4105 | }; | |
4106 | ||
994141e6 | 4107 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4108 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4109 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4110 | arg2 = (int) SWIG_AsInt(obj1); | |
4111 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4112 | { |
4113 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4114 | (arg1)->SetValue(arg2); | |
4115 | ||
4116 | wxPyEndAllowThreads(__tstate); | |
4117 | if (PyErr_Occurred()) SWIG_fail; | |
4118 | } | |
4119 | Py_INCREF(Py_None); resultobj = Py_None; | |
4120 | return resultobj; | |
4121 | fail: | |
4122 | return NULL; | |
4123 | } | |
4124 | ||
4125 | ||
4126 | static PyObject *_wrap_Gauge_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4127 | PyObject *resultobj; | |
4128 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4129 | int result; | |
4130 | PyObject * obj0 = 0 ; | |
4131 | char *kwnames[] = { | |
4132 | (char *) "self", NULL | |
4133 | }; | |
4134 | ||
4135 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4136 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4137 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4138 | { |
4139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4140 | result = (int)((wxGauge const *)arg1)->GetValue(); | |
4141 | ||
4142 | wxPyEndAllowThreads(__tstate); | |
4143 | if (PyErr_Occurred()) SWIG_fail; | |
4144 | } | |
15afbcd0 | 4145 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4146 | return resultobj; |
4147 | fail: | |
4148 | return NULL; | |
4149 | } | |
4150 | ||
4151 | ||
4152 | static PyObject *_wrap_Gauge_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4153 | PyObject *resultobj; | |
4154 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4155 | bool result; | |
4156 | PyObject * obj0 = 0 ; | |
4157 | char *kwnames[] = { | |
4158 | (char *) "self", NULL | |
4159 | }; | |
4160 | ||
4161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4164 | { |
4165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4166 | result = (bool)((wxGauge const *)arg1)->IsVertical(); | |
4167 | ||
4168 | wxPyEndAllowThreads(__tstate); | |
4169 | if (PyErr_Occurred()) SWIG_fail; | |
4170 | } | |
4f89f6a3 RD |
4171 | { |
4172 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4173 | } | |
d14a1e28 RD |
4174 | return resultobj; |
4175 | fail: | |
4176 | return NULL; | |
4177 | } | |
4178 | ||
4179 | ||
4180 | static PyObject *_wrap_Gauge_SetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4181 | PyObject *resultobj; | |
4182 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4183 | int arg2 ; | |
4184 | PyObject * obj0 = 0 ; | |
994141e6 | 4185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4186 | char *kwnames[] = { |
4187 | (char *) "self",(char *) "w", NULL | |
4188 | }; | |
4189 | ||
994141e6 | 4190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetShadowWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4193 | arg2 = (int) SWIG_AsInt(obj1); | |
4194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4195 | { |
4196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4197 | (arg1)->SetShadowWidth(arg2); | |
4198 | ||
4199 | wxPyEndAllowThreads(__tstate); | |
4200 | if (PyErr_Occurred()) SWIG_fail; | |
4201 | } | |
4202 | Py_INCREF(Py_None); resultobj = Py_None; | |
4203 | return resultobj; | |
4204 | fail: | |
4205 | return NULL; | |
4206 | } | |
4207 | ||
4208 | ||
4209 | static PyObject *_wrap_Gauge_GetShadowWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4210 | PyObject *resultobj; | |
4211 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4212 | int result; | |
4213 | PyObject * obj0 = 0 ; | |
4214 | char *kwnames[] = { | |
4215 | (char *) "self", NULL | |
4216 | }; | |
4217 | ||
4218 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetShadowWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4219 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4220 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4221 | { |
4222 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4223 | result = (int)((wxGauge const *)arg1)->GetShadowWidth(); | |
4224 | ||
4225 | wxPyEndAllowThreads(__tstate); | |
4226 | if (PyErr_Occurred()) SWIG_fail; | |
4227 | } | |
15afbcd0 | 4228 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4229 | return resultobj; |
4230 | fail: | |
4231 | return NULL; | |
4232 | } | |
4233 | ||
4234 | ||
4235 | static PyObject *_wrap_Gauge_SetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4236 | PyObject *resultobj; | |
4237 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4238 | int arg2 ; | |
4239 | PyObject * obj0 = 0 ; | |
994141e6 | 4240 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4241 | char *kwnames[] = { |
4242 | (char *) "self",(char *) "w", NULL | |
4243 | }; | |
4244 | ||
994141e6 | 4245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Gauge_SetBezelFace",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
4246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4248 | arg2 = (int) SWIG_AsInt(obj1); | |
4249 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
4250 | { |
4251 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4252 | (arg1)->SetBezelFace(arg2); | |
4253 | ||
4254 | wxPyEndAllowThreads(__tstate); | |
4255 | if (PyErr_Occurred()) SWIG_fail; | |
4256 | } | |
4257 | Py_INCREF(Py_None); resultobj = Py_None; | |
4258 | return resultobj; | |
4259 | fail: | |
4260 | return NULL; | |
4261 | } | |
4262 | ||
4263 | ||
4264 | static PyObject *_wrap_Gauge_GetBezelFace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4265 | PyObject *resultobj; | |
4266 | wxGauge *arg1 = (wxGauge *) 0 ; | |
4267 | int result; | |
4268 | PyObject * obj0 = 0 ; | |
4269 | char *kwnames[] = { | |
4270 | (char *) "self", NULL | |
4271 | }; | |
4272 | ||
4273 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Gauge_GetBezelFace",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4274 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGauge, |
4275 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4276 | { |
4277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4278 | result = (int)((wxGauge const *)arg1)->GetBezelFace(); | |
4279 | ||
4280 | wxPyEndAllowThreads(__tstate); | |
4281 | if (PyErr_Occurred()) SWIG_fail; | |
4282 | } | |
15afbcd0 | 4283 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4284 | return resultobj; |
4285 | fail: | |
4286 | return NULL; | |
4287 | } | |
4288 | ||
4289 | ||
22bfe96c RD |
4290 | static PyObject *_wrap_Gauge_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4291 | PyObject *resultobj; | |
4292 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4293 | wxVisualAttributes result; | |
4294 | PyObject * obj0 = 0 ; | |
4295 | char *kwnames[] = { | |
4296 | (char *) "variant", NULL | |
4297 | }; | |
4298 | ||
4299 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Gauge_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4300 | if (obj0) { | |
4301 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4302 | if (PyErr_Occurred()) SWIG_fail; | |
4303 | } | |
4304 | { | |
110da5b0 | 4305 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4307 | result = wxGauge::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4308 | ||
4309 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4310 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4311 | } |
4312 | { | |
4313 | wxVisualAttributes * resultptr; | |
4314 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4315 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4316 | } | |
4317 | return resultobj; | |
4318 | fail: | |
4319 | return NULL; | |
4320 | } | |
4321 | ||
4322 | ||
d14a1e28 RD |
4323 | static PyObject * Gauge_swigregister(PyObject *self, PyObject *args) { |
4324 | PyObject *obj; | |
4325 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4326 | SWIG_TypeClientData(SWIGTYPE_p_wxGauge, obj); | |
4327 | Py_INCREF(obj); | |
4328 | return Py_BuildValue((char *)""); | |
4329 | } | |
b2dc1044 RD |
4330 | static int _wrap_StaticBitmapNameStr_set(PyObject *_val) { |
4331 | PyErr_SetString(PyExc_TypeError,"Variable StaticBitmapNameStr is read-only."); | |
4332 | return 1; | |
4333 | } | |
4334 | ||
4335 | ||
4336 | static PyObject *_wrap_StaticBitmapNameStr_get() { | |
4337 | PyObject *pyobj; | |
4338 | ||
4339 | { | |
4340 | #if wxUSE_UNICODE | |
4341 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4342 | #else | |
4343 | pyobj = PyString_FromStringAndSize((&wxPyStaticBitmapNameStr)->c_str(), (&wxPyStaticBitmapNameStr)->Len()); | |
4344 | #endif | |
4345 | } | |
4346 | return pyobj; | |
4347 | } | |
4348 | ||
4349 | ||
4350 | static int _wrap_StaticBoxNameStr_set(PyObject *_val) { | |
4351 | PyErr_SetString(PyExc_TypeError,"Variable StaticBoxNameStr is read-only."); | |
4352 | return 1; | |
4353 | } | |
4354 | ||
4355 | ||
4356 | static PyObject *_wrap_StaticBoxNameStr_get() { | |
4357 | PyObject *pyobj; | |
4358 | ||
4359 | { | |
4360 | #if wxUSE_UNICODE | |
4361 | pyobj = PyUnicode_FromWideChar((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4362 | #else | |
4363 | pyobj = PyString_FromStringAndSize((&wxPyStaticBoxNameStr)->c_str(), (&wxPyStaticBoxNameStr)->Len()); | |
4364 | #endif | |
4365 | } | |
4366 | return pyobj; | |
4367 | } | |
4368 | ||
4369 | ||
4370 | static int _wrap_StaticTextNameStr_set(PyObject *_val) { | |
4371 | PyErr_SetString(PyExc_TypeError,"Variable StaticTextNameStr is read-only."); | |
4372 | return 1; | |
4373 | } | |
4374 | ||
4375 | ||
4376 | static PyObject *_wrap_StaticTextNameStr_get() { | |
4377 | PyObject *pyobj; | |
4378 | ||
4379 | { | |
4380 | #if wxUSE_UNICODE | |
4381 | pyobj = PyUnicode_FromWideChar((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4382 | #else | |
4383 | pyobj = PyString_FromStringAndSize((&wxPyStaticTextNameStr)->c_str(), (&wxPyStaticTextNameStr)->Len()); | |
4384 | #endif | |
4385 | } | |
4386 | return pyobj; | |
4387 | } | |
4388 | ||
4389 | ||
d14a1e28 RD |
4390 | static PyObject *_wrap_new_StaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
4391 | PyObject *resultobj; | |
4392 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4393 | int arg2 = (int) -1 ; |
4394 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4395 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4396 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4397 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4398 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4399 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4400 | long arg6 = (long) 0 ; | |
4401 | wxString const &arg7_defvalue = wxPyStaticBoxNameStr ; | |
4402 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4403 | wxStaticBox *result; | |
e811c8ce | 4404 | bool temp3 = False ; |
d14a1e28 RD |
4405 | wxPoint temp4 ; |
4406 | wxSize temp5 ; | |
e811c8ce | 4407 | bool temp7 = False ; |
d14a1e28 | 4408 | PyObject * obj0 = 0 ; |
994141e6 | 4409 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4410 | PyObject * obj2 = 0 ; |
4411 | PyObject * obj3 = 0 ; | |
4412 | PyObject * obj4 = 0 ; | |
994141e6 | 4413 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4414 | PyObject * obj6 = 0 ; |
4415 | char *kwnames[] = { | |
4416 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4417 | }; | |
4418 | ||
248ed943 | 4419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4422 | if (obj1) { |
4423 | arg2 = (int) SWIG_AsInt(obj1); | |
4424 | if (PyErr_Occurred()) SWIG_fail; | |
4425 | } | |
4426 | if (obj2) { | |
4427 | { | |
4428 | arg3 = wxString_in_helper(obj2); | |
4429 | if (arg3 == NULL) SWIG_fail; | |
4430 | temp3 = True; | |
4431 | } | |
d14a1e28 RD |
4432 | } |
4433 | if (obj3) { | |
4434 | { | |
4435 | arg4 = &temp4; | |
4436 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4437 | } | |
4438 | } | |
4439 | if (obj4) { | |
4440 | { | |
4441 | arg5 = &temp5; | |
4442 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4443 | } | |
4444 | } | |
994141e6 | 4445 | if (obj5) { |
15afbcd0 RD |
4446 | arg6 = (long) SWIG_AsLong(obj5); |
4447 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4448 | } |
d14a1e28 RD |
4449 | if (obj6) { |
4450 | { | |
4451 | arg7 = wxString_in_helper(obj6); | |
4452 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4453 | temp7 = True; |
d14a1e28 RD |
4454 | } |
4455 | } | |
4456 | { | |
e3b71cb8 | 4457 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4459 | result = (wxStaticBox *)new wxStaticBox(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4460 | ||
4461 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4462 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4463 | } |
b0f7404b | 4464 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4465 | { |
4466 | if (temp3) | |
4467 | delete arg3; | |
4468 | } | |
4469 | { | |
4470 | if (temp7) | |
4471 | delete arg7; | |
4472 | } | |
4473 | return resultobj; | |
4474 | fail: | |
4475 | { | |
4476 | if (temp3) | |
4477 | delete arg3; | |
4478 | } | |
4479 | { | |
4480 | if (temp7) | |
4481 | delete arg7; | |
4482 | } | |
4483 | return NULL; | |
4484 | } | |
4485 | ||
4486 | ||
4487 | static PyObject *_wrap_new_PreStaticBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4488 | PyObject *resultobj; | |
4489 | wxStaticBox *result; | |
4490 | char *kwnames[] = { | |
4491 | NULL | |
4492 | }; | |
4493 | ||
4494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBox",kwnames)) goto fail; | |
4495 | { | |
e3b71cb8 | 4496 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4497 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4498 | result = (wxStaticBox *)new wxStaticBox(); | |
4499 | ||
4500 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4501 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4502 | } |
b0f7404b | 4503 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBox, 1); |
d14a1e28 RD |
4504 | return resultobj; |
4505 | fail: | |
4506 | return NULL; | |
4507 | } | |
4508 | ||
4509 | ||
4510 | static PyObject *_wrap_StaticBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4511 | PyObject *resultobj; | |
4512 | wxStaticBox *arg1 = (wxStaticBox *) 0 ; | |
4513 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
4514 | int arg3 = (int) -1 ; |
4515 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
4516 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
4517 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
4518 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
4519 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
4520 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4521 | long arg7 = (long) 0 ; | |
4522 | wxString const &arg8_defvalue = wxPyStaticBoxNameStr ; | |
4523 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
4524 | bool result; | |
e811c8ce | 4525 | bool temp4 = False ; |
d14a1e28 RD |
4526 | wxPoint temp5 ; |
4527 | wxSize temp6 ; | |
e811c8ce | 4528 | bool temp8 = False ; |
d14a1e28 RD |
4529 | PyObject * obj0 = 0 ; |
4530 | PyObject * obj1 = 0 ; | |
994141e6 | 4531 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4532 | PyObject * obj3 = 0 ; |
4533 | PyObject * obj4 = 0 ; | |
4534 | PyObject * obj5 = 0 ; | |
994141e6 | 4535 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
4536 | PyObject * obj7 = 0 ; |
4537 | char *kwnames[] = { | |
4538 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4539 | }; | |
4540 | ||
248ed943 | 4541 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
4542 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBox, |
4543 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4544 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4546 | if (obj2) { |
4547 | arg3 = (int) SWIG_AsInt(obj2); | |
4548 | if (PyErr_Occurred()) SWIG_fail; | |
4549 | } | |
4550 | if (obj3) { | |
4551 | { | |
4552 | arg4 = wxString_in_helper(obj3); | |
4553 | if (arg4 == NULL) SWIG_fail; | |
4554 | temp4 = True; | |
4555 | } | |
d14a1e28 RD |
4556 | } |
4557 | if (obj4) { | |
4558 | { | |
4559 | arg5 = &temp5; | |
4560 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
4561 | } | |
4562 | } | |
4563 | if (obj5) { | |
4564 | { | |
4565 | arg6 = &temp6; | |
4566 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
4567 | } | |
4568 | } | |
994141e6 | 4569 | if (obj6) { |
15afbcd0 RD |
4570 | arg7 = (long) SWIG_AsLong(obj6); |
4571 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4572 | } |
d14a1e28 RD |
4573 | if (obj7) { |
4574 | { | |
4575 | arg8 = wxString_in_helper(obj7); | |
4576 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 4577 | temp8 = True; |
d14a1e28 RD |
4578 | } |
4579 | } | |
4580 | { | |
4581 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4582 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
4583 | ||
4584 | wxPyEndAllowThreads(__tstate); | |
4585 | if (PyErr_Occurred()) SWIG_fail; | |
4586 | } | |
4f89f6a3 RD |
4587 | { |
4588 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4589 | } | |
d14a1e28 RD |
4590 | { |
4591 | if (temp4) | |
4592 | delete arg4; | |
4593 | } | |
4594 | { | |
4595 | if (temp8) | |
4596 | delete arg8; | |
4597 | } | |
4598 | return resultobj; | |
4599 | fail: | |
4600 | { | |
4601 | if (temp4) | |
4602 | delete arg4; | |
4603 | } | |
4604 | { | |
4605 | if (temp8) | |
4606 | delete arg8; | |
4607 | } | |
4608 | return NULL; | |
4609 | } | |
4610 | ||
4611 | ||
22bfe96c RD |
4612 | static PyObject *_wrap_StaticBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4613 | PyObject *resultobj; | |
4614 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4615 | wxVisualAttributes result; | |
4616 | PyObject * obj0 = 0 ; | |
4617 | char *kwnames[] = { | |
4618 | (char *) "variant", NULL | |
4619 | }; | |
4620 | ||
4621 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4622 | if (obj0) { | |
4623 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4624 | if (PyErr_Occurred()) SWIG_fail; | |
4625 | } | |
4626 | { | |
110da5b0 | 4627 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4628 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4629 | result = wxStaticBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4630 | ||
4631 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4632 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4633 | } |
4634 | { | |
4635 | wxVisualAttributes * resultptr; | |
4636 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4637 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4638 | } | |
4639 | return resultobj; | |
4640 | fail: | |
4641 | return NULL; | |
4642 | } | |
4643 | ||
4644 | ||
d14a1e28 RD |
4645 | static PyObject * StaticBox_swigregister(PyObject *self, PyObject *args) { |
4646 | PyObject *obj; | |
4647 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4648 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBox, obj); | |
4649 | Py_INCREF(obj); | |
4650 | return Py_BuildValue((char *)""); | |
4651 | } | |
4652 | static PyObject *_wrap_new_StaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4653 | PyObject *resultobj; | |
4654 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 4655 | int arg2 = (int) -1 ; |
d14a1e28 RD |
4656 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
4657 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
4658 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
4659 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4660 | long arg5 = (long) wxLI_HORIZONTAL ; | |
4661 | wxString const &arg6_defvalue = wxPyStaticTextNameStr ; | |
4662 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
4663 | wxStaticLine *result; | |
4664 | wxPoint temp3 ; | |
4665 | wxSize temp4 ; | |
e811c8ce | 4666 | bool temp6 = False ; |
d14a1e28 | 4667 | PyObject * obj0 = 0 ; |
994141e6 | 4668 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4669 | PyObject * obj2 = 0 ; |
4670 | PyObject * obj3 = 0 ; | |
994141e6 | 4671 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
4672 | PyObject * obj5 = 0 ; |
4673 | char *kwnames[] = { | |
4674 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4675 | }; | |
4676 | ||
248ed943 | 4677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_StaticLine",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
4678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4680 | if (obj1) { |
4681 | arg2 = (int) SWIG_AsInt(obj1); | |
4682 | if (PyErr_Occurred()) SWIG_fail; | |
4683 | } | |
d14a1e28 RD |
4684 | if (obj2) { |
4685 | { | |
4686 | arg3 = &temp3; | |
4687 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
4688 | } | |
4689 | } | |
4690 | if (obj3) { | |
4691 | { | |
4692 | arg4 = &temp4; | |
4693 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
4694 | } | |
4695 | } | |
994141e6 | 4696 | if (obj4) { |
15afbcd0 RD |
4697 | arg5 = (long) SWIG_AsLong(obj4); |
4698 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4699 | } |
d14a1e28 RD |
4700 | if (obj5) { |
4701 | { | |
4702 | arg6 = wxString_in_helper(obj5); | |
4703 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 4704 | temp6 = True; |
d14a1e28 RD |
4705 | } |
4706 | } | |
4707 | { | |
e3b71cb8 | 4708 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4709 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4710 | result = (wxStaticLine *)new wxStaticLine(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
4711 | ||
4712 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4713 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4714 | } |
15afbcd0 | 4715 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4716 | { |
4717 | if (temp6) | |
4718 | delete arg6; | |
4719 | } | |
4720 | return resultobj; | |
4721 | fail: | |
4722 | { | |
4723 | if (temp6) | |
4724 | delete arg6; | |
4725 | } | |
4726 | return NULL; | |
4727 | } | |
4728 | ||
4729 | ||
4730 | static PyObject *_wrap_new_PreStaticLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4731 | PyObject *resultobj; | |
4732 | wxStaticLine *result; | |
4733 | char *kwnames[] = { | |
4734 | NULL | |
4735 | }; | |
4736 | ||
4737 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticLine",kwnames)) goto fail; | |
4738 | { | |
e3b71cb8 | 4739 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4741 | result = (wxStaticLine *)new wxStaticLine(); | |
4742 | ||
4743 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4744 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4745 | } |
15afbcd0 | 4746 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticLine, 1); |
d14a1e28 RD |
4747 | return resultobj; |
4748 | fail: | |
4749 | return NULL; | |
4750 | } | |
4751 | ||
4752 | ||
4753 | static PyObject *_wrap_StaticLine_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4754 | PyObject *resultobj; | |
4755 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4756 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 4757 | int arg3 = (int) -1 ; |
d14a1e28 RD |
4758 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4759 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4760 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4761 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4762 | long arg6 = (long) wxLI_HORIZONTAL ; | |
4763 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4764 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4765 | bool result; | |
4766 | wxPoint temp4 ; | |
4767 | wxSize temp5 ; | |
e811c8ce | 4768 | bool temp7 = False ; |
d14a1e28 RD |
4769 | PyObject * obj0 = 0 ; |
4770 | PyObject * obj1 = 0 ; | |
994141e6 | 4771 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
4772 | PyObject * obj3 = 0 ; |
4773 | PyObject * obj4 = 0 ; | |
994141e6 | 4774 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4775 | PyObject * obj6 = 0 ; |
4776 | char *kwnames[] = { | |
4777 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4778 | }; | |
4779 | ||
248ed943 | 4780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:StaticLine_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
4784 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4785 | if (obj2) { |
4786 | arg3 = (int) SWIG_AsInt(obj2); | |
4787 | if (PyErr_Occurred()) SWIG_fail; | |
4788 | } | |
d14a1e28 RD |
4789 | if (obj3) { |
4790 | { | |
4791 | arg4 = &temp4; | |
4792 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4793 | } | |
4794 | } | |
4795 | if (obj4) { | |
4796 | { | |
4797 | arg5 = &temp5; | |
4798 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4799 | } | |
4800 | } | |
994141e6 | 4801 | if (obj5) { |
15afbcd0 RD |
4802 | arg6 = (long) SWIG_AsLong(obj5); |
4803 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4804 | } |
d14a1e28 RD |
4805 | if (obj6) { |
4806 | { | |
4807 | arg7 = wxString_in_helper(obj6); | |
4808 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4809 | temp7 = True; |
d14a1e28 RD |
4810 | } |
4811 | } | |
4812 | { | |
4813 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4814 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4815 | ||
4816 | wxPyEndAllowThreads(__tstate); | |
4817 | if (PyErr_Occurred()) SWIG_fail; | |
4818 | } | |
4f89f6a3 RD |
4819 | { |
4820 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4821 | } | |
d14a1e28 RD |
4822 | { |
4823 | if (temp7) | |
4824 | delete arg7; | |
4825 | } | |
4826 | return resultobj; | |
4827 | fail: | |
4828 | { | |
4829 | if (temp7) | |
4830 | delete arg7; | |
4831 | } | |
4832 | return NULL; | |
4833 | } | |
4834 | ||
4835 | ||
4836 | static PyObject *_wrap_StaticLine_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4837 | PyObject *resultobj; | |
4838 | wxStaticLine *arg1 = (wxStaticLine *) 0 ; | |
4839 | bool result; | |
4840 | PyObject * obj0 = 0 ; | |
4841 | char *kwnames[] = { | |
4842 | (char *) "self", NULL | |
4843 | }; | |
4844 | ||
4845 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticLine_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
4846 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticLine, |
4847 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
4848 | { |
4849 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4850 | result = (bool)((wxStaticLine const *)arg1)->IsVertical(); | |
4851 | ||
4852 | wxPyEndAllowThreads(__tstate); | |
4853 | if (PyErr_Occurred()) SWIG_fail; | |
4854 | } | |
4f89f6a3 RD |
4855 | { |
4856 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
4857 | } | |
d14a1e28 RD |
4858 | return resultobj; |
4859 | fail: | |
4860 | return NULL; | |
4861 | } | |
4862 | ||
4863 | ||
4864 | static PyObject *_wrap_StaticLine_GetDefaultSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4865 | PyObject *resultobj; | |
4866 | int result; | |
4867 | char *kwnames[] = { | |
4868 | NULL | |
4869 | }; | |
4870 | ||
4871 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":StaticLine_GetDefaultSize",kwnames)) goto fail; | |
4872 | { | |
4873 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4874 | result = (int)wxStaticLine::GetDefaultSize(); | |
4875 | ||
4876 | wxPyEndAllowThreads(__tstate); | |
4877 | if (PyErr_Occurred()) SWIG_fail; | |
4878 | } | |
15afbcd0 | 4879 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
4880 | return resultobj; |
4881 | fail: | |
4882 | return NULL; | |
4883 | } | |
4884 | ||
4885 | ||
22bfe96c RD |
4886 | static PyObject *_wrap_StaticLine_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
4887 | PyObject *resultobj; | |
4888 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
4889 | wxVisualAttributes result; | |
4890 | PyObject * obj0 = 0 ; | |
4891 | char *kwnames[] = { | |
4892 | (char *) "variant", NULL | |
4893 | }; | |
4894 | ||
4895 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticLine_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
4896 | if (obj0) { | |
4897 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
4898 | if (PyErr_Occurred()) SWIG_fail; | |
4899 | } | |
4900 | { | |
110da5b0 | 4901 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
4902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4903 | result = wxStaticLine::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
4904 | ||
4905 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 4906 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
4907 | } |
4908 | { | |
4909 | wxVisualAttributes * resultptr; | |
4910 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
4911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4912 | } | |
4913 | return resultobj; | |
4914 | fail: | |
4915 | return NULL; | |
4916 | } | |
4917 | ||
4918 | ||
d14a1e28 RD |
4919 | static PyObject * StaticLine_swigregister(PyObject *self, PyObject *args) { |
4920 | PyObject *obj; | |
4921 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
4922 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticLine, obj); | |
4923 | Py_INCREF(obj); | |
4924 | return Py_BuildValue((char *)""); | |
4925 | } | |
4926 | static PyObject *_wrap_new_StaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
4927 | PyObject *resultobj; | |
4928 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
4929 | int arg2 = (int) -1 ; |
4930 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
4931 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
4932 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
4933 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
4934 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
4935 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4936 | long arg6 = (long) 0 ; | |
4937 | wxString const &arg7_defvalue = wxPyStaticTextNameStr ; | |
4938 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
4939 | wxStaticText *result; | |
e811c8ce | 4940 | bool temp3 = False ; |
d14a1e28 RD |
4941 | wxPoint temp4 ; |
4942 | wxSize temp5 ; | |
e811c8ce | 4943 | bool temp7 = False ; |
d14a1e28 | 4944 | PyObject * obj0 = 0 ; |
994141e6 | 4945 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
4946 | PyObject * obj2 = 0 ; |
4947 | PyObject * obj3 = 0 ; | |
4948 | PyObject * obj4 = 0 ; | |
994141e6 | 4949 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
4950 | PyObject * obj6 = 0 ; |
4951 | char *kwnames[] = { | |
4952 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
4953 | }; | |
4954 | ||
248ed943 | 4955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticText",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
4956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
4957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
4958 | if (obj1) { |
4959 | arg2 = (int) SWIG_AsInt(obj1); | |
4960 | if (PyErr_Occurred()) SWIG_fail; | |
4961 | } | |
4962 | if (obj2) { | |
4963 | { | |
4964 | arg3 = wxString_in_helper(obj2); | |
4965 | if (arg3 == NULL) SWIG_fail; | |
4966 | temp3 = True; | |
4967 | } | |
d14a1e28 RD |
4968 | } |
4969 | if (obj3) { | |
4970 | { | |
4971 | arg4 = &temp4; | |
4972 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
4973 | } | |
4974 | } | |
4975 | if (obj4) { | |
4976 | { | |
4977 | arg5 = &temp5; | |
4978 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
4979 | } | |
4980 | } | |
994141e6 | 4981 | if (obj5) { |
15afbcd0 RD |
4982 | arg6 = (long) SWIG_AsLong(obj5); |
4983 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 4984 | } |
d14a1e28 RD |
4985 | if (obj6) { |
4986 | { | |
4987 | arg7 = wxString_in_helper(obj6); | |
4988 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 4989 | temp7 = True; |
d14a1e28 RD |
4990 | } |
4991 | } | |
4992 | { | |
e3b71cb8 | 4993 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
4994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4995 | result = (wxStaticText *)new wxStaticText(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
4996 | ||
4997 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 4998 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 4999 | } |
15afbcd0 | 5000 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5001 | { |
5002 | if (temp3) | |
5003 | delete arg3; | |
5004 | } | |
5005 | { | |
5006 | if (temp7) | |
5007 | delete arg7; | |
5008 | } | |
5009 | return resultobj; | |
5010 | fail: | |
5011 | { | |
5012 | if (temp3) | |
5013 | delete arg3; | |
5014 | } | |
5015 | { | |
5016 | if (temp7) | |
5017 | delete arg7; | |
5018 | } | |
5019 | return NULL; | |
5020 | } | |
5021 | ||
5022 | ||
5023 | static PyObject *_wrap_new_PreStaticText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5024 | PyObject *resultobj; | |
5025 | wxStaticText *result; | |
5026 | char *kwnames[] = { | |
5027 | NULL | |
5028 | }; | |
5029 | ||
5030 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticText",kwnames)) goto fail; | |
5031 | { | |
e3b71cb8 | 5032 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5034 | result = (wxStaticText *)new wxStaticText(); | |
5035 | ||
5036 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5037 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5038 | } |
15afbcd0 | 5039 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticText, 1); |
d14a1e28 RD |
5040 | return resultobj; |
5041 | fail: | |
5042 | return NULL; | |
5043 | } | |
5044 | ||
5045 | ||
5046 | static PyObject *_wrap_StaticText_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5047 | PyObject *resultobj; | |
5048 | wxStaticText *arg1 = (wxStaticText *) 0 ; | |
5049 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5050 | int arg3 = (int) -1 ; |
5051 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
5052 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
5053 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5054 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5055 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5056 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5057 | long arg7 = (long) 0 ; | |
5058 | wxString const &arg8_defvalue = wxPyStaticTextNameStr ; | |
5059 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5060 | bool result; | |
e811c8ce | 5061 | bool temp4 = False ; |
d14a1e28 RD |
5062 | wxPoint temp5 ; |
5063 | wxSize temp6 ; | |
e811c8ce | 5064 | bool temp8 = False ; |
d14a1e28 RD |
5065 | PyObject * obj0 = 0 ; |
5066 | PyObject * obj1 = 0 ; | |
994141e6 | 5067 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5068 | PyObject * obj3 = 0 ; |
5069 | PyObject * obj4 = 0 ; | |
5070 | PyObject * obj5 = 0 ; | |
994141e6 | 5071 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5072 | PyObject * obj7 = 0 ; |
5073 | char *kwnames[] = { | |
5074 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5075 | }; | |
5076 | ||
248ed943 | 5077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticText_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticText, |
5079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5080 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5082 | if (obj2) { |
5083 | arg3 = (int) SWIG_AsInt(obj2); | |
5084 | if (PyErr_Occurred()) SWIG_fail; | |
5085 | } | |
5086 | if (obj3) { | |
5087 | { | |
5088 | arg4 = wxString_in_helper(obj3); | |
5089 | if (arg4 == NULL) SWIG_fail; | |
5090 | temp4 = True; | |
5091 | } | |
d14a1e28 RD |
5092 | } |
5093 | if (obj4) { | |
5094 | { | |
5095 | arg5 = &temp5; | |
5096 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5097 | } | |
5098 | } | |
5099 | if (obj5) { | |
5100 | { | |
5101 | arg6 = &temp6; | |
5102 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5103 | } | |
5104 | } | |
994141e6 | 5105 | if (obj6) { |
15afbcd0 RD |
5106 | arg7 = (long) SWIG_AsLong(obj6); |
5107 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5108 | } |
d14a1e28 RD |
5109 | if (obj7) { |
5110 | { | |
5111 | arg8 = wxString_in_helper(obj7); | |
5112 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5113 | temp8 = True; |
d14a1e28 RD |
5114 | } |
5115 | } | |
5116 | { | |
5117 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5118 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5119 | ||
5120 | wxPyEndAllowThreads(__tstate); | |
5121 | if (PyErr_Occurred()) SWIG_fail; | |
5122 | } | |
4f89f6a3 RD |
5123 | { |
5124 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5125 | } | |
d14a1e28 RD |
5126 | { |
5127 | if (temp4) | |
5128 | delete arg4; | |
5129 | } | |
5130 | { | |
5131 | if (temp8) | |
5132 | delete arg8; | |
5133 | } | |
5134 | return resultobj; | |
5135 | fail: | |
5136 | { | |
5137 | if (temp4) | |
5138 | delete arg4; | |
5139 | } | |
5140 | { | |
5141 | if (temp8) | |
5142 | delete arg8; | |
5143 | } | |
5144 | return NULL; | |
5145 | } | |
5146 | ||
5147 | ||
22bfe96c RD |
5148 | static PyObject *_wrap_StaticText_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5149 | PyObject *resultobj; | |
5150 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5151 | wxVisualAttributes result; | |
5152 | PyObject * obj0 = 0 ; | |
5153 | char *kwnames[] = { | |
5154 | (char *) "variant", NULL | |
5155 | }; | |
5156 | ||
5157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticText_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5158 | if (obj0) { | |
5159 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5160 | if (PyErr_Occurred()) SWIG_fail; | |
5161 | } | |
5162 | { | |
110da5b0 | 5163 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5165 | result = wxStaticText::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5166 | ||
5167 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5168 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5169 | } |
5170 | { | |
5171 | wxVisualAttributes * resultptr; | |
5172 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5173 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5174 | } | |
5175 | return resultobj; | |
5176 | fail: | |
5177 | return NULL; | |
5178 | } | |
5179 | ||
5180 | ||
d14a1e28 RD |
5181 | static PyObject * StaticText_swigregister(PyObject *self, PyObject *args) { |
5182 | PyObject *obj; | |
5183 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5184 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticText, obj); | |
5185 | Py_INCREF(obj); | |
5186 | return Py_BuildValue((char *)""); | |
5187 | } | |
5188 | static PyObject *_wrap_new_StaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5189 | PyObject *resultobj; | |
5190 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
5191 | int arg2 = (int) -1 ; |
5192 | wxBitmap const &arg3_defvalue = wxNullBitmap ; | |
5193 | wxBitmap *arg3 = (wxBitmap *) &arg3_defvalue ; | |
d14a1e28 RD |
5194 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5195 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5196 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5197 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
5198 | long arg6 = (long) 0 ; | |
5199 | wxString const &arg7_defvalue = wxPyStaticBitmapNameStr ; | |
5200 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
5201 | wxStaticBitmap *result; | |
5202 | wxPoint temp4 ; | |
5203 | wxSize temp5 ; | |
e811c8ce | 5204 | bool temp7 = False ; |
d14a1e28 | 5205 | PyObject * obj0 = 0 ; |
994141e6 | 5206 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5207 | PyObject * obj2 = 0 ; |
5208 | PyObject * obj3 = 0 ; | |
5209 | PyObject * obj4 = 0 ; | |
994141e6 | 5210 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5211 | PyObject * obj6 = 0 ; |
5212 | char *kwnames[] = { | |
5213 | (char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5214 | }; | |
5215 | ||
248ed943 | 5216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_StaticBitmap",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
5217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5219 | if (obj1) { |
5220 | arg2 = (int) SWIG_AsInt(obj1); | |
5221 | if (PyErr_Occurred()) SWIG_fail; | |
5222 | } | |
5223 | if (obj2) { | |
5224 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxBitmap, | |
5225 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5226 | SWIG_fail; |
248ed943 RD |
5227 | if (arg3 == NULL) { |
5228 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5229 | SWIG_fail; | |
5230 | } | |
d14a1e28 RD |
5231 | } |
5232 | if (obj3) { | |
5233 | { | |
5234 | arg4 = &temp4; | |
5235 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5236 | } | |
5237 | } | |
5238 | if (obj4) { | |
5239 | { | |
5240 | arg5 = &temp5; | |
5241 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5242 | } | |
5243 | } | |
994141e6 | 5244 | if (obj5) { |
15afbcd0 RD |
5245 | arg6 = (long) SWIG_AsLong(obj5); |
5246 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5247 | } |
d14a1e28 RD |
5248 | if (obj6) { |
5249 | { | |
5250 | arg7 = wxString_in_helper(obj6); | |
5251 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 5252 | temp7 = True; |
d14a1e28 RD |
5253 | } |
5254 | } | |
5255 | { | |
e3b71cb8 | 5256 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5258 | result = (wxStaticBitmap *)new wxStaticBitmap(arg1,arg2,(wxBitmap const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
5259 | ||
5260 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5261 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5262 | } |
15afbcd0 | 5263 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5264 | { |
5265 | if (temp7) | |
5266 | delete arg7; | |
5267 | } | |
5268 | return resultobj; | |
5269 | fail: | |
5270 | { | |
5271 | if (temp7) | |
5272 | delete arg7; | |
5273 | } | |
5274 | return NULL; | |
5275 | } | |
5276 | ||
5277 | ||
5278 | static PyObject *_wrap_new_PreStaticBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5279 | PyObject *resultobj; | |
5280 | wxStaticBitmap *result; | |
5281 | char *kwnames[] = { | |
5282 | NULL | |
5283 | }; | |
5284 | ||
5285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreStaticBitmap",kwnames)) goto fail; | |
5286 | { | |
e3b71cb8 | 5287 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5288 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5289 | result = (wxStaticBitmap *)new wxStaticBitmap(); | |
5290 | ||
5291 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5292 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5293 | } |
15afbcd0 | 5294 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxStaticBitmap, 1); |
d14a1e28 RD |
5295 | return resultobj; |
5296 | fail: | |
5297 | return NULL; | |
5298 | } | |
5299 | ||
5300 | ||
5301 | static PyObject *_wrap_StaticBitmap_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5302 | PyObject *resultobj; | |
5303 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5304 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
5305 | int arg3 = (int) -1 ; |
5306 | wxBitmap const &arg4_defvalue = wxNullBitmap ; | |
5307 | wxBitmap *arg4 = (wxBitmap *) &arg4_defvalue ; | |
d14a1e28 RD |
5308 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
5309 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
5310 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
5311 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
5312 | long arg7 = (long) 0 ; | |
5313 | wxString const &arg8_defvalue = wxPyStaticBitmapNameStr ; | |
5314 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
5315 | bool result; | |
5316 | wxPoint temp5 ; | |
5317 | wxSize temp6 ; | |
e811c8ce | 5318 | bool temp8 = False ; |
d14a1e28 RD |
5319 | PyObject * obj0 = 0 ; |
5320 | PyObject * obj1 = 0 ; | |
994141e6 | 5321 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5322 | PyObject * obj3 = 0 ; |
5323 | PyObject * obj4 = 0 ; | |
5324 | PyObject * obj5 = 0 ; | |
994141e6 | 5325 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5326 | PyObject * obj7 = 0 ; |
5327 | char *kwnames[] = { | |
5328 | (char *) "self",(char *) "parent",(char *) "id",(char *) "bitmap",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
5329 | }; | |
5330 | ||
248ed943 | 5331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:StaticBitmap_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5334 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5336 | if (obj2) { |
5337 | arg3 = (int) SWIG_AsInt(obj2); | |
5338 | if (PyErr_Occurred()) SWIG_fail; | |
5339 | } | |
5340 | if (obj3) { | |
5341 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, | |
5342 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
15afbcd0 | 5343 | SWIG_fail; |
248ed943 RD |
5344 | if (arg4 == NULL) { |
5345 | PyErr_SetString(PyExc_TypeError,"null reference"); | |
5346 | SWIG_fail; | |
5347 | } | |
d14a1e28 RD |
5348 | } |
5349 | if (obj4) { | |
5350 | { | |
5351 | arg5 = &temp5; | |
5352 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
5353 | } | |
5354 | } | |
5355 | if (obj5) { | |
5356 | { | |
5357 | arg6 = &temp6; | |
5358 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
5359 | } | |
5360 | } | |
994141e6 | 5361 | if (obj6) { |
15afbcd0 RD |
5362 | arg7 = (long) SWIG_AsLong(obj6); |
5363 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5364 | } |
d14a1e28 RD |
5365 | if (obj7) { |
5366 | { | |
5367 | arg8 = wxString_in_helper(obj7); | |
5368 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5369 | temp8 = True; |
d14a1e28 RD |
5370 | } |
5371 | } | |
5372 | { | |
5373 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5374 | result = (bool)(arg1)->Create(arg2,arg3,(wxBitmap const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8); | |
5375 | ||
5376 | wxPyEndAllowThreads(__tstate); | |
5377 | if (PyErr_Occurred()) SWIG_fail; | |
5378 | } | |
4f89f6a3 RD |
5379 | { |
5380 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5381 | } | |
d14a1e28 RD |
5382 | { |
5383 | if (temp8) | |
5384 | delete arg8; | |
5385 | } | |
5386 | return resultobj; | |
5387 | fail: | |
5388 | { | |
5389 | if (temp8) | |
5390 | delete arg8; | |
5391 | } | |
5392 | return NULL; | |
5393 | } | |
5394 | ||
5395 | ||
5396 | static PyObject *_wrap_StaticBitmap_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5397 | PyObject *resultobj; | |
5398 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5399 | wxBitmap result; | |
5400 | PyObject * obj0 = 0 ; | |
5401 | char *kwnames[] = { | |
5402 | (char *) "self", NULL | |
5403 | }; | |
5404 | ||
5405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:StaticBitmap_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
5406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5408 | { |
5409 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5410 | result = (arg1)->GetBitmap(); | |
5411 | ||
5412 | wxPyEndAllowThreads(__tstate); | |
5413 | if (PyErr_Occurred()) SWIG_fail; | |
5414 | } | |
5415 | { | |
5416 | wxBitmap * resultptr; | |
5417 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 5418 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
5419 | } |
5420 | return resultobj; | |
5421 | fail: | |
5422 | return NULL; | |
5423 | } | |
5424 | ||
5425 | ||
5426 | static PyObject *_wrap_StaticBitmap_SetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5427 | PyObject *resultobj; | |
5428 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5429 | wxBitmap *arg2 = 0 ; | |
5430 | PyObject * obj0 = 0 ; | |
5431 | PyObject * obj1 = 0 ; | |
5432 | char *kwnames[] = { | |
5433 | (char *) "self",(char *) "bitmap", NULL | |
5434 | }; | |
5435 | ||
5436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5439 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
5440 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5441 | SWIG_fail; | |
d14a1e28 | 5442 | if (arg2 == NULL) { |
15afbcd0 RD |
5443 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5444 | SWIG_fail; | |
d14a1e28 RD |
5445 | } |
5446 | { | |
5447 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5448 | (arg1)->SetBitmap((wxBitmap const &)*arg2); | |
5449 | ||
5450 | wxPyEndAllowThreads(__tstate); | |
5451 | if (PyErr_Occurred()) SWIG_fail; | |
5452 | } | |
5453 | Py_INCREF(Py_None); resultobj = Py_None; | |
5454 | return resultobj; | |
5455 | fail: | |
5456 | return NULL; | |
5457 | } | |
5458 | ||
5459 | ||
5460 | static PyObject *_wrap_StaticBitmap_SetIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5461 | PyObject *resultobj; | |
5462 | wxStaticBitmap *arg1 = (wxStaticBitmap *) 0 ; | |
5463 | wxIcon *arg2 = 0 ; | |
5464 | PyObject * obj0 = 0 ; | |
5465 | PyObject * obj1 = 0 ; | |
5466 | char *kwnames[] = { | |
5467 | (char *) "self",(char *) "icon", NULL | |
5468 | }; | |
5469 | ||
5470 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:StaticBitmap_SetIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5471 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxStaticBitmap, |
5472 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5473 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxIcon, | |
5474 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5475 | SWIG_fail; | |
d14a1e28 | 5476 | if (arg2 == NULL) { |
15afbcd0 RD |
5477 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5478 | SWIG_fail; | |
d14a1e28 RD |
5479 | } |
5480 | { | |
5481 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5482 | (arg1)->SetIcon((wxIcon const &)*arg2); | |
5483 | ||
5484 | wxPyEndAllowThreads(__tstate); | |
5485 | if (PyErr_Occurred()) SWIG_fail; | |
5486 | } | |
5487 | Py_INCREF(Py_None); resultobj = Py_None; | |
5488 | return resultobj; | |
5489 | fail: | |
5490 | return NULL; | |
5491 | } | |
5492 | ||
5493 | ||
22bfe96c RD |
5494 | static PyObject *_wrap_StaticBitmap_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
5495 | PyObject *resultobj; | |
5496 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
5497 | wxVisualAttributes result; | |
5498 | PyObject * obj0 = 0 ; | |
5499 | char *kwnames[] = { | |
5500 | (char *) "variant", NULL | |
5501 | }; | |
5502 | ||
5503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:StaticBitmap_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
5504 | if (obj0) { | |
5505 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
5506 | if (PyErr_Occurred()) SWIG_fail; | |
5507 | } | |
5508 | { | |
110da5b0 | 5509 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
5510 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5511 | result = wxStaticBitmap::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
5512 | ||
5513 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 5514 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
5515 | } |
5516 | { | |
5517 | wxVisualAttributes * resultptr; | |
5518 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
5519 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
5520 | } | |
5521 | return resultobj; | |
5522 | fail: | |
5523 | return NULL; | |
5524 | } | |
5525 | ||
5526 | ||
d14a1e28 RD |
5527 | static PyObject * StaticBitmap_swigregister(PyObject *self, PyObject *args) { |
5528 | PyObject *obj; | |
5529 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
5530 | SWIG_TypeClientData(SWIGTYPE_p_wxStaticBitmap, obj); | |
5531 | Py_INCREF(obj); | |
5532 | return Py_BuildValue((char *)""); | |
5533 | } | |
b2dc1044 RD |
5534 | static int _wrap_ListBoxNameStr_set(PyObject *_val) { |
5535 | PyErr_SetString(PyExc_TypeError,"Variable ListBoxNameStr is read-only."); | |
5536 | return 1; | |
5537 | } | |
5538 | ||
5539 | ||
5540 | static PyObject *_wrap_ListBoxNameStr_get() { | |
5541 | PyObject *pyobj; | |
5542 | ||
5543 | { | |
5544 | #if wxUSE_UNICODE | |
5545 | pyobj = PyUnicode_FromWideChar((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5546 | #else | |
5547 | pyobj = PyString_FromStringAndSize((&wxPyListBoxNameStr)->c_str(), (&wxPyListBoxNameStr)->Len()); | |
5548 | #endif | |
5549 | } | |
5550 | return pyobj; | |
5551 | } | |
5552 | ||
5553 | ||
d14a1e28 RD |
5554 | static PyObject *_wrap_new_ListBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
5555 | PyObject *resultobj; | |
5556 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 5557 | int arg2 = (int) -1 ; |
d14a1e28 RD |
5558 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
5559 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
5560 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
5561 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
5562 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
5563 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
5564 | long arg6 = (long) 0 ; | |
5565 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
5566 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
5567 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
5568 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
5569 | wxListBox *result; |
5570 | wxPoint temp3 ; | |
5571 | wxSize temp4 ; | |
3adfb63b | 5572 | bool temp5 = False ; |
e811c8ce | 5573 | bool temp8 = False ; |
d14a1e28 | 5574 | PyObject * obj0 = 0 ; |
994141e6 | 5575 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5576 | PyObject * obj2 = 0 ; |
5577 | PyObject * obj3 = 0 ; | |
5578 | PyObject * obj4 = 0 ; | |
994141e6 | 5579 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
5580 | PyObject * obj6 = 0 ; |
5581 | PyObject * obj7 = 0 ; | |
5582 | char *kwnames[] = { | |
5583 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5584 | }; | |
5585 | ||
248ed943 | 5586 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
5587 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
5588 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5589 | if (obj1) { |
5590 | arg2 = (int) SWIG_AsInt(obj1); | |
5591 | if (PyErr_Occurred()) SWIG_fail; | |
5592 | } | |
d14a1e28 RD |
5593 | if (obj2) { |
5594 | { | |
5595 | arg3 = &temp3; | |
5596 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
5597 | } | |
5598 | } | |
5599 | if (obj3) { | |
5600 | { | |
5601 | arg4 = &temp4; | |
5602 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
5603 | } | |
5604 | } | |
5605 | if (obj4) { | |
5606 | { | |
4d5c3d91 RD |
5607 | if (! PySequence_Check(obj4)) { |
5608 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5609 | SWIG_fail; | |
5610 | } | |
5611 | arg5 = new wxArrayString; | |
3adfb63b | 5612 | temp5 = True; |
4d5c3d91 RD |
5613 | int i, len=PySequence_Length(obj4); |
5614 | for (i=0; i<len; i++) { | |
5615 | PyObject* item = PySequence_GetItem(obj4, i); | |
5616 | #if wxUSE_UNICODE | |
5617 | PyObject* str = PyObject_Unicode(item); | |
5618 | #else | |
5619 | PyObject* str = PyObject_Str(item); | |
5620 | #endif | |
74a57fcd | 5621 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5622 | arg5->Add(Py2wxString(str)); |
5623 | Py_DECREF(item); | |
5624 | Py_DECREF(str); | |
5625 | } | |
d14a1e28 RD |
5626 | } |
5627 | } | |
994141e6 | 5628 | if (obj5) { |
15afbcd0 RD |
5629 | arg6 = (long) SWIG_AsLong(obj5); |
5630 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5631 | } |
d14a1e28 | 5632 | if (obj6) { |
15afbcd0 RD |
5633 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
5634 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5635 | SWIG_fail; | |
4d5c3d91 | 5636 | if (arg7 == NULL) { |
15afbcd0 RD |
5637 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5638 | SWIG_fail; | |
d14a1e28 RD |
5639 | } |
5640 | } | |
5641 | if (obj7) { | |
5642 | { | |
4d5c3d91 RD |
5643 | arg8 = wxString_in_helper(obj7); |
5644 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 5645 | temp8 = True; |
d14a1e28 RD |
5646 | } |
5647 | } | |
5648 | { | |
e3b71cb8 | 5649 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 5650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 5651 | result = (wxListBox *)new wxListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
5652 | |
5653 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5654 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5655 | } |
15afbcd0 | 5656 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 | 5657 | { |
3adfb63b | 5658 | if (temp5) delete arg5; |
d14a1e28 RD |
5659 | } |
5660 | { | |
5661 | if (temp8) | |
4d5c3d91 | 5662 | delete arg8; |
d14a1e28 RD |
5663 | } |
5664 | return resultobj; | |
5665 | fail: | |
5666 | { | |
3adfb63b | 5667 | if (temp5) delete arg5; |
d14a1e28 RD |
5668 | } |
5669 | { | |
5670 | if (temp8) | |
4d5c3d91 | 5671 | delete arg8; |
d14a1e28 RD |
5672 | } |
5673 | return NULL; | |
5674 | } | |
5675 | ||
5676 | ||
5677 | static PyObject *_wrap_new_PreListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5678 | PyObject *resultobj; | |
5679 | wxListBox *result; | |
5680 | char *kwnames[] = { | |
5681 | NULL | |
5682 | }; | |
5683 | ||
5684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListBox",kwnames)) goto fail; | |
5685 | { | |
e3b71cb8 | 5686 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
5687 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
5688 | result = (wxListBox *)new wxListBox(); | |
5689 | ||
5690 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 5691 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 5692 | } |
15afbcd0 | 5693 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListBox, 1); |
d14a1e28 RD |
5694 | return resultobj; |
5695 | fail: | |
5696 | return NULL; | |
5697 | } | |
5698 | ||
5699 | ||
5700 | static PyObject *_wrap_ListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5701 | PyObject *resultobj; | |
5702 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5703 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 5704 | int arg3 = (int) -1 ; |
d14a1e28 RD |
5705 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
5706 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
5707 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
5708 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
5709 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
5710 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
5711 | long arg7 = (long) 0 ; | |
5712 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
5713 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
5714 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
5715 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
5716 | bool result; |
5717 | wxPoint temp4 ; | |
5718 | wxSize temp5 ; | |
3adfb63b | 5719 | bool temp6 = False ; |
e811c8ce | 5720 | bool temp9 = False ; |
d14a1e28 RD |
5721 | PyObject * obj0 = 0 ; |
5722 | PyObject * obj1 = 0 ; | |
994141e6 | 5723 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5724 | PyObject * obj3 = 0 ; |
5725 | PyObject * obj4 = 0 ; | |
5726 | PyObject * obj5 = 0 ; | |
994141e6 | 5727 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
5728 | PyObject * obj7 = 0 ; |
5729 | PyObject * obj8 = 0 ; | |
5730 | char *kwnames[] = { | |
5731 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
5732 | }; | |
5733 | ||
248ed943 | 5734 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
5735 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5736 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
5737 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
5738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
5739 | if (obj2) { |
5740 | arg3 = (int) SWIG_AsInt(obj2); | |
5741 | if (PyErr_Occurred()) SWIG_fail; | |
5742 | } | |
d14a1e28 RD |
5743 | if (obj3) { |
5744 | { | |
5745 | arg4 = &temp4; | |
5746 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
5747 | } | |
5748 | } | |
5749 | if (obj4) { | |
5750 | { | |
5751 | arg5 = &temp5; | |
5752 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
5753 | } | |
5754 | } | |
5755 | if (obj5) { | |
5756 | { | |
4d5c3d91 RD |
5757 | if (! PySequence_Check(obj5)) { |
5758 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5759 | SWIG_fail; | |
5760 | } | |
5761 | arg6 = new wxArrayString; | |
3adfb63b | 5762 | temp6 = True; |
4d5c3d91 RD |
5763 | int i, len=PySequence_Length(obj5); |
5764 | for (i=0; i<len; i++) { | |
5765 | PyObject* item = PySequence_GetItem(obj5, i); | |
5766 | #if wxUSE_UNICODE | |
5767 | PyObject* str = PyObject_Unicode(item); | |
5768 | #else | |
5769 | PyObject* str = PyObject_Str(item); | |
5770 | #endif | |
74a57fcd | 5771 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
5772 | arg6->Add(Py2wxString(str)); |
5773 | Py_DECREF(item); | |
5774 | Py_DECREF(str); | |
5775 | } | |
d14a1e28 RD |
5776 | } |
5777 | } | |
994141e6 | 5778 | if (obj6) { |
15afbcd0 RD |
5779 | arg7 = (long) SWIG_AsLong(obj6); |
5780 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 5781 | } |
d14a1e28 | 5782 | if (obj7) { |
15afbcd0 RD |
5783 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
5784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
5785 | SWIG_fail; | |
4d5c3d91 | 5786 | if (arg8 == NULL) { |
15afbcd0 RD |
5787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
5788 | SWIG_fail; | |
d14a1e28 RD |
5789 | } |
5790 | } | |
5791 | if (obj8) { | |
5792 | { | |
4d5c3d91 RD |
5793 | arg9 = wxString_in_helper(obj8); |
5794 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 5795 | temp9 = True; |
d14a1e28 RD |
5796 | } |
5797 | } | |
5798 | { | |
5799 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 5800 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
5801 | |
5802 | wxPyEndAllowThreads(__tstate); | |
5803 | if (PyErr_Occurred()) SWIG_fail; | |
5804 | } | |
4f89f6a3 RD |
5805 | { |
5806 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
5807 | } | |
d14a1e28 | 5808 | { |
3adfb63b | 5809 | if (temp6) delete arg6; |
d14a1e28 RD |
5810 | } |
5811 | { | |
5812 | if (temp9) | |
4d5c3d91 | 5813 | delete arg9; |
d14a1e28 RD |
5814 | } |
5815 | return resultobj; | |
5816 | fail: | |
5817 | { | |
3adfb63b | 5818 | if (temp6) delete arg6; |
d14a1e28 RD |
5819 | } |
5820 | { | |
5821 | if (temp9) | |
4d5c3d91 | 5822 | delete arg9; |
d14a1e28 RD |
5823 | } |
5824 | return NULL; | |
5825 | } | |
5826 | ||
5827 | ||
5828 | static PyObject *_wrap_ListBox_Insert(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5829 | PyObject *resultobj; | |
5830 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5831 | wxString *arg2 = 0 ; | |
5832 | int arg3 ; | |
5833 | PyObject *arg4 = (PyObject *) NULL ; | |
e811c8ce | 5834 | bool temp2 = False ; |
d14a1e28 RD |
5835 | PyObject * obj0 = 0 ; |
5836 | PyObject * obj1 = 0 ; | |
994141e6 | 5837 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5838 | PyObject * obj3 = 0 ; |
5839 | char *kwnames[] = { | |
5840 | (char *) "self",(char *) "item",(char *) "pos",(char *) "clientData", NULL | |
5841 | }; | |
5842 | ||
994141e6 | 5843 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListBox_Insert",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
5844 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5845 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5846 | { |
5847 | arg2 = wxString_in_helper(obj1); | |
5848 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 5849 | temp2 = True; |
d14a1e28 | 5850 | } |
15afbcd0 RD |
5851 | arg3 = (int) SWIG_AsInt(obj2); |
5852 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5853 | if (obj3) { |
5854 | arg4 = obj3; | |
5855 | } | |
5856 | { | |
5857 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5858 | wxListBox_Insert(arg1,(wxString const &)*arg2,arg3,arg4); | |
5859 | ||
5860 | wxPyEndAllowThreads(__tstate); | |
5861 | if (PyErr_Occurred()) SWIG_fail; | |
5862 | } | |
5863 | Py_INCREF(Py_None); resultobj = Py_None; | |
5864 | { | |
5865 | if (temp2) | |
5866 | delete arg2; | |
5867 | } | |
5868 | return resultobj; | |
5869 | fail: | |
5870 | { | |
5871 | if (temp2) | |
5872 | delete arg2; | |
5873 | } | |
5874 | return NULL; | |
5875 | } | |
5876 | ||
5877 | ||
5878 | static PyObject *_wrap_ListBox_InsertItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5879 | PyObject *resultobj; | |
5880 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5881 | wxArrayString *arg2 = 0 ; | |
5882 | int arg3 ; | |
3adfb63b | 5883 | bool temp2 = False ; |
d14a1e28 RD |
5884 | PyObject * obj0 = 0 ; |
5885 | PyObject * obj1 = 0 ; | |
994141e6 | 5886 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
5887 | char *kwnames[] = { |
5888 | (char *) "self",(char *) "items",(char *) "pos", NULL | |
5889 | }; | |
5890 | ||
994141e6 | 5891 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_InsertItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
5892 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5893 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5894 | { |
5895 | if (! PySequence_Check(obj1)) { | |
5896 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5897 | SWIG_fail; | |
5898 | } | |
5899 | arg2 = new wxArrayString; | |
3adfb63b | 5900 | temp2 = True; |
d14a1e28 RD |
5901 | int i, len=PySequence_Length(obj1); |
5902 | for (i=0; i<len; i++) { | |
5903 | PyObject* item = PySequence_GetItem(obj1, i); | |
5904 | #if wxUSE_UNICODE | |
5905 | PyObject* str = PyObject_Unicode(item); | |
5906 | #else | |
5907 | PyObject* str = PyObject_Str(item); | |
5908 | #endif | |
74a57fcd | 5909 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5910 | arg2->Add(Py2wxString(str)); |
5911 | Py_DECREF(item); | |
5912 | Py_DECREF(str); | |
5913 | } | |
5914 | } | |
15afbcd0 RD |
5915 | arg3 = (int) SWIG_AsInt(obj2); |
5916 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
5917 | { |
5918 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5919 | (arg1)->InsertItems((wxArrayString const &)*arg2,arg3); | |
5920 | ||
5921 | wxPyEndAllowThreads(__tstate); | |
5922 | if (PyErr_Occurred()) SWIG_fail; | |
5923 | } | |
5924 | Py_INCREF(Py_None); resultobj = Py_None; | |
5925 | { | |
3adfb63b | 5926 | if (temp2) delete arg2; |
d14a1e28 RD |
5927 | } |
5928 | return resultobj; | |
5929 | fail: | |
5930 | { | |
3adfb63b | 5931 | if (temp2) delete arg2; |
d14a1e28 RD |
5932 | } |
5933 | return NULL; | |
5934 | } | |
5935 | ||
5936 | ||
5937 | static PyObject *_wrap_ListBox_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5938 | PyObject *resultobj; | |
5939 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5940 | wxArrayString *arg2 = 0 ; | |
3adfb63b | 5941 | bool temp2 = False ; |
d14a1e28 RD |
5942 | PyObject * obj0 = 0 ; |
5943 | PyObject * obj1 = 0 ; | |
5944 | char *kwnames[] = { | |
5945 | (char *) "self",(char *) "items", NULL | |
5946 | }; | |
5947 | ||
5948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
5949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
5950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
5951 | { |
5952 | if (! PySequence_Check(obj1)) { | |
5953 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
5954 | SWIG_fail; | |
5955 | } | |
5956 | arg2 = new wxArrayString; | |
3adfb63b | 5957 | temp2 = True; |
d14a1e28 RD |
5958 | int i, len=PySequence_Length(obj1); |
5959 | for (i=0; i<len; i++) { | |
5960 | PyObject* item = PySequence_GetItem(obj1, i); | |
5961 | #if wxUSE_UNICODE | |
5962 | PyObject* str = PyObject_Unicode(item); | |
5963 | #else | |
5964 | PyObject* str = PyObject_Str(item); | |
5965 | #endif | |
74a57fcd | 5966 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 RD |
5967 | arg2->Add(Py2wxString(str)); |
5968 | Py_DECREF(item); | |
5969 | Py_DECREF(str); | |
5970 | } | |
5971 | } | |
5972 | { | |
5973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5974 | (arg1)->Set((wxArrayString const &)*arg2); | |
5975 | ||
5976 | wxPyEndAllowThreads(__tstate); | |
5977 | if (PyErr_Occurred()) SWIG_fail; | |
5978 | } | |
5979 | Py_INCREF(Py_None); resultobj = Py_None; | |
5980 | { | |
3adfb63b | 5981 | if (temp2) delete arg2; |
d14a1e28 RD |
5982 | } |
5983 | return resultobj; | |
5984 | fail: | |
5985 | { | |
3adfb63b | 5986 | if (temp2) delete arg2; |
d14a1e28 RD |
5987 | } |
5988 | return NULL; | |
5989 | } | |
5990 | ||
5991 | ||
5992 | static PyObject *_wrap_ListBox_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
5993 | PyObject *resultobj; | |
5994 | wxListBox *arg1 = (wxListBox *) 0 ; | |
5995 | int arg2 ; | |
5996 | bool result; | |
5997 | PyObject * obj0 = 0 ; | |
994141e6 | 5998 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
5999 | char *kwnames[] = { |
6000 | (char *) "self",(char *) "n", NULL | |
6001 | }; | |
6002 | ||
994141e6 | 6003 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6004 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6005 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6006 | arg2 = (int) SWIG_AsInt(obj1); | |
6007 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6008 | { |
6009 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6010 | result = (bool)((wxListBox const *)arg1)->IsSelected(arg2); | |
6011 | ||
6012 | wxPyEndAllowThreads(__tstate); | |
6013 | if (PyErr_Occurred()) SWIG_fail; | |
6014 | } | |
4f89f6a3 RD |
6015 | { |
6016 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6017 | } | |
d14a1e28 RD |
6018 | return resultobj; |
6019 | fail: | |
6020 | return NULL; | |
6021 | } | |
6022 | ||
6023 | ||
6024 | static PyObject *_wrap_ListBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6025 | PyObject *resultobj; | |
6026 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6027 | int arg2 ; | |
e811c8ce | 6028 | bool arg3 = (bool) True ; |
d14a1e28 | 6029 | PyObject * obj0 = 0 ; |
994141e6 | 6030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6031 | PyObject * obj2 = 0 ; |
6032 | char *kwnames[] = { | |
6033 | (char *) "self",(char *) "n",(char *) "select", NULL | |
6034 | }; | |
6035 | ||
994141e6 | 6036 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6037 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6038 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6039 | arg2 = (int) SWIG_AsInt(obj1); | |
6040 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 6041 | if (obj2) { |
15afbcd0 RD |
6042 | arg3 = (bool) SWIG_AsBool(obj2); |
6043 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6044 | } |
6045 | { | |
6046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6047 | (arg1)->SetSelection(arg2,arg3); | |
6048 | ||
6049 | wxPyEndAllowThreads(__tstate); | |
6050 | if (PyErr_Occurred()) SWIG_fail; | |
6051 | } | |
6052 | Py_INCREF(Py_None); resultobj = Py_None; | |
6053 | return resultobj; | |
6054 | fail: | |
6055 | return NULL; | |
6056 | } | |
6057 | ||
6058 | ||
6059 | static PyObject *_wrap_ListBox_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6060 | PyObject *resultobj; | |
6061 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6062 | int arg2 ; | |
6063 | PyObject * obj0 = 0 ; | |
994141e6 | 6064 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6065 | char *kwnames[] = { |
6066 | (char *) "self",(char *) "n", NULL | |
6067 | }; | |
6068 | ||
994141e6 | 6069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Select",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6072 | arg2 = (int) SWIG_AsInt(obj1); | |
6073 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6074 | { |
6075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6076 | (arg1)->Select(arg2); | |
6077 | ||
6078 | wxPyEndAllowThreads(__tstate); | |
6079 | if (PyErr_Occurred()) SWIG_fail; | |
6080 | } | |
6081 | Py_INCREF(Py_None); resultobj = Py_None; | |
6082 | return resultobj; | |
6083 | fail: | |
6084 | return NULL; | |
6085 | } | |
6086 | ||
6087 | ||
6088 | static PyObject *_wrap_ListBox_Deselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6089 | PyObject *resultobj; | |
6090 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6091 | int arg2 ; | |
6092 | PyObject * obj0 = 0 ; | |
994141e6 | 6093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6094 | char *kwnames[] = { |
6095 | (char *) "self",(char *) "n", NULL | |
6096 | }; | |
6097 | ||
994141e6 | 6098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_Deselect",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6099 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6100 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6101 | arg2 = (int) SWIG_AsInt(obj1); | |
6102 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6103 | { |
6104 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6105 | (arg1)->Deselect(arg2); | |
6106 | ||
6107 | wxPyEndAllowThreads(__tstate); | |
6108 | if (PyErr_Occurred()) SWIG_fail; | |
6109 | } | |
6110 | Py_INCREF(Py_None); resultobj = Py_None; | |
6111 | return resultobj; | |
6112 | fail: | |
6113 | return NULL; | |
6114 | } | |
6115 | ||
6116 | ||
6117 | static PyObject *_wrap_ListBox_DeselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6118 | PyObject *resultobj; | |
6119 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6120 | int arg2 = (int) -1 ; | |
6121 | PyObject * obj0 = 0 ; | |
994141e6 | 6122 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6123 | char *kwnames[] = { |
6124 | (char *) "self",(char *) "itemToLeaveSelected", NULL | |
6125 | }; | |
6126 | ||
994141e6 | 6127 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListBox_DeselectAll",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6128 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6129 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 6130 | if (obj1) { |
15afbcd0 RD |
6131 | arg2 = (int) SWIG_AsInt(obj1); |
6132 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6133 | } |
d14a1e28 RD |
6134 | { |
6135 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6136 | (arg1)->DeselectAll(arg2); | |
6137 | ||
6138 | wxPyEndAllowThreads(__tstate); | |
6139 | if (PyErr_Occurred()) SWIG_fail; | |
6140 | } | |
6141 | Py_INCREF(Py_None); resultobj = Py_None; | |
6142 | return resultobj; | |
6143 | fail: | |
6144 | return NULL; | |
6145 | } | |
6146 | ||
6147 | ||
6148 | static PyObject *_wrap_ListBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6149 | PyObject *resultobj; | |
6150 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6151 | wxString *arg2 = 0 ; | |
e811c8ce | 6152 | bool arg3 = (bool) True ; |
d14a1e28 | 6153 | bool result; |
e811c8ce | 6154 | bool temp2 = False ; |
d14a1e28 RD |
6155 | PyObject * obj0 = 0 ; |
6156 | PyObject * obj1 = 0 ; | |
6157 | PyObject * obj2 = 0 ; | |
6158 | char *kwnames[] = { | |
6159 | (char *) "self",(char *) "s",(char *) "select", NULL | |
6160 | }; | |
6161 | ||
6162 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListBox_SetStringSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6163 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6164 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6165 | { |
6166 | arg2 = wxString_in_helper(obj1); | |
6167 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6168 | temp2 = True; |
d14a1e28 RD |
6169 | } |
6170 | if (obj2) { | |
15afbcd0 RD |
6171 | arg3 = (bool) SWIG_AsBool(obj2); |
6172 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6173 | } |
6174 | { | |
6175 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6176 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2,arg3); | |
6177 | ||
6178 | wxPyEndAllowThreads(__tstate); | |
6179 | if (PyErr_Occurred()) SWIG_fail; | |
6180 | } | |
4f89f6a3 RD |
6181 | { |
6182 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6183 | } | |
d14a1e28 RD |
6184 | { |
6185 | if (temp2) | |
6186 | delete arg2; | |
6187 | } | |
6188 | return resultobj; | |
6189 | fail: | |
6190 | { | |
6191 | if (temp2) | |
6192 | delete arg2; | |
6193 | } | |
6194 | return NULL; | |
6195 | } | |
6196 | ||
6197 | ||
6198 | static PyObject *_wrap_ListBox_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6199 | PyObject *resultobj; | |
6200 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6201 | PyObject *result; | |
6202 | PyObject * obj0 = 0 ; | |
6203 | char *kwnames[] = { | |
6204 | (char *) "self", NULL | |
6205 | }; | |
6206 | ||
6207 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6208 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6210 | { |
6211 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6212 | result = (PyObject *)wxListBox_GetSelections(arg1); | |
6213 | ||
6214 | wxPyEndAllowThreads(__tstate); | |
6215 | if (PyErr_Occurred()) SWIG_fail; | |
6216 | } | |
6217 | resultobj = result; | |
6218 | return resultobj; | |
6219 | fail: | |
6220 | return NULL; | |
6221 | } | |
6222 | ||
6223 | ||
6224 | static PyObject *_wrap_ListBox_SetFirstItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6225 | PyObject *resultobj; | |
6226 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6227 | int arg2 ; | |
6228 | PyObject * obj0 = 0 ; | |
994141e6 | 6229 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6230 | char *kwnames[] = { |
6231 | (char *) "self",(char *) "n", NULL | |
6232 | }; | |
6233 | ||
994141e6 | 6234 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6235 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6236 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6237 | arg2 = (int) SWIG_AsInt(obj1); | |
6238 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6239 | { |
6240 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6241 | (arg1)->SetFirstItem(arg2); | |
6242 | ||
6243 | wxPyEndAllowThreads(__tstate); | |
6244 | if (PyErr_Occurred()) SWIG_fail; | |
6245 | } | |
6246 | Py_INCREF(Py_None); resultobj = Py_None; | |
6247 | return resultobj; | |
6248 | fail: | |
6249 | return NULL; | |
6250 | } | |
6251 | ||
6252 | ||
6253 | static PyObject *_wrap_ListBox_SetFirstItemStr(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6254 | PyObject *resultobj; | |
6255 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6256 | wxString *arg2 = 0 ; | |
e811c8ce | 6257 | bool temp2 = False ; |
d14a1e28 RD |
6258 | PyObject * obj0 = 0 ; |
6259 | PyObject * obj1 = 0 ; | |
6260 | char *kwnames[] = { | |
6261 | (char *) "self",(char *) "s", NULL | |
6262 | }; | |
6263 | ||
6264 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_SetFirstItemStr",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6265 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6266 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6267 | { |
6268 | arg2 = wxString_in_helper(obj1); | |
6269 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6270 | temp2 = True; |
d14a1e28 RD |
6271 | } |
6272 | { | |
6273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6274 | (arg1)->SetFirstItem((wxString const &)*arg2); | |
6275 | ||
6276 | wxPyEndAllowThreads(__tstate); | |
6277 | if (PyErr_Occurred()) SWIG_fail; | |
6278 | } | |
6279 | Py_INCREF(Py_None); resultobj = Py_None; | |
6280 | { | |
6281 | if (temp2) | |
6282 | delete arg2; | |
6283 | } | |
6284 | return resultobj; | |
6285 | fail: | |
6286 | { | |
6287 | if (temp2) | |
6288 | delete arg2; | |
6289 | } | |
6290 | return NULL; | |
6291 | } | |
6292 | ||
6293 | ||
6294 | static PyObject *_wrap_ListBox_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6295 | PyObject *resultobj; | |
6296 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6297 | int arg2 ; | |
6298 | PyObject * obj0 = 0 ; | |
994141e6 | 6299 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6300 | char *kwnames[] = { |
6301 | (char *) "self",(char *) "n", NULL | |
6302 | }; | |
6303 | ||
994141e6 | 6304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6307 | arg2 = (int) SWIG_AsInt(obj1); | |
6308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6309 | { |
6310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6311 | (arg1)->EnsureVisible(arg2); | |
6312 | ||
6313 | wxPyEndAllowThreads(__tstate); | |
6314 | if (PyErr_Occurred()) SWIG_fail; | |
6315 | } | |
6316 | Py_INCREF(Py_None); resultobj = Py_None; | |
6317 | return resultobj; | |
6318 | fail: | |
6319 | return NULL; | |
6320 | } | |
6321 | ||
6322 | ||
6323 | static PyObject *_wrap_ListBox_AppendAndEnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6324 | PyObject *resultobj; | |
6325 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6326 | wxString *arg2 = 0 ; | |
e811c8ce | 6327 | bool temp2 = False ; |
d14a1e28 RD |
6328 | PyObject * obj0 = 0 ; |
6329 | PyObject * obj1 = 0 ; | |
6330 | char *kwnames[] = { | |
6331 | (char *) "self",(char *) "s", NULL | |
6332 | }; | |
6333 | ||
6334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListBox_AppendAndEnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6337 | { |
6338 | arg2 = wxString_in_helper(obj1); | |
6339 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 6340 | temp2 = True; |
d14a1e28 RD |
6341 | } |
6342 | { | |
6343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6344 | (arg1)->AppendAndEnsureVisible((wxString const &)*arg2); | |
6345 | ||
6346 | wxPyEndAllowThreads(__tstate); | |
6347 | if (PyErr_Occurred()) SWIG_fail; | |
6348 | } | |
6349 | Py_INCREF(Py_None); resultobj = Py_None; | |
6350 | { | |
6351 | if (temp2) | |
6352 | delete arg2; | |
6353 | } | |
6354 | return resultobj; | |
6355 | fail: | |
6356 | { | |
6357 | if (temp2) | |
6358 | delete arg2; | |
6359 | } | |
6360 | return NULL; | |
6361 | } | |
6362 | ||
6363 | ||
6364 | static PyObject *_wrap_ListBox_IsSorted(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6365 | PyObject *resultobj; | |
6366 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6367 | bool result; | |
6368 | PyObject * obj0 = 0 ; | |
6369 | char *kwnames[] = { | |
6370 | (char *) "self", NULL | |
6371 | }; | |
6372 | ||
6373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListBox_IsSorted",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6376 | { |
6377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6378 | result = (bool)((wxListBox const *)arg1)->IsSorted(); | |
6379 | ||
6380 | wxPyEndAllowThreads(__tstate); | |
6381 | if (PyErr_Occurred()) SWIG_fail; | |
6382 | } | |
4f89f6a3 RD |
6383 | { |
6384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6385 | } | |
d14a1e28 RD |
6386 | return resultobj; |
6387 | fail: | |
6388 | return NULL; | |
6389 | } | |
6390 | ||
6391 | ||
c3eb6258 RD |
6392 | static PyObject *_wrap_ListBox_SetItemForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { |
6393 | PyObject *resultobj; | |
6394 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6395 | int arg2 ; | |
6396 | wxColour *arg3 = 0 ; | |
6397 | wxColour temp3 ; | |
6398 | PyObject * obj0 = 0 ; | |
6399 | PyObject * obj1 = 0 ; | |
6400 | PyObject * obj2 = 0 ; | |
6401 | char *kwnames[] = { | |
6402 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6403 | }; | |
6404 | ||
6405 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemForegroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6406 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6407 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6408 | arg2 = (int) SWIG_AsInt(obj1); | |
6409 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6410 | { |
6411 | arg3 = &temp3; | |
6412 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6413 | } | |
6414 | { | |
6415 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6416 | wxListBox_SetItemForegroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6417 | ||
6418 | wxPyEndAllowThreads(__tstate); | |
6419 | if (PyErr_Occurred()) SWIG_fail; | |
6420 | } | |
6421 | Py_INCREF(Py_None); resultobj = Py_None; | |
6422 | return resultobj; | |
6423 | fail: | |
6424 | return NULL; | |
6425 | } | |
6426 | ||
6427 | ||
6428 | static PyObject *_wrap_ListBox_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6429 | PyObject *resultobj; | |
6430 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6431 | int arg2 ; | |
6432 | wxColour *arg3 = 0 ; | |
6433 | wxColour temp3 ; | |
6434 | PyObject * obj0 = 0 ; | |
6435 | PyObject * obj1 = 0 ; | |
6436 | PyObject * obj2 = 0 ; | |
6437 | char *kwnames[] = { | |
6438 | (char *) "self",(char *) "item",(char *) "c", NULL | |
6439 | }; | |
6440 | ||
6441 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6442 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6443 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6444 | arg2 = (int) SWIG_AsInt(obj1); | |
6445 | if (PyErr_Occurred()) SWIG_fail; | |
c3eb6258 RD |
6446 | { |
6447 | arg3 = &temp3; | |
6448 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
6449 | } | |
6450 | { | |
6451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6452 | wxListBox_SetItemBackgroundColour(arg1,arg2,(wxColour const &)*arg3); | |
6453 | ||
6454 | wxPyEndAllowThreads(__tstate); | |
6455 | if (PyErr_Occurred()) SWIG_fail; | |
6456 | } | |
6457 | Py_INCREF(Py_None); resultobj = Py_None; | |
6458 | return resultobj; | |
6459 | fail: | |
6460 | return NULL; | |
6461 | } | |
6462 | ||
6463 | ||
6464 | static PyObject *_wrap_ListBox_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6465 | PyObject *resultobj; | |
6466 | wxListBox *arg1 = (wxListBox *) 0 ; | |
6467 | int arg2 ; | |
6468 | wxFont *arg3 = 0 ; | |
6469 | PyObject * obj0 = 0 ; | |
6470 | PyObject * obj1 = 0 ; | |
6471 | PyObject * obj2 = 0 ; | |
6472 | char *kwnames[] = { | |
6473 | (char *) "self",(char *) "item",(char *) "f", NULL | |
6474 | }; | |
6475 | ||
6476 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListBox_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
6477 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListBox, |
6478 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6479 | arg2 = (int) SWIG_AsInt(obj1); | |
6480 | if (PyErr_Occurred()) SWIG_fail; | |
6481 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, | |
6482 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6483 | SWIG_fail; | |
c3eb6258 | 6484 | if (arg3 == NULL) { |
15afbcd0 RD |
6485 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6486 | SWIG_fail; | |
c3eb6258 RD |
6487 | } |
6488 | { | |
6489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6490 | wxListBox_SetItemFont(arg1,arg2,(wxFont const &)*arg3); | |
6491 | ||
6492 | wxPyEndAllowThreads(__tstate); | |
6493 | if (PyErr_Occurred()) SWIG_fail; | |
6494 | } | |
6495 | Py_INCREF(Py_None); resultobj = Py_None; | |
6496 | return resultobj; | |
6497 | fail: | |
6498 | return NULL; | |
6499 | } | |
6500 | ||
6501 | ||
74a57fcd RD |
6502 | static PyObject *_wrap_ListBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
6503 | PyObject *resultobj; | |
6504 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
6505 | wxVisualAttributes result; | |
6506 | PyObject * obj0 = 0 ; | |
6507 | char *kwnames[] = { | |
6508 | (char *) "variant", NULL | |
6509 | }; | |
6510 | ||
6511 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
6512 | if (obj0) { | |
6513 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
6514 | if (PyErr_Occurred()) SWIG_fail; | |
6515 | } | |
6516 | { | |
110da5b0 | 6517 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
6518 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6519 | result = wxListBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
6520 | ||
6521 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 6522 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
6523 | } |
6524 | { | |
6525 | wxVisualAttributes * resultptr; | |
6526 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
6527 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
6528 | } | |
6529 | return resultobj; | |
6530 | fail: | |
6531 | return NULL; | |
6532 | } | |
6533 | ||
6534 | ||
d14a1e28 RD |
6535 | static PyObject * ListBox_swigregister(PyObject *self, PyObject *args) { |
6536 | PyObject *obj; | |
6537 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6538 | SWIG_TypeClientData(SWIGTYPE_p_wxListBox, obj); | |
6539 | Py_INCREF(obj); | |
6540 | return Py_BuildValue((char *)""); | |
6541 | } | |
6542 | static PyObject *_wrap_new_CheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6543 | PyObject *resultobj; | |
6544 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 6545 | int arg2 = (int) -1 ; |
d14a1e28 RD |
6546 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
6547 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
6548 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
6549 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
4d5c3d91 RD |
6550 | wxArrayString const &arg5_defvalue = wxPyEmptyStringArray ; |
6551 | wxArrayString *arg5 = (wxArrayString *) &arg5_defvalue ; | |
6552 | long arg6 = (long) 0 ; | |
6553 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
6554 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
6555 | wxString const &arg8_defvalue = wxPyListBoxNameStr ; | |
6556 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
d14a1e28 RD |
6557 | wxCheckListBox *result; |
6558 | wxPoint temp3 ; | |
6559 | wxSize temp4 ; | |
3adfb63b | 6560 | bool temp5 = False ; |
e811c8ce | 6561 | bool temp8 = False ; |
d14a1e28 | 6562 | PyObject * obj0 = 0 ; |
994141e6 | 6563 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6564 | PyObject * obj2 = 0 ; |
6565 | PyObject * obj3 = 0 ; | |
6566 | PyObject * obj4 = 0 ; | |
994141e6 | 6567 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
6568 | PyObject * obj6 = 0 ; |
6569 | PyObject * obj7 = 0 ; | |
6570 | char *kwnames[] = { | |
6571 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6572 | }; | |
6573 | ||
248ed943 | 6574 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_CheckListBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
6575 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
6576 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6577 | if (obj1) { |
6578 | arg2 = (int) SWIG_AsInt(obj1); | |
6579 | if (PyErr_Occurred()) SWIG_fail; | |
6580 | } | |
d14a1e28 RD |
6581 | if (obj2) { |
6582 | { | |
6583 | arg3 = &temp3; | |
6584 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
6585 | } | |
6586 | } | |
6587 | if (obj3) { | |
6588 | { | |
6589 | arg4 = &temp4; | |
6590 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
6591 | } | |
6592 | } | |
6593 | if (obj4) { | |
6594 | { | |
4d5c3d91 RD |
6595 | if (! PySequence_Check(obj4)) { |
6596 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6597 | SWIG_fail; | |
6598 | } | |
6599 | arg5 = new wxArrayString; | |
3adfb63b | 6600 | temp5 = True; |
4d5c3d91 RD |
6601 | int i, len=PySequence_Length(obj4); |
6602 | for (i=0; i<len; i++) { | |
6603 | PyObject* item = PySequence_GetItem(obj4, i); | |
6604 | #if wxUSE_UNICODE | |
6605 | PyObject* str = PyObject_Unicode(item); | |
6606 | #else | |
6607 | PyObject* str = PyObject_Str(item); | |
6608 | #endif | |
74a57fcd | 6609 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6610 | arg5->Add(Py2wxString(str)); |
6611 | Py_DECREF(item); | |
6612 | Py_DECREF(str); | |
6613 | } | |
d14a1e28 RD |
6614 | } |
6615 | } | |
994141e6 | 6616 | if (obj5) { |
15afbcd0 RD |
6617 | arg6 = (long) SWIG_AsLong(obj5); |
6618 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6619 | } |
d14a1e28 | 6620 | if (obj6) { |
15afbcd0 RD |
6621 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
6622 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6623 | SWIG_fail; | |
4d5c3d91 | 6624 | if (arg7 == NULL) { |
15afbcd0 RD |
6625 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6626 | SWIG_fail; | |
d14a1e28 RD |
6627 | } |
6628 | } | |
6629 | if (obj7) { | |
6630 | { | |
4d5c3d91 RD |
6631 | arg8 = wxString_in_helper(obj7); |
6632 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 6633 | temp8 = True; |
d14a1e28 RD |
6634 | } |
6635 | } | |
6636 | { | |
e3b71cb8 | 6637 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 6638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 6639 | result = (wxCheckListBox *)new wxCheckListBox(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,(wxArrayString const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); |
d14a1e28 RD |
6640 | |
6641 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6642 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6643 | } |
15afbcd0 | 6644 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 | 6645 | { |
3adfb63b | 6646 | if (temp5) delete arg5; |
d14a1e28 RD |
6647 | } |
6648 | { | |
6649 | if (temp8) | |
4d5c3d91 | 6650 | delete arg8; |
d14a1e28 RD |
6651 | } |
6652 | return resultobj; | |
6653 | fail: | |
6654 | { | |
3adfb63b | 6655 | if (temp5) delete arg5; |
d14a1e28 RD |
6656 | } |
6657 | { | |
6658 | if (temp8) | |
4d5c3d91 | 6659 | delete arg8; |
d14a1e28 RD |
6660 | } |
6661 | return NULL; | |
6662 | } | |
6663 | ||
6664 | ||
6665 | static PyObject *_wrap_new_PreCheckListBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6666 | PyObject *resultobj; | |
6667 | wxCheckListBox *result; | |
6668 | char *kwnames[] = { | |
6669 | NULL | |
6670 | }; | |
6671 | ||
6672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreCheckListBox",kwnames)) goto fail; | |
6673 | { | |
e3b71cb8 | 6674 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
6675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
6676 | result = (wxCheckListBox *)new wxCheckListBox(); | |
6677 | ||
6678 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 6679 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 6680 | } |
15afbcd0 | 6681 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxCheckListBox, 1); |
d14a1e28 RD |
6682 | return resultobj; |
6683 | fail: | |
6684 | return NULL; | |
6685 | } | |
6686 | ||
6687 | ||
6688 | static PyObject *_wrap_CheckListBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6689 | PyObject *resultobj; | |
6690 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6691 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 6692 | int arg3 = (int) -1 ; |
d14a1e28 RD |
6693 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
6694 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
6695 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
6696 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
6697 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
6698 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
6699 | long arg7 = (long) 0 ; | |
6700 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
6701 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
6702 | wxString const &arg9_defvalue = wxPyListBoxNameStr ; | |
6703 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
d14a1e28 RD |
6704 | bool result; |
6705 | wxPoint temp4 ; | |
6706 | wxSize temp5 ; | |
3adfb63b | 6707 | bool temp6 = False ; |
e811c8ce | 6708 | bool temp9 = False ; |
d14a1e28 RD |
6709 | PyObject * obj0 = 0 ; |
6710 | PyObject * obj1 = 0 ; | |
994141e6 | 6711 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
6712 | PyObject * obj3 = 0 ; |
6713 | PyObject * obj4 = 0 ; | |
6714 | PyObject * obj5 = 0 ; | |
994141e6 | 6715 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
6716 | PyObject * obj7 = 0 ; |
6717 | PyObject * obj8 = 0 ; | |
6718 | char *kwnames[] = { | |
6719 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "choices",(char *) "style",(char *) "validator",(char *) "name", NULL | |
6720 | }; | |
6721 | ||
248ed943 | 6722 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:CheckListBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
6723 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6724 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6725 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
6726 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
6727 | if (obj2) { |
6728 | arg3 = (int) SWIG_AsInt(obj2); | |
6729 | if (PyErr_Occurred()) SWIG_fail; | |
6730 | } | |
d14a1e28 RD |
6731 | if (obj3) { |
6732 | { | |
6733 | arg4 = &temp4; | |
6734 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
6735 | } | |
6736 | } | |
6737 | if (obj4) { | |
6738 | { | |
6739 | arg5 = &temp5; | |
6740 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
6741 | } | |
6742 | } | |
6743 | if (obj5) { | |
6744 | { | |
4d5c3d91 RD |
6745 | if (! PySequence_Check(obj5)) { |
6746 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
6747 | SWIG_fail; | |
6748 | } | |
6749 | arg6 = new wxArrayString; | |
3adfb63b | 6750 | temp6 = True; |
4d5c3d91 RD |
6751 | int i, len=PySequence_Length(obj5); |
6752 | for (i=0; i<len; i++) { | |
6753 | PyObject* item = PySequence_GetItem(obj5, i); | |
6754 | #if wxUSE_UNICODE | |
6755 | PyObject* str = PyObject_Unicode(item); | |
6756 | #else | |
6757 | PyObject* str = PyObject_Str(item); | |
6758 | #endif | |
74a57fcd | 6759 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
6760 | arg6->Add(Py2wxString(str)); |
6761 | Py_DECREF(item); | |
6762 | Py_DECREF(str); | |
6763 | } | |
d14a1e28 RD |
6764 | } |
6765 | } | |
994141e6 | 6766 | if (obj6) { |
15afbcd0 RD |
6767 | arg7 = (long) SWIG_AsLong(obj6); |
6768 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6769 | } |
d14a1e28 | 6770 | if (obj7) { |
15afbcd0 RD |
6771 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
6772 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
6773 | SWIG_fail; | |
4d5c3d91 | 6774 | if (arg8 == NULL) { |
15afbcd0 RD |
6775 | PyErr_SetString(PyExc_TypeError,"null reference"); |
6776 | SWIG_fail; | |
d14a1e28 RD |
6777 | } |
6778 | } | |
6779 | if (obj8) { | |
6780 | { | |
4d5c3d91 RD |
6781 | arg9 = wxString_in_helper(obj8); |
6782 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 6783 | temp9 = True; |
d14a1e28 RD |
6784 | } |
6785 | } | |
6786 | { | |
6787 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 6788 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,(wxArrayString const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); |
d14a1e28 RD |
6789 | |
6790 | wxPyEndAllowThreads(__tstate); | |
6791 | if (PyErr_Occurred()) SWIG_fail; | |
6792 | } | |
4f89f6a3 RD |
6793 | { |
6794 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6795 | } | |
d14a1e28 | 6796 | { |
3adfb63b | 6797 | if (temp6) delete arg6; |
d14a1e28 RD |
6798 | } |
6799 | { | |
6800 | if (temp9) | |
4d5c3d91 | 6801 | delete arg9; |
d14a1e28 RD |
6802 | } |
6803 | return resultobj; | |
6804 | fail: | |
6805 | { | |
3adfb63b | 6806 | if (temp6) delete arg6; |
d14a1e28 RD |
6807 | } |
6808 | { | |
6809 | if (temp9) | |
4d5c3d91 | 6810 | delete arg9; |
d14a1e28 RD |
6811 | } |
6812 | return NULL; | |
6813 | } | |
6814 | ||
6815 | ||
6816 | static PyObject *_wrap_CheckListBox_IsChecked(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6817 | PyObject *resultobj; | |
6818 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6819 | int arg2 ; | |
6820 | bool result; | |
6821 | PyObject * obj0 = 0 ; | |
994141e6 | 6822 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
6823 | char *kwnames[] = { |
6824 | (char *) "self",(char *) "index", NULL | |
6825 | }; | |
6826 | ||
994141e6 | 6827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_IsChecked",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
6828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6830 | arg2 = (int) SWIG_AsInt(obj1); | |
6831 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6832 | { |
6833 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6834 | result = (bool)(arg1)->IsChecked(arg2); | |
6835 | ||
6836 | wxPyEndAllowThreads(__tstate); | |
6837 | if (PyErr_Occurred()) SWIG_fail; | |
6838 | } | |
4f89f6a3 RD |
6839 | { |
6840 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
6841 | } | |
d14a1e28 RD |
6842 | return resultobj; |
6843 | fail: | |
6844 | return NULL; | |
6845 | } | |
6846 | ||
6847 | ||
6848 | static PyObject *_wrap_CheckListBox_Check(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6849 | PyObject *resultobj; | |
6850 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6851 | int arg2 ; | |
e811c8ce | 6852 | int arg3 = (int) True ; |
d14a1e28 | 6853 | PyObject * obj0 = 0 ; |
994141e6 RD |
6854 | PyObject * obj1 = 0 ; |
6855 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6856 | char *kwnames[] = { |
6857 | (char *) "self",(char *) "index",(char *) "check", NULL | |
6858 | }; | |
6859 | ||
994141e6 | 6860 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:CheckListBox_Check",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6861 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6862 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6863 | arg2 = (int) SWIG_AsInt(obj1); | |
6864 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6865 | if (obj2) { |
15afbcd0 RD |
6866 | arg3 = (int) SWIG_AsInt(obj2); |
6867 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 6868 | } |
d14a1e28 RD |
6869 | { |
6870 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6871 | (arg1)->Check(arg2,arg3); | |
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_CheckListBox_GetItemHeight(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6884 | PyObject *resultobj; | |
6885 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6886 | int result; | |
6887 | PyObject * obj0 = 0 ; | |
6888 | char *kwnames[] = { | |
6889 | (char *) "self", NULL | |
6890 | }; | |
6891 | ||
6892 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:CheckListBox_GetItemHeight",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
6893 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6894 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6895 | { |
6896 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6897 | result = (int)(arg1)->GetItemHeight(); | |
6898 | ||
6899 | wxPyEndAllowThreads(__tstate); | |
6900 | if (PyErr_Occurred()) SWIG_fail; | |
6901 | } | |
15afbcd0 | 6902 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6903 | return resultobj; |
6904 | fail: | |
6905 | return NULL; | |
6906 | } | |
6907 | ||
6908 | ||
6909 | static PyObject *_wrap_CheckListBox_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6910 | PyObject *resultobj; | |
6911 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
6912 | wxPoint *arg2 = 0 ; | |
6913 | int result; | |
6914 | wxPoint temp2 ; | |
6915 | PyObject * obj0 = 0 ; | |
6916 | PyObject * obj1 = 0 ; | |
6917 | char *kwnames[] = { | |
6918 | (char *) "self",(char *) "pt", NULL | |
6919 | }; | |
6920 | ||
6921 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:CheckListBox_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
6922 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6923 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
6924 | { |
6925 | arg2 = &temp2; | |
6926 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
6927 | } | |
6928 | { | |
6929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6930 | result = (int)((wxCheckListBox const *)arg1)->HitTest((wxPoint const &)*arg2); | |
6931 | ||
6932 | wxPyEndAllowThreads(__tstate); | |
6933 | if (PyErr_Occurred()) SWIG_fail; | |
6934 | } | |
15afbcd0 | 6935 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6936 | return resultobj; |
6937 | fail: | |
6938 | return NULL; | |
6939 | } | |
6940 | ||
6941 | ||
6942 | static PyObject *_wrap_CheckListBox_HitTestXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
6943 | PyObject *resultobj; | |
6944 | wxCheckListBox *arg1 = (wxCheckListBox *) 0 ; | |
e811c8ce RD |
6945 | int arg2 ; |
6946 | int arg3 ; | |
d14a1e28 RD |
6947 | int result; |
6948 | PyObject * obj0 = 0 ; | |
994141e6 RD |
6949 | PyObject * obj1 = 0 ; |
6950 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
6951 | char *kwnames[] = { |
6952 | (char *) "self",(char *) "x",(char *) "y", NULL | |
6953 | }; | |
6954 | ||
994141e6 | 6955 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:CheckListBox_HitTestXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
6956 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxCheckListBox, |
6957 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
6958 | arg2 = (int) SWIG_AsInt(obj1); | |
6959 | if (PyErr_Occurred()) SWIG_fail; | |
6960 | arg3 = (int) SWIG_AsInt(obj2); | |
6961 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
6962 | { |
6963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
6964 | result = (int)((wxCheckListBox const *)arg1)->HitTest(arg2,arg3); | |
6965 | ||
6966 | wxPyEndAllowThreads(__tstate); | |
6967 | if (PyErr_Occurred()) SWIG_fail; | |
6968 | } | |
15afbcd0 | 6969 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
6970 | return resultobj; |
6971 | fail: | |
6972 | return NULL; | |
6973 | } | |
6974 | ||
6975 | ||
6976 | static PyObject * CheckListBox_swigregister(PyObject *self, PyObject *args) { | |
6977 | PyObject *obj; | |
6978 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
6979 | SWIG_TypeClientData(SWIGTYPE_p_wxCheckListBox, obj); | |
6980 | Py_INCREF(obj); | |
6981 | return Py_BuildValue((char *)""); | |
6982 | } | |
b2dc1044 RD |
6983 | static int _wrap_TextCtrlNameStr_set(PyObject *_val) { |
6984 | PyErr_SetString(PyExc_TypeError,"Variable TextCtrlNameStr is read-only."); | |
6985 | return 1; | |
6986 | } | |
6987 | ||
6988 | ||
6989 | static PyObject *_wrap_TextCtrlNameStr_get() { | |
6990 | PyObject *pyobj; | |
6991 | ||
6992 | { | |
6993 | #if wxUSE_UNICODE | |
6994 | pyobj = PyUnicode_FromWideChar((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6995 | #else | |
6996 | pyobj = PyString_FromStringAndSize((&wxPyTextCtrlNameStr)->c_str(), (&wxPyTextCtrlNameStr)->Len()); | |
6997 | #endif | |
6998 | } | |
6999 | return pyobj; | |
7000 | } | |
7001 | ||
7002 | ||
908b74cd | 7003 | static PyObject *_wrap_new_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 7004 | PyObject *resultobj; |
908b74cd RD |
7005 | wxColour const &arg1_defvalue = wxNullColour ; |
7006 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
d14a1e28 RD |
7007 | wxColour const &arg2_defvalue = wxNullColour ; |
7008 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
7009 | wxFont const &arg3_defvalue = wxNullFont ; | |
7010 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
7011 | int arg4 = (int) wxTEXT_ALIGNMENT_DEFAULT ; | |
7012 | wxTextAttr *result; | |
7013 | wxColour temp1 ; | |
7014 | wxColour temp2 ; | |
7015 | PyObject * obj0 = 0 ; | |
7016 | PyObject * obj1 = 0 ; | |
7017 | PyObject * obj2 = 0 ; | |
994141e6 | 7018 | PyObject * obj3 = 0 ; |
908b74cd RD |
7019 | char *kwnames[] = { |
7020 | (char *) "colText",(char *) "colBack",(char *) "font",(char *) "alignment", NULL | |
7021 | }; | |
d14a1e28 | 7022 | |
908b74cd RD |
7023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_TextAttr",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
7024 | if (obj0) { | |
7025 | { | |
7026 | arg1 = &temp1; | |
7027 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
7028 | } | |
d14a1e28 RD |
7029 | } |
7030 | if (obj1) { | |
7031 | { | |
7032 | arg2 = &temp2; | |
7033 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7034 | } | |
7035 | } | |
7036 | if (obj2) { | |
15afbcd0 RD |
7037 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
7038 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7039 | SWIG_fail; | |
d14a1e28 | 7040 | if (arg3 == NULL) { |
15afbcd0 RD |
7041 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7042 | SWIG_fail; | |
d14a1e28 RD |
7043 | } |
7044 | } | |
994141e6 | 7045 | if (obj3) { |
15afbcd0 RD |
7046 | arg4 = (wxTextAttrAlignment) SWIG_AsInt(obj3); |
7047 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7048 | } |
d14a1e28 RD |
7049 | { |
7050 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7051 | result = (wxTextAttr *)new wxTextAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3,(wxTextAttrAlignment )arg4); | |
7052 | ||
7053 | wxPyEndAllowThreads(__tstate); | |
7054 | if (PyErr_Occurred()) SWIG_fail; | |
7055 | } | |
15afbcd0 | 7056 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7057 | return resultobj; |
7058 | fail: | |
7059 | return NULL; | |
7060 | } | |
7061 | ||
7062 | ||
994141e6 | 7063 | static PyObject *_wrap_delete_TextAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 RD |
7064 | PyObject *resultobj; |
7065 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7066 | PyObject * obj0 = 0 ; | |
7067 | char *kwnames[] = { | |
7068 | (char *) "self", NULL | |
7069 | }; | |
7070 | ||
994141e6 | 7071 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TextAttr",kwnames,&obj0)) goto fail; |
15afbcd0 RD |
7072 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7073 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7074 | { |
7075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
994141e6 | 7076 | delete arg1; |
d14a1e28 RD |
7077 | |
7078 | wxPyEndAllowThreads(__tstate); | |
7079 | if (PyErr_Occurred()) SWIG_fail; | |
7080 | } | |
7081 | Py_INCREF(Py_None); resultobj = Py_None; | |
7082 | return resultobj; | |
7083 | fail: | |
7084 | return NULL; | |
7085 | } | |
7086 | ||
7087 | ||
994141e6 RD |
7088 | static PyObject *_wrap_TextAttr_Init(PyObject *self, PyObject *args, PyObject *kwargs) { |
7089 | PyObject *resultobj; | |
7090 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7091 | PyObject * obj0 = 0 ; | |
7092 | char *kwnames[] = { | |
7093 | (char *) "self", NULL | |
7094 | }; | |
7095 | ||
7096 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_Init",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7097 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 RD |
7099 | { |
7100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7101 | (arg1)->Init(); | |
7102 | ||
7103 | wxPyEndAllowThreads(__tstate); | |
7104 | if (PyErr_Occurred()) SWIG_fail; | |
7105 | } | |
7106 | Py_INCREF(Py_None); resultobj = Py_None; | |
7107 | return resultobj; | |
7108 | fail: | |
7109 | return NULL; | |
7110 | } | |
7111 | ||
7112 | ||
7113 | static PyObject *_wrap_TextAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
7114 | PyObject *resultobj; |
7115 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7116 | wxColour *arg2 = 0 ; | |
7117 | wxColour temp2 ; | |
7118 | PyObject * obj0 = 0 ; | |
7119 | PyObject * obj1 = 0 ; | |
7120 | char *kwnames[] = { | |
7121 | (char *) "self",(char *) "colText", NULL | |
7122 | }; | |
7123 | ||
7124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7127 | { |
7128 | arg2 = &temp2; | |
7129 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7130 | } | |
7131 | { | |
7132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7133 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
7134 | ||
7135 | wxPyEndAllowThreads(__tstate); | |
7136 | if (PyErr_Occurred()) SWIG_fail; | |
7137 | } | |
7138 | Py_INCREF(Py_None); resultobj = Py_None; | |
7139 | return resultobj; | |
7140 | fail: | |
7141 | return NULL; | |
7142 | } | |
7143 | ||
7144 | ||
7145 | static PyObject *_wrap_TextAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7146 | PyObject *resultobj; | |
7147 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7148 | wxColour *arg2 = 0 ; | |
7149 | wxColour temp2 ; | |
7150 | PyObject * obj0 = 0 ; | |
7151 | PyObject * obj1 = 0 ; | |
7152 | char *kwnames[] = { | |
7153 | (char *) "self",(char *) "colBack", NULL | |
7154 | }; | |
7155 | ||
7156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7159 | { |
7160 | arg2 = &temp2; | |
7161 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
7162 | } | |
7163 | { | |
7164 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7165 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
7166 | ||
7167 | wxPyEndAllowThreads(__tstate); | |
7168 | if (PyErr_Occurred()) SWIG_fail; | |
7169 | } | |
7170 | Py_INCREF(Py_None); resultobj = Py_None; | |
7171 | return resultobj; | |
7172 | fail: | |
7173 | return NULL; | |
7174 | } | |
7175 | ||
7176 | ||
7177 | static PyObject *_wrap_TextAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7178 | PyObject *resultobj; | |
7179 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7180 | wxFont *arg2 = 0 ; | |
7181 | long arg3 = (long) wxTEXT_ATTR_FONT ; | |
7182 | PyObject * obj0 = 0 ; | |
7183 | PyObject * obj1 = 0 ; | |
994141e6 | 7184 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
7185 | char *kwnames[] = { |
7186 | (char *) "self",(char *) "font",(char *) "flags", NULL | |
7187 | }; | |
7188 | ||
994141e6 | 7189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetFont",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
7193 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7194 | SWIG_fail; | |
d14a1e28 | 7195 | if (arg2 == NULL) { |
15afbcd0 RD |
7196 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7197 | SWIG_fail; | |
d14a1e28 | 7198 | } |
994141e6 | 7199 | if (obj2) { |
15afbcd0 RD |
7200 | arg3 = (long) SWIG_AsLong(obj2); |
7201 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 7202 | } |
d14a1e28 RD |
7203 | { |
7204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7205 | (arg1)->SetFont((wxFont const &)*arg2,arg3); | |
7206 | ||
7207 | wxPyEndAllowThreads(__tstate); | |
7208 | if (PyErr_Occurred()) SWIG_fail; | |
7209 | } | |
7210 | Py_INCREF(Py_None); resultobj = Py_None; | |
7211 | return resultobj; | |
7212 | fail: | |
7213 | return NULL; | |
7214 | } | |
7215 | ||
7216 | ||
7217 | static PyObject *_wrap_TextAttr_SetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7218 | PyObject *resultobj; | |
7219 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7220 | int arg2 ; | |
7221 | PyObject * obj0 = 0 ; | |
994141e6 | 7222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7223 | char *kwnames[] = { |
7224 | (char *) "self",(char *) "alignment", NULL | |
7225 | }; | |
7226 | ||
994141e6 | 7227 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetAlignment",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7228 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7229 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7230 | arg2 = (wxTextAttrAlignment) SWIG_AsInt(obj1); | |
7231 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7232 | { |
7233 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7234 | (arg1)->SetAlignment((wxTextAttrAlignment )arg2); | |
7235 | ||
7236 | wxPyEndAllowThreads(__tstate); | |
7237 | if (PyErr_Occurred()) SWIG_fail; | |
7238 | } | |
7239 | Py_INCREF(Py_None); resultobj = Py_None; | |
7240 | return resultobj; | |
7241 | fail: | |
7242 | return NULL; | |
7243 | } | |
7244 | ||
7245 | ||
7246 | static PyObject *_wrap_TextAttr_SetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7247 | PyObject *resultobj; | |
7248 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7249 | wxArrayInt *arg2 = 0 ; | |
3adfb63b | 7250 | bool temp2 = False ; |
d14a1e28 RD |
7251 | PyObject * obj0 = 0 ; |
7252 | PyObject * obj1 = 0 ; | |
7253 | char *kwnames[] = { | |
7254 | (char *) "self",(char *) "tabs", NULL | |
7255 | }; | |
7256 | ||
7257 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetTabs",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
7258 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7259 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7260 | { |
7261 | if (! PySequence_Check(obj1)) { | |
7262 | PyErr_SetString(PyExc_TypeError, "Sequence of integers expected."); | |
7263 | SWIG_fail; | |
7264 | } | |
7265 | arg2 = new wxArrayInt; | |
3adfb63b | 7266 | temp2 = True; |
d14a1e28 RD |
7267 | int i, len=PySequence_Length(obj1); |
7268 | for (i=0; i<len; i++) { | |
7269 | PyObject* item = PySequence_GetItem(obj1, i); | |
7270 | PyObject* number = PyNumber_Int(item); | |
7271 | arg2->Add(PyInt_AS_LONG(number)); | |
7272 | Py_DECREF(item); | |
7273 | Py_DECREF(number); | |
7274 | } | |
7275 | } | |
7276 | { | |
7277 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7278 | (arg1)->SetTabs((wxArrayInt const &)*arg2); | |
7279 | ||
7280 | wxPyEndAllowThreads(__tstate); | |
7281 | if (PyErr_Occurred()) SWIG_fail; | |
7282 | } | |
7283 | Py_INCREF(Py_None); resultobj = Py_None; | |
7284 | { | |
3adfb63b | 7285 | if (temp2) delete arg2; |
d14a1e28 RD |
7286 | } |
7287 | return resultobj; | |
7288 | fail: | |
7289 | { | |
3adfb63b | 7290 | if (temp2) delete arg2; |
d14a1e28 RD |
7291 | } |
7292 | return NULL; | |
7293 | } | |
7294 | ||
7295 | ||
7296 | static PyObject *_wrap_TextAttr_SetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7297 | PyObject *resultobj; | |
7298 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7299 | int arg2 ; | |
5e4ca4a8 | 7300 | int arg3 = (int) 0 ; |
d14a1e28 | 7301 | PyObject * obj0 = 0 ; |
994141e6 | 7302 | PyObject * obj1 = 0 ; |
5e4ca4a8 | 7303 | PyObject * obj2 = 0 ; |
d14a1e28 | 7304 | char *kwnames[] = { |
5e4ca4a8 | 7305 | (char *) "self",(char *) "indent",(char *) "subIndent", NULL |
d14a1e28 RD |
7306 | }; |
7307 | ||
5e4ca4a8 | 7308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TextAttr_SetLeftIndent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
7309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7311 | arg2 = (int) SWIG_AsInt(obj1); | |
7312 | if (PyErr_Occurred()) SWIG_fail; | |
5e4ca4a8 RD |
7313 | if (obj2) { |
7314 | arg3 = (int) SWIG_AsInt(obj2); | |
7315 | if (PyErr_Occurred()) SWIG_fail; | |
7316 | } | |
d14a1e28 RD |
7317 | { |
7318 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
5e4ca4a8 | 7319 | (arg1)->SetLeftIndent(arg2,arg3); |
d14a1e28 RD |
7320 | |
7321 | wxPyEndAllowThreads(__tstate); | |
7322 | if (PyErr_Occurred()) SWIG_fail; | |
7323 | } | |
7324 | Py_INCREF(Py_None); resultobj = Py_None; | |
7325 | return resultobj; | |
7326 | fail: | |
7327 | return NULL; | |
7328 | } | |
7329 | ||
7330 | ||
7331 | static PyObject *_wrap_TextAttr_SetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7332 | PyObject *resultobj; | |
7333 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7334 | int arg2 ; | |
7335 | PyObject * obj0 = 0 ; | |
994141e6 | 7336 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7337 | char *kwnames[] = { |
7338 | (char *) "self",(char *) "indent", NULL | |
7339 | }; | |
7340 | ||
994141e6 | 7341 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetRightIndent",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7342 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7343 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7344 | arg2 = (int) SWIG_AsInt(obj1); | |
7345 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7346 | { |
7347 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7348 | (arg1)->SetRightIndent(arg2); | |
7349 | ||
7350 | wxPyEndAllowThreads(__tstate); | |
7351 | if (PyErr_Occurred()) SWIG_fail; | |
7352 | } | |
7353 | Py_INCREF(Py_None); resultobj = Py_None; | |
7354 | return resultobj; | |
7355 | fail: | |
7356 | return NULL; | |
7357 | } | |
7358 | ||
7359 | ||
7360 | static PyObject *_wrap_TextAttr_SetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7361 | PyObject *resultobj; | |
7362 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7363 | long arg2 ; | |
7364 | PyObject * obj0 = 0 ; | |
994141e6 | 7365 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7366 | char *kwnames[] = { |
7367 | (char *) "self",(char *) "flags", NULL | |
7368 | }; | |
7369 | ||
994141e6 | 7370 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_SetFlags",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7371 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7372 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7373 | arg2 = (long) SWIG_AsLong(obj1); | |
7374 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7375 | { |
7376 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7377 | (arg1)->SetFlags(arg2); | |
7378 | ||
7379 | wxPyEndAllowThreads(__tstate); | |
7380 | if (PyErr_Occurred()) SWIG_fail; | |
7381 | } | |
7382 | Py_INCREF(Py_None); resultobj = Py_None; | |
7383 | return resultobj; | |
7384 | fail: | |
7385 | return NULL; | |
7386 | } | |
7387 | ||
7388 | ||
7389 | static PyObject *_wrap_TextAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7390 | PyObject *resultobj; | |
7391 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7392 | bool result; | |
7393 | PyObject * obj0 = 0 ; | |
7394 | char *kwnames[] = { | |
7395 | (char *) "self", NULL | |
7396 | }; | |
7397 | ||
7398 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7399 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7400 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7401 | { |
7402 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7403 | result = (bool)((wxTextAttr const *)arg1)->HasTextColour(); | |
7404 | ||
7405 | wxPyEndAllowThreads(__tstate); | |
7406 | if (PyErr_Occurred()) SWIG_fail; | |
7407 | } | |
4f89f6a3 RD |
7408 | { |
7409 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7410 | } | |
d14a1e28 RD |
7411 | return resultobj; |
7412 | fail: | |
7413 | return NULL; | |
7414 | } | |
7415 | ||
7416 | ||
7417 | static PyObject *_wrap_TextAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7418 | PyObject *resultobj; | |
7419 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7420 | bool result; | |
7421 | PyObject * obj0 = 0 ; | |
7422 | char *kwnames[] = { | |
7423 | (char *) "self", NULL | |
7424 | }; | |
7425 | ||
7426 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7427 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7428 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7429 | { |
7430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7431 | result = (bool)((wxTextAttr const *)arg1)->HasBackgroundColour(); | |
7432 | ||
7433 | wxPyEndAllowThreads(__tstate); | |
7434 | if (PyErr_Occurred()) SWIG_fail; | |
7435 | } | |
4f89f6a3 RD |
7436 | { |
7437 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7438 | } | |
d14a1e28 RD |
7439 | return resultobj; |
7440 | fail: | |
7441 | return NULL; | |
7442 | } | |
7443 | ||
7444 | ||
7445 | static PyObject *_wrap_TextAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7446 | PyObject *resultobj; | |
7447 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7448 | bool result; | |
7449 | PyObject * obj0 = 0 ; | |
7450 | char *kwnames[] = { | |
7451 | (char *) "self", NULL | |
7452 | }; | |
7453 | ||
7454 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7455 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7456 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7457 | { |
7458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7459 | result = (bool)((wxTextAttr const *)arg1)->HasFont(); | |
7460 | ||
7461 | wxPyEndAllowThreads(__tstate); | |
7462 | if (PyErr_Occurred()) SWIG_fail; | |
7463 | } | |
4f89f6a3 RD |
7464 | { |
7465 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7466 | } | |
d14a1e28 RD |
7467 | return resultobj; |
7468 | fail: | |
7469 | return NULL; | |
7470 | } | |
7471 | ||
7472 | ||
7473 | static PyObject *_wrap_TextAttr_HasAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7474 | PyObject *resultobj; | |
7475 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7476 | bool result; | |
7477 | PyObject * obj0 = 0 ; | |
7478 | char *kwnames[] = { | |
7479 | (char *) "self", NULL | |
7480 | }; | |
7481 | ||
7482 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7483 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7484 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7485 | { |
7486 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7487 | result = (bool)((wxTextAttr const *)arg1)->HasAlignment(); | |
7488 | ||
7489 | wxPyEndAllowThreads(__tstate); | |
7490 | if (PyErr_Occurred()) SWIG_fail; | |
7491 | } | |
4f89f6a3 RD |
7492 | { |
7493 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7494 | } | |
d14a1e28 RD |
7495 | return resultobj; |
7496 | fail: | |
7497 | return NULL; | |
7498 | } | |
7499 | ||
7500 | ||
7501 | static PyObject *_wrap_TextAttr_HasTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7502 | PyObject *resultobj; | |
7503 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7504 | bool result; | |
7505 | PyObject * obj0 = 0 ; | |
7506 | char *kwnames[] = { | |
7507 | (char *) "self", NULL | |
7508 | }; | |
7509 | ||
7510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7513 | { |
7514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7515 | result = (bool)((wxTextAttr const *)arg1)->HasTabs(); | |
7516 | ||
7517 | wxPyEndAllowThreads(__tstate); | |
7518 | if (PyErr_Occurred()) SWIG_fail; | |
7519 | } | |
4f89f6a3 RD |
7520 | { |
7521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7522 | } | |
d14a1e28 RD |
7523 | return resultobj; |
7524 | fail: | |
7525 | return NULL; | |
7526 | } | |
7527 | ||
7528 | ||
7529 | static PyObject *_wrap_TextAttr_HasLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7530 | PyObject *resultobj; | |
7531 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7532 | bool result; | |
7533 | PyObject * obj0 = 0 ; | |
7534 | char *kwnames[] = { | |
7535 | (char *) "self", NULL | |
7536 | }; | |
7537 | ||
7538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7541 | { |
7542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7543 | result = (bool)((wxTextAttr const *)arg1)->HasLeftIndent(); | |
7544 | ||
7545 | wxPyEndAllowThreads(__tstate); | |
7546 | if (PyErr_Occurred()) SWIG_fail; | |
7547 | } | |
4f89f6a3 RD |
7548 | { |
7549 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7550 | } | |
d14a1e28 RD |
7551 | return resultobj; |
7552 | fail: | |
7553 | return NULL; | |
7554 | } | |
7555 | ||
7556 | ||
7557 | static PyObject *_wrap_TextAttr_HasRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7558 | PyObject *resultobj; | |
7559 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7560 | bool result; | |
7561 | PyObject * obj0 = 0 ; | |
7562 | char *kwnames[] = { | |
7563 | (char *) "self", NULL | |
7564 | }; | |
7565 | ||
7566 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_HasRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7567 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7568 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7569 | { |
7570 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7571 | result = (bool)((wxTextAttr const *)arg1)->HasRightIndent(); | |
7572 | ||
7573 | wxPyEndAllowThreads(__tstate); | |
7574 | if (PyErr_Occurred()) SWIG_fail; | |
7575 | } | |
4f89f6a3 RD |
7576 | { |
7577 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7578 | } | |
d14a1e28 RD |
7579 | return resultobj; |
7580 | fail: | |
7581 | return NULL; | |
7582 | } | |
7583 | ||
7584 | ||
7585 | static PyObject *_wrap_TextAttr_HasFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7586 | PyObject *resultobj; | |
7587 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7588 | long arg2 ; | |
7589 | bool result; | |
7590 | PyObject * obj0 = 0 ; | |
994141e6 | 7591 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7592 | char *kwnames[] = { |
7593 | (char *) "self",(char *) "flag", NULL | |
7594 | }; | |
7595 | ||
994141e6 | 7596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextAttr_HasFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
7597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7599 | arg2 = (long) SWIG_AsLong(obj1); | |
7600 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
7601 | { |
7602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7603 | result = (bool)((wxTextAttr const *)arg1)->HasFlag(arg2); | |
7604 | ||
7605 | wxPyEndAllowThreads(__tstate); | |
7606 | if (PyErr_Occurred()) SWIG_fail; | |
7607 | } | |
4f89f6a3 RD |
7608 | { |
7609 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7610 | } | |
d14a1e28 RD |
7611 | return resultobj; |
7612 | fail: | |
7613 | return NULL; | |
7614 | } | |
7615 | ||
7616 | ||
7617 | static PyObject *_wrap_TextAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7618 | PyObject *resultobj; | |
7619 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7620 | wxColour *result; | |
7621 | PyObject * obj0 = 0 ; | |
7622 | char *kwnames[] = { | |
7623 | (char *) "self", NULL | |
7624 | }; | |
7625 | ||
7626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7629 | { |
7630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7631 | { | |
7632 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetTextColour(); | |
7633 | result = (wxColour *) &_result_ref; | |
7634 | } | |
7635 | ||
7636 | wxPyEndAllowThreads(__tstate); | |
7637 | if (PyErr_Occurred()) SWIG_fail; | |
7638 | } | |
15afbcd0 | 7639 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7640 | return resultobj; |
7641 | fail: | |
7642 | return NULL; | |
7643 | } | |
7644 | ||
7645 | ||
7646 | static PyObject *_wrap_TextAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7647 | PyObject *resultobj; | |
7648 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7649 | wxColour *result; | |
7650 | PyObject * obj0 = 0 ; | |
7651 | char *kwnames[] = { | |
7652 | (char *) "self", NULL | |
7653 | }; | |
7654 | ||
7655 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7656 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7657 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7658 | { |
7659 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7660 | { | |
7661 | wxColour const &_result_ref = ((wxTextAttr const *)arg1)->GetBackgroundColour(); | |
7662 | result = (wxColour *) &_result_ref; | |
7663 | } | |
7664 | ||
7665 | wxPyEndAllowThreads(__tstate); | |
7666 | if (PyErr_Occurred()) SWIG_fail; | |
7667 | } | |
15afbcd0 | 7668 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxColour, 0); |
d14a1e28 RD |
7669 | return resultobj; |
7670 | fail: | |
7671 | return NULL; | |
7672 | } | |
7673 | ||
7674 | ||
7675 | static PyObject *_wrap_TextAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7676 | PyObject *resultobj; | |
7677 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7678 | wxFont *result; | |
7679 | PyObject * obj0 = 0 ; | |
7680 | char *kwnames[] = { | |
7681 | (char *) "self", NULL | |
7682 | }; | |
7683 | ||
7684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7687 | { |
7688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7689 | { | |
7690 | wxFont const &_result_ref = ((wxTextAttr const *)arg1)->GetFont(); | |
7691 | result = (wxFont *) &_result_ref; | |
7692 | } | |
7693 | ||
7694 | wxPyEndAllowThreads(__tstate); | |
7695 | if (PyErr_Occurred()) SWIG_fail; | |
7696 | } | |
4276dc52 RD |
7697 | { |
7698 | wxFont* resultptr = new wxFont(*result); | |
7699 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxFont, 1); | |
7700 | } | |
d14a1e28 RD |
7701 | return resultobj; |
7702 | fail: | |
7703 | return NULL; | |
7704 | } | |
7705 | ||
7706 | ||
7707 | static PyObject *_wrap_TextAttr_GetAlignment(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7708 | PyObject *resultobj; | |
7709 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7710 | int result; | |
7711 | PyObject * obj0 = 0 ; | |
7712 | char *kwnames[] = { | |
7713 | (char *) "self", NULL | |
7714 | }; | |
7715 | ||
7716 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetAlignment",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7717 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7718 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7719 | { |
7720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7721 | result = (int)((wxTextAttr const *)arg1)->GetAlignment(); | |
7722 | ||
7723 | wxPyEndAllowThreads(__tstate); | |
7724 | if (PyErr_Occurred()) SWIG_fail; | |
7725 | } | |
15afbcd0 | 7726 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
7727 | return resultobj; |
7728 | fail: | |
7729 | return NULL; | |
7730 | } | |
7731 | ||
7732 | ||
7733 | static PyObject *_wrap_TextAttr_GetTabs(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7734 | PyObject *resultobj; | |
7735 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7736 | wxArrayInt *result; | |
7737 | PyObject * obj0 = 0 ; | |
7738 | char *kwnames[] = { | |
7739 | (char *) "self", NULL | |
7740 | }; | |
7741 | ||
7742 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetTabs",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7743 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7744 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7745 | { |
7746 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7747 | { | |
7748 | wxArrayInt const &_result_ref = ((wxTextAttr const *)arg1)->GetTabs(); | |
7749 | result = (wxArrayInt *) &_result_ref; | |
7750 | } | |
7751 | ||
7752 | wxPyEndAllowThreads(__tstate); | |
7753 | if (PyErr_Occurred()) SWIG_fail; | |
7754 | } | |
7755 | { | |
7756 | resultobj = PyList_New(0); | |
7757 | size_t idx; | |
7758 | for (idx = 0; idx < result->GetCount(); idx += 1) { | |
7759 | PyObject* val = PyInt_FromLong( result->Item(idx) ); | |
7760 | PyList_Append(resultobj, val); | |
7761 | Py_DECREF(val); | |
7762 | } | |
7763 | } | |
7764 | return resultobj; | |
7765 | fail: | |
7766 | return NULL; | |
7767 | } | |
7768 | ||
7769 | ||
7770 | static PyObject *_wrap_TextAttr_GetLeftIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7771 | PyObject *resultobj; | |
7772 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7773 | long result; | |
7774 | PyObject * obj0 = 0 ; | |
7775 | char *kwnames[] = { | |
7776 | (char *) "self", NULL | |
7777 | }; | |
7778 | ||
7779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7782 | { |
7783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7784 | result = (long)((wxTextAttr const *)arg1)->GetLeftIndent(); | |
7785 | ||
7786 | wxPyEndAllowThreads(__tstate); | |
7787 | if (PyErr_Occurred()) SWIG_fail; | |
7788 | } | |
15afbcd0 | 7789 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7790 | return resultobj; |
7791 | fail: | |
7792 | return NULL; | |
7793 | } | |
7794 | ||
7795 | ||
5e4ca4a8 RD |
7796 | static PyObject *_wrap_TextAttr_GetLeftSubIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7797 | PyObject *resultobj; | |
7798 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7799 | long result; | |
7800 | PyObject * obj0 = 0 ; | |
7801 | char *kwnames[] = { | |
7802 | (char *) "self", NULL | |
7803 | }; | |
7804 | ||
7805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetLeftSubIndent",kwnames,&obj0)) goto fail; | |
7806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, | |
7807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7808 | { | |
7809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7810 | result = (long)((wxTextAttr const *)arg1)->GetLeftSubIndent(); | |
7811 | ||
7812 | wxPyEndAllowThreads(__tstate); | |
7813 | if (PyErr_Occurred()) SWIG_fail; | |
7814 | } | |
7815 | resultobj = SWIG_FromLong((long)result); | |
7816 | return resultobj; | |
7817 | fail: | |
7818 | return NULL; | |
7819 | } | |
7820 | ||
7821 | ||
d14a1e28 RD |
7822 | static PyObject *_wrap_TextAttr_GetRightIndent(PyObject *self, PyObject *args, PyObject *kwargs) { |
7823 | PyObject *resultobj; | |
7824 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7825 | long result; | |
7826 | PyObject * obj0 = 0 ; | |
7827 | char *kwnames[] = { | |
7828 | (char *) "self", NULL | |
7829 | }; | |
7830 | ||
7831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetRightIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7834 | { |
7835 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7836 | result = (long)((wxTextAttr const *)arg1)->GetRightIndent(); | |
7837 | ||
7838 | wxPyEndAllowThreads(__tstate); | |
7839 | if (PyErr_Occurred()) SWIG_fail; | |
7840 | } | |
15afbcd0 | 7841 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7842 | return resultobj; |
7843 | fail: | |
7844 | return NULL; | |
7845 | } | |
7846 | ||
7847 | ||
7848 | static PyObject *_wrap_TextAttr_GetFlags(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7849 | PyObject *resultobj; | |
7850 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7851 | long result; | |
7852 | PyObject * obj0 = 0 ; | |
7853 | char *kwnames[] = { | |
7854 | (char *) "self", NULL | |
7855 | }; | |
7856 | ||
7857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_GetFlags",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7860 | { |
7861 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7862 | result = (long)((wxTextAttr const *)arg1)->GetFlags(); | |
7863 | ||
7864 | wxPyEndAllowThreads(__tstate); | |
7865 | if (PyErr_Occurred()) SWIG_fail; | |
7866 | } | |
15afbcd0 | 7867 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
7868 | return resultobj; |
7869 | fail: | |
7870 | return NULL; | |
7871 | } | |
7872 | ||
7873 | ||
7874 | static PyObject *_wrap_TextAttr_IsDefault(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7875 | PyObject *resultobj; | |
7876 | wxTextAttr *arg1 = (wxTextAttr *) 0 ; | |
7877 | bool result; | |
7878 | PyObject * obj0 = 0 ; | |
7879 | char *kwnames[] = { | |
7880 | (char *) "self", NULL | |
7881 | }; | |
7882 | ||
7883 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextAttr_IsDefault",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
7884 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7886 | { |
7887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7888 | result = (bool)((wxTextAttr const *)arg1)->IsDefault(); | |
7889 | ||
7890 | wxPyEndAllowThreads(__tstate); | |
7891 | if (PyErr_Occurred()) SWIG_fail; | |
7892 | } | |
4f89f6a3 RD |
7893 | { |
7894 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
7895 | } | |
d14a1e28 RD |
7896 | return resultobj; |
7897 | fail: | |
7898 | return NULL; | |
7899 | } | |
7900 | ||
7901 | ||
7902 | static PyObject *_wrap_TextAttr_Combine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7903 | PyObject *resultobj; | |
7904 | wxTextAttr *arg1 = 0 ; | |
7905 | wxTextAttr *arg2 = 0 ; | |
7906 | wxTextCtrl *arg3 = (wxTextCtrl *) 0 ; | |
7907 | wxTextAttr result; | |
7908 | PyObject * obj0 = 0 ; | |
7909 | PyObject * obj1 = 0 ; | |
7910 | PyObject * obj2 = 0 ; | |
7911 | char *kwnames[] = { | |
7912 | (char *) "attr",(char *) "attrDef",(char *) "text", NULL | |
7913 | }; | |
7914 | ||
7915 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextAttr_Combine",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
7916 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextAttr, |
7917 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7918 | SWIG_fail; | |
d14a1e28 | 7919 | if (arg1 == NULL) { |
15afbcd0 RD |
7920 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7921 | SWIG_fail; | |
d14a1e28 | 7922 | } |
15afbcd0 RD |
7923 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, |
7924 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
7925 | SWIG_fail; | |
d14a1e28 | 7926 | if (arg2 == NULL) { |
15afbcd0 RD |
7927 | PyErr_SetString(PyExc_TypeError,"null reference"); |
7928 | SWIG_fail; | |
d14a1e28 | 7929 | } |
15afbcd0 RD |
7930 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextCtrl, |
7931 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
7932 | { |
7933 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
7934 | result = wxTextAttr::Combine((wxTextAttr const &)*arg1,(wxTextAttr const &)*arg2,(wxTextCtrl const *)arg3); | |
7935 | ||
7936 | wxPyEndAllowThreads(__tstate); | |
7937 | if (PyErr_Occurred()) SWIG_fail; | |
7938 | } | |
7939 | { | |
7940 | wxTextAttr * resultptr; | |
7941 | resultptr = new wxTextAttr((wxTextAttr &) result); | |
15afbcd0 | 7942 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTextAttr, 1); |
d14a1e28 RD |
7943 | } |
7944 | return resultobj; | |
7945 | fail: | |
7946 | return NULL; | |
7947 | } | |
7948 | ||
7949 | ||
7950 | static PyObject * TextAttr_swigregister(PyObject *self, PyObject *args) { | |
7951 | PyObject *obj; | |
7952 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
7953 | SWIG_TypeClientData(SWIGTYPE_p_wxTextAttr, obj); | |
7954 | Py_INCREF(obj); | |
7955 | return Py_BuildValue((char *)""); | |
7956 | } | |
7957 | static PyObject *_wrap_new_TextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
7958 | PyObject *resultobj; | |
7959 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 7960 | int arg2 = (int) -1 ; |
d14a1e28 RD |
7961 | wxString const &arg3_defvalue = wxPyEmptyString ; |
7962 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
7963 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
7964 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
7965 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
7966 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
7967 | long arg6 = (long) 0 ; | |
7968 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
7969 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
7970 | wxString const &arg8_defvalue = wxPyTextCtrlNameStr ; | |
7971 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
7972 | wxTextCtrl *result; | |
e811c8ce | 7973 | bool temp3 = False ; |
d14a1e28 RD |
7974 | wxPoint temp4 ; |
7975 | wxSize temp5 ; | |
e811c8ce | 7976 | bool temp8 = False ; |
d14a1e28 | 7977 | PyObject * obj0 = 0 ; |
994141e6 | 7978 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
7979 | PyObject * obj2 = 0 ; |
7980 | PyObject * obj3 = 0 ; | |
7981 | PyObject * obj4 = 0 ; | |
994141e6 | 7982 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
7983 | PyObject * obj6 = 0 ; |
7984 | PyObject * obj7 = 0 ; | |
7985 | char *kwnames[] = { | |
7986 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
7987 | }; | |
7988 | ||
248ed943 | 7989 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_TextCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
7990 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
7991 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
7992 | if (obj1) { |
7993 | arg2 = (int) SWIG_AsInt(obj1); | |
7994 | if (PyErr_Occurred()) SWIG_fail; | |
7995 | } | |
d14a1e28 RD |
7996 | if (obj2) { |
7997 | { | |
7998 | arg3 = wxString_in_helper(obj2); | |
7999 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 8000 | temp3 = True; |
d14a1e28 RD |
8001 | } |
8002 | } | |
8003 | if (obj3) { | |
8004 | { | |
8005 | arg4 = &temp4; | |
8006 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
8007 | } | |
8008 | } | |
8009 | if (obj4) { | |
8010 | { | |
8011 | arg5 = &temp5; | |
8012 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
8013 | } | |
8014 | } | |
994141e6 | 8015 | if (obj5) { |
15afbcd0 RD |
8016 | arg6 = (long) SWIG_AsLong(obj5); |
8017 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8018 | } |
d14a1e28 | 8019 | if (obj6) { |
15afbcd0 RD |
8020 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
8021 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8022 | SWIG_fail; | |
d14a1e28 | 8023 | if (arg7 == NULL) { |
15afbcd0 RD |
8024 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8025 | SWIG_fail; | |
d14a1e28 RD |
8026 | } |
8027 | } | |
8028 | if (obj7) { | |
8029 | { | |
8030 | arg8 = wxString_in_helper(obj7); | |
8031 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 8032 | temp8 = True; |
d14a1e28 RD |
8033 | } |
8034 | } | |
8035 | { | |
e3b71cb8 | 8036 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8037 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8038 | result = (wxTextCtrl *)new wxTextCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
8039 | ||
8040 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8041 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8042 | } |
b0f7404b | 8043 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8044 | { |
8045 | if (temp3) | |
8046 | delete arg3; | |
8047 | } | |
8048 | { | |
8049 | if (temp8) | |
8050 | delete arg8; | |
8051 | } | |
8052 | return resultobj; | |
8053 | fail: | |
8054 | { | |
8055 | if (temp3) | |
8056 | delete arg3; | |
8057 | } | |
8058 | { | |
8059 | if (temp8) | |
8060 | delete arg8; | |
8061 | } | |
8062 | return NULL; | |
8063 | } | |
8064 | ||
8065 | ||
8066 | static PyObject *_wrap_new_PreTextCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8067 | PyObject *resultobj; | |
8068 | wxTextCtrl *result; | |
8069 | char *kwnames[] = { | |
8070 | NULL | |
8071 | }; | |
8072 | ||
8073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTextCtrl",kwnames)) goto fail; | |
8074 | { | |
e3b71cb8 | 8075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
8076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
8077 | result = (wxTextCtrl *)new wxTextCtrl(); | |
8078 | ||
8079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 8080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 8081 | } |
b0f7404b | 8082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextCtrl, 1); |
d14a1e28 RD |
8083 | return resultobj; |
8084 | fail: | |
8085 | return NULL; | |
8086 | } | |
8087 | ||
8088 | ||
8089 | static PyObject *_wrap_TextCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8090 | PyObject *resultobj; | |
8091 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 8093 | int arg3 = (int) -1 ; |
d14a1e28 RD |
8094 | wxString const &arg4_defvalue = wxPyEmptyString ; |
8095 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
8096 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
8097 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
8098 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
8099 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
8100 | long arg7 = (long) 0 ; | |
8101 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
8102 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
8103 | wxString const &arg9_defvalue = wxPyTextCtrlNameStr ; | |
8104 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
8105 | bool result; | |
e811c8ce | 8106 | bool temp4 = False ; |
d14a1e28 RD |
8107 | wxPoint temp5 ; |
8108 | wxSize temp6 ; | |
e811c8ce | 8109 | bool temp9 = False ; |
d14a1e28 RD |
8110 | PyObject * obj0 = 0 ; |
8111 | PyObject * obj1 = 0 ; | |
994141e6 | 8112 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
8113 | PyObject * obj3 = 0 ; |
8114 | PyObject * obj4 = 0 ; | |
8115 | PyObject * obj5 = 0 ; | |
994141e6 | 8116 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
8117 | PyObject * obj7 = 0 ; |
8118 | PyObject * obj8 = 0 ; | |
8119 | char *kwnames[] = { | |
8120 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
8121 | }; | |
8122 | ||
248ed943 | 8123 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:TextCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
8124 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8125 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8126 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
8127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
8128 | if (obj2) { |
8129 | arg3 = (int) SWIG_AsInt(obj2); | |
8130 | if (PyErr_Occurred()) SWIG_fail; | |
8131 | } | |
d14a1e28 RD |
8132 | if (obj3) { |
8133 | { | |
8134 | arg4 = wxString_in_helper(obj3); | |
8135 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8136 | temp4 = True; |
d14a1e28 RD |
8137 | } |
8138 | } | |
8139 | if (obj4) { | |
8140 | { | |
8141 | arg5 = &temp5; | |
8142 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
8143 | } | |
8144 | } | |
8145 | if (obj5) { | |
8146 | { | |
8147 | arg6 = &temp6; | |
8148 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
8149 | } | |
8150 | } | |
994141e6 | 8151 | if (obj6) { |
15afbcd0 RD |
8152 | arg7 = (long) SWIG_AsLong(obj6); |
8153 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 8154 | } |
d14a1e28 | 8155 | if (obj7) { |
15afbcd0 RD |
8156 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
8157 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8158 | SWIG_fail; | |
d14a1e28 | 8159 | if (arg8 == NULL) { |
15afbcd0 RD |
8160 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8161 | SWIG_fail; | |
d14a1e28 RD |
8162 | } |
8163 | } | |
8164 | if (obj8) { | |
8165 | { | |
8166 | arg9 = wxString_in_helper(obj8); | |
8167 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 8168 | temp9 = True; |
d14a1e28 RD |
8169 | } |
8170 | } | |
8171 | { | |
8172 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8173 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
8174 | ||
8175 | wxPyEndAllowThreads(__tstate); | |
8176 | if (PyErr_Occurred()) SWIG_fail; | |
8177 | } | |
4f89f6a3 RD |
8178 | { |
8179 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8180 | } | |
d14a1e28 RD |
8181 | { |
8182 | if (temp4) | |
8183 | delete arg4; | |
8184 | } | |
8185 | { | |
8186 | if (temp9) | |
8187 | delete arg9; | |
8188 | } | |
8189 | return resultobj; | |
8190 | fail: | |
8191 | { | |
8192 | if (temp4) | |
8193 | delete arg4; | |
8194 | } | |
8195 | { | |
8196 | if (temp9) | |
8197 | delete arg9; | |
8198 | } | |
8199 | return NULL; | |
8200 | } | |
8201 | ||
8202 | ||
8203 | static PyObject *_wrap_TextCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8204 | PyObject *resultobj; | |
8205 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8206 | wxString result; | |
8207 | PyObject * obj0 = 0 ; | |
8208 | char *kwnames[] = { | |
8209 | (char *) "self", NULL | |
8210 | }; | |
8211 | ||
8212 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8213 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8214 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8215 | { |
8216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8217 | result = ((wxTextCtrl const *)arg1)->GetValue(); | |
8218 | ||
8219 | wxPyEndAllowThreads(__tstate); | |
8220 | if (PyErr_Occurred()) SWIG_fail; | |
8221 | } | |
8222 | { | |
8223 | #if wxUSE_UNICODE | |
8224 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8225 | #else | |
8226 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8227 | #endif | |
8228 | } | |
8229 | return resultobj; | |
8230 | fail: | |
8231 | return NULL; | |
8232 | } | |
8233 | ||
8234 | ||
8235 | static PyObject *_wrap_TextCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8236 | PyObject *resultobj; | |
8237 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8238 | wxString *arg2 = 0 ; | |
e811c8ce | 8239 | bool temp2 = False ; |
d14a1e28 RD |
8240 | PyObject * obj0 = 0 ; |
8241 | PyObject * obj1 = 0 ; | |
8242 | char *kwnames[] = { | |
8243 | (char *) "self",(char *) "value", NULL | |
8244 | }; | |
8245 | ||
8246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8249 | { |
8250 | arg2 = wxString_in_helper(obj1); | |
8251 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8252 | temp2 = True; |
d14a1e28 RD |
8253 | } |
8254 | { | |
8255 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8256 | (arg1)->SetValue((wxString const &)*arg2); | |
8257 | ||
8258 | wxPyEndAllowThreads(__tstate); | |
8259 | if (PyErr_Occurred()) SWIG_fail; | |
8260 | } | |
8261 | Py_INCREF(Py_None); resultobj = Py_None; | |
8262 | { | |
8263 | if (temp2) | |
8264 | delete arg2; | |
8265 | } | |
8266 | return resultobj; | |
8267 | fail: | |
8268 | { | |
8269 | if (temp2) | |
8270 | delete arg2; | |
8271 | } | |
8272 | return NULL; | |
8273 | } | |
8274 | ||
8275 | ||
8276 | static PyObject *_wrap_TextCtrl_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8277 | PyObject *resultobj; | |
8278 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8279 | long arg2 ; | |
8280 | long arg3 ; | |
8281 | wxString result; | |
8282 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8283 | PyObject * obj1 = 0 ; |
8284 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8285 | char *kwnames[] = { |
8286 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8287 | }; | |
8288 | ||
994141e6 | 8289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8292 | arg2 = (long) SWIG_AsLong(obj1); | |
8293 | if (PyErr_Occurred()) SWIG_fail; | |
8294 | arg3 = (long) SWIG_AsLong(obj2); | |
8295 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8296 | { |
8297 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8298 | result = ((wxTextCtrl const *)arg1)->GetRange(arg2,arg3); | |
8299 | ||
8300 | wxPyEndAllowThreads(__tstate); | |
8301 | if (PyErr_Occurred()) SWIG_fail; | |
8302 | } | |
8303 | { | |
8304 | #if wxUSE_UNICODE | |
8305 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8306 | #else | |
8307 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8308 | #endif | |
8309 | } | |
8310 | return resultobj; | |
8311 | fail: | |
8312 | return NULL; | |
8313 | } | |
8314 | ||
8315 | ||
8316 | static PyObject *_wrap_TextCtrl_GetLineLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8317 | PyObject *resultobj; | |
8318 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8319 | long arg2 ; | |
8320 | int result; | |
8321 | PyObject * obj0 = 0 ; | |
994141e6 | 8322 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8323 | char *kwnames[] = { |
8324 | (char *) "self",(char *) "lineNo", NULL | |
8325 | }; | |
8326 | ||
994141e6 | 8327 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8328 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8329 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8330 | arg2 = (long) SWIG_AsLong(obj1); | |
8331 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8332 | { |
8333 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8334 | result = (int)((wxTextCtrl const *)arg1)->GetLineLength(arg2); | |
8335 | ||
8336 | wxPyEndAllowThreads(__tstate); | |
8337 | if (PyErr_Occurred()) SWIG_fail; | |
8338 | } | |
15afbcd0 | 8339 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8340 | return resultobj; |
8341 | fail: | |
8342 | return NULL; | |
8343 | } | |
8344 | ||
8345 | ||
8346 | static PyObject *_wrap_TextCtrl_GetLineText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8347 | PyObject *resultobj; | |
8348 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8349 | long arg2 ; | |
8350 | wxString result; | |
8351 | PyObject * obj0 = 0 ; | |
994141e6 | 8352 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
8353 | char *kwnames[] = { |
8354 | (char *) "self",(char *) "lineNo", NULL | |
8355 | }; | |
8356 | ||
994141e6 | 8357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_GetLineText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
8358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8360 | arg2 = (long) SWIG_AsLong(obj1); | |
8361 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8362 | { |
8363 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8364 | result = ((wxTextCtrl const *)arg1)->GetLineText(arg2); | |
8365 | ||
8366 | wxPyEndAllowThreads(__tstate); | |
8367 | if (PyErr_Occurred()) SWIG_fail; | |
8368 | } | |
8369 | { | |
8370 | #if wxUSE_UNICODE | |
8371 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8372 | #else | |
8373 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8374 | #endif | |
8375 | } | |
8376 | return resultobj; | |
8377 | fail: | |
8378 | return NULL; | |
8379 | } | |
8380 | ||
8381 | ||
8382 | static PyObject *_wrap_TextCtrl_GetNumberOfLines(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8383 | PyObject *resultobj; | |
8384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8385 | int result; | |
8386 | PyObject * obj0 = 0 ; | |
8387 | char *kwnames[] = { | |
8388 | (char *) "self", NULL | |
8389 | }; | |
8390 | ||
8391 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetNumberOfLines",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8392 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8393 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8394 | { |
8395 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8396 | result = (int)((wxTextCtrl const *)arg1)->GetNumberOfLines(); | |
8397 | ||
8398 | wxPyEndAllowThreads(__tstate); | |
8399 | if (PyErr_Occurred()) SWIG_fail; | |
8400 | } | |
15afbcd0 | 8401 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
8402 | return resultobj; |
8403 | fail: | |
8404 | return NULL; | |
8405 | } | |
8406 | ||
8407 | ||
8408 | static PyObject *_wrap_TextCtrl_IsModified(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8409 | PyObject *resultobj; | |
8410 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8411 | bool result; | |
8412 | PyObject * obj0 = 0 ; | |
8413 | char *kwnames[] = { | |
8414 | (char *) "self", NULL | |
8415 | }; | |
8416 | ||
8417 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsModified",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8418 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8419 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8420 | { |
8421 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8422 | result = (bool)((wxTextCtrl const *)arg1)->IsModified(); | |
8423 | ||
8424 | wxPyEndAllowThreads(__tstate); | |
8425 | if (PyErr_Occurred()) SWIG_fail; | |
8426 | } | |
4f89f6a3 RD |
8427 | { |
8428 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8429 | } | |
d14a1e28 RD |
8430 | return resultobj; |
8431 | fail: | |
8432 | return NULL; | |
8433 | } | |
8434 | ||
8435 | ||
8436 | static PyObject *_wrap_TextCtrl_IsEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8437 | PyObject *resultobj; | |
8438 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8439 | bool result; | |
8440 | PyObject * obj0 = 0 ; | |
8441 | char *kwnames[] = { | |
8442 | (char *) "self", NULL | |
8443 | }; | |
8444 | ||
8445 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsEditable",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8446 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8447 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8448 | { |
8449 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8450 | result = (bool)((wxTextCtrl const *)arg1)->IsEditable(); | |
8451 | ||
8452 | wxPyEndAllowThreads(__tstate); | |
8453 | if (PyErr_Occurred()) SWIG_fail; | |
8454 | } | |
4f89f6a3 RD |
8455 | { |
8456 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8457 | } | |
d14a1e28 RD |
8458 | return resultobj; |
8459 | fail: | |
8460 | return NULL; | |
8461 | } | |
8462 | ||
8463 | ||
8464 | static PyObject *_wrap_TextCtrl_IsSingleLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8465 | PyObject *resultobj; | |
8466 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8467 | bool result; | |
8468 | PyObject * obj0 = 0 ; | |
8469 | char *kwnames[] = { | |
8470 | (char *) "self", NULL | |
8471 | }; | |
8472 | ||
8473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsSingleLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8476 | { |
8477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8478 | result = (bool)((wxTextCtrl const *)arg1)->IsSingleLine(); | |
8479 | ||
8480 | wxPyEndAllowThreads(__tstate); | |
8481 | if (PyErr_Occurred()) SWIG_fail; | |
8482 | } | |
4f89f6a3 RD |
8483 | { |
8484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8485 | } | |
d14a1e28 RD |
8486 | return resultobj; |
8487 | fail: | |
8488 | return NULL; | |
8489 | } | |
8490 | ||
8491 | ||
8492 | static PyObject *_wrap_TextCtrl_IsMultiLine(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8493 | PyObject *resultobj; | |
8494 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8495 | bool result; | |
8496 | PyObject * obj0 = 0 ; | |
8497 | char *kwnames[] = { | |
8498 | (char *) "self", NULL | |
8499 | }; | |
8500 | ||
8501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_IsMultiLine",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8504 | { |
8505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8506 | result = (bool)((wxTextCtrl const *)arg1)->IsMultiLine(); | |
8507 | ||
8508 | wxPyEndAllowThreads(__tstate); | |
8509 | if (PyErr_Occurred()) SWIG_fail; | |
8510 | } | |
4f89f6a3 RD |
8511 | { |
8512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8513 | } | |
d14a1e28 RD |
8514 | return resultobj; |
8515 | fail: | |
8516 | return NULL; | |
8517 | } | |
8518 | ||
8519 | ||
8520 | static PyObject *_wrap_TextCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8521 | PyObject *resultobj; | |
8522 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8523 | long *arg2 = (long *) 0 ; | |
8524 | long *arg3 = (long *) 0 ; | |
8525 | long temp2 ; | |
8526 | long temp3 ; | |
8527 | PyObject * obj0 = 0 ; | |
8528 | char *kwnames[] = { | |
8529 | (char *) "self", NULL | |
8530 | }; | |
8531 | ||
8532 | arg2 = &temp2; | |
8533 | arg3 = &temp3; | |
8534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8537 | { |
8538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8539 | ((wxTextCtrl const *)arg1)->GetSelection(arg2,arg3); | |
8540 | ||
8541 | wxPyEndAllowThreads(__tstate); | |
8542 | if (PyErr_Occurred()) SWIG_fail; | |
8543 | } | |
8544 | Py_INCREF(Py_None); resultobj = Py_None; | |
8545 | { | |
8546 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
8547 | resultobj = t_output_helper(resultobj,o); | |
8548 | } | |
8549 | { | |
8550 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
8551 | resultobj = t_output_helper(resultobj,o); | |
8552 | } | |
8553 | return resultobj; | |
8554 | fail: | |
8555 | return NULL; | |
8556 | } | |
8557 | ||
8558 | ||
8559 | static PyObject *_wrap_TextCtrl_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8560 | PyObject *resultobj; | |
8561 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8562 | wxString result; | |
8563 | PyObject * obj0 = 0 ; | |
8564 | char *kwnames[] = { | |
8565 | (char *) "self", NULL | |
8566 | }; | |
8567 | ||
8568 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8569 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8570 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8571 | { |
8572 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8573 | result = ((wxTextCtrl const *)arg1)->GetStringSelection(); | |
8574 | ||
8575 | wxPyEndAllowThreads(__tstate); | |
8576 | if (PyErr_Occurred()) SWIG_fail; | |
8577 | } | |
8578 | { | |
8579 | #if wxUSE_UNICODE | |
8580 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
8581 | #else | |
8582 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
8583 | #endif | |
8584 | } | |
8585 | return resultobj; | |
8586 | fail: | |
8587 | return NULL; | |
8588 | } | |
8589 | ||
8590 | ||
8591 | static PyObject *_wrap_TextCtrl_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8592 | PyObject *resultobj; | |
8593 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8594 | PyObject * obj0 = 0 ; | |
8595 | char *kwnames[] = { | |
8596 | (char *) "self", NULL | |
8597 | }; | |
8598 | ||
8599 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8600 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8601 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8602 | { |
8603 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8604 | (arg1)->Clear(); | |
8605 | ||
8606 | wxPyEndAllowThreads(__tstate); | |
8607 | if (PyErr_Occurred()) SWIG_fail; | |
8608 | } | |
8609 | Py_INCREF(Py_None); resultobj = Py_None; | |
8610 | return resultobj; | |
8611 | fail: | |
8612 | return NULL; | |
8613 | } | |
8614 | ||
8615 | ||
8616 | static PyObject *_wrap_TextCtrl_Replace(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8617 | PyObject *resultobj; | |
8618 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8619 | long arg2 ; | |
8620 | long arg3 ; | |
8621 | wxString *arg4 = 0 ; | |
e811c8ce | 8622 | bool temp4 = False ; |
d14a1e28 | 8623 | PyObject * obj0 = 0 ; |
994141e6 RD |
8624 | PyObject * obj1 = 0 ; |
8625 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8626 | PyObject * obj3 = 0 ; |
8627 | char *kwnames[] = { | |
8628 | (char *) "self",(char *) "from",(char *) "to",(char *) "value", NULL | |
8629 | }; | |
8630 | ||
994141e6 | 8631 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_Replace",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
8632 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8633 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8634 | arg2 = (long) SWIG_AsLong(obj1); | |
8635 | if (PyErr_Occurred()) SWIG_fail; | |
8636 | arg3 = (long) SWIG_AsLong(obj2); | |
8637 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8638 | { |
8639 | arg4 = wxString_in_helper(obj3); | |
8640 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 8641 | temp4 = True; |
d14a1e28 RD |
8642 | } |
8643 | { | |
8644 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8645 | (arg1)->Replace(arg2,arg3,(wxString const &)*arg4); | |
8646 | ||
8647 | wxPyEndAllowThreads(__tstate); | |
8648 | if (PyErr_Occurred()) SWIG_fail; | |
8649 | } | |
8650 | Py_INCREF(Py_None); resultobj = Py_None; | |
8651 | { | |
8652 | if (temp4) | |
8653 | delete arg4; | |
8654 | } | |
8655 | return resultobj; | |
8656 | fail: | |
8657 | { | |
8658 | if (temp4) | |
8659 | delete arg4; | |
8660 | } | |
8661 | return NULL; | |
8662 | } | |
8663 | ||
8664 | ||
8665 | static PyObject *_wrap_TextCtrl_Remove(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8666 | PyObject *resultobj; | |
8667 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8668 | long arg2 ; | |
8669 | long arg3 ; | |
8670 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8671 | PyObject * obj1 = 0 ; |
8672 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8673 | char *kwnames[] = { |
8674 | (char *) "self",(char *) "from",(char *) "to", NULL | |
8675 | }; | |
8676 | ||
994141e6 | 8677 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_Remove",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
8678 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8679 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8680 | arg2 = (long) SWIG_AsLong(obj1); | |
8681 | if (PyErr_Occurred()) SWIG_fail; | |
8682 | arg3 = (long) SWIG_AsLong(obj2); | |
8683 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8684 | { |
8685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8686 | (arg1)->Remove(arg2,arg3); | |
8687 | ||
8688 | wxPyEndAllowThreads(__tstate); | |
8689 | if (PyErr_Occurred()) SWIG_fail; | |
8690 | } | |
8691 | Py_INCREF(Py_None); resultobj = Py_None; | |
8692 | return resultobj; | |
8693 | fail: | |
8694 | return NULL; | |
8695 | } | |
8696 | ||
8697 | ||
8698 | static PyObject *_wrap_TextCtrl_LoadFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8699 | PyObject *resultobj; | |
8700 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8701 | wxString *arg2 = 0 ; | |
8702 | bool result; | |
e811c8ce | 8703 | bool temp2 = False ; |
d14a1e28 RD |
8704 | PyObject * obj0 = 0 ; |
8705 | PyObject * obj1 = 0 ; | |
8706 | char *kwnames[] = { | |
8707 | (char *) "self",(char *) "file", NULL | |
8708 | }; | |
8709 | ||
8710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_LoadFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8713 | { |
8714 | arg2 = wxString_in_helper(obj1); | |
8715 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8716 | temp2 = True; |
d14a1e28 RD |
8717 | } |
8718 | { | |
8719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8720 | result = (bool)(arg1)->LoadFile((wxString const &)*arg2); | |
8721 | ||
8722 | wxPyEndAllowThreads(__tstate); | |
8723 | if (PyErr_Occurred()) SWIG_fail; | |
8724 | } | |
4f89f6a3 RD |
8725 | { |
8726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8727 | } | |
d14a1e28 RD |
8728 | { |
8729 | if (temp2) | |
8730 | delete arg2; | |
8731 | } | |
8732 | return resultobj; | |
8733 | fail: | |
8734 | { | |
8735 | if (temp2) | |
8736 | delete arg2; | |
8737 | } | |
8738 | return NULL; | |
8739 | } | |
8740 | ||
8741 | ||
8742 | static PyObject *_wrap_TextCtrl_SaveFile(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8743 | PyObject *resultobj; | |
8744 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8745 | wxString const &arg2_defvalue = wxPyEmptyString ; | |
8746 | wxString *arg2 = (wxString *) &arg2_defvalue ; | |
8747 | bool result; | |
e811c8ce | 8748 | bool temp2 = False ; |
d14a1e28 RD |
8749 | PyObject * obj0 = 0 ; |
8750 | PyObject * obj1 = 0 ; | |
8751 | char *kwnames[] = { | |
8752 | (char *) "self",(char *) "file", NULL | |
8753 | }; | |
8754 | ||
8755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:TextCtrl_SaveFile",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8758 | if (obj1) { |
8759 | { | |
8760 | arg2 = wxString_in_helper(obj1); | |
8761 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8762 | temp2 = True; |
d14a1e28 RD |
8763 | } |
8764 | } | |
8765 | { | |
8766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8767 | result = (bool)(arg1)->SaveFile((wxString const &)*arg2); | |
8768 | ||
8769 | wxPyEndAllowThreads(__tstate); | |
8770 | if (PyErr_Occurred()) SWIG_fail; | |
8771 | } | |
4f89f6a3 RD |
8772 | { |
8773 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8774 | } | |
d14a1e28 RD |
8775 | { |
8776 | if (temp2) | |
8777 | delete arg2; | |
8778 | } | |
8779 | return resultobj; | |
8780 | fail: | |
8781 | { | |
8782 | if (temp2) | |
8783 | delete arg2; | |
8784 | } | |
8785 | return NULL; | |
8786 | } | |
8787 | ||
8788 | ||
8789 | static PyObject *_wrap_TextCtrl_MarkDirty(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8790 | PyObject *resultobj; | |
8791 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8792 | PyObject * obj0 = 0 ; | |
8793 | char *kwnames[] = { | |
8794 | (char *) "self", NULL | |
8795 | }; | |
8796 | ||
8797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_MarkDirty",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8800 | { |
8801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8802 | (arg1)->MarkDirty(); | |
8803 | ||
8804 | wxPyEndAllowThreads(__tstate); | |
8805 | if (PyErr_Occurred()) SWIG_fail; | |
8806 | } | |
8807 | Py_INCREF(Py_None); resultobj = Py_None; | |
8808 | return resultobj; | |
8809 | fail: | |
8810 | return NULL; | |
8811 | } | |
8812 | ||
8813 | ||
8814 | static PyObject *_wrap_TextCtrl_DiscardEdits(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8815 | PyObject *resultobj; | |
8816 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8817 | PyObject * obj0 = 0 ; | |
8818 | char *kwnames[] = { | |
8819 | (char *) "self", NULL | |
8820 | }; | |
8821 | ||
8822 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_DiscardEdits",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
8823 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8824 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8825 | { |
8826 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8827 | (arg1)->DiscardEdits(); | |
8828 | ||
8829 | wxPyEndAllowThreads(__tstate); | |
8830 | if (PyErr_Occurred()) SWIG_fail; | |
8831 | } | |
8832 | Py_INCREF(Py_None); resultobj = Py_None; | |
8833 | return resultobj; | |
8834 | fail: | |
8835 | return NULL; | |
8836 | } | |
8837 | ||
8838 | ||
8839 | static PyObject *_wrap_TextCtrl_SetMaxLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8840 | PyObject *resultobj; | |
8841 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8842 | unsigned long arg2 ; | |
8843 | PyObject * obj0 = 0 ; | |
8844 | PyObject * obj1 = 0 ; | |
8845 | char *kwnames[] = { | |
8846 | (char *) "self",(char *) "len", NULL | |
8847 | }; | |
8848 | ||
8849 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetMaxLength",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8850 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8851 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8852 | arg2 = (unsigned long) SWIG_AsUnsignedLong(obj1); | |
8853 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
8854 | { |
8855 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8856 | (arg1)->SetMaxLength(arg2); | |
8857 | ||
8858 | wxPyEndAllowThreads(__tstate); | |
8859 | if (PyErr_Occurred()) SWIG_fail; | |
8860 | } | |
8861 | Py_INCREF(Py_None); resultobj = Py_None; | |
8862 | return resultobj; | |
8863 | fail: | |
8864 | return NULL; | |
8865 | } | |
8866 | ||
8867 | ||
8868 | static PyObject *_wrap_TextCtrl_WriteText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8869 | PyObject *resultobj; | |
8870 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8871 | wxString *arg2 = 0 ; | |
e811c8ce | 8872 | bool temp2 = False ; |
d14a1e28 RD |
8873 | PyObject * obj0 = 0 ; |
8874 | PyObject * obj1 = 0 ; | |
8875 | char *kwnames[] = { | |
8876 | (char *) "self",(char *) "text", NULL | |
8877 | }; | |
8878 | ||
8879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_WriteText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8882 | { |
8883 | arg2 = wxString_in_helper(obj1); | |
8884 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8885 | temp2 = True; |
d14a1e28 RD |
8886 | } |
8887 | { | |
8888 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8889 | (arg1)->WriteText((wxString const &)*arg2); | |
8890 | ||
8891 | wxPyEndAllowThreads(__tstate); | |
8892 | if (PyErr_Occurred()) SWIG_fail; | |
8893 | } | |
8894 | Py_INCREF(Py_None); resultobj = Py_None; | |
8895 | { | |
8896 | if (temp2) | |
8897 | delete arg2; | |
8898 | } | |
8899 | return resultobj; | |
8900 | fail: | |
8901 | { | |
8902 | if (temp2) | |
8903 | delete arg2; | |
8904 | } | |
8905 | return NULL; | |
8906 | } | |
8907 | ||
8908 | ||
8909 | static PyObject *_wrap_TextCtrl_AppendText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8910 | PyObject *resultobj; | |
8911 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8912 | wxString *arg2 = 0 ; | |
e811c8ce | 8913 | bool temp2 = False ; |
d14a1e28 RD |
8914 | PyObject * obj0 = 0 ; |
8915 | PyObject * obj1 = 0 ; | |
8916 | char *kwnames[] = { | |
8917 | (char *) "self",(char *) "text", NULL | |
8918 | }; | |
8919 | ||
8920 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_AppendText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8921 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8922 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
8923 | { |
8924 | arg2 = wxString_in_helper(obj1); | |
8925 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 8926 | temp2 = True; |
d14a1e28 RD |
8927 | } |
8928 | { | |
8929 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8930 | (arg1)->AppendText((wxString const &)*arg2); | |
8931 | ||
8932 | wxPyEndAllowThreads(__tstate); | |
8933 | if (PyErr_Occurred()) SWIG_fail; | |
8934 | } | |
8935 | Py_INCREF(Py_None); resultobj = Py_None; | |
8936 | { | |
8937 | if (temp2) | |
8938 | delete arg2; | |
8939 | } | |
8940 | return resultobj; | |
8941 | fail: | |
8942 | { | |
8943 | if (temp2) | |
8944 | delete arg2; | |
8945 | } | |
8946 | return NULL; | |
8947 | } | |
8948 | ||
8949 | ||
8950 | static PyObject *_wrap_TextCtrl_EmulateKeyPress(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8951 | PyObject *resultobj; | |
8952 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8953 | wxKeyEvent *arg2 = 0 ; | |
8954 | bool result; | |
8955 | PyObject * obj0 = 0 ; | |
8956 | PyObject * obj1 = 0 ; | |
8957 | char *kwnames[] = { | |
8958 | (char *) "self",(char *) "event", NULL | |
8959 | }; | |
8960 | ||
8961 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_EmulateKeyPress",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
8962 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
8963 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
8964 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
8965 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
8966 | SWIG_fail; | |
d14a1e28 | 8967 | if (arg2 == NULL) { |
15afbcd0 RD |
8968 | PyErr_SetString(PyExc_TypeError,"null reference"); |
8969 | SWIG_fail; | |
d14a1e28 RD |
8970 | } |
8971 | { | |
8972 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
8973 | result = (bool)(arg1)->EmulateKeyPress((wxKeyEvent const &)*arg2); | |
8974 | ||
8975 | wxPyEndAllowThreads(__tstate); | |
8976 | if (PyErr_Occurred()) SWIG_fail; | |
8977 | } | |
4f89f6a3 RD |
8978 | { |
8979 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
8980 | } | |
d14a1e28 RD |
8981 | return resultobj; |
8982 | fail: | |
8983 | return NULL; | |
8984 | } | |
8985 | ||
8986 | ||
8987 | static PyObject *_wrap_TextCtrl_SetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
8988 | PyObject *resultobj; | |
8989 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
8990 | long arg2 ; | |
8991 | long arg3 ; | |
8992 | wxTextAttr *arg4 = 0 ; | |
8993 | bool result; | |
8994 | PyObject * obj0 = 0 ; | |
994141e6 RD |
8995 | PyObject * obj1 = 0 ; |
8996 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
8997 | PyObject * obj3 = 0 ; |
8998 | char *kwnames[] = { | |
8999 | (char *) "self",(char *) "start",(char *) "end",(char *) "style", NULL | |
9000 | }; | |
9001 | ||
994141e6 | 9002 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:TextCtrl_SetStyle",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9003 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9004 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9005 | arg2 = (long) SWIG_AsLong(obj1); | |
9006 | if (PyErr_Occurred()) SWIG_fail; | |
9007 | arg3 = (long) SWIG_AsLong(obj2); | |
9008 | if (PyErr_Occurred()) SWIG_fail; | |
9009 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxTextAttr, | |
9010 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9011 | SWIG_fail; | |
d14a1e28 | 9012 | if (arg4 == NULL) { |
15afbcd0 RD |
9013 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9014 | SWIG_fail; | |
d14a1e28 RD |
9015 | } |
9016 | { | |
9017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9018 | result = (bool)(arg1)->SetStyle(arg2,arg3,(wxTextAttr const &)*arg4); | |
9019 | ||
9020 | wxPyEndAllowThreads(__tstate); | |
9021 | if (PyErr_Occurred()) SWIG_fail; | |
9022 | } | |
4f89f6a3 RD |
9023 | { |
9024 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9025 | } | |
d14a1e28 RD |
9026 | return resultobj; |
9027 | fail: | |
9028 | return NULL; | |
9029 | } | |
9030 | ||
9031 | ||
9032 | static PyObject *_wrap_TextCtrl_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9033 | PyObject *resultobj; | |
9034 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9035 | long arg2 ; | |
9036 | wxTextAttr *arg3 = 0 ; | |
9037 | bool result; | |
9038 | PyObject * obj0 = 0 ; | |
994141e6 | 9039 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9040 | PyObject * obj2 = 0 ; |
9041 | char *kwnames[] = { | |
9042 | (char *) "self",(char *) "position",(char *) "style", NULL | |
9043 | }; | |
9044 | ||
994141e6 | 9045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9048 | arg2 = (long) SWIG_AsLong(obj1); | |
9049 | if (PyErr_Occurred()) SWIG_fail; | |
9050 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTextAttr, | |
9051 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9052 | SWIG_fail; | |
d14a1e28 | 9053 | if (arg3 == NULL) { |
15afbcd0 RD |
9054 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9055 | SWIG_fail; | |
d14a1e28 RD |
9056 | } |
9057 | { | |
9058 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9059 | result = (bool)(arg1)->GetStyle(arg2,*arg3); | |
9060 | ||
9061 | wxPyEndAllowThreads(__tstate); | |
9062 | if (PyErr_Occurred()) SWIG_fail; | |
9063 | } | |
4f89f6a3 RD |
9064 | { |
9065 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9066 | } | |
d14a1e28 RD |
9067 | return resultobj; |
9068 | fail: | |
9069 | return NULL; | |
9070 | } | |
9071 | ||
9072 | ||
9073 | static PyObject *_wrap_TextCtrl_SetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9074 | PyObject *resultobj; | |
9075 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9076 | wxTextAttr *arg2 = 0 ; | |
9077 | bool result; | |
9078 | PyObject * obj0 = 0 ; | |
9079 | PyObject * obj1 = 0 ; | |
9080 | char *kwnames[] = { | |
9081 | (char *) "self",(char *) "style", NULL | |
9082 | }; | |
9083 | ||
9084 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetDefaultStyle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9085 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9086 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9087 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTextAttr, | |
9088 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9089 | SWIG_fail; | |
d14a1e28 | 9090 | if (arg2 == NULL) { |
15afbcd0 RD |
9091 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9092 | SWIG_fail; | |
d14a1e28 RD |
9093 | } |
9094 | { | |
9095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9096 | result = (bool)(arg1)->SetDefaultStyle((wxTextAttr const &)*arg2); | |
9097 | ||
9098 | wxPyEndAllowThreads(__tstate); | |
9099 | if (PyErr_Occurred()) SWIG_fail; | |
9100 | } | |
4f89f6a3 RD |
9101 | { |
9102 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9103 | } | |
d14a1e28 RD |
9104 | return resultobj; |
9105 | fail: | |
9106 | return NULL; | |
9107 | } | |
9108 | ||
9109 | ||
9110 | static PyObject *_wrap_TextCtrl_GetDefaultStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9111 | PyObject *resultobj; | |
9112 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9113 | wxTextAttr *result; | |
9114 | PyObject * obj0 = 0 ; | |
9115 | char *kwnames[] = { | |
9116 | (char *) "self", NULL | |
9117 | }; | |
9118 | ||
9119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetDefaultStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9122 | { |
9123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9124 | { | |
9125 | wxTextAttr const &_result_ref = ((wxTextCtrl const *)arg1)->GetDefaultStyle(); | |
9126 | result = (wxTextAttr *) &_result_ref; | |
9127 | } | |
9128 | ||
9129 | wxPyEndAllowThreads(__tstate); | |
9130 | if (PyErr_Occurred()) SWIG_fail; | |
9131 | } | |
15afbcd0 | 9132 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextAttr, 0); |
d14a1e28 RD |
9133 | return resultobj; |
9134 | fail: | |
9135 | return NULL; | |
9136 | } | |
9137 | ||
9138 | ||
9139 | static PyObject *_wrap_TextCtrl_XYToPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9140 | PyObject *resultobj; | |
9141 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9142 | long arg2 ; | |
9143 | long arg3 ; | |
9144 | long result; | |
9145 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9146 | PyObject * obj1 = 0 ; |
9147 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9148 | char *kwnames[] = { |
9149 | (char *) "self",(char *) "x",(char *) "y", NULL | |
9150 | }; | |
9151 | ||
994141e6 | 9152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_XYToPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9155 | arg2 = (long) SWIG_AsLong(obj1); | |
9156 | if (PyErr_Occurred()) SWIG_fail; | |
9157 | arg3 = (long) SWIG_AsLong(obj2); | |
9158 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9159 | { |
9160 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9161 | result = (long)((wxTextCtrl const *)arg1)->XYToPosition(arg2,arg3); | |
9162 | ||
9163 | wxPyEndAllowThreads(__tstate); | |
9164 | if (PyErr_Occurred()) SWIG_fail; | |
9165 | } | |
15afbcd0 | 9166 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9167 | return resultobj; |
9168 | fail: | |
9169 | return NULL; | |
9170 | } | |
9171 | ||
9172 | ||
9173 | static PyObject *_wrap_TextCtrl_PositionToXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9174 | PyObject *resultobj; | |
9175 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9176 | long arg2 ; | |
9177 | long *arg3 = (long *) 0 ; | |
9178 | long *arg4 = (long *) 0 ; | |
9179 | long temp3 ; | |
9180 | long temp4 ; | |
9181 | PyObject * obj0 = 0 ; | |
994141e6 | 9182 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9183 | char *kwnames[] = { |
9184 | (char *) "self",(char *) "pos", NULL | |
9185 | }; | |
9186 | ||
9187 | arg3 = &temp3; | |
9188 | arg4 = &temp4; | |
994141e6 | 9189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_PositionToXY",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9192 | arg2 = (long) SWIG_AsLong(obj1); | |
9193 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9194 | { |
9195 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9196 | ((wxTextCtrl const *)arg1)->PositionToXY(arg2,arg3,arg4); | |
9197 | ||
9198 | wxPyEndAllowThreads(__tstate); | |
9199 | if (PyErr_Occurred()) SWIG_fail; | |
9200 | } | |
9201 | Py_INCREF(Py_None); resultobj = Py_None; | |
9202 | { | |
9203 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9204 | resultobj = t_output_helper(resultobj,o); | |
9205 | } | |
9206 | { | |
9207 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9208 | resultobj = t_output_helper(resultobj,o); | |
9209 | } | |
9210 | return resultobj; | |
9211 | fail: | |
9212 | return NULL; | |
9213 | } | |
9214 | ||
9215 | ||
9216 | static PyObject *_wrap_TextCtrl_ShowPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9217 | PyObject *resultobj; | |
9218 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9219 | long arg2 ; | |
9220 | PyObject * obj0 = 0 ; | |
994141e6 | 9221 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9222 | char *kwnames[] = { |
9223 | (char *) "self",(char *) "pos", NULL | |
9224 | }; | |
9225 | ||
994141e6 | 9226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_ShowPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9229 | arg2 = (long) SWIG_AsLong(obj1); | |
9230 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9231 | { |
9232 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9233 | (arg1)->ShowPosition(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 | ||
4d5c3d91 RD |
9245 | static PyObject *_wrap_TextCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { |
9246 | PyObject *resultobj; | |
9247 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9248 | wxPoint *arg2 = 0 ; | |
9249 | long *arg3 = (long *) 0 ; | |
9250 | long *arg4 = (long *) 0 ; | |
9251 | int result; | |
9252 | wxPoint temp2 ; | |
9253 | long temp3 ; | |
9254 | long temp4 ; | |
9255 | PyObject * obj0 = 0 ; | |
9256 | PyObject * obj1 = 0 ; | |
9257 | char *kwnames[] = { | |
9258 | (char *) "self",(char *) "pt", NULL | |
9259 | }; | |
9260 | ||
9261 | arg3 = &temp3; | |
9262 | arg4 = &temp4; | |
9263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4d5c3d91 RD |
9266 | { |
9267 | arg2 = &temp2; | |
9268 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9269 | } | |
9270 | { | |
9271 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9272 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3,arg4); | |
9273 | ||
9274 | wxPyEndAllowThreads(__tstate); | |
9275 | if (PyErr_Occurred()) SWIG_fail; | |
9276 | } | |
15afbcd0 | 9277 | resultobj = SWIG_FromInt((int)result); |
4d5c3d91 RD |
9278 | { |
9279 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9280 | resultobj = t_output_helper(resultobj,o); | |
9281 | } | |
9282 | { | |
9283 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
9284 | resultobj = t_output_helper(resultobj,o); | |
9285 | } | |
9286 | return resultobj; | |
9287 | fail: | |
9288 | return NULL; | |
9289 | } | |
9290 | ||
9291 | ||
4896ac9e RD |
9292 | static PyObject *_wrap_TextCtrl_HitTestPos(PyObject *self, PyObject *args, PyObject *kwargs) { |
9293 | PyObject *resultobj; | |
9294 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9295 | wxPoint *arg2 = 0 ; | |
9296 | long *arg3 = (long *) 0 ; | |
9297 | int result; | |
9298 | wxPoint temp2 ; | |
9299 | long temp3 ; | |
9300 | PyObject * obj0 = 0 ; | |
9301 | PyObject * obj1 = 0 ; | |
9302 | char *kwnames[] = { | |
9303 | (char *) "self",(char *) "pt", NULL | |
9304 | }; | |
9305 | ||
9306 | arg3 = &temp3; | |
9307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_HitTestPos",kwnames,&obj0,&obj1)) goto fail; | |
9308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, | |
9309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9310 | { | |
9311 | arg2 = &temp2; | |
9312 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
9313 | } | |
9314 | { | |
9315 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9316 | result = (int)((wxTextCtrl const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
9317 | ||
9318 | wxPyEndAllowThreads(__tstate); | |
9319 | if (PyErr_Occurred()) SWIG_fail; | |
9320 | } | |
9321 | resultobj = SWIG_FromInt((int)result); | |
9322 | { | |
9323 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
9324 | resultobj = t_output_helper(resultobj,o); | |
9325 | } | |
9326 | return resultobj; | |
9327 | fail: | |
9328 | return NULL; | |
9329 | } | |
9330 | ||
9331 | ||
d14a1e28 RD |
9332 | static PyObject *_wrap_TextCtrl_Copy(PyObject *self, PyObject *args, PyObject *kwargs) { |
9333 | PyObject *resultobj; | |
9334 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9335 | PyObject * obj0 = 0 ; | |
9336 | char *kwnames[] = { | |
9337 | (char *) "self", NULL | |
9338 | }; | |
9339 | ||
9340 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Copy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9341 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9342 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9343 | { |
9344 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9345 | (arg1)->Copy(); | |
9346 | ||
9347 | wxPyEndAllowThreads(__tstate); | |
9348 | if (PyErr_Occurred()) SWIG_fail; | |
9349 | } | |
9350 | Py_INCREF(Py_None); resultobj = Py_None; | |
9351 | return resultobj; | |
9352 | fail: | |
9353 | return NULL; | |
9354 | } | |
9355 | ||
9356 | ||
9357 | static PyObject *_wrap_TextCtrl_Cut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9358 | PyObject *resultobj; | |
9359 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9360 | PyObject * obj0 = 0 ; | |
9361 | char *kwnames[] = { | |
9362 | (char *) "self", NULL | |
9363 | }; | |
9364 | ||
9365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Cut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9368 | { |
9369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9370 | (arg1)->Cut(); | |
9371 | ||
9372 | wxPyEndAllowThreads(__tstate); | |
9373 | if (PyErr_Occurred()) SWIG_fail; | |
9374 | } | |
9375 | Py_INCREF(Py_None); resultobj = Py_None; | |
9376 | return resultobj; | |
9377 | fail: | |
9378 | return NULL; | |
9379 | } | |
9380 | ||
9381 | ||
9382 | static PyObject *_wrap_TextCtrl_Paste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9383 | PyObject *resultobj; | |
9384 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9385 | PyObject * obj0 = 0 ; | |
9386 | char *kwnames[] = { | |
9387 | (char *) "self", NULL | |
9388 | }; | |
9389 | ||
9390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Paste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9393 | { |
9394 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9395 | (arg1)->Paste(); | |
9396 | ||
9397 | wxPyEndAllowThreads(__tstate); | |
9398 | if (PyErr_Occurred()) SWIG_fail; | |
9399 | } | |
9400 | Py_INCREF(Py_None); resultobj = Py_None; | |
9401 | return resultobj; | |
9402 | fail: | |
9403 | return NULL; | |
9404 | } | |
9405 | ||
9406 | ||
9407 | static PyObject *_wrap_TextCtrl_CanCopy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9408 | PyObject *resultobj; | |
9409 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9410 | bool result; | |
9411 | PyObject * obj0 = 0 ; | |
9412 | char *kwnames[] = { | |
9413 | (char *) "self", NULL | |
9414 | }; | |
9415 | ||
9416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCopy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9419 | { |
9420 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9421 | result = (bool)((wxTextCtrl const *)arg1)->CanCopy(); | |
9422 | ||
9423 | wxPyEndAllowThreads(__tstate); | |
9424 | if (PyErr_Occurred()) SWIG_fail; | |
9425 | } | |
4f89f6a3 RD |
9426 | { |
9427 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9428 | } | |
d14a1e28 RD |
9429 | return resultobj; |
9430 | fail: | |
9431 | return NULL; | |
9432 | } | |
9433 | ||
9434 | ||
9435 | static PyObject *_wrap_TextCtrl_CanCut(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9436 | PyObject *resultobj; | |
9437 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9438 | bool result; | |
9439 | PyObject * obj0 = 0 ; | |
9440 | char *kwnames[] = { | |
9441 | (char *) "self", NULL | |
9442 | }; | |
9443 | ||
9444 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanCut",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9445 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9446 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9447 | { |
9448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9449 | result = (bool)((wxTextCtrl const *)arg1)->CanCut(); | |
9450 | ||
9451 | wxPyEndAllowThreads(__tstate); | |
9452 | if (PyErr_Occurred()) SWIG_fail; | |
9453 | } | |
4f89f6a3 RD |
9454 | { |
9455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9456 | } | |
d14a1e28 RD |
9457 | return resultobj; |
9458 | fail: | |
9459 | return NULL; | |
9460 | } | |
9461 | ||
9462 | ||
9463 | static PyObject *_wrap_TextCtrl_CanPaste(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9464 | PyObject *resultobj; | |
9465 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9466 | bool result; | |
9467 | PyObject * obj0 = 0 ; | |
9468 | char *kwnames[] = { | |
9469 | (char *) "self", NULL | |
9470 | }; | |
9471 | ||
9472 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanPaste",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9473 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9474 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9475 | { |
9476 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9477 | result = (bool)((wxTextCtrl const *)arg1)->CanPaste(); | |
9478 | ||
9479 | wxPyEndAllowThreads(__tstate); | |
9480 | if (PyErr_Occurred()) SWIG_fail; | |
9481 | } | |
4f89f6a3 RD |
9482 | { |
9483 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9484 | } | |
d14a1e28 RD |
9485 | return resultobj; |
9486 | fail: | |
9487 | return NULL; | |
9488 | } | |
9489 | ||
9490 | ||
9491 | static PyObject *_wrap_TextCtrl_Undo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9492 | PyObject *resultobj; | |
9493 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9494 | PyObject * obj0 = 0 ; | |
9495 | char *kwnames[] = { | |
9496 | (char *) "self", NULL | |
9497 | }; | |
9498 | ||
9499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Undo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9502 | { |
9503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9504 | (arg1)->Undo(); | |
9505 | ||
9506 | wxPyEndAllowThreads(__tstate); | |
9507 | if (PyErr_Occurred()) SWIG_fail; | |
9508 | } | |
9509 | Py_INCREF(Py_None); resultobj = Py_None; | |
9510 | return resultobj; | |
9511 | fail: | |
9512 | return NULL; | |
9513 | } | |
9514 | ||
9515 | ||
9516 | static PyObject *_wrap_TextCtrl_Redo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9517 | PyObject *resultobj; | |
9518 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9519 | PyObject * obj0 = 0 ; | |
9520 | char *kwnames[] = { | |
9521 | (char *) "self", NULL | |
9522 | }; | |
9523 | ||
9524 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_Redo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9525 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9526 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9527 | { |
9528 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9529 | (arg1)->Redo(); | |
9530 | ||
9531 | wxPyEndAllowThreads(__tstate); | |
9532 | if (PyErr_Occurred()) SWIG_fail; | |
9533 | } | |
9534 | Py_INCREF(Py_None); resultobj = Py_None; | |
9535 | return resultobj; | |
9536 | fail: | |
9537 | return NULL; | |
9538 | } | |
9539 | ||
9540 | ||
9541 | static PyObject *_wrap_TextCtrl_CanUndo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9542 | PyObject *resultobj; | |
9543 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9544 | bool result; | |
9545 | PyObject * obj0 = 0 ; | |
9546 | char *kwnames[] = { | |
9547 | (char *) "self", NULL | |
9548 | }; | |
9549 | ||
9550 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanUndo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9551 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9552 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9553 | { |
9554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9555 | result = (bool)((wxTextCtrl const *)arg1)->CanUndo(); | |
9556 | ||
9557 | wxPyEndAllowThreads(__tstate); | |
9558 | if (PyErr_Occurred()) SWIG_fail; | |
9559 | } | |
4f89f6a3 RD |
9560 | { |
9561 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9562 | } | |
d14a1e28 RD |
9563 | return resultobj; |
9564 | fail: | |
9565 | return NULL; | |
9566 | } | |
9567 | ||
9568 | ||
9569 | static PyObject *_wrap_TextCtrl_CanRedo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9570 | PyObject *resultobj; | |
9571 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9572 | bool result; | |
9573 | PyObject * obj0 = 0 ; | |
9574 | char *kwnames[] = { | |
9575 | (char *) "self", NULL | |
9576 | }; | |
9577 | ||
9578 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_CanRedo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9579 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9580 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9581 | { |
9582 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9583 | result = (bool)((wxTextCtrl const *)arg1)->CanRedo(); | |
9584 | ||
9585 | wxPyEndAllowThreads(__tstate); | |
9586 | if (PyErr_Occurred()) SWIG_fail; | |
9587 | } | |
4f89f6a3 RD |
9588 | { |
9589 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
9590 | } | |
d14a1e28 RD |
9591 | return resultobj; |
9592 | fail: | |
9593 | return NULL; | |
9594 | } | |
9595 | ||
9596 | ||
9597 | static PyObject *_wrap_TextCtrl_SetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9598 | PyObject *resultobj; | |
9599 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9600 | long arg2 ; | |
9601 | PyObject * obj0 = 0 ; | |
994141e6 | 9602 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
9603 | char *kwnames[] = { |
9604 | (char *) "self",(char *) "pos", NULL | |
9605 | }; | |
9606 | ||
994141e6 | 9607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetInsertionPoint",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
9608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9610 | arg2 = (long) SWIG_AsLong(obj1); | |
9611 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9612 | { |
9613 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9614 | (arg1)->SetInsertionPoint(arg2); | |
9615 | ||
9616 | wxPyEndAllowThreads(__tstate); | |
9617 | if (PyErr_Occurred()) SWIG_fail; | |
9618 | } | |
9619 | Py_INCREF(Py_None); resultobj = Py_None; | |
9620 | return resultobj; | |
9621 | fail: | |
9622 | return NULL; | |
9623 | } | |
9624 | ||
9625 | ||
9626 | static PyObject *_wrap_TextCtrl_SetInsertionPointEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9627 | PyObject *resultobj; | |
9628 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9629 | PyObject * obj0 = 0 ; | |
9630 | char *kwnames[] = { | |
9631 | (char *) "self", NULL | |
9632 | }; | |
9633 | ||
9634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SetInsertionPointEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9637 | { |
9638 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9639 | (arg1)->SetInsertionPointEnd(); | |
9640 | ||
9641 | wxPyEndAllowThreads(__tstate); | |
9642 | if (PyErr_Occurred()) SWIG_fail; | |
9643 | } | |
9644 | Py_INCREF(Py_None); resultobj = Py_None; | |
9645 | return resultobj; | |
9646 | fail: | |
9647 | return NULL; | |
9648 | } | |
9649 | ||
9650 | ||
9651 | static PyObject *_wrap_TextCtrl_GetInsertionPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9652 | PyObject *resultobj; | |
9653 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9654 | long result; | |
9655 | PyObject * obj0 = 0 ; | |
9656 | char *kwnames[] = { | |
9657 | (char *) "self", NULL | |
9658 | }; | |
9659 | ||
9660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetInsertionPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9663 | { |
9664 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9665 | result = (long)((wxTextCtrl const *)arg1)->GetInsertionPoint(); | |
9666 | ||
9667 | wxPyEndAllowThreads(__tstate); | |
9668 | if (PyErr_Occurred()) SWIG_fail; | |
9669 | } | |
15afbcd0 | 9670 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9671 | return resultobj; |
9672 | fail: | |
9673 | return NULL; | |
9674 | } | |
9675 | ||
9676 | ||
9677 | static PyObject *_wrap_TextCtrl_GetLastPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9678 | PyObject *resultobj; | |
9679 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9680 | long result; | |
9681 | PyObject * obj0 = 0 ; | |
9682 | char *kwnames[] = { | |
9683 | (char *) "self", NULL | |
9684 | }; | |
9685 | ||
9686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_GetLastPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9689 | { |
9690 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9691 | result = (long)((wxTextCtrl const *)arg1)->GetLastPosition(); | |
9692 | ||
9693 | wxPyEndAllowThreads(__tstate); | |
9694 | if (PyErr_Occurred()) SWIG_fail; | |
9695 | } | |
15afbcd0 | 9696 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
9697 | return resultobj; |
9698 | fail: | |
9699 | return NULL; | |
9700 | } | |
9701 | ||
9702 | ||
9703 | static PyObject *_wrap_TextCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9704 | PyObject *resultobj; | |
9705 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9706 | long arg2 ; | |
9707 | long arg3 ; | |
9708 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9709 | PyObject * obj1 = 0 ; |
9710 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9711 | char *kwnames[] = { |
9712 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9713 | }; | |
9714 | ||
994141e6 | 9715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9718 | arg2 = (long) SWIG_AsLong(obj1); | |
9719 | if (PyErr_Occurred()) SWIG_fail; | |
9720 | arg3 = (long) SWIG_AsLong(obj2); | |
9721 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9722 | { |
9723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9724 | (arg1)->SetSelection(arg2,arg3); | |
9725 | ||
9726 | wxPyEndAllowThreads(__tstate); | |
9727 | if (PyErr_Occurred()) SWIG_fail; | |
9728 | } | |
9729 | Py_INCREF(Py_None); resultobj = Py_None; | |
9730 | return resultobj; | |
9731 | fail: | |
9732 | return NULL; | |
9733 | } | |
9734 | ||
9735 | ||
9736 | static PyObject *_wrap_TextCtrl_SelectAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9737 | PyObject *resultobj; | |
9738 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9739 | PyObject * obj0 = 0 ; | |
9740 | char *kwnames[] = { | |
9741 | (char *) "self", NULL | |
9742 | }; | |
9743 | ||
9744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextCtrl_SelectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9747 | { |
9748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9749 | (arg1)->SelectAll(); | |
9750 | ||
9751 | wxPyEndAllowThreads(__tstate); | |
9752 | if (PyErr_Occurred()) SWIG_fail; | |
9753 | } | |
9754 | Py_INCREF(Py_None); resultobj = Py_None; | |
9755 | return resultobj; | |
9756 | fail: | |
9757 | return NULL; | |
9758 | } | |
9759 | ||
9760 | ||
9761 | static PyObject *_wrap_TextCtrl_SetEditable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9762 | PyObject *resultobj; | |
9763 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9764 | bool arg2 ; | |
9765 | PyObject * obj0 = 0 ; | |
9766 | PyObject * obj1 = 0 ; | |
9767 | char *kwnames[] = { | |
9768 | (char *) "self",(char *) "editable", NULL | |
9769 | }; | |
9770 | ||
9771 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_SetEditable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9772 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9773 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9774 | arg2 = (bool) SWIG_AsBool(obj1); | |
9775 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9776 | { |
9777 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9778 | (arg1)->SetEditable(arg2); | |
9779 | ||
9780 | wxPyEndAllowThreads(__tstate); | |
9781 | if (PyErr_Occurred()) SWIG_fail; | |
9782 | } | |
9783 | Py_INCREF(Py_None); resultobj = Py_None; | |
9784 | return resultobj; | |
9785 | fail: | |
9786 | return NULL; | |
9787 | } | |
9788 | ||
9789 | ||
9790 | static PyObject *_wrap_TextCtrl_write(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9791 | PyObject *resultobj; | |
9792 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9793 | wxString *arg2 = 0 ; | |
e811c8ce | 9794 | bool temp2 = False ; |
d14a1e28 RD |
9795 | PyObject * obj0 = 0 ; |
9796 | PyObject * obj1 = 0 ; | |
9797 | char *kwnames[] = { | |
9798 | (char *) "self",(char *) "text", NULL | |
9799 | }; | |
9800 | ||
9801 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TextCtrl_write",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
9802 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9803 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9804 | { |
9805 | arg2 = wxString_in_helper(obj1); | |
9806 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 9807 | temp2 = True; |
d14a1e28 RD |
9808 | } |
9809 | { | |
9810 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9811 | wxTextCtrl_write(arg1,(wxString const &)*arg2); | |
9812 | ||
9813 | wxPyEndAllowThreads(__tstate); | |
9814 | if (PyErr_Occurred()) SWIG_fail; | |
9815 | } | |
9816 | Py_INCREF(Py_None); resultobj = Py_None; | |
9817 | { | |
9818 | if (temp2) | |
9819 | delete arg2; | |
9820 | } | |
9821 | return resultobj; | |
9822 | fail: | |
9823 | { | |
9824 | if (temp2) | |
9825 | delete arg2; | |
9826 | } | |
9827 | return NULL; | |
9828 | } | |
9829 | ||
9830 | ||
9831 | static PyObject *_wrap_TextCtrl_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9832 | PyObject *resultobj; | |
9833 | wxTextCtrl *arg1 = (wxTextCtrl *) 0 ; | |
9834 | long arg2 ; | |
9835 | long arg3 ; | |
9836 | wxString result; | |
9837 | PyObject * obj0 = 0 ; | |
994141e6 RD |
9838 | PyObject * obj1 = 0 ; |
9839 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
9840 | char *kwnames[] = { |
9841 | (char *) "self",(char *) "from",(char *) "to", NULL | |
9842 | }; | |
9843 | ||
994141e6 | 9844 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TextCtrl_GetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
9845 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextCtrl, |
9846 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
9847 | arg2 = (long) SWIG_AsLong(obj1); | |
9848 | if (PyErr_Occurred()) SWIG_fail; | |
9849 | arg3 = (long) SWIG_AsLong(obj2); | |
9850 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9851 | { |
9852 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9853 | result = wxTextCtrl_GetString(arg1,arg2,arg3); | |
9854 | ||
9855 | wxPyEndAllowThreads(__tstate); | |
9856 | if (PyErr_Occurred()) SWIG_fail; | |
9857 | } | |
9858 | { | |
9859 | #if wxUSE_UNICODE | |
9860 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
9861 | #else | |
9862 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
9863 | #endif | |
9864 | } | |
9865 | return resultobj; | |
9866 | fail: | |
9867 | return NULL; | |
9868 | } | |
9869 | ||
9870 | ||
22bfe96c RD |
9871 | static PyObject *_wrap_TextCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
9872 | PyObject *resultobj; | |
9873 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
9874 | wxVisualAttributes result; | |
9875 | PyObject * obj0 = 0 ; | |
9876 | char *kwnames[] = { | |
9877 | (char *) "variant", NULL | |
9878 | }; | |
9879 | ||
9880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TextCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
9881 | if (obj0) { | |
9882 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
9883 | if (PyErr_Occurred()) SWIG_fail; | |
9884 | } | |
9885 | { | |
110da5b0 | 9886 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
9887 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
9888 | result = wxTextCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
9889 | ||
9890 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 9891 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
9892 | } |
9893 | { | |
9894 | wxVisualAttributes * resultptr; | |
9895 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
9896 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
9897 | } | |
9898 | return resultobj; | |
9899 | fail: | |
9900 | return NULL; | |
9901 | } | |
9902 | ||
9903 | ||
d14a1e28 RD |
9904 | static PyObject * TextCtrl_swigregister(PyObject *self, PyObject *args) { |
9905 | PyObject *obj; | |
9906 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
9907 | SWIG_TypeClientData(SWIGTYPE_p_wxTextCtrl, obj); | |
9908 | Py_INCREF(obj); | |
9909 | return Py_BuildValue((char *)""); | |
9910 | } | |
9911 | static PyObject *_wrap_new_TextUrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9912 | PyObject *resultobj; | |
9913 | int arg1 ; | |
9914 | wxMouseEvent *arg2 = 0 ; | |
9915 | long arg3 ; | |
9916 | long arg4 ; | |
9917 | wxTextUrlEvent *result; | |
994141e6 | 9918 | PyObject * obj0 = 0 ; |
d14a1e28 | 9919 | PyObject * obj1 = 0 ; |
994141e6 RD |
9920 | PyObject * obj2 = 0 ; |
9921 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
9922 | char *kwnames[] = { |
9923 | (char *) "winid",(char *) "evtMouse",(char *) "start",(char *) "end", NULL | |
9924 | }; | |
9925 | ||
994141e6 | 9926 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:new_TextUrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
9927 | arg1 = (int) SWIG_AsInt(obj0); |
9928 | if (PyErr_Occurred()) SWIG_fail; | |
9929 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxMouseEvent, | |
9930 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
9931 | SWIG_fail; | |
d14a1e28 | 9932 | if (arg2 == NULL) { |
15afbcd0 RD |
9933 | PyErr_SetString(PyExc_TypeError,"null reference"); |
9934 | SWIG_fail; | |
994141e6 | 9935 | } |
15afbcd0 RD |
9936 | arg3 = (long) SWIG_AsLong(obj2); |
9937 | if (PyErr_Occurred()) SWIG_fail; | |
9938 | arg4 = (long) SWIG_AsLong(obj3); | |
9939 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
9940 | { |
9941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9942 | result = (wxTextUrlEvent *)new wxTextUrlEvent(arg1,(wxMouseEvent const &)*arg2,arg3,arg4); | |
9943 | ||
9944 | wxPyEndAllowThreads(__tstate); | |
9945 | if (PyErr_Occurred()) SWIG_fail; | |
9946 | } | |
15afbcd0 | 9947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTextUrlEvent, 1); |
d14a1e28 RD |
9948 | return resultobj; |
9949 | fail: | |
9950 | return NULL; | |
9951 | } | |
9952 | ||
9953 | ||
9954 | static PyObject *_wrap_TextUrlEvent_GetMouseEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9955 | PyObject *resultobj; | |
9956 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9957 | wxMouseEvent *result; | |
9958 | PyObject * obj0 = 0 ; | |
9959 | char *kwnames[] = { | |
9960 | (char *) "self", NULL | |
9961 | }; | |
9962 | ||
9963 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetMouseEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9964 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9965 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9966 | { |
9967 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9968 | { | |
9969 | wxMouseEvent const &_result_ref = (arg1)->GetMouseEvent(); | |
9970 | result = (wxMouseEvent *) &_result_ref; | |
9971 | } | |
9972 | ||
9973 | wxPyEndAllowThreads(__tstate); | |
9974 | if (PyErr_Occurred()) SWIG_fail; | |
9975 | } | |
15afbcd0 | 9976 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxMouseEvent, 0); |
d14a1e28 RD |
9977 | return resultobj; |
9978 | fail: | |
9979 | return NULL; | |
9980 | } | |
9981 | ||
9982 | ||
9983 | static PyObject *_wrap_TextUrlEvent_GetURLStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
9984 | PyObject *resultobj; | |
9985 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
9986 | long result; | |
9987 | PyObject * obj0 = 0 ; | |
9988 | char *kwnames[] = { | |
9989 | (char *) "self", NULL | |
9990 | }; | |
9991 | ||
9992 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
9993 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
9994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
9995 | { |
9996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
9997 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLStart(); | |
9998 | ||
9999 | wxPyEndAllowThreads(__tstate); | |
10000 | if (PyErr_Occurred()) SWIG_fail; | |
10001 | } | |
15afbcd0 | 10002 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
10003 | return resultobj; |
10004 | fail: | |
10005 | return NULL; | |
10006 | } | |
10007 | ||
10008 | ||
10009 | static PyObject *_wrap_TextUrlEvent_GetURLEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10010 | PyObject *resultobj; | |
10011 | wxTextUrlEvent *arg1 = (wxTextUrlEvent *) 0 ; | |
10012 | long result; | |
10013 | PyObject * obj0 = 0 ; | |
10014 | char *kwnames[] = { | |
10015 | (char *) "self", NULL | |
10016 | }; | |
10017 | ||
10018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TextUrlEvent_GetURLEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTextUrlEvent, |
10020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10021 | { |
10022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10023 | result = (long)((wxTextUrlEvent const *)arg1)->GetURLEnd(); | |
10024 | ||
10025 | wxPyEndAllowThreads(__tstate); | |
10026 | if (PyErr_Occurred()) SWIG_fail; | |
10027 | } | |
15afbcd0 | 10028 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
10029 | return resultobj; |
10030 | fail: | |
10031 | return NULL; | |
10032 | } | |
10033 | ||
10034 | ||
10035 | static PyObject * TextUrlEvent_swigregister(PyObject *self, PyObject *args) { | |
10036 | PyObject *obj; | |
10037 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10038 | SWIG_TypeClientData(SWIGTYPE_p_wxTextUrlEvent, obj); | |
10039 | Py_INCREF(obj); | |
10040 | return Py_BuildValue((char *)""); | |
10041 | } | |
b2dc1044 RD |
10042 | static int _wrap_ScrollBarNameStr_set(PyObject *_val) { |
10043 | PyErr_SetString(PyExc_TypeError,"Variable ScrollBarNameStr is read-only."); | |
10044 | return 1; | |
10045 | } | |
10046 | ||
10047 | ||
10048 | static PyObject *_wrap_ScrollBarNameStr_get() { | |
10049 | PyObject *pyobj; | |
10050 | ||
10051 | { | |
10052 | #if wxUSE_UNICODE | |
10053 | pyobj = PyUnicode_FromWideChar((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10054 | #else | |
10055 | pyobj = PyString_FromStringAndSize((&wxPyScrollBarNameStr)->c_str(), (&wxPyScrollBarNameStr)->Len()); | |
10056 | #endif | |
10057 | } | |
10058 | return pyobj; | |
10059 | } | |
10060 | ||
10061 | ||
d14a1e28 RD |
10062 | static PyObject *_wrap_new_ScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { |
10063 | PyObject *resultobj; | |
10064 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10065 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10066 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10067 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10068 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10069 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10070 | long arg5 = (long) wxSB_HORIZONTAL ; | |
10071 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
10072 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
10073 | wxString const &arg7_defvalue = wxPyScrollBarNameStr ; | |
10074 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10075 | wxScrollBar *result; | |
10076 | wxPoint temp3 ; | |
10077 | wxSize temp4 ; | |
e811c8ce | 10078 | bool temp7 = False ; |
d14a1e28 | 10079 | PyObject * obj0 = 0 ; |
994141e6 | 10080 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10081 | PyObject * obj2 = 0 ; |
10082 | PyObject * obj3 = 0 ; | |
994141e6 | 10083 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10084 | PyObject * obj5 = 0 ; |
10085 | PyObject * obj6 = 0 ; | |
10086 | char *kwnames[] = { | |
10087 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10088 | }; | |
10089 | ||
994141e6 | 10090 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ScrollBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10091 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10092 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10093 | if (obj1) { |
15afbcd0 RD |
10094 | arg2 = (int) SWIG_AsInt(obj1); |
10095 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10096 | } |
d14a1e28 RD |
10097 | if (obj2) { |
10098 | { | |
10099 | arg3 = &temp3; | |
10100 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10101 | } | |
10102 | } | |
10103 | if (obj3) { | |
10104 | { | |
10105 | arg4 = &temp4; | |
10106 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10107 | } | |
10108 | } | |
994141e6 | 10109 | if (obj4) { |
15afbcd0 RD |
10110 | arg5 = (long) SWIG_AsLong(obj4); |
10111 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10112 | } |
d14a1e28 | 10113 | if (obj5) { |
15afbcd0 RD |
10114 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
10115 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10116 | SWIG_fail; | |
d14a1e28 | 10117 | if (arg6 == NULL) { |
15afbcd0 RD |
10118 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10119 | SWIG_fail; | |
d14a1e28 RD |
10120 | } |
10121 | } | |
10122 | if (obj6) { | |
10123 | { | |
10124 | arg7 = wxString_in_helper(obj6); | |
10125 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10126 | temp7 = True; |
d14a1e28 RD |
10127 | } |
10128 | } | |
10129 | { | |
e3b71cb8 | 10130 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10131 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10132 | result = (wxScrollBar *)new wxScrollBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
10133 | ||
10134 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10135 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10136 | } |
15afbcd0 | 10137 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10138 | { |
10139 | if (temp7) | |
10140 | delete arg7; | |
10141 | } | |
10142 | return resultobj; | |
10143 | fail: | |
10144 | { | |
10145 | if (temp7) | |
10146 | delete arg7; | |
10147 | } | |
10148 | return NULL; | |
10149 | } | |
10150 | ||
10151 | ||
10152 | static PyObject *_wrap_new_PreScrollBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10153 | PyObject *resultobj; | |
10154 | wxScrollBar *result; | |
10155 | char *kwnames[] = { | |
10156 | NULL | |
10157 | }; | |
10158 | ||
10159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreScrollBar",kwnames)) goto fail; | |
10160 | { | |
e3b71cb8 | 10161 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10163 | result = (wxScrollBar *)new wxScrollBar(); | |
10164 | ||
10165 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10166 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10167 | } |
15afbcd0 | 10168 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxScrollBar, 1); |
d14a1e28 RD |
10169 | return resultobj; |
10170 | fail: | |
10171 | return NULL; | |
10172 | } | |
10173 | ||
10174 | ||
10175 | static PyObject *_wrap_ScrollBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10176 | PyObject *resultobj; | |
10177 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10178 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10179 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10180 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10181 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10182 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10183 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10184 | long arg6 = (long) wxSB_HORIZONTAL ; | |
10185 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
10186 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
10187 | wxString const &arg8_defvalue = wxPyScrollBarNameStr ; | |
10188 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
10189 | bool result; | |
10190 | wxPoint temp4 ; | |
10191 | wxSize temp5 ; | |
e811c8ce | 10192 | bool temp8 = False ; |
d14a1e28 RD |
10193 | PyObject * obj0 = 0 ; |
10194 | PyObject * obj1 = 0 ; | |
994141e6 | 10195 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10196 | PyObject * obj3 = 0 ; |
10197 | PyObject * obj4 = 0 ; | |
994141e6 | 10198 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10199 | PyObject * obj6 = 0 ; |
10200 | PyObject * obj7 = 0 ; | |
10201 | char *kwnames[] = { | |
10202 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
10203 | }; | |
10204 | ||
994141e6 | 10205 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ScrollBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
10206 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10207 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10208 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10209 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10210 | if (obj2) { |
15afbcd0 RD |
10211 | arg3 = (int) SWIG_AsInt(obj2); |
10212 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10213 | } |
d14a1e28 RD |
10214 | if (obj3) { |
10215 | { | |
10216 | arg4 = &temp4; | |
10217 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10218 | } | |
10219 | } | |
10220 | if (obj4) { | |
10221 | { | |
10222 | arg5 = &temp5; | |
10223 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10224 | } | |
10225 | } | |
994141e6 | 10226 | if (obj5) { |
15afbcd0 RD |
10227 | arg6 = (long) SWIG_AsLong(obj5); |
10228 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10229 | } |
d14a1e28 | 10230 | if (obj6) { |
15afbcd0 RD |
10231 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
10232 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
10233 | SWIG_fail; | |
d14a1e28 | 10234 | if (arg7 == NULL) { |
15afbcd0 RD |
10235 | PyErr_SetString(PyExc_TypeError,"null reference"); |
10236 | SWIG_fail; | |
d14a1e28 RD |
10237 | } |
10238 | } | |
10239 | if (obj7) { | |
10240 | { | |
10241 | arg8 = wxString_in_helper(obj7); | |
10242 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 10243 | temp8 = True; |
d14a1e28 RD |
10244 | } |
10245 | } | |
10246 | { | |
10247 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10248 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
10249 | ||
10250 | wxPyEndAllowThreads(__tstate); | |
10251 | if (PyErr_Occurred()) SWIG_fail; | |
10252 | } | |
4f89f6a3 RD |
10253 | { |
10254 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10255 | } | |
d14a1e28 RD |
10256 | { |
10257 | if (temp8) | |
10258 | delete arg8; | |
10259 | } | |
10260 | return resultobj; | |
10261 | fail: | |
10262 | { | |
10263 | if (temp8) | |
10264 | delete arg8; | |
10265 | } | |
10266 | return NULL; | |
10267 | } | |
10268 | ||
10269 | ||
10270 | static PyObject *_wrap_ScrollBar_GetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10271 | PyObject *resultobj; | |
10272 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10273 | int result; | |
10274 | PyObject * obj0 = 0 ; | |
10275 | char *kwnames[] = { | |
10276 | (char *) "self", NULL | |
10277 | }; | |
10278 | ||
10279 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10280 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10281 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10282 | { |
10283 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10284 | result = (int)((wxScrollBar const *)arg1)->GetThumbPosition(); | |
10285 | ||
10286 | wxPyEndAllowThreads(__tstate); | |
10287 | if (PyErr_Occurred()) SWIG_fail; | |
10288 | } | |
15afbcd0 | 10289 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10290 | return resultobj; |
10291 | fail: | |
10292 | return NULL; | |
10293 | } | |
10294 | ||
10295 | ||
10296 | static PyObject *_wrap_ScrollBar_GetThumbSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10297 | PyObject *resultobj; | |
10298 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10299 | int result; | |
10300 | PyObject * obj0 = 0 ; | |
10301 | char *kwnames[] = { | |
10302 | (char *) "self", NULL | |
10303 | }; | |
10304 | ||
10305 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetThumbSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10306 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10307 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10308 | { |
10309 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10310 | result = (int)((wxScrollBar const *)arg1)->GetThumbSize(); | |
10311 | ||
10312 | wxPyEndAllowThreads(__tstate); | |
10313 | if (PyErr_Occurred()) SWIG_fail; | |
10314 | } | |
15afbcd0 | 10315 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10316 | return resultobj; |
10317 | fail: | |
10318 | return NULL; | |
10319 | } | |
10320 | ||
10321 | ||
10322 | static PyObject *_wrap_ScrollBar_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10323 | PyObject *resultobj; | |
10324 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10325 | int result; | |
10326 | PyObject * obj0 = 0 ; | |
10327 | char *kwnames[] = { | |
10328 | (char *) "self", NULL | |
10329 | }; | |
10330 | ||
10331 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10332 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10333 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10334 | { |
10335 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10336 | result = (int)((wxScrollBar const *)arg1)->GetPageSize(); | |
10337 | ||
10338 | wxPyEndAllowThreads(__tstate); | |
10339 | if (PyErr_Occurred()) SWIG_fail; | |
10340 | } | |
15afbcd0 | 10341 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10342 | return resultobj; |
10343 | fail: | |
10344 | return NULL; | |
10345 | } | |
10346 | ||
10347 | ||
10348 | static PyObject *_wrap_ScrollBar_GetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10349 | PyObject *resultobj; | |
10350 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10351 | int result; | |
10352 | PyObject * obj0 = 0 ; | |
10353 | char *kwnames[] = { | |
10354 | (char *) "self", NULL | |
10355 | }; | |
10356 | ||
10357 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_GetRange",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10358 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10359 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10360 | { |
10361 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10362 | result = (int)((wxScrollBar const *)arg1)->GetRange(); | |
10363 | ||
10364 | wxPyEndAllowThreads(__tstate); | |
10365 | if (PyErr_Occurred()) SWIG_fail; | |
10366 | } | |
15afbcd0 | 10367 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10368 | return resultobj; |
10369 | fail: | |
10370 | return NULL; | |
10371 | } | |
10372 | ||
10373 | ||
10374 | static PyObject *_wrap_ScrollBar_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10375 | PyObject *resultobj; | |
10376 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10377 | bool result; | |
10378 | PyObject * obj0 = 0 ; | |
10379 | char *kwnames[] = { | |
10380 | (char *) "self", NULL | |
10381 | }; | |
10382 | ||
10383 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ScrollBar_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10384 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10385 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10386 | { |
10387 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10388 | result = (bool)((wxScrollBar const *)arg1)->IsVertical(); | |
10389 | ||
10390 | wxPyEndAllowThreads(__tstate); | |
10391 | if (PyErr_Occurred()) SWIG_fail; | |
10392 | } | |
4f89f6a3 RD |
10393 | { |
10394 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10395 | } | |
d14a1e28 RD |
10396 | return resultobj; |
10397 | fail: | |
10398 | return NULL; | |
10399 | } | |
10400 | ||
10401 | ||
10402 | static PyObject *_wrap_ScrollBar_SetThumbPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10403 | PyObject *resultobj; | |
10404 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10405 | int arg2 ; | |
10406 | PyObject * obj0 = 0 ; | |
994141e6 | 10407 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10408 | char *kwnames[] = { |
10409 | (char *) "self",(char *) "viewStart", NULL | |
10410 | }; | |
10411 | ||
994141e6 | 10412 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ScrollBar_SetThumbPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10413 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10414 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10415 | arg2 = (int) SWIG_AsInt(obj1); | |
10416 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10417 | { |
10418 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10419 | (arg1)->SetThumbPosition(arg2); | |
10420 | ||
10421 | wxPyEndAllowThreads(__tstate); | |
10422 | if (PyErr_Occurred()) SWIG_fail; | |
10423 | } | |
10424 | Py_INCREF(Py_None); resultobj = Py_None; | |
10425 | return resultobj; | |
10426 | fail: | |
10427 | return NULL; | |
10428 | } | |
10429 | ||
10430 | ||
10431 | static PyObject *_wrap_ScrollBar_SetScrollbar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10432 | PyObject *resultobj; | |
10433 | wxScrollBar *arg1 = (wxScrollBar *) 0 ; | |
10434 | int arg2 ; | |
10435 | int arg3 ; | |
10436 | int arg4 ; | |
10437 | int arg5 ; | |
e811c8ce | 10438 | bool arg6 = (bool) True ; |
d14a1e28 | 10439 | PyObject * obj0 = 0 ; |
994141e6 RD |
10440 | PyObject * obj1 = 0 ; |
10441 | PyObject * obj2 = 0 ; | |
10442 | PyObject * obj3 = 0 ; | |
10443 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
10444 | PyObject * obj5 = 0 ; |
10445 | char *kwnames[] = { | |
10446 | (char *) "self",(char *) "position",(char *) "thumbSize",(char *) "range",(char *) "pageSize",(char *) "refresh", NULL | |
10447 | }; | |
10448 | ||
994141e6 | 10449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:ScrollBar_SetScrollbar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxScrollBar, |
10451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10452 | arg2 = (int) SWIG_AsInt(obj1); | |
10453 | if (PyErr_Occurred()) SWIG_fail; | |
10454 | arg3 = (int) SWIG_AsInt(obj2); | |
10455 | if (PyErr_Occurred()) SWIG_fail; | |
10456 | arg4 = (int) SWIG_AsInt(obj3); | |
10457 | if (PyErr_Occurred()) SWIG_fail; | |
10458 | arg5 = (int) SWIG_AsInt(obj4); | |
10459 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 10460 | if (obj5) { |
15afbcd0 RD |
10461 | arg6 = (bool) SWIG_AsBool(obj5); |
10462 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10463 | } |
10464 | { | |
10465 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10466 | (arg1)->SetScrollbar(arg2,arg3,arg4,arg5,arg6); | |
10467 | ||
10468 | wxPyEndAllowThreads(__tstate); | |
10469 | if (PyErr_Occurred()) SWIG_fail; | |
10470 | } | |
10471 | Py_INCREF(Py_None); resultobj = Py_None; | |
10472 | return resultobj; | |
10473 | fail: | |
10474 | return NULL; | |
10475 | } | |
10476 | ||
10477 | ||
22bfe96c RD |
10478 | static PyObject *_wrap_ScrollBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
10479 | PyObject *resultobj; | |
10480 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
10481 | wxVisualAttributes result; | |
10482 | PyObject * obj0 = 0 ; | |
10483 | char *kwnames[] = { | |
10484 | (char *) "variant", NULL | |
10485 | }; | |
10486 | ||
10487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ScrollBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
10488 | if (obj0) { | |
10489 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10490 | if (PyErr_Occurred()) SWIG_fail; | |
10491 | } | |
10492 | { | |
110da5b0 | 10493 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
10494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10495 | result = wxScrollBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
10496 | ||
10497 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10498 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
10499 | } |
10500 | { | |
10501 | wxVisualAttributes * resultptr; | |
10502 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10503 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
10504 | } | |
10505 | return resultobj; | |
10506 | fail: | |
10507 | return NULL; | |
10508 | } | |
10509 | ||
10510 | ||
d14a1e28 RD |
10511 | static PyObject * ScrollBar_swigregister(PyObject *self, PyObject *args) { |
10512 | PyObject *obj; | |
10513 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
10514 | SWIG_TypeClientData(SWIGTYPE_p_wxScrollBar, obj); | |
10515 | Py_INCREF(obj); | |
10516 | return Py_BuildValue((char *)""); | |
10517 | } | |
b2dc1044 RD |
10518 | static int _wrap_SPIN_BUTTON_NAME_set(PyObject *_val) { |
10519 | PyErr_SetString(PyExc_TypeError,"Variable SPIN_BUTTON_NAME is read-only."); | |
10520 | return 1; | |
10521 | } | |
10522 | ||
10523 | ||
10524 | static PyObject *_wrap_SPIN_BUTTON_NAME_get() { | |
10525 | PyObject *pyobj; | |
10526 | ||
10527 | { | |
10528 | #if wxUSE_UNICODE | |
10529 | pyobj = PyUnicode_FromWideChar((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10530 | #else | |
10531 | pyobj = PyString_FromStringAndSize((&wxPySPIN_BUTTON_NAME)->c_str(), (&wxPySPIN_BUTTON_NAME)->Len()); | |
10532 | #endif | |
10533 | } | |
10534 | return pyobj; | |
10535 | } | |
10536 | ||
10537 | ||
10538 | static int _wrap_SpinCtrlNameStr_set(PyObject *_val) { | |
10539 | PyErr_SetString(PyExc_TypeError,"Variable SpinCtrlNameStr is read-only."); | |
10540 | return 1; | |
10541 | } | |
10542 | ||
10543 | ||
10544 | static PyObject *_wrap_SpinCtrlNameStr_get() { | |
10545 | PyObject *pyobj; | |
10546 | ||
10547 | { | |
10548 | #if wxUSE_UNICODE | |
10549 | pyobj = PyUnicode_FromWideChar((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10550 | #else | |
10551 | pyobj = PyString_FromStringAndSize((&wxPySpinCtrlNameStr)->c_str(), (&wxPySpinCtrlNameStr)->Len()); | |
10552 | #endif | |
10553 | } | |
10554 | return pyobj; | |
10555 | } | |
10556 | ||
10557 | ||
d14a1e28 RD |
10558 | static PyObject *_wrap_new_SpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
10559 | PyObject *resultobj; | |
10560 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 10561 | int arg2 = (int) -1 ; |
d14a1e28 RD |
10562 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
10563 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
10564 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
10565 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
10566 | long arg5 = (long) wxSP_HORIZONTAL ; | |
10567 | wxString const &arg6_defvalue = wxPySPIN_BUTTON_NAME ; | |
10568 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
10569 | wxSpinButton *result; | |
10570 | wxPoint temp3 ; | |
10571 | wxSize temp4 ; | |
e811c8ce | 10572 | bool temp6 = False ; |
d14a1e28 | 10573 | PyObject * obj0 = 0 ; |
994141e6 | 10574 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10575 | PyObject * obj2 = 0 ; |
10576 | PyObject * obj3 = 0 ; | |
994141e6 | 10577 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
10578 | PyObject * obj5 = 0 ; |
10579 | char *kwnames[] = { | |
10580 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10581 | }; | |
10582 | ||
994141e6 | 10583 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_SpinButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
10584 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
10585 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10586 | if (obj1) { |
15afbcd0 RD |
10587 | arg2 = (int) SWIG_AsInt(obj1); |
10588 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10589 | } |
d14a1e28 RD |
10590 | if (obj2) { |
10591 | { | |
10592 | arg3 = &temp3; | |
10593 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
10594 | } | |
10595 | } | |
10596 | if (obj3) { | |
10597 | { | |
10598 | arg4 = &temp4; | |
10599 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
10600 | } | |
10601 | } | |
994141e6 | 10602 | if (obj4) { |
15afbcd0 RD |
10603 | arg5 = (long) SWIG_AsLong(obj4); |
10604 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10605 | } |
d14a1e28 RD |
10606 | if (obj5) { |
10607 | { | |
10608 | arg6 = wxString_in_helper(obj5); | |
10609 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 10610 | temp6 = True; |
d14a1e28 RD |
10611 | } |
10612 | } | |
10613 | { | |
e3b71cb8 | 10614 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10615 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10616 | result = (wxSpinButton *)new wxSpinButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
10617 | ||
10618 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10619 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10620 | } |
15afbcd0 | 10621 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10622 | { |
10623 | if (temp6) | |
10624 | delete arg6; | |
10625 | } | |
10626 | return resultobj; | |
10627 | fail: | |
10628 | { | |
10629 | if (temp6) | |
10630 | delete arg6; | |
10631 | } | |
10632 | return NULL; | |
10633 | } | |
10634 | ||
10635 | ||
10636 | static PyObject *_wrap_new_PreSpinButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10637 | PyObject *resultobj; | |
10638 | wxSpinButton *result; | |
10639 | char *kwnames[] = { | |
10640 | NULL | |
10641 | }; | |
10642 | ||
10643 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinButton",kwnames)) goto fail; | |
10644 | { | |
e3b71cb8 | 10645 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
10646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10647 | result = (wxSpinButton *)new wxSpinButton(); | |
10648 | ||
10649 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 10650 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10651 | } |
15afbcd0 | 10652 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinButton, 1); |
d14a1e28 RD |
10653 | return resultobj; |
10654 | fail: | |
10655 | return NULL; | |
10656 | } | |
10657 | ||
10658 | ||
10659 | static PyObject *_wrap_SpinButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10660 | PyObject *resultobj; | |
10661 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10662 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 10663 | int arg3 = (int) -1 ; |
d14a1e28 RD |
10664 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
10665 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
10666 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
10667 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
10668 | long arg6 = (long) wxSP_HORIZONTAL ; | |
10669 | wxString const &arg7_defvalue = wxPySPIN_BUTTON_NAME ; | |
10670 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
10671 | bool result; | |
10672 | wxPoint temp4 ; | |
10673 | wxSize temp5 ; | |
e811c8ce | 10674 | bool temp7 = False ; |
d14a1e28 RD |
10675 | PyObject * obj0 = 0 ; |
10676 | PyObject * obj1 = 0 ; | |
994141e6 | 10677 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
10678 | PyObject * obj3 = 0 ; |
10679 | PyObject * obj4 = 0 ; | |
994141e6 | 10680 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
10681 | PyObject * obj6 = 0 ; |
10682 | char *kwnames[] = { | |
10683 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
10684 | }; | |
10685 | ||
994141e6 | 10686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:SpinButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
10687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
10690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 10691 | if (obj2) { |
15afbcd0 RD |
10692 | arg3 = (int) SWIG_AsInt(obj2); |
10693 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10694 | } |
d14a1e28 RD |
10695 | if (obj3) { |
10696 | { | |
10697 | arg4 = &temp4; | |
10698 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
10699 | } | |
10700 | } | |
10701 | if (obj4) { | |
10702 | { | |
10703 | arg5 = &temp5; | |
10704 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
10705 | } | |
10706 | } | |
994141e6 | 10707 | if (obj5) { |
15afbcd0 RD |
10708 | arg6 = (long) SWIG_AsLong(obj5); |
10709 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10710 | } |
d14a1e28 RD |
10711 | if (obj6) { |
10712 | { | |
10713 | arg7 = wxString_in_helper(obj6); | |
10714 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 10715 | temp7 = True; |
d14a1e28 RD |
10716 | } |
10717 | } | |
10718 | { | |
10719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10720 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
10721 | ||
10722 | wxPyEndAllowThreads(__tstate); | |
10723 | if (PyErr_Occurred()) SWIG_fail; | |
10724 | } | |
4f89f6a3 RD |
10725 | { |
10726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10727 | } | |
d14a1e28 RD |
10728 | { |
10729 | if (temp7) | |
10730 | delete arg7; | |
10731 | } | |
10732 | return resultobj; | |
10733 | fail: | |
10734 | { | |
10735 | if (temp7) | |
10736 | delete arg7; | |
10737 | } | |
10738 | return NULL; | |
10739 | } | |
10740 | ||
10741 | ||
10742 | static PyObject *_wrap_SpinButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10743 | PyObject *resultobj; | |
10744 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10745 | int result; | |
10746 | PyObject * obj0 = 0 ; | |
10747 | char *kwnames[] = { | |
10748 | (char *) "self", NULL | |
10749 | }; | |
10750 | ||
10751 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10752 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10753 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10754 | { |
10755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10756 | result = (int)((wxSpinButton const *)arg1)->GetValue(); | |
10757 | ||
10758 | wxPyEndAllowThreads(__tstate); | |
10759 | if (PyErr_Occurred()) SWIG_fail; | |
10760 | } | |
15afbcd0 | 10761 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10762 | return resultobj; |
10763 | fail: | |
10764 | return NULL; | |
10765 | } | |
10766 | ||
10767 | ||
10768 | static PyObject *_wrap_SpinButton_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10769 | PyObject *resultobj; | |
10770 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10771 | int result; | |
10772 | PyObject * obj0 = 0 ; | |
10773 | char *kwnames[] = { | |
10774 | (char *) "self", NULL | |
10775 | }; | |
10776 | ||
10777 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10778 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10779 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10780 | { |
10781 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10782 | result = (int)((wxSpinButton const *)arg1)->GetMin(); | |
10783 | ||
10784 | wxPyEndAllowThreads(__tstate); | |
10785 | if (PyErr_Occurred()) SWIG_fail; | |
10786 | } | |
15afbcd0 | 10787 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10788 | return resultobj; |
10789 | fail: | |
10790 | return NULL; | |
10791 | } | |
10792 | ||
10793 | ||
10794 | static PyObject *_wrap_SpinButton_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10795 | PyObject *resultobj; | |
10796 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10797 | int result; | |
10798 | PyObject * obj0 = 0 ; | |
10799 | char *kwnames[] = { | |
10800 | (char *) "self", NULL | |
10801 | }; | |
10802 | ||
10803 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
10804 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10805 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
10806 | { |
10807 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10808 | result = (int)((wxSpinButton const *)arg1)->GetMax(); | |
10809 | ||
10810 | wxPyEndAllowThreads(__tstate); | |
10811 | if (PyErr_Occurred()) SWIG_fail; | |
10812 | } | |
15afbcd0 | 10813 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
10814 | return resultobj; |
10815 | fail: | |
10816 | return NULL; | |
10817 | } | |
10818 | ||
10819 | ||
10820 | static PyObject *_wrap_SpinButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10821 | PyObject *resultobj; | |
10822 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10823 | int arg2 ; | |
10824 | PyObject * obj0 = 0 ; | |
994141e6 | 10825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10826 | char *kwnames[] = { |
10827 | (char *) "self",(char *) "val", NULL | |
10828 | }; | |
10829 | ||
994141e6 | 10830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10833 | arg2 = (int) SWIG_AsInt(obj1); | |
10834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10835 | { |
10836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10837 | (arg1)->SetValue(arg2); | |
10838 | ||
10839 | wxPyEndAllowThreads(__tstate); | |
10840 | if (PyErr_Occurred()) SWIG_fail; | |
10841 | } | |
10842 | Py_INCREF(Py_None); resultobj = Py_None; | |
10843 | return resultobj; | |
10844 | fail: | |
10845 | return NULL; | |
10846 | } | |
10847 | ||
10848 | ||
10849 | static PyObject *_wrap_SpinButton_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10850 | PyObject *resultobj; | |
10851 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10852 | int arg2 ; | |
10853 | PyObject * obj0 = 0 ; | |
994141e6 | 10854 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10855 | char *kwnames[] = { |
10856 | (char *) "self",(char *) "minVal", NULL | |
10857 | }; | |
10858 | ||
994141e6 | 10859 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10860 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10861 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10862 | arg2 = (int) SWIG_AsInt(obj1); | |
10863 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10864 | { |
10865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10866 | (arg1)->SetMin(arg2); | |
10867 | ||
10868 | wxPyEndAllowThreads(__tstate); | |
10869 | if (PyErr_Occurred()) SWIG_fail; | |
10870 | } | |
10871 | Py_INCREF(Py_None); resultobj = Py_None; | |
10872 | return resultobj; | |
10873 | fail: | |
10874 | return NULL; | |
10875 | } | |
10876 | ||
10877 | ||
10878 | static PyObject *_wrap_SpinButton_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10879 | PyObject *resultobj; | |
10880 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10881 | int arg2 ; | |
10882 | PyObject * obj0 = 0 ; | |
994141e6 | 10883 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
10884 | char *kwnames[] = { |
10885 | (char *) "self",(char *) "maxVal", NULL | |
10886 | }; | |
10887 | ||
994141e6 | 10888 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinButton_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
10889 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10891 | arg2 = (int) SWIG_AsInt(obj1); | |
10892 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
10893 | { |
10894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10895 | (arg1)->SetMax(arg2); | |
10896 | ||
10897 | wxPyEndAllowThreads(__tstate); | |
10898 | if (PyErr_Occurred()) SWIG_fail; | |
10899 | } | |
10900 | Py_INCREF(Py_None); resultobj = Py_None; | |
10901 | return resultobj; | |
10902 | fail: | |
10903 | return NULL; | |
10904 | } | |
10905 | ||
10906 | ||
10907 | static PyObject *_wrap_SpinButton_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10908 | PyObject *resultobj; | |
10909 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10910 | int arg2 ; | |
10911 | int arg3 ; | |
10912 | PyObject * obj0 = 0 ; | |
994141e6 RD |
10913 | PyObject * obj1 = 0 ; |
10914 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
10915 | char *kwnames[] = { |
10916 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
10917 | }; | |
10918 | ||
994141e6 | 10919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinButton_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
10920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, |
10921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10922 | arg2 = (int) SWIG_AsInt(obj1); | |
10923 | if (PyErr_Occurred()) SWIG_fail; | |
10924 | arg3 = (int) SWIG_AsInt(obj2); | |
10925 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 10926 | { |
15afbcd0 RD |
10927 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
10928 | (arg1)->SetRange(arg2,arg3); | |
10929 | ||
10930 | wxPyEndAllowThreads(__tstate); | |
d14a1e28 RD |
10931 | if (PyErr_Occurred()) SWIG_fail; |
10932 | } | |
22bfe96c RD |
10933 | Py_INCREF(Py_None); resultobj = Py_None; |
10934 | return resultobj; | |
10935 | fail: | |
10936 | return NULL; | |
10937 | } | |
10938 | ||
10939 | ||
10940 | static PyObject *_wrap_SpinButton_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
10941 | PyObject *resultobj; | |
10942 | wxSpinButton *arg1 = (wxSpinButton *) 0 ; | |
10943 | bool result; | |
10944 | PyObject * obj0 = 0 ; | |
10945 | char *kwnames[] = { | |
10946 | (char *) "self", NULL | |
10947 | }; | |
10948 | ||
10949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinButton_IsVertical",kwnames,&obj0)) goto fail; | |
10950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinButton, | |
10951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
10952 | { | |
10953 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
10954 | result = (bool)((wxSpinButton const *)arg1)->IsVertical(); | |
10955 | ||
10956 | wxPyEndAllowThreads(__tstate); | |
10957 | if (PyErr_Occurred()) SWIG_fail; | |
10958 | } | |
10959 | { | |
10960 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
10961 | } | |
d14a1e28 RD |
10962 | return resultobj; |
10963 | fail: | |
10964 | return NULL; | |
10965 | } | |
10966 | ||
10967 | ||
22bfe96c | 10968 | static PyObject *_wrap_SpinButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
d14a1e28 | 10969 | PyObject *resultobj; |
22bfe96c RD |
10970 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; |
10971 | wxVisualAttributes result; | |
d14a1e28 RD |
10972 | PyObject * obj0 = 0 ; |
10973 | char *kwnames[] = { | |
22bfe96c | 10974 | (char *) "variant", NULL |
d14a1e28 RD |
10975 | }; |
10976 | ||
22bfe96c RD |
10977 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; |
10978 | if (obj0) { | |
10979 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
10980 | if (PyErr_Occurred()) SWIG_fail; | |
10981 | } | |
d14a1e28 | 10982 | { |
110da5b0 | 10983 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 10984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
22bfe96c | 10985 | result = wxSpinButton::GetClassDefaultAttributes((wxWindowVariant )arg1); |
d14a1e28 RD |
10986 | |
10987 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 10988 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 10989 | } |
4f89f6a3 | 10990 | { |
22bfe96c RD |
10991 | wxVisualAttributes * resultptr; |
10992 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
10993 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
4f89f6a3 | 10994 | } |
d14a1e28 RD |
10995 | return resultobj; |
10996 | fail: | |
10997 | return NULL; | |
10998 | } | |
10999 | ||
11000 | ||
11001 | static PyObject * SpinButton_swigregister(PyObject *self, PyObject *args) { | |
11002 | PyObject *obj; | |
11003 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11004 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinButton, obj); | |
11005 | Py_INCREF(obj); | |
11006 | return Py_BuildValue((char *)""); | |
11007 | } | |
11008 | static PyObject *_wrap_new_SpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11009 | PyObject *resultobj; | |
11010 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 11011 | int arg2 = (int) -1 ; |
d14a1e28 RD |
11012 | wxString const &arg3_defvalue = wxPyEmptyString ; |
11013 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
11014 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
11015 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11016 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11017 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
11018 | long arg6 = (long) wxSP_ARROW_KEYS ; | |
11019 | int arg7 = (int) 0 ; | |
11020 | int arg8 = (int) 100 ; | |
11021 | int arg9 = (int) 0 ; | |
11022 | wxString const &arg10_defvalue = wxPySpinCtrlNameStr ; | |
11023 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
11024 | wxSpinCtrl *result; | |
e811c8ce | 11025 | bool temp3 = False ; |
d14a1e28 RD |
11026 | wxPoint temp4 ; |
11027 | wxSize temp5 ; | |
e811c8ce | 11028 | bool temp10 = False ; |
d14a1e28 | 11029 | PyObject * obj0 = 0 ; |
994141e6 | 11030 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11031 | PyObject * obj2 = 0 ; |
11032 | PyObject * obj3 = 0 ; | |
11033 | PyObject * obj4 = 0 ; | |
994141e6 RD |
11034 | PyObject * obj5 = 0 ; |
11035 | PyObject * obj6 = 0 ; | |
11036 | PyObject * obj7 = 0 ; | |
11037 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11038 | PyObject * obj9 = 0 ; |
11039 | char *kwnames[] = { | |
11040 | (char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11041 | }; | |
11042 | ||
994141e6 | 11043 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_SpinCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
11044 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11045 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11046 | if (obj1) { |
15afbcd0 RD |
11047 | arg2 = (int) SWIG_AsInt(obj1); |
11048 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11049 | } |
11050 | if (obj2) { | |
d14a1e28 RD |
11051 | { |
11052 | arg3 = wxString_in_helper(obj2); | |
11053 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 11054 | temp3 = True; |
d14a1e28 RD |
11055 | } |
11056 | } | |
11057 | if (obj3) { | |
11058 | { | |
11059 | arg4 = &temp4; | |
11060 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11061 | } | |
11062 | } | |
11063 | if (obj4) { | |
11064 | { | |
11065 | arg5 = &temp5; | |
11066 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11067 | } | |
11068 | } | |
994141e6 | 11069 | if (obj5) { |
15afbcd0 RD |
11070 | arg6 = (long) SWIG_AsLong(obj5); |
11071 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11072 | } |
11073 | if (obj6) { | |
15afbcd0 RD |
11074 | arg7 = (int) SWIG_AsInt(obj6); |
11075 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11076 | } |
11077 | if (obj7) { | |
15afbcd0 RD |
11078 | arg8 = (int) SWIG_AsInt(obj7); |
11079 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11080 | } |
11081 | if (obj8) { | |
15afbcd0 RD |
11082 | arg9 = (int) SWIG_AsInt(obj8); |
11083 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11084 | } |
d14a1e28 RD |
11085 | if (obj9) { |
11086 | { | |
11087 | arg10 = wxString_in_helper(obj9); | |
11088 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11089 | temp10 = True; |
d14a1e28 RD |
11090 | } |
11091 | } | |
11092 | { | |
e3b71cb8 | 11093 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11095 | result = (wxSpinCtrl *)new wxSpinCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,arg7,arg8,arg9,(wxString const &)*arg10); | |
11096 | ||
11097 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11098 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11099 | } |
15afbcd0 | 11100 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11101 | { |
11102 | if (temp3) | |
11103 | delete arg3; | |
11104 | } | |
11105 | { | |
11106 | if (temp10) | |
11107 | delete arg10; | |
11108 | } | |
11109 | return resultobj; | |
11110 | fail: | |
11111 | { | |
11112 | if (temp3) | |
11113 | delete arg3; | |
11114 | } | |
11115 | { | |
11116 | if (temp10) | |
11117 | delete arg10; | |
11118 | } | |
11119 | return NULL; | |
11120 | } | |
11121 | ||
11122 | ||
11123 | static PyObject *_wrap_new_PreSpinCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11124 | PyObject *resultobj; | |
11125 | wxSpinCtrl *result; | |
11126 | char *kwnames[] = { | |
11127 | NULL | |
11128 | }; | |
11129 | ||
11130 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSpinCtrl",kwnames)) goto fail; | |
11131 | { | |
e3b71cb8 | 11132 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11134 | result = (wxSpinCtrl *)new wxSpinCtrl(); | |
11135 | ||
11136 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11137 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11138 | } |
15afbcd0 | 11139 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinCtrl, 1); |
d14a1e28 RD |
11140 | return resultobj; |
11141 | fail: | |
11142 | return NULL; | |
11143 | } | |
11144 | ||
11145 | ||
11146 | static PyObject *_wrap_SpinCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11147 | PyObject *resultobj; | |
11148 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11149 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 11150 | int arg3 = (int) -1 ; |
d14a1e28 RD |
11151 | wxString const &arg4_defvalue = wxPyEmptyString ; |
11152 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
11153 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
11154 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11155 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11156 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
11157 | long arg7 = (long) wxSP_ARROW_KEYS ; | |
11158 | int arg8 = (int) 0 ; | |
11159 | int arg9 = (int) 100 ; | |
11160 | int arg10 = (int) 0 ; | |
11161 | wxString const &arg11_defvalue = wxPySpinCtrlNameStr ; | |
11162 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
11163 | bool result; | |
e811c8ce | 11164 | bool temp4 = False ; |
d14a1e28 RD |
11165 | wxPoint temp5 ; |
11166 | wxSize temp6 ; | |
e811c8ce | 11167 | bool temp11 = False ; |
d14a1e28 RD |
11168 | PyObject * obj0 = 0 ; |
11169 | PyObject * obj1 = 0 ; | |
994141e6 | 11170 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11171 | PyObject * obj3 = 0 ; |
11172 | PyObject * obj4 = 0 ; | |
11173 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11174 | PyObject * obj6 = 0 ; |
11175 | PyObject * obj7 = 0 ; | |
11176 | PyObject * obj8 = 0 ; | |
11177 | PyObject * obj9 = 0 ; | |
d14a1e28 RD |
11178 | PyObject * obj10 = 0 ; |
11179 | char *kwnames[] = { | |
11180 | (char *) "self",(char *) "parent",(char *) "id",(char *) "value",(char *) "pos",(char *) "size",(char *) "style",(char *) "min",(char *) "max",(char *) "initial",(char *) "name", NULL | |
11181 | }; | |
11182 | ||
994141e6 | 11183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:SpinCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
11184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11186 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11187 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 11188 | if (obj2) { |
15afbcd0 RD |
11189 | arg3 = (int) SWIG_AsInt(obj2); |
11190 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11191 | } |
d14a1e28 RD |
11192 | if (obj3) { |
11193 | { | |
11194 | arg4 = wxString_in_helper(obj3); | |
11195 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 11196 | temp4 = True; |
d14a1e28 RD |
11197 | } |
11198 | } | |
11199 | if (obj4) { | |
11200 | { | |
11201 | arg5 = &temp5; | |
11202 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11203 | } | |
11204 | } | |
11205 | if (obj5) { | |
11206 | { | |
11207 | arg6 = &temp6; | |
11208 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11209 | } | |
11210 | } | |
994141e6 | 11211 | if (obj6) { |
15afbcd0 RD |
11212 | arg7 = (long) SWIG_AsLong(obj6); |
11213 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11214 | } |
11215 | if (obj7) { | |
15afbcd0 RD |
11216 | arg8 = (int) SWIG_AsInt(obj7); |
11217 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11218 | } |
11219 | if (obj8) { | |
15afbcd0 RD |
11220 | arg9 = (int) SWIG_AsInt(obj8); |
11221 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11222 | } |
11223 | if (obj9) { | |
15afbcd0 RD |
11224 | arg10 = (int) SWIG_AsInt(obj9); |
11225 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11226 | } |
d14a1e28 RD |
11227 | if (obj10) { |
11228 | { | |
11229 | arg11 = wxString_in_helper(obj10); | |
11230 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11231 | temp11 = True; |
d14a1e28 RD |
11232 | } |
11233 | } | |
11234 | { | |
11235 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11236 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,arg8,arg9,arg10,(wxString const &)*arg11); | |
11237 | ||
11238 | wxPyEndAllowThreads(__tstate); | |
11239 | if (PyErr_Occurred()) SWIG_fail; | |
11240 | } | |
4f89f6a3 RD |
11241 | { |
11242 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11243 | } | |
d14a1e28 RD |
11244 | { |
11245 | if (temp4) | |
11246 | delete arg4; | |
11247 | } | |
11248 | { | |
11249 | if (temp11) | |
11250 | delete arg11; | |
11251 | } | |
11252 | return resultobj; | |
11253 | fail: | |
11254 | { | |
11255 | if (temp4) | |
11256 | delete arg4; | |
11257 | } | |
11258 | { | |
11259 | if (temp11) | |
11260 | delete arg11; | |
11261 | } | |
11262 | return NULL; | |
11263 | } | |
11264 | ||
11265 | ||
11266 | static PyObject *_wrap_SpinCtrl_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11267 | PyObject *resultobj; | |
11268 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11269 | int result; | |
11270 | PyObject * obj0 = 0 ; | |
11271 | char *kwnames[] = { | |
11272 | (char *) "self", NULL | |
11273 | }; | |
11274 | ||
11275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11278 | { |
11279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11280 | result = (int)((wxSpinCtrl const *)arg1)->GetValue(); | |
11281 | ||
11282 | wxPyEndAllowThreads(__tstate); | |
11283 | if (PyErr_Occurred()) SWIG_fail; | |
11284 | } | |
15afbcd0 | 11285 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11286 | return resultobj; |
11287 | fail: | |
11288 | return NULL; | |
11289 | } | |
11290 | ||
11291 | ||
11292 | static PyObject *_wrap_SpinCtrl_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11293 | PyObject *resultobj; | |
11294 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11295 | int arg2 ; | |
11296 | PyObject * obj0 = 0 ; | |
994141e6 | 11297 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11298 | char *kwnames[] = { |
11299 | (char *) "self",(char *) "value", NULL | |
11300 | }; | |
11301 | ||
994141e6 | 11302 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11303 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11304 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11305 | arg2 = (int) SWIG_AsInt(obj1); | |
11306 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11307 | { |
11308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11309 | (arg1)->SetValue(arg2); | |
11310 | ||
11311 | wxPyEndAllowThreads(__tstate); | |
11312 | if (PyErr_Occurred()) SWIG_fail; | |
11313 | } | |
11314 | Py_INCREF(Py_None); resultobj = Py_None; | |
11315 | return resultobj; | |
11316 | fail: | |
11317 | return NULL; | |
11318 | } | |
11319 | ||
11320 | ||
11321 | static PyObject *_wrap_SpinCtrl_SetValueString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11322 | PyObject *resultobj; | |
11323 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11324 | wxString *arg2 = 0 ; | |
e811c8ce | 11325 | bool temp2 = False ; |
d14a1e28 RD |
11326 | PyObject * obj0 = 0 ; |
11327 | PyObject * obj1 = 0 ; | |
11328 | char *kwnames[] = { | |
11329 | (char *) "self",(char *) "text", NULL | |
11330 | }; | |
11331 | ||
11332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinCtrl_SetValueString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
11333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11335 | { |
11336 | arg2 = wxString_in_helper(obj1); | |
11337 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 11338 | temp2 = True; |
d14a1e28 RD |
11339 | } |
11340 | { | |
11341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11342 | (arg1)->SetValue((wxString const &)*arg2); | |
11343 | ||
11344 | wxPyEndAllowThreads(__tstate); | |
11345 | if (PyErr_Occurred()) SWIG_fail; | |
11346 | } | |
11347 | Py_INCREF(Py_None); resultobj = Py_None; | |
11348 | { | |
11349 | if (temp2) | |
11350 | delete arg2; | |
11351 | } | |
11352 | return resultobj; | |
11353 | fail: | |
11354 | { | |
11355 | if (temp2) | |
11356 | delete arg2; | |
11357 | } | |
11358 | return NULL; | |
11359 | } | |
11360 | ||
11361 | ||
11362 | static PyObject *_wrap_SpinCtrl_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11363 | PyObject *resultobj; | |
11364 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11365 | int arg2 ; | |
11366 | int arg3 ; | |
11367 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11368 | PyObject * obj1 = 0 ; |
11369 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11370 | char *kwnames[] = { |
11371 | (char *) "self",(char *) "minVal",(char *) "maxVal", NULL | |
11372 | }; | |
11373 | ||
994141e6 | 11374 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11375 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11376 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11377 | arg2 = (int) SWIG_AsInt(obj1); | |
11378 | if (PyErr_Occurred()) SWIG_fail; | |
11379 | arg3 = (int) SWIG_AsInt(obj2); | |
11380 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11381 | { |
11382 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11383 | (arg1)->SetRange(arg2,arg3); | |
11384 | ||
11385 | wxPyEndAllowThreads(__tstate); | |
11386 | if (PyErr_Occurred()) SWIG_fail; | |
11387 | } | |
11388 | Py_INCREF(Py_None); resultobj = Py_None; | |
11389 | return resultobj; | |
11390 | fail: | |
11391 | return NULL; | |
11392 | } | |
11393 | ||
11394 | ||
11395 | static PyObject *_wrap_SpinCtrl_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11396 | PyObject *resultobj; | |
11397 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11398 | int result; | |
11399 | PyObject * obj0 = 0 ; | |
11400 | char *kwnames[] = { | |
11401 | (char *) "self", NULL | |
11402 | }; | |
11403 | ||
11404 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11405 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11406 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11407 | { |
11408 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11409 | result = (int)((wxSpinCtrl const *)arg1)->GetMin(); | |
11410 | ||
11411 | wxPyEndAllowThreads(__tstate); | |
11412 | if (PyErr_Occurred()) SWIG_fail; | |
11413 | } | |
15afbcd0 | 11414 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11415 | return resultobj; |
11416 | fail: | |
11417 | return NULL; | |
11418 | } | |
11419 | ||
11420 | ||
11421 | static PyObject *_wrap_SpinCtrl_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11422 | PyObject *resultobj; | |
11423 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11424 | int result; | |
11425 | PyObject * obj0 = 0 ; | |
11426 | char *kwnames[] = { | |
11427 | (char *) "self", NULL | |
11428 | }; | |
11429 | ||
11430 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinCtrl_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11431 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11432 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
11433 | { |
11434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11435 | result = (int)((wxSpinCtrl const *)arg1)->GetMax(); | |
11436 | ||
11437 | wxPyEndAllowThreads(__tstate); | |
11438 | if (PyErr_Occurred()) SWIG_fail; | |
11439 | } | |
15afbcd0 | 11440 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
11441 | return resultobj; |
11442 | fail: | |
11443 | return NULL; | |
11444 | } | |
11445 | ||
11446 | ||
11447 | static PyObject *_wrap_SpinCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11448 | PyObject *resultobj; | |
11449 | wxSpinCtrl *arg1 = (wxSpinCtrl *) 0 ; | |
11450 | long arg2 ; | |
11451 | long arg3 ; | |
11452 | PyObject * obj0 = 0 ; | |
994141e6 RD |
11453 | PyObject * obj1 = 0 ; |
11454 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
11455 | char *kwnames[] = { |
11456 | (char *) "self",(char *) "from",(char *) "to", NULL | |
11457 | }; | |
11458 | ||
994141e6 | 11459 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:SpinCtrl_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
11460 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinCtrl, |
11461 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11462 | arg2 = (long) SWIG_AsLong(obj1); | |
11463 | if (PyErr_Occurred()) SWIG_fail; | |
11464 | arg3 = (long) SWIG_AsLong(obj2); | |
11465 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11466 | { |
11467 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
a41e16b6 | 11468 | (arg1)->SetSelection(arg2,arg3); |
d14a1e28 RD |
11469 | |
11470 | wxPyEndAllowThreads(__tstate); | |
11471 | if (PyErr_Occurred()) SWIG_fail; | |
11472 | } | |
11473 | Py_INCREF(Py_None); resultobj = Py_None; | |
11474 | return resultobj; | |
11475 | fail: | |
11476 | return NULL; | |
11477 | } | |
11478 | ||
11479 | ||
22bfe96c RD |
11480 | static PyObject *_wrap_SpinCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
11481 | PyObject *resultobj; | |
11482 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
11483 | wxVisualAttributes result; | |
11484 | PyObject * obj0 = 0 ; | |
11485 | char *kwnames[] = { | |
11486 | (char *) "variant", NULL | |
11487 | }; | |
11488 | ||
11489 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:SpinCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
11490 | if (obj0) { | |
11491 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
11492 | if (PyErr_Occurred()) SWIG_fail; | |
11493 | } | |
11494 | { | |
110da5b0 | 11495 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
11496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11497 | result = wxSpinCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
11498 | ||
11499 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 11500 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
11501 | } |
11502 | { | |
11503 | wxVisualAttributes * resultptr; | |
11504 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
11505 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
11506 | } | |
11507 | return resultobj; | |
11508 | fail: | |
11509 | return NULL; | |
11510 | } | |
11511 | ||
11512 | ||
d14a1e28 RD |
11513 | static PyObject * SpinCtrl_swigregister(PyObject *self, PyObject *args) { |
11514 | PyObject *obj; | |
11515 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11516 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinCtrl, obj); | |
11517 | Py_INCREF(obj); | |
11518 | return Py_BuildValue((char *)""); | |
11519 | } | |
d1e20054 RD |
11520 | static PyObject *_wrap_new_SpinEvent(PyObject *self, PyObject *args, PyObject *kwargs) { |
11521 | PyObject *resultobj; | |
11522 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
11523 | int arg2 = (int) 0 ; | |
11524 | wxSpinEvent *result; | |
994141e6 RD |
11525 | PyObject * obj0 = 0 ; |
11526 | PyObject * obj1 = 0 ; | |
d1e20054 RD |
11527 | char *kwnames[] = { |
11528 | (char *) "commandType",(char *) "winid", NULL | |
11529 | }; | |
11530 | ||
994141e6 RD |
11531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_SpinEvent",kwnames,&obj0,&obj1)) goto fail; |
11532 | if (obj0) { | |
15afbcd0 RD |
11533 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
11534 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11535 | } |
11536 | if (obj1) { | |
15afbcd0 RD |
11537 | arg2 = (int) SWIG_AsInt(obj1); |
11538 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11539 | } |
d1e20054 RD |
11540 | { |
11541 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11542 | result = (wxSpinEvent *)new wxSpinEvent(arg1,arg2); | |
11543 | ||
11544 | wxPyEndAllowThreads(__tstate); | |
11545 | if (PyErr_Occurred()) SWIG_fail; | |
11546 | } | |
15afbcd0 | 11547 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSpinEvent, 1); |
d1e20054 RD |
11548 | return resultobj; |
11549 | fail: | |
11550 | return NULL; | |
11551 | } | |
11552 | ||
11553 | ||
11554 | static PyObject *_wrap_SpinEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11555 | PyObject *resultobj; | |
11556 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11557 | int result; | |
11558 | PyObject * obj0 = 0 ; | |
11559 | char *kwnames[] = { | |
11560 | (char *) "self", NULL | |
11561 | }; | |
11562 | ||
11563 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:SpinEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
11564 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11565 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d1e20054 RD |
11566 | { |
11567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11568 | result = (int)((wxSpinEvent const *)arg1)->GetPosition(); | |
11569 | ||
11570 | wxPyEndAllowThreads(__tstate); | |
11571 | if (PyErr_Occurred()) SWIG_fail; | |
11572 | } | |
15afbcd0 | 11573 | resultobj = SWIG_FromInt((int)result); |
d1e20054 RD |
11574 | return resultobj; |
11575 | fail: | |
11576 | return NULL; | |
11577 | } | |
11578 | ||
11579 | ||
11580 | static PyObject *_wrap_SpinEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11581 | PyObject *resultobj; | |
11582 | wxSpinEvent *arg1 = (wxSpinEvent *) 0 ; | |
11583 | int arg2 ; | |
11584 | PyObject * obj0 = 0 ; | |
994141e6 | 11585 | PyObject * obj1 = 0 ; |
d1e20054 RD |
11586 | char *kwnames[] = { |
11587 | (char *) "self",(char *) "pos", NULL | |
11588 | }; | |
11589 | ||
994141e6 | 11590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:SpinEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSpinEvent, |
11592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11593 | arg2 = (int) SWIG_AsInt(obj1); | |
11594 | if (PyErr_Occurred()) SWIG_fail; | |
d1e20054 RD |
11595 | { |
11596 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11597 | (arg1)->SetPosition(arg2); | |
11598 | ||
11599 | wxPyEndAllowThreads(__tstate); | |
11600 | if (PyErr_Occurred()) SWIG_fail; | |
11601 | } | |
11602 | Py_INCREF(Py_None); resultobj = Py_None; | |
11603 | return resultobj; | |
11604 | fail: | |
11605 | return NULL; | |
11606 | } | |
11607 | ||
11608 | ||
11609 | static PyObject * SpinEvent_swigregister(PyObject *self, PyObject *args) { | |
11610 | PyObject *obj; | |
11611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
11612 | SWIG_TypeClientData(SWIGTYPE_p_wxSpinEvent, obj); | |
11613 | Py_INCREF(obj); | |
11614 | return Py_BuildValue((char *)""); | |
11615 | } | |
b2dc1044 RD |
11616 | static int _wrap_RadioBoxNameStr_set(PyObject *_val) { |
11617 | PyErr_SetString(PyExc_TypeError,"Variable RadioBoxNameStr is read-only."); | |
11618 | return 1; | |
11619 | } | |
11620 | ||
11621 | ||
11622 | static PyObject *_wrap_RadioBoxNameStr_get() { | |
11623 | PyObject *pyobj; | |
11624 | ||
11625 | { | |
11626 | #if wxUSE_UNICODE | |
11627 | pyobj = PyUnicode_FromWideChar((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11628 | #else | |
11629 | pyobj = PyString_FromStringAndSize((&wxPyRadioBoxNameStr)->c_str(), (&wxPyRadioBoxNameStr)->Len()); | |
11630 | #endif | |
11631 | } | |
11632 | return pyobj; | |
11633 | } | |
11634 | ||
11635 | ||
11636 | static int _wrap_RadioButtonNameStr_set(PyObject *_val) { | |
11637 | PyErr_SetString(PyExc_TypeError,"Variable RadioButtonNameStr is read-only."); | |
11638 | return 1; | |
11639 | } | |
11640 | ||
11641 | ||
11642 | static PyObject *_wrap_RadioButtonNameStr_get() { | |
11643 | PyObject *pyobj; | |
11644 | ||
11645 | { | |
11646 | #if wxUSE_UNICODE | |
11647 | pyobj = PyUnicode_FromWideChar((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11648 | #else | |
11649 | pyobj = PyString_FromStringAndSize((&wxPyRadioButtonNameStr)->c_str(), (&wxPyRadioButtonNameStr)->Len()); | |
11650 | #endif | |
11651 | } | |
11652 | return pyobj; | |
11653 | } | |
11654 | ||
11655 | ||
d14a1e28 RD |
11656 | static PyObject *_wrap_new_RadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { |
11657 | PyObject *resultobj; | |
11658 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
11659 | int arg2 = (int) -1 ; |
11660 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
11661 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
11662 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
11663 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
11664 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
11665 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
4d5c3d91 RD |
11666 | wxArrayString const &arg6_defvalue = wxPyEmptyStringArray ; |
11667 | wxArrayString *arg6 = (wxArrayString *) &arg6_defvalue ; | |
11668 | int arg7 = (int) 0 ; | |
11669 | long arg8 = (long) wxRA_HORIZONTAL ; | |
11670 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
11671 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
11672 | wxString const &arg10_defvalue = wxPyRadioBoxNameStr ; | |
11673 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
d14a1e28 | 11674 | wxRadioBox *result; |
e811c8ce | 11675 | bool temp3 = False ; |
d14a1e28 RD |
11676 | wxPoint temp4 ; |
11677 | wxSize temp5 ; | |
3adfb63b | 11678 | bool temp6 = False ; |
e811c8ce | 11679 | bool temp10 = False ; |
d14a1e28 | 11680 | PyObject * obj0 = 0 ; |
994141e6 | 11681 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11682 | PyObject * obj2 = 0 ; |
11683 | PyObject * obj3 = 0 ; | |
11684 | PyObject * obj4 = 0 ; | |
11685 | PyObject * obj5 = 0 ; | |
994141e6 RD |
11686 | PyObject * obj6 = 0 ; |
11687 | PyObject * obj7 = 0 ; | |
d14a1e28 RD |
11688 | PyObject * obj8 = 0 ; |
11689 | PyObject * obj9 = 0 ; | |
11690 | char *kwnames[] = { | |
994141e6 | 11691 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "choices",(char *) "majorDimension",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
11692 | }; |
11693 | ||
248ed943 | 11694 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_RadioBox",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
11695 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
11696 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11697 | if (obj1) { |
11698 | arg2 = (int) SWIG_AsInt(obj1); | |
11699 | if (PyErr_Occurred()) SWIG_fail; | |
11700 | } | |
11701 | if (obj2) { | |
11702 | { | |
11703 | arg3 = wxString_in_helper(obj2); | |
11704 | if (arg3 == NULL) SWIG_fail; | |
11705 | temp3 = True; | |
11706 | } | |
d14a1e28 RD |
11707 | } |
11708 | if (obj3) { | |
11709 | { | |
11710 | arg4 = &temp4; | |
11711 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
11712 | } | |
11713 | } | |
11714 | if (obj4) { | |
11715 | { | |
11716 | arg5 = &temp5; | |
11717 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
11718 | } | |
11719 | } | |
11720 | if (obj5) { | |
11721 | { | |
4d5c3d91 RD |
11722 | if (! PySequence_Check(obj5)) { |
11723 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11724 | SWIG_fail; | |
11725 | } | |
11726 | arg6 = new wxArrayString; | |
3adfb63b | 11727 | temp6 = True; |
4d5c3d91 RD |
11728 | int i, len=PySequence_Length(obj5); |
11729 | for (i=0; i<len; i++) { | |
11730 | PyObject* item = PySequence_GetItem(obj5, i); | |
11731 | #if wxUSE_UNICODE | |
11732 | PyObject* str = PyObject_Unicode(item); | |
11733 | #else | |
11734 | PyObject* str = PyObject_Str(item); | |
11735 | #endif | |
74a57fcd | 11736 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11737 | arg6->Add(Py2wxString(str)); |
11738 | Py_DECREF(item); | |
11739 | Py_DECREF(str); | |
11740 | } | |
d14a1e28 RD |
11741 | } |
11742 | } | |
994141e6 | 11743 | if (obj6) { |
15afbcd0 RD |
11744 | arg7 = (int) SWIG_AsInt(obj6); |
11745 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11746 | } |
11747 | if (obj7) { | |
15afbcd0 RD |
11748 | arg8 = (long) SWIG_AsLong(obj7); |
11749 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11750 | } |
d14a1e28 | 11751 | if (obj8) { |
15afbcd0 RD |
11752 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
11753 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11754 | SWIG_fail; | |
4d5c3d91 | 11755 | if (arg9 == NULL) { |
15afbcd0 RD |
11756 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11757 | SWIG_fail; | |
d14a1e28 RD |
11758 | } |
11759 | } | |
11760 | if (obj9) { | |
11761 | { | |
4d5c3d91 RD |
11762 | arg10 = wxString_in_helper(obj9); |
11763 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 11764 | temp10 = True; |
d14a1e28 RD |
11765 | } |
11766 | } | |
11767 | { | |
e3b71cb8 | 11768 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 | 11769 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
4d5c3d91 | 11770 | 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 |
11771 | |
11772 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11773 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11774 | } |
15afbcd0 | 11775 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11776 | { |
11777 | if (temp3) | |
11778 | delete arg3; | |
11779 | } | |
11780 | { | |
3adfb63b | 11781 | if (temp6) delete arg6; |
d14a1e28 RD |
11782 | } |
11783 | { | |
11784 | if (temp10) | |
4d5c3d91 | 11785 | delete arg10; |
d14a1e28 RD |
11786 | } |
11787 | return resultobj; | |
11788 | fail: | |
11789 | { | |
11790 | if (temp3) | |
11791 | delete arg3; | |
11792 | } | |
11793 | { | |
3adfb63b | 11794 | if (temp6) delete arg6; |
d14a1e28 RD |
11795 | } |
11796 | { | |
11797 | if (temp10) | |
4d5c3d91 | 11798 | delete arg10; |
d14a1e28 RD |
11799 | } |
11800 | return NULL; | |
11801 | } | |
11802 | ||
11803 | ||
11804 | static PyObject *_wrap_new_PreRadioBox(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11805 | PyObject *resultobj; | |
11806 | wxRadioBox *result; | |
11807 | char *kwnames[] = { | |
11808 | NULL | |
11809 | }; | |
11810 | ||
11811 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioBox",kwnames)) goto fail; | |
11812 | { | |
e3b71cb8 | 11813 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
11814 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
11815 | result = (wxRadioBox *)new wxRadioBox(); | |
11816 | ||
11817 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 11818 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 11819 | } |
15afbcd0 | 11820 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioBox, 1); |
d14a1e28 RD |
11821 | return resultobj; |
11822 | fail: | |
11823 | return NULL; | |
11824 | } | |
11825 | ||
11826 | ||
11827 | static PyObject *_wrap_RadioBox_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11828 | PyObject *resultobj; | |
11829 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11830 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
11831 | int arg3 = (int) -1 ; |
11832 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
11833 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
11834 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
11835 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
11836 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
11837 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
4d5c3d91 RD |
11838 | wxArrayString const &arg7_defvalue = wxPyEmptyStringArray ; |
11839 | wxArrayString *arg7 = (wxArrayString *) &arg7_defvalue ; | |
11840 | int arg8 = (int) 0 ; | |
11841 | long arg9 = (long) wxRA_HORIZONTAL ; | |
11842 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
11843 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
11844 | wxString const &arg11_defvalue = wxPyRadioBoxNameStr ; | |
11845 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
d14a1e28 | 11846 | bool result; |
e811c8ce | 11847 | bool temp4 = False ; |
d14a1e28 RD |
11848 | wxPoint temp5 ; |
11849 | wxSize temp6 ; | |
3adfb63b | 11850 | bool temp7 = False ; |
e811c8ce | 11851 | bool temp11 = False ; |
d14a1e28 RD |
11852 | PyObject * obj0 = 0 ; |
11853 | PyObject * obj1 = 0 ; | |
994141e6 | 11854 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
11855 | PyObject * obj3 = 0 ; |
11856 | PyObject * obj4 = 0 ; | |
11857 | PyObject * obj5 = 0 ; | |
11858 | PyObject * obj6 = 0 ; | |
994141e6 RD |
11859 | PyObject * obj7 = 0 ; |
11860 | PyObject * obj8 = 0 ; | |
d14a1e28 RD |
11861 | PyObject * obj9 = 0 ; |
11862 | PyObject * obj10 = 0 ; | |
11863 | char *kwnames[] = { | |
994141e6 | 11864 | (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 |
11865 | }; |
11866 | ||
248ed943 | 11867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:RadioBox_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
11868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11870 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
11871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
11872 | if (obj2) { |
11873 | arg3 = (int) SWIG_AsInt(obj2); | |
11874 | if (PyErr_Occurred()) SWIG_fail; | |
11875 | } | |
11876 | if (obj3) { | |
11877 | { | |
11878 | arg4 = wxString_in_helper(obj3); | |
11879 | if (arg4 == NULL) SWIG_fail; | |
11880 | temp4 = True; | |
11881 | } | |
d14a1e28 RD |
11882 | } |
11883 | if (obj4) { | |
11884 | { | |
11885 | arg5 = &temp5; | |
11886 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
11887 | } | |
11888 | } | |
11889 | if (obj5) { | |
11890 | { | |
11891 | arg6 = &temp6; | |
11892 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
11893 | } | |
11894 | } | |
11895 | if (obj6) { | |
11896 | { | |
4d5c3d91 RD |
11897 | if (! PySequence_Check(obj6)) { |
11898 | PyErr_SetString(PyExc_TypeError, "Sequence of strings expected."); | |
11899 | SWIG_fail; | |
11900 | } | |
11901 | arg7 = new wxArrayString; | |
3adfb63b | 11902 | temp7 = True; |
4d5c3d91 RD |
11903 | int i, len=PySequence_Length(obj6); |
11904 | for (i=0; i<len; i++) { | |
11905 | PyObject* item = PySequence_GetItem(obj6, i); | |
11906 | #if wxUSE_UNICODE | |
11907 | PyObject* str = PyObject_Unicode(item); | |
11908 | #else | |
11909 | PyObject* str = PyObject_Str(item); | |
11910 | #endif | |
74a57fcd | 11911 | if (PyErr_Occurred()) SWIG_fail; |
4d5c3d91 RD |
11912 | arg7->Add(Py2wxString(str)); |
11913 | Py_DECREF(item); | |
11914 | Py_DECREF(str); | |
11915 | } | |
d14a1e28 RD |
11916 | } |
11917 | } | |
994141e6 | 11918 | if (obj7) { |
15afbcd0 RD |
11919 | arg8 = (int) SWIG_AsInt(obj7); |
11920 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
11921 | } |
11922 | if (obj8) { | |
15afbcd0 RD |
11923 | arg9 = (long) SWIG_AsLong(obj8); |
11924 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 11925 | } |
d14a1e28 | 11926 | if (obj9) { |
15afbcd0 RD |
11927 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
11928 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
11929 | SWIG_fail; | |
4d5c3d91 | 11930 | if (arg10 == NULL) { |
15afbcd0 RD |
11931 | PyErr_SetString(PyExc_TypeError,"null reference"); |
11932 | SWIG_fail; | |
d14a1e28 RD |
11933 | } |
11934 | } | |
11935 | if (obj10) { | |
11936 | { | |
4d5c3d91 RD |
11937 | arg11 = wxString_in_helper(obj10); |
11938 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 11939 | temp11 = True; |
d14a1e28 RD |
11940 | } |
11941 | } | |
11942 | { | |
11943 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
4d5c3d91 | 11944 | 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 |
11945 | |
11946 | wxPyEndAllowThreads(__tstate); | |
11947 | if (PyErr_Occurred()) SWIG_fail; | |
11948 | } | |
4f89f6a3 RD |
11949 | { |
11950 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
11951 | } | |
d14a1e28 RD |
11952 | { |
11953 | if (temp4) | |
11954 | delete arg4; | |
11955 | } | |
11956 | { | |
3adfb63b | 11957 | if (temp7) delete arg7; |
d14a1e28 RD |
11958 | } |
11959 | { | |
11960 | if (temp11) | |
4d5c3d91 | 11961 | delete arg11; |
d14a1e28 RD |
11962 | } |
11963 | return resultobj; | |
11964 | fail: | |
11965 | { | |
11966 | if (temp4) | |
11967 | delete arg4; | |
11968 | } | |
11969 | { | |
3adfb63b | 11970 | if (temp7) delete arg7; |
d14a1e28 RD |
11971 | } |
11972 | { | |
11973 | if (temp11) | |
4d5c3d91 | 11974 | delete arg11; |
d14a1e28 RD |
11975 | } |
11976 | return NULL; | |
11977 | } | |
11978 | ||
11979 | ||
11980 | static PyObject *_wrap_RadioBox_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
11981 | PyObject *resultobj; | |
11982 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
11983 | int arg2 ; | |
11984 | PyObject * obj0 = 0 ; | |
994141e6 | 11985 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
11986 | char *kwnames[] = { |
11987 | (char *) "self",(char *) "n", NULL | |
11988 | }; | |
11989 | ||
994141e6 | 11990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
11991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
11992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
11993 | arg2 = (int) SWIG_AsInt(obj1); | |
11994 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
11995 | { |
11996 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
11997 | (arg1)->SetSelection(arg2); | |
11998 | ||
11999 | wxPyEndAllowThreads(__tstate); | |
12000 | if (PyErr_Occurred()) SWIG_fail; | |
12001 | } | |
12002 | Py_INCREF(Py_None); resultobj = Py_None; | |
12003 | return resultobj; | |
12004 | fail: | |
12005 | return NULL; | |
12006 | } | |
12007 | ||
12008 | ||
12009 | static PyObject *_wrap_RadioBox_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12010 | PyObject *resultobj; | |
12011 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12012 | int result; | |
12013 | PyObject * obj0 = 0 ; | |
12014 | char *kwnames[] = { | |
12015 | (char *) "self", NULL | |
12016 | }; | |
12017 | ||
12018 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12019 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12020 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12021 | { |
12022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12023 | result = (int)((wxRadioBox const *)arg1)->GetSelection(); | |
12024 | ||
12025 | wxPyEndAllowThreads(__tstate); | |
12026 | if (PyErr_Occurred()) SWIG_fail; | |
12027 | } | |
15afbcd0 | 12028 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12029 | return resultobj; |
12030 | fail: | |
12031 | return NULL; | |
12032 | } | |
12033 | ||
12034 | ||
12035 | static PyObject *_wrap_RadioBox_GetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12036 | PyObject *resultobj; | |
12037 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12038 | wxString result; | |
12039 | PyObject * obj0 = 0 ; | |
12040 | char *kwnames[] = { | |
12041 | (char *) "self", NULL | |
12042 | }; | |
12043 | ||
12044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetStringSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12045 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12046 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12047 | { |
12048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12049 | result = ((wxRadioBox const *)arg1)->GetStringSelection(); | |
12050 | ||
12051 | wxPyEndAllowThreads(__tstate); | |
12052 | if (PyErr_Occurred()) SWIG_fail; | |
12053 | } | |
12054 | { | |
12055 | #if wxUSE_UNICODE | |
12056 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12057 | #else | |
12058 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12059 | #endif | |
12060 | } | |
12061 | return resultobj; | |
12062 | fail: | |
12063 | return NULL; | |
12064 | } | |
12065 | ||
12066 | ||
12067 | static PyObject *_wrap_RadioBox_SetStringSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12068 | PyObject *resultobj; | |
12069 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12070 | wxString *arg2 = 0 ; | |
12071 | bool result; | |
e811c8ce | 12072 | bool temp2 = False ; |
d14a1e28 RD |
12073 | PyObject * obj0 = 0 ; |
12074 | PyObject * obj1 = 0 ; | |
12075 | char *kwnames[] = { | |
12076 | (char *) "self",(char *) "s", NULL | |
12077 | }; | |
12078 | ||
12079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_SetStringSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12082 | { |
12083 | arg2 = wxString_in_helper(obj1); | |
12084 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12085 | temp2 = True; |
d14a1e28 RD |
12086 | } |
12087 | { | |
12088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12089 | result = (bool)(arg1)->SetStringSelection((wxString const &)*arg2); | |
12090 | ||
12091 | wxPyEndAllowThreads(__tstate); | |
12092 | if (PyErr_Occurred()) SWIG_fail; | |
12093 | } | |
4f89f6a3 RD |
12094 | { |
12095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12096 | } | |
d14a1e28 RD |
12097 | { |
12098 | if (temp2) | |
12099 | delete arg2; | |
12100 | } | |
12101 | return resultobj; | |
12102 | fail: | |
12103 | { | |
12104 | if (temp2) | |
12105 | delete arg2; | |
12106 | } | |
12107 | return NULL; | |
12108 | } | |
12109 | ||
12110 | ||
12111 | static PyObject *_wrap_RadioBox_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12112 | PyObject *resultobj; | |
12113 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12114 | int result; | |
12115 | PyObject * obj0 = 0 ; | |
12116 | char *kwnames[] = { | |
12117 | (char *) "self", NULL | |
12118 | }; | |
12119 | ||
12120 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12121 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12122 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12123 | { |
12124 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12125 | result = (int)((wxRadioBox const *)arg1)->GetCount(); | |
12126 | ||
12127 | wxPyEndAllowThreads(__tstate); | |
12128 | if (PyErr_Occurred()) SWIG_fail; | |
12129 | } | |
15afbcd0 | 12130 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12131 | return resultobj; |
12132 | fail: | |
12133 | return NULL; | |
12134 | } | |
12135 | ||
12136 | ||
12137 | static PyObject *_wrap_RadioBox_FindString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12138 | PyObject *resultobj; | |
12139 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12140 | wxString *arg2 = 0 ; | |
12141 | int result; | |
e811c8ce | 12142 | bool temp2 = False ; |
d14a1e28 RD |
12143 | PyObject * obj0 = 0 ; |
12144 | PyObject * obj1 = 0 ; | |
12145 | char *kwnames[] = { | |
12146 | (char *) "self",(char *) "s", NULL | |
12147 | }; | |
12148 | ||
12149 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_FindString",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12150 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12151 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12152 | { |
12153 | arg2 = wxString_in_helper(obj1); | |
12154 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 12155 | temp2 = True; |
d14a1e28 RD |
12156 | } |
12157 | { | |
12158 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12159 | result = (int)((wxRadioBox const *)arg1)->FindString((wxString const &)*arg2); | |
12160 | ||
12161 | wxPyEndAllowThreads(__tstate); | |
12162 | if (PyErr_Occurred()) SWIG_fail; | |
12163 | } | |
15afbcd0 | 12164 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12165 | { |
12166 | if (temp2) | |
12167 | delete arg2; | |
12168 | } | |
12169 | return resultobj; | |
12170 | fail: | |
12171 | { | |
12172 | if (temp2) | |
12173 | delete arg2; | |
12174 | } | |
12175 | return NULL; | |
12176 | } | |
12177 | ||
12178 | ||
12179 | static PyObject *_wrap_RadioBox_GetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12180 | PyObject *resultobj; | |
12181 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12182 | int arg2 ; | |
12183 | wxString result; | |
12184 | PyObject * obj0 = 0 ; | |
994141e6 | 12185 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12186 | char *kwnames[] = { |
12187 | (char *) "self",(char *) "n", NULL | |
12188 | }; | |
12189 | ||
994141e6 | 12190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioBox_GetString",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
12191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12193 | arg2 = (int) SWIG_AsInt(obj1); | |
12194 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12195 | { |
12196 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12197 | result = ((wxRadioBox const *)arg1)->GetString(arg2); | |
12198 | ||
12199 | wxPyEndAllowThreads(__tstate); | |
12200 | if (PyErr_Occurred()) SWIG_fail; | |
12201 | } | |
12202 | { | |
12203 | #if wxUSE_UNICODE | |
12204 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
12205 | #else | |
12206 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
12207 | #endif | |
12208 | } | |
12209 | return resultobj; | |
12210 | fail: | |
12211 | return NULL; | |
12212 | } | |
12213 | ||
12214 | ||
12215 | static PyObject *_wrap_RadioBox_SetString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12216 | PyObject *resultobj; | |
12217 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12218 | int arg2 ; | |
12219 | wxString *arg3 = 0 ; | |
e811c8ce | 12220 | bool temp3 = False ; |
d14a1e28 | 12221 | PyObject * obj0 = 0 ; |
994141e6 | 12222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12223 | PyObject * obj2 = 0 ; |
12224 | char *kwnames[] = { | |
12225 | (char *) "self",(char *) "n",(char *) "label", NULL | |
12226 | }; | |
12227 | ||
994141e6 | 12228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:RadioBox_SetString",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12231 | arg2 = (int) SWIG_AsInt(obj1); | |
12232 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12233 | { |
12234 | arg3 = wxString_in_helper(obj2); | |
12235 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 12236 | temp3 = True; |
d14a1e28 RD |
12237 | } |
12238 | { | |
12239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12240 | (arg1)->SetString(arg2,(wxString const &)*arg3); | |
12241 | ||
12242 | wxPyEndAllowThreads(__tstate); | |
12243 | if (PyErr_Occurred()) SWIG_fail; | |
12244 | } | |
12245 | Py_INCREF(Py_None); resultobj = Py_None; | |
12246 | { | |
12247 | if (temp3) | |
12248 | delete arg3; | |
12249 | } | |
12250 | return resultobj; | |
12251 | fail: | |
12252 | { | |
12253 | if (temp3) | |
12254 | delete arg3; | |
12255 | } | |
12256 | return NULL; | |
12257 | } | |
12258 | ||
12259 | ||
12260 | static PyObject *_wrap_RadioBox_EnableItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12261 | PyObject *resultobj; | |
12262 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12263 | int arg2 ; | |
e811c8ce | 12264 | bool arg3 = (bool) True ; |
d14a1e28 | 12265 | PyObject * obj0 = 0 ; |
994141e6 | 12266 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12267 | PyObject * obj2 = 0 ; |
12268 | char *kwnames[] = { | |
12269 | (char *) "self",(char *) "n",(char *) "enable", NULL | |
12270 | }; | |
12271 | ||
994141e6 | 12272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_EnableItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12275 | arg2 = (int) SWIG_AsInt(obj1); | |
12276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12277 | if (obj2) { |
15afbcd0 RD |
12278 | arg3 = (bool) SWIG_AsBool(obj2); |
12279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12280 | } |
12281 | { | |
12282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12283 | (arg1)->Enable(arg2,arg3); | |
12284 | ||
12285 | wxPyEndAllowThreads(__tstate); | |
12286 | if (PyErr_Occurred()) SWIG_fail; | |
12287 | } | |
12288 | Py_INCREF(Py_None); resultobj = Py_None; | |
12289 | return resultobj; | |
12290 | fail: | |
12291 | return NULL; | |
12292 | } | |
12293 | ||
12294 | ||
12295 | static PyObject *_wrap_RadioBox_ShowItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12296 | PyObject *resultobj; | |
12297 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12298 | int arg2 ; | |
e811c8ce | 12299 | bool arg3 = (bool) True ; |
d14a1e28 | 12300 | PyObject * obj0 = 0 ; |
994141e6 | 12301 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12302 | PyObject * obj2 = 0 ; |
12303 | char *kwnames[] = { | |
12304 | (char *) "self",(char *) "n",(char *) "show", NULL | |
12305 | }; | |
12306 | ||
994141e6 | 12307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:RadioBox_ShowItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
12308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12310 | arg2 = (int) SWIG_AsInt(obj1); | |
12311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 12312 | if (obj2) { |
15afbcd0 RD |
12313 | arg3 = (bool) SWIG_AsBool(obj2); |
12314 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12315 | } |
12316 | { | |
12317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12318 | (arg1)->Show(arg2,arg3); | |
12319 | ||
12320 | wxPyEndAllowThreads(__tstate); | |
12321 | if (PyErr_Occurred()) SWIG_fail; | |
12322 | } | |
12323 | Py_INCREF(Py_None); resultobj = Py_None; | |
12324 | return resultobj; | |
12325 | fail: | |
12326 | return NULL; | |
12327 | } | |
12328 | ||
12329 | ||
12330 | static PyObject *_wrap_RadioBox_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12331 | PyObject *resultobj; | |
12332 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12333 | int result; | |
12334 | PyObject * obj0 = 0 ; | |
12335 | char *kwnames[] = { | |
12336 | (char *) "self", NULL | |
12337 | }; | |
12338 | ||
12339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12342 | { |
12343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12344 | result = (int)wxRadioBox_GetColumnCount((wxRadioBox const *)arg1); | |
12345 | ||
12346 | wxPyEndAllowThreads(__tstate); | |
12347 | if (PyErr_Occurred()) SWIG_fail; | |
12348 | } | |
15afbcd0 | 12349 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12350 | return resultobj; |
12351 | fail: | |
12352 | return NULL; | |
12353 | } | |
12354 | ||
12355 | ||
12356 | static PyObject *_wrap_RadioBox_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12357 | PyObject *resultobj; | |
12358 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12359 | int result; | |
12360 | PyObject * obj0 = 0 ; | |
12361 | char *kwnames[] = { | |
12362 | (char *) "self", NULL | |
12363 | }; | |
12364 | ||
12365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioBox_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12368 | { |
12369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12370 | result = (int)wxRadioBox_GetRowCount((wxRadioBox const *)arg1); | |
12371 | ||
12372 | wxPyEndAllowThreads(__tstate); | |
12373 | if (PyErr_Occurred()) SWIG_fail; | |
12374 | } | |
15afbcd0 | 12375 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12376 | return resultobj; |
12377 | fail: | |
12378 | return NULL; | |
12379 | } | |
12380 | ||
12381 | ||
12382 | static PyObject *_wrap_RadioBox_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12383 | PyObject *resultobj; | |
12384 | wxRadioBox *arg1 = (wxRadioBox *) 0 ; | |
12385 | int arg2 ; | |
12386 | int arg3 ; | |
12387 | long arg4 ; | |
12388 | int result; | |
12389 | PyObject * obj0 = 0 ; | |
994141e6 RD |
12390 | PyObject * obj1 = 0 ; |
12391 | PyObject * obj2 = 0 ; | |
12392 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
12393 | char *kwnames[] = { |
12394 | (char *) "self",(char *) "item",(char *) "dir",(char *) "style", NULL | |
12395 | }; | |
12396 | ||
994141e6 | 12397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:RadioBox_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
12398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioBox, |
12399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12400 | arg2 = (int) SWIG_AsInt(obj1); | |
12401 | if (PyErr_Occurred()) SWIG_fail; | |
12402 | arg3 = (wxDirection) SWIG_AsInt(obj2); | |
12403 | if (PyErr_Occurred()) SWIG_fail; | |
12404 | arg4 = (long) SWIG_AsLong(obj3); | |
12405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12406 | { |
12407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12408 | result = (int)wxRadioBox_GetNextItem((wxRadioBox const *)arg1,arg2,(wxDirection )arg3,arg4); | |
12409 | ||
12410 | wxPyEndAllowThreads(__tstate); | |
12411 | if (PyErr_Occurred()) SWIG_fail; | |
12412 | } | |
15afbcd0 | 12413 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
12414 | return resultobj; |
12415 | fail: | |
12416 | return NULL; | |
12417 | } | |
12418 | ||
12419 | ||
22bfe96c RD |
12420 | static PyObject *_wrap_RadioBox_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12421 | PyObject *resultobj; | |
12422 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12423 | wxVisualAttributes result; | |
12424 | PyObject * obj0 = 0 ; | |
12425 | char *kwnames[] = { | |
12426 | (char *) "variant", NULL | |
12427 | }; | |
12428 | ||
12429 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioBox_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12430 | if (obj0) { | |
12431 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12432 | if (PyErr_Occurred()) SWIG_fail; | |
12433 | } | |
12434 | { | |
110da5b0 | 12435 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12436 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12437 | result = wxRadioBox::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12438 | ||
12439 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12440 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12441 | } |
12442 | { | |
12443 | wxVisualAttributes * resultptr; | |
12444 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12445 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12446 | } | |
12447 | return resultobj; | |
12448 | fail: | |
12449 | return NULL; | |
12450 | } | |
12451 | ||
12452 | ||
d14a1e28 RD |
12453 | static PyObject * RadioBox_swigregister(PyObject *self, PyObject *args) { |
12454 | PyObject *obj; | |
12455 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12456 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioBox, obj); | |
12457 | Py_INCREF(obj); | |
12458 | return Py_BuildValue((char *)""); | |
12459 | } | |
12460 | static PyObject *_wrap_new_RadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12461 | PyObject *resultobj; | |
12462 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12463 | int arg2 = (int) -1 ; |
12464 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
12465 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
12466 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
12467 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
12468 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
12469 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
12470 | long arg6 = (long) 0 ; | |
12471 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
12472 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
12473 | wxString const &arg8_defvalue = wxPyRadioButtonNameStr ; | |
12474 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
12475 | wxRadioButton *result; | |
e811c8ce | 12476 | bool temp3 = False ; |
d14a1e28 RD |
12477 | wxPoint temp4 ; |
12478 | wxSize temp5 ; | |
e811c8ce | 12479 | bool temp8 = False ; |
d14a1e28 | 12480 | PyObject * obj0 = 0 ; |
994141e6 | 12481 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
12482 | PyObject * obj2 = 0 ; |
12483 | PyObject * obj3 = 0 ; | |
12484 | PyObject * obj4 = 0 ; | |
994141e6 | 12485 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
12486 | PyObject * obj6 = 0 ; |
12487 | PyObject * obj7 = 0 ; | |
12488 | char *kwnames[] = { | |
12489 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12490 | }; | |
12491 | ||
248ed943 | 12492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_RadioButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
12493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12495 | if (obj1) { |
12496 | arg2 = (int) SWIG_AsInt(obj1); | |
12497 | if (PyErr_Occurred()) SWIG_fail; | |
12498 | } | |
12499 | if (obj2) { | |
12500 | { | |
12501 | arg3 = wxString_in_helper(obj2); | |
12502 | if (arg3 == NULL) SWIG_fail; | |
12503 | temp3 = True; | |
12504 | } | |
d14a1e28 RD |
12505 | } |
12506 | if (obj3) { | |
12507 | { | |
12508 | arg4 = &temp4; | |
12509 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
12510 | } | |
12511 | } | |
12512 | if (obj4) { | |
12513 | { | |
12514 | arg5 = &temp5; | |
12515 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
12516 | } | |
12517 | } | |
994141e6 | 12518 | if (obj5) { |
15afbcd0 RD |
12519 | arg6 = (long) SWIG_AsLong(obj5); |
12520 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12521 | } |
d14a1e28 | 12522 | if (obj6) { |
15afbcd0 RD |
12523 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
12524 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12525 | SWIG_fail; | |
d14a1e28 | 12526 | if (arg7 == NULL) { |
15afbcd0 RD |
12527 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12528 | SWIG_fail; | |
d14a1e28 RD |
12529 | } |
12530 | } | |
12531 | if (obj7) { | |
12532 | { | |
12533 | arg8 = wxString_in_helper(obj7); | |
12534 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 12535 | temp8 = True; |
d14a1e28 RD |
12536 | } |
12537 | } | |
12538 | { | |
e3b71cb8 | 12539 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12540 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12541 | result = (wxRadioButton *)new wxRadioButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
12542 | ||
12543 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12544 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12545 | } |
15afbcd0 | 12546 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12547 | { |
12548 | if (temp3) | |
12549 | delete arg3; | |
12550 | } | |
12551 | { | |
12552 | if (temp8) | |
12553 | delete arg8; | |
12554 | } | |
12555 | return resultobj; | |
12556 | fail: | |
12557 | { | |
12558 | if (temp3) | |
12559 | delete arg3; | |
12560 | } | |
12561 | { | |
12562 | if (temp8) | |
12563 | delete arg8; | |
12564 | } | |
12565 | return NULL; | |
12566 | } | |
12567 | ||
12568 | ||
12569 | static PyObject *_wrap_new_PreRadioButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12570 | PyObject *resultobj; | |
12571 | wxRadioButton *result; | |
12572 | char *kwnames[] = { | |
12573 | NULL | |
12574 | }; | |
12575 | ||
12576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreRadioButton",kwnames)) goto fail; | |
12577 | { | |
e3b71cb8 | 12578 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12579 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12580 | result = (wxRadioButton *)new wxRadioButton(); | |
12581 | ||
12582 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12583 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12584 | } |
15afbcd0 | 12585 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxRadioButton, 1); |
d14a1e28 RD |
12586 | return resultobj; |
12587 | fail: | |
12588 | return NULL; | |
12589 | } | |
12590 | ||
12591 | ||
12592 | static PyObject *_wrap_RadioButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12593 | PyObject *resultobj; | |
12594 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12595 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12596 | int arg3 = (int) -1 ; |
12597 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
12598 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
12599 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
12600 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
12601 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
12602 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
12603 | long arg7 = (long) 0 ; | |
12604 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
12605 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
12606 | wxString const &arg9_defvalue = wxPyRadioButtonNameStr ; | |
12607 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
12608 | bool result; | |
e811c8ce | 12609 | bool temp4 = False ; |
d14a1e28 RD |
12610 | wxPoint temp5 ; |
12611 | wxSize temp6 ; | |
e811c8ce | 12612 | bool temp9 = False ; |
d14a1e28 RD |
12613 | PyObject * obj0 = 0 ; |
12614 | PyObject * obj1 = 0 ; | |
994141e6 | 12615 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
12616 | PyObject * obj3 = 0 ; |
12617 | PyObject * obj4 = 0 ; | |
12618 | PyObject * obj5 = 0 ; | |
994141e6 | 12619 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
12620 | PyObject * obj7 = 0 ; |
12621 | PyObject * obj8 = 0 ; | |
12622 | char *kwnames[] = { | |
12623 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
12624 | }; | |
12625 | ||
248ed943 | 12626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:RadioButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
12627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12631 | if (obj2) { |
12632 | arg3 = (int) SWIG_AsInt(obj2); | |
12633 | if (PyErr_Occurred()) SWIG_fail; | |
12634 | } | |
12635 | if (obj3) { | |
12636 | { | |
12637 | arg4 = wxString_in_helper(obj3); | |
12638 | if (arg4 == NULL) SWIG_fail; | |
12639 | temp4 = True; | |
12640 | } | |
d14a1e28 RD |
12641 | } |
12642 | if (obj4) { | |
12643 | { | |
12644 | arg5 = &temp5; | |
12645 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
12646 | } | |
12647 | } | |
12648 | if (obj5) { | |
12649 | { | |
12650 | arg6 = &temp6; | |
12651 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
12652 | } | |
12653 | } | |
994141e6 | 12654 | if (obj6) { |
15afbcd0 RD |
12655 | arg7 = (long) SWIG_AsLong(obj6); |
12656 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12657 | } |
d14a1e28 | 12658 | if (obj7) { |
15afbcd0 RD |
12659 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
12660 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12661 | SWIG_fail; | |
d14a1e28 | 12662 | if (arg8 == NULL) { |
15afbcd0 RD |
12663 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12664 | SWIG_fail; | |
d14a1e28 RD |
12665 | } |
12666 | } | |
12667 | if (obj8) { | |
12668 | { | |
12669 | arg9 = wxString_in_helper(obj8); | |
12670 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 12671 | temp9 = True; |
d14a1e28 RD |
12672 | } |
12673 | } | |
12674 | { | |
12675 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12676 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
12677 | ||
12678 | wxPyEndAllowThreads(__tstate); | |
12679 | if (PyErr_Occurred()) SWIG_fail; | |
12680 | } | |
4f89f6a3 RD |
12681 | { |
12682 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12683 | } | |
d14a1e28 RD |
12684 | { |
12685 | if (temp4) | |
12686 | delete arg4; | |
12687 | } | |
12688 | { | |
12689 | if (temp9) | |
12690 | delete arg9; | |
12691 | } | |
12692 | return resultobj; | |
12693 | fail: | |
12694 | { | |
12695 | if (temp4) | |
12696 | delete arg4; | |
12697 | } | |
12698 | { | |
12699 | if (temp9) | |
12700 | delete arg9; | |
12701 | } | |
12702 | return NULL; | |
12703 | } | |
12704 | ||
12705 | ||
12706 | static PyObject *_wrap_RadioButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12707 | PyObject *resultobj; | |
12708 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12709 | bool result; | |
12710 | PyObject * obj0 = 0 ; | |
12711 | char *kwnames[] = { | |
12712 | (char *) "self", NULL | |
12713 | }; | |
12714 | ||
12715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:RadioButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
12716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
12718 | { |
12719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12720 | result = (bool)(arg1)->GetValue(); | |
12721 | ||
12722 | wxPyEndAllowThreads(__tstate); | |
12723 | if (PyErr_Occurred()) SWIG_fail; | |
12724 | } | |
4f89f6a3 RD |
12725 | { |
12726 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
12727 | } | |
d14a1e28 RD |
12728 | return resultobj; |
12729 | fail: | |
12730 | return NULL; | |
12731 | } | |
12732 | ||
12733 | ||
12734 | static PyObject *_wrap_RadioButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12735 | PyObject *resultobj; | |
12736 | wxRadioButton *arg1 = (wxRadioButton *) 0 ; | |
12737 | bool arg2 ; | |
12738 | PyObject * obj0 = 0 ; | |
12739 | PyObject * obj1 = 0 ; | |
12740 | char *kwnames[] = { | |
12741 | (char *) "self",(char *) "value", NULL | |
12742 | }; | |
12743 | ||
12744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:RadioButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
12745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxRadioButton, |
12746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12747 | arg2 = (bool) SWIG_AsBool(obj1); | |
12748 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
12749 | { |
12750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
12751 | (arg1)->SetValue(arg2); | |
12752 | ||
12753 | wxPyEndAllowThreads(__tstate); | |
12754 | if (PyErr_Occurred()) SWIG_fail; | |
12755 | } | |
12756 | Py_INCREF(Py_None); resultobj = Py_None; | |
12757 | return resultobj; | |
12758 | fail: | |
12759 | return NULL; | |
12760 | } | |
12761 | ||
12762 | ||
22bfe96c RD |
12763 | static PyObject *_wrap_RadioButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
12764 | PyObject *resultobj; | |
12765 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
12766 | wxVisualAttributes result; | |
12767 | PyObject * obj0 = 0 ; | |
12768 | char *kwnames[] = { | |
12769 | (char *) "variant", NULL | |
12770 | }; | |
12771 | ||
12772 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:RadioButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
12773 | if (obj0) { | |
12774 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
12775 | if (PyErr_Occurred()) SWIG_fail; | |
12776 | } | |
12777 | { | |
110da5b0 | 12778 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
12779 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12780 | result = wxRadioButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
12781 | ||
12782 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 12783 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
12784 | } |
12785 | { | |
12786 | wxVisualAttributes * resultptr; | |
12787 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
12788 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
12789 | } | |
12790 | return resultobj; | |
12791 | fail: | |
12792 | return NULL; | |
12793 | } | |
12794 | ||
12795 | ||
d14a1e28 RD |
12796 | static PyObject * RadioButton_swigregister(PyObject *self, PyObject *args) { |
12797 | PyObject *obj; | |
12798 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
12799 | SWIG_TypeClientData(SWIGTYPE_p_wxRadioButton, obj); | |
12800 | Py_INCREF(obj); | |
12801 | return Py_BuildValue((char *)""); | |
12802 | } | |
b2dc1044 RD |
12803 | static int _wrap_SliderNameStr_set(PyObject *_val) { |
12804 | PyErr_SetString(PyExc_TypeError,"Variable SliderNameStr is read-only."); | |
12805 | return 1; | |
12806 | } | |
12807 | ||
12808 | ||
12809 | static PyObject *_wrap_SliderNameStr_get() { | |
12810 | PyObject *pyobj; | |
12811 | ||
12812 | { | |
12813 | #if wxUSE_UNICODE | |
12814 | pyobj = PyUnicode_FromWideChar((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12815 | #else | |
12816 | pyobj = PyString_FromStringAndSize((&wxPySliderNameStr)->c_str(), (&wxPySliderNameStr)->Len()); | |
12817 | #endif | |
12818 | } | |
12819 | return pyobj; | |
12820 | } | |
12821 | ||
12822 | ||
d14a1e28 RD |
12823 | static PyObject *_wrap_new_Slider(PyObject *self, PyObject *args, PyObject *kwargs) { |
12824 | PyObject *resultobj; | |
12825 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
12826 | int arg2 = (int) -1 ; |
12827 | int arg3 = (int) 0 ; | |
12828 | int arg4 = (int) 0 ; | |
12829 | int arg5 = (int) 100 ; | |
d14a1e28 RD |
12830 | wxPoint const &arg6_defvalue = wxDefaultPosition ; |
12831 | wxPoint *arg6 = (wxPoint *) &arg6_defvalue ; | |
12832 | wxSize const &arg7_defvalue = wxDefaultSize ; | |
12833 | wxSize *arg7 = (wxSize *) &arg7_defvalue ; | |
12834 | long arg8 = (long) wxSL_HORIZONTAL ; | |
12835 | wxValidator const &arg9_defvalue = wxDefaultValidator ; | |
12836 | wxValidator *arg9 = (wxValidator *) &arg9_defvalue ; | |
12837 | wxString const &arg10_defvalue = wxPySliderNameStr ; | |
12838 | wxString *arg10 = (wxString *) &arg10_defvalue ; | |
12839 | wxSlider *result; | |
12840 | wxPoint temp6 ; | |
12841 | wxSize temp7 ; | |
e811c8ce | 12842 | bool temp10 = False ; |
d14a1e28 | 12843 | PyObject * obj0 = 0 ; |
994141e6 RD |
12844 | PyObject * obj1 = 0 ; |
12845 | PyObject * obj2 = 0 ; | |
12846 | PyObject * obj3 = 0 ; | |
12847 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
12848 | PyObject * obj5 = 0 ; |
12849 | PyObject * obj6 = 0 ; | |
994141e6 | 12850 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
12851 | PyObject * obj8 = 0 ; |
12852 | PyObject * obj9 = 0 ; | |
12853 | char *kwnames[] = { | |
994141e6 | 12854 | (char *) "parent",(char *) "id",(char *) "value",(char *) "minValue",(char *) "maxValue",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL |
d14a1e28 RD |
12855 | }; |
12856 | ||
248ed943 | 12857 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOOO:new_Slider",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
12858 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
12859 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12860 | if (obj1) { |
12861 | arg2 = (int) SWIG_AsInt(obj1); | |
12862 | if (PyErr_Occurred()) SWIG_fail; | |
12863 | } | |
12864 | if (obj2) { | |
12865 | arg3 = (int) SWIG_AsInt(obj2); | |
12866 | if (PyErr_Occurred()) SWIG_fail; | |
12867 | } | |
12868 | if (obj3) { | |
12869 | arg4 = (int) SWIG_AsInt(obj3); | |
12870 | if (PyErr_Occurred()) SWIG_fail; | |
12871 | } | |
12872 | if (obj4) { | |
12873 | arg5 = (int) SWIG_AsInt(obj4); | |
12874 | if (PyErr_Occurred()) SWIG_fail; | |
12875 | } | |
d14a1e28 RD |
12876 | if (obj5) { |
12877 | { | |
12878 | arg6 = &temp6; | |
12879 | if ( ! wxPoint_helper(obj5, &arg6)) SWIG_fail; | |
12880 | } | |
12881 | } | |
12882 | if (obj6) { | |
12883 | { | |
12884 | arg7 = &temp7; | |
12885 | if ( ! wxSize_helper(obj6, &arg7)) SWIG_fail; | |
12886 | } | |
12887 | } | |
994141e6 | 12888 | if (obj7) { |
15afbcd0 RD |
12889 | arg8 = (long) SWIG_AsLong(obj7); |
12890 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 12891 | } |
d14a1e28 | 12892 | if (obj8) { |
15afbcd0 RD |
12893 | if ((SWIG_ConvertPtr(obj8,(void **)(&arg9),SWIGTYPE_p_wxValidator, |
12894 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
12895 | SWIG_fail; | |
d14a1e28 | 12896 | if (arg9 == NULL) { |
15afbcd0 RD |
12897 | PyErr_SetString(PyExc_TypeError,"null reference"); |
12898 | SWIG_fail; | |
d14a1e28 RD |
12899 | } |
12900 | } | |
12901 | if (obj9) { | |
12902 | { | |
12903 | arg10 = wxString_in_helper(obj9); | |
12904 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 12905 | temp10 = True; |
d14a1e28 RD |
12906 | } |
12907 | } | |
12908 | { | |
e3b71cb8 | 12909 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12910 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12911 | result = (wxSlider *)new wxSlider(arg1,arg2,arg3,arg4,arg5,(wxPoint const &)*arg6,(wxSize const &)*arg7,arg8,(wxValidator const &)*arg9,(wxString const &)*arg10); | |
12912 | ||
12913 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12914 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12915 | } |
15afbcd0 | 12916 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12917 | { |
12918 | if (temp10) | |
12919 | delete arg10; | |
12920 | } | |
12921 | return resultobj; | |
12922 | fail: | |
12923 | { | |
12924 | if (temp10) | |
12925 | delete arg10; | |
12926 | } | |
12927 | return NULL; | |
12928 | } | |
12929 | ||
12930 | ||
12931 | static PyObject *_wrap_new_PreSlider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12932 | PyObject *resultobj; | |
12933 | wxSlider *result; | |
12934 | char *kwnames[] = { | |
12935 | NULL | |
12936 | }; | |
12937 | ||
12938 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreSlider",kwnames)) goto fail; | |
12939 | { | |
e3b71cb8 | 12940 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
12941 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
12942 | result = (wxSlider *)new wxSlider(); | |
12943 | ||
12944 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 12945 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 12946 | } |
15afbcd0 | 12947 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSlider, 1); |
d14a1e28 RD |
12948 | return resultobj; |
12949 | fail: | |
12950 | return NULL; | |
12951 | } | |
12952 | ||
12953 | ||
12954 | static PyObject *_wrap_Slider_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
12955 | PyObject *resultobj; | |
12956 | wxSlider *arg1 = (wxSlider *) 0 ; | |
12957 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
12958 | int arg3 = (int) -1 ; |
12959 | int arg4 = (int) 0 ; | |
12960 | int arg5 = (int) 0 ; | |
12961 | int arg6 = (int) 100 ; | |
d14a1e28 RD |
12962 | wxPoint const &arg7_defvalue = wxDefaultPosition ; |
12963 | wxPoint *arg7 = (wxPoint *) &arg7_defvalue ; | |
12964 | wxSize const &arg8_defvalue = wxDefaultSize ; | |
12965 | wxSize *arg8 = (wxSize *) &arg8_defvalue ; | |
12966 | long arg9 = (long) wxSL_HORIZONTAL ; | |
12967 | wxValidator const &arg10_defvalue = wxDefaultValidator ; | |
12968 | wxValidator *arg10 = (wxValidator *) &arg10_defvalue ; | |
12969 | wxString const &arg11_defvalue = wxPySliderNameStr ; | |
12970 | wxString *arg11 = (wxString *) &arg11_defvalue ; | |
12971 | bool result; | |
12972 | wxPoint temp7 ; | |
12973 | wxSize temp8 ; | |
e811c8ce | 12974 | bool temp11 = False ; |
d14a1e28 RD |
12975 | PyObject * obj0 = 0 ; |
12976 | PyObject * obj1 = 0 ; | |
994141e6 RD |
12977 | PyObject * obj2 = 0 ; |
12978 | PyObject * obj3 = 0 ; | |
12979 | PyObject * obj4 = 0 ; | |
12980 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
12981 | PyObject * obj6 = 0 ; |
12982 | PyObject * obj7 = 0 ; | |
994141e6 | 12983 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
12984 | PyObject * obj9 = 0 ; |
12985 | PyObject * obj10 = 0 ; | |
12986 | char *kwnames[] = { | |
994141e6 | 12987 | (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 |
12988 | }; |
12989 | ||
248ed943 | 12990 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOOO:Slider_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9,&obj10)) goto fail; |
15afbcd0 RD |
12991 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
12992 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
12993 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
12994 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
12995 | if (obj2) { |
12996 | arg3 = (int) SWIG_AsInt(obj2); | |
12997 | if (PyErr_Occurred()) SWIG_fail; | |
12998 | } | |
12999 | if (obj3) { | |
13000 | arg4 = (int) SWIG_AsInt(obj3); | |
13001 | if (PyErr_Occurred()) SWIG_fail; | |
13002 | } | |
13003 | if (obj4) { | |
13004 | arg5 = (int) SWIG_AsInt(obj4); | |
13005 | if (PyErr_Occurred()) SWIG_fail; | |
13006 | } | |
13007 | if (obj5) { | |
13008 | arg6 = (int) SWIG_AsInt(obj5); | |
13009 | if (PyErr_Occurred()) SWIG_fail; | |
13010 | } | |
d14a1e28 RD |
13011 | if (obj6) { |
13012 | { | |
13013 | arg7 = &temp7; | |
13014 | if ( ! wxPoint_helper(obj6, &arg7)) SWIG_fail; | |
13015 | } | |
13016 | } | |
13017 | if (obj7) { | |
13018 | { | |
13019 | arg8 = &temp8; | |
13020 | if ( ! wxSize_helper(obj7, &arg8)) SWIG_fail; | |
13021 | } | |
13022 | } | |
994141e6 | 13023 | if (obj8) { |
15afbcd0 RD |
13024 | arg9 = (long) SWIG_AsLong(obj8); |
13025 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13026 | } |
d14a1e28 | 13027 | if (obj9) { |
15afbcd0 RD |
13028 | if ((SWIG_ConvertPtr(obj9,(void **)(&arg10),SWIGTYPE_p_wxValidator, |
13029 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13030 | SWIG_fail; | |
d14a1e28 | 13031 | if (arg10 == NULL) { |
15afbcd0 RD |
13032 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13033 | SWIG_fail; | |
d14a1e28 RD |
13034 | } |
13035 | } | |
13036 | if (obj10) { | |
13037 | { | |
13038 | arg11 = wxString_in_helper(obj10); | |
13039 | if (arg11 == NULL) SWIG_fail; | |
e811c8ce | 13040 | temp11 = True; |
d14a1e28 RD |
13041 | } |
13042 | } | |
13043 | { | |
13044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13045 | result = (bool)(arg1)->Create(arg2,arg3,arg4,arg5,arg6,(wxPoint const &)*arg7,(wxSize const &)*arg8,arg9,(wxValidator const &)*arg10,(wxString const &)*arg11); | |
13046 | ||
13047 | wxPyEndAllowThreads(__tstate); | |
13048 | if (PyErr_Occurred()) SWIG_fail; | |
13049 | } | |
4f89f6a3 RD |
13050 | { |
13051 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13052 | } | |
d14a1e28 RD |
13053 | { |
13054 | if (temp11) | |
13055 | delete arg11; | |
13056 | } | |
13057 | return resultobj; | |
13058 | fail: | |
13059 | { | |
13060 | if (temp11) | |
13061 | delete arg11; | |
13062 | } | |
13063 | return NULL; | |
13064 | } | |
13065 | ||
13066 | ||
13067 | static PyObject *_wrap_Slider_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13068 | PyObject *resultobj; | |
13069 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13070 | int result; | |
13071 | PyObject * obj0 = 0 ; | |
13072 | char *kwnames[] = { | |
13073 | (char *) "self", NULL | |
13074 | }; | |
13075 | ||
13076 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13077 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13078 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13079 | { |
13080 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13081 | result = (int)((wxSlider const *)arg1)->GetValue(); | |
13082 | ||
13083 | wxPyEndAllowThreads(__tstate); | |
13084 | if (PyErr_Occurred()) SWIG_fail; | |
13085 | } | |
15afbcd0 | 13086 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13087 | return resultobj; |
13088 | fail: | |
13089 | return NULL; | |
13090 | } | |
13091 | ||
13092 | ||
13093 | static PyObject *_wrap_Slider_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13094 | PyObject *resultobj; | |
13095 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13096 | int arg2 ; | |
13097 | PyObject * obj0 = 0 ; | |
994141e6 | 13098 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13099 | char *kwnames[] = { |
13100 | (char *) "self",(char *) "value", NULL | |
13101 | }; | |
13102 | ||
994141e6 | 13103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetValue",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13106 | arg2 = (int) SWIG_AsInt(obj1); | |
13107 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13108 | { |
13109 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13110 | (arg1)->SetValue(arg2); | |
13111 | ||
13112 | wxPyEndAllowThreads(__tstate); | |
13113 | if (PyErr_Occurred()) SWIG_fail; | |
13114 | } | |
13115 | Py_INCREF(Py_None); resultobj = Py_None; | |
13116 | return resultobj; | |
13117 | fail: | |
13118 | return NULL; | |
13119 | } | |
13120 | ||
13121 | ||
13122 | static PyObject *_wrap_Slider_SetRange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13123 | PyObject *resultobj; | |
13124 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13125 | int arg2 ; | |
13126 | int arg3 ; | |
13127 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13128 | PyObject * obj1 = 0 ; |
13129 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13130 | char *kwnames[] = { |
13131 | (char *) "self",(char *) "minValue",(char *) "maxValue", NULL | |
13132 | }; | |
13133 | ||
994141e6 | 13134 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetRange",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13135 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13136 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13137 | arg2 = (int) SWIG_AsInt(obj1); | |
13138 | if (PyErr_Occurred()) SWIG_fail; | |
13139 | arg3 = (int) SWIG_AsInt(obj2); | |
13140 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13141 | { |
13142 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13143 | (arg1)->SetRange(arg2,arg3); | |
13144 | ||
13145 | wxPyEndAllowThreads(__tstate); | |
13146 | if (PyErr_Occurred()) SWIG_fail; | |
13147 | } | |
13148 | Py_INCREF(Py_None); resultobj = Py_None; | |
13149 | return resultobj; | |
13150 | fail: | |
13151 | return NULL; | |
13152 | } | |
13153 | ||
13154 | ||
13155 | static PyObject *_wrap_Slider_GetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13156 | PyObject *resultobj; | |
13157 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13158 | int result; | |
13159 | PyObject * obj0 = 0 ; | |
13160 | char *kwnames[] = { | |
13161 | (char *) "self", NULL | |
13162 | }; | |
13163 | ||
13164 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13165 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13166 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13167 | { |
13168 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13169 | result = (int)((wxSlider const *)arg1)->GetMin(); | |
13170 | ||
13171 | wxPyEndAllowThreads(__tstate); | |
13172 | if (PyErr_Occurred()) SWIG_fail; | |
13173 | } | |
15afbcd0 | 13174 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13175 | return resultobj; |
13176 | fail: | |
13177 | return NULL; | |
13178 | } | |
13179 | ||
13180 | ||
13181 | static PyObject *_wrap_Slider_GetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13182 | PyObject *resultobj; | |
13183 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13184 | int result; | |
13185 | PyObject * obj0 = 0 ; | |
13186 | char *kwnames[] = { | |
13187 | (char *) "self", NULL | |
13188 | }; | |
13189 | ||
13190 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetMax",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13191 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13192 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13193 | { |
13194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13195 | result = (int)((wxSlider const *)arg1)->GetMax(); | |
13196 | ||
13197 | wxPyEndAllowThreads(__tstate); | |
13198 | if (PyErr_Occurred()) SWIG_fail; | |
13199 | } | |
15afbcd0 | 13200 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13201 | return resultobj; |
13202 | fail: | |
13203 | return NULL; | |
13204 | } | |
13205 | ||
13206 | ||
13207 | static PyObject *_wrap_Slider_SetMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13208 | PyObject *resultobj; | |
13209 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13210 | int arg2 ; | |
13211 | PyObject * obj0 = 0 ; | |
994141e6 | 13212 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13213 | char *kwnames[] = { |
13214 | (char *) "self",(char *) "minValue", NULL | |
13215 | }; | |
13216 | ||
994141e6 | 13217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMin",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13220 | arg2 = (int) SWIG_AsInt(obj1); | |
13221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13222 | { |
13223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13224 | (arg1)->SetMin(arg2); | |
13225 | ||
13226 | wxPyEndAllowThreads(__tstate); | |
13227 | if (PyErr_Occurred()) SWIG_fail; | |
13228 | } | |
13229 | Py_INCREF(Py_None); resultobj = Py_None; | |
13230 | return resultobj; | |
13231 | fail: | |
13232 | return NULL; | |
13233 | } | |
13234 | ||
13235 | ||
13236 | static PyObject *_wrap_Slider_SetMax(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13237 | PyObject *resultobj; | |
13238 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13239 | int arg2 ; | |
13240 | PyObject * obj0 = 0 ; | |
994141e6 | 13241 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13242 | char *kwnames[] = { |
13243 | (char *) "self",(char *) "maxValue", NULL | |
13244 | }; | |
13245 | ||
994141e6 | 13246 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetMax",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13247 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13248 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13249 | arg2 = (int) SWIG_AsInt(obj1); | |
13250 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13251 | { |
13252 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13253 | (arg1)->SetMax(arg2); | |
13254 | ||
13255 | wxPyEndAllowThreads(__tstate); | |
13256 | if (PyErr_Occurred()) SWIG_fail; | |
13257 | } | |
13258 | Py_INCREF(Py_None); resultobj = Py_None; | |
13259 | return resultobj; | |
13260 | fail: | |
13261 | return NULL; | |
13262 | } | |
13263 | ||
13264 | ||
13265 | static PyObject *_wrap_Slider_SetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13266 | PyObject *resultobj; | |
13267 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13268 | int arg2 ; | |
13269 | PyObject * obj0 = 0 ; | |
994141e6 | 13270 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13271 | char *kwnames[] = { |
13272 | (char *) "self",(char *) "lineSize", NULL | |
13273 | }; | |
13274 | ||
994141e6 | 13275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetLineSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13278 | arg2 = (int) SWIG_AsInt(obj1); | |
13279 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13280 | { |
13281 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13282 | (arg1)->SetLineSize(arg2); | |
13283 | ||
13284 | wxPyEndAllowThreads(__tstate); | |
13285 | if (PyErr_Occurred()) SWIG_fail; | |
13286 | } | |
13287 | Py_INCREF(Py_None); resultobj = Py_None; | |
13288 | return resultobj; | |
13289 | fail: | |
13290 | return NULL; | |
13291 | } | |
13292 | ||
13293 | ||
13294 | static PyObject *_wrap_Slider_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13295 | PyObject *resultobj; | |
13296 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13297 | int arg2 ; | |
13298 | PyObject * obj0 = 0 ; | |
994141e6 | 13299 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13300 | char *kwnames[] = { |
13301 | (char *) "self",(char *) "pageSize", NULL | |
13302 | }; | |
13303 | ||
994141e6 | 13304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetPageSize",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13307 | arg2 = (int) SWIG_AsInt(obj1); | |
13308 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13309 | { |
13310 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13311 | (arg1)->SetPageSize(arg2); | |
13312 | ||
13313 | wxPyEndAllowThreads(__tstate); | |
13314 | if (PyErr_Occurred()) SWIG_fail; | |
13315 | } | |
13316 | Py_INCREF(Py_None); resultobj = Py_None; | |
13317 | return resultobj; | |
13318 | fail: | |
13319 | return NULL; | |
13320 | } | |
13321 | ||
13322 | ||
13323 | static PyObject *_wrap_Slider_GetLineSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13324 | PyObject *resultobj; | |
13325 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13326 | int result; | |
13327 | PyObject * obj0 = 0 ; | |
13328 | char *kwnames[] = { | |
13329 | (char *) "self", NULL | |
13330 | }; | |
13331 | ||
13332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetLineSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13335 | { |
13336 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13337 | result = (int)((wxSlider const *)arg1)->GetLineSize(); | |
13338 | ||
13339 | wxPyEndAllowThreads(__tstate); | |
13340 | if (PyErr_Occurred()) SWIG_fail; | |
13341 | } | |
15afbcd0 | 13342 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13343 | return resultobj; |
13344 | fail: | |
13345 | return NULL; | |
13346 | } | |
13347 | ||
13348 | ||
13349 | static PyObject *_wrap_Slider_GetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13350 | PyObject *resultobj; | |
13351 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13352 | int result; | |
13353 | PyObject * obj0 = 0 ; | |
13354 | char *kwnames[] = { | |
13355 | (char *) "self", NULL | |
13356 | }; | |
13357 | ||
13358 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetPageSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13359 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13360 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13361 | { |
13362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13363 | result = (int)((wxSlider const *)arg1)->GetPageSize(); | |
13364 | ||
13365 | wxPyEndAllowThreads(__tstate); | |
13366 | if (PyErr_Occurred()) SWIG_fail; | |
13367 | } | |
15afbcd0 | 13368 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13369 | return resultobj; |
13370 | fail: | |
13371 | return NULL; | |
13372 | } | |
13373 | ||
13374 | ||
13375 | static PyObject *_wrap_Slider_SetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13376 | PyObject *resultobj; | |
13377 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13378 | int arg2 ; | |
13379 | PyObject * obj0 = 0 ; | |
994141e6 | 13380 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13381 | char *kwnames[] = { |
13382 | (char *) "self",(char *) "lenPixels", NULL | |
13383 | }; | |
13384 | ||
994141e6 | 13385 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetThumbLength",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13386 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13387 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13388 | arg2 = (int) SWIG_AsInt(obj1); | |
13389 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13390 | { |
13391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13392 | (arg1)->SetThumbLength(arg2); | |
13393 | ||
13394 | wxPyEndAllowThreads(__tstate); | |
13395 | if (PyErr_Occurred()) SWIG_fail; | |
13396 | } | |
13397 | Py_INCREF(Py_None); resultobj = Py_None; | |
13398 | return resultobj; | |
13399 | fail: | |
13400 | return NULL; | |
13401 | } | |
13402 | ||
13403 | ||
13404 | static PyObject *_wrap_Slider_GetThumbLength(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13405 | PyObject *resultobj; | |
13406 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13407 | int result; | |
13408 | PyObject * obj0 = 0 ; | |
13409 | char *kwnames[] = { | |
13410 | (char *) "self", NULL | |
13411 | }; | |
13412 | ||
13413 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetThumbLength",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13414 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13415 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13416 | { |
13417 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13418 | result = (int)((wxSlider const *)arg1)->GetThumbLength(); | |
13419 | ||
13420 | wxPyEndAllowThreads(__tstate); | |
13421 | if (PyErr_Occurred()) SWIG_fail; | |
13422 | } | |
15afbcd0 | 13423 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13424 | return resultobj; |
13425 | fail: | |
13426 | return NULL; | |
13427 | } | |
13428 | ||
13429 | ||
13430 | static PyObject *_wrap_Slider_SetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13431 | PyObject *resultobj; | |
13432 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13433 | int arg2 ; | |
994141e6 | 13434 | int arg3 = (int) 1 ; |
d14a1e28 | 13435 | PyObject * obj0 = 0 ; |
994141e6 RD |
13436 | PyObject * obj1 = 0 ; |
13437 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13438 | char *kwnames[] = { |
13439 | (char *) "self",(char *) "n",(char *) "pos", NULL | |
13440 | }; | |
13441 | ||
994141e6 | 13442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:Slider_SetTickFreq",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13445 | arg2 = (int) SWIG_AsInt(obj1); | |
13446 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13447 | if (obj2) { |
15afbcd0 RD |
13448 | arg3 = (int) SWIG_AsInt(obj2); |
13449 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13450 | } |
d14a1e28 RD |
13451 | { |
13452 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13453 | (arg1)->SetTickFreq(arg2,arg3); | |
13454 | ||
13455 | wxPyEndAllowThreads(__tstate); | |
13456 | if (PyErr_Occurred()) SWIG_fail; | |
13457 | } | |
13458 | Py_INCREF(Py_None); resultobj = Py_None; | |
13459 | return resultobj; | |
13460 | fail: | |
13461 | return NULL; | |
13462 | } | |
13463 | ||
13464 | ||
13465 | static PyObject *_wrap_Slider_GetTickFreq(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13466 | PyObject *resultobj; | |
13467 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13468 | int result; | |
13469 | PyObject * obj0 = 0 ; | |
13470 | char *kwnames[] = { | |
13471 | (char *) "self", NULL | |
13472 | }; | |
13473 | ||
13474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetTickFreq",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13477 | { |
13478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13479 | result = (int)((wxSlider const *)arg1)->GetTickFreq(); | |
13480 | ||
13481 | wxPyEndAllowThreads(__tstate); | |
13482 | if (PyErr_Occurred()) SWIG_fail; | |
13483 | } | |
15afbcd0 | 13484 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13485 | return resultobj; |
13486 | fail: | |
13487 | return NULL; | |
13488 | } | |
13489 | ||
13490 | ||
13491 | static PyObject *_wrap_Slider_ClearTicks(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13492 | PyObject *resultobj; | |
13493 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13494 | PyObject * obj0 = 0 ; | |
13495 | char *kwnames[] = { | |
13496 | (char *) "self", NULL | |
13497 | }; | |
13498 | ||
13499 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearTicks",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13500 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13501 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13502 | { |
13503 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13504 | (arg1)->ClearTicks(); | |
13505 | ||
13506 | wxPyEndAllowThreads(__tstate); | |
13507 | if (PyErr_Occurred()) SWIG_fail; | |
13508 | } | |
13509 | Py_INCREF(Py_None); resultobj = Py_None; | |
13510 | return resultobj; | |
13511 | fail: | |
13512 | return NULL; | |
13513 | } | |
13514 | ||
13515 | ||
13516 | static PyObject *_wrap_Slider_SetTick(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13517 | PyObject *resultobj; | |
13518 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13519 | int arg2 ; | |
13520 | PyObject * obj0 = 0 ; | |
994141e6 | 13521 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13522 | char *kwnames[] = { |
13523 | (char *) "self",(char *) "tickPos", NULL | |
13524 | }; | |
13525 | ||
994141e6 | 13526 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Slider_SetTick",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
13527 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13528 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13529 | arg2 = (int) SWIG_AsInt(obj1); | |
13530 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13531 | { |
13532 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13533 | (arg1)->SetTick(arg2); | |
13534 | ||
13535 | wxPyEndAllowThreads(__tstate); | |
13536 | if (PyErr_Occurred()) SWIG_fail; | |
13537 | } | |
13538 | Py_INCREF(Py_None); resultobj = Py_None; | |
13539 | return resultobj; | |
13540 | fail: | |
13541 | return NULL; | |
13542 | } | |
13543 | ||
13544 | ||
13545 | static PyObject *_wrap_Slider_ClearSel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13546 | PyObject *resultobj; | |
13547 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13548 | PyObject * obj0 = 0 ; | |
13549 | char *kwnames[] = { | |
13550 | (char *) "self", NULL | |
13551 | }; | |
13552 | ||
13553 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_ClearSel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13554 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13555 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13556 | { |
13557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13558 | (arg1)->ClearSel(); | |
13559 | ||
13560 | wxPyEndAllowThreads(__tstate); | |
13561 | if (PyErr_Occurred()) SWIG_fail; | |
13562 | } | |
13563 | Py_INCREF(Py_None); resultobj = Py_None; | |
13564 | return resultobj; | |
13565 | fail: | |
13566 | return NULL; | |
13567 | } | |
13568 | ||
13569 | ||
13570 | static PyObject *_wrap_Slider_GetSelEnd(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13571 | PyObject *resultobj; | |
13572 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13573 | int result; | |
13574 | PyObject * obj0 = 0 ; | |
13575 | char *kwnames[] = { | |
13576 | (char *) "self", NULL | |
13577 | }; | |
13578 | ||
13579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelEnd",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13582 | { |
13583 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13584 | result = (int)((wxSlider const *)arg1)->GetSelEnd(); | |
13585 | ||
13586 | wxPyEndAllowThreads(__tstate); | |
13587 | if (PyErr_Occurred()) SWIG_fail; | |
13588 | } | |
15afbcd0 | 13589 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13590 | return resultobj; |
13591 | fail: | |
13592 | return NULL; | |
13593 | } | |
13594 | ||
13595 | ||
13596 | static PyObject *_wrap_Slider_GetSelStart(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13597 | PyObject *resultobj; | |
13598 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13599 | int result; | |
13600 | PyObject * obj0 = 0 ; | |
13601 | char *kwnames[] = { | |
13602 | (char *) "self", NULL | |
13603 | }; | |
13604 | ||
13605 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Slider_GetSelStart",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
13606 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13607 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
13608 | { |
13609 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13610 | result = (int)((wxSlider const *)arg1)->GetSelStart(); | |
13611 | ||
13612 | wxPyEndAllowThreads(__tstate); | |
13613 | if (PyErr_Occurred()) SWIG_fail; | |
13614 | } | |
15afbcd0 | 13615 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
13616 | return resultobj; |
13617 | fail: | |
13618 | return NULL; | |
13619 | } | |
13620 | ||
13621 | ||
13622 | static PyObject *_wrap_Slider_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13623 | PyObject *resultobj; | |
13624 | wxSlider *arg1 = (wxSlider *) 0 ; | |
13625 | int arg2 ; | |
13626 | int arg3 ; | |
13627 | PyObject * obj0 = 0 ; | |
994141e6 RD |
13628 | PyObject * obj1 = 0 ; |
13629 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
13630 | char *kwnames[] = { |
13631 | (char *) "self",(char *) "min",(char *) "max", NULL | |
13632 | }; | |
13633 | ||
994141e6 | 13634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:Slider_SetSelection",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
13635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxSlider, |
13636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13637 | arg2 = (int) SWIG_AsInt(obj1); | |
13638 | if (PyErr_Occurred()) SWIG_fail; | |
13639 | arg3 = (int) SWIG_AsInt(obj2); | |
13640 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13641 | { |
13642 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13643 | (arg1)->SetSelection(arg2,arg3); | |
13644 | ||
13645 | wxPyEndAllowThreads(__tstate); | |
13646 | if (PyErr_Occurred()) SWIG_fail; | |
13647 | } | |
13648 | Py_INCREF(Py_None); resultobj = Py_None; | |
13649 | return resultobj; | |
13650 | fail: | |
13651 | return NULL; | |
13652 | } | |
13653 | ||
13654 | ||
22bfe96c RD |
13655 | static PyObject *_wrap_Slider_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
13656 | PyObject *resultobj; | |
13657 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
13658 | wxVisualAttributes result; | |
13659 | PyObject * obj0 = 0 ; | |
13660 | char *kwnames[] = { | |
13661 | (char *) "variant", NULL | |
13662 | }; | |
13663 | ||
13664 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Slider_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
13665 | if (obj0) { | |
13666 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
13667 | if (PyErr_Occurred()) SWIG_fail; | |
13668 | } | |
13669 | { | |
110da5b0 | 13670 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
13671 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13672 | result = wxSlider::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
13673 | ||
13674 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 13675 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
13676 | } |
13677 | { | |
13678 | wxVisualAttributes * resultptr; | |
13679 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
13680 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
13681 | } | |
13682 | return resultobj; | |
13683 | fail: | |
13684 | return NULL; | |
13685 | } | |
13686 | ||
13687 | ||
d14a1e28 RD |
13688 | static PyObject * Slider_swigregister(PyObject *self, PyObject *args) { |
13689 | PyObject *obj; | |
13690 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
13691 | SWIG_TypeClientData(SWIGTYPE_p_wxSlider, obj); | |
13692 | Py_INCREF(obj); | |
13693 | return Py_BuildValue((char *)""); | |
13694 | } | |
b2dc1044 RD |
13695 | static int _wrap_ToggleButtonNameStr_set(PyObject *_val) { |
13696 | PyErr_SetString(PyExc_TypeError,"Variable ToggleButtonNameStr is read-only."); | |
13697 | return 1; | |
13698 | } | |
13699 | ||
13700 | ||
13701 | static PyObject *_wrap_ToggleButtonNameStr_get() { | |
13702 | PyObject *pyobj; | |
13703 | ||
13704 | { | |
13705 | #if wxUSE_UNICODE | |
13706 | pyobj = PyUnicode_FromWideChar((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13707 | #else | |
13708 | pyobj = PyString_FromStringAndSize((&wxPyToggleButtonNameStr)->c_str(), (&wxPyToggleButtonNameStr)->Len()); | |
13709 | #endif | |
13710 | } | |
13711 | return pyobj; | |
13712 | } | |
13713 | ||
13714 | ||
d14a1e28 RD |
13715 | static PyObject *_wrap_new_ToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { |
13716 | PyObject *resultobj; | |
13717 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 RD |
13718 | int arg2 = (int) -1 ; |
13719 | wxString const &arg3_defvalue = wxPyEmptyString ; | |
13720 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
d14a1e28 RD |
13721 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
13722 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
13723 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
13724 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
13725 | long arg6 = (long) 0 ; | |
13726 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
13727 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
13728 | wxString const &arg8_defvalue = wxPyToggleButtonNameStr ; | |
13729 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
13730 | wxToggleButton *result; | |
e811c8ce | 13731 | bool temp3 = False ; |
d14a1e28 RD |
13732 | wxPoint temp4 ; |
13733 | wxSize temp5 ; | |
e811c8ce | 13734 | bool temp8 = False ; |
d14a1e28 | 13735 | PyObject * obj0 = 0 ; |
994141e6 | 13736 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
13737 | PyObject * obj2 = 0 ; |
13738 | PyObject * obj3 = 0 ; | |
13739 | PyObject * obj4 = 0 ; | |
994141e6 | 13740 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
13741 | PyObject * obj6 = 0 ; |
13742 | PyObject * obj7 = 0 ; | |
13743 | char *kwnames[] = { | |
13744 | (char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13745 | }; | |
13746 | ||
248ed943 | 13747 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOO:new_ToggleButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
13748 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
13749 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13750 | if (obj1) { |
13751 | arg2 = (int) SWIG_AsInt(obj1); | |
13752 | if (PyErr_Occurred()) SWIG_fail; | |
13753 | } | |
13754 | if (obj2) { | |
13755 | { | |
13756 | arg3 = wxString_in_helper(obj2); | |
13757 | if (arg3 == NULL) SWIG_fail; | |
13758 | temp3 = True; | |
13759 | } | |
d14a1e28 RD |
13760 | } |
13761 | if (obj3) { | |
13762 | { | |
13763 | arg4 = &temp4; | |
13764 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
13765 | } | |
13766 | } | |
13767 | if (obj4) { | |
13768 | { | |
13769 | arg5 = &temp5; | |
13770 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
13771 | } | |
13772 | } | |
994141e6 | 13773 | if (obj5) { |
15afbcd0 RD |
13774 | arg6 = (long) SWIG_AsLong(obj5); |
13775 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13776 | } |
d14a1e28 | 13777 | if (obj6) { |
15afbcd0 RD |
13778 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
13779 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13780 | SWIG_fail; | |
d14a1e28 | 13781 | if (arg7 == NULL) { |
15afbcd0 RD |
13782 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13783 | SWIG_fail; | |
d14a1e28 RD |
13784 | } |
13785 | } | |
13786 | if (obj7) { | |
13787 | { | |
13788 | arg8 = wxString_in_helper(obj7); | |
13789 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 13790 | temp8 = True; |
d14a1e28 RD |
13791 | } |
13792 | } | |
13793 | { | |
e3b71cb8 | 13794 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13795 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13796 | result = (wxToggleButton *)new wxToggleButton(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
13797 | ||
13798 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13799 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13800 | } |
15afbcd0 | 13801 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13802 | { |
13803 | if (temp3) | |
13804 | delete arg3; | |
13805 | } | |
13806 | { | |
13807 | if (temp8) | |
13808 | delete arg8; | |
13809 | } | |
13810 | return resultobj; | |
13811 | fail: | |
13812 | { | |
13813 | if (temp3) | |
13814 | delete arg3; | |
13815 | } | |
13816 | { | |
13817 | if (temp8) | |
13818 | delete arg8; | |
13819 | } | |
13820 | return NULL; | |
13821 | } | |
13822 | ||
13823 | ||
13824 | static PyObject *_wrap_new_PreToggleButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13825 | PyObject *resultobj; | |
13826 | wxToggleButton *result; | |
13827 | char *kwnames[] = { | |
13828 | NULL | |
13829 | }; | |
13830 | ||
13831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToggleButton",kwnames)) goto fail; | |
13832 | { | |
e3b71cb8 | 13833 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
13834 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
13835 | result = (wxToggleButton *)new wxToggleButton(); | |
13836 | ||
13837 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 13838 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 13839 | } |
15afbcd0 | 13840 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToggleButton, 1); |
d14a1e28 RD |
13841 | return resultobj; |
13842 | fail: | |
13843 | return NULL; | |
13844 | } | |
13845 | ||
13846 | ||
13847 | static PyObject *_wrap_ToggleButton_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13848 | PyObject *resultobj; | |
13849 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13850 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 RD |
13851 | int arg3 = (int) -1 ; |
13852 | wxString const &arg4_defvalue = wxPyEmptyString ; | |
13853 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
d14a1e28 RD |
13854 | wxPoint const &arg5_defvalue = wxDefaultPosition ; |
13855 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
13856 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
13857 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
13858 | long arg7 = (long) 0 ; | |
13859 | wxValidator const &arg8_defvalue = wxDefaultValidator ; | |
13860 | wxValidator *arg8 = (wxValidator *) &arg8_defvalue ; | |
13861 | wxString const &arg9_defvalue = wxPyToggleButtonNameStr ; | |
13862 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
13863 | bool result; | |
e811c8ce | 13864 | bool temp4 = False ; |
d14a1e28 RD |
13865 | wxPoint temp5 ; |
13866 | wxSize temp6 ; | |
e811c8ce | 13867 | bool temp9 = False ; |
d14a1e28 RD |
13868 | PyObject * obj0 = 0 ; |
13869 | PyObject * obj1 = 0 ; | |
994141e6 | 13870 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
13871 | PyObject * obj3 = 0 ; |
13872 | PyObject * obj4 = 0 ; | |
13873 | PyObject * obj5 = 0 ; | |
994141e6 | 13874 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
13875 | PyObject * obj7 = 0 ; |
13876 | PyObject * obj8 = 0 ; | |
13877 | char *kwnames[] = { | |
13878 | (char *) "self",(char *) "parent",(char *) "id",(char *) "label",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
13879 | }; | |
13880 | ||
248ed943 | 13881 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOO:ToggleButton_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
13882 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13883 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13884 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
13885 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
13886 | if (obj2) { |
13887 | arg3 = (int) SWIG_AsInt(obj2); | |
13888 | if (PyErr_Occurred()) SWIG_fail; | |
13889 | } | |
13890 | if (obj3) { | |
13891 | { | |
13892 | arg4 = wxString_in_helper(obj3); | |
13893 | if (arg4 == NULL) SWIG_fail; | |
13894 | temp4 = True; | |
13895 | } | |
d14a1e28 RD |
13896 | } |
13897 | if (obj4) { | |
13898 | { | |
13899 | arg5 = &temp5; | |
13900 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
13901 | } | |
13902 | } | |
13903 | if (obj5) { | |
13904 | { | |
13905 | arg6 = &temp6; | |
13906 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
13907 | } | |
13908 | } | |
994141e6 | 13909 | if (obj6) { |
15afbcd0 RD |
13910 | arg7 = (long) SWIG_AsLong(obj6); |
13911 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 13912 | } |
d14a1e28 | 13913 | if (obj7) { |
15afbcd0 RD |
13914 | if ((SWIG_ConvertPtr(obj7,(void **)(&arg8),SWIGTYPE_p_wxValidator, |
13915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
13916 | SWIG_fail; | |
d14a1e28 | 13917 | if (arg8 == NULL) { |
15afbcd0 RD |
13918 | PyErr_SetString(PyExc_TypeError,"null reference"); |
13919 | SWIG_fail; | |
d14a1e28 RD |
13920 | } |
13921 | } | |
13922 | if (obj8) { | |
13923 | { | |
13924 | arg9 = wxString_in_helper(obj8); | |
13925 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 13926 | temp9 = True; |
d14a1e28 RD |
13927 | } |
13928 | } | |
13929 | { | |
13930 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13931 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxValidator const &)*arg8,(wxString const &)*arg9); | |
13932 | ||
13933 | wxPyEndAllowThreads(__tstate); | |
13934 | if (PyErr_Occurred()) SWIG_fail; | |
13935 | } | |
4f89f6a3 RD |
13936 | { |
13937 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
13938 | } | |
d14a1e28 RD |
13939 | { |
13940 | if (temp4) | |
13941 | delete arg4; | |
13942 | } | |
13943 | { | |
13944 | if (temp9) | |
13945 | delete arg9; | |
13946 | } | |
13947 | return resultobj; | |
13948 | fail: | |
13949 | { | |
13950 | if (temp4) | |
13951 | delete arg4; | |
13952 | } | |
13953 | { | |
13954 | if (temp9) | |
13955 | delete arg9; | |
13956 | } | |
13957 | return NULL; | |
13958 | } | |
13959 | ||
13960 | ||
13961 | static PyObject *_wrap_ToggleButton_SetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13962 | PyObject *resultobj; | |
13963 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13964 | bool arg2 ; | |
13965 | PyObject * obj0 = 0 ; | |
13966 | PyObject * obj1 = 0 ; | |
13967 | char *kwnames[] = { | |
13968 | (char *) "self",(char *) "value", NULL | |
13969 | }; | |
13970 | ||
13971 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetValue",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
13972 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
13973 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
13974 | arg2 = (bool) SWIG_AsBool(obj1); | |
13975 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
13976 | { |
13977 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
13978 | (arg1)->SetValue(arg2); | |
13979 | ||
13980 | wxPyEndAllowThreads(__tstate); | |
13981 | if (PyErr_Occurred()) SWIG_fail; | |
13982 | } | |
13983 | Py_INCREF(Py_None); resultobj = Py_None; | |
13984 | return resultobj; | |
13985 | fail: | |
13986 | return NULL; | |
13987 | } | |
13988 | ||
13989 | ||
13990 | static PyObject *_wrap_ToggleButton_GetValue(PyObject *self, PyObject *args, PyObject *kwargs) { | |
13991 | PyObject *resultobj; | |
13992 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
13993 | bool result; | |
13994 | PyObject * obj0 = 0 ; | |
13995 | char *kwnames[] = { | |
13996 | (char *) "self", NULL | |
13997 | }; | |
13998 | ||
13999 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToggleButton_GetValue",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14000 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14001 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14002 | { |
14003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14004 | result = (bool)((wxToggleButton const *)arg1)->GetValue(); | |
14005 | ||
14006 | wxPyEndAllowThreads(__tstate); | |
14007 | if (PyErr_Occurred()) SWIG_fail; | |
14008 | } | |
4f89f6a3 RD |
14009 | { |
14010 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14011 | } | |
d14a1e28 RD |
14012 | return resultobj; |
14013 | fail: | |
14014 | return NULL; | |
14015 | } | |
14016 | ||
14017 | ||
14018 | static PyObject *_wrap_ToggleButton_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14019 | PyObject *resultobj; | |
14020 | wxToggleButton *arg1 = (wxToggleButton *) 0 ; | |
14021 | wxString *arg2 = 0 ; | |
e811c8ce | 14022 | bool temp2 = False ; |
d14a1e28 RD |
14023 | PyObject * obj0 = 0 ; |
14024 | PyObject * obj1 = 0 ; | |
14025 | char *kwnames[] = { | |
14026 | (char *) "self",(char *) "label", NULL | |
14027 | }; | |
14028 | ||
14029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToggleButton_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14030 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToggleButton, |
14031 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14032 | { |
14033 | arg2 = wxString_in_helper(obj1); | |
14034 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 14035 | temp2 = True; |
d14a1e28 RD |
14036 | } |
14037 | { | |
14038 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14039 | (arg1)->SetLabel((wxString const &)*arg2); | |
14040 | ||
14041 | wxPyEndAllowThreads(__tstate); | |
14042 | if (PyErr_Occurred()) SWIG_fail; | |
14043 | } | |
14044 | Py_INCREF(Py_None); resultobj = Py_None; | |
14045 | { | |
14046 | if (temp2) | |
14047 | delete arg2; | |
14048 | } | |
14049 | return resultobj; | |
14050 | fail: | |
14051 | { | |
14052 | if (temp2) | |
14053 | delete arg2; | |
14054 | } | |
14055 | return NULL; | |
14056 | } | |
14057 | ||
14058 | ||
22bfe96c RD |
14059 | static PyObject *_wrap_ToggleButton_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14060 | PyObject *resultobj; | |
14061 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14062 | wxVisualAttributes result; | |
14063 | PyObject * obj0 = 0 ; | |
14064 | char *kwnames[] = { | |
14065 | (char *) "variant", NULL | |
14066 | }; | |
14067 | ||
14068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToggleButton_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14069 | if (obj0) { | |
14070 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14071 | if (PyErr_Occurred()) SWIG_fail; | |
14072 | } | |
14073 | { | |
110da5b0 | 14074 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14076 | result = wxToggleButton::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14077 | ||
14078 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14079 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14080 | } |
14081 | { | |
14082 | wxVisualAttributes * resultptr; | |
14083 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14084 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14085 | } | |
14086 | return resultobj; | |
14087 | fail: | |
14088 | return NULL; | |
14089 | } | |
14090 | ||
14091 | ||
d14a1e28 RD |
14092 | static PyObject * ToggleButton_swigregister(PyObject *self, PyObject *args) { |
14093 | PyObject *obj; | |
14094 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14095 | SWIG_TypeClientData(SWIGTYPE_p_wxToggleButton, obj); | |
14096 | Py_INCREF(obj); | |
14097 | return Py_BuildValue((char *)""); | |
14098 | } | |
b2dc1044 RD |
14099 | static int _wrap_NOTEBOOK_NAME_set(PyObject *_val) { |
14100 | PyErr_SetString(PyExc_TypeError,"Variable NOTEBOOK_NAME is read-only."); | |
14101 | return 1; | |
14102 | } | |
14103 | ||
14104 | ||
14105 | static PyObject *_wrap_NOTEBOOK_NAME_get() { | |
14106 | PyObject *pyobj; | |
14107 | ||
14108 | { | |
14109 | #if wxUSE_UNICODE | |
14110 | pyobj = PyUnicode_FromWideChar((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14111 | #else | |
14112 | pyobj = PyString_FromStringAndSize((&wxPyNOTEBOOK_NAME)->c_str(), (&wxPyNOTEBOOK_NAME)->Len()); | |
14113 | #endif | |
14114 | } | |
14115 | return pyobj; | |
14116 | } | |
14117 | ||
14118 | ||
d14a1e28 RD |
14119 | static PyObject *_wrap_BookCtrl_GetPageCount(PyObject *self, PyObject *args, PyObject *kwargs) { |
14120 | PyObject *resultobj; | |
14121 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14122 | size_t result; | |
14123 | PyObject * obj0 = 0 ; | |
14124 | char *kwnames[] = { | |
14125 | (char *) "self", NULL | |
14126 | }; | |
14127 | ||
14128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetPageCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14131 | { |
14132 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14133 | result = (size_t)((wxBookCtrl const *)arg1)->GetPageCount(); | |
14134 | ||
14135 | wxPyEndAllowThreads(__tstate); | |
14136 | if (PyErr_Occurred()) SWIG_fail; | |
14137 | } | |
15afbcd0 | 14138 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
14139 | return resultobj; |
14140 | fail: | |
14141 | return NULL; | |
14142 | } | |
14143 | ||
14144 | ||
14145 | static PyObject *_wrap_BookCtrl_GetPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14146 | PyObject *resultobj; | |
14147 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14148 | size_t arg2 ; | |
14149 | wxWindow *result; | |
14150 | PyObject * obj0 = 0 ; | |
14151 | PyObject * obj1 = 0 ; | |
14152 | char *kwnames[] = { | |
14153 | (char *) "self",(char *) "n", NULL | |
14154 | }; | |
14155 | ||
14156 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14157 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14158 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14159 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14160 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14161 | { |
14162 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14163 | result = (wxWindow *)(arg1)->GetPage(arg2); | |
14164 | ||
14165 | wxPyEndAllowThreads(__tstate); | |
14166 | if (PyErr_Occurred()) SWIG_fail; | |
14167 | } | |
14168 | { | |
412d302d | 14169 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14170 | } |
14171 | return resultobj; | |
14172 | fail: | |
14173 | return NULL; | |
14174 | } | |
14175 | ||
14176 | ||
14177 | static PyObject *_wrap_BookCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14178 | PyObject *resultobj; | |
14179 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14180 | int result; | |
14181 | PyObject * obj0 = 0 ; | |
14182 | char *kwnames[] = { | |
14183 | (char *) "self", NULL | |
14184 | }; | |
14185 | ||
14186 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14187 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14188 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14189 | { |
14190 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14191 | result = (int)((wxBookCtrl const *)arg1)->GetSelection(); | |
14192 | ||
14193 | wxPyEndAllowThreads(__tstate); | |
14194 | if (PyErr_Occurred()) SWIG_fail; | |
14195 | } | |
15afbcd0 | 14196 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14197 | return resultobj; |
14198 | fail: | |
14199 | return NULL; | |
14200 | } | |
14201 | ||
14202 | ||
14203 | static PyObject *_wrap_BookCtrl_SetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14204 | PyObject *resultobj; | |
14205 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14206 | size_t arg2 ; | |
14207 | wxString *arg3 = 0 ; | |
14208 | bool result; | |
e811c8ce | 14209 | bool temp3 = False ; |
d14a1e28 RD |
14210 | PyObject * obj0 = 0 ; |
14211 | PyObject * obj1 = 0 ; | |
14212 | PyObject * obj2 = 0 ; | |
14213 | char *kwnames[] = { | |
14214 | (char *) "self",(char *) "n",(char *) "strText", NULL | |
14215 | }; | |
14216 | ||
14217 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
14218 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14219 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14220 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14221 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14222 | { |
14223 | arg3 = wxString_in_helper(obj2); | |
14224 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14225 | temp3 = True; |
d14a1e28 RD |
14226 | } |
14227 | { | |
14228 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14229 | result = (bool)(arg1)->SetPageText(arg2,(wxString const &)*arg3); | |
14230 | ||
14231 | wxPyEndAllowThreads(__tstate); | |
14232 | if (PyErr_Occurred()) SWIG_fail; | |
14233 | } | |
4f89f6a3 RD |
14234 | { |
14235 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14236 | } | |
d14a1e28 RD |
14237 | { |
14238 | if (temp3) | |
14239 | delete arg3; | |
14240 | } | |
14241 | return resultobj; | |
14242 | fail: | |
14243 | { | |
14244 | if (temp3) | |
14245 | delete arg3; | |
14246 | } | |
14247 | return NULL; | |
14248 | } | |
14249 | ||
14250 | ||
14251 | static PyObject *_wrap_BookCtrl_GetPageText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14252 | PyObject *resultobj; | |
14253 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14254 | size_t arg2 ; | |
14255 | wxString result; | |
14256 | PyObject * obj0 = 0 ; | |
14257 | PyObject * obj1 = 0 ; | |
14258 | char *kwnames[] = { | |
14259 | (char *) "self",(char *) "n", NULL | |
14260 | }; | |
14261 | ||
14262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14265 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14266 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14267 | { |
14268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14269 | result = ((wxBookCtrl const *)arg1)->GetPageText(arg2); | |
14270 | ||
14271 | wxPyEndAllowThreads(__tstate); | |
14272 | if (PyErr_Occurred()) SWIG_fail; | |
14273 | } | |
14274 | { | |
14275 | #if wxUSE_UNICODE | |
14276 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
14277 | #else | |
14278 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
14279 | #endif | |
14280 | } | |
14281 | return resultobj; | |
14282 | fail: | |
14283 | return NULL; | |
14284 | } | |
14285 | ||
14286 | ||
14287 | static PyObject *_wrap_BookCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14288 | PyObject *resultobj; | |
14289 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14290 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14291 | PyObject * obj0 = 0 ; | |
14292 | PyObject * obj1 = 0 ; | |
14293 | char *kwnames[] = { | |
14294 | (char *) "self",(char *) "imageList", NULL | |
14295 | }; | |
14296 | ||
14297 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14298 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14299 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14300 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14301 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14302 | { |
14303 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14304 | (arg1)->SetImageList(arg2); | |
14305 | ||
14306 | wxPyEndAllowThreads(__tstate); | |
14307 | if (PyErr_Occurred()) SWIG_fail; | |
14308 | } | |
14309 | Py_INCREF(Py_None); resultobj = Py_None; | |
14310 | return resultobj; | |
14311 | fail: | |
14312 | return NULL; | |
14313 | } | |
14314 | ||
14315 | ||
14316 | static PyObject *_wrap_BookCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14317 | PyObject *resultobj; | |
14318 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14319 | wxImageList *arg2 = (wxImageList *) 0 ; | |
14320 | PyObject * obj0 = 0 ; | |
14321 | PyObject * obj1 = 0 ; | |
14322 | char *kwnames[] = { | |
14323 | (char *) "self",(char *) "imageList", NULL | |
14324 | }; | |
14325 | ||
14326 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14327 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14328 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14329 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
14330 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
14331 | { |
14332 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14333 | (arg1)->AssignImageList(arg2); | |
14334 | ||
14335 | wxPyEndAllowThreads(__tstate); | |
14336 | if (PyErr_Occurred()) SWIG_fail; | |
14337 | } | |
14338 | Py_INCREF(Py_None); resultobj = Py_None; | |
14339 | return resultobj; | |
14340 | fail: | |
14341 | return NULL; | |
14342 | } | |
14343 | ||
14344 | ||
14345 | static PyObject *_wrap_BookCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14346 | PyObject *resultobj; | |
14347 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14348 | wxImageList *result; | |
14349 | PyObject * obj0 = 0 ; | |
14350 | char *kwnames[] = { | |
14351 | (char *) "self", NULL | |
14352 | }; | |
14353 | ||
14354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14357 | { |
14358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14359 | result = (wxImageList *)((wxBookCtrl const *)arg1)->GetImageList(); | |
14360 | ||
14361 | wxPyEndAllowThreads(__tstate); | |
14362 | if (PyErr_Occurred()) SWIG_fail; | |
14363 | } | |
14364 | { | |
412d302d | 14365 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
14366 | } |
14367 | return resultobj; | |
14368 | fail: | |
14369 | return NULL; | |
14370 | } | |
14371 | ||
14372 | ||
14373 | static PyObject *_wrap_BookCtrl_GetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14374 | PyObject *resultobj; | |
14375 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14376 | size_t arg2 ; | |
14377 | int result; | |
14378 | PyObject * obj0 = 0 ; | |
14379 | PyObject * obj1 = 0 ; | |
14380 | char *kwnames[] = { | |
14381 | (char *) "self",(char *) "n", NULL | |
14382 | }; | |
14383 | ||
14384 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_GetPageImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14385 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14386 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14387 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14388 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14389 | { |
14390 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14391 | result = (int)((wxBookCtrl const *)arg1)->GetPageImage(arg2); | |
14392 | ||
14393 | wxPyEndAllowThreads(__tstate); | |
14394 | if (PyErr_Occurred()) SWIG_fail; | |
14395 | } | |
15afbcd0 | 14396 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14397 | return resultobj; |
14398 | fail: | |
14399 | return NULL; | |
14400 | } | |
14401 | ||
14402 | ||
14403 | static PyObject *_wrap_BookCtrl_SetPageImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14404 | PyObject *resultobj; | |
14405 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14406 | size_t arg2 ; | |
14407 | int arg3 ; | |
14408 | bool result; | |
14409 | PyObject * obj0 = 0 ; | |
14410 | PyObject * obj1 = 0 ; | |
994141e6 | 14411 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
14412 | char *kwnames[] = { |
14413 | (char *) "self",(char *) "n",(char *) "imageId", NULL | |
14414 | }; | |
14415 | ||
994141e6 | 14416 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:BookCtrl_SetPageImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
14417 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14418 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14419 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14420 | if (PyErr_Occurred()) SWIG_fail; | |
14421 | arg3 = (int) SWIG_AsInt(obj2); | |
14422 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14423 | { |
14424 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14425 | result = (bool)(arg1)->SetPageImage(arg2,arg3); | |
14426 | ||
14427 | wxPyEndAllowThreads(__tstate); | |
14428 | if (PyErr_Occurred()) SWIG_fail; | |
14429 | } | |
4f89f6a3 RD |
14430 | { |
14431 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14432 | } | |
d14a1e28 RD |
14433 | return resultobj; |
14434 | fail: | |
14435 | return NULL; | |
14436 | } | |
14437 | ||
14438 | ||
14439 | static PyObject *_wrap_BookCtrl_SetPageSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14440 | PyObject *resultobj; | |
14441 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14442 | wxSize *arg2 = 0 ; | |
14443 | wxSize temp2 ; | |
14444 | PyObject * obj0 = 0 ; | |
14445 | PyObject * obj1 = 0 ; | |
14446 | char *kwnames[] = { | |
14447 | (char *) "self",(char *) "size", NULL | |
14448 | }; | |
14449 | ||
14450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetPageSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14453 | { |
14454 | arg2 = &temp2; | |
14455 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14456 | } | |
14457 | { | |
14458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14459 | (arg1)->SetPageSize((wxSize const &)*arg2); | |
14460 | ||
14461 | wxPyEndAllowThreads(__tstate); | |
14462 | if (PyErr_Occurred()) SWIG_fail; | |
14463 | } | |
14464 | Py_INCREF(Py_None); resultobj = Py_None; | |
14465 | return resultobj; | |
14466 | fail: | |
14467 | return NULL; | |
14468 | } | |
14469 | ||
14470 | ||
14471 | static PyObject *_wrap_BookCtrl_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14472 | PyObject *resultobj; | |
14473 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14474 | wxSize *arg2 = 0 ; | |
14475 | wxSize result; | |
14476 | wxSize temp2 ; | |
14477 | PyObject * obj0 = 0 ; | |
14478 | PyObject * obj1 = 0 ; | |
14479 | char *kwnames[] = { | |
14480 | (char *) "self",(char *) "sizePage", NULL | |
14481 | }; | |
14482 | ||
14483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14486 | { |
14487 | arg2 = &temp2; | |
14488 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
14489 | } | |
14490 | { | |
14491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14492 | result = ((wxBookCtrl const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
14493 | ||
14494 | wxPyEndAllowThreads(__tstate); | |
14495 | if (PyErr_Occurred()) SWIG_fail; | |
14496 | } | |
14497 | { | |
14498 | wxSize * resultptr; | |
14499 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 14500 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
14501 | } |
14502 | return resultobj; | |
14503 | fail: | |
14504 | return NULL; | |
14505 | } | |
14506 | ||
14507 | ||
14508 | static PyObject *_wrap_BookCtrl_DeletePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14509 | PyObject *resultobj; | |
14510 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14511 | size_t arg2 ; | |
14512 | bool result; | |
14513 | PyObject * obj0 = 0 ; | |
14514 | PyObject * obj1 = 0 ; | |
14515 | char *kwnames[] = { | |
14516 | (char *) "self",(char *) "n", NULL | |
14517 | }; | |
14518 | ||
14519 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_DeletePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14520 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14521 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14522 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14523 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14524 | { |
14525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14526 | result = (bool)(arg1)->DeletePage(arg2); | |
14527 | ||
14528 | wxPyEndAllowThreads(__tstate); | |
14529 | if (PyErr_Occurred()) SWIG_fail; | |
14530 | } | |
4f89f6a3 RD |
14531 | { |
14532 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14533 | } | |
d14a1e28 RD |
14534 | return resultobj; |
14535 | fail: | |
14536 | return NULL; | |
14537 | } | |
14538 | ||
14539 | ||
14540 | static PyObject *_wrap_BookCtrl_RemovePage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14541 | PyObject *resultobj; | |
14542 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14543 | size_t arg2 ; | |
14544 | bool result; | |
14545 | PyObject * obj0 = 0 ; | |
14546 | PyObject * obj1 = 0 ; | |
14547 | char *kwnames[] = { | |
14548 | (char *) "self",(char *) "n", NULL | |
14549 | }; | |
14550 | ||
14551 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_RemovePage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14552 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14553 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14554 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14555 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14556 | { |
14557 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14558 | result = (bool)(arg1)->RemovePage(arg2); | |
14559 | ||
14560 | wxPyEndAllowThreads(__tstate); | |
14561 | if (PyErr_Occurred()) SWIG_fail; | |
14562 | } | |
4f89f6a3 RD |
14563 | { |
14564 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14565 | } | |
d14a1e28 RD |
14566 | return resultobj; |
14567 | fail: | |
14568 | return NULL; | |
14569 | } | |
14570 | ||
14571 | ||
14572 | static PyObject *_wrap_BookCtrl_DeleteAllPages(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14573 | PyObject *resultobj; | |
14574 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14575 | bool result; | |
14576 | PyObject * obj0 = 0 ; | |
14577 | char *kwnames[] = { | |
14578 | (char *) "self", NULL | |
14579 | }; | |
14580 | ||
14581 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrl_DeleteAllPages",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14582 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14583 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14584 | { |
14585 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14586 | result = (bool)(arg1)->DeleteAllPages(); | |
14587 | ||
14588 | wxPyEndAllowThreads(__tstate); | |
14589 | if (PyErr_Occurred()) SWIG_fail; | |
14590 | } | |
4f89f6a3 RD |
14591 | { |
14592 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14593 | } | |
d14a1e28 RD |
14594 | return resultobj; |
14595 | fail: | |
14596 | return NULL; | |
14597 | } | |
14598 | ||
14599 | ||
14600 | static PyObject *_wrap_BookCtrl_AddPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14601 | PyObject *resultobj; | |
14602 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14603 | wxWindow *arg2 = (wxWindow *) 0 ; | |
14604 | wxString *arg3 = 0 ; | |
e811c8ce | 14605 | bool arg4 = (bool) False ; |
d14a1e28 RD |
14606 | int arg5 = (int) -1 ; |
14607 | bool result; | |
e811c8ce | 14608 | bool temp3 = False ; |
d14a1e28 RD |
14609 | PyObject * obj0 = 0 ; |
14610 | PyObject * obj1 = 0 ; | |
14611 | PyObject * obj2 = 0 ; | |
14612 | PyObject * obj3 = 0 ; | |
994141e6 | 14613 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
14614 | char *kwnames[] = { |
14615 | (char *) "self",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14616 | }; | |
14617 | ||
994141e6 | 14618 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:BookCtrl_AddPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
14619 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14620 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14621 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
14622 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14623 | { |
14624 | arg3 = wxString_in_helper(obj2); | |
14625 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 14626 | temp3 = True; |
d14a1e28 RD |
14627 | } |
14628 | if (obj3) { | |
15afbcd0 RD |
14629 | arg4 = (bool) SWIG_AsBool(obj3); |
14630 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14631 | } |
14632 | if (obj4) { | |
15afbcd0 RD |
14633 | arg5 = (int) SWIG_AsInt(obj4); |
14634 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14635 | } |
14636 | { | |
14637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14638 | result = (bool)(arg1)->AddPage(arg2,(wxString const &)*arg3,arg4,arg5); | |
14639 | ||
14640 | wxPyEndAllowThreads(__tstate); | |
14641 | if (PyErr_Occurred()) SWIG_fail; | |
14642 | } | |
4f89f6a3 RD |
14643 | { |
14644 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14645 | } | |
d14a1e28 RD |
14646 | { |
14647 | if (temp3) | |
14648 | delete arg3; | |
14649 | } | |
14650 | return resultobj; | |
14651 | fail: | |
14652 | { | |
14653 | if (temp3) | |
14654 | delete arg3; | |
14655 | } | |
14656 | return NULL; | |
14657 | } | |
14658 | ||
14659 | ||
14660 | static PyObject *_wrap_BookCtrl_InsertPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14661 | PyObject *resultobj; | |
14662 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14663 | size_t arg2 ; | |
14664 | wxWindow *arg3 = (wxWindow *) 0 ; | |
14665 | wxString *arg4 = 0 ; | |
e811c8ce | 14666 | bool arg5 = (bool) False ; |
d14a1e28 RD |
14667 | int arg6 = (int) -1 ; |
14668 | bool result; | |
e811c8ce | 14669 | bool temp4 = False ; |
d14a1e28 RD |
14670 | PyObject * obj0 = 0 ; |
14671 | PyObject * obj1 = 0 ; | |
14672 | PyObject * obj2 = 0 ; | |
14673 | PyObject * obj3 = 0 ; | |
14674 | PyObject * obj4 = 0 ; | |
994141e6 | 14675 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
14676 | char *kwnames[] = { |
14677 | (char *) "self",(char *) "n",(char *) "page",(char *) "text",(char *) "select",(char *) "imageId", NULL | |
14678 | }; | |
14679 | ||
994141e6 | 14680 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OO:BookCtrl_InsertPage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
14681 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14682 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14683 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14684 | if (PyErr_Occurred()) SWIG_fail; | |
14685 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, | |
14686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14687 | { |
14688 | arg4 = wxString_in_helper(obj3); | |
14689 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 14690 | temp4 = True; |
d14a1e28 RD |
14691 | } |
14692 | if (obj4) { | |
15afbcd0 RD |
14693 | arg5 = (bool) SWIG_AsBool(obj4); |
14694 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14695 | } |
14696 | if (obj5) { | |
15afbcd0 RD |
14697 | arg6 = (int) SWIG_AsInt(obj5); |
14698 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14699 | } |
14700 | { | |
14701 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14702 | result = (bool)(arg1)->InsertPage(arg2,arg3,(wxString const &)*arg4,arg5,arg6); | |
14703 | ||
14704 | wxPyEndAllowThreads(__tstate); | |
14705 | if (PyErr_Occurred()) SWIG_fail; | |
14706 | } | |
4f89f6a3 RD |
14707 | { |
14708 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
14709 | } | |
d14a1e28 RD |
14710 | { |
14711 | if (temp4) | |
14712 | delete arg4; | |
14713 | } | |
14714 | return resultobj; | |
14715 | fail: | |
14716 | { | |
14717 | if (temp4) | |
14718 | delete arg4; | |
14719 | } | |
14720 | return NULL; | |
14721 | } | |
14722 | ||
14723 | ||
14724 | static PyObject *_wrap_BookCtrl_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14725 | PyObject *resultobj; | |
14726 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
14727 | size_t arg2 ; | |
14728 | int result; | |
14729 | PyObject * obj0 = 0 ; | |
14730 | PyObject * obj1 = 0 ; | |
14731 | char *kwnames[] = { | |
14732 | (char *) "self",(char *) "n", NULL | |
14733 | }; | |
14734 | ||
14735 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrl_SetSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14736 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14737 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14738 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
14739 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14740 | { |
14741 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14742 | result = (int)(arg1)->SetSelection(arg2); | |
14743 | ||
14744 | wxPyEndAllowThreads(__tstate); | |
14745 | if (PyErr_Occurred()) SWIG_fail; | |
14746 | } | |
15afbcd0 | 14747 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14748 | return resultobj; |
14749 | fail: | |
14750 | return NULL; | |
14751 | } | |
14752 | ||
14753 | ||
14754 | static PyObject *_wrap_BookCtrl_AdvanceSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14755 | PyObject *resultobj; | |
14756 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
e811c8ce | 14757 | bool arg2 = (bool) True ; |
d14a1e28 RD |
14758 | PyObject * obj0 = 0 ; |
14759 | PyObject * obj1 = 0 ; | |
14760 | char *kwnames[] = { | |
14761 | (char *) "self",(char *) "forward", NULL | |
14762 | }; | |
14763 | ||
14764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:BookCtrl_AdvanceSelection",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
14765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
14766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 14767 | if (obj1) { |
15afbcd0 RD |
14768 | arg2 = (bool) SWIG_AsBool(obj1); |
14769 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14770 | } |
14771 | { | |
14772 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14773 | (arg1)->AdvanceSelection(arg2); | |
14774 | ||
14775 | wxPyEndAllowThreads(__tstate); | |
14776 | if (PyErr_Occurred()) SWIG_fail; | |
14777 | } | |
14778 | Py_INCREF(Py_None); resultobj = Py_None; | |
14779 | return resultobj; | |
14780 | fail: | |
14781 | return NULL; | |
14782 | } | |
14783 | ||
14784 | ||
22bfe96c RD |
14785 | static PyObject *_wrap_BookCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
14786 | PyObject *resultobj; | |
14787 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
14788 | wxVisualAttributes result; | |
14789 | PyObject * obj0 = 0 ; | |
14790 | char *kwnames[] = { | |
14791 | (char *) "variant", NULL | |
14792 | }; | |
14793 | ||
14794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:BookCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
14795 | if (obj0) { | |
14796 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
14797 | if (PyErr_Occurred()) SWIG_fail; | |
14798 | } | |
14799 | { | |
110da5b0 | 14800 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
14801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
14802 | result = wxBookCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
14803 | ||
14804 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 14805 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
14806 | } |
14807 | { | |
14808 | wxVisualAttributes * resultptr; | |
14809 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
14810 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
14811 | } | |
14812 | return resultobj; | |
14813 | fail: | |
14814 | return NULL; | |
14815 | } | |
14816 | ||
14817 | ||
d14a1e28 RD |
14818 | static PyObject * BookCtrl_swigregister(PyObject *self, PyObject *args) { |
14819 | PyObject *obj; | |
14820 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14821 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrl, obj); | |
14822 | Py_INCREF(obj); | |
14823 | return Py_BuildValue((char *)""); | |
14824 | } | |
14825 | static PyObject *_wrap_new_BookCtrlEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14826 | PyObject *resultobj; | |
14827 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
14828 | int arg2 = (int) 0 ; | |
14829 | int arg3 = (int) -1 ; | |
14830 | int arg4 = (int) -1 ; | |
14831 | wxBookCtrlEvent *result; | |
994141e6 RD |
14832 | PyObject * obj0 = 0 ; |
14833 | PyObject * obj1 = 0 ; | |
14834 | PyObject * obj2 = 0 ; | |
14835 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
14836 | char *kwnames[] = { |
14837 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
14838 | }; | |
14839 | ||
994141e6 RD |
14840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_BookCtrlEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
14841 | if (obj0) { | |
15afbcd0 RD |
14842 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
14843 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14844 | } |
14845 | if (obj1) { | |
15afbcd0 RD |
14846 | arg2 = (int) SWIG_AsInt(obj1); |
14847 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14848 | } |
14849 | if (obj2) { | |
15afbcd0 RD |
14850 | arg3 = (int) SWIG_AsInt(obj2); |
14851 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
14852 | } |
14853 | if (obj3) { | |
15afbcd0 RD |
14854 | arg4 = (int) SWIG_AsInt(obj3); |
14855 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 14856 | } |
d14a1e28 RD |
14857 | { |
14858 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14859 | result = (wxBookCtrlEvent *)new wxBookCtrlEvent(arg1,arg2,arg3,arg4); | |
14860 | ||
14861 | wxPyEndAllowThreads(__tstate); | |
14862 | if (PyErr_Occurred()) SWIG_fail; | |
14863 | } | |
15afbcd0 | 14864 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlEvent, 1); |
d14a1e28 RD |
14865 | return resultobj; |
14866 | fail: | |
14867 | return NULL; | |
14868 | } | |
14869 | ||
14870 | ||
14871 | static PyObject *_wrap_BookCtrlEvent_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14872 | PyObject *resultobj; | |
14873 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14874 | int result; | |
14875 | PyObject * obj0 = 0 ; | |
14876 | char *kwnames[] = { | |
14877 | (char *) "self", NULL | |
14878 | }; | |
14879 | ||
14880 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14881 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14882 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14883 | { |
14884 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14885 | result = (int)((wxBookCtrlEvent const *)arg1)->GetSelection(); | |
14886 | ||
14887 | wxPyEndAllowThreads(__tstate); | |
14888 | if (PyErr_Occurred()) SWIG_fail; | |
14889 | } | |
15afbcd0 | 14890 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14891 | return resultobj; |
14892 | fail: | |
14893 | return NULL; | |
14894 | } | |
14895 | ||
14896 | ||
14897 | static PyObject *_wrap_BookCtrlEvent_SetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14898 | PyObject *resultobj; | |
14899 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14900 | int arg2 ; | |
14901 | PyObject * obj0 = 0 ; | |
994141e6 | 14902 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14903 | char *kwnames[] = { |
14904 | (char *) "self",(char *) "nSel", NULL | |
14905 | }; | |
14906 | ||
994141e6 | 14907 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14908 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14909 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14910 | arg2 = (int) SWIG_AsInt(obj1); | |
14911 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14912 | { |
14913 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14914 | (arg1)->SetSelection(arg2); | |
14915 | ||
14916 | wxPyEndAllowThreads(__tstate); | |
14917 | if (PyErr_Occurred()) SWIG_fail; | |
14918 | } | |
14919 | Py_INCREF(Py_None); resultobj = Py_None; | |
14920 | return resultobj; | |
14921 | fail: | |
14922 | return NULL; | |
14923 | } | |
14924 | ||
14925 | ||
14926 | static PyObject *_wrap_BookCtrlEvent_GetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14927 | PyObject *resultobj; | |
14928 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14929 | int result; | |
14930 | PyObject * obj0 = 0 ; | |
14931 | char *kwnames[] = { | |
14932 | (char *) "self", NULL | |
14933 | }; | |
14934 | ||
14935 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlEvent_GetOldSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
14936 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14937 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
14938 | { |
14939 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14940 | result = (int)((wxBookCtrlEvent const *)arg1)->GetOldSelection(); | |
14941 | ||
14942 | wxPyEndAllowThreads(__tstate); | |
14943 | if (PyErr_Occurred()) SWIG_fail; | |
14944 | } | |
15afbcd0 | 14945 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
14946 | return resultobj; |
14947 | fail: | |
14948 | return NULL; | |
14949 | } | |
14950 | ||
14951 | ||
14952 | static PyObject *_wrap_BookCtrlEvent_SetOldSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14953 | PyObject *resultobj; | |
14954 | wxBookCtrlEvent *arg1 = (wxBookCtrlEvent *) 0 ; | |
14955 | int arg2 ; | |
14956 | PyObject * obj0 = 0 ; | |
994141e6 | 14957 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
14958 | char *kwnames[] = { |
14959 | (char *) "self",(char *) "nOldSel", NULL | |
14960 | }; | |
14961 | ||
994141e6 | 14962 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:BookCtrlEvent_SetOldSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
14963 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlEvent, |
14964 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
14965 | arg2 = (int) SWIG_AsInt(obj1); | |
14966 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
14967 | { |
14968 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
14969 | (arg1)->SetOldSelection(arg2); | |
14970 | ||
14971 | wxPyEndAllowThreads(__tstate); | |
14972 | if (PyErr_Occurred()) SWIG_fail; | |
14973 | } | |
14974 | Py_INCREF(Py_None); resultobj = Py_None; | |
14975 | return resultobj; | |
14976 | fail: | |
14977 | return NULL; | |
14978 | } | |
14979 | ||
14980 | ||
14981 | static PyObject * BookCtrlEvent_swigregister(PyObject *self, PyObject *args) { | |
14982 | PyObject *obj; | |
14983 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
14984 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlEvent, obj); | |
14985 | Py_INCREF(obj); | |
14986 | return Py_BuildValue((char *)""); | |
14987 | } | |
14988 | static PyObject *_wrap_new_Notebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
14989 | PyObject *resultobj; | |
14990 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 14991 | int arg2 = (int) -1 ; |
d14a1e28 RD |
14992 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
14993 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
14994 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
14995 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
14996 | long arg5 = (long) 0 ; | |
14997 | wxString const &arg6_defvalue = wxPyNOTEBOOK_NAME ; | |
14998 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
14999 | wxNotebook *result; | |
15000 | wxPoint temp3 ; | |
15001 | wxSize temp4 ; | |
e811c8ce | 15002 | bool temp6 = False ; |
d14a1e28 | 15003 | PyObject * obj0 = 0 ; |
994141e6 | 15004 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15005 | PyObject * obj2 = 0 ; |
15006 | PyObject * obj3 = 0 ; | |
994141e6 | 15007 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15008 | PyObject * obj5 = 0 ; |
15009 | char *kwnames[] = { | |
15010 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15011 | }; | |
15012 | ||
4f89f6a3 | 15013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Notebook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
15016 | if (obj1) { |
15017 | arg2 = (int) SWIG_AsInt(obj1); | |
15018 | if (PyErr_Occurred()) SWIG_fail; | |
15019 | } | |
d14a1e28 RD |
15020 | if (obj2) { |
15021 | { | |
15022 | arg3 = &temp3; | |
15023 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15024 | } | |
15025 | } | |
15026 | if (obj3) { | |
15027 | { | |
15028 | arg4 = &temp4; | |
15029 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15030 | } | |
15031 | } | |
994141e6 | 15032 | if (obj4) { |
15afbcd0 RD |
15033 | arg5 = (long) SWIG_AsLong(obj4); |
15034 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15035 | } |
d14a1e28 RD |
15036 | if (obj5) { |
15037 | { | |
15038 | arg6 = wxString_in_helper(obj5); | |
15039 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15040 | temp6 = True; |
d14a1e28 RD |
15041 | } |
15042 | } | |
15043 | { | |
e3b71cb8 | 15044 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15045 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15046 | result = (wxNotebook *)new wxNotebook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15047 | ||
15048 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15049 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15050 | } |
b0f7404b | 15051 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15052 | { |
15053 | if (temp6) | |
15054 | delete arg6; | |
15055 | } | |
15056 | return resultobj; | |
15057 | fail: | |
15058 | { | |
15059 | if (temp6) | |
15060 | delete arg6; | |
15061 | } | |
15062 | return NULL; | |
15063 | } | |
15064 | ||
15065 | ||
15066 | static PyObject *_wrap_new_PreNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15067 | PyObject *resultobj; | |
15068 | wxNotebook *result; | |
15069 | char *kwnames[] = { | |
15070 | NULL | |
15071 | }; | |
15072 | ||
15073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreNotebook",kwnames)) goto fail; | |
15074 | { | |
e3b71cb8 | 15075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15077 | result = (wxNotebook *)new wxNotebook(); | |
15078 | ||
15079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15081 | } |
b0f7404b | 15082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebook, 1); |
d14a1e28 RD |
15083 | return resultobj; |
15084 | fail: | |
15085 | return NULL; | |
15086 | } | |
15087 | ||
15088 | ||
15089 | static PyObject *_wrap_Notebook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15090 | PyObject *resultobj; | |
15091 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15092 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15093 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15094 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15095 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15096 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15097 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15098 | long arg6 = (long) 0 ; | |
15099 | wxString const &arg7_defvalue = wxPyNOTEBOOK_NAME ; | |
15100 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15101 | bool result; | |
15102 | wxPoint temp4 ; | |
15103 | wxSize temp5 ; | |
e811c8ce | 15104 | bool temp7 = False ; |
d14a1e28 RD |
15105 | PyObject * obj0 = 0 ; |
15106 | PyObject * obj1 = 0 ; | |
994141e6 | 15107 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15108 | PyObject * obj3 = 0 ; |
15109 | PyObject * obj4 = 0 ; | |
994141e6 | 15110 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15111 | PyObject * obj6 = 0 ; |
15112 | char *kwnames[] = { | |
15113 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15114 | }; | |
15115 | ||
248ed943 | 15116 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Notebook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15117 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15118 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15119 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15120 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15121 | if (obj2) { |
15122 | arg3 = (int) SWIG_AsInt(obj2); | |
15123 | if (PyErr_Occurred()) SWIG_fail; | |
15124 | } | |
d14a1e28 RD |
15125 | if (obj3) { |
15126 | { | |
15127 | arg4 = &temp4; | |
15128 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15129 | } | |
15130 | } | |
15131 | if (obj4) { | |
15132 | { | |
15133 | arg5 = &temp5; | |
15134 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15135 | } | |
15136 | } | |
994141e6 | 15137 | if (obj5) { |
15afbcd0 RD |
15138 | arg6 = (long) SWIG_AsLong(obj5); |
15139 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15140 | } |
d14a1e28 RD |
15141 | if (obj6) { |
15142 | { | |
15143 | arg7 = wxString_in_helper(obj6); | |
15144 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15145 | temp7 = True; |
d14a1e28 RD |
15146 | } |
15147 | } | |
15148 | { | |
15149 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15150 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15151 | ||
15152 | wxPyEndAllowThreads(__tstate); | |
15153 | if (PyErr_Occurred()) SWIG_fail; | |
15154 | } | |
4f89f6a3 RD |
15155 | { |
15156 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15157 | } | |
d14a1e28 RD |
15158 | { |
15159 | if (temp7) | |
15160 | delete arg7; | |
15161 | } | |
15162 | return resultobj; | |
15163 | fail: | |
15164 | { | |
15165 | if (temp7) | |
15166 | delete arg7; | |
15167 | } | |
15168 | return NULL; | |
15169 | } | |
15170 | ||
15171 | ||
15172 | static PyObject *_wrap_Notebook_GetRowCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15173 | PyObject *resultobj; | |
15174 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15175 | int result; | |
15176 | PyObject * obj0 = 0 ; | |
15177 | char *kwnames[] = { | |
15178 | (char *) "self", NULL | |
15179 | }; | |
15180 | ||
15181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Notebook_GetRowCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15184 | { |
15185 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15186 | result = (int)((wxNotebook const *)arg1)->GetRowCount(); | |
15187 | ||
15188 | wxPyEndAllowThreads(__tstate); | |
15189 | if (PyErr_Occurred()) SWIG_fail; | |
15190 | } | |
15afbcd0 | 15191 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15192 | return resultobj; |
15193 | fail: | |
15194 | return NULL; | |
15195 | } | |
15196 | ||
15197 | ||
15198 | static PyObject *_wrap_Notebook_SetPadding(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15199 | PyObject *resultobj; | |
15200 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15201 | wxSize *arg2 = 0 ; | |
15202 | wxSize temp2 ; | |
15203 | PyObject * obj0 = 0 ; | |
15204 | PyObject * obj1 = 0 ; | |
15205 | char *kwnames[] = { | |
15206 | (char *) "self",(char *) "padding", NULL | |
15207 | }; | |
15208 | ||
15209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetPadding",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15212 | { |
15213 | arg2 = &temp2; | |
15214 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15215 | } | |
15216 | { | |
15217 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15218 | (arg1)->SetPadding((wxSize const &)*arg2); | |
15219 | ||
15220 | wxPyEndAllowThreads(__tstate); | |
15221 | if (PyErr_Occurred()) SWIG_fail; | |
15222 | } | |
15223 | Py_INCREF(Py_None); resultobj = Py_None; | |
15224 | return resultobj; | |
15225 | fail: | |
15226 | return NULL; | |
15227 | } | |
15228 | ||
15229 | ||
15230 | static PyObject *_wrap_Notebook_SetTabSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15231 | PyObject *resultobj; | |
15232 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15233 | wxSize *arg2 = 0 ; | |
15234 | wxSize temp2 ; | |
15235 | PyObject * obj0 = 0 ; | |
15236 | PyObject * obj1 = 0 ; | |
15237 | char *kwnames[] = { | |
15238 | (char *) "self",(char *) "sz", NULL | |
15239 | }; | |
15240 | ||
15241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_SetTabSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15244 | { |
15245 | arg2 = &temp2; | |
15246 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15247 | } | |
15248 | { | |
15249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15250 | (arg1)->SetTabSize((wxSize const &)*arg2); | |
15251 | ||
15252 | wxPyEndAllowThreads(__tstate); | |
15253 | if (PyErr_Occurred()) SWIG_fail; | |
15254 | } | |
15255 | Py_INCREF(Py_None); resultobj = Py_None; | |
15256 | return resultobj; | |
15257 | fail: | |
15258 | return NULL; | |
15259 | } | |
15260 | ||
15261 | ||
15262 | static PyObject *_wrap_Notebook_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15263 | PyObject *resultobj; | |
15264 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15265 | wxPoint *arg2 = 0 ; | |
15266 | long *arg3 = (long *) 0 ; | |
15267 | int result; | |
15268 | wxPoint temp2 ; | |
15269 | long temp3 ; | |
15270 | PyObject * obj0 = 0 ; | |
15271 | PyObject * obj1 = 0 ; | |
15272 | char *kwnames[] = { | |
15273 | (char *) "self",(char *) "pt", NULL | |
15274 | }; | |
15275 | ||
15276 | arg3 = &temp3; | |
15277 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15278 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15279 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15280 | { |
15281 | arg2 = &temp2; | |
15282 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
15283 | } | |
15284 | { | |
15285 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15286 | result = (int)((wxNotebook const *)arg1)->HitTest((wxPoint const &)*arg2,arg3); | |
15287 | ||
15288 | wxPyEndAllowThreads(__tstate); | |
15289 | if (PyErr_Occurred()) SWIG_fail; | |
15290 | } | |
15afbcd0 | 15291 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15292 | { |
15293 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
15294 | resultobj = t_output_helper(resultobj,o); | |
15295 | } | |
15296 | return resultobj; | |
15297 | fail: | |
15298 | return NULL; | |
15299 | } | |
15300 | ||
15301 | ||
15302 | static PyObject *_wrap_Notebook_CalcSizeFromPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15303 | PyObject *resultobj; | |
15304 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15305 | wxSize *arg2 = 0 ; | |
15306 | wxSize result; | |
15307 | wxSize temp2 ; | |
15308 | PyObject * obj0 = 0 ; | |
15309 | PyObject * obj1 = 0 ; | |
15310 | char *kwnames[] = { | |
15311 | (char *) "self",(char *) "sizePage", NULL | |
15312 | }; | |
15313 | ||
15314 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:Notebook_CalcSizeFromPage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
15315 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15316 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15317 | { |
15318 | arg2 = &temp2; | |
15319 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
15320 | } | |
15321 | { | |
15322 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15323 | result = ((wxNotebook const *)arg1)->CalcSizeFromPage((wxSize const &)*arg2); | |
15324 | ||
15325 | wxPyEndAllowThreads(__tstate); | |
15326 | if (PyErr_Occurred()) SWIG_fail; | |
15327 | } | |
15328 | { | |
15329 | wxSize * resultptr; | |
15330 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15331 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15332 | } |
15333 | return resultobj; | |
15334 | fail: | |
15335 | return NULL; | |
15336 | } | |
15337 | ||
15338 | ||
22bfe96c RD |
15339 | static PyObject *_wrap_Notebook_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
15340 | PyObject *resultobj; | |
15341 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
15342 | wxVisualAttributes result; | |
15343 | PyObject * obj0 = 0 ; | |
15344 | char *kwnames[] = { | |
15345 | (char *) "variant", NULL | |
15346 | }; | |
15347 | ||
15348 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:Notebook_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
15349 | if (obj0) { | |
15350 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
15351 | if (PyErr_Occurred()) SWIG_fail; | |
15352 | } | |
15353 | { | |
110da5b0 | 15354 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
15355 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15356 | result = wxNotebook::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
15357 | ||
15358 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 15359 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
15360 | } |
15361 | { | |
15362 | wxVisualAttributes * resultptr; | |
15363 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
15364 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
15365 | } | |
15366 | return resultobj; | |
15367 | fail: | |
15368 | return NULL; | |
15369 | } | |
15370 | ||
15371 | ||
d14a1e28 RD |
15372 | static PyObject * Notebook_swigregister(PyObject *self, PyObject *args) { |
15373 | PyObject *obj; | |
15374 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15375 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebook, obj); | |
15376 | Py_INCREF(obj); | |
15377 | return Py_BuildValue((char *)""); | |
15378 | } | |
15379 | static PyObject *_wrap_new_NotebookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15380 | PyObject *resultobj; | |
15381 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15382 | int arg2 = (int) 0 ; | |
15383 | int arg3 = (int) -1 ; | |
15384 | int arg4 = (int) -1 ; | |
15385 | wxNotebookEvent *result; | |
994141e6 RD |
15386 | PyObject * obj0 = 0 ; |
15387 | PyObject * obj1 = 0 ; | |
15388 | PyObject * obj2 = 0 ; | |
15389 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15390 | char *kwnames[] = { |
15391 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15392 | }; | |
15393 | ||
994141e6 RD |
15394 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_NotebookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15395 | if (obj0) { | |
15afbcd0 RD |
15396 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15397 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15398 | } |
15399 | if (obj1) { | |
15afbcd0 RD |
15400 | arg2 = (int) SWIG_AsInt(obj1); |
15401 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15402 | } |
15403 | if (obj2) { | |
15afbcd0 RD |
15404 | arg3 = (int) SWIG_AsInt(obj2); |
15405 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15406 | } |
15407 | if (obj3) { | |
15afbcd0 RD |
15408 | arg4 = (int) SWIG_AsInt(obj3); |
15409 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15410 | } |
d14a1e28 RD |
15411 | { |
15412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15413 | result = (wxNotebookEvent *)new wxNotebookEvent(arg1,arg2,arg3,arg4); | |
15414 | ||
15415 | wxPyEndAllowThreads(__tstate); | |
15416 | if (PyErr_Occurred()) SWIG_fail; | |
15417 | } | |
15afbcd0 | 15418 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookEvent, 1); |
d14a1e28 RD |
15419 | return resultobj; |
15420 | fail: | |
15421 | return NULL; | |
15422 | } | |
15423 | ||
15424 | ||
15425 | static PyObject * NotebookEvent_swigregister(PyObject *self, PyObject *args) { | |
15426 | PyObject *obj; | |
15427 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15428 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookEvent, obj); | |
15429 | Py_INCREF(obj); | |
15430 | return Py_BuildValue((char *)""); | |
15431 | } | |
15432 | static PyObject *_wrap_new_Listbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15433 | PyObject *resultobj; | |
15434 | wxWindow *arg1 = (wxWindow *) 0 ; | |
4f89f6a3 | 15435 | int arg2 = (int) -1 ; |
d14a1e28 RD |
15436 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
15437 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
15438 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
15439 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
15440 | long arg5 = (long) 0 ; | |
15441 | wxString const &arg6_defvalue = wxPyEmptyString ; | |
15442 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
15443 | wxListbook *result; | |
15444 | wxPoint temp3 ; | |
15445 | wxSize temp4 ; | |
e811c8ce | 15446 | bool temp6 = False ; |
d14a1e28 | 15447 | PyObject * obj0 = 0 ; |
994141e6 | 15448 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
15449 | PyObject * obj2 = 0 ; |
15450 | PyObject * obj3 = 0 ; | |
994141e6 | 15451 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
15452 | PyObject * obj5 = 0 ; |
15453 | char *kwnames[] = { | |
15454 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15455 | }; | |
15456 | ||
4f89f6a3 | 15457 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_Listbook",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
15458 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
15459 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
4f89f6a3 RD |
15460 | if (obj1) { |
15461 | arg2 = (int) SWIG_AsInt(obj1); | |
15462 | if (PyErr_Occurred()) SWIG_fail; | |
15463 | } | |
d14a1e28 RD |
15464 | if (obj2) { |
15465 | { | |
15466 | arg3 = &temp3; | |
15467 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
15468 | } | |
15469 | } | |
15470 | if (obj3) { | |
15471 | { | |
15472 | arg4 = &temp4; | |
15473 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
15474 | } | |
15475 | } | |
994141e6 | 15476 | if (obj4) { |
15afbcd0 RD |
15477 | arg5 = (long) SWIG_AsLong(obj4); |
15478 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15479 | } |
d14a1e28 RD |
15480 | if (obj5) { |
15481 | { | |
15482 | arg6 = wxString_in_helper(obj5); | |
15483 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 15484 | temp6 = True; |
d14a1e28 RD |
15485 | } |
15486 | } | |
15487 | { | |
e3b71cb8 | 15488 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15490 | result = (wxListbook *)new wxListbook(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
15491 | ||
15492 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15493 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15494 | } |
15afbcd0 | 15495 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15496 | { |
15497 | if (temp6) | |
15498 | delete arg6; | |
15499 | } | |
15500 | return resultobj; | |
15501 | fail: | |
15502 | { | |
15503 | if (temp6) | |
15504 | delete arg6; | |
15505 | } | |
15506 | return NULL; | |
15507 | } | |
15508 | ||
15509 | ||
15510 | static PyObject *_wrap_new_PreListbook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15511 | PyObject *resultobj; | |
15512 | wxListbook *result; | |
15513 | char *kwnames[] = { | |
15514 | NULL | |
15515 | }; | |
15516 | ||
15517 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListbook",kwnames)) goto fail; | |
15518 | { | |
e3b71cb8 | 15519 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
15520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
15521 | result = (wxListbook *)new wxListbook(); | |
15522 | ||
15523 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 15524 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 15525 | } |
15afbcd0 | 15526 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbook, 1); |
d14a1e28 RD |
15527 | return resultobj; |
15528 | fail: | |
15529 | return NULL; | |
15530 | } | |
15531 | ||
15532 | ||
15533 | static PyObject *_wrap_Listbook_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15534 | PyObject *resultobj; | |
15535 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15536 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 15537 | int arg3 = (int) -1 ; |
d14a1e28 RD |
15538 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
15539 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
15540 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
15541 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
15542 | long arg6 = (long) 0 ; | |
15543 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
15544 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
15545 | bool result; | |
15546 | wxPoint temp4 ; | |
15547 | wxSize temp5 ; | |
e811c8ce | 15548 | bool temp7 = False ; |
d14a1e28 RD |
15549 | PyObject * obj0 = 0 ; |
15550 | PyObject * obj1 = 0 ; | |
994141e6 | 15551 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
15552 | PyObject * obj3 = 0 ; |
15553 | PyObject * obj4 = 0 ; | |
994141e6 | 15554 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
15555 | PyObject * obj6 = 0 ; |
15556 | char *kwnames[] = { | |
15557 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
15558 | }; | |
15559 | ||
248ed943 | 15560 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:Listbook_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
15561 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15562 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
15563 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
15564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
15565 | if (obj2) { |
15566 | arg3 = (int) SWIG_AsInt(obj2); | |
15567 | if (PyErr_Occurred()) SWIG_fail; | |
15568 | } | |
d14a1e28 RD |
15569 | if (obj3) { |
15570 | { | |
15571 | arg4 = &temp4; | |
15572 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
15573 | } | |
15574 | } | |
15575 | if (obj4) { | |
15576 | { | |
15577 | arg5 = &temp5; | |
15578 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
15579 | } | |
15580 | } | |
994141e6 | 15581 | if (obj5) { |
15afbcd0 RD |
15582 | arg6 = (long) SWIG_AsLong(obj5); |
15583 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15584 | } |
d14a1e28 RD |
15585 | if (obj6) { |
15586 | { | |
15587 | arg7 = wxString_in_helper(obj6); | |
15588 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 15589 | temp7 = True; |
d14a1e28 RD |
15590 | } |
15591 | } | |
15592 | { | |
15593 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15594 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
15595 | ||
15596 | wxPyEndAllowThreads(__tstate); | |
15597 | if (PyErr_Occurred()) SWIG_fail; | |
15598 | } | |
4f89f6a3 RD |
15599 | { |
15600 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15601 | } | |
d14a1e28 RD |
15602 | { |
15603 | if (temp7) | |
15604 | delete arg7; | |
15605 | } | |
15606 | return resultobj; | |
15607 | fail: | |
15608 | { | |
15609 | if (temp7) | |
15610 | delete arg7; | |
15611 | } | |
15612 | return NULL; | |
15613 | } | |
15614 | ||
15615 | ||
15616 | static PyObject *_wrap_Listbook_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15617 | PyObject *resultobj; | |
15618 | wxListbook *arg1 = (wxListbook *) 0 ; | |
15619 | bool result; | |
15620 | PyObject * obj0 = 0 ; | |
15621 | char *kwnames[] = { | |
15622 | (char *) "self", NULL | |
15623 | }; | |
15624 | ||
15625 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:Listbook_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15626 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListbook, |
15627 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15628 | { |
15629 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15630 | result = (bool)((wxListbook const *)arg1)->IsVertical(); | |
15631 | ||
15632 | wxPyEndAllowThreads(__tstate); | |
15633 | if (PyErr_Occurred()) SWIG_fail; | |
15634 | } | |
4f89f6a3 RD |
15635 | { |
15636 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
15637 | } | |
d14a1e28 RD |
15638 | return resultobj; |
15639 | fail: | |
15640 | return NULL; | |
15641 | } | |
15642 | ||
15643 | ||
15644 | static PyObject * Listbook_swigregister(PyObject *self, PyObject *args) { | |
15645 | PyObject *obj; | |
15646 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15647 | SWIG_TypeClientData(SWIGTYPE_p_wxListbook, obj); | |
15648 | Py_INCREF(obj); | |
15649 | return Py_BuildValue((char *)""); | |
15650 | } | |
15651 | static PyObject *_wrap_new_ListbookEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15652 | PyObject *resultobj; | |
15653 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
15654 | int arg2 = (int) 0 ; | |
15655 | int arg3 = (int) -1 ; | |
15656 | int arg4 = (int) -1 ; | |
15657 | wxListbookEvent *result; | |
994141e6 RD |
15658 | PyObject * obj0 = 0 ; |
15659 | PyObject * obj1 = 0 ; | |
15660 | PyObject * obj2 = 0 ; | |
15661 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
15662 | char *kwnames[] = { |
15663 | (char *) "commandType",(char *) "id",(char *) "nSel",(char *) "nOldSel", NULL | |
15664 | }; | |
15665 | ||
994141e6 RD |
15666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOOO:new_ListbookEvent",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15667 | if (obj0) { | |
15afbcd0 RD |
15668 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
15669 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15670 | } |
15671 | if (obj1) { | |
15afbcd0 RD |
15672 | arg2 = (int) SWIG_AsInt(obj1); |
15673 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15674 | } |
15675 | if (obj2) { | |
15afbcd0 RD |
15676 | arg3 = (int) SWIG_AsInt(obj2); |
15677 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
15678 | } |
15679 | if (obj3) { | |
15afbcd0 RD |
15680 | arg4 = (int) SWIG_AsInt(obj3); |
15681 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 15682 | } |
d14a1e28 RD |
15683 | { |
15684 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15685 | result = (wxListbookEvent *)new wxListbookEvent(arg1,arg2,arg3,arg4); | |
15686 | ||
15687 | wxPyEndAllowThreads(__tstate); | |
15688 | if (PyErr_Occurred()) SWIG_fail; | |
15689 | } | |
15afbcd0 | 15690 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListbookEvent, 1); |
d14a1e28 RD |
15691 | return resultobj; |
15692 | fail: | |
15693 | return NULL; | |
15694 | } | |
15695 | ||
15696 | ||
15697 | static PyObject * ListbookEvent_swigregister(PyObject *self, PyObject *args) { | |
15698 | PyObject *obj; | |
15699 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15700 | SWIG_TypeClientData(SWIGTYPE_p_wxListbookEvent, obj); | |
15701 | Py_INCREF(obj); | |
15702 | return Py_BuildValue((char *)""); | |
15703 | } | |
15704 | static PyObject *_wrap_new_BookCtrlSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15705 | PyObject *resultobj; | |
15706 | wxBookCtrl *arg1 = (wxBookCtrl *) 0 ; | |
15707 | wxBookCtrlSizer *result; | |
15708 | PyObject * obj0 = 0 ; | |
15709 | char *kwnames[] = { | |
15710 | (char *) "nb", NULL | |
15711 | }; | |
15712 | ||
15713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_BookCtrlSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15714 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrl, |
15715 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15716 | { |
15717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15718 | result = (wxBookCtrlSizer *)new wxBookCtrlSizer(arg1); | |
15719 | ||
15720 | wxPyEndAllowThreads(__tstate); | |
15721 | if (PyErr_Occurred()) SWIG_fail; | |
15722 | } | |
15afbcd0 | 15723 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrlSizer, 1); |
d14a1e28 RD |
15724 | return resultobj; |
15725 | fail: | |
15726 | return NULL; | |
15727 | } | |
15728 | ||
15729 | ||
15730 | static PyObject *_wrap_BookCtrlSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15731 | PyObject *resultobj; | |
15732 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15733 | PyObject * obj0 = 0 ; | |
15734 | char *kwnames[] = { | |
15735 | (char *) "self", NULL | |
15736 | }; | |
15737 | ||
15738 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15739 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15740 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15741 | { |
15742 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15743 | (arg1)->RecalcSizes(); | |
15744 | ||
15745 | wxPyEndAllowThreads(__tstate); | |
15746 | if (PyErr_Occurred()) SWIG_fail; | |
15747 | } | |
15748 | Py_INCREF(Py_None); resultobj = Py_None; | |
15749 | return resultobj; | |
15750 | fail: | |
15751 | return NULL; | |
15752 | } | |
15753 | ||
15754 | ||
15755 | static PyObject *_wrap_BookCtrlSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15756 | PyObject *resultobj; | |
15757 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15758 | wxSize result; | |
15759 | PyObject * obj0 = 0 ; | |
15760 | char *kwnames[] = { | |
15761 | (char *) "self", NULL | |
15762 | }; | |
15763 | ||
15764 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15765 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15766 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15767 | { |
15768 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15769 | result = (arg1)->CalcMin(); | |
15770 | ||
15771 | wxPyEndAllowThreads(__tstate); | |
15772 | if (PyErr_Occurred()) SWIG_fail; | |
15773 | } | |
15774 | { | |
15775 | wxSize * resultptr; | |
15776 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15777 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15778 | } |
15779 | return resultobj; | |
15780 | fail: | |
15781 | return NULL; | |
15782 | } | |
15783 | ||
15784 | ||
15785 | static PyObject *_wrap_BookCtrlSizer_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15786 | PyObject *resultobj; | |
15787 | wxBookCtrlSizer *arg1 = (wxBookCtrlSizer *) 0 ; | |
15788 | wxBookCtrl *result; | |
15789 | PyObject * obj0 = 0 ; | |
15790 | char *kwnames[] = { | |
15791 | (char *) "self", NULL | |
15792 | }; | |
15793 | ||
15794 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:BookCtrlSizer_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15795 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBookCtrlSizer, |
15796 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15797 | { |
15798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15799 | result = (wxBookCtrl *)(arg1)->GetControl(); | |
15800 | ||
15801 | wxPyEndAllowThreads(__tstate); | |
15802 | if (PyErr_Occurred()) SWIG_fail; | |
15803 | } | |
15afbcd0 | 15804 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxBookCtrl, 0); |
d14a1e28 RD |
15805 | return resultobj; |
15806 | fail: | |
15807 | return NULL; | |
15808 | } | |
15809 | ||
15810 | ||
15811 | static PyObject * BookCtrlSizer_swigregister(PyObject *self, PyObject *args) { | |
15812 | PyObject *obj; | |
15813 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15814 | SWIG_TypeClientData(SWIGTYPE_p_wxBookCtrlSizer, obj); | |
15815 | Py_INCREF(obj); | |
15816 | return Py_BuildValue((char *)""); | |
15817 | } | |
15818 | static PyObject *_wrap_new_NotebookSizer(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15819 | PyObject *resultobj; | |
15820 | wxNotebook *arg1 = (wxNotebook *) 0 ; | |
15821 | wxNotebookSizer *result; | |
15822 | PyObject * obj0 = 0 ; | |
15823 | char *kwnames[] = { | |
15824 | (char *) "nb", NULL | |
15825 | }; | |
15826 | ||
15827 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:new_NotebookSizer",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15828 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebook, |
15829 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15830 | { |
15831 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15832 | result = (wxNotebookSizer *)new wxNotebookSizer(arg1); | |
15833 | ||
15834 | wxPyEndAllowThreads(__tstate); | |
15835 | if (PyErr_Occurred()) SWIG_fail; | |
15836 | } | |
15afbcd0 | 15837 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxNotebookSizer, 1); |
d14a1e28 RD |
15838 | return resultobj; |
15839 | fail: | |
15840 | return NULL; | |
15841 | } | |
15842 | ||
15843 | ||
15844 | static PyObject *_wrap_NotebookSizer_RecalcSizes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15845 | PyObject *resultobj; | |
15846 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15847 | PyObject * obj0 = 0 ; | |
15848 | char *kwnames[] = { | |
15849 | (char *) "self", NULL | |
15850 | }; | |
15851 | ||
15852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_RecalcSizes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15855 | { |
15856 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15857 | (arg1)->RecalcSizes(); | |
15858 | ||
15859 | wxPyEndAllowThreads(__tstate); | |
15860 | if (PyErr_Occurred()) SWIG_fail; | |
15861 | } | |
15862 | Py_INCREF(Py_None); resultobj = Py_None; | |
15863 | return resultobj; | |
15864 | fail: | |
15865 | return NULL; | |
15866 | } | |
15867 | ||
15868 | ||
15869 | static PyObject *_wrap_NotebookSizer_CalcMin(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15870 | PyObject *resultobj; | |
15871 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15872 | wxSize result; | |
15873 | PyObject * obj0 = 0 ; | |
15874 | char *kwnames[] = { | |
15875 | (char *) "self", NULL | |
15876 | }; | |
15877 | ||
15878 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_CalcMin",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15879 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15880 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15881 | { |
15882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15883 | result = (arg1)->CalcMin(); | |
15884 | ||
15885 | wxPyEndAllowThreads(__tstate); | |
15886 | if (PyErr_Occurred()) SWIG_fail; | |
15887 | } | |
15888 | { | |
15889 | wxSize * resultptr; | |
15890 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 15891 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
15892 | } |
15893 | return resultobj; | |
15894 | fail: | |
15895 | return NULL; | |
15896 | } | |
15897 | ||
15898 | ||
15899 | static PyObject *_wrap_NotebookSizer_GetNotebook(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15900 | PyObject *resultobj; | |
15901 | wxNotebookSizer *arg1 = (wxNotebookSizer *) 0 ; | |
15902 | wxNotebook *result; | |
15903 | PyObject * obj0 = 0 ; | |
15904 | char *kwnames[] = { | |
15905 | (char *) "self", NULL | |
15906 | }; | |
15907 | ||
15908 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:NotebookSizer_GetNotebook",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15909 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxNotebookSizer, |
15910 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15911 | { |
15912 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15913 | result = (wxNotebook *)(arg1)->GetNotebook(); | |
15914 | ||
15915 | wxPyEndAllowThreads(__tstate); | |
15916 | if (PyErr_Occurred()) SWIG_fail; | |
15917 | } | |
15918 | { | |
412d302d | 15919 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15920 | } |
15921 | return resultobj; | |
15922 | fail: | |
15923 | return NULL; | |
15924 | } | |
15925 | ||
15926 | ||
15927 | static PyObject * NotebookSizer_swigregister(PyObject *self, PyObject *args) { | |
15928 | PyObject *obj; | |
15929 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
15930 | SWIG_TypeClientData(SWIGTYPE_p_wxNotebookSizer, obj); | |
15931 | Py_INCREF(obj); | |
15932 | return Py_BuildValue((char *)""); | |
15933 | } | |
15934 | static PyObject *_wrap_ToolBarToolBase_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15935 | PyObject *resultobj; | |
15936 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15937 | int result; | |
15938 | PyObject * obj0 = 0 ; | |
15939 | char *kwnames[] = { | |
15940 | (char *) "self", NULL | |
15941 | }; | |
15942 | ||
15943 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15944 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15945 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15946 | { |
15947 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15948 | result = (int)(arg1)->GetId(); | |
15949 | ||
15950 | wxPyEndAllowThreads(__tstate); | |
15951 | if (PyErr_Occurred()) SWIG_fail; | |
15952 | } | |
15afbcd0 | 15953 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
15954 | return resultobj; |
15955 | fail: | |
15956 | return NULL; | |
15957 | } | |
15958 | ||
15959 | ||
15960 | static PyObject *_wrap_ToolBarToolBase_GetControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15961 | PyObject *resultobj; | |
15962 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15963 | wxControl *result; | |
15964 | PyObject * obj0 = 0 ; | |
15965 | char *kwnames[] = { | |
15966 | (char *) "self", NULL | |
15967 | }; | |
15968 | ||
15969 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15970 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15971 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
15972 | { |
15973 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15974 | result = (wxControl *)(arg1)->GetControl(); | |
15975 | ||
15976 | wxPyEndAllowThreads(__tstate); | |
15977 | if (PyErr_Occurred()) SWIG_fail; | |
15978 | } | |
15979 | { | |
412d302d | 15980 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
15981 | } |
15982 | return resultobj; | |
15983 | fail: | |
15984 | return NULL; | |
15985 | } | |
15986 | ||
15987 | ||
15988 | static PyObject *_wrap_ToolBarToolBase_GetToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
15989 | PyObject *resultobj; | |
15990 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
15991 | wxToolBarBase *result; | |
15992 | PyObject * obj0 = 0 ; | |
15993 | char *kwnames[] = { | |
15994 | (char *) "self", NULL | |
15995 | }; | |
15996 | ||
15997 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetToolBar",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
15998 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
15999 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16000 | { |
16001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16002 | result = (wxToolBarBase *)(arg1)->GetToolBar(); | |
16003 | ||
16004 | wxPyEndAllowThreads(__tstate); | |
16005 | if (PyErr_Occurred()) SWIG_fail; | |
16006 | } | |
16007 | { | |
412d302d | 16008 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16009 | } |
16010 | return resultobj; | |
16011 | fail: | |
16012 | return NULL; | |
16013 | } | |
16014 | ||
16015 | ||
16016 | static PyObject *_wrap_ToolBarToolBase_IsButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16017 | PyObject *resultobj; | |
16018 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16019 | int result; | |
16020 | PyObject * obj0 = 0 ; | |
16021 | char *kwnames[] = { | |
16022 | (char *) "self", NULL | |
16023 | }; | |
16024 | ||
16025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsButton",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16028 | { |
16029 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16030 | result = (int)(arg1)->IsButton(); | |
16031 | ||
16032 | wxPyEndAllowThreads(__tstate); | |
16033 | if (PyErr_Occurred()) SWIG_fail; | |
16034 | } | |
15afbcd0 | 16035 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16036 | return resultobj; |
16037 | fail: | |
16038 | return NULL; | |
16039 | } | |
16040 | ||
16041 | ||
16042 | static PyObject *_wrap_ToolBarToolBase_IsControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16043 | PyObject *resultobj; | |
16044 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16045 | int result; | |
16046 | PyObject * obj0 = 0 ; | |
16047 | char *kwnames[] = { | |
16048 | (char *) "self", NULL | |
16049 | }; | |
16050 | ||
16051 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16052 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16053 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16054 | { |
16055 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16056 | result = (int)(arg1)->IsControl(); | |
16057 | ||
16058 | wxPyEndAllowThreads(__tstate); | |
16059 | if (PyErr_Occurred()) SWIG_fail; | |
16060 | } | |
15afbcd0 | 16061 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16062 | return resultobj; |
16063 | fail: | |
16064 | return NULL; | |
16065 | } | |
16066 | ||
16067 | ||
16068 | static PyObject *_wrap_ToolBarToolBase_IsSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16069 | PyObject *resultobj; | |
16070 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16071 | int result; | |
16072 | PyObject * obj0 = 0 ; | |
16073 | char *kwnames[] = { | |
16074 | (char *) "self", NULL | |
16075 | }; | |
16076 | ||
16077 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16078 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16079 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16080 | { |
16081 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16082 | result = (int)(arg1)->IsSeparator(); | |
16083 | ||
16084 | wxPyEndAllowThreads(__tstate); | |
16085 | if (PyErr_Occurred()) SWIG_fail; | |
16086 | } | |
15afbcd0 | 16087 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16088 | return resultobj; |
16089 | fail: | |
16090 | return NULL; | |
16091 | } | |
16092 | ||
16093 | ||
16094 | static PyObject *_wrap_ToolBarToolBase_GetStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16095 | PyObject *resultobj; | |
16096 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16097 | int result; | |
16098 | PyObject * obj0 = 0 ; | |
16099 | char *kwnames[] = { | |
16100 | (char *) "self", NULL | |
16101 | }; | |
16102 | ||
16103 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetStyle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16104 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16105 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16106 | { |
16107 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16108 | result = (int)(arg1)->GetStyle(); | |
16109 | ||
16110 | wxPyEndAllowThreads(__tstate); | |
16111 | if (PyErr_Occurred()) SWIG_fail; | |
16112 | } | |
15afbcd0 | 16113 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16114 | return resultobj; |
16115 | fail: | |
16116 | return NULL; | |
16117 | } | |
16118 | ||
16119 | ||
16120 | static PyObject *_wrap_ToolBarToolBase_GetKind(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16121 | PyObject *resultobj; | |
16122 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16123 | int result; | |
16124 | PyObject * obj0 = 0 ; | |
16125 | char *kwnames[] = { | |
16126 | (char *) "self", NULL | |
16127 | }; | |
16128 | ||
16129 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetKind",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16130 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16132 | { |
16133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16134 | result = (int)(arg1)->GetKind(); | |
16135 | ||
16136 | wxPyEndAllowThreads(__tstate); | |
16137 | if (PyErr_Occurred()) SWIG_fail; | |
16138 | } | |
15afbcd0 | 16139 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
16140 | return resultobj; |
16141 | fail: | |
16142 | return NULL; | |
16143 | } | |
16144 | ||
16145 | ||
16146 | static PyObject *_wrap_ToolBarToolBase_IsEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16147 | PyObject *resultobj; | |
16148 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16149 | bool result; | |
16150 | PyObject * obj0 = 0 ; | |
16151 | char *kwnames[] = { | |
16152 | (char *) "self", NULL | |
16153 | }; | |
16154 | ||
16155 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsEnabled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16156 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16157 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16158 | { |
16159 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16160 | result = (bool)(arg1)->IsEnabled(); | |
16161 | ||
16162 | wxPyEndAllowThreads(__tstate); | |
16163 | if (PyErr_Occurred()) SWIG_fail; | |
16164 | } | |
4f89f6a3 RD |
16165 | { |
16166 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16167 | } | |
d14a1e28 RD |
16168 | return resultobj; |
16169 | fail: | |
16170 | return NULL; | |
16171 | } | |
16172 | ||
16173 | ||
16174 | static PyObject *_wrap_ToolBarToolBase_IsToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16175 | PyObject *resultobj; | |
16176 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16177 | bool result; | |
16178 | PyObject * obj0 = 0 ; | |
16179 | char *kwnames[] = { | |
16180 | (char *) "self", NULL | |
16181 | }; | |
16182 | ||
16183 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_IsToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16184 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16185 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16186 | { |
16187 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16188 | result = (bool)(arg1)->IsToggled(); | |
16189 | ||
16190 | wxPyEndAllowThreads(__tstate); | |
16191 | if (PyErr_Occurred()) SWIG_fail; | |
16192 | } | |
4f89f6a3 RD |
16193 | { |
16194 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16195 | } | |
d14a1e28 RD |
16196 | return resultobj; |
16197 | fail: | |
16198 | return NULL; | |
16199 | } | |
16200 | ||
16201 | ||
16202 | static PyObject *_wrap_ToolBarToolBase_CanBeToggled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16203 | PyObject *resultobj; | |
16204 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16205 | bool result; | |
16206 | PyObject * obj0 = 0 ; | |
16207 | char *kwnames[] = { | |
16208 | (char *) "self", NULL | |
16209 | }; | |
16210 | ||
16211 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_CanBeToggled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16212 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16214 | { |
16215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16216 | result = (bool)(arg1)->CanBeToggled(); | |
16217 | ||
16218 | wxPyEndAllowThreads(__tstate); | |
16219 | if (PyErr_Occurred()) SWIG_fail; | |
16220 | } | |
4f89f6a3 RD |
16221 | { |
16222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16223 | } | |
d14a1e28 RD |
16224 | return resultobj; |
16225 | fail: | |
16226 | return NULL; | |
16227 | } | |
16228 | ||
16229 | ||
16230 | static PyObject *_wrap_ToolBarToolBase_GetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16231 | PyObject *resultobj; | |
16232 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16233 | wxBitmap *result; | |
16234 | PyObject * obj0 = 0 ; | |
16235 | char *kwnames[] = { | |
16236 | (char *) "self", NULL | |
16237 | }; | |
16238 | ||
16239 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetNormalBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16240 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16241 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16242 | { |
16243 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16244 | { | |
16245 | wxBitmap const &_result_ref = (arg1)->GetNormalBitmap(); | |
16246 | result = (wxBitmap *) &_result_ref; | |
16247 | } | |
16248 | ||
16249 | wxPyEndAllowThreads(__tstate); | |
16250 | if (PyErr_Occurred()) SWIG_fail; | |
16251 | } | |
4276dc52 RD |
16252 | { |
16253 | wxBitmap* resultptr = new wxBitmap(*result); | |
16254 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16255 | } | |
d14a1e28 RD |
16256 | return resultobj; |
16257 | fail: | |
16258 | return NULL; | |
16259 | } | |
16260 | ||
16261 | ||
16262 | static PyObject *_wrap_ToolBarToolBase_GetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16263 | PyObject *resultobj; | |
16264 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16265 | wxBitmap *result; | |
16266 | PyObject * obj0 = 0 ; | |
16267 | char *kwnames[] = { | |
16268 | (char *) "self", NULL | |
16269 | }; | |
16270 | ||
16271 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetDisabledBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16272 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16273 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16274 | { |
16275 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16276 | { | |
16277 | wxBitmap const &_result_ref = (arg1)->GetDisabledBitmap(); | |
16278 | result = (wxBitmap *) &_result_ref; | |
16279 | } | |
16280 | ||
16281 | wxPyEndAllowThreads(__tstate); | |
16282 | if (PyErr_Occurred()) SWIG_fail; | |
16283 | } | |
4276dc52 RD |
16284 | { |
16285 | wxBitmap* resultptr = new wxBitmap(*result); | |
16286 | resultobj = SWIG_NewPointerObj((void*)(resultptr), SWIGTYPE_p_wxBitmap, 1); | |
16287 | } | |
d14a1e28 RD |
16288 | return resultobj; |
16289 | fail: | |
16290 | return NULL; | |
16291 | } | |
16292 | ||
16293 | ||
16294 | static PyObject *_wrap_ToolBarToolBase_GetBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16295 | PyObject *resultobj; | |
16296 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16297 | wxBitmap result; | |
16298 | PyObject * obj0 = 0 ; | |
16299 | char *kwnames[] = { | |
16300 | (char *) "self", NULL | |
16301 | }; | |
16302 | ||
16303 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetBitmap",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16304 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16305 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16306 | { |
16307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16308 | result = (arg1)->GetBitmap(); | |
16309 | ||
16310 | wxPyEndAllowThreads(__tstate); | |
16311 | if (PyErr_Occurred()) SWIG_fail; | |
16312 | } | |
16313 | { | |
16314 | wxBitmap * resultptr; | |
16315 | resultptr = new wxBitmap((wxBitmap &) result); | |
15afbcd0 | 16316 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxBitmap, 1); |
d14a1e28 RD |
16317 | } |
16318 | return resultobj; | |
16319 | fail: | |
16320 | return NULL; | |
16321 | } | |
16322 | ||
16323 | ||
16324 | static PyObject *_wrap_ToolBarToolBase_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16325 | PyObject *resultobj; | |
16326 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16327 | wxString result; | |
16328 | PyObject * obj0 = 0 ; | |
16329 | char *kwnames[] = { | |
16330 | (char *) "self", NULL | |
16331 | }; | |
16332 | ||
16333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16336 | { |
16337 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16338 | result = (arg1)->GetLabel(); | |
16339 | ||
16340 | wxPyEndAllowThreads(__tstate); | |
16341 | if (PyErr_Occurred()) SWIG_fail; | |
16342 | } | |
16343 | { | |
16344 | #if wxUSE_UNICODE | |
16345 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16346 | #else | |
16347 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16348 | #endif | |
16349 | } | |
16350 | return resultobj; | |
16351 | fail: | |
16352 | return NULL; | |
16353 | } | |
16354 | ||
16355 | ||
16356 | static PyObject *_wrap_ToolBarToolBase_GetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16357 | PyObject *resultobj; | |
16358 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16359 | wxString result; | |
16360 | PyObject * obj0 = 0 ; | |
16361 | char *kwnames[] = { | |
16362 | (char *) "self", NULL | |
16363 | }; | |
16364 | ||
16365 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetShortHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16366 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16367 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16368 | { |
16369 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16370 | result = (arg1)->GetShortHelp(); | |
16371 | ||
16372 | wxPyEndAllowThreads(__tstate); | |
16373 | if (PyErr_Occurred()) SWIG_fail; | |
16374 | } | |
16375 | { | |
16376 | #if wxUSE_UNICODE | |
16377 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16378 | #else | |
16379 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16380 | #endif | |
16381 | } | |
16382 | return resultobj; | |
16383 | fail: | |
16384 | return NULL; | |
16385 | } | |
16386 | ||
16387 | ||
16388 | static PyObject *_wrap_ToolBarToolBase_GetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16389 | PyObject *resultobj; | |
16390 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16391 | wxString result; | |
16392 | PyObject * obj0 = 0 ; | |
16393 | char *kwnames[] = { | |
16394 | (char *) "self", NULL | |
16395 | }; | |
16396 | ||
16397 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetLongHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16398 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16399 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16400 | { |
16401 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16402 | result = (arg1)->GetLongHelp(); | |
16403 | ||
16404 | wxPyEndAllowThreads(__tstate); | |
16405 | if (PyErr_Occurred()) SWIG_fail; | |
16406 | } | |
16407 | { | |
16408 | #if wxUSE_UNICODE | |
16409 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
16410 | #else | |
16411 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
16412 | #endif | |
16413 | } | |
16414 | return resultobj; | |
16415 | fail: | |
16416 | return NULL; | |
16417 | } | |
16418 | ||
16419 | ||
16420 | static PyObject *_wrap_ToolBarToolBase_Enable(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16421 | PyObject *resultobj; | |
16422 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16423 | bool arg2 ; | |
16424 | bool result; | |
16425 | PyObject * obj0 = 0 ; | |
16426 | PyObject * obj1 = 0 ; | |
16427 | char *kwnames[] = { | |
16428 | (char *) "self",(char *) "enable", NULL | |
16429 | }; | |
16430 | ||
16431 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Enable",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16432 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16433 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16434 | arg2 = (bool) SWIG_AsBool(obj1); | |
16435 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16436 | { |
16437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16438 | result = (bool)(arg1)->Enable(arg2); | |
16439 | ||
16440 | wxPyEndAllowThreads(__tstate); | |
16441 | if (PyErr_Occurred()) SWIG_fail; | |
16442 | } | |
4f89f6a3 RD |
16443 | { |
16444 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16445 | } | |
d14a1e28 RD |
16446 | return resultobj; |
16447 | fail: | |
16448 | return NULL; | |
16449 | } | |
16450 | ||
16451 | ||
16452 | static PyObject *_wrap_ToolBarToolBase_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16453 | PyObject *resultobj; | |
16454 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16455 | PyObject * obj0 = 0 ; | |
16456 | char *kwnames[] = { | |
16457 | (char *) "self", NULL | |
16458 | }; | |
16459 | ||
16460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Toggle",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16463 | { |
16464 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16465 | (arg1)->Toggle(); | |
16466 | ||
16467 | wxPyEndAllowThreads(__tstate); | |
16468 | if (PyErr_Occurred()) SWIG_fail; | |
16469 | } | |
16470 | Py_INCREF(Py_None); resultobj = Py_None; | |
16471 | return resultobj; | |
16472 | fail: | |
16473 | return NULL; | |
16474 | } | |
16475 | ||
16476 | ||
16477 | static PyObject *_wrap_ToolBarToolBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16478 | PyObject *resultobj; | |
16479 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16480 | bool arg2 ; | |
16481 | bool result; | |
16482 | PyObject * obj0 = 0 ; | |
16483 | PyObject * obj1 = 0 ; | |
16484 | char *kwnames[] = { | |
16485 | (char *) "self",(char *) "toggle", NULL | |
16486 | }; | |
16487 | ||
16488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetToggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16491 | arg2 = (bool) SWIG_AsBool(obj1); | |
16492 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16493 | { |
16494 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16495 | result = (bool)(arg1)->SetToggle(arg2); | |
16496 | ||
16497 | wxPyEndAllowThreads(__tstate); | |
16498 | if (PyErr_Occurred()) SWIG_fail; | |
16499 | } | |
4f89f6a3 RD |
16500 | { |
16501 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16502 | } | |
d14a1e28 RD |
16503 | return resultobj; |
16504 | fail: | |
16505 | return NULL; | |
16506 | } | |
16507 | ||
16508 | ||
16509 | static PyObject *_wrap_ToolBarToolBase_SetShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16510 | PyObject *resultobj; | |
16511 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16512 | wxString *arg2 = 0 ; | |
16513 | bool result; | |
e811c8ce | 16514 | bool temp2 = False ; |
d14a1e28 RD |
16515 | PyObject * obj0 = 0 ; |
16516 | PyObject * obj1 = 0 ; | |
16517 | char *kwnames[] = { | |
16518 | (char *) "self",(char *) "help", NULL | |
16519 | }; | |
16520 | ||
16521 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetShortHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16522 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16523 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16524 | { |
16525 | arg2 = wxString_in_helper(obj1); | |
16526 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16527 | temp2 = True; |
d14a1e28 RD |
16528 | } |
16529 | { | |
16530 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16531 | result = (bool)(arg1)->SetShortHelp((wxString const &)*arg2); | |
16532 | ||
16533 | wxPyEndAllowThreads(__tstate); | |
16534 | if (PyErr_Occurred()) SWIG_fail; | |
16535 | } | |
4f89f6a3 RD |
16536 | { |
16537 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16538 | } | |
d14a1e28 RD |
16539 | { |
16540 | if (temp2) | |
16541 | delete arg2; | |
16542 | } | |
16543 | return resultobj; | |
16544 | fail: | |
16545 | { | |
16546 | if (temp2) | |
16547 | delete arg2; | |
16548 | } | |
16549 | return NULL; | |
16550 | } | |
16551 | ||
16552 | ||
16553 | static PyObject *_wrap_ToolBarToolBase_SetLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16554 | PyObject *resultobj; | |
16555 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16556 | wxString *arg2 = 0 ; | |
16557 | bool result; | |
e811c8ce | 16558 | bool temp2 = False ; |
d14a1e28 RD |
16559 | PyObject * obj0 = 0 ; |
16560 | PyObject * obj1 = 0 ; | |
16561 | char *kwnames[] = { | |
16562 | (char *) "self",(char *) "help", NULL | |
16563 | }; | |
16564 | ||
16565 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLongHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16566 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16567 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16568 | { |
16569 | arg2 = wxString_in_helper(obj1); | |
16570 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16571 | temp2 = True; |
d14a1e28 RD |
16572 | } |
16573 | { | |
16574 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16575 | result = (bool)(arg1)->SetLongHelp((wxString const &)*arg2); | |
16576 | ||
16577 | wxPyEndAllowThreads(__tstate); | |
16578 | if (PyErr_Occurred()) SWIG_fail; | |
16579 | } | |
4f89f6a3 RD |
16580 | { |
16581 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
16582 | } | |
d14a1e28 RD |
16583 | { |
16584 | if (temp2) | |
16585 | delete arg2; | |
16586 | } | |
16587 | return resultobj; | |
16588 | fail: | |
16589 | { | |
16590 | if (temp2) | |
16591 | delete arg2; | |
16592 | } | |
16593 | return NULL; | |
16594 | } | |
16595 | ||
16596 | ||
16597 | static PyObject *_wrap_ToolBarToolBase_SetNormalBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16598 | PyObject *resultobj; | |
16599 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16600 | wxBitmap *arg2 = 0 ; | |
16601 | PyObject * obj0 = 0 ; | |
16602 | PyObject * obj1 = 0 ; | |
16603 | char *kwnames[] = { | |
16604 | (char *) "self",(char *) "bmp", NULL | |
16605 | }; | |
16606 | ||
16607 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetNormalBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16608 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16609 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16612 | SWIG_fail; | |
d14a1e28 | 16613 | if (arg2 == NULL) { |
15afbcd0 RD |
16614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16615 | SWIG_fail; | |
d14a1e28 RD |
16616 | } |
16617 | { | |
16618 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16619 | (arg1)->SetNormalBitmap((wxBitmap const &)*arg2); | |
16620 | ||
16621 | wxPyEndAllowThreads(__tstate); | |
16622 | if (PyErr_Occurred()) SWIG_fail; | |
16623 | } | |
16624 | Py_INCREF(Py_None); resultobj = Py_None; | |
16625 | return resultobj; | |
16626 | fail: | |
16627 | return NULL; | |
16628 | } | |
16629 | ||
16630 | ||
16631 | static PyObject *_wrap_ToolBarToolBase_SetDisabledBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16632 | PyObject *resultobj; | |
16633 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16634 | wxBitmap *arg2 = 0 ; | |
16635 | PyObject * obj0 = 0 ; | |
16636 | PyObject * obj1 = 0 ; | |
16637 | char *kwnames[] = { | |
16638 | (char *) "self",(char *) "bmp", NULL | |
16639 | }; | |
16640 | ||
16641 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetDisabledBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16642 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16643 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16644 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
16645 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16646 | SWIG_fail; | |
d14a1e28 | 16647 | if (arg2 == NULL) { |
15afbcd0 RD |
16648 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16649 | SWIG_fail; | |
d14a1e28 RD |
16650 | } |
16651 | { | |
16652 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16653 | (arg1)->SetDisabledBitmap((wxBitmap const &)*arg2); | |
16654 | ||
16655 | wxPyEndAllowThreads(__tstate); | |
16656 | if (PyErr_Occurred()) SWIG_fail; | |
16657 | } | |
16658 | Py_INCREF(Py_None); resultobj = Py_None; | |
16659 | return resultobj; | |
16660 | fail: | |
16661 | return NULL; | |
16662 | } | |
16663 | ||
16664 | ||
16665 | static PyObject *_wrap_ToolBarToolBase_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16666 | PyObject *resultobj; | |
16667 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16668 | wxString *arg2 = 0 ; | |
e811c8ce | 16669 | bool temp2 = False ; |
d14a1e28 RD |
16670 | PyObject * obj0 = 0 ; |
16671 | PyObject * obj1 = 0 ; | |
16672 | char *kwnames[] = { | |
16673 | (char *) "self",(char *) "label", NULL | |
16674 | }; | |
16675 | ||
16676 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16677 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16678 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16679 | { |
16680 | arg2 = wxString_in_helper(obj1); | |
16681 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 16682 | temp2 = True; |
d14a1e28 RD |
16683 | } |
16684 | { | |
16685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16686 | (arg1)->SetLabel((wxString const &)*arg2); | |
16687 | ||
16688 | wxPyEndAllowThreads(__tstate); | |
16689 | if (PyErr_Occurred()) SWIG_fail; | |
16690 | } | |
16691 | Py_INCREF(Py_None); resultobj = Py_None; | |
16692 | { | |
16693 | if (temp2) | |
16694 | delete arg2; | |
16695 | } | |
16696 | return resultobj; | |
16697 | fail: | |
16698 | { | |
16699 | if (temp2) | |
16700 | delete arg2; | |
16701 | } | |
16702 | return NULL; | |
16703 | } | |
16704 | ||
16705 | ||
16706 | static PyObject *_wrap_ToolBarToolBase_Detach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16707 | PyObject *resultobj; | |
16708 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16709 | PyObject * obj0 = 0 ; | |
16710 | char *kwnames[] = { | |
16711 | (char *) "self", NULL | |
16712 | }; | |
16713 | ||
16714 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_Detach",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16715 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16716 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16717 | { |
16718 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16719 | (arg1)->Detach(); | |
16720 | ||
16721 | wxPyEndAllowThreads(__tstate); | |
16722 | if (PyErr_Occurred()) SWIG_fail; | |
16723 | } | |
16724 | Py_INCREF(Py_None); resultobj = Py_None; | |
16725 | return resultobj; | |
16726 | fail: | |
16727 | return NULL; | |
16728 | } | |
16729 | ||
16730 | ||
16731 | static PyObject *_wrap_ToolBarToolBase_Attach(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16732 | PyObject *resultobj; | |
16733 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16734 | wxToolBarBase *arg2 = (wxToolBarBase *) 0 ; | |
16735 | PyObject * obj0 = 0 ; | |
16736 | PyObject * obj1 = 0 ; | |
16737 | char *kwnames[] = { | |
16738 | (char *) "self",(char *) "tbar", NULL | |
16739 | }; | |
16740 | ||
16741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_Attach",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16744 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarBase, | |
16745 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16746 | { |
16747 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16748 | (arg1)->Attach(arg2); | |
16749 | ||
16750 | wxPyEndAllowThreads(__tstate); | |
16751 | if (PyErr_Occurred()) SWIG_fail; | |
16752 | } | |
16753 | Py_INCREF(Py_None); resultobj = Py_None; | |
16754 | return resultobj; | |
16755 | fail: | |
16756 | return NULL; | |
16757 | } | |
16758 | ||
16759 | ||
16760 | static PyObject *_wrap_ToolBarToolBase_GetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16761 | PyObject *resultobj; | |
16762 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16763 | PyObject *result; | |
16764 | PyObject * obj0 = 0 ; | |
16765 | char *kwnames[] = { | |
16766 | (char *) "self", NULL | |
16767 | }; | |
16768 | ||
16769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarToolBase_GetClientData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
16770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16772 | { |
16773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16774 | result = (PyObject *)wxToolBarToolBase_GetClientData(arg1); | |
16775 | ||
16776 | wxPyEndAllowThreads(__tstate); | |
16777 | if (PyErr_Occurred()) SWIG_fail; | |
16778 | } | |
16779 | resultobj = result; | |
16780 | return resultobj; | |
16781 | fail: | |
16782 | return NULL; | |
16783 | } | |
16784 | ||
16785 | ||
16786 | static PyObject *_wrap_ToolBarToolBase_SetClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16787 | PyObject *resultobj; | |
16788 | wxToolBarToolBase *arg1 = (wxToolBarToolBase *) 0 ; | |
16789 | PyObject *arg2 = (PyObject *) 0 ; | |
16790 | PyObject * obj0 = 0 ; | |
16791 | PyObject * obj1 = 0 ; | |
16792 | char *kwnames[] = { | |
16793 | (char *) "self",(char *) "clientData", NULL | |
16794 | }; | |
16795 | ||
16796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarToolBase_SetClientData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
16797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarToolBase, |
16798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
16799 | arg2 = obj1; |
16800 | { | |
16801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16802 | wxToolBarToolBase_SetClientData(arg1,arg2); | |
16803 | ||
16804 | wxPyEndAllowThreads(__tstate); | |
16805 | if (PyErr_Occurred()) SWIG_fail; | |
16806 | } | |
16807 | Py_INCREF(Py_None); resultobj = Py_None; | |
16808 | return resultobj; | |
16809 | fail: | |
16810 | return NULL; | |
16811 | } | |
16812 | ||
16813 | ||
16814 | static PyObject * ToolBarToolBase_swigregister(PyObject *self, PyObject *args) { | |
16815 | PyObject *obj; | |
16816 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
16817 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarToolBase, obj); | |
16818 | Py_INCREF(obj); | |
16819 | return Py_BuildValue((char *)""); | |
16820 | } | |
16821 | static PyObject *_wrap_ToolBarBase_DoAddTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16822 | PyObject *resultobj; | |
16823 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16824 | int arg2 ; | |
16825 | wxString *arg3 = 0 ; | |
16826 | wxBitmap *arg4 = 0 ; | |
16827 | wxBitmap const &arg5_defvalue = wxNullBitmap ; | |
16828 | wxBitmap *arg5 = (wxBitmap *) &arg5_defvalue ; | |
16829 | int arg6 = (int) wxITEM_NORMAL ; | |
16830 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
16831 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
16832 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16833 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16834 | PyObject *arg9 = (PyObject *) NULL ; | |
16835 | wxToolBarToolBase *result; | |
e811c8ce RD |
16836 | bool temp3 = False ; |
16837 | bool temp7 = False ; | |
16838 | bool temp8 = False ; | |
d14a1e28 | 16839 | PyObject * obj0 = 0 ; |
994141e6 | 16840 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
16841 | PyObject * obj2 = 0 ; |
16842 | PyObject * obj3 = 0 ; | |
16843 | PyObject * obj4 = 0 ; | |
994141e6 | 16844 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
16845 | PyObject * obj6 = 0 ; |
16846 | PyObject * obj7 = 0 ; | |
16847 | PyObject * obj8 = 0 ; | |
16848 | char *kwnames[] = { | |
16849 | (char *) "self",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16850 | }; | |
16851 | ||
994141e6 | 16852 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOOOO:ToolBarBase_DoAddTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
16853 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16854 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16855 | arg2 = (int) SWIG_AsInt(obj1); | |
16856 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16857 | { |
16858 | arg3 = wxString_in_helper(obj2); | |
16859 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 16860 | temp3 = True; |
d14a1e28 | 16861 | } |
15afbcd0 RD |
16862 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxBitmap, |
16863 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16864 | SWIG_fail; | |
d14a1e28 | 16865 | if (arg4 == NULL) { |
15afbcd0 RD |
16866 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16867 | SWIG_fail; | |
d14a1e28 RD |
16868 | } |
16869 | if (obj4) { | |
15afbcd0 RD |
16870 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16871 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16872 | SWIG_fail; | |
d14a1e28 | 16873 | if (arg5 == NULL) { |
15afbcd0 RD |
16874 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16875 | SWIG_fail; | |
d14a1e28 RD |
16876 | } |
16877 | } | |
994141e6 | 16878 | if (obj5) { |
15afbcd0 RD |
16879 | arg6 = (wxItemKind) SWIG_AsInt(obj5); |
16880 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 16881 | } |
d14a1e28 RD |
16882 | if (obj6) { |
16883 | { | |
16884 | arg7 = wxString_in_helper(obj6); | |
16885 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 16886 | temp7 = True; |
d14a1e28 RD |
16887 | } |
16888 | } | |
16889 | if (obj7) { | |
16890 | { | |
16891 | arg8 = wxString_in_helper(obj7); | |
16892 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 16893 | temp8 = True; |
d14a1e28 RD |
16894 | } |
16895 | } | |
16896 | if (obj8) { | |
16897 | arg9 = obj8; | |
16898 | } | |
16899 | { | |
16900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
16901 | result = (wxToolBarToolBase *)wxToolBarBase_DoAddTool(arg1,arg2,(wxString const &)*arg3,(wxBitmap const &)*arg4,(wxBitmap const &)*arg5,(wxItemKind )arg6,(wxString const &)*arg7,(wxString const &)*arg8,arg9); | |
16902 | ||
16903 | wxPyEndAllowThreads(__tstate); | |
16904 | if (PyErr_Occurred()) SWIG_fail; | |
16905 | } | |
16906 | { | |
412d302d | 16907 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
16908 | } |
16909 | { | |
16910 | if (temp3) | |
16911 | delete arg3; | |
16912 | } | |
16913 | { | |
16914 | if (temp7) | |
16915 | delete arg7; | |
16916 | } | |
16917 | { | |
16918 | if (temp8) | |
16919 | delete arg8; | |
16920 | } | |
16921 | return resultobj; | |
16922 | fail: | |
16923 | { | |
16924 | if (temp3) | |
16925 | delete arg3; | |
16926 | } | |
16927 | { | |
16928 | if (temp7) | |
16929 | delete arg7; | |
16930 | } | |
16931 | { | |
16932 | if (temp8) | |
16933 | delete arg8; | |
16934 | } | |
16935 | return NULL; | |
16936 | } | |
16937 | ||
16938 | ||
16939 | static PyObject *_wrap_ToolBarBase_DoInsertTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
16940 | PyObject *resultobj; | |
16941 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
16942 | size_t arg2 ; | |
16943 | int arg3 ; | |
16944 | wxString *arg4 = 0 ; | |
16945 | wxBitmap *arg5 = 0 ; | |
16946 | wxBitmap const &arg6_defvalue = wxNullBitmap ; | |
16947 | wxBitmap *arg6 = (wxBitmap *) &arg6_defvalue ; | |
16948 | int arg7 = (int) wxITEM_NORMAL ; | |
16949 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
16950 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
16951 | wxString const &arg9_defvalue = wxPyEmptyString ; | |
16952 | wxString *arg9 = (wxString *) &arg9_defvalue ; | |
16953 | PyObject *arg10 = (PyObject *) NULL ; | |
16954 | wxToolBarToolBase *result; | |
e811c8ce RD |
16955 | bool temp4 = False ; |
16956 | bool temp8 = False ; | |
16957 | bool temp9 = False ; | |
d14a1e28 RD |
16958 | PyObject * obj0 = 0 ; |
16959 | PyObject * obj1 = 0 ; | |
994141e6 | 16960 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
16961 | PyObject * obj3 = 0 ; |
16962 | PyObject * obj4 = 0 ; | |
16963 | PyObject * obj5 = 0 ; | |
994141e6 | 16964 | PyObject * obj6 = 0 ; |
d14a1e28 RD |
16965 | PyObject * obj7 = 0 ; |
16966 | PyObject * obj8 = 0 ; | |
16967 | PyObject * obj9 = 0 ; | |
16968 | char *kwnames[] = { | |
16969 | (char *) "self",(char *) "pos",(char *) "id",(char *) "label",(char *) "bitmap",(char *) "bmpDisabled",(char *) "kind",(char *) "shortHelp",(char *) "longHelp",(char *) "clientData", NULL | |
16970 | }; | |
16971 | ||
994141e6 | 16972 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|OOOOO:ToolBarBase_DoInsertTool",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
16973 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
16974 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
16975 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
16976 | if (PyErr_Occurred()) SWIG_fail; | |
16977 | arg3 = (int) SWIG_AsInt(obj2); | |
16978 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
16979 | { |
16980 | arg4 = wxString_in_helper(obj3); | |
16981 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 16982 | temp4 = True; |
d14a1e28 | 16983 | } |
15afbcd0 RD |
16984 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxBitmap, |
16985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16986 | SWIG_fail; | |
d14a1e28 | 16987 | if (arg5 == NULL) { |
15afbcd0 RD |
16988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16989 | SWIG_fail; | |
d14a1e28 RD |
16990 | } |
16991 | if (obj5) { | |
15afbcd0 RD |
16992 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxBitmap, |
16993 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
16994 | SWIG_fail; | |
d14a1e28 | 16995 | if (arg6 == NULL) { |
15afbcd0 RD |
16996 | PyErr_SetString(PyExc_TypeError,"null reference"); |
16997 | SWIG_fail; | |
d14a1e28 RD |
16998 | } |
16999 | } | |
994141e6 | 17000 | if (obj6) { |
15afbcd0 RD |
17001 | arg7 = (wxItemKind) SWIG_AsInt(obj6); |
17002 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 17003 | } |
d14a1e28 RD |
17004 | if (obj7) { |
17005 | { | |
17006 | arg8 = wxString_in_helper(obj7); | |
17007 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 17008 | temp8 = True; |
d14a1e28 RD |
17009 | } |
17010 | } | |
17011 | if (obj8) { | |
17012 | { | |
17013 | arg9 = wxString_in_helper(obj8); | |
17014 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 17015 | temp9 = True; |
d14a1e28 RD |
17016 | } |
17017 | } | |
17018 | if (obj9) { | |
17019 | arg10 = obj9; | |
17020 | } | |
17021 | { | |
17022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17023 | 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); | |
17024 | ||
17025 | wxPyEndAllowThreads(__tstate); | |
17026 | if (PyErr_Occurred()) SWIG_fail; | |
17027 | } | |
17028 | { | |
412d302d | 17029 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17030 | } |
17031 | { | |
17032 | if (temp4) | |
17033 | delete arg4; | |
17034 | } | |
17035 | { | |
17036 | if (temp8) | |
17037 | delete arg8; | |
17038 | } | |
17039 | { | |
17040 | if (temp9) | |
17041 | delete arg9; | |
17042 | } | |
17043 | return resultobj; | |
17044 | fail: | |
17045 | { | |
17046 | if (temp4) | |
17047 | delete arg4; | |
17048 | } | |
17049 | { | |
17050 | if (temp8) | |
17051 | delete arg8; | |
17052 | } | |
17053 | { | |
17054 | if (temp9) | |
17055 | delete arg9; | |
17056 | } | |
17057 | return NULL; | |
17058 | } | |
17059 | ||
17060 | ||
3a04f143 RD |
17061 | static PyObject *_wrap_ToolBarBase_AddToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
17062 | PyObject *resultobj; | |
17063 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17064 | wxToolBarToolBase *arg2 = (wxToolBarToolBase *) 0 ; | |
17065 | wxToolBarToolBase *result; | |
17066 | PyObject * obj0 = 0 ; | |
17067 | PyObject * obj1 = 0 ; | |
17068 | char *kwnames[] = { | |
17069 | (char *) "self",(char *) "tool", NULL | |
17070 | }; | |
17071 | ||
17072 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddToolItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17073 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17074 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17075 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxToolBarToolBase, | |
17076 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17077 | { |
17078 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17079 | result = (wxToolBarToolBase *)(arg1)->AddTool(arg2); | |
17080 | ||
17081 | wxPyEndAllowThreads(__tstate); | |
17082 | if (PyErr_Occurred()) SWIG_fail; | |
17083 | } | |
17084 | { | |
412d302d | 17085 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17086 | } |
17087 | return resultobj; | |
17088 | fail: | |
17089 | return NULL; | |
17090 | } | |
17091 | ||
17092 | ||
17093 | static PyObject *_wrap_ToolBarBase_InsertToolItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17094 | PyObject *resultobj; | |
17095 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17096 | size_t arg2 ; | |
17097 | wxToolBarToolBase *arg3 = (wxToolBarToolBase *) 0 ; | |
17098 | wxToolBarToolBase *result; | |
17099 | PyObject * obj0 = 0 ; | |
17100 | PyObject * obj1 = 0 ; | |
17101 | PyObject * obj2 = 0 ; | |
17102 | char *kwnames[] = { | |
17103 | (char *) "self",(char *) "pos",(char *) "tool", NULL | |
17104 | }; | |
17105 | ||
17106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertToolItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17109 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17110 | if (PyErr_Occurred()) SWIG_fail; | |
17111 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxToolBarToolBase, | |
17112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
3a04f143 RD |
17113 | { |
17114 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17115 | result = (wxToolBarToolBase *)(arg1)->InsertTool(arg2,arg3); | |
17116 | ||
17117 | wxPyEndAllowThreads(__tstate); | |
17118 | if (PyErr_Occurred()) SWIG_fail; | |
17119 | } | |
17120 | { | |
412d302d | 17121 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
17122 | } |
17123 | return resultobj; | |
17124 | fail: | |
17125 | return NULL; | |
17126 | } | |
17127 | ||
17128 | ||
d14a1e28 RD |
17129 | static PyObject *_wrap_ToolBarBase_AddControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
17130 | PyObject *resultobj; | |
17131 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17132 | wxControl *arg2 = (wxControl *) 0 ; | |
17133 | wxToolBarToolBase *result; | |
17134 | PyObject * obj0 = 0 ; | |
17135 | PyObject * obj1 = 0 ; | |
17136 | char *kwnames[] = { | |
17137 | (char *) "self",(char *) "control", NULL | |
17138 | }; | |
17139 | ||
17140 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_AddControl",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17141 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17142 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17143 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxControl, | |
17144 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17145 | { |
17146 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17147 | result = (wxToolBarToolBase *)(arg1)->AddControl(arg2); | |
17148 | ||
17149 | wxPyEndAllowThreads(__tstate); | |
17150 | if (PyErr_Occurred()) SWIG_fail; | |
17151 | } | |
17152 | { | |
412d302d | 17153 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17154 | } |
17155 | return resultobj; | |
17156 | fail: | |
17157 | return NULL; | |
17158 | } | |
17159 | ||
17160 | ||
17161 | static PyObject *_wrap_ToolBarBase_InsertControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17162 | PyObject *resultobj; | |
17163 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17164 | size_t arg2 ; | |
17165 | wxControl *arg3 = (wxControl *) 0 ; | |
17166 | wxToolBarToolBase *result; | |
17167 | PyObject * obj0 = 0 ; | |
17168 | PyObject * obj1 = 0 ; | |
17169 | PyObject * obj2 = 0 ; | |
17170 | char *kwnames[] = { | |
17171 | (char *) "self",(char *) "pos",(char *) "control", NULL | |
17172 | }; | |
17173 | ||
17174 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_InsertControl",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
17175 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17176 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17177 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17178 | if (PyErr_Occurred()) SWIG_fail; | |
17179 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxControl, | |
17180 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17181 | { |
17182 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17183 | result = (wxToolBarToolBase *)(arg1)->InsertControl(arg2,arg3); | |
17184 | ||
17185 | wxPyEndAllowThreads(__tstate); | |
17186 | if (PyErr_Occurred()) SWIG_fail; | |
17187 | } | |
17188 | { | |
412d302d | 17189 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17190 | } |
17191 | return resultobj; | |
17192 | fail: | |
17193 | return NULL; | |
17194 | } | |
17195 | ||
17196 | ||
17197 | static PyObject *_wrap_ToolBarBase_FindControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17198 | PyObject *resultobj; | |
17199 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17200 | int arg2 ; | |
17201 | wxControl *result; | |
17202 | PyObject * obj0 = 0 ; | |
994141e6 | 17203 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17204 | char *kwnames[] = { |
17205 | (char *) "self",(char *) "id", NULL | |
17206 | }; | |
17207 | ||
994141e6 | 17208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindControl",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17211 | arg2 = (int) SWIG_AsInt(obj1); | |
17212 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17213 | { |
17214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17215 | result = (wxControl *)(arg1)->FindControl(arg2); | |
17216 | ||
17217 | wxPyEndAllowThreads(__tstate); | |
17218 | if (PyErr_Occurred()) SWIG_fail; | |
17219 | } | |
17220 | { | |
412d302d | 17221 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17222 | } |
17223 | return resultobj; | |
17224 | fail: | |
17225 | return NULL; | |
17226 | } | |
17227 | ||
17228 | ||
17229 | static PyObject *_wrap_ToolBarBase_AddSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17230 | PyObject *resultobj; | |
17231 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17232 | wxToolBarToolBase *result; | |
17233 | PyObject * obj0 = 0 ; | |
17234 | char *kwnames[] = { | |
17235 | (char *) "self", NULL | |
17236 | }; | |
17237 | ||
17238 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_AddSeparator",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17239 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17240 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17241 | { |
17242 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17243 | result = (wxToolBarToolBase *)(arg1)->AddSeparator(); | |
17244 | ||
17245 | wxPyEndAllowThreads(__tstate); | |
17246 | if (PyErr_Occurred()) SWIG_fail; | |
17247 | } | |
17248 | { | |
412d302d | 17249 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17250 | } |
17251 | return resultobj; | |
17252 | fail: | |
17253 | return NULL; | |
17254 | } | |
17255 | ||
17256 | ||
17257 | static PyObject *_wrap_ToolBarBase_InsertSeparator(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17258 | PyObject *resultobj; | |
17259 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17260 | size_t arg2 ; | |
17261 | wxToolBarToolBase *result; | |
17262 | PyObject * obj0 = 0 ; | |
17263 | PyObject * obj1 = 0 ; | |
17264 | char *kwnames[] = { | |
17265 | (char *) "self",(char *) "pos", NULL | |
17266 | }; | |
17267 | ||
17268 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_InsertSeparator",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17269 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17270 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17271 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17272 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17273 | { |
17274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17275 | result = (wxToolBarToolBase *)(arg1)->InsertSeparator(arg2); | |
17276 | ||
17277 | wxPyEndAllowThreads(__tstate); | |
17278 | if (PyErr_Occurred()) SWIG_fail; | |
17279 | } | |
17280 | { | |
412d302d | 17281 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17282 | } |
17283 | return resultobj; | |
17284 | fail: | |
17285 | return NULL; | |
17286 | } | |
17287 | ||
17288 | ||
17289 | static PyObject *_wrap_ToolBarBase_RemoveTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17290 | PyObject *resultobj; | |
17291 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17292 | int arg2 ; | |
17293 | wxToolBarToolBase *result; | |
17294 | PyObject * obj0 = 0 ; | |
994141e6 | 17295 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17296 | char *kwnames[] = { |
17297 | (char *) "self",(char *) "id", NULL | |
17298 | }; | |
17299 | ||
994141e6 | 17300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_RemoveTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17303 | arg2 = (int) SWIG_AsInt(obj1); | |
17304 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17305 | { |
17306 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17307 | result = (wxToolBarToolBase *)(arg1)->RemoveTool(arg2); | |
17308 | ||
17309 | wxPyEndAllowThreads(__tstate); | |
17310 | if (PyErr_Occurred()) SWIG_fail; | |
17311 | } | |
17312 | { | |
412d302d | 17313 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
17314 | } |
17315 | return resultobj; | |
17316 | fail: | |
17317 | return NULL; | |
17318 | } | |
17319 | ||
17320 | ||
17321 | static PyObject *_wrap_ToolBarBase_DeleteToolByPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17322 | PyObject *resultobj; | |
17323 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17324 | size_t arg2 ; | |
17325 | bool result; | |
17326 | PyObject * obj0 = 0 ; | |
17327 | PyObject * obj1 = 0 ; | |
17328 | char *kwnames[] = { | |
17329 | (char *) "self",(char *) "pos", NULL | |
17330 | }; | |
17331 | ||
17332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteToolByPos",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17335 | arg2 = (size_t) SWIG_AsUnsignedLong(obj1); | |
17336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17337 | { |
17338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17339 | result = (bool)(arg1)->DeleteToolByPos(arg2); | |
17340 | ||
17341 | wxPyEndAllowThreads(__tstate); | |
17342 | if (PyErr_Occurred()) SWIG_fail; | |
17343 | } | |
4f89f6a3 RD |
17344 | { |
17345 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17346 | } | |
d14a1e28 RD |
17347 | return resultobj; |
17348 | fail: | |
17349 | return NULL; | |
17350 | } | |
17351 | ||
17352 | ||
17353 | static PyObject *_wrap_ToolBarBase_DeleteTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17354 | PyObject *resultobj; | |
17355 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17356 | int arg2 ; | |
17357 | bool result; | |
17358 | PyObject * obj0 = 0 ; | |
994141e6 | 17359 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17360 | char *kwnames[] = { |
17361 | (char *) "self",(char *) "id", NULL | |
17362 | }; | |
17363 | ||
994141e6 | 17364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_DeleteTool",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17367 | arg2 = (int) SWIG_AsInt(obj1); | |
17368 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17369 | { |
17370 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17371 | result = (bool)(arg1)->DeleteTool(arg2); | |
17372 | ||
17373 | wxPyEndAllowThreads(__tstate); | |
17374 | if (PyErr_Occurred()) SWIG_fail; | |
17375 | } | |
4f89f6a3 RD |
17376 | { |
17377 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17378 | } | |
d14a1e28 RD |
17379 | return resultobj; |
17380 | fail: | |
17381 | return NULL; | |
17382 | } | |
17383 | ||
17384 | ||
17385 | static PyObject *_wrap_ToolBarBase_ClearTools(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17386 | PyObject *resultobj; | |
17387 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17388 | PyObject * obj0 = 0 ; | |
17389 | char *kwnames[] = { | |
17390 | (char *) "self", NULL | |
17391 | }; | |
17392 | ||
17393 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_ClearTools",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17394 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17395 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17396 | { |
17397 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17398 | (arg1)->ClearTools(); | |
17399 | ||
17400 | wxPyEndAllowThreads(__tstate); | |
17401 | if (PyErr_Occurred()) SWIG_fail; | |
17402 | } | |
17403 | Py_INCREF(Py_None); resultobj = Py_None; | |
17404 | return resultobj; | |
17405 | fail: | |
17406 | return NULL; | |
17407 | } | |
17408 | ||
17409 | ||
17410 | static PyObject *_wrap_ToolBarBase_Realize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17411 | PyObject *resultobj; | |
17412 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17413 | bool result; | |
17414 | PyObject * obj0 = 0 ; | |
17415 | char *kwnames[] = { | |
17416 | (char *) "self", NULL | |
17417 | }; | |
17418 | ||
17419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_Realize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17422 | { |
17423 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17424 | result = (bool)(arg1)->Realize(); | |
17425 | ||
17426 | wxPyEndAllowThreads(__tstate); | |
17427 | if (PyErr_Occurred()) SWIG_fail; | |
17428 | } | |
4f89f6a3 RD |
17429 | { |
17430 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17431 | } | |
d14a1e28 RD |
17432 | return resultobj; |
17433 | fail: | |
17434 | return NULL; | |
17435 | } | |
17436 | ||
17437 | ||
17438 | static PyObject *_wrap_ToolBarBase_EnableTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17439 | PyObject *resultobj; | |
17440 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17441 | int arg2 ; | |
17442 | bool arg3 ; | |
17443 | PyObject * obj0 = 0 ; | |
994141e6 | 17444 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17445 | PyObject * obj2 = 0 ; |
17446 | char *kwnames[] = { | |
17447 | (char *) "self",(char *) "id",(char *) "enable", NULL | |
17448 | }; | |
17449 | ||
994141e6 | 17450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_EnableTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17453 | arg2 = (int) SWIG_AsInt(obj1); | |
17454 | if (PyErr_Occurred()) SWIG_fail; | |
17455 | arg3 = (bool) SWIG_AsBool(obj2); | |
17456 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17457 | { |
17458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17459 | (arg1)->EnableTool(arg2,arg3); | |
17460 | ||
17461 | wxPyEndAllowThreads(__tstate); | |
17462 | if (PyErr_Occurred()) SWIG_fail; | |
17463 | } | |
17464 | Py_INCREF(Py_None); resultobj = Py_None; | |
17465 | return resultobj; | |
17466 | fail: | |
17467 | return NULL; | |
17468 | } | |
17469 | ||
17470 | ||
17471 | static PyObject *_wrap_ToolBarBase_ToggleTool(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17472 | PyObject *resultobj; | |
17473 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17474 | int arg2 ; | |
17475 | bool arg3 ; | |
17476 | PyObject * obj0 = 0 ; | |
994141e6 | 17477 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17478 | PyObject * obj2 = 0 ; |
17479 | char *kwnames[] = { | |
17480 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17481 | }; | |
17482 | ||
994141e6 | 17483 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_ToggleTool",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17484 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17485 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17486 | arg2 = (int) SWIG_AsInt(obj1); | |
17487 | if (PyErr_Occurred()) SWIG_fail; | |
17488 | arg3 = (bool) SWIG_AsBool(obj2); | |
17489 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17490 | { |
17491 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17492 | (arg1)->ToggleTool(arg2,arg3); | |
17493 | ||
17494 | wxPyEndAllowThreads(__tstate); | |
17495 | if (PyErr_Occurred()) SWIG_fail; | |
17496 | } | |
17497 | Py_INCREF(Py_None); resultobj = Py_None; | |
17498 | return resultobj; | |
17499 | fail: | |
17500 | return NULL; | |
17501 | } | |
17502 | ||
17503 | ||
17504 | static PyObject *_wrap_ToolBarBase_SetToggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17505 | PyObject *resultobj; | |
17506 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17507 | int arg2 ; | |
17508 | bool arg3 ; | |
17509 | PyObject * obj0 = 0 ; | |
994141e6 | 17510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17511 | PyObject * obj2 = 0 ; |
17512 | char *kwnames[] = { | |
17513 | (char *) "self",(char *) "id",(char *) "toggle", NULL | |
17514 | }; | |
17515 | ||
994141e6 | 17516 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToggle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17517 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17518 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17519 | arg2 = (int) SWIG_AsInt(obj1); | |
17520 | if (PyErr_Occurred()) SWIG_fail; | |
17521 | arg3 = (bool) SWIG_AsBool(obj2); | |
17522 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17523 | { |
17524 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17525 | (arg1)->SetToggle(arg2,arg3); | |
17526 | ||
17527 | wxPyEndAllowThreads(__tstate); | |
17528 | if (PyErr_Occurred()) SWIG_fail; | |
17529 | } | |
17530 | Py_INCREF(Py_None); resultobj = Py_None; | |
17531 | return resultobj; | |
17532 | fail: | |
17533 | return NULL; | |
17534 | } | |
17535 | ||
17536 | ||
17537 | static PyObject *_wrap_ToolBarBase_GetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17538 | PyObject *resultobj; | |
17539 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17540 | int arg2 ; | |
17541 | PyObject *result; | |
17542 | PyObject * obj0 = 0 ; | |
994141e6 | 17543 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17544 | char *kwnames[] = { |
17545 | (char *) "self",(char *) "id", NULL | |
17546 | }; | |
17547 | ||
994141e6 | 17548 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolClientData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17549 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17550 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17551 | arg2 = (int) SWIG_AsInt(obj1); | |
17552 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17553 | { |
17554 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17555 | result = (PyObject *)wxToolBarBase_GetToolClientData(arg1,arg2); | |
17556 | ||
17557 | wxPyEndAllowThreads(__tstate); | |
17558 | if (PyErr_Occurred()) SWIG_fail; | |
17559 | } | |
17560 | resultobj = result; | |
17561 | return resultobj; | |
17562 | fail: | |
17563 | return NULL; | |
17564 | } | |
17565 | ||
17566 | ||
17567 | static PyObject *_wrap_ToolBarBase_SetToolClientData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17568 | PyObject *resultobj; | |
17569 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17570 | int arg2 ; | |
17571 | PyObject *arg3 = (PyObject *) 0 ; | |
17572 | PyObject * obj0 = 0 ; | |
994141e6 | 17573 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17574 | PyObject * obj2 = 0 ; |
17575 | char *kwnames[] = { | |
17576 | (char *) "self",(char *) "id",(char *) "clientData", NULL | |
17577 | }; | |
17578 | ||
994141e6 | 17579 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolClientData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17580 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17581 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17582 | arg2 = (int) SWIG_AsInt(obj1); | |
17583 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17584 | arg3 = obj2; |
17585 | { | |
17586 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17587 | wxToolBarBase_SetToolClientData(arg1,arg2,arg3); | |
17588 | ||
17589 | wxPyEndAllowThreads(__tstate); | |
17590 | if (PyErr_Occurred()) SWIG_fail; | |
17591 | } | |
17592 | Py_INCREF(Py_None); resultobj = Py_None; | |
17593 | return resultobj; | |
17594 | fail: | |
17595 | return NULL; | |
17596 | } | |
17597 | ||
17598 | ||
17599 | static PyObject *_wrap_ToolBarBase_GetToolPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17600 | PyObject *resultobj; | |
17601 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17602 | int arg2 ; | |
17603 | int result; | |
17604 | PyObject * obj0 = 0 ; | |
994141e6 | 17605 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17606 | char *kwnames[] = { |
17607 | (char *) "self",(char *) "id", NULL | |
17608 | }; | |
17609 | ||
994141e6 | 17610 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolPos",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17611 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17612 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17613 | arg2 = (int) SWIG_AsInt(obj1); | |
17614 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17615 | { |
17616 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17617 | result = (int)((wxToolBarBase const *)arg1)->GetToolPos(arg2); | |
17618 | ||
17619 | wxPyEndAllowThreads(__tstate); | |
17620 | if (PyErr_Occurred()) SWIG_fail; | |
17621 | } | |
15afbcd0 | 17622 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
17623 | return resultobj; |
17624 | fail: | |
17625 | return NULL; | |
17626 | } | |
17627 | ||
17628 | ||
17629 | static PyObject *_wrap_ToolBarBase_GetToolState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17630 | PyObject *resultobj; | |
17631 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17632 | int arg2 ; | |
17633 | bool result; | |
17634 | PyObject * obj0 = 0 ; | |
994141e6 | 17635 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17636 | char *kwnames[] = { |
17637 | (char *) "self",(char *) "id", NULL | |
17638 | }; | |
17639 | ||
994141e6 | 17640 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17641 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17642 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17643 | arg2 = (int) SWIG_AsInt(obj1); | |
17644 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17645 | { |
17646 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17647 | result = (bool)(arg1)->GetToolState(arg2); | |
17648 | ||
17649 | wxPyEndAllowThreads(__tstate); | |
17650 | if (PyErr_Occurred()) SWIG_fail; | |
17651 | } | |
4f89f6a3 RD |
17652 | { |
17653 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17654 | } | |
d14a1e28 RD |
17655 | return resultobj; |
17656 | fail: | |
17657 | return NULL; | |
17658 | } | |
17659 | ||
17660 | ||
17661 | static PyObject *_wrap_ToolBarBase_GetToolEnabled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17662 | PyObject *resultobj; | |
17663 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17664 | int arg2 ; | |
17665 | bool result; | |
17666 | PyObject * obj0 = 0 ; | |
994141e6 | 17667 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17668 | char *kwnames[] = { |
17669 | (char *) "self",(char *) "id", NULL | |
17670 | }; | |
17671 | ||
994141e6 | 17672 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolEnabled",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17673 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17674 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17675 | arg2 = (int) SWIG_AsInt(obj1); | |
17676 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17677 | { |
17678 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17679 | result = (bool)(arg1)->GetToolEnabled(arg2); | |
17680 | ||
17681 | wxPyEndAllowThreads(__tstate); | |
17682 | if (PyErr_Occurred()) SWIG_fail; | |
17683 | } | |
4f89f6a3 RD |
17684 | { |
17685 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
17686 | } | |
d14a1e28 RD |
17687 | return resultobj; |
17688 | fail: | |
17689 | return NULL; | |
17690 | } | |
17691 | ||
17692 | ||
17693 | static PyObject *_wrap_ToolBarBase_SetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17694 | PyObject *resultobj; | |
17695 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17696 | int arg2 ; | |
17697 | wxString *arg3 = 0 ; | |
e811c8ce | 17698 | bool temp3 = False ; |
d14a1e28 | 17699 | PyObject * obj0 = 0 ; |
994141e6 | 17700 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17701 | PyObject * obj2 = 0 ; |
17702 | char *kwnames[] = { | |
17703 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17704 | }; | |
17705 | ||
994141e6 | 17706 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolShortHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17707 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17708 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17709 | arg2 = (int) SWIG_AsInt(obj1); | |
17710 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17711 | { |
17712 | arg3 = wxString_in_helper(obj2); | |
17713 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17714 | temp3 = True; |
d14a1e28 RD |
17715 | } |
17716 | { | |
17717 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17718 | (arg1)->SetToolShortHelp(arg2,(wxString const &)*arg3); | |
17719 | ||
17720 | wxPyEndAllowThreads(__tstate); | |
17721 | if (PyErr_Occurred()) SWIG_fail; | |
17722 | } | |
17723 | Py_INCREF(Py_None); resultobj = Py_None; | |
17724 | { | |
17725 | if (temp3) | |
17726 | delete arg3; | |
17727 | } | |
17728 | return resultobj; | |
17729 | fail: | |
17730 | { | |
17731 | if (temp3) | |
17732 | delete arg3; | |
17733 | } | |
17734 | return NULL; | |
17735 | } | |
17736 | ||
17737 | ||
17738 | static PyObject *_wrap_ToolBarBase_GetToolShortHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17739 | PyObject *resultobj; | |
17740 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17741 | int arg2 ; | |
17742 | wxString result; | |
17743 | PyObject * obj0 = 0 ; | |
994141e6 | 17744 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17745 | char *kwnames[] = { |
17746 | (char *) "self",(char *) "id", NULL | |
17747 | }; | |
17748 | ||
994141e6 | 17749 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolShortHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17750 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17751 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17752 | arg2 = (int) SWIG_AsInt(obj1); | |
17753 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17754 | { |
17755 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17756 | result = (arg1)->GetToolShortHelp(arg2); | |
17757 | ||
17758 | wxPyEndAllowThreads(__tstate); | |
17759 | if (PyErr_Occurred()) SWIG_fail; | |
17760 | } | |
17761 | { | |
17762 | #if wxUSE_UNICODE | |
17763 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17764 | #else | |
17765 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17766 | #endif | |
17767 | } | |
17768 | return resultobj; | |
17769 | fail: | |
17770 | return NULL; | |
17771 | } | |
17772 | ||
17773 | ||
17774 | static PyObject *_wrap_ToolBarBase_SetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17775 | PyObject *resultobj; | |
17776 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17777 | int arg2 ; | |
17778 | wxString *arg3 = 0 ; | |
e811c8ce | 17779 | bool temp3 = False ; |
d14a1e28 | 17780 | PyObject * obj0 = 0 ; |
994141e6 | 17781 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17782 | PyObject * obj2 = 0 ; |
17783 | char *kwnames[] = { | |
17784 | (char *) "self",(char *) "id",(char *) "helpString", NULL | |
17785 | }; | |
17786 | ||
994141e6 | 17787 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetToolLongHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17788 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17789 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17790 | arg2 = (int) SWIG_AsInt(obj1); | |
17791 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17792 | { |
17793 | arg3 = wxString_in_helper(obj2); | |
17794 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 17795 | temp3 = True; |
d14a1e28 RD |
17796 | } |
17797 | { | |
17798 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17799 | (arg1)->SetToolLongHelp(arg2,(wxString const &)*arg3); | |
17800 | ||
17801 | wxPyEndAllowThreads(__tstate); | |
17802 | if (PyErr_Occurred()) SWIG_fail; | |
17803 | } | |
17804 | Py_INCREF(Py_None); resultobj = Py_None; | |
17805 | { | |
17806 | if (temp3) | |
17807 | delete arg3; | |
17808 | } | |
17809 | return resultobj; | |
17810 | fail: | |
17811 | { | |
17812 | if (temp3) | |
17813 | delete arg3; | |
17814 | } | |
17815 | return NULL; | |
17816 | } | |
17817 | ||
17818 | ||
17819 | static PyObject *_wrap_ToolBarBase_GetToolLongHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17820 | PyObject *resultobj; | |
17821 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17822 | int arg2 ; | |
17823 | wxString result; | |
17824 | PyObject * obj0 = 0 ; | |
994141e6 | 17825 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17826 | char *kwnames[] = { |
17827 | (char *) "self",(char *) "id", NULL | |
17828 | }; | |
17829 | ||
994141e6 | 17830 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_GetToolLongHelp",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17831 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17832 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17833 | arg2 = (int) SWIG_AsInt(obj1); | |
17834 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17835 | { |
17836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17837 | result = (arg1)->GetToolLongHelp(arg2); | |
17838 | ||
17839 | wxPyEndAllowThreads(__tstate); | |
17840 | if (PyErr_Occurred()) SWIG_fail; | |
17841 | } | |
17842 | { | |
17843 | #if wxUSE_UNICODE | |
17844 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
17845 | #else | |
17846 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
17847 | #endif | |
17848 | } | |
17849 | return resultobj; | |
17850 | fail: | |
17851 | return NULL; | |
17852 | } | |
17853 | ||
17854 | ||
17855 | static PyObject *_wrap_ToolBarBase_SetMarginsXY(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17856 | PyObject *resultobj; | |
17857 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17858 | int arg2 ; | |
17859 | int arg3 ; | |
17860 | PyObject * obj0 = 0 ; | |
994141e6 RD |
17861 | PyObject * obj1 = 0 ; |
17862 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
17863 | char *kwnames[] = { |
17864 | (char *) "self",(char *) "x",(char *) "y", NULL | |
17865 | }; | |
17866 | ||
994141e6 | 17867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMarginsXY",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
17868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17870 | arg2 = (int) SWIG_AsInt(obj1); | |
17871 | if (PyErr_Occurred()) SWIG_fail; | |
17872 | arg3 = (int) SWIG_AsInt(obj2); | |
17873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17874 | { |
17875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17876 | (arg1)->SetMargins(arg2,arg3); | |
17877 | ||
17878 | wxPyEndAllowThreads(__tstate); | |
17879 | if (PyErr_Occurred()) SWIG_fail; | |
17880 | } | |
17881 | Py_INCREF(Py_None); resultobj = Py_None; | |
17882 | return resultobj; | |
17883 | fail: | |
17884 | return NULL; | |
17885 | } | |
17886 | ||
17887 | ||
17888 | static PyObject *_wrap_ToolBarBase_SetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17889 | PyObject *resultobj; | |
17890 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17891 | wxSize *arg2 = 0 ; | |
17892 | wxSize temp2 ; | |
17893 | PyObject * obj0 = 0 ; | |
17894 | PyObject * obj1 = 0 ; | |
17895 | char *kwnames[] = { | |
17896 | (char *) "self",(char *) "size", NULL | |
17897 | }; | |
17898 | ||
17899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetMargins",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
17900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17902 | { |
17903 | arg2 = &temp2; | |
17904 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
17905 | } | |
17906 | { | |
17907 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17908 | (arg1)->SetMargins((wxSize const &)*arg2); | |
17909 | ||
17910 | wxPyEndAllowThreads(__tstate); | |
17911 | if (PyErr_Occurred()) SWIG_fail; | |
17912 | } | |
17913 | Py_INCREF(Py_None); resultobj = Py_None; | |
17914 | return resultobj; | |
17915 | fail: | |
17916 | return NULL; | |
17917 | } | |
17918 | ||
17919 | ||
17920 | static PyObject *_wrap_ToolBarBase_SetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17921 | PyObject *resultobj; | |
17922 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17923 | int arg2 ; | |
17924 | PyObject * obj0 = 0 ; | |
994141e6 | 17925 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17926 | char *kwnames[] = { |
17927 | (char *) "self",(char *) "packing", NULL | |
17928 | }; | |
17929 | ||
994141e6 | 17930 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolPacking",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17931 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17932 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17933 | arg2 = (int) SWIG_AsInt(obj1); | |
17934 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17935 | { |
17936 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17937 | (arg1)->SetToolPacking(arg2); | |
17938 | ||
17939 | wxPyEndAllowThreads(__tstate); | |
17940 | if (PyErr_Occurred()) SWIG_fail; | |
17941 | } | |
17942 | Py_INCREF(Py_None); resultobj = Py_None; | |
17943 | return resultobj; | |
17944 | fail: | |
17945 | return NULL; | |
17946 | } | |
17947 | ||
17948 | ||
17949 | static PyObject *_wrap_ToolBarBase_SetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17950 | PyObject *resultobj; | |
17951 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17952 | int arg2 ; | |
17953 | PyObject * obj0 = 0 ; | |
994141e6 | 17954 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
17955 | char *kwnames[] = { |
17956 | (char *) "self",(char *) "separation", NULL | |
17957 | }; | |
17958 | ||
994141e6 | 17959 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolSeparation",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
17960 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17961 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
17962 | arg2 = (int) SWIG_AsInt(obj1); | |
17963 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
17964 | { |
17965 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17966 | (arg1)->SetToolSeparation(arg2); | |
17967 | ||
17968 | wxPyEndAllowThreads(__tstate); | |
17969 | if (PyErr_Occurred()) SWIG_fail; | |
17970 | } | |
17971 | Py_INCREF(Py_None); resultobj = Py_None; | |
17972 | return resultobj; | |
17973 | fail: | |
17974 | return NULL; | |
17975 | } | |
17976 | ||
17977 | ||
17978 | static PyObject *_wrap_ToolBarBase_GetToolMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
17979 | PyObject *resultobj; | |
17980 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
17981 | wxSize result; | |
17982 | PyObject * obj0 = 0 ; | |
17983 | char *kwnames[] = { | |
17984 | (char *) "self", NULL | |
17985 | }; | |
17986 | ||
17987 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
17988 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
17989 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
17990 | { |
17991 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
17992 | result = (arg1)->GetToolMargins(); | |
17993 | ||
17994 | wxPyEndAllowThreads(__tstate); | |
17995 | if (PyErr_Occurred()) SWIG_fail; | |
17996 | } | |
17997 | { | |
17998 | wxSize * resultptr; | |
17999 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18000 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18001 | } |
18002 | return resultobj; | |
18003 | fail: | |
18004 | return NULL; | |
18005 | } | |
18006 | ||
18007 | ||
18008 | static PyObject *_wrap_ToolBarBase_GetMargins(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18009 | PyObject *resultobj; | |
18010 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18011 | wxSize result; | |
18012 | PyObject * obj0 = 0 ; | |
18013 | char *kwnames[] = { | |
18014 | (char *) "self", NULL | |
18015 | }; | |
18016 | ||
18017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMargins",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18020 | { |
18021 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18022 | result = (arg1)->GetMargins(); | |
18023 | ||
18024 | wxPyEndAllowThreads(__tstate); | |
18025 | if (PyErr_Occurred()) SWIG_fail; | |
18026 | } | |
18027 | { | |
18028 | wxSize * resultptr; | |
18029 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18030 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18031 | } |
18032 | return resultobj; | |
18033 | fail: | |
18034 | return NULL; | |
18035 | } | |
18036 | ||
18037 | ||
18038 | static PyObject *_wrap_ToolBarBase_GetToolPacking(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18039 | PyObject *resultobj; | |
18040 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18041 | int result; | |
18042 | PyObject * obj0 = 0 ; | |
18043 | char *kwnames[] = { | |
18044 | (char *) "self", NULL | |
18045 | }; | |
18046 | ||
18047 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolPacking",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18048 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18049 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18050 | { |
18051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18052 | result = (int)(arg1)->GetToolPacking(); | |
18053 | ||
18054 | wxPyEndAllowThreads(__tstate); | |
18055 | if (PyErr_Occurred()) SWIG_fail; | |
18056 | } | |
15afbcd0 | 18057 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18058 | return resultobj; |
18059 | fail: | |
18060 | return NULL; | |
18061 | } | |
18062 | ||
18063 | ||
18064 | static PyObject *_wrap_ToolBarBase_GetToolSeparation(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18065 | PyObject *resultobj; | |
18066 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18067 | int result; | |
18068 | PyObject * obj0 = 0 ; | |
18069 | char *kwnames[] = { | |
18070 | (char *) "self", NULL | |
18071 | }; | |
18072 | ||
18073 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSeparation",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18074 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18075 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18076 | { |
18077 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18078 | result = (int)(arg1)->GetToolSeparation(); | |
18079 | ||
18080 | wxPyEndAllowThreads(__tstate); | |
18081 | if (PyErr_Occurred()) SWIG_fail; | |
18082 | } | |
15afbcd0 | 18083 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18084 | return resultobj; |
18085 | fail: | |
18086 | return NULL; | |
18087 | } | |
18088 | ||
18089 | ||
18090 | static PyObject *_wrap_ToolBarBase_SetRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18091 | PyObject *resultobj; | |
18092 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18093 | int arg2 ; | |
18094 | PyObject * obj0 = 0 ; | |
994141e6 | 18095 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18096 | char *kwnames[] = { |
18097 | (char *) "self",(char *) "nRows", NULL | |
18098 | }; | |
18099 | ||
994141e6 | 18100 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetRows",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18101 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18102 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18103 | arg2 = (int) SWIG_AsInt(obj1); | |
18104 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18105 | { |
18106 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18107 | (arg1)->SetRows(arg2); | |
18108 | ||
18109 | wxPyEndAllowThreads(__tstate); | |
18110 | if (PyErr_Occurred()) SWIG_fail; | |
18111 | } | |
18112 | Py_INCREF(Py_None); resultobj = Py_None; | |
18113 | return resultobj; | |
18114 | fail: | |
18115 | return NULL; | |
18116 | } | |
18117 | ||
18118 | ||
18119 | static PyObject *_wrap_ToolBarBase_SetMaxRowsCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18120 | PyObject *resultobj; | |
18121 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18122 | int arg2 ; | |
18123 | int arg3 ; | |
18124 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18125 | PyObject * obj1 = 0 ; |
18126 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18127 | char *kwnames[] = { |
18128 | (char *) "self",(char *) "rows",(char *) "cols", NULL | |
18129 | }; | |
18130 | ||
994141e6 | 18131 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_SetMaxRowsCols",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18132 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18133 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18134 | arg2 = (int) SWIG_AsInt(obj1); | |
18135 | if (PyErr_Occurred()) SWIG_fail; | |
18136 | arg3 = (int) SWIG_AsInt(obj2); | |
18137 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18138 | { |
18139 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18140 | (arg1)->SetMaxRowsCols(arg2,arg3); | |
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 *_wrap_ToolBarBase_GetMaxRows(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18153 | PyObject *resultobj; | |
18154 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18155 | int result; | |
18156 | PyObject * obj0 = 0 ; | |
18157 | char *kwnames[] = { | |
18158 | (char *) "self", NULL | |
18159 | }; | |
18160 | ||
18161 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxRows",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18162 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18163 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18164 | { |
18165 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18166 | result = (int)(arg1)->GetMaxRows(); | |
18167 | ||
18168 | wxPyEndAllowThreads(__tstate); | |
18169 | if (PyErr_Occurred()) SWIG_fail; | |
18170 | } | |
15afbcd0 | 18171 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18172 | return resultobj; |
18173 | fail: | |
18174 | return NULL; | |
18175 | } | |
18176 | ||
18177 | ||
18178 | static PyObject *_wrap_ToolBarBase_GetMaxCols(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18179 | PyObject *resultobj; | |
18180 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18181 | int result; | |
18182 | PyObject * obj0 = 0 ; | |
18183 | char *kwnames[] = { | |
18184 | (char *) "self", NULL | |
18185 | }; | |
18186 | ||
18187 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetMaxCols",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18188 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18189 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18190 | { |
18191 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18192 | result = (int)(arg1)->GetMaxCols(); | |
18193 | ||
18194 | wxPyEndAllowThreads(__tstate); | |
18195 | if (PyErr_Occurred()) SWIG_fail; | |
18196 | } | |
15afbcd0 | 18197 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
18198 | return resultobj; |
18199 | fail: | |
18200 | return NULL; | |
18201 | } | |
18202 | ||
18203 | ||
18204 | static PyObject *_wrap_ToolBarBase_SetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18205 | PyObject *resultobj; | |
18206 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18207 | wxSize *arg2 = 0 ; | |
18208 | wxSize temp2 ; | |
18209 | PyObject * obj0 = 0 ; | |
18210 | PyObject * obj1 = 0 ; | |
18211 | char *kwnames[] = { | |
18212 | (char *) "self",(char *) "size", NULL | |
18213 | }; | |
18214 | ||
18215 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_SetToolBitmapSize",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18216 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18217 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18218 | { |
18219 | arg2 = &temp2; | |
18220 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
18221 | } | |
18222 | { | |
18223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18224 | (arg1)->SetToolBitmapSize((wxSize const &)*arg2); | |
18225 | ||
18226 | wxPyEndAllowThreads(__tstate); | |
18227 | if (PyErr_Occurred()) SWIG_fail; | |
18228 | } | |
18229 | Py_INCREF(Py_None); resultobj = Py_None; | |
18230 | return resultobj; | |
18231 | fail: | |
18232 | return NULL; | |
18233 | } | |
18234 | ||
18235 | ||
18236 | static PyObject *_wrap_ToolBarBase_GetToolBitmapSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18237 | PyObject *resultobj; | |
18238 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18239 | wxSize result; | |
18240 | PyObject * obj0 = 0 ; | |
18241 | char *kwnames[] = { | |
18242 | (char *) "self", NULL | |
18243 | }; | |
18244 | ||
18245 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolBitmapSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18246 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18247 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18248 | { |
18249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18250 | result = (arg1)->GetToolBitmapSize(); | |
18251 | ||
18252 | wxPyEndAllowThreads(__tstate); | |
18253 | if (PyErr_Occurred()) SWIG_fail; | |
18254 | } | |
18255 | { | |
18256 | wxSize * resultptr; | |
18257 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18258 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18259 | } |
18260 | return resultobj; | |
18261 | fail: | |
18262 | return NULL; | |
18263 | } | |
18264 | ||
18265 | ||
18266 | static PyObject *_wrap_ToolBarBase_GetToolSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18267 | PyObject *resultobj; | |
18268 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18269 | wxSize result; | |
18270 | PyObject * obj0 = 0 ; | |
18271 | char *kwnames[] = { | |
18272 | (char *) "self", NULL | |
18273 | }; | |
18274 | ||
18275 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_GetToolSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18276 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18277 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18278 | { |
18279 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18280 | result = (arg1)->GetToolSize(); | |
18281 | ||
18282 | wxPyEndAllowThreads(__tstate); | |
18283 | if (PyErr_Occurred()) SWIG_fail; | |
18284 | } | |
18285 | { | |
18286 | wxSize * resultptr; | |
18287 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 18288 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
18289 | } |
18290 | return resultobj; | |
18291 | fail: | |
18292 | return NULL; | |
18293 | } | |
18294 | ||
18295 | ||
18296 | static PyObject *_wrap_ToolBarBase_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18297 | PyObject *resultobj; | |
18298 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
e811c8ce RD |
18299 | int arg2 ; |
18300 | int arg3 ; | |
d14a1e28 RD |
18301 | wxToolBarToolBase *result; |
18302 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18303 | PyObject * obj1 = 0 ; |
18304 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18305 | char *kwnames[] = { |
18306 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18307 | }; | |
18308 | ||
994141e6 | 18309 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBarBase_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18310 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18311 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18312 | arg2 = (int) SWIG_AsInt(obj1); | |
18313 | if (PyErr_Occurred()) SWIG_fail; | |
18314 | arg3 = (int) SWIG_AsInt(obj2); | |
18315 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18316 | { |
18317 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18318 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18319 | ||
18320 | wxPyEndAllowThreads(__tstate); | |
18321 | if (PyErr_Occurred()) SWIG_fail; | |
18322 | } | |
18323 | { | |
412d302d | 18324 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18325 | } |
18326 | return resultobj; | |
18327 | fail: | |
18328 | return NULL; | |
18329 | } | |
18330 | ||
18331 | ||
3a04f143 RD |
18332 | static PyObject *_wrap_ToolBarBase_FindById(PyObject *self, PyObject *args, PyObject *kwargs) { |
18333 | PyObject *resultobj; | |
18334 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18335 | int arg2 ; | |
18336 | wxToolBarToolBase *result; | |
18337 | PyObject * obj0 = 0 ; | |
994141e6 | 18338 | PyObject * obj1 = 0 ; |
3a04f143 RD |
18339 | char *kwnames[] = { |
18340 | (char *) "self",(char *) "toolid", NULL | |
18341 | }; | |
18342 | ||
994141e6 | 18343 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ToolBarBase_FindById",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
18344 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18345 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18346 | arg2 = (int) SWIG_AsInt(obj1); | |
18347 | if (PyErr_Occurred()) SWIG_fail; | |
3a04f143 RD |
18348 | { |
18349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18350 | result = (wxToolBarToolBase *)((wxToolBarBase const *)arg1)->FindById(arg2); | |
18351 | ||
18352 | wxPyEndAllowThreads(__tstate); | |
18353 | if (PyErr_Occurred()) SWIG_fail; | |
18354 | } | |
18355 | { | |
412d302d | 18356 | resultobj = wxPyMake_wxObject(result, 0); |
3a04f143 RD |
18357 | } |
18358 | return resultobj; | |
18359 | fail: | |
18360 | return NULL; | |
18361 | } | |
18362 | ||
18363 | ||
d14a1e28 RD |
18364 | static PyObject *_wrap_ToolBarBase_IsVertical(PyObject *self, PyObject *args, PyObject *kwargs) { |
18365 | PyObject *resultobj; | |
18366 | wxToolBarBase *arg1 = (wxToolBarBase *) 0 ; | |
18367 | bool result; | |
18368 | PyObject * obj0 = 0 ; | |
18369 | char *kwnames[] = { | |
18370 | (char *) "self", NULL | |
18371 | }; | |
18372 | ||
18373 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ToolBarBase_IsVertical",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18374 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBarBase, |
18375 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18376 | { |
18377 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18378 | result = (bool)(arg1)->IsVertical(); | |
18379 | ||
18380 | wxPyEndAllowThreads(__tstate); | |
18381 | if (PyErr_Occurred()) SWIG_fail; | |
18382 | } | |
4f89f6a3 RD |
18383 | { |
18384 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18385 | } | |
d14a1e28 RD |
18386 | return resultobj; |
18387 | fail: | |
18388 | return NULL; | |
18389 | } | |
18390 | ||
18391 | ||
18392 | static PyObject * ToolBarBase_swigregister(PyObject *self, PyObject *args) { | |
18393 | PyObject *obj; | |
18394 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18395 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBarBase, obj); | |
18396 | Py_INCREF(obj); | |
18397 | return Py_BuildValue((char *)""); | |
18398 | } | |
18399 | static PyObject *_wrap_new_ToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18400 | PyObject *resultobj; | |
18401 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 18402 | int arg2 = (int) -1 ; |
d14a1e28 RD |
18403 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
18404 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
18405 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
18406 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
18407 | long arg5 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18408 | wxString const &arg6_defvalue = wxPyToolBarNameStr ; | |
18409 | wxString *arg6 = (wxString *) &arg6_defvalue ; | |
18410 | wxToolBar *result; | |
18411 | wxPoint temp3 ; | |
18412 | wxSize temp4 ; | |
e811c8ce | 18413 | bool temp6 = False ; |
d14a1e28 | 18414 | PyObject * obj0 = 0 ; |
994141e6 | 18415 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
18416 | PyObject * obj2 = 0 ; |
18417 | PyObject * obj3 = 0 ; | |
994141e6 | 18418 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
18419 | PyObject * obj5 = 0 ; |
18420 | char *kwnames[] = { | |
18421 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18422 | }; | |
18423 | ||
248ed943 | 18424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOO:new_ToolBar",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
18425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
18426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18427 | if (obj1) { |
18428 | arg2 = (int) SWIG_AsInt(obj1); | |
18429 | if (PyErr_Occurred()) SWIG_fail; | |
18430 | } | |
d14a1e28 RD |
18431 | if (obj2) { |
18432 | { | |
18433 | arg3 = &temp3; | |
18434 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
18435 | } | |
18436 | } | |
18437 | if (obj3) { | |
18438 | { | |
18439 | arg4 = &temp4; | |
18440 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
18441 | } | |
18442 | } | |
994141e6 | 18443 | if (obj4) { |
15afbcd0 RD |
18444 | arg5 = (long) SWIG_AsLong(obj4); |
18445 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18446 | } |
d14a1e28 RD |
18447 | if (obj5) { |
18448 | { | |
18449 | arg6 = wxString_in_helper(obj5); | |
18450 | if (arg6 == NULL) SWIG_fail; | |
e811c8ce | 18451 | temp6 = True; |
d14a1e28 RD |
18452 | } |
18453 | } | |
18454 | { | |
e3b71cb8 | 18455 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18457 | result = (wxToolBar *)new wxToolBar(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxString const &)*arg6); | |
18458 | ||
18459 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18460 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18461 | } |
b0f7404b | 18462 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18463 | { |
18464 | if (temp6) | |
18465 | delete arg6; | |
18466 | } | |
18467 | return resultobj; | |
18468 | fail: | |
18469 | { | |
18470 | if (temp6) | |
18471 | delete arg6; | |
18472 | } | |
18473 | return NULL; | |
18474 | } | |
18475 | ||
18476 | ||
18477 | static PyObject *_wrap_new_PreToolBar(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18478 | PyObject *resultobj; | |
18479 | wxToolBar *result; | |
18480 | char *kwnames[] = { | |
18481 | NULL | |
18482 | }; | |
18483 | ||
18484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreToolBar",kwnames)) goto fail; | |
18485 | { | |
e3b71cb8 | 18486 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
18487 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18488 | result = (wxToolBar *)new wxToolBar(); | |
18489 | ||
18490 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 18491 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 18492 | } |
b0f7404b | 18493 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxToolBar, 1); |
d14a1e28 RD |
18494 | return resultobj; |
18495 | fail: | |
18496 | return NULL; | |
18497 | } | |
18498 | ||
18499 | ||
18500 | static PyObject *_wrap_ToolBar_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18501 | PyObject *resultobj; | |
18502 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
18503 | wxWindow *arg2 = (wxWindow *) 0 ; | |
248ed943 | 18504 | int arg3 = (int) -1 ; |
d14a1e28 RD |
18505 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
18506 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
18507 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
18508 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
18509 | long arg6 = (long) wxNO_BORDER|wxTB_HORIZONTAL ; | |
18510 | wxString const &arg7_defvalue = wxPyToolBarNameStr ; | |
18511 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
18512 | bool result; | |
18513 | wxPoint temp4 ; | |
18514 | wxSize temp5 ; | |
e811c8ce | 18515 | bool temp7 = False ; |
d14a1e28 RD |
18516 | PyObject * obj0 = 0 ; |
18517 | PyObject * obj1 = 0 ; | |
994141e6 | 18518 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
18519 | PyObject * obj3 = 0 ; |
18520 | PyObject * obj4 = 0 ; | |
994141e6 | 18521 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
18522 | PyObject * obj6 = 0 ; |
18523 | char *kwnames[] = { | |
18524 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "name", NULL | |
18525 | }; | |
18526 | ||
248ed943 | 18527 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOO:ToolBar_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
18528 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18529 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18530 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
18531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
18532 | if (obj2) { |
18533 | arg3 = (int) SWIG_AsInt(obj2); | |
18534 | if (PyErr_Occurred()) SWIG_fail; | |
18535 | } | |
d14a1e28 RD |
18536 | if (obj3) { |
18537 | { | |
18538 | arg4 = &temp4; | |
18539 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
18540 | } | |
18541 | } | |
18542 | if (obj4) { | |
18543 | { | |
18544 | arg5 = &temp5; | |
18545 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
18546 | } | |
18547 | } | |
994141e6 | 18548 | if (obj5) { |
15afbcd0 RD |
18549 | arg6 = (long) SWIG_AsLong(obj5); |
18550 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 18551 | } |
d14a1e28 RD |
18552 | if (obj6) { |
18553 | { | |
18554 | arg7 = wxString_in_helper(obj6); | |
18555 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 18556 | temp7 = True; |
d14a1e28 RD |
18557 | } |
18558 | } | |
18559 | { | |
18560 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18561 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7); | |
18562 | ||
18563 | wxPyEndAllowThreads(__tstate); | |
18564 | if (PyErr_Occurred()) SWIG_fail; | |
18565 | } | |
4f89f6a3 RD |
18566 | { |
18567 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18568 | } | |
d14a1e28 RD |
18569 | { |
18570 | if (temp7) | |
18571 | delete arg7; | |
18572 | } | |
18573 | return resultobj; | |
18574 | fail: | |
18575 | { | |
18576 | if (temp7) | |
18577 | delete arg7; | |
18578 | } | |
18579 | return NULL; | |
18580 | } | |
18581 | ||
18582 | ||
18583 | static PyObject *_wrap_ToolBar_FindToolForPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18584 | PyObject *resultobj; | |
18585 | wxToolBar *arg1 = (wxToolBar *) 0 ; | |
e811c8ce RD |
18586 | int arg2 ; |
18587 | int arg3 ; | |
d14a1e28 RD |
18588 | wxToolBarToolBase *result; |
18589 | PyObject * obj0 = 0 ; | |
994141e6 RD |
18590 | PyObject * obj1 = 0 ; |
18591 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
18592 | char *kwnames[] = { |
18593 | (char *) "self",(char *) "x",(char *) "y", NULL | |
18594 | }; | |
18595 | ||
994141e6 | 18596 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ToolBar_FindToolForPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
18597 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxToolBar, |
18598 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18599 | arg2 = (int) SWIG_AsInt(obj1); | |
18600 | if (PyErr_Occurred()) SWIG_fail; | |
18601 | arg3 = (int) SWIG_AsInt(obj2); | |
18602 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
18603 | { |
18604 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18605 | result = (wxToolBarToolBase *)(arg1)->FindToolForPosition(arg2,arg3); | |
18606 | ||
18607 | wxPyEndAllowThreads(__tstate); | |
18608 | if (PyErr_Occurred()) SWIG_fail; | |
18609 | } | |
18610 | { | |
412d302d | 18611 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
18612 | } |
18613 | return resultobj; | |
18614 | fail: | |
18615 | return NULL; | |
18616 | } | |
18617 | ||
18618 | ||
22bfe96c RD |
18619 | static PyObject *_wrap_ToolBar_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
18620 | PyObject *resultobj; | |
18621 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
18622 | wxVisualAttributes result; | |
18623 | PyObject * obj0 = 0 ; | |
18624 | char *kwnames[] = { | |
18625 | (char *) "variant", NULL | |
18626 | }; | |
18627 | ||
18628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ToolBar_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
18629 | if (obj0) { | |
18630 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
18631 | if (PyErr_Occurred()) SWIG_fail; | |
18632 | } | |
18633 | { | |
110da5b0 | 18634 | if (!wxPyCheckForApp()) SWIG_fail; |
22bfe96c RD |
18635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
18636 | result = wxToolBar::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
18637 | ||
18638 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 18639 | if (PyErr_Occurred()) SWIG_fail; |
22bfe96c RD |
18640 | } |
18641 | { | |
18642 | wxVisualAttributes * resultptr; | |
18643 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
18644 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
18645 | } | |
18646 | return resultobj; | |
18647 | fail: | |
18648 | return NULL; | |
18649 | } | |
18650 | ||
18651 | ||
d14a1e28 RD |
18652 | static PyObject * ToolBar_swigregister(PyObject *self, PyObject *args) { |
18653 | PyObject *obj; | |
18654 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
18655 | SWIG_TypeClientData(SWIGTYPE_p_wxToolBar, obj); | |
18656 | Py_INCREF(obj); | |
18657 | return Py_BuildValue((char *)""); | |
18658 | } | |
b2dc1044 RD |
18659 | static int _wrap_ListCtrlNameStr_set(PyObject *_val) { |
18660 | PyErr_SetString(PyExc_TypeError,"Variable ListCtrlNameStr is read-only."); | |
18661 | return 1; | |
18662 | } | |
18663 | ||
18664 | ||
18665 | static PyObject *_wrap_ListCtrlNameStr_get() { | |
18666 | PyObject *pyobj; | |
18667 | ||
18668 | { | |
18669 | #if wxUSE_UNICODE | |
18670 | pyobj = PyUnicode_FromWideChar((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18671 | #else | |
18672 | pyobj = PyString_FromStringAndSize((&wxPyListCtrlNameStr)->c_str(), (&wxPyListCtrlNameStr)->Len()); | |
18673 | #endif | |
18674 | } | |
18675 | return pyobj; | |
18676 | } | |
18677 | ||
18678 | ||
d14a1e28 RD |
18679 | static PyObject *_wrap_new_ListItemAttr(PyObject *self, PyObject *args, PyObject *kwargs) { |
18680 | PyObject *resultobj; | |
18681 | wxColour const &arg1_defvalue = wxNullColour ; | |
18682 | wxColour *arg1 = (wxColour *) &arg1_defvalue ; | |
18683 | wxColour const &arg2_defvalue = wxNullColour ; | |
18684 | wxColour *arg2 = (wxColour *) &arg2_defvalue ; | |
18685 | wxFont const &arg3_defvalue = wxNullFont ; | |
18686 | wxFont *arg3 = (wxFont *) &arg3_defvalue ; | |
18687 | wxListItemAttr *result; | |
18688 | wxColour temp1 ; | |
18689 | wxColour temp2 ; | |
18690 | PyObject * obj0 = 0 ; | |
18691 | PyObject * obj1 = 0 ; | |
18692 | PyObject * obj2 = 0 ; | |
18693 | char *kwnames[] = { | |
18694 | (char *) "colText",(char *) "colBack",(char *) "font", NULL | |
18695 | }; | |
18696 | ||
18697 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_ListItemAttr",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
18698 | if (obj0) { | |
18699 | { | |
18700 | arg1 = &temp1; | |
18701 | if ( ! wxColour_helper(obj0, &arg1)) SWIG_fail; | |
18702 | } | |
18703 | } | |
18704 | if (obj1) { | |
18705 | { | |
18706 | arg2 = &temp2; | |
18707 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18708 | } | |
18709 | } | |
18710 | if (obj2) { | |
15afbcd0 RD |
18711 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
18712 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18713 | SWIG_fail; | |
d14a1e28 | 18714 | if (arg3 == NULL) { |
15afbcd0 RD |
18715 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18716 | SWIG_fail; | |
d14a1e28 RD |
18717 | } |
18718 | } | |
18719 | { | |
18720 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18721 | result = (wxListItemAttr *)new wxListItemAttr((wxColour const &)*arg1,(wxColour const &)*arg2,(wxFont const &)*arg3); | |
18722 | ||
18723 | wxPyEndAllowThreads(__tstate); | |
18724 | if (PyErr_Occurred()) SWIG_fail; | |
18725 | } | |
15afbcd0 | 18726 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 1); |
d14a1e28 RD |
18727 | return resultobj; |
18728 | fail: | |
18729 | return NULL; | |
18730 | } | |
18731 | ||
18732 | ||
18733 | static PyObject *_wrap_ListItemAttr_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18734 | PyObject *resultobj; | |
18735 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18736 | wxColour *arg2 = 0 ; | |
18737 | wxColour temp2 ; | |
18738 | PyObject * obj0 = 0 ; | |
18739 | PyObject * obj1 = 0 ; | |
18740 | char *kwnames[] = { | |
18741 | (char *) "self",(char *) "colText", NULL | |
18742 | }; | |
18743 | ||
18744 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18745 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18746 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18747 | { |
18748 | arg2 = &temp2; | |
18749 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18750 | } | |
18751 | { | |
18752 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18753 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
18754 | ||
18755 | wxPyEndAllowThreads(__tstate); | |
18756 | if (PyErr_Occurred()) SWIG_fail; | |
18757 | } | |
18758 | Py_INCREF(Py_None); resultobj = Py_None; | |
18759 | return resultobj; | |
18760 | fail: | |
18761 | return NULL; | |
18762 | } | |
18763 | ||
18764 | ||
18765 | static PyObject *_wrap_ListItemAttr_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18766 | PyObject *resultobj; | |
18767 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18768 | wxColour *arg2 = 0 ; | |
18769 | wxColour temp2 ; | |
18770 | PyObject * obj0 = 0 ; | |
18771 | PyObject * obj1 = 0 ; | |
18772 | char *kwnames[] = { | |
18773 | (char *) "self",(char *) "colBack", NULL | |
18774 | }; | |
18775 | ||
18776 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18777 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18778 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18779 | { |
18780 | arg2 = &temp2; | |
18781 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
18782 | } | |
18783 | { | |
18784 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18785 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
18786 | ||
18787 | wxPyEndAllowThreads(__tstate); | |
18788 | if (PyErr_Occurred()) SWIG_fail; | |
18789 | } | |
18790 | Py_INCREF(Py_None); resultobj = Py_None; | |
18791 | return resultobj; | |
18792 | fail: | |
18793 | return NULL; | |
18794 | } | |
18795 | ||
18796 | ||
18797 | static PyObject *_wrap_ListItemAttr_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18798 | PyObject *resultobj; | |
18799 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18800 | wxFont *arg2 = 0 ; | |
18801 | PyObject * obj0 = 0 ; | |
18802 | PyObject * obj1 = 0 ; | |
18803 | char *kwnames[] = { | |
18804 | (char *) "self",(char *) "font", NULL | |
18805 | }; | |
18806 | ||
18807 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItemAttr_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
18808 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18809 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
18810 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
18811 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
18812 | SWIG_fail; | |
d14a1e28 | 18813 | if (arg2 == NULL) { |
15afbcd0 RD |
18814 | PyErr_SetString(PyExc_TypeError,"null reference"); |
18815 | SWIG_fail; | |
d14a1e28 RD |
18816 | } |
18817 | { | |
18818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18819 | (arg1)->SetFont((wxFont const &)*arg2); | |
18820 | ||
18821 | wxPyEndAllowThreads(__tstate); | |
18822 | if (PyErr_Occurred()) SWIG_fail; | |
18823 | } | |
18824 | Py_INCREF(Py_None); resultobj = Py_None; | |
18825 | return resultobj; | |
18826 | fail: | |
18827 | return NULL; | |
18828 | } | |
18829 | ||
18830 | ||
18831 | static PyObject *_wrap_ListItemAttr_HasTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18832 | PyObject *resultobj; | |
18833 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18834 | bool result; | |
18835 | PyObject * obj0 = 0 ; | |
18836 | char *kwnames[] = { | |
18837 | (char *) "self", NULL | |
18838 | }; | |
18839 | ||
18840 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18841 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18842 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18843 | { |
18844 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18845 | result = (bool)(arg1)->HasTextColour(); | |
18846 | ||
18847 | wxPyEndAllowThreads(__tstate); | |
18848 | if (PyErr_Occurred()) SWIG_fail; | |
18849 | } | |
4f89f6a3 RD |
18850 | { |
18851 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18852 | } | |
d14a1e28 RD |
18853 | return resultobj; |
18854 | fail: | |
18855 | return NULL; | |
18856 | } | |
18857 | ||
18858 | ||
18859 | static PyObject *_wrap_ListItemAttr_HasBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18860 | PyObject *resultobj; | |
18861 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18862 | bool result; | |
18863 | PyObject * obj0 = 0 ; | |
18864 | char *kwnames[] = { | |
18865 | (char *) "self", NULL | |
18866 | }; | |
18867 | ||
18868 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18869 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18870 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18871 | { |
18872 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18873 | result = (bool)(arg1)->HasBackgroundColour(); | |
18874 | ||
18875 | wxPyEndAllowThreads(__tstate); | |
18876 | if (PyErr_Occurred()) SWIG_fail; | |
18877 | } | |
4f89f6a3 RD |
18878 | { |
18879 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18880 | } | |
d14a1e28 RD |
18881 | return resultobj; |
18882 | fail: | |
18883 | return NULL; | |
18884 | } | |
18885 | ||
18886 | ||
18887 | static PyObject *_wrap_ListItemAttr_HasFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18888 | PyObject *resultobj; | |
18889 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18890 | bool result; | |
18891 | PyObject * obj0 = 0 ; | |
18892 | char *kwnames[] = { | |
18893 | (char *) "self", NULL | |
18894 | }; | |
18895 | ||
18896 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_HasFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18897 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18898 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18899 | { |
18900 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18901 | result = (bool)(arg1)->HasFont(); | |
18902 | ||
18903 | wxPyEndAllowThreads(__tstate); | |
18904 | if (PyErr_Occurred()) SWIG_fail; | |
18905 | } | |
4f89f6a3 RD |
18906 | { |
18907 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
18908 | } | |
d14a1e28 RD |
18909 | return resultobj; |
18910 | fail: | |
18911 | return NULL; | |
18912 | } | |
18913 | ||
18914 | ||
18915 | static PyObject *_wrap_ListItemAttr_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18916 | PyObject *resultobj; | |
18917 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18918 | wxColour result; | |
18919 | PyObject * obj0 = 0 ; | |
18920 | char *kwnames[] = { | |
18921 | (char *) "self", NULL | |
18922 | }; | |
18923 | ||
18924 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18925 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18926 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18927 | { |
18928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18929 | result = (arg1)->GetTextColour(); | |
18930 | ||
18931 | wxPyEndAllowThreads(__tstate); | |
18932 | if (PyErr_Occurred()) SWIG_fail; | |
18933 | } | |
18934 | { | |
18935 | wxColour * resultptr; | |
18936 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18937 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18938 | } |
18939 | return resultobj; | |
18940 | fail: | |
18941 | return NULL; | |
18942 | } | |
18943 | ||
18944 | ||
18945 | static PyObject *_wrap_ListItemAttr_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18946 | PyObject *resultobj; | |
18947 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18948 | wxColour result; | |
18949 | PyObject * obj0 = 0 ; | |
18950 | char *kwnames[] = { | |
18951 | (char *) "self", NULL | |
18952 | }; | |
18953 | ||
18954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18957 | { |
18958 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18959 | result = (arg1)->GetBackgroundColour(); | |
18960 | ||
18961 | wxPyEndAllowThreads(__tstate); | |
18962 | if (PyErr_Occurred()) SWIG_fail; | |
18963 | } | |
18964 | { | |
18965 | wxColour * resultptr; | |
18966 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 18967 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
18968 | } |
18969 | return resultobj; | |
18970 | fail: | |
18971 | return NULL; | |
18972 | } | |
18973 | ||
18974 | ||
18975 | static PyObject *_wrap_ListItemAttr_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
18976 | PyObject *resultobj; | |
18977 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
18978 | wxFont result; | |
18979 | PyObject * obj0 = 0 ; | |
18980 | char *kwnames[] = { | |
18981 | (char *) "self", NULL | |
18982 | }; | |
18983 | ||
18984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
18985 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
18986 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
18987 | { |
18988 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
18989 | result = (arg1)->GetFont(); | |
18990 | ||
18991 | wxPyEndAllowThreads(__tstate); | |
18992 | if (PyErr_Occurred()) SWIG_fail; | |
18993 | } | |
18994 | { | |
18995 | wxFont * resultptr; | |
18996 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 18997 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
18998 | } |
18999 | return resultobj; | |
19000 | fail: | |
19001 | return NULL; | |
19002 | } | |
19003 | ||
19004 | ||
19005 | static PyObject *_wrap_ListItemAttr_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19006 | PyObject *resultobj; | |
19007 | wxListItemAttr *arg1 = (wxListItemAttr *) 0 ; | |
19008 | PyObject * obj0 = 0 ; | |
19009 | char *kwnames[] = { | |
19010 | (char *) "self", NULL | |
19011 | }; | |
19012 | ||
19013 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItemAttr_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19014 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItemAttr, |
19015 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19016 | { |
19017 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19018 | wxListItemAttr_Destroy(arg1); | |
19019 | ||
19020 | wxPyEndAllowThreads(__tstate); | |
19021 | if (PyErr_Occurred()) SWIG_fail; | |
19022 | } | |
19023 | Py_INCREF(Py_None); resultobj = Py_None; | |
19024 | return resultobj; | |
19025 | fail: | |
19026 | return NULL; | |
19027 | } | |
19028 | ||
19029 | ||
19030 | static PyObject * ListItemAttr_swigregister(PyObject *self, PyObject *args) { | |
19031 | PyObject *obj; | |
19032 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
19033 | SWIG_TypeClientData(SWIGTYPE_p_wxListItemAttr, obj); | |
19034 | Py_INCREF(obj); | |
19035 | return Py_BuildValue((char *)""); | |
19036 | } | |
19037 | static PyObject *_wrap_new_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19038 | PyObject *resultobj; | |
19039 | wxListItem *result; | |
19040 | char *kwnames[] = { | |
19041 | NULL | |
19042 | }; | |
19043 | ||
19044 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_ListItem",kwnames)) goto fail; | |
19045 | { | |
19046 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19047 | result = (wxListItem *)new wxListItem(); | |
19048 | ||
19049 | wxPyEndAllowThreads(__tstate); | |
19050 | if (PyErr_Occurred()) SWIG_fail; | |
19051 | } | |
19052 | { | |
412d302d | 19053 | resultobj = wxPyMake_wxObject(result, 1); |
d14a1e28 RD |
19054 | } |
19055 | return resultobj; | |
19056 | fail: | |
19057 | return NULL; | |
19058 | } | |
19059 | ||
19060 | ||
19061 | static PyObject *_wrap_delete_ListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19062 | PyObject *resultobj; | |
19063 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19064 | PyObject * obj0 = 0 ; | |
19065 | char *kwnames[] = { | |
19066 | (char *) "self", NULL | |
19067 | }; | |
19068 | ||
19069 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ListItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19070 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19071 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19072 | { |
19073 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19074 | delete arg1; | |
19075 | ||
19076 | wxPyEndAllowThreads(__tstate); | |
19077 | if (PyErr_Occurred()) SWIG_fail; | |
19078 | } | |
19079 | Py_INCREF(Py_None); resultobj = Py_None; | |
19080 | return resultobj; | |
19081 | fail: | |
19082 | return NULL; | |
19083 | } | |
19084 | ||
19085 | ||
19086 | static PyObject *_wrap_ListItem_Clear(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19087 | PyObject *resultobj; | |
19088 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19089 | PyObject * obj0 = 0 ; | |
19090 | char *kwnames[] = { | |
19091 | (char *) "self", NULL | |
19092 | }; | |
19093 | ||
19094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_Clear",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19097 | { |
19098 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19099 | (arg1)->Clear(); | |
19100 | ||
19101 | wxPyEndAllowThreads(__tstate); | |
19102 | if (PyErr_Occurred()) SWIG_fail; | |
19103 | } | |
19104 | Py_INCREF(Py_None); resultobj = Py_None; | |
19105 | return resultobj; | |
19106 | fail: | |
19107 | return NULL; | |
19108 | } | |
19109 | ||
19110 | ||
19111 | static PyObject *_wrap_ListItem_ClearAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19112 | PyObject *resultobj; | |
19113 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19114 | PyObject * obj0 = 0 ; | |
19115 | char *kwnames[] = { | |
19116 | (char *) "self", NULL | |
19117 | }; | |
19118 | ||
19119 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_ClearAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19120 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19121 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19122 | { |
19123 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19124 | (arg1)->ClearAttributes(); | |
19125 | ||
19126 | wxPyEndAllowThreads(__tstate); | |
19127 | if (PyErr_Occurred()) SWIG_fail; | |
19128 | } | |
19129 | Py_INCREF(Py_None); resultobj = Py_None; | |
19130 | return resultobj; | |
19131 | fail: | |
19132 | return NULL; | |
19133 | } | |
19134 | ||
19135 | ||
19136 | static PyObject *_wrap_ListItem_SetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19137 | PyObject *resultobj; | |
19138 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19139 | long arg2 ; | |
19140 | PyObject * obj0 = 0 ; | |
994141e6 | 19141 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19142 | char *kwnames[] = { |
19143 | (char *) "self",(char *) "mask", NULL | |
19144 | }; | |
19145 | ||
994141e6 | 19146 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19147 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19148 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19149 | arg2 = (long) SWIG_AsLong(obj1); | |
19150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19151 | { |
19152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19153 | (arg1)->SetMask(arg2); | |
19154 | ||
19155 | wxPyEndAllowThreads(__tstate); | |
19156 | if (PyErr_Occurred()) SWIG_fail; | |
19157 | } | |
19158 | Py_INCREF(Py_None); resultobj = Py_None; | |
19159 | return resultobj; | |
19160 | fail: | |
19161 | return NULL; | |
19162 | } | |
19163 | ||
19164 | ||
19165 | static PyObject *_wrap_ListItem_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19166 | PyObject *resultobj; | |
19167 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19168 | long arg2 ; | |
19169 | PyObject * obj0 = 0 ; | |
994141e6 | 19170 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19171 | char *kwnames[] = { |
19172 | (char *) "self",(char *) "id", NULL | |
19173 | }; | |
19174 | ||
994141e6 | 19175 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetId",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19176 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19177 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19178 | arg2 = (long) SWIG_AsLong(obj1); | |
19179 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19180 | { |
19181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19182 | (arg1)->SetId(arg2); | |
19183 | ||
19184 | wxPyEndAllowThreads(__tstate); | |
19185 | if (PyErr_Occurred()) SWIG_fail; | |
19186 | } | |
19187 | Py_INCREF(Py_None); resultobj = Py_None; | |
19188 | return resultobj; | |
19189 | fail: | |
19190 | return NULL; | |
19191 | } | |
19192 | ||
19193 | ||
19194 | static PyObject *_wrap_ListItem_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19195 | PyObject *resultobj; | |
19196 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19197 | int arg2 ; | |
19198 | PyObject * obj0 = 0 ; | |
994141e6 | 19199 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19200 | char *kwnames[] = { |
19201 | (char *) "self",(char *) "col", NULL | |
19202 | }; | |
19203 | ||
994141e6 | 19204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19207 | arg2 = (int) SWIG_AsInt(obj1); | |
19208 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19209 | { |
19210 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19211 | (arg1)->SetColumn(arg2); | |
19212 | ||
19213 | wxPyEndAllowThreads(__tstate); | |
19214 | if (PyErr_Occurred()) SWIG_fail; | |
19215 | } | |
19216 | Py_INCREF(Py_None); resultobj = Py_None; | |
19217 | return resultobj; | |
19218 | fail: | |
19219 | return NULL; | |
19220 | } | |
19221 | ||
19222 | ||
19223 | static PyObject *_wrap_ListItem_SetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19224 | PyObject *resultobj; | |
19225 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19226 | long arg2 ; | |
19227 | PyObject * obj0 = 0 ; | |
994141e6 | 19228 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19229 | char *kwnames[] = { |
19230 | (char *) "self",(char *) "state", NULL | |
19231 | }; | |
19232 | ||
994141e6 | 19233 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetState",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19234 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19235 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19236 | arg2 = (long) SWIG_AsLong(obj1); | |
19237 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19238 | { |
19239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19240 | (arg1)->SetState(arg2); | |
19241 | ||
19242 | wxPyEndAllowThreads(__tstate); | |
19243 | if (PyErr_Occurred()) SWIG_fail; | |
19244 | } | |
19245 | Py_INCREF(Py_None); resultobj = Py_None; | |
19246 | return resultobj; | |
19247 | fail: | |
19248 | return NULL; | |
19249 | } | |
19250 | ||
19251 | ||
19252 | static PyObject *_wrap_ListItem_SetStateMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19253 | PyObject *resultobj; | |
19254 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19255 | long arg2 ; | |
19256 | PyObject * obj0 = 0 ; | |
994141e6 | 19257 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19258 | char *kwnames[] = { |
19259 | (char *) "self",(char *) "stateMask", NULL | |
19260 | }; | |
19261 | ||
994141e6 | 19262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetStateMask",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19265 | arg2 = (long) SWIG_AsLong(obj1); | |
19266 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19267 | { |
19268 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19269 | (arg1)->SetStateMask(arg2); | |
19270 | ||
19271 | wxPyEndAllowThreads(__tstate); | |
19272 | if (PyErr_Occurred()) SWIG_fail; | |
19273 | } | |
19274 | Py_INCREF(Py_None); resultobj = Py_None; | |
19275 | return resultobj; | |
19276 | fail: | |
19277 | return NULL; | |
19278 | } | |
19279 | ||
19280 | ||
19281 | static PyObject *_wrap_ListItem_SetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19282 | PyObject *resultobj; | |
19283 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19284 | wxString *arg2 = 0 ; | |
e811c8ce | 19285 | bool temp2 = False ; |
d14a1e28 RD |
19286 | PyObject * obj0 = 0 ; |
19287 | PyObject * obj1 = 0 ; | |
19288 | char *kwnames[] = { | |
19289 | (char *) "self",(char *) "text", NULL | |
19290 | }; | |
19291 | ||
19292 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19293 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19294 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19295 | { |
19296 | arg2 = wxString_in_helper(obj1); | |
19297 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 19298 | temp2 = True; |
d14a1e28 RD |
19299 | } |
19300 | { | |
19301 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19302 | (arg1)->SetText((wxString const &)*arg2); | |
19303 | ||
19304 | wxPyEndAllowThreads(__tstate); | |
19305 | if (PyErr_Occurred()) SWIG_fail; | |
19306 | } | |
19307 | Py_INCREF(Py_None); resultobj = Py_None; | |
19308 | { | |
19309 | if (temp2) | |
19310 | delete arg2; | |
19311 | } | |
19312 | return resultobj; | |
19313 | fail: | |
19314 | { | |
19315 | if (temp2) | |
19316 | delete arg2; | |
19317 | } | |
19318 | return NULL; | |
19319 | } | |
19320 | ||
19321 | ||
19322 | static PyObject *_wrap_ListItem_SetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19323 | PyObject *resultobj; | |
19324 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19325 | int arg2 ; | |
19326 | PyObject * obj0 = 0 ; | |
994141e6 | 19327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19328 | char *kwnames[] = { |
19329 | (char *) "self",(char *) "image", NULL | |
19330 | }; | |
19331 | ||
994141e6 | 19332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19335 | arg2 = (int) SWIG_AsInt(obj1); | |
19336 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19337 | { |
19338 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19339 | (arg1)->SetImage(arg2); | |
19340 | ||
19341 | wxPyEndAllowThreads(__tstate); | |
19342 | if (PyErr_Occurred()) SWIG_fail; | |
19343 | } | |
19344 | Py_INCREF(Py_None); resultobj = Py_None; | |
19345 | return resultobj; | |
19346 | fail: | |
19347 | return NULL; | |
19348 | } | |
19349 | ||
19350 | ||
19351 | static PyObject *_wrap_ListItem_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19352 | PyObject *resultobj; | |
19353 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19354 | long arg2 ; | |
19355 | PyObject * obj0 = 0 ; | |
994141e6 | 19356 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19357 | char *kwnames[] = { |
19358 | (char *) "self",(char *) "data", NULL | |
19359 | }; | |
19360 | ||
994141e6 | 19361 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19362 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19363 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19364 | arg2 = (long) SWIG_AsLong(obj1); | |
19365 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19366 | { |
19367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19368 | (arg1)->SetData(arg2); | |
19369 | ||
19370 | wxPyEndAllowThreads(__tstate); | |
19371 | if (PyErr_Occurred()) SWIG_fail; | |
19372 | } | |
19373 | Py_INCREF(Py_None); resultobj = Py_None; | |
19374 | return resultobj; | |
19375 | fail: | |
19376 | return NULL; | |
19377 | } | |
19378 | ||
19379 | ||
19380 | static PyObject *_wrap_ListItem_SetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19381 | PyObject *resultobj; | |
19382 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19383 | int arg2 ; | |
19384 | PyObject * obj0 = 0 ; | |
994141e6 | 19385 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19386 | char *kwnames[] = { |
19387 | (char *) "self",(char *) "width", NULL | |
19388 | }; | |
19389 | ||
994141e6 | 19390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19393 | arg2 = (int) SWIG_AsInt(obj1); | |
19394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19395 | { |
19396 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19397 | (arg1)->SetWidth(arg2); | |
19398 | ||
19399 | wxPyEndAllowThreads(__tstate); | |
19400 | if (PyErr_Occurred()) SWIG_fail; | |
19401 | } | |
19402 | Py_INCREF(Py_None); resultobj = Py_None; | |
19403 | return resultobj; | |
19404 | fail: | |
19405 | return NULL; | |
19406 | } | |
19407 | ||
19408 | ||
19409 | static PyObject *_wrap_ListItem_SetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19410 | PyObject *resultobj; | |
19411 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19412 | int arg2 ; | |
19413 | PyObject * obj0 = 0 ; | |
994141e6 | 19414 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19415 | char *kwnames[] = { |
19416 | (char *) "self",(char *) "align", NULL | |
19417 | }; | |
19418 | ||
994141e6 | 19419 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetAlign",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19420 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19421 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19422 | arg2 = (wxListColumnFormat) SWIG_AsInt(obj1); | |
19423 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19424 | { |
19425 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19426 | (arg1)->SetAlign((wxListColumnFormat )arg2); | |
19427 | ||
19428 | wxPyEndAllowThreads(__tstate); | |
19429 | if (PyErr_Occurred()) SWIG_fail; | |
19430 | } | |
19431 | Py_INCREF(Py_None); resultobj = Py_None; | |
19432 | return resultobj; | |
19433 | fail: | |
19434 | return NULL; | |
19435 | } | |
19436 | ||
19437 | ||
19438 | static PyObject *_wrap_ListItem_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19439 | PyObject *resultobj; | |
19440 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19441 | wxColour *arg2 = 0 ; | |
19442 | wxColour temp2 ; | |
19443 | PyObject * obj0 = 0 ; | |
19444 | PyObject * obj1 = 0 ; | |
19445 | char *kwnames[] = { | |
19446 | (char *) "self",(char *) "colText", NULL | |
19447 | }; | |
19448 | ||
19449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19452 | { |
19453 | arg2 = &temp2; | |
19454 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19455 | } | |
19456 | { | |
19457 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19458 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
19459 | ||
19460 | wxPyEndAllowThreads(__tstate); | |
19461 | if (PyErr_Occurred()) SWIG_fail; | |
19462 | } | |
19463 | Py_INCREF(Py_None); resultobj = Py_None; | |
19464 | return resultobj; | |
19465 | fail: | |
19466 | return NULL; | |
19467 | } | |
19468 | ||
19469 | ||
19470 | static PyObject *_wrap_ListItem_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19471 | PyObject *resultobj; | |
19472 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19473 | wxColour *arg2 = 0 ; | |
19474 | wxColour temp2 ; | |
19475 | PyObject * obj0 = 0 ; | |
19476 | PyObject * obj1 = 0 ; | |
19477 | char *kwnames[] = { | |
19478 | (char *) "self",(char *) "colBack", NULL | |
19479 | }; | |
19480 | ||
19481 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19482 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19483 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19484 | { |
19485 | arg2 = &temp2; | |
19486 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
19487 | } | |
19488 | { | |
19489 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19490 | (arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
19491 | ||
19492 | wxPyEndAllowThreads(__tstate); | |
19493 | if (PyErr_Occurred()) SWIG_fail; | |
19494 | } | |
19495 | Py_INCREF(Py_None); resultobj = Py_None; | |
19496 | return resultobj; | |
19497 | fail: | |
19498 | return NULL; | |
19499 | } | |
19500 | ||
19501 | ||
19502 | static PyObject *_wrap_ListItem_SetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19503 | PyObject *resultobj; | |
19504 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19505 | wxFont *arg2 = 0 ; | |
19506 | PyObject * obj0 = 0 ; | |
19507 | PyObject * obj1 = 0 ; | |
19508 | char *kwnames[] = { | |
19509 | (char *) "self",(char *) "font", NULL | |
19510 | }; | |
19511 | ||
19512 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_SetFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
19513 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19514 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19515 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxFont, | |
19516 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
19517 | SWIG_fail; | |
d14a1e28 | 19518 | if (arg2 == NULL) { |
15afbcd0 RD |
19519 | PyErr_SetString(PyExc_TypeError,"null reference"); |
19520 | SWIG_fail; | |
d14a1e28 RD |
19521 | } |
19522 | { | |
19523 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19524 | (arg1)->SetFont((wxFont const &)*arg2); | |
19525 | ||
19526 | wxPyEndAllowThreads(__tstate); | |
19527 | if (PyErr_Occurred()) SWIG_fail; | |
19528 | } | |
19529 | Py_INCREF(Py_None); resultobj = Py_None; | |
19530 | return resultobj; | |
19531 | fail: | |
19532 | return NULL; | |
19533 | } | |
19534 | ||
19535 | ||
19536 | static PyObject *_wrap_ListItem_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19537 | PyObject *resultobj; | |
19538 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19539 | long result; | |
19540 | PyObject * obj0 = 0 ; | |
19541 | char *kwnames[] = { | |
19542 | (char *) "self", NULL | |
19543 | }; | |
19544 | ||
19545 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19546 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19547 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19548 | { |
19549 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19550 | result = (long)(arg1)->GetMask(); | |
19551 | ||
19552 | wxPyEndAllowThreads(__tstate); | |
19553 | if (PyErr_Occurred()) SWIG_fail; | |
19554 | } | |
15afbcd0 | 19555 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19556 | return resultobj; |
19557 | fail: | |
19558 | return NULL; | |
19559 | } | |
19560 | ||
19561 | ||
19562 | static PyObject *_wrap_ListItem_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19563 | PyObject *resultobj; | |
19564 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19565 | long result; | |
19566 | PyObject * obj0 = 0 ; | |
19567 | char *kwnames[] = { | |
19568 | (char *) "self", NULL | |
19569 | }; | |
19570 | ||
19571 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19572 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19573 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19574 | { |
19575 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19576 | result = (long)(arg1)->GetId(); | |
19577 | ||
19578 | wxPyEndAllowThreads(__tstate); | |
19579 | if (PyErr_Occurred()) SWIG_fail; | |
19580 | } | |
15afbcd0 | 19581 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19582 | return resultobj; |
19583 | fail: | |
19584 | return NULL; | |
19585 | } | |
19586 | ||
19587 | ||
19588 | static PyObject *_wrap_ListItem_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19589 | PyObject *resultobj; | |
19590 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19591 | int result; | |
19592 | PyObject * obj0 = 0 ; | |
19593 | char *kwnames[] = { | |
19594 | (char *) "self", NULL | |
19595 | }; | |
19596 | ||
19597 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19598 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19599 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19600 | { |
19601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19602 | result = (int)(arg1)->GetColumn(); | |
19603 | ||
19604 | wxPyEndAllowThreads(__tstate); | |
19605 | if (PyErr_Occurred()) SWIG_fail; | |
19606 | } | |
15afbcd0 | 19607 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19608 | return resultobj; |
19609 | fail: | |
19610 | return NULL; | |
19611 | } | |
19612 | ||
19613 | ||
19614 | static PyObject *_wrap_ListItem_GetState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19615 | PyObject *resultobj; | |
19616 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19617 | long result; | |
19618 | PyObject * obj0 = 0 ; | |
19619 | char *kwnames[] = { | |
19620 | (char *) "self", NULL | |
19621 | }; | |
19622 | ||
19623 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetState",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19624 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19625 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19626 | { |
19627 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19628 | result = (long)(arg1)->GetState(); | |
19629 | ||
19630 | wxPyEndAllowThreads(__tstate); | |
19631 | if (PyErr_Occurred()) SWIG_fail; | |
19632 | } | |
15afbcd0 | 19633 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19634 | return resultobj; |
19635 | fail: | |
19636 | return NULL; | |
19637 | } | |
19638 | ||
19639 | ||
19640 | static PyObject *_wrap_ListItem_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19641 | PyObject *resultobj; | |
19642 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19643 | wxString *result; | |
19644 | PyObject * obj0 = 0 ; | |
19645 | char *kwnames[] = { | |
19646 | (char *) "self", NULL | |
19647 | }; | |
19648 | ||
19649 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19650 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19651 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19652 | { |
19653 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19654 | { | |
19655 | wxString const &_result_ref = (arg1)->GetText(); | |
19656 | result = (wxString *) &_result_ref; | |
19657 | } | |
19658 | ||
19659 | wxPyEndAllowThreads(__tstate); | |
19660 | if (PyErr_Occurred()) SWIG_fail; | |
19661 | } | |
cc6dd355 RD |
19662 | { |
19663 | #if wxUSE_UNICODE | |
19664 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
19665 | #else | |
19666 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
19667 | #endif | |
19668 | } | |
d14a1e28 RD |
19669 | return resultobj; |
19670 | fail: | |
19671 | return NULL; | |
19672 | } | |
19673 | ||
19674 | ||
19675 | static PyObject *_wrap_ListItem_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19676 | PyObject *resultobj; | |
19677 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19678 | int result; | |
19679 | PyObject * obj0 = 0 ; | |
19680 | char *kwnames[] = { | |
19681 | (char *) "self", NULL | |
19682 | }; | |
19683 | ||
19684 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19685 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19686 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19687 | { |
19688 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19689 | result = (int)(arg1)->GetImage(); | |
19690 | ||
19691 | wxPyEndAllowThreads(__tstate); | |
19692 | if (PyErr_Occurred()) SWIG_fail; | |
19693 | } | |
15afbcd0 | 19694 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19695 | return resultobj; |
19696 | fail: | |
19697 | return NULL; | |
19698 | } | |
19699 | ||
19700 | ||
19701 | static PyObject *_wrap_ListItem_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19702 | PyObject *resultobj; | |
19703 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19704 | long result; | |
19705 | PyObject * obj0 = 0 ; | |
19706 | char *kwnames[] = { | |
19707 | (char *) "self", NULL | |
19708 | }; | |
19709 | ||
19710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19713 | { |
19714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19715 | result = (long)(arg1)->GetData(); | |
19716 | ||
19717 | wxPyEndAllowThreads(__tstate); | |
19718 | if (PyErr_Occurred()) SWIG_fail; | |
19719 | } | |
15afbcd0 | 19720 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19721 | return resultobj; |
19722 | fail: | |
19723 | return NULL; | |
19724 | } | |
19725 | ||
19726 | ||
19727 | static PyObject *_wrap_ListItem_GetWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19728 | PyObject *resultobj; | |
19729 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19730 | int result; | |
19731 | PyObject * obj0 = 0 ; | |
19732 | char *kwnames[] = { | |
19733 | (char *) "self", NULL | |
19734 | }; | |
19735 | ||
19736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetWidth",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19738 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19739 | { |
19740 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19741 | result = (int)(arg1)->GetWidth(); | |
19742 | ||
19743 | wxPyEndAllowThreads(__tstate); | |
19744 | if (PyErr_Occurred()) SWIG_fail; | |
19745 | } | |
15afbcd0 | 19746 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19747 | return resultobj; |
19748 | fail: | |
19749 | return NULL; | |
19750 | } | |
19751 | ||
19752 | ||
19753 | static PyObject *_wrap_ListItem_GetAlign(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19754 | PyObject *resultobj; | |
19755 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19756 | int result; | |
19757 | PyObject * obj0 = 0 ; | |
19758 | char *kwnames[] = { | |
19759 | (char *) "self", NULL | |
19760 | }; | |
19761 | ||
19762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAlign",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19765 | { |
19766 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19767 | result = (int)(arg1)->GetAlign(); | |
19768 | ||
19769 | wxPyEndAllowThreads(__tstate); | |
19770 | if (PyErr_Occurred()) SWIG_fail; | |
19771 | } | |
15afbcd0 | 19772 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
19773 | return resultobj; |
19774 | fail: | |
19775 | return NULL; | |
19776 | } | |
19777 | ||
19778 | ||
19779 | static PyObject *_wrap_ListItem_GetAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19780 | PyObject *resultobj; | |
19781 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19782 | wxListItemAttr *result; | |
19783 | PyObject * obj0 = 0 ; | |
19784 | char *kwnames[] = { | |
19785 | (char *) "self", NULL | |
19786 | }; | |
19787 | ||
19788 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19789 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19790 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19791 | { |
19792 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19793 | result = (wxListItemAttr *)(arg1)->GetAttributes(); | |
19794 | ||
19795 | wxPyEndAllowThreads(__tstate); | |
19796 | if (PyErr_Occurred()) SWIG_fail; | |
19797 | } | |
15afbcd0 | 19798 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItemAttr, 0); |
d14a1e28 RD |
19799 | return resultobj; |
19800 | fail: | |
19801 | return NULL; | |
19802 | } | |
19803 | ||
19804 | ||
19805 | static PyObject *_wrap_ListItem_HasAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19806 | PyObject *resultobj; | |
19807 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19808 | bool result; | |
19809 | PyObject * obj0 = 0 ; | |
19810 | char *kwnames[] = { | |
19811 | (char *) "self", NULL | |
19812 | }; | |
19813 | ||
19814 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_HasAttributes",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19815 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19816 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19817 | { |
19818 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19819 | result = (bool)(arg1)->HasAttributes(); | |
19820 | ||
19821 | wxPyEndAllowThreads(__tstate); | |
19822 | if (PyErr_Occurred()) SWIG_fail; | |
19823 | } | |
4f89f6a3 RD |
19824 | { |
19825 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
19826 | } | |
d14a1e28 RD |
19827 | return resultobj; |
19828 | fail: | |
19829 | return NULL; | |
19830 | } | |
19831 | ||
19832 | ||
19833 | static PyObject *_wrap_ListItem_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19834 | PyObject *resultobj; | |
19835 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19836 | wxColour result; | |
19837 | PyObject * obj0 = 0 ; | |
19838 | char *kwnames[] = { | |
19839 | (char *) "self", NULL | |
19840 | }; | |
19841 | ||
19842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19845 | { |
19846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19847 | result = ((wxListItem const *)arg1)->GetTextColour(); | |
19848 | ||
19849 | wxPyEndAllowThreads(__tstate); | |
19850 | if (PyErr_Occurred()) SWIG_fail; | |
19851 | } | |
19852 | { | |
19853 | wxColour * resultptr; | |
19854 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19856 | } |
19857 | return resultobj; | |
19858 | fail: | |
19859 | return NULL; | |
19860 | } | |
19861 | ||
19862 | ||
19863 | static PyObject *_wrap_ListItem_GetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19864 | PyObject *resultobj; | |
19865 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19866 | wxColour result; | |
19867 | PyObject * obj0 = 0 ; | |
19868 | char *kwnames[] = { | |
19869 | (char *) "self", NULL | |
19870 | }; | |
19871 | ||
19872 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetBackgroundColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19873 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19874 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19875 | { |
19876 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19877 | result = ((wxListItem const *)arg1)->GetBackgroundColour(); | |
19878 | ||
19879 | wxPyEndAllowThreads(__tstate); | |
19880 | if (PyErr_Occurred()) SWIG_fail; | |
19881 | } | |
19882 | { | |
19883 | wxColour * resultptr; | |
19884 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 19885 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
19886 | } |
19887 | return resultobj; | |
19888 | fail: | |
19889 | return NULL; | |
19890 | } | |
19891 | ||
19892 | ||
19893 | static PyObject *_wrap_ListItem_GetFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19894 | PyObject *resultobj; | |
19895 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19896 | wxFont result; | |
19897 | PyObject * obj0 = 0 ; | |
19898 | char *kwnames[] = { | |
19899 | (char *) "self", NULL | |
19900 | }; | |
19901 | ||
19902 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_GetFont",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19903 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19904 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19905 | { |
19906 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
19907 | result = ((wxListItem const *)arg1)->GetFont(); | |
19908 | ||
19909 | wxPyEndAllowThreads(__tstate); | |
19910 | if (PyErr_Occurred()) SWIG_fail; | |
19911 | } | |
19912 | { | |
19913 | wxFont * resultptr; | |
19914 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 19915 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
19916 | } |
19917 | return resultobj; | |
19918 | fail: | |
19919 | return NULL; | |
19920 | } | |
19921 | ||
19922 | ||
19923 | static PyObject *_wrap_ListItem_m_mask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19924 | PyObject *resultobj; | |
19925 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19926 | long arg2 ; | |
19927 | PyObject * obj0 = 0 ; | |
994141e6 | 19928 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19929 | char *kwnames[] = { |
19930 | (char *) "self",(char *) "m_mask", NULL | |
19931 | }; | |
19932 | ||
994141e6 | 19933 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_mask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19934 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19935 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19936 | arg2 = (long) SWIG_AsLong(obj1); | |
19937 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19938 | if (arg1) (arg1)->m_mask = arg2; |
19939 | ||
19940 | Py_INCREF(Py_None); resultobj = Py_None; | |
19941 | return resultobj; | |
19942 | fail: | |
19943 | return NULL; | |
19944 | } | |
19945 | ||
19946 | ||
19947 | static PyObject *_wrap_ListItem_m_mask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19948 | PyObject *resultobj; | |
19949 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19950 | long result; | |
19951 | PyObject * obj0 = 0 ; | |
19952 | char *kwnames[] = { | |
19953 | (char *) "self", NULL | |
19954 | }; | |
19955 | ||
19956 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_mask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
19957 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19958 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
19959 | result = (long) ((arg1)->m_mask); |
19960 | ||
15afbcd0 | 19961 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
19962 | return resultobj; |
19963 | fail: | |
19964 | return NULL; | |
19965 | } | |
19966 | ||
19967 | ||
19968 | static PyObject *_wrap_ListItem_m_itemId_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19969 | PyObject *resultobj; | |
19970 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19971 | long arg2 ; | |
19972 | PyObject * obj0 = 0 ; | |
994141e6 | 19973 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
19974 | char *kwnames[] = { |
19975 | (char *) "self",(char *) "m_itemId", NULL | |
19976 | }; | |
19977 | ||
994141e6 | 19978 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_itemId_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
19979 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
19980 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
19981 | arg2 = (long) SWIG_AsLong(obj1); | |
19982 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
19983 | if (arg1) (arg1)->m_itemId = arg2; |
19984 | ||
19985 | Py_INCREF(Py_None); resultobj = Py_None; | |
19986 | return resultobj; | |
19987 | fail: | |
19988 | return NULL; | |
19989 | } | |
19990 | ||
19991 | ||
19992 | static PyObject *_wrap_ListItem_m_itemId_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
19993 | PyObject *resultobj; | |
19994 | wxListItem *arg1 = (wxListItem *) 0 ; | |
19995 | long result; | |
19996 | PyObject * obj0 = 0 ; | |
19997 | char *kwnames[] = { | |
19998 | (char *) "self", NULL | |
19999 | }; | |
20000 | ||
20001 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_itemId_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20002 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20003 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20004 | result = (long) ((arg1)->m_itemId); |
20005 | ||
15afbcd0 | 20006 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20007 | return resultobj; |
20008 | fail: | |
20009 | return NULL; | |
20010 | } | |
20011 | ||
20012 | ||
20013 | static PyObject *_wrap_ListItem_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20014 | PyObject *resultobj; | |
20015 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20016 | int arg2 ; | |
20017 | PyObject * obj0 = 0 ; | |
994141e6 | 20018 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20019 | char *kwnames[] = { |
20020 | (char *) "self",(char *) "m_col", NULL | |
20021 | }; | |
20022 | ||
994141e6 | 20023 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20024 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20025 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20026 | arg2 = (int) SWIG_AsInt(obj1); | |
20027 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20028 | if (arg1) (arg1)->m_col = arg2; |
20029 | ||
20030 | Py_INCREF(Py_None); resultobj = Py_None; | |
20031 | return resultobj; | |
20032 | fail: | |
20033 | return NULL; | |
20034 | } | |
20035 | ||
20036 | ||
20037 | static PyObject *_wrap_ListItem_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20038 | PyObject *resultobj; | |
20039 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20040 | int result; | |
20041 | PyObject * obj0 = 0 ; | |
20042 | char *kwnames[] = { | |
20043 | (char *) "self", NULL | |
20044 | }; | |
20045 | ||
20046 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20047 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20048 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20049 | result = (int) ((arg1)->m_col); |
20050 | ||
15afbcd0 | 20051 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20052 | return resultobj; |
20053 | fail: | |
20054 | return NULL; | |
20055 | } | |
20056 | ||
20057 | ||
20058 | static PyObject *_wrap_ListItem_m_state_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20059 | PyObject *resultobj; | |
20060 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20061 | long arg2 ; | |
20062 | PyObject * obj0 = 0 ; | |
994141e6 | 20063 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20064 | char *kwnames[] = { |
20065 | (char *) "self",(char *) "m_state", NULL | |
20066 | }; | |
20067 | ||
994141e6 | 20068 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_state_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20069 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20070 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20071 | arg2 = (long) SWIG_AsLong(obj1); | |
20072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20073 | if (arg1) (arg1)->m_state = arg2; |
20074 | ||
20075 | Py_INCREF(Py_None); resultobj = Py_None; | |
20076 | return resultobj; | |
20077 | fail: | |
20078 | return NULL; | |
20079 | } | |
20080 | ||
20081 | ||
20082 | static PyObject *_wrap_ListItem_m_state_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20083 | PyObject *resultobj; | |
20084 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20085 | long result; | |
20086 | PyObject * obj0 = 0 ; | |
20087 | char *kwnames[] = { | |
20088 | (char *) "self", NULL | |
20089 | }; | |
20090 | ||
20091 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_state_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20092 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20093 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20094 | result = (long) ((arg1)->m_state); |
20095 | ||
15afbcd0 | 20096 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20097 | return resultobj; |
20098 | fail: | |
20099 | return NULL; | |
20100 | } | |
20101 | ||
20102 | ||
20103 | static PyObject *_wrap_ListItem_m_stateMask_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20104 | PyObject *resultobj; | |
20105 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20106 | long arg2 ; | |
20107 | PyObject * obj0 = 0 ; | |
994141e6 | 20108 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20109 | char *kwnames[] = { |
20110 | (char *) "self",(char *) "m_stateMask", NULL | |
20111 | }; | |
20112 | ||
994141e6 | 20113 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_stateMask_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20114 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20115 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20116 | arg2 = (long) SWIG_AsLong(obj1); | |
20117 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20118 | if (arg1) (arg1)->m_stateMask = arg2; |
20119 | ||
20120 | Py_INCREF(Py_None); resultobj = Py_None; | |
20121 | return resultobj; | |
20122 | fail: | |
20123 | return NULL; | |
20124 | } | |
20125 | ||
20126 | ||
20127 | static PyObject *_wrap_ListItem_m_stateMask_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20128 | PyObject *resultobj; | |
20129 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20130 | long result; | |
20131 | PyObject * obj0 = 0 ; | |
20132 | char *kwnames[] = { | |
20133 | (char *) "self", NULL | |
20134 | }; | |
20135 | ||
20136 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_stateMask_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20137 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20138 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20139 | result = (long) ((arg1)->m_stateMask); |
20140 | ||
15afbcd0 | 20141 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20142 | return resultobj; |
20143 | fail: | |
20144 | return NULL; | |
20145 | } | |
20146 | ||
20147 | ||
20148 | static PyObject *_wrap_ListItem_m_text_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20149 | PyObject *resultobj; | |
20150 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20151 | wxString *arg2 = (wxString *) 0 ; |
7eae615b | 20152 | bool temp2 = False ; |
d14a1e28 RD |
20153 | PyObject * obj0 = 0 ; |
20154 | PyObject * obj1 = 0 ; | |
20155 | char *kwnames[] = { | |
20156 | (char *) "self",(char *) "m_text", NULL | |
20157 | }; | |
20158 | ||
20159 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_text_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20160 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20161 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
7eae615b RD |
20162 | { |
20163 | arg2 = wxString_in_helper(obj1); | |
20164 | if (arg2 == NULL) SWIG_fail; | |
20165 | temp2 = True; | |
20166 | } | |
196addbf | 20167 | if (arg1) (arg1)->m_text = *arg2; |
d14a1e28 RD |
20168 | |
20169 | Py_INCREF(Py_None); resultobj = Py_None; | |
7eae615b RD |
20170 | { |
20171 | if (temp2) | |
20172 | delete arg2; | |
20173 | } | |
d14a1e28 RD |
20174 | return resultobj; |
20175 | fail: | |
7eae615b RD |
20176 | { |
20177 | if (temp2) | |
20178 | delete arg2; | |
20179 | } | |
d14a1e28 RD |
20180 | return NULL; |
20181 | } | |
20182 | ||
20183 | ||
20184 | static PyObject *_wrap_ListItem_m_text_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20185 | PyObject *resultobj; | |
20186 | wxListItem *arg1 = (wxListItem *) 0 ; | |
196addbf | 20187 | wxString *result; |
d14a1e28 RD |
20188 | PyObject * obj0 = 0 ; |
20189 | char *kwnames[] = { | |
20190 | (char *) "self", NULL | |
20191 | }; | |
20192 | ||
20193 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_text_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20194 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20195 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
196addbf | 20196 | result = (wxString *)& ((arg1)->m_text); |
d14a1e28 RD |
20197 | |
20198 | { | |
20199 | #if wxUSE_UNICODE | |
196addbf | 20200 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); |
d14a1e28 | 20201 | #else |
196addbf | 20202 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); |
d14a1e28 RD |
20203 | #endif |
20204 | } | |
20205 | return resultobj; | |
20206 | fail: | |
20207 | return NULL; | |
20208 | } | |
20209 | ||
20210 | ||
20211 | static PyObject *_wrap_ListItem_m_image_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20212 | PyObject *resultobj; | |
20213 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20214 | int arg2 ; | |
20215 | PyObject * obj0 = 0 ; | |
994141e6 | 20216 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20217 | char *kwnames[] = { |
20218 | (char *) "self",(char *) "m_image", NULL | |
20219 | }; | |
20220 | ||
994141e6 | 20221 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_image_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20222 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20223 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20224 | arg2 = (int) SWIG_AsInt(obj1); | |
20225 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20226 | if (arg1) (arg1)->m_image = arg2; |
20227 | ||
20228 | Py_INCREF(Py_None); resultobj = Py_None; | |
20229 | return resultobj; | |
20230 | fail: | |
20231 | return NULL; | |
20232 | } | |
20233 | ||
20234 | ||
20235 | static PyObject *_wrap_ListItem_m_image_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20236 | PyObject *resultobj; | |
20237 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20238 | int result; | |
20239 | PyObject * obj0 = 0 ; | |
20240 | char *kwnames[] = { | |
20241 | (char *) "self", NULL | |
20242 | }; | |
20243 | ||
20244 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_image_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20245 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20246 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20247 | result = (int) ((arg1)->m_image); |
20248 | ||
15afbcd0 | 20249 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20250 | return resultobj; |
20251 | fail: | |
20252 | return NULL; | |
20253 | } | |
20254 | ||
20255 | ||
20256 | static PyObject *_wrap_ListItem_m_data_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20257 | PyObject *resultobj; | |
20258 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20259 | long arg2 ; | |
20260 | PyObject * obj0 = 0 ; | |
994141e6 | 20261 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20262 | char *kwnames[] = { |
20263 | (char *) "self",(char *) "m_data", NULL | |
20264 | }; | |
20265 | ||
994141e6 | 20266 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_data_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20267 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20268 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20269 | arg2 = (long) SWIG_AsLong(obj1); | |
20270 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20271 | if (arg1) (arg1)->m_data = arg2; |
20272 | ||
20273 | Py_INCREF(Py_None); resultobj = Py_None; | |
20274 | return resultobj; | |
20275 | fail: | |
20276 | return NULL; | |
20277 | } | |
20278 | ||
20279 | ||
20280 | static PyObject *_wrap_ListItem_m_data_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20281 | PyObject *resultobj; | |
20282 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20283 | long result; | |
20284 | PyObject * obj0 = 0 ; | |
20285 | char *kwnames[] = { | |
20286 | (char *) "self", NULL | |
20287 | }; | |
20288 | ||
20289 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_data_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20290 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20291 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20292 | result = (long) ((arg1)->m_data); |
20293 | ||
15afbcd0 | 20294 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20295 | return resultobj; |
20296 | fail: | |
20297 | return NULL; | |
20298 | } | |
20299 | ||
20300 | ||
20301 | static PyObject *_wrap_ListItem_m_format_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20302 | PyObject *resultobj; | |
20303 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20304 | int arg2 ; | |
20305 | PyObject * obj0 = 0 ; | |
994141e6 | 20306 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20307 | char *kwnames[] = { |
20308 | (char *) "self",(char *) "m_format", NULL | |
20309 | }; | |
20310 | ||
994141e6 | 20311 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_format_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20312 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20313 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20314 | arg2 = (int) SWIG_AsInt(obj1); | |
20315 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20316 | if (arg1) (arg1)->m_format = arg2; |
20317 | ||
20318 | Py_INCREF(Py_None); resultobj = Py_None; | |
20319 | return resultobj; | |
20320 | fail: | |
20321 | return NULL; | |
20322 | } | |
20323 | ||
20324 | ||
20325 | static PyObject *_wrap_ListItem_m_format_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20326 | PyObject *resultobj; | |
20327 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20328 | int result; | |
20329 | PyObject * obj0 = 0 ; | |
20330 | char *kwnames[] = { | |
20331 | (char *) "self", NULL | |
20332 | }; | |
20333 | ||
20334 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_format_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20335 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20336 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20337 | result = (int) ((arg1)->m_format); |
20338 | ||
15afbcd0 | 20339 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20340 | return resultobj; |
20341 | fail: | |
20342 | return NULL; | |
20343 | } | |
20344 | ||
20345 | ||
20346 | static PyObject *_wrap_ListItem_m_width_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20347 | PyObject *resultobj; | |
20348 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20349 | int arg2 ; | |
20350 | PyObject * obj0 = 0 ; | |
994141e6 | 20351 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20352 | char *kwnames[] = { |
20353 | (char *) "self",(char *) "m_width", NULL | |
20354 | }; | |
20355 | ||
994141e6 | 20356 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListItem_m_width_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20357 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20358 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20359 | arg2 = (int) SWIG_AsInt(obj1); | |
20360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20361 | if (arg1) (arg1)->m_width = arg2; |
20362 | ||
20363 | Py_INCREF(Py_None); resultobj = Py_None; | |
20364 | return resultobj; | |
20365 | fail: | |
20366 | return NULL; | |
20367 | } | |
20368 | ||
20369 | ||
20370 | static PyObject *_wrap_ListItem_m_width_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20371 | PyObject *resultobj; | |
20372 | wxListItem *arg1 = (wxListItem *) 0 ; | |
20373 | int result; | |
20374 | PyObject * obj0 = 0 ; | |
20375 | char *kwnames[] = { | |
20376 | (char *) "self", NULL | |
20377 | }; | |
20378 | ||
20379 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListItem_m_width_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20380 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListItem, |
20381 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20382 | result = (int) ((arg1)->m_width); |
20383 | ||
15afbcd0 | 20384 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20385 | return resultobj; |
20386 | fail: | |
20387 | return NULL; | |
20388 | } | |
20389 | ||
20390 | ||
20391 | static PyObject * ListItem_swigregister(PyObject *self, PyObject *args) { | |
20392 | PyObject *obj; | |
20393 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
20394 | SWIG_TypeClientData(SWIGTYPE_p_wxListItem, obj); | |
20395 | Py_INCREF(obj); | |
20396 | return Py_BuildValue((char *)""); | |
20397 | } | |
20398 | static PyObject *_wrap_new_ListEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20399 | PyObject *resultobj; | |
20400 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
20401 | int arg2 = (int) 0 ; | |
20402 | wxListEvent *result; | |
994141e6 RD |
20403 | PyObject * obj0 = 0 ; |
20404 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
20405 | char *kwnames[] = { |
20406 | (char *) "commandType",(char *) "id", NULL | |
20407 | }; | |
20408 | ||
994141e6 RD |
20409 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ListEvent",kwnames,&obj0,&obj1)) goto fail; |
20410 | if (obj0) { | |
15afbcd0 RD |
20411 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
20412 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
20413 | } |
20414 | if (obj1) { | |
15afbcd0 RD |
20415 | arg2 = (int) SWIG_AsInt(obj1); |
20416 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 20417 | } |
d14a1e28 RD |
20418 | { |
20419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20420 | result = (wxListEvent *)new wxListEvent(arg1,arg2); | |
20421 | ||
20422 | wxPyEndAllowThreads(__tstate); | |
20423 | if (PyErr_Occurred()) SWIG_fail; | |
20424 | } | |
15afbcd0 | 20425 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListEvent, 1); |
d14a1e28 RD |
20426 | return resultobj; |
20427 | fail: | |
20428 | return NULL; | |
20429 | } | |
20430 | ||
20431 | ||
20432 | static PyObject *_wrap_ListEvent_m_code_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20433 | PyObject *resultobj; | |
20434 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20435 | int arg2 ; | |
20436 | PyObject * obj0 = 0 ; | |
994141e6 | 20437 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20438 | char *kwnames[] = { |
20439 | (char *) "self",(char *) "m_code", NULL | |
20440 | }; | |
20441 | ||
994141e6 | 20442 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_code_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20443 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20444 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20445 | arg2 = (int) SWIG_AsInt(obj1); | |
20446 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20447 | if (arg1) (arg1)->m_code = arg2; |
20448 | ||
20449 | Py_INCREF(Py_None); resultobj = Py_None; | |
20450 | return resultobj; | |
20451 | fail: | |
20452 | return NULL; | |
20453 | } | |
20454 | ||
20455 | ||
20456 | static PyObject *_wrap_ListEvent_m_code_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20457 | PyObject *resultobj; | |
20458 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20459 | int result; | |
20460 | PyObject * obj0 = 0 ; | |
20461 | char *kwnames[] = { | |
20462 | (char *) "self", NULL | |
20463 | }; | |
20464 | ||
20465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_code_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20468 | result = (int) ((arg1)->m_code); |
20469 | ||
15afbcd0 | 20470 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20471 | return resultobj; |
20472 | fail: | |
20473 | return NULL; | |
20474 | } | |
20475 | ||
20476 | ||
20477 | static PyObject *_wrap_ListEvent_m_oldItemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20478 | PyObject *resultobj; | |
20479 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20480 | long arg2 ; | |
20481 | PyObject * obj0 = 0 ; | |
994141e6 | 20482 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20483 | char *kwnames[] = { |
20484 | (char *) "self",(char *) "m_oldItemIndex", NULL | |
20485 | }; | |
20486 | ||
994141e6 | 20487 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_oldItemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20488 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20489 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20490 | arg2 = (long) SWIG_AsLong(obj1); | |
20491 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20492 | if (arg1) (arg1)->m_oldItemIndex = arg2; |
20493 | ||
20494 | Py_INCREF(Py_None); resultobj = Py_None; | |
20495 | return resultobj; | |
20496 | fail: | |
20497 | return NULL; | |
20498 | } | |
20499 | ||
20500 | ||
20501 | static PyObject *_wrap_ListEvent_m_oldItemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20502 | PyObject *resultobj; | |
20503 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20504 | long result; | |
20505 | PyObject * obj0 = 0 ; | |
20506 | char *kwnames[] = { | |
20507 | (char *) "self", NULL | |
20508 | }; | |
20509 | ||
20510 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_oldItemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20511 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20512 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20513 | result = (long) ((arg1)->m_oldItemIndex); |
20514 | ||
15afbcd0 | 20515 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20516 | return resultobj; |
20517 | fail: | |
20518 | return NULL; | |
20519 | } | |
20520 | ||
20521 | ||
20522 | static PyObject *_wrap_ListEvent_m_itemIndex_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20523 | PyObject *resultobj; | |
20524 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20525 | long arg2 ; | |
20526 | PyObject * obj0 = 0 ; | |
994141e6 | 20527 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20528 | char *kwnames[] = { |
20529 | (char *) "self",(char *) "m_itemIndex", NULL | |
20530 | }; | |
20531 | ||
994141e6 | 20532 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_itemIndex_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20533 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20534 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20535 | arg2 = (long) SWIG_AsLong(obj1); | |
20536 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20537 | if (arg1) (arg1)->m_itemIndex = arg2; |
20538 | ||
20539 | Py_INCREF(Py_None); resultobj = Py_None; | |
20540 | return resultobj; | |
20541 | fail: | |
20542 | return NULL; | |
20543 | } | |
20544 | ||
20545 | ||
20546 | static PyObject *_wrap_ListEvent_m_itemIndex_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20547 | PyObject *resultobj; | |
20548 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20549 | long result; | |
20550 | PyObject * obj0 = 0 ; | |
20551 | char *kwnames[] = { | |
20552 | (char *) "self", NULL | |
20553 | }; | |
20554 | ||
20555 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_itemIndex_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20556 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20557 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20558 | result = (long) ((arg1)->m_itemIndex); |
20559 | ||
15afbcd0 | 20560 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20561 | return resultobj; |
20562 | fail: | |
20563 | return NULL; | |
20564 | } | |
20565 | ||
20566 | ||
20567 | static PyObject *_wrap_ListEvent_m_col_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20568 | PyObject *resultobj; | |
20569 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20570 | int arg2 ; | |
20571 | PyObject * obj0 = 0 ; | |
994141e6 | 20572 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
20573 | char *kwnames[] = { |
20574 | (char *) "self",(char *) "m_col", NULL | |
20575 | }; | |
20576 | ||
994141e6 | 20577 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_col_set",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
20578 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20579 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20580 | arg2 = (int) SWIG_AsInt(obj1); | |
20581 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
20582 | if (arg1) (arg1)->m_col = arg2; |
20583 | ||
20584 | Py_INCREF(Py_None); resultobj = Py_None; | |
20585 | return resultobj; | |
20586 | fail: | |
20587 | return NULL; | |
20588 | } | |
20589 | ||
20590 | ||
20591 | static PyObject *_wrap_ListEvent_m_col_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20592 | PyObject *resultobj; | |
20593 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20594 | int result; | |
20595 | PyObject * obj0 = 0 ; | |
20596 | char *kwnames[] = { | |
20597 | (char *) "self", NULL | |
20598 | }; | |
20599 | ||
20600 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_col_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20601 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20602 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20603 | result = (int) ((arg1)->m_col); |
20604 | ||
15afbcd0 | 20605 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20606 | return resultobj; |
20607 | fail: | |
20608 | return NULL; | |
20609 | } | |
20610 | ||
20611 | ||
20612 | static PyObject *_wrap_ListEvent_m_pointDrag_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20613 | PyObject *resultobj; | |
20614 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20615 | wxPoint *arg2 = (wxPoint *) 0 ; | |
20616 | PyObject * obj0 = 0 ; | |
20617 | PyObject * obj1 = 0 ; | |
20618 | char *kwnames[] = { | |
20619 | (char *) "self",(char *) "m_pointDrag", NULL | |
20620 | }; | |
20621 | ||
20622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_m_pointDrag_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
20623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
20625 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxPoint, | |
20626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20627 | if (arg1) (arg1)->m_pointDrag = *arg2; |
20628 | ||
20629 | Py_INCREF(Py_None); resultobj = Py_None; | |
20630 | return resultobj; | |
20631 | fail: | |
20632 | return NULL; | |
20633 | } | |
20634 | ||
20635 | ||
20636 | static PyObject *_wrap_ListEvent_m_pointDrag_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20637 | PyObject *resultobj; | |
20638 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20639 | wxPoint *result; | |
20640 | PyObject * obj0 = 0 ; | |
20641 | char *kwnames[] = { | |
20642 | (char *) "self", NULL | |
20643 | }; | |
20644 | ||
20645 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_pointDrag_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20646 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20647 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20648 | result = (wxPoint *)& ((arg1)->m_pointDrag); |
20649 | ||
15afbcd0 | 20650 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPoint, 0); |
d14a1e28 RD |
20651 | return resultobj; |
20652 | fail: | |
20653 | return NULL; | |
20654 | } | |
20655 | ||
20656 | ||
20657 | static PyObject *_wrap_ListEvent_m_item_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20658 | PyObject *resultobj; | |
20659 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20660 | wxListItem *result; | |
20661 | PyObject * obj0 = 0 ; | |
20662 | char *kwnames[] = { | |
20663 | (char *) "self", NULL | |
20664 | }; | |
20665 | ||
20666 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_m_item_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20667 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20668 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20669 | result = (wxListItem *)& ((arg1)->m_item); |
20670 | ||
20671 | { | |
412d302d | 20672 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
20673 | } |
20674 | return resultobj; | |
20675 | fail: | |
20676 | return NULL; | |
20677 | } | |
20678 | ||
20679 | ||
20680 | static PyObject *_wrap_ListEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20681 | PyObject *resultobj; | |
20682 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20683 | int result; | |
20684 | PyObject * obj0 = 0 ; | |
20685 | char *kwnames[] = { | |
20686 | (char *) "self", NULL | |
20687 | }; | |
20688 | ||
20689 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20690 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20691 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20692 | { |
20693 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20694 | result = (int)(arg1)->GetKeyCode(); | |
20695 | ||
20696 | wxPyEndAllowThreads(__tstate); | |
20697 | if (PyErr_Occurred()) SWIG_fail; | |
20698 | } | |
15afbcd0 | 20699 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20700 | return resultobj; |
20701 | fail: | |
20702 | return NULL; | |
20703 | } | |
20704 | ||
20705 | ||
20706 | static PyObject *_wrap_ListEvent_GetIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20707 | PyObject *resultobj; | |
20708 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20709 | long result; | |
20710 | PyObject * obj0 = 0 ; | |
20711 | char *kwnames[] = { | |
20712 | (char *) "self", NULL | |
20713 | }; | |
20714 | ||
20715 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20716 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20717 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20718 | { |
20719 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20720 | result = (long)(arg1)->GetIndex(); | |
20721 | ||
20722 | wxPyEndAllowThreads(__tstate); | |
20723 | if (PyErr_Occurred()) SWIG_fail; | |
20724 | } | |
15afbcd0 | 20725 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20726 | return resultobj; |
20727 | fail: | |
20728 | return NULL; | |
20729 | } | |
20730 | ||
20731 | ||
20732 | static PyObject *_wrap_ListEvent_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20733 | PyObject *resultobj; | |
20734 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20735 | int result; | |
20736 | PyObject * obj0 = 0 ; | |
20737 | char *kwnames[] = { | |
20738 | (char *) "self", NULL | |
20739 | }; | |
20740 | ||
20741 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetColumn",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20742 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20743 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20744 | { |
20745 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20746 | result = (int)(arg1)->GetColumn(); | |
20747 | ||
20748 | wxPyEndAllowThreads(__tstate); | |
20749 | if (PyErr_Occurred()) SWIG_fail; | |
20750 | } | |
15afbcd0 | 20751 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20752 | return resultobj; |
20753 | fail: | |
20754 | return NULL; | |
20755 | } | |
20756 | ||
20757 | ||
20758 | static PyObject *_wrap_ListEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20759 | PyObject *resultobj; | |
20760 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20761 | wxPoint result; | |
20762 | PyObject * obj0 = 0 ; | |
20763 | char *kwnames[] = { | |
20764 | (char *) "self", NULL | |
20765 | }; | |
20766 | ||
20767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20770 | { |
20771 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20772 | result = (arg1)->GetPoint(); | |
20773 | ||
20774 | wxPyEndAllowThreads(__tstate); | |
20775 | if (PyErr_Occurred()) SWIG_fail; | |
20776 | } | |
20777 | { | |
20778 | wxPoint * resultptr; | |
20779 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 20780 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
20781 | } |
20782 | return resultobj; | |
20783 | fail: | |
20784 | return NULL; | |
20785 | } | |
20786 | ||
20787 | ||
20788 | static PyObject *_wrap_ListEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20789 | PyObject *resultobj; | |
20790 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20791 | wxString *result; | |
20792 | PyObject * obj0 = 0 ; | |
20793 | char *kwnames[] = { | |
20794 | (char *) "self", NULL | |
20795 | }; | |
20796 | ||
20797 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20798 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20799 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20800 | { |
20801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20802 | { | |
20803 | wxString const &_result_ref = (arg1)->GetLabel(); | |
20804 | result = (wxString *) &_result_ref; | |
20805 | } | |
20806 | ||
20807 | wxPyEndAllowThreads(__tstate); | |
20808 | if (PyErr_Occurred()) SWIG_fail; | |
20809 | } | |
cc6dd355 RD |
20810 | { |
20811 | #if wxUSE_UNICODE | |
20812 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20813 | #else | |
20814 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20815 | #endif | |
20816 | } | |
d14a1e28 RD |
20817 | return resultobj; |
20818 | fail: | |
20819 | return NULL; | |
20820 | } | |
20821 | ||
20822 | ||
20823 | static PyObject *_wrap_ListEvent_GetText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20824 | PyObject *resultobj; | |
20825 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20826 | wxString *result; | |
20827 | PyObject * obj0 = 0 ; | |
20828 | char *kwnames[] = { | |
20829 | (char *) "self", NULL | |
20830 | }; | |
20831 | ||
20832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetText",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20835 | { |
20836 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20837 | { | |
20838 | wxString const &_result_ref = (arg1)->GetText(); | |
20839 | result = (wxString *) &_result_ref; | |
20840 | } | |
20841 | ||
20842 | wxPyEndAllowThreads(__tstate); | |
20843 | if (PyErr_Occurred()) SWIG_fail; | |
20844 | } | |
cc6dd355 RD |
20845 | { |
20846 | #if wxUSE_UNICODE | |
20847 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
20848 | #else | |
20849 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
20850 | #endif | |
20851 | } | |
d14a1e28 RD |
20852 | return resultobj; |
20853 | fail: | |
20854 | return NULL; | |
20855 | } | |
20856 | ||
20857 | ||
20858 | static PyObject *_wrap_ListEvent_GetImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20859 | PyObject *resultobj; | |
20860 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20861 | int result; | |
20862 | PyObject * obj0 = 0 ; | |
20863 | char *kwnames[] = { | |
20864 | (char *) "self", NULL | |
20865 | }; | |
20866 | ||
20867 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20868 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20869 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20870 | { |
20871 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20872 | result = (int)(arg1)->GetImage(); | |
20873 | ||
20874 | wxPyEndAllowThreads(__tstate); | |
20875 | if (PyErr_Occurred()) SWIG_fail; | |
20876 | } | |
15afbcd0 | 20877 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
20878 | return resultobj; |
20879 | fail: | |
20880 | return NULL; | |
20881 | } | |
20882 | ||
20883 | ||
20884 | static PyObject *_wrap_ListEvent_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20885 | PyObject *resultobj; | |
20886 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20887 | long result; | |
20888 | PyObject * obj0 = 0 ; | |
20889 | char *kwnames[] = { | |
20890 | (char *) "self", NULL | |
20891 | }; | |
20892 | ||
20893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20896 | { |
20897 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20898 | result = (long)(arg1)->GetData(); | |
20899 | ||
20900 | wxPyEndAllowThreads(__tstate); | |
20901 | if (PyErr_Occurred()) SWIG_fail; | |
20902 | } | |
15afbcd0 | 20903 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20904 | return resultobj; |
20905 | fail: | |
20906 | return NULL; | |
20907 | } | |
20908 | ||
20909 | ||
20910 | static PyObject *_wrap_ListEvent_GetMask(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20911 | PyObject *resultobj; | |
20912 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20913 | long result; | |
20914 | PyObject * obj0 = 0 ; | |
20915 | char *kwnames[] = { | |
20916 | (char *) "self", NULL | |
20917 | }; | |
20918 | ||
20919 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetMask",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20920 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20921 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20922 | { |
20923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20924 | result = (long)(arg1)->GetMask(); | |
20925 | ||
20926 | wxPyEndAllowThreads(__tstate); | |
20927 | if (PyErr_Occurred()) SWIG_fail; | |
20928 | } | |
15afbcd0 | 20929 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20930 | return resultobj; |
20931 | fail: | |
20932 | return NULL; | |
20933 | } | |
20934 | ||
20935 | ||
20936 | static PyObject *_wrap_ListEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20937 | PyObject *resultobj; | |
20938 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20939 | wxListItem *result; | |
20940 | PyObject * obj0 = 0 ; | |
20941 | char *kwnames[] = { | |
20942 | (char *) "self", NULL | |
20943 | }; | |
20944 | ||
20945 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20946 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20947 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20948 | { |
20949 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20950 | { | |
20951 | wxListItem const &_result_ref = (arg1)->GetItem(); | |
20952 | result = (wxListItem *) &_result_ref; | |
20953 | } | |
20954 | ||
20955 | wxPyEndAllowThreads(__tstate); | |
20956 | if (PyErr_Occurred()) SWIG_fail; | |
20957 | } | |
15afbcd0 | 20958 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListItem, 0); |
d14a1e28 RD |
20959 | return resultobj; |
20960 | fail: | |
20961 | return NULL; | |
20962 | } | |
20963 | ||
20964 | ||
20965 | static PyObject *_wrap_ListEvent_GetCacheFrom(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20966 | PyObject *resultobj; | |
20967 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20968 | long result; | |
20969 | PyObject * obj0 = 0 ; | |
20970 | char *kwnames[] = { | |
20971 | (char *) "self", NULL | |
20972 | }; | |
20973 | ||
20974 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheFrom",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
20975 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
20976 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
20977 | { |
20978 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
20979 | result = (long)(arg1)->GetCacheFrom(); | |
20980 | ||
20981 | wxPyEndAllowThreads(__tstate); | |
20982 | if (PyErr_Occurred()) SWIG_fail; | |
20983 | } | |
15afbcd0 | 20984 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
20985 | return resultobj; |
20986 | fail: | |
20987 | return NULL; | |
20988 | } | |
20989 | ||
20990 | ||
20991 | static PyObject *_wrap_ListEvent_GetCacheTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
20992 | PyObject *resultobj; | |
20993 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
20994 | long result; | |
20995 | PyObject * obj0 = 0 ; | |
20996 | char *kwnames[] = { | |
20997 | (char *) "self", NULL | |
20998 | }; | |
20999 | ||
21000 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_GetCacheTo",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21001 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21002 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21003 | { |
21004 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21005 | result = (long)(arg1)->GetCacheTo(); | |
21006 | ||
21007 | wxPyEndAllowThreads(__tstate); | |
21008 | if (PyErr_Occurred()) SWIG_fail; | |
21009 | } | |
15afbcd0 | 21010 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21011 | return resultobj; |
21012 | fail: | |
21013 | return NULL; | |
21014 | } | |
21015 | ||
21016 | ||
21017 | static PyObject *_wrap_ListEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21018 | PyObject *resultobj; | |
21019 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21020 | bool result; | |
21021 | PyObject * obj0 = 0 ; | |
21022 | char *kwnames[] = { | |
21023 | (char *) "self", NULL | |
21024 | }; | |
21025 | ||
21026 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21027 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21028 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21029 | { |
21030 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21031 | result = (bool)((wxListEvent const *)arg1)->IsEditCancelled(); | |
21032 | ||
21033 | wxPyEndAllowThreads(__tstate); | |
21034 | if (PyErr_Occurred()) SWIG_fail; | |
21035 | } | |
4f89f6a3 RD |
21036 | { |
21037 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21038 | } | |
d14a1e28 RD |
21039 | return resultobj; |
21040 | fail: | |
21041 | return NULL; | |
21042 | } | |
21043 | ||
21044 | ||
21045 | static PyObject *_wrap_ListEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21046 | PyObject *resultobj; | |
21047 | wxListEvent *arg1 = (wxListEvent *) 0 ; | |
21048 | bool arg2 ; | |
21049 | PyObject * obj0 = 0 ; | |
21050 | PyObject * obj1 = 0 ; | |
21051 | char *kwnames[] = { | |
21052 | (char *) "self",(char *) "editCancelled", NULL | |
21053 | }; | |
21054 | ||
21055 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21056 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListEvent, |
21057 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21058 | arg2 = (bool) SWIG_AsBool(obj1); | |
21059 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21060 | { |
21061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21062 | (arg1)->SetEditCanceled(arg2); | |
21063 | ||
21064 | wxPyEndAllowThreads(__tstate); | |
21065 | if (PyErr_Occurred()) SWIG_fail; | |
21066 | } | |
21067 | Py_INCREF(Py_None); resultobj = Py_None; | |
21068 | return resultobj; | |
21069 | fail: | |
21070 | return NULL; | |
21071 | } | |
21072 | ||
21073 | ||
21074 | static PyObject * ListEvent_swigregister(PyObject *self, PyObject *args) { | |
21075 | PyObject *obj; | |
21076 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
21077 | SWIG_TypeClientData(SWIGTYPE_p_wxListEvent, obj); | |
21078 | Py_INCREF(obj); | |
21079 | return Py_BuildValue((char *)""); | |
21080 | } | |
21081 | static PyObject *_wrap_new_ListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21082 | PyObject *resultobj; | |
21083 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 21084 | int arg2 = (int) -1 ; |
d14a1e28 RD |
21085 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
21086 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
21087 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
21088 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
21089 | long arg5 = (long) wxLC_ICON ; | |
21090 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
21091 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
21092 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
21093 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
21094 | wxPyListCtrl *result; | |
21095 | wxPoint temp3 ; | |
21096 | wxSize temp4 ; | |
e811c8ce | 21097 | bool temp7 = False ; |
d14a1e28 | 21098 | PyObject * obj0 = 0 ; |
994141e6 | 21099 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21100 | PyObject * obj2 = 0 ; |
21101 | PyObject * obj3 = 0 ; | |
994141e6 | 21102 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21103 | PyObject * obj5 = 0 ; |
21104 | PyObject * obj6 = 0 ; | |
21105 | char *kwnames[] = { | |
21106 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21107 | }; | |
21108 | ||
994141e6 | 21109 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
21110 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
21111 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21112 | if (obj1) { |
15afbcd0 RD |
21113 | arg2 = (int) SWIG_AsInt(obj1); |
21114 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21115 | } |
d14a1e28 RD |
21116 | if (obj2) { |
21117 | { | |
21118 | arg3 = &temp3; | |
21119 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
21120 | } | |
21121 | } | |
21122 | if (obj3) { | |
21123 | { | |
21124 | arg4 = &temp4; | |
21125 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
21126 | } | |
21127 | } | |
994141e6 | 21128 | if (obj4) { |
15afbcd0 RD |
21129 | arg5 = (long) SWIG_AsLong(obj4); |
21130 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21131 | } |
d14a1e28 | 21132 | if (obj5) { |
15afbcd0 RD |
21133 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
21134 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21135 | SWIG_fail; | |
d14a1e28 | 21136 | if (arg6 == NULL) { |
15afbcd0 RD |
21137 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21138 | SWIG_fail; | |
d14a1e28 RD |
21139 | } |
21140 | } | |
21141 | if (obj6) { | |
21142 | { | |
21143 | arg7 = wxString_in_helper(obj6); | |
21144 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 21145 | temp7 = True; |
d14a1e28 RD |
21146 | } |
21147 | } | |
21148 | { | |
e3b71cb8 | 21149 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21150 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21151 | result = (wxPyListCtrl *)new wxPyListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
21152 | ||
21153 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21154 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21155 | } |
15afbcd0 | 21156 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21157 | { |
21158 | if (temp7) | |
21159 | delete arg7; | |
21160 | } | |
21161 | return resultobj; | |
21162 | fail: | |
21163 | { | |
21164 | if (temp7) | |
21165 | delete arg7; | |
21166 | } | |
21167 | return NULL; | |
21168 | } | |
21169 | ||
21170 | ||
21171 | static PyObject *_wrap_new_PreListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21172 | PyObject *resultobj; | |
21173 | wxPyListCtrl *result; | |
21174 | char *kwnames[] = { | |
21175 | NULL | |
21176 | }; | |
21177 | ||
21178 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListCtrl",kwnames)) goto fail; | |
21179 | { | |
e3b71cb8 | 21180 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
21181 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
21182 | result = (wxPyListCtrl *)new wxPyListCtrl(); | |
21183 | ||
21184 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 21185 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 21186 | } |
15afbcd0 | 21187 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyListCtrl, 1); |
d14a1e28 RD |
21188 | return resultobj; |
21189 | fail: | |
21190 | return NULL; | |
21191 | } | |
21192 | ||
21193 | ||
21194 | static PyObject *_wrap_ListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21195 | PyObject *resultobj; | |
21196 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21197 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 21198 | int arg3 = (int) -1 ; |
d14a1e28 RD |
21199 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
21200 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
21201 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
21202 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
21203 | long arg6 = (long) wxLC_ICON ; | |
21204 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
21205 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
21206 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
21207 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
21208 | bool result; | |
21209 | wxPoint temp4 ; | |
21210 | wxSize temp5 ; | |
e811c8ce | 21211 | bool temp8 = False ; |
d14a1e28 RD |
21212 | PyObject * obj0 = 0 ; |
21213 | PyObject * obj1 = 0 ; | |
994141e6 | 21214 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
21215 | PyObject * obj3 = 0 ; |
21216 | PyObject * obj4 = 0 ; | |
994141e6 | 21217 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
21218 | PyObject * obj6 = 0 ; |
21219 | PyObject * obj7 = 0 ; | |
21220 | char *kwnames[] = { | |
21221 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
21222 | }; | |
21223 | ||
994141e6 | 21224 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
21225 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21226 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21227 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
21228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 21229 | if (obj2) { |
15afbcd0 RD |
21230 | arg3 = (int) SWIG_AsInt(obj2); |
21231 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21232 | } |
d14a1e28 RD |
21233 | if (obj3) { |
21234 | { | |
21235 | arg4 = &temp4; | |
21236 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
21237 | } | |
21238 | } | |
21239 | if (obj4) { | |
21240 | { | |
21241 | arg5 = &temp5; | |
21242 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
21243 | } | |
21244 | } | |
994141e6 | 21245 | if (obj5) { |
15afbcd0 RD |
21246 | arg6 = (long) SWIG_AsLong(obj5); |
21247 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21248 | } |
d14a1e28 | 21249 | if (obj6) { |
15afbcd0 RD |
21250 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
21251 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21252 | SWIG_fail; | |
d14a1e28 | 21253 | if (arg7 == NULL) { |
15afbcd0 RD |
21254 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21255 | SWIG_fail; | |
d14a1e28 RD |
21256 | } |
21257 | } | |
21258 | if (obj7) { | |
21259 | { | |
21260 | arg8 = wxString_in_helper(obj7); | |
21261 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 21262 | temp8 = True; |
d14a1e28 RD |
21263 | } |
21264 | } | |
21265 | { | |
21266 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21267 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
21268 | ||
21269 | wxPyEndAllowThreads(__tstate); | |
21270 | if (PyErr_Occurred()) SWIG_fail; | |
21271 | } | |
4f89f6a3 RD |
21272 | { |
21273 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21274 | } | |
d14a1e28 RD |
21275 | { |
21276 | if (temp8) | |
21277 | delete arg8; | |
21278 | } | |
21279 | return resultobj; | |
21280 | fail: | |
21281 | { | |
21282 | if (temp8) | |
21283 | delete arg8; | |
21284 | } | |
21285 | return NULL; | |
21286 | } | |
21287 | ||
21288 | ||
21289 | static PyObject *_wrap_ListCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21290 | PyObject *resultobj; | |
21291 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21292 | PyObject *arg2 = (PyObject *) 0 ; | |
21293 | PyObject *arg3 = (PyObject *) 0 ; | |
21294 | PyObject * obj0 = 0 ; | |
21295 | PyObject * obj1 = 0 ; | |
21296 | PyObject * obj2 = 0 ; | |
21297 | char *kwnames[] = { | |
21298 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
21299 | }; | |
21300 | ||
21301 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
21302 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21303 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21304 | arg2 = obj1; |
21305 | arg3 = obj2; | |
21306 | { | |
21307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21308 | (arg1)->_setCallbackInfo(arg2,arg3); | |
21309 | ||
21310 | wxPyEndAllowThreads(__tstate); | |
21311 | if (PyErr_Occurred()) SWIG_fail; | |
21312 | } | |
21313 | Py_INCREF(Py_None); resultobj = Py_None; | |
21314 | return resultobj; | |
21315 | fail: | |
21316 | return NULL; | |
21317 | } | |
21318 | ||
21319 | ||
21320 | static PyObject *_wrap_ListCtrl_SetForegroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21321 | PyObject *resultobj; | |
21322 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21323 | wxColour *arg2 = 0 ; | |
21324 | bool result; | |
21325 | wxColour temp2 ; | |
21326 | PyObject * obj0 = 0 ; | |
21327 | PyObject * obj1 = 0 ; | |
21328 | char *kwnames[] = { | |
21329 | (char *) "self",(char *) "col", NULL | |
21330 | }; | |
21331 | ||
21332 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetForegroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21333 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21334 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21335 | { |
21336 | arg2 = &temp2; | |
21337 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21338 | } | |
21339 | { | |
21340 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21341 | result = (bool)(arg1)->SetForegroundColour((wxColour const &)*arg2); | |
21342 | ||
21343 | wxPyEndAllowThreads(__tstate); | |
21344 | if (PyErr_Occurred()) SWIG_fail; | |
21345 | } | |
4f89f6a3 RD |
21346 | { |
21347 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21348 | } | |
d14a1e28 RD |
21349 | return resultobj; |
21350 | fail: | |
21351 | return NULL; | |
21352 | } | |
21353 | ||
21354 | ||
21355 | static PyObject *_wrap_ListCtrl_SetBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21356 | PyObject *resultobj; | |
21357 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21358 | wxColour *arg2 = 0 ; | |
21359 | bool result; | |
21360 | wxColour temp2 ; | |
21361 | PyObject * obj0 = 0 ; | |
21362 | PyObject * obj1 = 0 ; | |
21363 | char *kwnames[] = { | |
21364 | (char *) "self",(char *) "col", NULL | |
21365 | }; | |
21366 | ||
21367 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21368 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21369 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21370 | { |
21371 | arg2 = &temp2; | |
21372 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
21373 | } | |
21374 | { | |
21375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21376 | result = (bool)(arg1)->SetBackgroundColour((wxColour const &)*arg2); | |
21377 | ||
21378 | wxPyEndAllowThreads(__tstate); | |
21379 | if (PyErr_Occurred()) SWIG_fail; | |
21380 | } | |
4f89f6a3 RD |
21381 | { |
21382 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21383 | } | |
d14a1e28 RD |
21384 | return resultobj; |
21385 | fail: | |
21386 | return NULL; | |
21387 | } | |
21388 | ||
21389 | ||
21390 | static PyObject *_wrap_ListCtrl_GetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21391 | PyObject *resultobj; | |
21392 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21393 | int arg2 ; | |
21394 | wxListItem *result; | |
21395 | PyObject * obj0 = 0 ; | |
994141e6 | 21396 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21397 | char *kwnames[] = { |
21398 | (char *) "self",(char *) "col", NULL | |
21399 | }; | |
21400 | ||
994141e6 | 21401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21404 | arg2 = (int) SWIG_AsInt(obj1); | |
21405 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21406 | { |
21407 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21408 | result = (wxListItem *)wxPyListCtrl_GetColumn(arg1,arg2); | |
21409 | ||
21410 | wxPyEndAllowThreads(__tstate); | |
21411 | if (PyErr_Occurred()) SWIG_fail; | |
21412 | } | |
21413 | { | |
412d302d | 21414 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21415 | } |
21416 | return resultobj; | |
21417 | fail: | |
21418 | return NULL; | |
21419 | } | |
21420 | ||
21421 | ||
21422 | static PyObject *_wrap_ListCtrl_SetColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21423 | PyObject *resultobj; | |
21424 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21425 | int arg2 ; | |
21426 | wxListItem *arg3 = 0 ; | |
21427 | bool result; | |
21428 | PyObject * obj0 = 0 ; | |
994141e6 | 21429 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21430 | PyObject * obj2 = 0 ; |
21431 | char *kwnames[] = { | |
21432 | (char *) "self",(char *) "col",(char *) "item", NULL | |
21433 | }; | |
21434 | ||
994141e6 | 21435 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumn",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21436 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21437 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21438 | arg2 = (int) SWIG_AsInt(obj1); | |
21439 | if (PyErr_Occurred()) SWIG_fail; | |
21440 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
21441 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21442 | SWIG_fail; | |
d14a1e28 | 21443 | if (arg3 == NULL) { |
15afbcd0 RD |
21444 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21445 | SWIG_fail; | |
d14a1e28 RD |
21446 | } |
21447 | { | |
21448 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21449 | result = (bool)(arg1)->SetColumn(arg2,*arg3); | |
21450 | ||
21451 | wxPyEndAllowThreads(__tstate); | |
21452 | if (PyErr_Occurred()) SWIG_fail; | |
21453 | } | |
4f89f6a3 RD |
21454 | { |
21455 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21456 | } | |
d14a1e28 RD |
21457 | return resultobj; |
21458 | fail: | |
21459 | return NULL; | |
21460 | } | |
21461 | ||
21462 | ||
21463 | static PyObject *_wrap_ListCtrl_GetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21464 | PyObject *resultobj; | |
21465 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21466 | int arg2 ; | |
21467 | int result; | |
21468 | PyObject * obj0 = 0 ; | |
994141e6 | 21469 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21470 | char *kwnames[] = { |
21471 | (char *) "self",(char *) "col", NULL | |
21472 | }; | |
21473 | ||
994141e6 | 21474 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetColumnWidth",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21475 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21476 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21477 | arg2 = (int) SWIG_AsInt(obj1); | |
21478 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21479 | { |
21480 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21481 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnWidth(arg2); | |
21482 | ||
21483 | wxPyEndAllowThreads(__tstate); | |
21484 | if (PyErr_Occurred()) SWIG_fail; | |
21485 | } | |
15afbcd0 | 21486 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21487 | return resultobj; |
21488 | fail: | |
21489 | return NULL; | |
21490 | } | |
21491 | ||
21492 | ||
21493 | static PyObject *_wrap_ListCtrl_SetColumnWidth(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21494 | PyObject *resultobj; | |
21495 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21496 | int arg2 ; | |
21497 | int arg3 ; | |
21498 | bool result; | |
21499 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21500 | PyObject * obj1 = 0 ; |
21501 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21502 | char *kwnames[] = { |
21503 | (char *) "self",(char *) "col",(char *) "width", NULL | |
21504 | }; | |
21505 | ||
994141e6 | 21506 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetColumnWidth",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21507 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21508 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21509 | arg2 = (int) SWIG_AsInt(obj1); | |
21510 | if (PyErr_Occurred()) SWIG_fail; | |
21511 | arg3 = (int) SWIG_AsInt(obj2); | |
21512 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21513 | { |
21514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21515 | result = (bool)(arg1)->SetColumnWidth(arg2,arg3); | |
21516 | ||
21517 | wxPyEndAllowThreads(__tstate); | |
21518 | if (PyErr_Occurred()) SWIG_fail; | |
21519 | } | |
4f89f6a3 RD |
21520 | { |
21521 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21522 | } | |
d14a1e28 RD |
21523 | return resultobj; |
21524 | fail: | |
21525 | return NULL; | |
21526 | } | |
21527 | ||
21528 | ||
21529 | static PyObject *_wrap_ListCtrl_GetCountPerPage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21530 | PyObject *resultobj; | |
21531 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21532 | int result; | |
21533 | PyObject * obj0 = 0 ; | |
21534 | char *kwnames[] = { | |
21535 | (char *) "self", NULL | |
21536 | }; | |
21537 | ||
21538 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetCountPerPage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21539 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21540 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21541 | { |
21542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21543 | result = (int)((wxPyListCtrl const *)arg1)->GetCountPerPage(); | |
21544 | ||
21545 | wxPyEndAllowThreads(__tstate); | |
21546 | if (PyErr_Occurred()) SWIG_fail; | |
21547 | } | |
15afbcd0 | 21548 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21549 | return resultobj; |
21550 | fail: | |
21551 | return NULL; | |
21552 | } | |
21553 | ||
21554 | ||
21555 | static PyObject *_wrap_ListCtrl_GetViewRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21556 | PyObject *resultobj; | |
21557 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21558 | wxRect result; | |
21559 | PyObject * obj0 = 0 ; | |
21560 | char *kwnames[] = { | |
21561 | (char *) "self", NULL | |
21562 | }; | |
21563 | ||
21564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetViewRect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
21565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
21567 | { |
21568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21569 | result = ((wxPyListCtrl const *)arg1)->GetViewRect(); | |
21570 | ||
21571 | wxPyEndAllowThreads(__tstate); | |
21572 | if (PyErr_Occurred()) SWIG_fail; | |
21573 | } | |
21574 | { | |
21575 | wxRect * resultptr; | |
21576 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 21577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
21578 | } |
21579 | return resultobj; | |
21580 | fail: | |
21581 | return NULL; | |
21582 | } | |
21583 | ||
21584 | ||
21585 | static PyObject *_wrap_ListCtrl_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21586 | PyObject *resultobj; | |
21587 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21588 | long arg2 ; | |
21589 | int arg3 = (int) 0 ; | |
21590 | wxListItem *result; | |
21591 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21592 | PyObject * obj1 = 0 ; |
21593 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21594 | char *kwnames[] = { |
21595 | (char *) "self",(char *) "itemId",(char *) "col", NULL | |
21596 | }; | |
21597 | ||
994141e6 | 21598 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21599 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21600 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21601 | arg2 = (long) SWIG_AsLong(obj1); | |
21602 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21603 | if (obj2) { |
15afbcd0 RD |
21604 | arg3 = (int) SWIG_AsInt(obj2); |
21605 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21606 | } |
d14a1e28 RD |
21607 | { |
21608 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21609 | result = (wxListItem *)wxPyListCtrl_GetItem(arg1,arg2,arg3); | |
21610 | ||
21611 | wxPyEndAllowThreads(__tstate); | |
21612 | if (PyErr_Occurred()) SWIG_fail; | |
21613 | } | |
21614 | { | |
412d302d | 21615 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
21616 | } |
21617 | return resultobj; | |
21618 | fail: | |
21619 | return NULL; | |
21620 | } | |
21621 | ||
21622 | ||
21623 | static PyObject *_wrap_ListCtrl_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21624 | PyObject *resultobj; | |
21625 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21626 | wxListItem *arg2 = 0 ; | |
21627 | bool result; | |
21628 | PyObject * obj0 = 0 ; | |
21629 | PyObject * obj1 = 0 ; | |
21630 | char *kwnames[] = { | |
21631 | (char *) "self",(char *) "info", NULL | |
21632 | }; | |
21633 | ||
21634 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
21635 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21636 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21637 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
21638 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
21639 | SWIG_fail; | |
d14a1e28 | 21640 | if (arg2 == NULL) { |
15afbcd0 RD |
21641 | PyErr_SetString(PyExc_TypeError,"null reference"); |
21642 | SWIG_fail; | |
d14a1e28 RD |
21643 | } |
21644 | { | |
21645 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21646 | result = (bool)(arg1)->SetItem(*arg2); | |
21647 | ||
21648 | wxPyEndAllowThreads(__tstate); | |
21649 | if (PyErr_Occurred()) SWIG_fail; | |
21650 | } | |
4f89f6a3 RD |
21651 | { |
21652 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21653 | } | |
d14a1e28 RD |
21654 | return resultobj; |
21655 | fail: | |
21656 | return NULL; | |
21657 | } | |
21658 | ||
21659 | ||
21660 | static PyObject *_wrap_ListCtrl_SetStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21661 | PyObject *resultobj; | |
21662 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21663 | long arg2 ; | |
21664 | int arg3 ; | |
21665 | wxString *arg4 = 0 ; | |
21666 | int arg5 = (int) -1 ; | |
21667 | long result; | |
e811c8ce | 21668 | bool temp4 = False ; |
d14a1e28 | 21669 | PyObject * obj0 = 0 ; |
994141e6 RD |
21670 | PyObject * obj1 = 0 ; |
21671 | PyObject * obj2 = 0 ; | |
d14a1e28 | 21672 | PyObject * obj3 = 0 ; |
994141e6 | 21673 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
21674 | char *kwnames[] = { |
21675 | (char *) "self",(char *) "index",(char *) "col",(char *) "label",(char *) "imageId", NULL | |
21676 | }; | |
21677 | ||
994141e6 | 21678 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|O:ListCtrl_SetStringItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
21679 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21680 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21681 | arg2 = (long) SWIG_AsLong(obj1); | |
21682 | if (PyErr_Occurred()) SWIG_fail; | |
21683 | arg3 = (int) SWIG_AsInt(obj2); | |
21684 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21685 | { |
21686 | arg4 = wxString_in_helper(obj3); | |
21687 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 21688 | temp4 = True; |
d14a1e28 | 21689 | } |
994141e6 | 21690 | if (obj4) { |
15afbcd0 RD |
21691 | arg5 = (int) SWIG_AsInt(obj4); |
21692 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 21693 | } |
d14a1e28 RD |
21694 | { |
21695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21696 | result = (long)(arg1)->SetItem(arg2,arg3,(wxString const &)*arg4,arg5); | |
21697 | ||
21698 | wxPyEndAllowThreads(__tstate); | |
21699 | if (PyErr_Occurred()) SWIG_fail; | |
21700 | } | |
15afbcd0 | 21701 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21702 | { |
21703 | if (temp4) | |
21704 | delete arg4; | |
21705 | } | |
21706 | return resultobj; | |
21707 | fail: | |
21708 | { | |
21709 | if (temp4) | |
21710 | delete arg4; | |
21711 | } | |
21712 | return NULL; | |
21713 | } | |
21714 | ||
21715 | ||
21716 | static PyObject *_wrap_ListCtrl_GetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21717 | PyObject *resultobj; | |
21718 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21719 | long arg2 ; | |
21720 | long arg3 ; | |
21721 | int result; | |
21722 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21723 | PyObject * obj1 = 0 ; |
21724 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21725 | char *kwnames[] = { |
21726 | (char *) "self",(char *) "item",(char *) "stateMask", NULL | |
21727 | }; | |
21728 | ||
994141e6 | 21729 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_GetItemState",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21730 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21731 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21732 | arg2 = (long) SWIG_AsLong(obj1); | |
21733 | if (PyErr_Occurred()) SWIG_fail; | |
21734 | arg3 = (long) SWIG_AsLong(obj2); | |
21735 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21736 | { |
21737 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21738 | result = (int)((wxPyListCtrl const *)arg1)->GetItemState(arg2,arg3); | |
21739 | ||
21740 | wxPyEndAllowThreads(__tstate); | |
21741 | if (PyErr_Occurred()) SWIG_fail; | |
21742 | } | |
15afbcd0 | 21743 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
21744 | return resultobj; |
21745 | fail: | |
21746 | return NULL; | |
21747 | } | |
21748 | ||
21749 | ||
21750 | static PyObject *_wrap_ListCtrl_SetItemState(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21751 | PyObject *resultobj; | |
21752 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21753 | long arg2 ; | |
21754 | long arg3 ; | |
21755 | long arg4 ; | |
21756 | bool result; | |
21757 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21758 | PyObject * obj1 = 0 ; |
21759 | PyObject * obj2 = 0 ; | |
21760 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21761 | char *kwnames[] = { |
21762 | (char *) "self",(char *) "item",(char *) "state",(char *) "stateMask", NULL | |
21763 | }; | |
21764 | ||
994141e6 | 21765 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemState",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21766 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21767 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21768 | arg2 = (long) SWIG_AsLong(obj1); | |
21769 | if (PyErr_Occurred()) SWIG_fail; | |
21770 | arg3 = (long) SWIG_AsLong(obj2); | |
21771 | if (PyErr_Occurred()) SWIG_fail; | |
21772 | arg4 = (long) SWIG_AsLong(obj3); | |
21773 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21774 | { |
21775 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21776 | result = (bool)(arg1)->SetItemState(arg2,arg3,arg4); | |
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_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21791 | PyObject *resultobj; | |
21792 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21793 | long arg2 ; | |
21794 | int arg3 ; | |
21795 | int arg4 ; | |
21796 | bool result; | |
21797 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21798 | PyObject * obj1 = 0 ; |
21799 | PyObject * obj2 = 0 ; | |
21800 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
21801 | char *kwnames[] = { |
21802 | (char *) "self",(char *) "item",(char *) "image",(char *) "selImage", NULL | |
21803 | }; | |
21804 | ||
994141e6 | 21805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
21806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21808 | arg2 = (long) SWIG_AsLong(obj1); | |
21809 | if (PyErr_Occurred()) SWIG_fail; | |
21810 | arg3 = (int) SWIG_AsInt(obj2); | |
21811 | if (PyErr_Occurred()) SWIG_fail; | |
21812 | arg4 = (int) SWIG_AsInt(obj3); | |
21813 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21814 | { |
21815 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21816 | result = (bool)(arg1)->SetItemImage(arg2,arg3,arg4); | |
21817 | ||
21818 | wxPyEndAllowThreads(__tstate); | |
21819 | if (PyErr_Occurred()) SWIG_fail; | |
21820 | } | |
4f89f6a3 RD |
21821 | { |
21822 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21823 | } | |
d14a1e28 RD |
21824 | return resultobj; |
21825 | fail: | |
21826 | return NULL; | |
21827 | } | |
21828 | ||
21829 | ||
21830 | static PyObject *_wrap_ListCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21831 | PyObject *resultobj; | |
21832 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21833 | long arg2 ; | |
21834 | wxString result; | |
21835 | PyObject * obj0 = 0 ; | |
994141e6 | 21836 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21837 | char *kwnames[] = { |
21838 | (char *) "self",(char *) "item", NULL | |
21839 | }; | |
21840 | ||
994141e6 | 21841 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21842 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21844 | arg2 = (long) SWIG_AsLong(obj1); | |
21845 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21846 | { |
21847 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21848 | result = ((wxPyListCtrl const *)arg1)->GetItemText(arg2); | |
21849 | ||
21850 | wxPyEndAllowThreads(__tstate); | |
21851 | if (PyErr_Occurred()) SWIG_fail; | |
21852 | } | |
21853 | { | |
21854 | #if wxUSE_UNICODE | |
21855 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
21856 | #else | |
21857 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
21858 | #endif | |
21859 | } | |
21860 | return resultobj; | |
21861 | fail: | |
21862 | return NULL; | |
21863 | } | |
21864 | ||
21865 | ||
21866 | static PyObject *_wrap_ListCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21867 | PyObject *resultobj; | |
21868 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21869 | long arg2 ; | |
21870 | wxString *arg3 = 0 ; | |
e811c8ce | 21871 | bool temp3 = False ; |
d14a1e28 | 21872 | PyObject * obj0 = 0 ; |
994141e6 | 21873 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21874 | PyObject * obj2 = 0 ; |
21875 | char *kwnames[] = { | |
21876 | (char *) "self",(char *) "item",(char *) "str", NULL | |
21877 | }; | |
21878 | ||
994141e6 | 21879 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21880 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21881 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21882 | arg2 = (long) SWIG_AsLong(obj1); | |
21883 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21884 | { |
21885 | arg3 = wxString_in_helper(obj2); | |
21886 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 21887 | temp3 = True; |
d14a1e28 RD |
21888 | } |
21889 | { | |
21890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21891 | (arg1)->SetItemText(arg2,(wxString const &)*arg3); | |
21892 | ||
21893 | wxPyEndAllowThreads(__tstate); | |
21894 | if (PyErr_Occurred()) SWIG_fail; | |
21895 | } | |
21896 | Py_INCREF(Py_None); resultobj = Py_None; | |
21897 | { | |
21898 | if (temp3) | |
21899 | delete arg3; | |
21900 | } | |
21901 | return resultobj; | |
21902 | fail: | |
21903 | { | |
21904 | if (temp3) | |
21905 | delete arg3; | |
21906 | } | |
21907 | return NULL; | |
21908 | } | |
21909 | ||
21910 | ||
21911 | static PyObject *_wrap_ListCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21912 | PyObject *resultobj; | |
21913 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21914 | long arg2 ; | |
21915 | long result; | |
21916 | PyObject * obj0 = 0 ; | |
994141e6 | 21917 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21918 | char *kwnames[] = { |
21919 | (char *) "self",(char *) "item", NULL | |
21920 | }; | |
21921 | ||
994141e6 | 21922 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21923 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21924 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21925 | arg2 = (long) SWIG_AsLong(obj1); | |
21926 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21927 | { |
21928 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21929 | result = (long)((wxPyListCtrl const *)arg1)->GetItemData(arg2); | |
21930 | ||
21931 | wxPyEndAllowThreads(__tstate); | |
21932 | if (PyErr_Occurred()) SWIG_fail; | |
21933 | } | |
15afbcd0 | 21934 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
21935 | return resultobj; |
21936 | fail: | |
21937 | return NULL; | |
21938 | } | |
21939 | ||
21940 | ||
21941 | static PyObject *_wrap_ListCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21942 | PyObject *resultobj; | |
21943 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21944 | long arg2 ; | |
21945 | long arg3 ; | |
21946 | bool result; | |
21947 | PyObject * obj0 = 0 ; | |
994141e6 RD |
21948 | PyObject * obj1 = 0 ; |
21949 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
21950 | char *kwnames[] = { |
21951 | (char *) "self",(char *) "item",(char *) "data", NULL | |
21952 | }; | |
21953 | ||
994141e6 | 21954 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
21955 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21956 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21957 | arg2 = (long) SWIG_AsLong(obj1); | |
21958 | if (PyErr_Occurred()) SWIG_fail; | |
21959 | arg3 = (long) SWIG_AsLong(obj2); | |
21960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21961 | { |
21962 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21963 | result = (bool)(arg1)->SetItemData(arg2,arg3); | |
21964 | ||
21965 | wxPyEndAllowThreads(__tstate); | |
21966 | if (PyErr_Occurred()) SWIG_fail; | |
21967 | } | |
4f89f6a3 RD |
21968 | { |
21969 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
21970 | } | |
d14a1e28 RD |
21971 | return resultobj; |
21972 | fail: | |
21973 | return NULL; | |
21974 | } | |
21975 | ||
21976 | ||
21977 | static PyObject *_wrap_ListCtrl_GetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
21978 | PyObject *resultobj; | |
21979 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
21980 | long arg2 ; | |
21981 | wxPoint result; | |
21982 | PyObject * obj0 = 0 ; | |
994141e6 | 21983 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
21984 | char *kwnames[] = { |
21985 | (char *) "self",(char *) "item", NULL | |
21986 | }; | |
21987 | ||
994141e6 | 21988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemPosition",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
21989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
21990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
21991 | arg2 = (long) SWIG_AsLong(obj1); | |
21992 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
21993 | { |
21994 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
21995 | result = wxPyListCtrl_GetItemPosition(arg1,arg2); | |
21996 | ||
21997 | wxPyEndAllowThreads(__tstate); | |
21998 | if (PyErr_Occurred()) SWIG_fail; | |
21999 | } | |
22000 | { | |
22001 | wxPoint * resultptr; | |
22002 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 22003 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
22004 | } |
22005 | return resultobj; | |
22006 | fail: | |
22007 | return NULL; | |
22008 | } | |
22009 | ||
22010 | ||
22011 | static PyObject *_wrap_ListCtrl_GetItemRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22012 | PyObject *resultobj; | |
22013 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22014 | long arg2 ; | |
22015 | int arg3 = (int) wxLIST_RECT_BOUNDS ; | |
22016 | wxRect result; | |
22017 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22018 | PyObject * obj1 = 0 ; |
22019 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22020 | char *kwnames[] = { |
22021 | (char *) "self",(char *) "item",(char *) "code", NULL | |
22022 | }; | |
22023 | ||
994141e6 | 22024 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_GetItemRect",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22025 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22026 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22027 | arg2 = (long) SWIG_AsLong(obj1); | |
22028 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22029 | if (obj2) { |
15afbcd0 RD |
22030 | arg3 = (int) SWIG_AsInt(obj2); |
22031 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22032 | } |
d14a1e28 RD |
22033 | { |
22034 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22035 | result = wxPyListCtrl_GetItemRect(arg1,arg2,arg3); | |
22036 | ||
22037 | wxPyEndAllowThreads(__tstate); | |
22038 | if (PyErr_Occurred()) SWIG_fail; | |
22039 | } | |
22040 | { | |
22041 | wxRect * resultptr; | |
22042 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 22043 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
d14a1e28 RD |
22044 | } |
22045 | return resultobj; | |
22046 | fail: | |
22047 | return NULL; | |
22048 | } | |
22049 | ||
22050 | ||
22051 | static PyObject *_wrap_ListCtrl_SetItemPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22052 | PyObject *resultobj; | |
22053 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22054 | long arg2 ; | |
22055 | wxPoint *arg3 = 0 ; | |
22056 | bool result; | |
22057 | wxPoint temp3 ; | |
22058 | PyObject * obj0 = 0 ; | |
994141e6 | 22059 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22060 | PyObject * obj2 = 0 ; |
22061 | char *kwnames[] = { | |
22062 | (char *) "self",(char *) "item",(char *) "pos", NULL | |
22063 | }; | |
22064 | ||
994141e6 | 22065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemPosition",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22066 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22067 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22068 | arg2 = (long) SWIG_AsLong(obj1); | |
22069 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22070 | { |
22071 | arg3 = &temp3; | |
22072 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22073 | } | |
22074 | { | |
22075 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22076 | result = (bool)(arg1)->SetItemPosition(arg2,(wxPoint const &)*arg3); | |
22077 | ||
22078 | wxPyEndAllowThreads(__tstate); | |
22079 | if (PyErr_Occurred()) SWIG_fail; | |
22080 | } | |
4f89f6a3 RD |
22081 | { |
22082 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22083 | } | |
d14a1e28 RD |
22084 | return resultobj; |
22085 | fail: | |
22086 | return NULL; | |
22087 | } | |
22088 | ||
22089 | ||
22090 | static PyObject *_wrap_ListCtrl_GetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22091 | PyObject *resultobj; | |
22092 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22093 | int result; | |
22094 | PyObject * obj0 = 0 ; | |
22095 | char *kwnames[] = { | |
22096 | (char *) "self", NULL | |
22097 | }; | |
22098 | ||
22099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22102 | { |
22103 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22104 | result = (int)((wxPyListCtrl const *)arg1)->GetItemCount(); | |
22105 | ||
22106 | wxPyEndAllowThreads(__tstate); | |
22107 | if (PyErr_Occurred()) SWIG_fail; | |
22108 | } | |
15afbcd0 | 22109 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22110 | return resultobj; |
22111 | fail: | |
22112 | return NULL; | |
22113 | } | |
22114 | ||
22115 | ||
22116 | static PyObject *_wrap_ListCtrl_GetColumnCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22117 | PyObject *resultobj; | |
22118 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22119 | int result; | |
22120 | PyObject * obj0 = 0 ; | |
22121 | char *kwnames[] = { | |
22122 | (char *) "self", NULL | |
22123 | }; | |
22124 | ||
22125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetColumnCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22128 | { |
22129 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22130 | result = (int)((wxPyListCtrl const *)arg1)->GetColumnCount(); | |
22131 | ||
22132 | wxPyEndAllowThreads(__tstate); | |
22133 | if (PyErr_Occurred()) SWIG_fail; | |
22134 | } | |
15afbcd0 | 22135 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22136 | return resultobj; |
22137 | fail: | |
22138 | return NULL; | |
22139 | } | |
22140 | ||
22141 | ||
22142 | static PyObject *_wrap_ListCtrl_GetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22143 | PyObject *resultobj; | |
22144 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22145 | wxSize result; | |
22146 | PyObject * obj0 = 0 ; | |
22147 | char *kwnames[] = { | |
22148 | (char *) "self", NULL | |
22149 | }; | |
22150 | ||
22151 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetItemSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22152 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22153 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22154 | { |
22155 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22156 | result = ((wxPyListCtrl const *)arg1)->GetItemSpacing(); | |
22157 | ||
22158 | wxPyEndAllowThreads(__tstate); | |
22159 | if (PyErr_Occurred()) SWIG_fail; | |
22160 | } | |
22161 | { | |
22162 | wxSize * resultptr; | |
22163 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 22164 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
22165 | } |
22166 | return resultobj; | |
22167 | fail: | |
22168 | return NULL; | |
22169 | } | |
22170 | ||
22171 | ||
22172 | static PyObject *_wrap_ListCtrl_SetItemSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22173 | PyObject *resultobj; | |
22174 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22175 | int arg2 ; | |
e811c8ce | 22176 | bool arg3 = (bool) False ; |
d14a1e28 | 22177 | PyObject * obj0 = 0 ; |
994141e6 | 22178 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22179 | PyObject * obj2 = 0 ; |
22180 | char *kwnames[] = { | |
22181 | (char *) "self",(char *) "spacing",(char *) "isSmall", NULL | |
22182 | }; | |
22183 | ||
994141e6 | 22184 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetItemSpacing",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22185 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22186 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22187 | arg2 = (int) SWIG_AsInt(obj1); | |
22188 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22189 | if (obj2) { |
15afbcd0 RD |
22190 | arg3 = (bool) SWIG_AsBool(obj2); |
22191 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22192 | } |
22193 | { | |
22194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22195 | (arg1)->SetItemSpacing(arg2,arg3); | |
22196 | ||
22197 | wxPyEndAllowThreads(__tstate); | |
22198 | if (PyErr_Occurred()) SWIG_fail; | |
22199 | } | |
22200 | Py_INCREF(Py_None); resultobj = Py_None; | |
22201 | return resultobj; | |
22202 | fail: | |
22203 | return NULL; | |
22204 | } | |
22205 | ||
22206 | ||
22207 | static PyObject *_wrap_ListCtrl_GetSelectedItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22208 | PyObject *resultobj; | |
22209 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22210 | int result; | |
22211 | PyObject * obj0 = 0 ; | |
22212 | char *kwnames[] = { | |
22213 | (char *) "self", NULL | |
22214 | }; | |
22215 | ||
22216 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetSelectedItemCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22217 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22218 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22219 | { |
22220 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22221 | result = (int)((wxPyListCtrl const *)arg1)->GetSelectedItemCount(); | |
22222 | ||
22223 | wxPyEndAllowThreads(__tstate); | |
22224 | if (PyErr_Occurred()) SWIG_fail; | |
22225 | } | |
15afbcd0 | 22226 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
22227 | return resultobj; |
22228 | fail: | |
22229 | return NULL; | |
22230 | } | |
22231 | ||
22232 | ||
22233 | static PyObject *_wrap_ListCtrl_GetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22234 | PyObject *resultobj; | |
22235 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22236 | wxColour result; | |
22237 | PyObject * obj0 = 0 ; | |
22238 | char *kwnames[] = { | |
22239 | (char *) "self", NULL | |
22240 | }; | |
22241 | ||
22242 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTextColour",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22243 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22244 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22245 | { |
22246 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22247 | result = ((wxPyListCtrl const *)arg1)->GetTextColour(); | |
22248 | ||
22249 | wxPyEndAllowThreads(__tstate); | |
22250 | if (PyErr_Occurred()) SWIG_fail; | |
22251 | } | |
22252 | { | |
22253 | wxColour * resultptr; | |
22254 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 22255 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
22256 | } |
22257 | return resultobj; | |
22258 | fail: | |
22259 | return NULL; | |
22260 | } | |
22261 | ||
22262 | ||
22263 | static PyObject *_wrap_ListCtrl_SetTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22264 | PyObject *resultobj; | |
22265 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22266 | wxColour *arg2 = 0 ; | |
22267 | wxColour temp2 ; | |
22268 | PyObject * obj0 = 0 ; | |
22269 | PyObject * obj1 = 0 ; | |
22270 | char *kwnames[] = { | |
22271 | (char *) "self",(char *) "col", NULL | |
22272 | }; | |
22273 | ||
22274 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
22275 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22276 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22277 | { |
22278 | arg2 = &temp2; | |
22279 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
22280 | } | |
22281 | { | |
22282 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22283 | (arg1)->SetTextColour((wxColour const &)*arg2); | |
22284 | ||
22285 | wxPyEndAllowThreads(__tstate); | |
22286 | if (PyErr_Occurred()) SWIG_fail; | |
22287 | } | |
22288 | Py_INCREF(Py_None); resultobj = Py_None; | |
22289 | return resultobj; | |
22290 | fail: | |
22291 | return NULL; | |
22292 | } | |
22293 | ||
22294 | ||
22295 | static PyObject *_wrap_ListCtrl_GetTopItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22296 | PyObject *resultobj; | |
22297 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22298 | long result; | |
22299 | PyObject * obj0 = 0 ; | |
22300 | char *kwnames[] = { | |
22301 | (char *) "self", NULL | |
22302 | }; | |
22303 | ||
22304 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetTopItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22305 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22306 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22307 | { |
22308 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22309 | result = (long)((wxPyListCtrl const *)arg1)->GetTopItem(); | |
22310 | ||
22311 | wxPyEndAllowThreads(__tstate); | |
22312 | if (PyErr_Occurred()) SWIG_fail; | |
22313 | } | |
15afbcd0 | 22314 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22315 | return resultobj; |
22316 | fail: | |
22317 | return NULL; | |
22318 | } | |
22319 | ||
22320 | ||
22321 | static PyObject *_wrap_ListCtrl_SetSingleStyle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22322 | PyObject *resultobj; | |
22323 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22324 | long arg2 ; | |
e811c8ce | 22325 | bool arg3 = (bool) True ; |
d14a1e28 | 22326 | PyObject * obj0 = 0 ; |
994141e6 | 22327 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22328 | PyObject * obj2 = 0 ; |
22329 | char *kwnames[] = { | |
22330 | (char *) "self",(char *) "style",(char *) "add", NULL | |
22331 | }; | |
22332 | ||
994141e6 | 22333 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListCtrl_SetSingleStyle",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22334 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22335 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22336 | arg2 = (long) SWIG_AsLong(obj1); | |
22337 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 22338 | if (obj2) { |
15afbcd0 RD |
22339 | arg3 = (bool) SWIG_AsBool(obj2); |
22340 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22341 | } |
22342 | { | |
22343 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22344 | (arg1)->SetSingleStyle(arg2,arg3); | |
22345 | ||
22346 | wxPyEndAllowThreads(__tstate); | |
22347 | if (PyErr_Occurred()) SWIG_fail; | |
22348 | } | |
22349 | Py_INCREF(Py_None); resultobj = Py_None; | |
22350 | return resultobj; | |
22351 | fail: | |
22352 | return NULL; | |
22353 | } | |
22354 | ||
22355 | ||
22356 | static PyObject *_wrap_ListCtrl_SetWindowStyleFlag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22357 | PyObject *resultobj; | |
22358 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22359 | long arg2 ; | |
22360 | PyObject * obj0 = 0 ; | |
994141e6 | 22361 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22362 | char *kwnames[] = { |
22363 | (char *) "self",(char *) "style", NULL | |
22364 | }; | |
22365 | ||
994141e6 | 22366 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetWindowStyleFlag",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22367 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22368 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22369 | arg2 = (long) SWIG_AsLong(obj1); | |
22370 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22371 | { |
22372 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22373 | (arg1)->SetWindowStyleFlag(arg2); | |
22374 | ||
22375 | wxPyEndAllowThreads(__tstate); | |
22376 | if (PyErr_Occurred()) SWIG_fail; | |
22377 | } | |
22378 | Py_INCREF(Py_None); resultobj = Py_None; | |
22379 | return resultobj; | |
22380 | fail: | |
22381 | return NULL; | |
22382 | } | |
22383 | ||
22384 | ||
22385 | static PyObject *_wrap_ListCtrl_GetNextItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22386 | PyObject *resultobj; | |
22387 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22388 | long arg2 ; | |
22389 | int arg3 = (int) wxLIST_NEXT_ALL ; | |
22390 | int arg4 = (int) wxLIST_STATE_DONTCARE ; | |
22391 | long result; | |
22392 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22393 | PyObject * obj1 = 0 ; |
22394 | PyObject * obj2 = 0 ; | |
22395 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
22396 | char *kwnames[] = { |
22397 | (char *) "self",(char *) "item",(char *) "geometry",(char *) "state", NULL | |
22398 | }; | |
22399 | ||
994141e6 | 22400 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OO:ListCtrl_GetNextItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22401 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22402 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22403 | arg2 = (long) SWIG_AsLong(obj1); | |
22404 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22405 | if (obj2) { |
15afbcd0 RD |
22406 | arg3 = (int) SWIG_AsInt(obj2); |
22407 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
22408 | } |
22409 | if (obj3) { | |
15afbcd0 RD |
22410 | arg4 = (int) SWIG_AsInt(obj3); |
22411 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22412 | } |
d14a1e28 RD |
22413 | { |
22414 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22415 | result = (long)((wxPyListCtrl const *)arg1)->GetNextItem(arg2,arg3,arg4); | |
22416 | ||
22417 | wxPyEndAllowThreads(__tstate); | |
22418 | if (PyErr_Occurred()) SWIG_fail; | |
22419 | } | |
15afbcd0 | 22420 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22421 | return resultobj; |
22422 | fail: | |
22423 | return NULL; | |
22424 | } | |
22425 | ||
22426 | ||
22427 | static PyObject *_wrap_ListCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22428 | PyObject *resultobj; | |
22429 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22430 | int arg2 ; | |
22431 | wxImageList *result; | |
22432 | PyObject * obj0 = 0 ; | |
994141e6 | 22433 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22434 | char *kwnames[] = { |
22435 | (char *) "self",(char *) "which", NULL | |
22436 | }; | |
22437 | ||
994141e6 | 22438 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetImageList",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22439 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22440 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22441 | arg2 = (int) SWIG_AsInt(obj1); | |
22442 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22443 | { |
22444 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22445 | result = (wxImageList *)((wxPyListCtrl const *)arg1)->GetImageList(arg2); | |
22446 | ||
22447 | wxPyEndAllowThreads(__tstate); | |
22448 | if (PyErr_Occurred()) SWIG_fail; | |
22449 | } | |
22450 | { | |
412d302d | 22451 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
22452 | } |
22453 | return resultobj; | |
22454 | fail: | |
22455 | return NULL; | |
22456 | } | |
22457 | ||
22458 | ||
22459 | static PyObject *_wrap_ListCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22460 | PyObject *resultobj; | |
22461 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22462 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22463 | int arg3 ; | |
22464 | PyObject * obj0 = 0 ; | |
22465 | PyObject * obj1 = 0 ; | |
994141e6 | 22466 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22467 | char *kwnames[] = { |
22468 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22469 | }; | |
22470 | ||
994141e6 | 22471 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22472 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22473 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22474 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22476 | arg3 = (int) SWIG_AsInt(obj2); | |
22477 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22478 | { |
22479 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22480 | (arg1)->SetImageList(arg2,arg3); | |
22481 | ||
22482 | wxPyEndAllowThreads(__tstate); | |
22483 | if (PyErr_Occurred()) SWIG_fail; | |
22484 | } | |
22485 | Py_INCREF(Py_None); resultobj = Py_None; | |
22486 | return resultobj; | |
22487 | fail: | |
22488 | return NULL; | |
22489 | } | |
22490 | ||
22491 | ||
22492 | static PyObject *_wrap_ListCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22493 | PyObject *resultobj; | |
22494 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22495 | wxImageList *arg2 = (wxImageList *) 0 ; | |
22496 | int arg3 ; | |
22497 | PyObject * obj0 = 0 ; | |
22498 | PyObject * obj1 = 0 ; | |
994141e6 | 22499 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
22500 | char *kwnames[] = { |
22501 | (char *) "self",(char *) "imageList",(char *) "which", NULL | |
22502 | }; | |
22503 | ||
994141e6 | 22504 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_AssignImageList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22505 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22506 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22507 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
22508 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
22509 | arg3 = (int) SWIG_AsInt(obj2); | |
22510 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22511 | { |
22512 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22513 | (arg1)->AssignImageList(arg2,arg3); | |
22514 | ||
22515 | wxPyEndAllowThreads(__tstate); | |
22516 | if (PyErr_Occurred()) SWIG_fail; | |
22517 | } | |
22518 | Py_INCREF(Py_None); resultobj = Py_None; | |
22519 | return resultobj; | |
22520 | fail: | |
22521 | return NULL; | |
22522 | } | |
22523 | ||
22524 | ||
4276dc52 RD |
22525 | static PyObject *_wrap_ListCtrl_InReportView(PyObject *self, PyObject *args, PyObject *kwargs) { |
22526 | PyObject *resultobj; | |
22527 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22528 | bool result; | |
22529 | PyObject * obj0 = 0 ; | |
22530 | char *kwnames[] = { | |
22531 | (char *) "self", NULL | |
22532 | }; | |
22533 | ||
22534 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_InReportView",kwnames,&obj0)) goto fail; | |
22535 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, | |
22536 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22537 | { | |
22538 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22539 | result = (bool)((wxPyListCtrl const *)arg1)->InReportView(); | |
22540 | ||
22541 | wxPyEndAllowThreads(__tstate); | |
22542 | if (PyErr_Occurred()) SWIG_fail; | |
22543 | } | |
4f89f6a3 RD |
22544 | { |
22545 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22546 | } | |
4276dc52 RD |
22547 | return resultobj; |
22548 | fail: | |
22549 | return NULL; | |
22550 | } | |
22551 | ||
22552 | ||
d14a1e28 RD |
22553 | static PyObject *_wrap_ListCtrl_IsVirtual(PyObject *self, PyObject *args, PyObject *kwargs) { |
22554 | PyObject *resultobj; | |
22555 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22556 | bool result; | |
22557 | PyObject * obj0 = 0 ; | |
22558 | char *kwnames[] = { | |
22559 | (char *) "self", NULL | |
22560 | }; | |
22561 | ||
22562 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_IsVirtual",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22563 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22564 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22565 | { |
22566 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22567 | result = (bool)((wxPyListCtrl const *)arg1)->IsVirtual(); | |
22568 | ||
22569 | wxPyEndAllowThreads(__tstate); | |
22570 | if (PyErr_Occurred()) SWIG_fail; | |
22571 | } | |
4f89f6a3 RD |
22572 | { |
22573 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22574 | } | |
d14a1e28 RD |
22575 | return resultobj; |
22576 | fail: | |
22577 | return NULL; | |
22578 | } | |
22579 | ||
22580 | ||
22581 | static PyObject *_wrap_ListCtrl_RefreshItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22582 | PyObject *resultobj; | |
22583 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22584 | long arg2 ; | |
22585 | PyObject * obj0 = 0 ; | |
994141e6 | 22586 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22587 | char *kwnames[] = { |
22588 | (char *) "self",(char *) "item", NULL | |
22589 | }; | |
22590 | ||
994141e6 | 22591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_RefreshItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22594 | arg2 = (long) SWIG_AsLong(obj1); | |
22595 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22596 | { |
22597 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22598 | (arg1)->RefreshItem(arg2); | |
22599 | ||
22600 | wxPyEndAllowThreads(__tstate); | |
22601 | if (PyErr_Occurred()) SWIG_fail; | |
22602 | } | |
22603 | Py_INCREF(Py_None); resultobj = Py_None; | |
22604 | return resultobj; | |
22605 | fail: | |
22606 | return NULL; | |
22607 | } | |
22608 | ||
22609 | ||
22610 | static PyObject *_wrap_ListCtrl_RefreshItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22611 | PyObject *resultobj; | |
22612 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22613 | long arg2 ; | |
22614 | long arg3 ; | |
22615 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22616 | PyObject * obj1 = 0 ; |
22617 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22618 | char *kwnames[] = { |
22619 | (char *) "self",(char *) "itemFrom",(char *) "itemTo", NULL | |
22620 | }; | |
22621 | ||
994141e6 | 22622 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_RefreshItems",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22623 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22624 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22625 | arg2 = (long) SWIG_AsLong(obj1); | |
22626 | if (PyErr_Occurred()) SWIG_fail; | |
22627 | arg3 = (long) SWIG_AsLong(obj2); | |
22628 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22629 | { |
22630 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22631 | (arg1)->RefreshItems(arg2,arg3); | |
22632 | ||
22633 | wxPyEndAllowThreads(__tstate); | |
22634 | if (PyErr_Occurred()) SWIG_fail; | |
22635 | } | |
22636 | Py_INCREF(Py_None); resultobj = Py_None; | |
22637 | return resultobj; | |
22638 | fail: | |
22639 | return NULL; | |
22640 | } | |
22641 | ||
22642 | ||
22643 | static PyObject *_wrap_ListCtrl_Arrange(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22644 | PyObject *resultobj; | |
22645 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22646 | int arg2 = (int) wxLIST_ALIGN_DEFAULT ; | |
22647 | bool result; | |
22648 | PyObject * obj0 = 0 ; | |
994141e6 | 22649 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22650 | char *kwnames[] = { |
22651 | (char *) "self",(char *) "flag", NULL | |
22652 | }; | |
22653 | ||
994141e6 | 22654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ListCtrl_Arrange",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 22657 | if (obj1) { |
15afbcd0 RD |
22658 | arg2 = (int) SWIG_AsInt(obj1); |
22659 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 22660 | } |
d14a1e28 RD |
22661 | { |
22662 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22663 | result = (bool)(arg1)->Arrange(arg2); | |
22664 | ||
22665 | wxPyEndAllowThreads(__tstate); | |
22666 | if (PyErr_Occurred()) SWIG_fail; | |
22667 | } | |
4f89f6a3 RD |
22668 | { |
22669 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22670 | } | |
d14a1e28 RD |
22671 | return resultobj; |
22672 | fail: | |
22673 | return NULL; | |
22674 | } | |
22675 | ||
22676 | ||
22677 | static PyObject *_wrap_ListCtrl_DeleteItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22678 | PyObject *resultobj; | |
22679 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22680 | long arg2 ; | |
22681 | bool result; | |
22682 | PyObject * obj0 = 0 ; | |
994141e6 | 22683 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22684 | char *kwnames[] = { |
22685 | (char *) "self",(char *) "item", NULL | |
22686 | }; | |
22687 | ||
994141e6 | 22688 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22689 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22690 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22691 | arg2 = (long) SWIG_AsLong(obj1); | |
22692 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22693 | { |
22694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22695 | result = (bool)(arg1)->DeleteItem(arg2); | |
22696 | ||
22697 | wxPyEndAllowThreads(__tstate); | |
22698 | if (PyErr_Occurred()) SWIG_fail; | |
22699 | } | |
4f89f6a3 RD |
22700 | { |
22701 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22702 | } | |
d14a1e28 RD |
22703 | return resultobj; |
22704 | fail: | |
22705 | return NULL; | |
22706 | } | |
22707 | ||
22708 | ||
22709 | static PyObject *_wrap_ListCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22710 | PyObject *resultobj; | |
22711 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22712 | bool result; | |
22713 | PyObject * obj0 = 0 ; | |
22714 | char *kwnames[] = { | |
22715 | (char *) "self", NULL | |
22716 | }; | |
22717 | ||
22718 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22719 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22720 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22721 | { |
22722 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22723 | result = (bool)(arg1)->DeleteAllItems(); | |
22724 | ||
22725 | wxPyEndAllowThreads(__tstate); | |
22726 | if (PyErr_Occurred()) SWIG_fail; | |
22727 | } | |
4f89f6a3 RD |
22728 | { |
22729 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22730 | } | |
d14a1e28 RD |
22731 | return resultobj; |
22732 | fail: | |
22733 | return NULL; | |
22734 | } | |
22735 | ||
22736 | ||
22737 | static PyObject *_wrap_ListCtrl_DeleteColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22738 | PyObject *resultobj; | |
22739 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22740 | int arg2 ; | |
22741 | bool result; | |
22742 | PyObject * obj0 = 0 ; | |
994141e6 | 22743 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22744 | char *kwnames[] = { |
22745 | (char *) "self",(char *) "col", NULL | |
22746 | }; | |
22747 | ||
994141e6 | 22748 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_DeleteColumn",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22749 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22750 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22751 | arg2 = (int) SWIG_AsInt(obj1); | |
22752 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22753 | { |
22754 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22755 | result = (bool)(arg1)->DeleteColumn(arg2); | |
22756 | ||
22757 | wxPyEndAllowThreads(__tstate); | |
22758 | if (PyErr_Occurred()) SWIG_fail; | |
22759 | } | |
4f89f6a3 RD |
22760 | { |
22761 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22762 | } | |
d14a1e28 RD |
22763 | return resultobj; |
22764 | fail: | |
22765 | return NULL; | |
22766 | } | |
22767 | ||
22768 | ||
22769 | static PyObject *_wrap_ListCtrl_DeleteAllColumns(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22770 | PyObject *resultobj; | |
22771 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22772 | bool result; | |
22773 | PyObject * obj0 = 0 ; | |
22774 | char *kwnames[] = { | |
22775 | (char *) "self", NULL | |
22776 | }; | |
22777 | ||
22778 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_DeleteAllColumns",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22779 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22780 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22781 | { |
22782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22783 | result = (bool)(arg1)->DeleteAllColumns(); | |
22784 | ||
22785 | wxPyEndAllowThreads(__tstate); | |
22786 | if (PyErr_Occurred()) SWIG_fail; | |
22787 | } | |
4f89f6a3 RD |
22788 | { |
22789 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22790 | } | |
d14a1e28 RD |
22791 | return resultobj; |
22792 | fail: | |
22793 | return NULL; | |
22794 | } | |
22795 | ||
22796 | ||
22797 | static PyObject *_wrap_ListCtrl_ClearAll(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22798 | PyObject *resultobj; | |
22799 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22800 | PyObject * obj0 = 0 ; | |
22801 | char *kwnames[] = { | |
22802 | (char *) "self", NULL | |
22803 | }; | |
22804 | ||
22805 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_ClearAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
22806 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22807 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
22808 | { |
22809 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22810 | (arg1)->ClearAll(); | |
22811 | ||
22812 | wxPyEndAllowThreads(__tstate); | |
22813 | if (PyErr_Occurred()) SWIG_fail; | |
22814 | } | |
22815 | Py_INCREF(Py_None); resultobj = Py_None; | |
22816 | return resultobj; | |
22817 | fail: | |
22818 | return NULL; | |
22819 | } | |
22820 | ||
22821 | ||
22822 | static PyObject *_wrap_ListCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22823 | PyObject *resultobj; | |
22824 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22825 | long arg2 ; | |
22826 | PyObject * obj0 = 0 ; | |
994141e6 | 22827 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22828 | char *kwnames[] = { |
22829 | (char *) "self",(char *) "item", NULL | |
22830 | }; | |
22831 | ||
994141e6 | 22832 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22833 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22834 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22835 | arg2 = (long) SWIG_AsLong(obj1); | |
22836 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22837 | { |
22838 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22839 | (arg1)->EditLabel(arg2); | |
22840 | ||
22841 | wxPyEndAllowThreads(__tstate); | |
22842 | if (PyErr_Occurred()) SWIG_fail; | |
22843 | } | |
22844 | Py_INCREF(Py_None); resultobj = Py_None; | |
22845 | return resultobj; | |
22846 | fail: | |
22847 | return NULL; | |
22848 | } | |
22849 | ||
22850 | ||
22851 | static PyObject *_wrap_ListCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22852 | PyObject *resultobj; | |
22853 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22854 | long arg2 ; | |
22855 | bool result; | |
22856 | PyObject * obj0 = 0 ; | |
994141e6 | 22857 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22858 | char *kwnames[] = { |
22859 | (char *) "self",(char *) "item", NULL | |
22860 | }; | |
22861 | ||
994141e6 | 22862 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
22863 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22864 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22865 | arg2 = (long) SWIG_AsLong(obj1); | |
22866 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22867 | { |
22868 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22869 | result = (bool)(arg1)->EnsureVisible(arg2); | |
22870 | ||
22871 | wxPyEndAllowThreads(__tstate); | |
22872 | if (PyErr_Occurred()) SWIG_fail; | |
22873 | } | |
4f89f6a3 RD |
22874 | { |
22875 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
22876 | } | |
d14a1e28 RD |
22877 | return resultobj; |
22878 | fail: | |
22879 | return NULL; | |
22880 | } | |
22881 | ||
22882 | ||
22883 | static PyObject *_wrap_ListCtrl_FindItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22884 | PyObject *resultobj; | |
22885 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22886 | long arg2 ; | |
22887 | wxString *arg3 = 0 ; | |
e811c8ce | 22888 | bool arg4 = (bool) False ; |
d14a1e28 | 22889 | long result; |
e811c8ce | 22890 | bool temp3 = False ; |
d14a1e28 | 22891 | PyObject * obj0 = 0 ; |
994141e6 | 22892 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
22893 | PyObject * obj2 = 0 ; |
22894 | PyObject * obj3 = 0 ; | |
22895 | char *kwnames[] = { | |
22896 | (char *) "self",(char *) "start",(char *) "str",(char *) "partial", NULL | |
22897 | }; | |
22898 | ||
994141e6 | 22899 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:ListCtrl_FindItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22900 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22901 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22902 | arg2 = (long) SWIG_AsLong(obj1); | |
22903 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22904 | { |
22905 | arg3 = wxString_in_helper(obj2); | |
22906 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 22907 | temp3 = True; |
d14a1e28 RD |
22908 | } |
22909 | if (obj3) { | |
15afbcd0 RD |
22910 | arg4 = (bool) SWIG_AsBool(obj3); |
22911 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22912 | } |
22913 | { | |
22914 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22915 | result = (long)(arg1)->FindItem(arg2,(wxString const &)*arg3,arg4); | |
22916 | ||
22917 | wxPyEndAllowThreads(__tstate); | |
22918 | if (PyErr_Occurred()) SWIG_fail; | |
22919 | } | |
15afbcd0 | 22920 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22921 | { |
22922 | if (temp3) | |
22923 | delete arg3; | |
22924 | } | |
22925 | return resultobj; | |
22926 | fail: | |
22927 | { | |
22928 | if (temp3) | |
22929 | delete arg3; | |
22930 | } | |
22931 | return NULL; | |
22932 | } | |
22933 | ||
22934 | ||
22935 | static PyObject *_wrap_ListCtrl_FindItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22936 | PyObject *resultobj; | |
22937 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22938 | long arg2 ; | |
22939 | long arg3 ; | |
22940 | long result; | |
22941 | PyObject * obj0 = 0 ; | |
994141e6 RD |
22942 | PyObject * obj1 = 0 ; |
22943 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
22944 | char *kwnames[] = { |
22945 | (char *) "self",(char *) "start",(char *) "data", NULL | |
22946 | }; | |
22947 | ||
994141e6 | 22948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_FindItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
22949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22951 | arg2 = (long) SWIG_AsLong(obj1); | |
22952 | if (PyErr_Occurred()) SWIG_fail; | |
22953 | arg3 = (long) SWIG_AsLong(obj2); | |
22954 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22955 | { |
22956 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22957 | result = (long)(arg1)->FindItem(arg2,arg3); | |
22958 | ||
22959 | wxPyEndAllowThreads(__tstate); | |
22960 | if (PyErr_Occurred()) SWIG_fail; | |
22961 | } | |
15afbcd0 | 22962 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
22963 | return resultobj; |
22964 | fail: | |
22965 | return NULL; | |
22966 | } | |
22967 | ||
22968 | ||
22969 | static PyObject *_wrap_ListCtrl_FindItemAtPos(PyObject *self, PyObject *args, PyObject *kwargs) { | |
22970 | PyObject *resultobj; | |
22971 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
22972 | long arg2 ; | |
22973 | wxPoint *arg3 = 0 ; | |
22974 | int arg4 ; | |
22975 | long result; | |
22976 | wxPoint temp3 ; | |
22977 | PyObject * obj0 = 0 ; | |
994141e6 | 22978 | PyObject * obj1 = 0 ; |
d14a1e28 | 22979 | PyObject * obj2 = 0 ; |
994141e6 | 22980 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
22981 | char *kwnames[] = { |
22982 | (char *) "self",(char *) "start",(char *) "pt",(char *) "direction", NULL | |
22983 | }; | |
22984 | ||
994141e6 | 22985 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_FindItemAtPos",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
22986 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
22987 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
22988 | arg2 = (long) SWIG_AsLong(obj1); | |
22989 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22990 | { |
22991 | arg3 = &temp3; | |
22992 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
22993 | } | |
15afbcd0 RD |
22994 | arg4 = (int) SWIG_AsInt(obj3); |
22995 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
22996 | { |
22997 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22998 | result = (long)(arg1)->FindItem(arg2,(wxPoint const &)*arg3,arg4); | |
22999 | ||
23000 | wxPyEndAllowThreads(__tstate); | |
23001 | if (PyErr_Occurred()) SWIG_fail; | |
23002 | } | |
15afbcd0 | 23003 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23004 | return resultobj; |
23005 | fail: | |
23006 | return NULL; | |
23007 | } | |
23008 | ||
23009 | ||
23010 | static PyObject *_wrap_ListCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23011 | PyObject *resultobj; | |
23012 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23013 | wxPoint *arg2 = 0 ; | |
23014 | int *arg3 = 0 ; | |
23015 | long result; | |
23016 | wxPoint temp2 ; | |
23017 | int temp3 ; | |
23018 | PyObject * obj0 = 0 ; | |
23019 | PyObject * obj1 = 0 ; | |
23020 | char *kwnames[] = { | |
23021 | (char *) "self",(char *) "point", NULL | |
23022 | }; | |
23023 | ||
23024 | arg3 = &temp3; | |
23025 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23026 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23027 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23028 | { |
23029 | arg2 = &temp2; | |
23030 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
23031 | } | |
23032 | { | |
23033 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23034 | result = (long)(arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
23035 | ||
23036 | wxPyEndAllowThreads(__tstate); | |
23037 | if (PyErr_Occurred()) SWIG_fail; | |
23038 | } | |
15afbcd0 | 23039 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23040 | { |
23041 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
23042 | resultobj = t_output_helper(resultobj,o); | |
23043 | } | |
23044 | return resultobj; | |
23045 | fail: | |
23046 | return NULL; | |
23047 | } | |
23048 | ||
23049 | ||
23050 | static PyObject *_wrap_ListCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23051 | PyObject *resultobj; | |
23052 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23053 | wxListItem *arg2 = 0 ; | |
23054 | long result; | |
23055 | PyObject * obj0 = 0 ; | |
23056 | PyObject * obj1 = 0 ; | |
23057 | char *kwnames[] = { | |
23058 | (char *) "self",(char *) "info", NULL | |
23059 | }; | |
23060 | ||
23061 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_InsertItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23062 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23063 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23064 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxListItem, | |
23065 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23066 | SWIG_fail; | |
d14a1e28 | 23067 | if (arg2 == NULL) { |
15afbcd0 RD |
23068 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23069 | SWIG_fail; | |
d14a1e28 RD |
23070 | } |
23071 | { | |
23072 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23073 | result = (long)(arg1)->InsertItem(*arg2); | |
23074 | ||
23075 | wxPyEndAllowThreads(__tstate); | |
23076 | if (PyErr_Occurred()) SWIG_fail; | |
23077 | } | |
15afbcd0 | 23078 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23079 | return resultobj; |
23080 | fail: | |
23081 | return NULL; | |
23082 | } | |
23083 | ||
23084 | ||
23085 | static PyObject *_wrap_ListCtrl_InsertStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23086 | PyObject *resultobj; | |
23087 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23088 | long arg2 ; | |
23089 | wxString *arg3 = 0 ; | |
23090 | long result; | |
e811c8ce | 23091 | bool temp3 = False ; |
d14a1e28 | 23092 | PyObject * obj0 = 0 ; |
994141e6 | 23093 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23094 | PyObject * obj2 = 0 ; |
23095 | char *kwnames[] = { | |
23096 | (char *) "self",(char *) "index",(char *) "label", NULL | |
23097 | }; | |
23098 | ||
994141e6 | 23099 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertStringItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23100 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23101 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23102 | arg2 = (long) SWIG_AsLong(obj1); | |
23103 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23104 | { |
23105 | arg3 = wxString_in_helper(obj2); | |
23106 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23107 | temp3 = True; |
d14a1e28 RD |
23108 | } |
23109 | { | |
23110 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23111 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3); | |
23112 | ||
23113 | wxPyEndAllowThreads(__tstate); | |
23114 | if (PyErr_Occurred()) SWIG_fail; | |
23115 | } | |
15afbcd0 | 23116 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23117 | { |
23118 | if (temp3) | |
23119 | delete arg3; | |
23120 | } | |
23121 | return resultobj; | |
23122 | fail: | |
23123 | { | |
23124 | if (temp3) | |
23125 | delete arg3; | |
23126 | } | |
23127 | return NULL; | |
23128 | } | |
23129 | ||
23130 | ||
23131 | static PyObject *_wrap_ListCtrl_InsertImageItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23132 | PyObject *resultobj; | |
23133 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23134 | long arg2 ; | |
23135 | int arg3 ; | |
23136 | long result; | |
23137 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23138 | PyObject * obj1 = 0 ; |
23139 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23140 | char *kwnames[] = { |
23141 | (char *) "self",(char *) "index",(char *) "imageIndex", NULL | |
23142 | }; | |
23143 | ||
994141e6 | 23144 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertImageItem",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23145 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23146 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23147 | arg2 = (long) SWIG_AsLong(obj1); | |
23148 | if (PyErr_Occurred()) SWIG_fail; | |
23149 | arg3 = (int) SWIG_AsInt(obj2); | |
23150 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23151 | { |
23152 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23153 | result = (long)(arg1)->InsertItem(arg2,arg3); | |
23154 | ||
23155 | wxPyEndAllowThreads(__tstate); | |
23156 | if (PyErr_Occurred()) SWIG_fail; | |
23157 | } | |
15afbcd0 | 23158 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23159 | return resultobj; |
23160 | fail: | |
23161 | return NULL; | |
23162 | } | |
23163 | ||
23164 | ||
23165 | static PyObject *_wrap_ListCtrl_InsertImageStringItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23166 | PyObject *resultobj; | |
23167 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23168 | long arg2 ; | |
23169 | wxString *arg3 = 0 ; | |
23170 | int arg4 ; | |
23171 | long result; | |
e811c8ce | 23172 | bool temp3 = False ; |
d14a1e28 | 23173 | PyObject * obj0 = 0 ; |
994141e6 | 23174 | PyObject * obj1 = 0 ; |
d14a1e28 | 23175 | PyObject * obj2 = 0 ; |
994141e6 | 23176 | PyObject * obj3 = 0 ; |
d14a1e28 RD |
23177 | char *kwnames[] = { |
23178 | (char *) "self",(char *) "index",(char *) "label",(char *) "imageIndex", NULL | |
23179 | }; | |
23180 | ||
994141e6 | 23181 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:ListCtrl_InsertImageStringItem",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
23182 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23183 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23184 | arg2 = (long) SWIG_AsLong(obj1); | |
23185 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23186 | { |
23187 | arg3 = wxString_in_helper(obj2); | |
23188 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23189 | temp3 = True; |
d14a1e28 | 23190 | } |
15afbcd0 RD |
23191 | arg4 = (int) SWIG_AsInt(obj3); |
23192 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23193 | { |
23194 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23195 | result = (long)(arg1)->InsertItem(arg2,(wxString const &)*arg3,arg4); | |
23196 | ||
23197 | wxPyEndAllowThreads(__tstate); | |
23198 | if (PyErr_Occurred()) SWIG_fail; | |
23199 | } | |
15afbcd0 | 23200 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23201 | { |
23202 | if (temp3) | |
23203 | delete arg3; | |
23204 | } | |
23205 | return resultobj; | |
23206 | fail: | |
23207 | { | |
23208 | if (temp3) | |
23209 | delete arg3; | |
23210 | } | |
23211 | return NULL; | |
23212 | } | |
23213 | ||
23214 | ||
23215 | static PyObject *_wrap_ListCtrl_InsertColumnInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23216 | PyObject *resultobj; | |
23217 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23218 | long arg2 ; | |
23219 | wxListItem *arg3 = 0 ; | |
23220 | long result; | |
23221 | PyObject * obj0 = 0 ; | |
994141e6 | 23222 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23223 | PyObject * obj2 = 0 ; |
23224 | char *kwnames[] = { | |
23225 | (char *) "self",(char *) "col",(char *) "info", NULL | |
23226 | }; | |
23227 | ||
994141e6 | 23228 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_InsertColumnInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23229 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23230 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23231 | arg2 = (long) SWIG_AsLong(obj1); | |
23232 | if (PyErr_Occurred()) SWIG_fail; | |
23233 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxListItem, | |
23234 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23235 | SWIG_fail; | |
d14a1e28 | 23236 | if (arg3 == NULL) { |
15afbcd0 RD |
23237 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23238 | SWIG_fail; | |
d14a1e28 RD |
23239 | } |
23240 | { | |
23241 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23242 | result = (long)(arg1)->InsertColumn(arg2,*arg3); | |
23243 | ||
23244 | wxPyEndAllowThreads(__tstate); | |
23245 | if (PyErr_Occurred()) SWIG_fail; | |
23246 | } | |
15afbcd0 | 23247 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23248 | return resultobj; |
23249 | fail: | |
23250 | return NULL; | |
23251 | } | |
23252 | ||
23253 | ||
23254 | static PyObject *_wrap_ListCtrl_InsertColumn(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23255 | PyObject *resultobj; | |
23256 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23257 | long arg2 ; | |
23258 | wxString *arg3 = 0 ; | |
23259 | int arg4 = (int) wxLIST_FORMAT_LEFT ; | |
23260 | int arg5 = (int) -1 ; | |
23261 | long result; | |
e811c8ce | 23262 | bool temp3 = False ; |
d14a1e28 | 23263 | PyObject * obj0 = 0 ; |
994141e6 | 23264 | PyObject * obj1 = 0 ; |
d14a1e28 | 23265 | PyObject * obj2 = 0 ; |
994141e6 RD |
23266 | PyObject * obj3 = 0 ; |
23267 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
23268 | char *kwnames[] = { |
23269 | (char *) "self",(char *) "col",(char *) "heading",(char *) "format",(char *) "width", NULL | |
23270 | }; | |
23271 | ||
994141e6 | 23272 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:ListCtrl_InsertColumn",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
23273 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23274 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23275 | arg2 = (long) SWIG_AsLong(obj1); | |
23276 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23277 | { |
23278 | arg3 = wxString_in_helper(obj2); | |
23279 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 23280 | temp3 = True; |
d14a1e28 | 23281 | } |
994141e6 | 23282 | if (obj3) { |
15afbcd0 RD |
23283 | arg4 = (int) SWIG_AsInt(obj3); |
23284 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
23285 | } |
23286 | if (obj4) { | |
15afbcd0 RD |
23287 | arg5 = (int) SWIG_AsInt(obj4); |
23288 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23289 | } |
d14a1e28 RD |
23290 | { |
23291 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23292 | result = (long)(arg1)->InsertColumn(arg2,(wxString const &)*arg3,arg4,arg5); | |
23293 | ||
23294 | wxPyEndAllowThreads(__tstate); | |
23295 | if (PyErr_Occurred()) SWIG_fail; | |
23296 | } | |
15afbcd0 | 23297 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23298 | { |
23299 | if (temp3) | |
23300 | delete arg3; | |
23301 | } | |
23302 | return resultobj; | |
23303 | fail: | |
23304 | { | |
23305 | if (temp3) | |
23306 | delete arg3; | |
23307 | } | |
23308 | return NULL; | |
23309 | } | |
23310 | ||
23311 | ||
23312 | static PyObject *_wrap_ListCtrl_SetItemCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23313 | PyObject *resultobj; | |
23314 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23315 | long arg2 ; | |
23316 | PyObject * obj0 = 0 ; | |
994141e6 | 23317 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23318 | char *kwnames[] = { |
23319 | (char *) "self",(char *) "count", NULL | |
23320 | }; | |
23321 | ||
994141e6 | 23322 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SetItemCount",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23323 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23324 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23325 | arg2 = (long) SWIG_AsLong(obj1); | |
23326 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23327 | { |
23328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23329 | (arg1)->SetItemCount(arg2); | |
23330 | ||
23331 | wxPyEndAllowThreads(__tstate); | |
23332 | if (PyErr_Occurred()) SWIG_fail; | |
23333 | } | |
23334 | Py_INCREF(Py_None); resultobj = Py_None; | |
23335 | return resultobj; | |
23336 | fail: | |
23337 | return NULL; | |
23338 | } | |
23339 | ||
23340 | ||
23341 | static PyObject *_wrap_ListCtrl_ScrollList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23342 | PyObject *resultobj; | |
23343 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23344 | int arg2 ; | |
23345 | int arg3 ; | |
23346 | bool result; | |
23347 | PyObject * obj0 = 0 ; | |
994141e6 RD |
23348 | PyObject * obj1 = 0 ; |
23349 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
23350 | char *kwnames[] = { |
23351 | (char *) "self",(char *) "dx",(char *) "dy", NULL | |
23352 | }; | |
23353 | ||
994141e6 | 23354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_ScrollList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23357 | arg2 = (int) SWIG_AsInt(obj1); | |
23358 | if (PyErr_Occurred()) SWIG_fail; | |
23359 | arg3 = (int) SWIG_AsInt(obj2); | |
23360 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23361 | { |
23362 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23363 | result = (bool)(arg1)->ScrollList(arg2,arg3); | |
23364 | ||
23365 | wxPyEndAllowThreads(__tstate); | |
23366 | if (PyErr_Occurred()) SWIG_fail; | |
23367 | } | |
4f89f6a3 RD |
23368 | { |
23369 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23370 | } | |
d14a1e28 RD |
23371 | return resultobj; |
23372 | fail: | |
23373 | return NULL; | |
23374 | } | |
23375 | ||
23376 | ||
23377 | static PyObject *_wrap_ListCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23378 | PyObject *resultobj; | |
23379 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23380 | long arg2 ; | |
23381 | wxColour *arg3 = 0 ; | |
23382 | wxColour temp3 ; | |
23383 | PyObject * obj0 = 0 ; | |
994141e6 | 23384 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23385 | PyObject * obj2 = 0 ; |
23386 | char *kwnames[] = { | |
23387 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23388 | }; | |
23389 | ||
994141e6 | 23390 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23391 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23392 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23393 | arg2 = (long) SWIG_AsLong(obj1); | |
23394 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23395 | { |
23396 | arg3 = &temp3; | |
23397 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23398 | } | |
23399 | { | |
23400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23401 | (arg1)->SetItemTextColour(arg2,(wxColour const &)*arg3); | |
23402 | ||
23403 | wxPyEndAllowThreads(__tstate); | |
23404 | if (PyErr_Occurred()) SWIG_fail; | |
23405 | } | |
23406 | Py_INCREF(Py_None); resultobj = Py_None; | |
23407 | return resultobj; | |
23408 | fail: | |
23409 | return NULL; | |
23410 | } | |
23411 | ||
23412 | ||
23413 | static PyObject *_wrap_ListCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23414 | PyObject *resultobj; | |
23415 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23416 | long arg2 ; | |
23417 | wxColour result; | |
23418 | PyObject * obj0 = 0 ; | |
994141e6 | 23419 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23420 | char *kwnames[] = { |
23421 | (char *) "self",(char *) "item", NULL | |
23422 | }; | |
23423 | ||
994141e6 | 23424 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23425 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23426 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23427 | arg2 = (long) SWIG_AsLong(obj1); | |
23428 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23429 | { |
23430 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23431 | result = ((wxPyListCtrl const *)arg1)->GetItemTextColour(arg2); | |
23432 | ||
23433 | wxPyEndAllowThreads(__tstate); | |
23434 | if (PyErr_Occurred()) SWIG_fail; | |
23435 | } | |
23436 | { | |
23437 | wxColour * resultptr; | |
23438 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23439 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23440 | } |
23441 | return resultobj; | |
23442 | fail: | |
23443 | return NULL; | |
23444 | } | |
23445 | ||
23446 | ||
23447 | static PyObject *_wrap_ListCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23448 | PyObject *resultobj; | |
23449 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23450 | long arg2 ; | |
23451 | wxColour *arg3 = 0 ; | |
23452 | wxColour temp3 ; | |
23453 | PyObject * obj0 = 0 ; | |
994141e6 | 23454 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23455 | PyObject * obj2 = 0 ; |
23456 | char *kwnames[] = { | |
23457 | (char *) "self",(char *) "item",(char *) "col", NULL | |
23458 | }; | |
23459 | ||
994141e6 | 23460 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
23461 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23462 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23463 | arg2 = (long) SWIG_AsLong(obj1); | |
23464 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23465 | { |
23466 | arg3 = &temp3; | |
23467 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
23468 | } | |
23469 | { | |
23470 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23471 | (arg1)->SetItemBackgroundColour(arg2,(wxColour const &)*arg3); | |
23472 | ||
23473 | wxPyEndAllowThreads(__tstate); | |
23474 | if (PyErr_Occurred()) SWIG_fail; | |
23475 | } | |
23476 | Py_INCREF(Py_None); resultobj = Py_None; | |
23477 | return resultobj; | |
23478 | fail: | |
23479 | return NULL; | |
23480 | } | |
23481 | ||
23482 | ||
23483 | static PyObject *_wrap_ListCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23484 | PyObject *resultobj; | |
23485 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23486 | long arg2 ; | |
23487 | wxColour result; | |
23488 | PyObject * obj0 = 0 ; | |
994141e6 | 23489 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23490 | char *kwnames[] = { |
23491 | (char *) "self",(char *) "item", NULL | |
23492 | }; | |
23493 | ||
994141e6 | 23494 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23495 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23496 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23497 | arg2 = (long) SWIG_AsLong(obj1); | |
23498 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23499 | { |
23500 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23501 | result = ((wxPyListCtrl const *)arg1)->GetItemBackgroundColour(arg2); | |
23502 | ||
23503 | wxPyEndAllowThreads(__tstate); | |
23504 | if (PyErr_Occurred()) SWIG_fail; | |
23505 | } | |
23506 | { | |
23507 | wxColour * resultptr; | |
23508 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 23509 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
23510 | } |
23511 | return resultobj; | |
23512 | fail: | |
23513 | return NULL; | |
23514 | } | |
23515 | ||
23516 | ||
23517 | static PyObject *_wrap_ListCtrl_SortItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23518 | PyObject *resultobj; | |
23519 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23520 | PyObject *arg2 = (PyObject *) 0 ; | |
23521 | bool result; | |
23522 | PyObject * obj0 = 0 ; | |
23523 | PyObject * obj1 = 0 ; | |
23524 | char *kwnames[] = { | |
23525 | (char *) "self",(char *) "func", NULL | |
23526 | }; | |
23527 | ||
23528 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListCtrl_SortItems",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
23529 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23530 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23531 | arg2 = obj1; |
23532 | { | |
23533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23534 | result = (bool)wxPyListCtrl_SortItems(arg1,arg2); | |
23535 | ||
23536 | wxPyEndAllowThreads(__tstate); | |
23537 | if (PyErr_Occurred()) SWIG_fail; | |
23538 | } | |
4f89f6a3 RD |
23539 | { |
23540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23541 | } | |
d14a1e28 RD |
23542 | return resultobj; |
23543 | fail: | |
23544 | return NULL; | |
23545 | } | |
23546 | ||
23547 | ||
23548 | static PyObject *_wrap_ListCtrl_GetMainWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23549 | PyObject *resultobj; | |
23550 | wxPyListCtrl *arg1 = (wxPyListCtrl *) 0 ; | |
23551 | wxWindow *result; | |
23552 | PyObject * obj0 = 0 ; | |
23553 | char *kwnames[] = { | |
23554 | (char *) "self", NULL | |
23555 | }; | |
23556 | ||
23557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListCtrl_GetMainWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
23559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23560 | { |
23561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23562 | result = (wxWindow *)wxPyListCtrl_GetMainWindow(arg1); | |
23563 | ||
23564 | wxPyEndAllowThreads(__tstate); | |
23565 | if (PyErr_Occurred()) SWIG_fail; | |
23566 | } | |
23567 | { | |
412d302d | 23568 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
23569 | } |
23570 | return resultobj; | |
23571 | fail: | |
23572 | return NULL; | |
23573 | } | |
23574 | ||
23575 | ||
74a57fcd RD |
23576 | static PyObject *_wrap_ListCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
23577 | PyObject *resultobj; | |
23578 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
23579 | wxVisualAttributes result; | |
23580 | PyObject * obj0 = 0 ; | |
23581 | char *kwnames[] = { | |
23582 | (char *) "variant", NULL | |
23583 | }; | |
23584 | ||
23585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:ListCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
23586 | if (obj0) { | |
23587 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
23588 | if (PyErr_Occurred()) SWIG_fail; | |
23589 | } | |
23590 | { | |
110da5b0 | 23591 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
23592 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23593 | result = wxPyListCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
23594 | ||
23595 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 23596 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
23597 | } |
23598 | { | |
23599 | wxVisualAttributes * resultptr; | |
23600 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
23601 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
23602 | } | |
23603 | return resultobj; | |
23604 | fail: | |
23605 | return NULL; | |
23606 | } | |
23607 | ||
23608 | ||
d14a1e28 RD |
23609 | static PyObject * ListCtrl_swigregister(PyObject *self, PyObject *args) { |
23610 | PyObject *obj; | |
23611 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
23612 | SWIG_TypeClientData(SWIGTYPE_p_wxPyListCtrl, obj); | |
23613 | Py_INCREF(obj); | |
23614 | return Py_BuildValue((char *)""); | |
23615 | } | |
23616 | static PyObject *_wrap_new_ListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23617 | PyObject *resultobj; | |
23618 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 23619 | int arg2 = (int) -1 ; |
d14a1e28 RD |
23620 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
23621 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
23622 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
23623 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
23624 | long arg5 = (long) wxLC_REPORT ; | |
23625 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
23626 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
23627 | wxString const &arg7_defvalue = wxPyListCtrlNameStr ; | |
23628 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
23629 | wxListView *result; | |
23630 | wxPoint temp3 ; | |
23631 | wxSize temp4 ; | |
e811c8ce | 23632 | bool temp7 = False ; |
d14a1e28 | 23633 | PyObject * obj0 = 0 ; |
994141e6 | 23634 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23635 | PyObject * obj2 = 0 ; |
23636 | PyObject * obj3 = 0 ; | |
994141e6 | 23637 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
23638 | PyObject * obj5 = 0 ; |
23639 | PyObject * obj6 = 0 ; | |
23640 | char *kwnames[] = { | |
23641 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23642 | }; | |
23643 | ||
994141e6 | 23644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_ListView",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
23645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
23646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23647 | if (obj1) { |
15afbcd0 RD |
23648 | arg2 = (int) SWIG_AsInt(obj1); |
23649 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23650 | } |
d14a1e28 RD |
23651 | if (obj2) { |
23652 | { | |
23653 | arg3 = &temp3; | |
23654 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
23655 | } | |
23656 | } | |
23657 | if (obj3) { | |
23658 | { | |
23659 | arg4 = &temp4; | |
23660 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
23661 | } | |
23662 | } | |
994141e6 | 23663 | if (obj4) { |
15afbcd0 RD |
23664 | arg5 = (long) SWIG_AsLong(obj4); |
23665 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23666 | } |
d14a1e28 | 23667 | if (obj5) { |
15afbcd0 RD |
23668 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
23669 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23670 | SWIG_fail; | |
d14a1e28 | 23671 | if (arg6 == NULL) { |
15afbcd0 RD |
23672 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23673 | SWIG_fail; | |
d14a1e28 RD |
23674 | } |
23675 | } | |
23676 | if (obj6) { | |
23677 | { | |
23678 | arg7 = wxString_in_helper(obj6); | |
23679 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 23680 | temp7 = True; |
d14a1e28 RD |
23681 | } |
23682 | } | |
23683 | { | |
e3b71cb8 | 23684 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23685 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23686 | result = (wxListView *)new wxListView(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
23687 | ||
23688 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23689 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23690 | } |
15afbcd0 | 23691 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23692 | { |
23693 | if (temp7) | |
23694 | delete arg7; | |
23695 | } | |
23696 | return resultobj; | |
23697 | fail: | |
23698 | { | |
23699 | if (temp7) | |
23700 | delete arg7; | |
23701 | } | |
23702 | return NULL; | |
23703 | } | |
23704 | ||
23705 | ||
23706 | static PyObject *_wrap_new_PreListView(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23707 | PyObject *resultobj; | |
23708 | wxListView *result; | |
23709 | char *kwnames[] = { | |
23710 | NULL | |
23711 | }; | |
23712 | ||
23713 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreListView",kwnames)) goto fail; | |
23714 | { | |
e3b71cb8 | 23715 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
23716 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
23717 | result = (wxListView *)new wxListView(); | |
23718 | ||
23719 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 23720 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 23721 | } |
15afbcd0 | 23722 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxListView, 1); |
d14a1e28 RD |
23723 | return resultobj; |
23724 | fail: | |
23725 | return NULL; | |
23726 | } | |
23727 | ||
23728 | ||
23729 | static PyObject *_wrap_ListView_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23730 | PyObject *resultobj; | |
23731 | wxListView *arg1 = (wxListView *) 0 ; | |
23732 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 23733 | int arg3 = (int) -1 ; |
d14a1e28 RD |
23734 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
23735 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
23736 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
23737 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
23738 | long arg6 = (long) wxLC_REPORT ; | |
23739 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
23740 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
23741 | wxString const &arg8_defvalue = wxPyListCtrlNameStr ; | |
23742 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
23743 | bool result; | |
23744 | wxPoint temp4 ; | |
23745 | wxSize temp5 ; | |
e811c8ce | 23746 | bool temp8 = False ; |
d14a1e28 RD |
23747 | PyObject * obj0 = 0 ; |
23748 | PyObject * obj1 = 0 ; | |
994141e6 | 23749 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
23750 | PyObject * obj3 = 0 ; |
23751 | PyObject * obj4 = 0 ; | |
994141e6 | 23752 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
23753 | PyObject * obj6 = 0 ; |
23754 | PyObject * obj7 = 0 ; | |
23755 | char *kwnames[] = { | |
23756 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
23757 | }; | |
23758 | ||
994141e6 | 23759 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:ListView_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
23760 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23761 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23762 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
23763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 23764 | if (obj2) { |
15afbcd0 RD |
23765 | arg3 = (int) SWIG_AsInt(obj2); |
23766 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23767 | } |
d14a1e28 RD |
23768 | if (obj3) { |
23769 | { | |
23770 | arg4 = &temp4; | |
23771 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
23772 | } | |
23773 | } | |
23774 | if (obj4) { | |
23775 | { | |
23776 | arg5 = &temp5; | |
23777 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
23778 | } | |
23779 | } | |
994141e6 | 23780 | if (obj5) { |
15afbcd0 RD |
23781 | arg6 = (long) SWIG_AsLong(obj5); |
23782 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 23783 | } |
d14a1e28 | 23784 | if (obj6) { |
15afbcd0 RD |
23785 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
23786 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
23787 | SWIG_fail; | |
d14a1e28 | 23788 | if (arg7 == NULL) { |
15afbcd0 RD |
23789 | PyErr_SetString(PyExc_TypeError,"null reference"); |
23790 | SWIG_fail; | |
d14a1e28 RD |
23791 | } |
23792 | } | |
23793 | if (obj7) { | |
23794 | { | |
23795 | arg8 = wxString_in_helper(obj7); | |
23796 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 23797 | temp8 = True; |
d14a1e28 RD |
23798 | } |
23799 | } | |
23800 | { | |
23801 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23802 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
23803 | ||
23804 | wxPyEndAllowThreads(__tstate); | |
23805 | if (PyErr_Occurred()) SWIG_fail; | |
23806 | } | |
4f89f6a3 RD |
23807 | { |
23808 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23809 | } | |
d14a1e28 RD |
23810 | { |
23811 | if (temp8) | |
23812 | delete arg8; | |
23813 | } | |
23814 | return resultobj; | |
23815 | fail: | |
23816 | { | |
23817 | if (temp8) | |
23818 | delete arg8; | |
23819 | } | |
23820 | return NULL; | |
23821 | } | |
23822 | ||
23823 | ||
23824 | static PyObject *_wrap_ListView_Select(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23825 | PyObject *resultobj; | |
23826 | wxListView *arg1 = (wxListView *) 0 ; | |
23827 | long arg2 ; | |
e811c8ce | 23828 | bool arg3 = (bool) True ; |
d14a1e28 | 23829 | PyObject * obj0 = 0 ; |
994141e6 | 23830 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23831 | PyObject * obj2 = 0 ; |
23832 | char *kwnames[] = { | |
23833 | (char *) "self",(char *) "n",(char *) "on", NULL | |
23834 | }; | |
23835 | ||
15afbcd0 RD |
23836 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:ListView_Select",kwnames,&obj0,&obj1,&obj2)) goto fail; |
23837 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, | |
23838 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23839 | arg2 = (long) SWIG_AsLong(obj1); | |
23840 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 | 23841 | if (obj2) { |
15afbcd0 RD |
23842 | arg3 = (bool) SWIG_AsBool(obj2); |
23843 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23844 | } |
23845 | { | |
23846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23847 | (arg1)->Select(arg2,arg3); | |
23848 | ||
23849 | wxPyEndAllowThreads(__tstate); | |
23850 | if (PyErr_Occurred()) SWIG_fail; | |
23851 | } | |
23852 | Py_INCREF(Py_None); resultobj = Py_None; | |
23853 | return resultobj; | |
23854 | fail: | |
23855 | return NULL; | |
23856 | } | |
23857 | ||
23858 | ||
23859 | static PyObject *_wrap_ListView_Focus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23860 | PyObject *resultobj; | |
23861 | wxListView *arg1 = (wxListView *) 0 ; | |
23862 | long arg2 ; | |
23863 | PyObject * obj0 = 0 ; | |
994141e6 | 23864 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23865 | char *kwnames[] = { |
23866 | (char *) "self",(char *) "index", NULL | |
23867 | }; | |
23868 | ||
994141e6 | 23869 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_Focus",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23870 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23871 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23872 | arg2 = (long) SWIG_AsLong(obj1); | |
23873 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23874 | { |
23875 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23876 | (arg1)->Focus(arg2); | |
23877 | ||
23878 | wxPyEndAllowThreads(__tstate); | |
23879 | if (PyErr_Occurred()) SWIG_fail; | |
23880 | } | |
23881 | Py_INCREF(Py_None); resultobj = Py_None; | |
23882 | return resultobj; | |
23883 | fail: | |
23884 | return NULL; | |
23885 | } | |
23886 | ||
23887 | ||
23888 | static PyObject *_wrap_ListView_GetFocusedItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23889 | PyObject *resultobj; | |
23890 | wxListView *arg1 = (wxListView *) 0 ; | |
23891 | long result; | |
23892 | PyObject * obj0 = 0 ; | |
23893 | char *kwnames[] = { | |
23894 | (char *) "self", NULL | |
23895 | }; | |
23896 | ||
23897 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFocusedItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23898 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23900 | { |
23901 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23902 | result = (long)((wxListView const *)arg1)->GetFocusedItem(); | |
23903 | ||
23904 | wxPyEndAllowThreads(__tstate); | |
23905 | if (PyErr_Occurred()) SWIG_fail; | |
23906 | } | |
15afbcd0 | 23907 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23908 | return resultobj; |
23909 | fail: | |
23910 | return NULL; | |
23911 | } | |
23912 | ||
23913 | ||
23914 | static PyObject *_wrap_ListView_GetNextSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23915 | PyObject *resultobj; | |
23916 | wxListView *arg1 = (wxListView *) 0 ; | |
23917 | long arg2 ; | |
23918 | long result; | |
23919 | PyObject * obj0 = 0 ; | |
994141e6 | 23920 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23921 | char *kwnames[] = { |
23922 | (char *) "self",(char *) "item", NULL | |
23923 | }; | |
23924 | ||
994141e6 | 23925 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_GetNextSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23926 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23927 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23928 | arg2 = (long) SWIG_AsLong(obj1); | |
23929 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23930 | { |
23931 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23932 | result = (long)((wxListView const *)arg1)->GetNextSelected(arg2); | |
23933 | ||
23934 | wxPyEndAllowThreads(__tstate); | |
23935 | if (PyErr_Occurred()) SWIG_fail; | |
23936 | } | |
15afbcd0 | 23937 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23938 | return resultobj; |
23939 | fail: | |
23940 | return NULL; | |
23941 | } | |
23942 | ||
23943 | ||
23944 | static PyObject *_wrap_ListView_GetFirstSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23945 | PyObject *resultobj; | |
23946 | wxListView *arg1 = (wxListView *) 0 ; | |
23947 | long result; | |
23948 | PyObject * obj0 = 0 ; | |
23949 | char *kwnames[] = { | |
23950 | (char *) "self", NULL | |
23951 | }; | |
23952 | ||
23953 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ListView_GetFirstSelected",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
23954 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23955 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
23956 | { |
23957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23958 | result = (long)((wxListView const *)arg1)->GetFirstSelected(); | |
23959 | ||
23960 | wxPyEndAllowThreads(__tstate); | |
23961 | if (PyErr_Occurred()) SWIG_fail; | |
23962 | } | |
15afbcd0 | 23963 | resultobj = SWIG_FromLong((long)result); |
d14a1e28 RD |
23964 | return resultobj; |
23965 | fail: | |
23966 | return NULL; | |
23967 | } | |
23968 | ||
23969 | ||
23970 | static PyObject *_wrap_ListView_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
23971 | PyObject *resultobj; | |
23972 | wxListView *arg1 = (wxListView *) 0 ; | |
23973 | long arg2 ; | |
23974 | bool result; | |
23975 | PyObject * obj0 = 0 ; | |
994141e6 | 23976 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
23977 | char *kwnames[] = { |
23978 | (char *) "self",(char *) "index", NULL | |
23979 | }; | |
23980 | ||
994141e6 | 23981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_IsSelected",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
23982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
23983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
23984 | arg2 = (long) SWIG_AsLong(obj1); | |
23985 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
23986 | { |
23987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
23988 | result = (bool)(arg1)->IsSelected(arg2); | |
23989 | ||
23990 | wxPyEndAllowThreads(__tstate); | |
23991 | if (PyErr_Occurred()) SWIG_fail; | |
23992 | } | |
4f89f6a3 RD |
23993 | { |
23994 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
23995 | } | |
d14a1e28 RD |
23996 | return resultobj; |
23997 | fail: | |
23998 | return NULL; | |
23999 | } | |
24000 | ||
24001 | ||
24002 | static PyObject *_wrap_ListView_SetColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24003 | PyObject *resultobj; | |
24004 | wxListView *arg1 = (wxListView *) 0 ; | |
24005 | int arg2 ; | |
24006 | int arg3 ; | |
24007 | PyObject * obj0 = 0 ; | |
994141e6 RD |
24008 | PyObject * obj1 = 0 ; |
24009 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
24010 | char *kwnames[] = { |
24011 | (char *) "self",(char *) "col",(char *) "image", NULL | |
24012 | }; | |
24013 | ||
994141e6 | 24014 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:ListView_SetColumnImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
24015 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24016 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24017 | arg2 = (int) SWIG_AsInt(obj1); | |
24018 | if (PyErr_Occurred()) SWIG_fail; | |
24019 | arg3 = (int) SWIG_AsInt(obj2); | |
24020 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24021 | { |
24022 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24023 | (arg1)->SetColumnImage(arg2,arg3); | |
24024 | ||
24025 | wxPyEndAllowThreads(__tstate); | |
24026 | if (PyErr_Occurred()) SWIG_fail; | |
24027 | } | |
24028 | Py_INCREF(Py_None); resultobj = Py_None; | |
24029 | return resultobj; | |
24030 | fail: | |
24031 | return NULL; | |
24032 | } | |
24033 | ||
24034 | ||
24035 | static PyObject *_wrap_ListView_ClearColumnImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24036 | PyObject *resultobj; | |
24037 | wxListView *arg1 = (wxListView *) 0 ; | |
24038 | int arg2 ; | |
24039 | PyObject * obj0 = 0 ; | |
994141e6 | 24040 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24041 | char *kwnames[] = { |
24042 | (char *) "self",(char *) "col", NULL | |
24043 | }; | |
24044 | ||
994141e6 | 24045 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:ListView_ClearColumnImage",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
24046 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxListView, |
24047 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24048 | arg2 = (int) SWIG_AsInt(obj1); | |
24049 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24050 | { |
24051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24052 | (arg1)->ClearColumnImage(arg2); | |
24053 | ||
24054 | wxPyEndAllowThreads(__tstate); | |
24055 | if (PyErr_Occurred()) SWIG_fail; | |
24056 | } | |
24057 | Py_INCREF(Py_None); resultobj = Py_None; | |
24058 | return resultobj; | |
24059 | fail: | |
24060 | return NULL; | |
24061 | } | |
24062 | ||
24063 | ||
24064 | static PyObject * ListView_swigregister(PyObject *self, PyObject *args) { | |
24065 | PyObject *obj; | |
24066 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24067 | SWIG_TypeClientData(SWIGTYPE_p_wxListView, obj); | |
24068 | Py_INCREF(obj); | |
24069 | return Py_BuildValue((char *)""); | |
24070 | } | |
b2dc1044 RD |
24071 | static int _wrap_TreeCtrlNameStr_set(PyObject *_val) { |
24072 | PyErr_SetString(PyExc_TypeError,"Variable TreeCtrlNameStr is read-only."); | |
24073 | return 1; | |
24074 | } | |
24075 | ||
24076 | ||
24077 | static PyObject *_wrap_TreeCtrlNameStr_get() { | |
24078 | PyObject *pyobj; | |
24079 | ||
24080 | { | |
24081 | #if wxUSE_UNICODE | |
24082 | pyobj = PyUnicode_FromWideChar((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24083 | #else | |
24084 | pyobj = PyString_FromStringAndSize((&wxPyTreeCtrlNameStr)->c_str(), (&wxPyTreeCtrlNameStr)->Len()); | |
24085 | #endif | |
24086 | } | |
24087 | return pyobj; | |
24088 | } | |
24089 | ||
24090 | ||
d14a1e28 RD |
24091 | static PyObject *_wrap_new_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { |
24092 | PyObject *resultobj; | |
24093 | wxTreeItemId *result; | |
24094 | char *kwnames[] = { | |
24095 | NULL | |
24096 | }; | |
24097 | ||
24098 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_TreeItemId",kwnames)) goto fail; | |
24099 | { | |
24100 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24101 | result = (wxTreeItemId *)new wxTreeItemId(); | |
24102 | ||
24103 | wxPyEndAllowThreads(__tstate); | |
24104 | if (PyErr_Occurred()) SWIG_fail; | |
24105 | } | |
15afbcd0 | 24106 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24107 | return resultobj; |
24108 | fail: | |
24109 | return NULL; | |
24110 | } | |
24111 | ||
24112 | ||
24113 | static PyObject *_wrap_delete_TreeItemId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24114 | PyObject *resultobj; | |
24115 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24116 | PyObject * obj0 = 0 ; | |
24117 | char *kwnames[] = { | |
24118 | (char *) "self", NULL | |
24119 | }; | |
24120 | ||
24121 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_TreeItemId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24122 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24123 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24124 | { |
24125 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24126 | delete arg1; | |
24127 | ||
24128 | wxPyEndAllowThreads(__tstate); | |
24129 | if (PyErr_Occurred()) SWIG_fail; | |
24130 | } | |
24131 | Py_INCREF(Py_None); resultobj = Py_None; | |
24132 | return resultobj; | |
24133 | fail: | |
24134 | return NULL; | |
24135 | } | |
24136 | ||
24137 | ||
24138 | static PyObject *_wrap_TreeItemId_IsOk(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24139 | PyObject *resultobj; | |
24140 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24141 | bool result; | |
24142 | PyObject * obj0 = 0 ; | |
24143 | char *kwnames[] = { | |
24144 | (char *) "self", NULL | |
24145 | }; | |
24146 | ||
24147 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_IsOk",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24148 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24149 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24150 | { |
24151 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24152 | result = (bool)((wxTreeItemId const *)arg1)->IsOk(); | |
24153 | ||
24154 | wxPyEndAllowThreads(__tstate); | |
24155 | if (PyErr_Occurred()) SWIG_fail; | |
24156 | } | |
4f89f6a3 RD |
24157 | { |
24158 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24159 | } | |
d14a1e28 RD |
24160 | return resultobj; |
24161 | fail: | |
24162 | return NULL; | |
24163 | } | |
24164 | ||
24165 | ||
24166 | static PyObject *_wrap_TreeItemId___eq__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24167 | PyObject *resultobj; | |
24168 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24169 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24170 | bool result; | |
24171 | PyObject * obj0 = 0 ; | |
24172 | PyObject * obj1 = 0 ; | |
24173 | char *kwnames[] = { | |
24174 | (char *) "self",(char *) "other", NULL | |
24175 | }; | |
24176 | ||
24177 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___eq__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24178 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24179 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24180 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24181 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24182 | { |
24183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24184 | result = (bool)wxTreeItemId___eq__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24185 | |
24186 | wxPyEndAllowThreads(__tstate); | |
24187 | if (PyErr_Occurred()) SWIG_fail; | |
24188 | } | |
4f89f6a3 RD |
24189 | { |
24190 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24191 | } | |
d14a1e28 RD |
24192 | return resultobj; |
24193 | fail: | |
24194 | return NULL; | |
24195 | } | |
24196 | ||
24197 | ||
24198 | static PyObject *_wrap_TreeItemId___ne__(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24199 | PyObject *resultobj; | |
24200 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
24201 | wxTreeItemId *arg2 = (wxTreeItemId *) 0 ; | |
24202 | bool result; | |
24203 | PyObject * obj0 = 0 ; | |
24204 | PyObject * obj1 = 0 ; | |
24205 | char *kwnames[] = { | |
24206 | (char *) "self",(char *) "other", NULL | |
24207 | }; | |
24208 | ||
24209 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId___ne__",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24210 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24211 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24212 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24213 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24214 | { |
24215 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
22faec7d | 24216 | result = (bool)wxTreeItemId___ne__(arg1,(wxTreeItemId const *)arg2); |
d14a1e28 RD |
24217 | |
24218 | wxPyEndAllowThreads(__tstate); | |
24219 | if (PyErr_Occurred()) SWIG_fail; | |
24220 | } | |
4f89f6a3 RD |
24221 | { |
24222 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24223 | } | |
d14a1e28 RD |
24224 | return resultobj; |
24225 | fail: | |
24226 | return NULL; | |
24227 | } | |
24228 | ||
24229 | ||
24230 | static PyObject *_wrap_TreeItemId_m_pItem_set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24231 | PyObject *resultobj; | |
24232 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24233 | void *arg2 = (void *) 0 ; |
d14a1e28 RD |
24234 | PyObject * obj0 = 0 ; |
24235 | PyObject * obj1 = 0 ; | |
24236 | char *kwnames[] = { | |
24237 | (char *) "self",(char *) "m_pItem", NULL | |
24238 | }; | |
24239 | ||
24240 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemId_m_pItem_set",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24241 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24242 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24243 | if ((SWIG_ConvertPtr(obj1,&arg2,0,SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
24244 | if (arg1) (arg1)->m_pItem = arg2; |
24245 | ||
24246 | Py_INCREF(Py_None); resultobj = Py_None; | |
24247 | return resultobj; | |
24248 | fail: | |
24249 | return NULL; | |
24250 | } | |
24251 | ||
24252 | ||
24253 | static PyObject *_wrap_TreeItemId_m_pItem_get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24254 | PyObject *resultobj; | |
24255 | wxTreeItemId *arg1 = (wxTreeItemId *) 0 ; | |
58203fa6 | 24256 | void *result; |
d14a1e28 RD |
24257 | PyObject * obj0 = 0 ; |
24258 | char *kwnames[] = { | |
24259 | (char *) "self", NULL | |
24260 | }; | |
24261 | ||
24262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemId_m_pItem_get",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeItemId, |
24264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
58203fa6 | 24265 | result = (void *) ((arg1)->m_pItem); |
d14a1e28 | 24266 | |
15afbcd0 | 24267 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_void, 0); |
d14a1e28 RD |
24268 | return resultobj; |
24269 | fail: | |
24270 | return NULL; | |
24271 | } | |
24272 | ||
24273 | ||
24274 | static PyObject * TreeItemId_swigregister(PyObject *self, PyObject *args) { | |
24275 | PyObject *obj; | |
24276 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24277 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeItemId, obj); | |
24278 | Py_INCREF(obj); | |
24279 | return Py_BuildValue((char *)""); | |
24280 | } | |
24281 | static PyObject *_wrap_new_TreeItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24282 | PyObject *resultobj; | |
24283 | PyObject *arg1 = (PyObject *) NULL ; | |
24284 | wxPyTreeItemData *result; | |
24285 | PyObject * obj0 = 0 ; | |
24286 | char *kwnames[] = { | |
24287 | (char *) "obj", NULL | |
24288 | }; | |
24289 | ||
24290 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:new_TreeItemData",kwnames,&obj0)) goto fail; | |
24291 | if (obj0) { | |
24292 | arg1 = obj0; | |
24293 | } | |
24294 | { | |
24295 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24296 | result = (wxPyTreeItemData *)new wxPyTreeItemData(arg1); | |
24297 | ||
24298 | wxPyEndAllowThreads(__tstate); | |
24299 | if (PyErr_Occurred()) SWIG_fail; | |
24300 | } | |
15afbcd0 | 24301 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 1); |
d14a1e28 RD |
24302 | return resultobj; |
24303 | fail: | |
24304 | return NULL; | |
24305 | } | |
24306 | ||
24307 | ||
24308 | static PyObject *_wrap_TreeItemData_GetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24309 | PyObject *resultobj; | |
24310 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24311 | PyObject *result; | |
24312 | PyObject * obj0 = 0 ; | |
24313 | char *kwnames[] = { | |
24314 | (char *) "self", NULL | |
24315 | }; | |
24316 | ||
24317 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetData",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24318 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24319 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24320 | { |
24321 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24322 | result = (PyObject *)(arg1)->GetData(); | |
24323 | ||
24324 | wxPyEndAllowThreads(__tstate); | |
24325 | if (PyErr_Occurred()) SWIG_fail; | |
24326 | } | |
24327 | resultobj = result; | |
24328 | return resultobj; | |
24329 | fail: | |
24330 | return NULL; | |
24331 | } | |
24332 | ||
24333 | ||
24334 | static PyObject *_wrap_TreeItemData_SetData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24335 | PyObject *resultobj; | |
24336 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24337 | PyObject *arg2 = (PyObject *) 0 ; | |
24338 | PyObject * obj0 = 0 ; | |
24339 | PyObject * obj1 = 0 ; | |
24340 | char *kwnames[] = { | |
24341 | (char *) "self",(char *) "obj", NULL | |
24342 | }; | |
24343 | ||
24344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24347 | arg2 = obj1; |
24348 | { | |
24349 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24350 | (arg1)->SetData(arg2); | |
24351 | ||
24352 | wxPyEndAllowThreads(__tstate); | |
24353 | if (PyErr_Occurred()) SWIG_fail; | |
24354 | } | |
24355 | Py_INCREF(Py_None); resultobj = Py_None; | |
24356 | return resultobj; | |
24357 | fail: | |
24358 | return NULL; | |
24359 | } | |
24360 | ||
24361 | ||
24362 | static PyObject *_wrap_TreeItemData_GetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24363 | PyObject *resultobj; | |
24364 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24365 | wxTreeItemId *result; | |
24366 | PyObject * obj0 = 0 ; | |
24367 | char *kwnames[] = { | |
24368 | (char *) "self", NULL | |
24369 | }; | |
24370 | ||
24371 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_GetId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24372 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24373 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24374 | { |
24375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24376 | { | |
24377 | wxTreeItemId const &_result_ref = (arg1)->GetId(); | |
24378 | result = (wxTreeItemId *) &_result_ref; | |
24379 | } | |
24380 | ||
24381 | wxPyEndAllowThreads(__tstate); | |
24382 | if (PyErr_Occurred()) SWIG_fail; | |
24383 | } | |
15afbcd0 | 24384 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeItemId, 0); |
d14a1e28 RD |
24385 | return resultobj; |
24386 | fail: | |
24387 | return NULL; | |
24388 | } | |
24389 | ||
24390 | ||
24391 | static PyObject *_wrap_TreeItemData_SetId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24392 | PyObject *resultobj; | |
24393 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24394 | wxTreeItemId *arg2 = 0 ; | |
24395 | PyObject * obj0 = 0 ; | |
24396 | PyObject * obj1 = 0 ; | |
24397 | char *kwnames[] = { | |
24398 | (char *) "self",(char *) "id", NULL | |
24399 | }; | |
24400 | ||
24401 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeItemData_SetId",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24402 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24403 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24404 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24405 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24406 | SWIG_fail; | |
d14a1e28 | 24407 | if (arg2 == NULL) { |
15afbcd0 RD |
24408 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24409 | SWIG_fail; | |
d14a1e28 RD |
24410 | } |
24411 | { | |
24412 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24413 | (arg1)->SetId((wxTreeItemId const &)*arg2); | |
24414 | ||
24415 | wxPyEndAllowThreads(__tstate); | |
24416 | if (PyErr_Occurred()) SWIG_fail; | |
24417 | } | |
24418 | Py_INCREF(Py_None); resultobj = Py_None; | |
24419 | return resultobj; | |
24420 | fail: | |
24421 | return NULL; | |
24422 | } | |
24423 | ||
24424 | ||
24425 | static PyObject *_wrap_TreeItemData_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24426 | PyObject *resultobj; | |
24427 | wxPyTreeItemData *arg1 = (wxPyTreeItemData *) 0 ; | |
24428 | PyObject * obj0 = 0 ; | |
24429 | char *kwnames[] = { | |
24430 | (char *) "self", NULL | |
24431 | }; | |
24432 | ||
24433 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeItemData_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24434 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeItemData, |
24435 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24436 | { |
24437 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24438 | wxPyTreeItemData_Destroy(arg1); | |
24439 | ||
24440 | wxPyEndAllowThreads(__tstate); | |
24441 | if (PyErr_Occurred()) SWIG_fail; | |
24442 | } | |
24443 | Py_INCREF(Py_None); resultobj = Py_None; | |
24444 | return resultobj; | |
24445 | fail: | |
24446 | return NULL; | |
24447 | } | |
24448 | ||
24449 | ||
24450 | static PyObject * TreeItemData_swigregister(PyObject *self, PyObject *args) { | |
24451 | PyObject *obj; | |
24452 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24453 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeItemData, obj); | |
24454 | Py_INCREF(obj); | |
24455 | return Py_BuildValue((char *)""); | |
24456 | } | |
24457 | static PyObject *_wrap_new_TreeEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24458 | PyObject *resultobj; | |
24459 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
24460 | int arg2 = (int) 0 ; | |
24461 | wxTreeEvent *result; | |
994141e6 RD |
24462 | PyObject * obj0 = 0 ; |
24463 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
24464 | char *kwnames[] = { |
24465 | (char *) "commandType",(char *) "id", NULL | |
24466 | }; | |
24467 | ||
994141e6 RD |
24468 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_TreeEvent",kwnames,&obj0,&obj1)) goto fail; |
24469 | if (obj0) { | |
15afbcd0 RD |
24470 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
24471 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
24472 | } |
24473 | if (obj1) { | |
15afbcd0 RD |
24474 | arg2 = (int) SWIG_AsInt(obj1); |
24475 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24476 | } |
d14a1e28 RD |
24477 | { |
24478 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24479 | result = (wxTreeEvent *)new wxTreeEvent(arg1,arg2); | |
24480 | ||
24481 | wxPyEndAllowThreads(__tstate); | |
24482 | if (PyErr_Occurred()) SWIG_fail; | |
24483 | } | |
15afbcd0 | 24484 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxTreeEvent, 1); |
d14a1e28 RD |
24485 | return resultobj; |
24486 | fail: | |
24487 | return NULL; | |
24488 | } | |
24489 | ||
24490 | ||
24491 | static PyObject *_wrap_TreeEvent_GetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24492 | PyObject *resultobj; | |
24493 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24494 | wxTreeItemId result; | |
24495 | PyObject * obj0 = 0 ; | |
24496 | char *kwnames[] = { | |
24497 | (char *) "self", NULL | |
24498 | }; | |
24499 | ||
24500 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24501 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24502 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24503 | { |
24504 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24505 | result = ((wxTreeEvent const *)arg1)->GetItem(); | |
24506 | ||
24507 | wxPyEndAllowThreads(__tstate); | |
24508 | if (PyErr_Occurred()) SWIG_fail; | |
24509 | } | |
24510 | { | |
24511 | wxTreeItemId * resultptr; | |
24512 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24513 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24514 | } |
24515 | return resultobj; | |
24516 | fail: | |
24517 | return NULL; | |
24518 | } | |
24519 | ||
24520 | ||
24521 | static PyObject *_wrap_TreeEvent_SetItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24522 | PyObject *resultobj; | |
24523 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24524 | wxTreeItemId *arg2 = 0 ; | |
24525 | PyObject * obj0 = 0 ; | |
24526 | PyObject * obj1 = 0 ; | |
24527 | char *kwnames[] = { | |
24528 | (char *) "self",(char *) "item", NULL | |
24529 | }; | |
24530 | ||
24531 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24532 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24533 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24534 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24535 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24536 | SWIG_fail; | |
d14a1e28 | 24537 | if (arg2 == NULL) { |
15afbcd0 RD |
24538 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24539 | SWIG_fail; | |
d14a1e28 RD |
24540 | } |
24541 | { | |
24542 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24543 | (arg1)->SetItem((wxTreeItemId const &)*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_TreeEvent_GetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24556 | PyObject *resultobj; | |
24557 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24558 | wxTreeItemId result; | |
24559 | PyObject * obj0 = 0 ; | |
24560 | char *kwnames[] = { | |
24561 | (char *) "self", NULL | |
24562 | }; | |
24563 | ||
24564 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetOldItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24565 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24566 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24567 | { |
24568 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24569 | result = ((wxTreeEvent const *)arg1)->GetOldItem(); | |
24570 | ||
24571 | wxPyEndAllowThreads(__tstate); | |
24572 | if (PyErr_Occurred()) SWIG_fail; | |
24573 | } | |
24574 | { | |
24575 | wxTreeItemId * resultptr; | |
24576 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 24577 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
24578 | } |
24579 | return resultobj; | |
24580 | fail: | |
24581 | return NULL; | |
24582 | } | |
24583 | ||
24584 | ||
24585 | static PyObject *_wrap_TreeEvent_SetOldItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24586 | PyObject *resultobj; | |
24587 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24588 | wxTreeItemId *arg2 = 0 ; | |
24589 | PyObject * obj0 = 0 ; | |
24590 | PyObject * obj1 = 0 ; | |
24591 | char *kwnames[] = { | |
24592 | (char *) "self",(char *) "item", NULL | |
24593 | }; | |
24594 | ||
24595 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetOldItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24596 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24597 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24598 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
24599 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24600 | SWIG_fail; | |
d14a1e28 | 24601 | if (arg2 == NULL) { |
15afbcd0 RD |
24602 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24603 | SWIG_fail; | |
d14a1e28 RD |
24604 | } |
24605 | { | |
24606 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24607 | (arg1)->SetOldItem((wxTreeItemId const &)*arg2); | |
24608 | ||
24609 | wxPyEndAllowThreads(__tstate); | |
24610 | if (PyErr_Occurred()) SWIG_fail; | |
24611 | } | |
24612 | Py_INCREF(Py_None); resultobj = Py_None; | |
24613 | return resultobj; | |
24614 | fail: | |
24615 | return NULL; | |
24616 | } | |
24617 | ||
24618 | ||
24619 | static PyObject *_wrap_TreeEvent_GetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24620 | PyObject *resultobj; | |
24621 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24622 | wxPoint result; | |
24623 | PyObject * obj0 = 0 ; | |
24624 | char *kwnames[] = { | |
24625 | (char *) "self", NULL | |
24626 | }; | |
24627 | ||
24628 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetPoint",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24629 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24630 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24631 | { |
24632 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24633 | result = ((wxTreeEvent const *)arg1)->GetPoint(); | |
24634 | ||
24635 | wxPyEndAllowThreads(__tstate); | |
24636 | if (PyErr_Occurred()) SWIG_fail; | |
24637 | } | |
24638 | { | |
24639 | wxPoint * resultptr; | |
24640 | resultptr = new wxPoint((wxPoint &) result); | |
15afbcd0 | 24641 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); |
d14a1e28 RD |
24642 | } |
24643 | return resultobj; | |
24644 | fail: | |
24645 | return NULL; | |
24646 | } | |
24647 | ||
24648 | ||
24649 | static PyObject *_wrap_TreeEvent_SetPoint(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24650 | PyObject *resultobj; | |
24651 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24652 | wxPoint *arg2 = 0 ; | |
24653 | wxPoint temp2 ; | |
24654 | PyObject * obj0 = 0 ; | |
24655 | PyObject * obj1 = 0 ; | |
24656 | char *kwnames[] = { | |
24657 | (char *) "self",(char *) "pt", NULL | |
24658 | }; | |
24659 | ||
24660 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetPoint",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24661 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24662 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24663 | { |
24664 | arg2 = &temp2; | |
24665 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
24666 | } | |
24667 | { | |
24668 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24669 | (arg1)->SetPoint((wxPoint const &)*arg2); | |
24670 | ||
24671 | wxPyEndAllowThreads(__tstate); | |
24672 | if (PyErr_Occurred()) SWIG_fail; | |
24673 | } | |
24674 | Py_INCREF(Py_None); resultobj = Py_None; | |
24675 | return resultobj; | |
24676 | fail: | |
24677 | return NULL; | |
24678 | } | |
24679 | ||
24680 | ||
24681 | static PyObject *_wrap_TreeEvent_GetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24682 | PyObject *resultobj; | |
24683 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24684 | wxKeyEvent *result; | |
24685 | PyObject * obj0 = 0 ; | |
24686 | char *kwnames[] = { | |
24687 | (char *) "self", NULL | |
24688 | }; | |
24689 | ||
24690 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyEvent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24691 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24692 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24693 | { |
24694 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24695 | { | |
24696 | wxKeyEvent const &_result_ref = ((wxTreeEvent const *)arg1)->GetKeyEvent(); | |
24697 | result = (wxKeyEvent *) &_result_ref; | |
24698 | } | |
24699 | ||
24700 | wxPyEndAllowThreads(__tstate); | |
24701 | if (PyErr_Occurred()) SWIG_fail; | |
24702 | } | |
15afbcd0 | 24703 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxKeyEvent, 0); |
d14a1e28 RD |
24704 | return resultobj; |
24705 | fail: | |
24706 | return NULL; | |
24707 | } | |
24708 | ||
24709 | ||
24710 | static PyObject *_wrap_TreeEvent_GetKeyCode(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24711 | PyObject *resultobj; | |
24712 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24713 | int result; | |
24714 | PyObject * obj0 = 0 ; | |
24715 | char *kwnames[] = { | |
24716 | (char *) "self", NULL | |
24717 | }; | |
24718 | ||
24719 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetKeyCode",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24720 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24721 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24722 | { |
24723 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24724 | result = (int)((wxTreeEvent const *)arg1)->GetKeyCode(); | |
24725 | ||
24726 | wxPyEndAllowThreads(__tstate); | |
24727 | if (PyErr_Occurred()) SWIG_fail; | |
24728 | } | |
15afbcd0 | 24729 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
24730 | return resultobj; |
24731 | fail: | |
24732 | return NULL; | |
24733 | } | |
24734 | ||
24735 | ||
24736 | static PyObject *_wrap_TreeEvent_SetKeyEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24737 | PyObject *resultobj; | |
24738 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24739 | wxKeyEvent *arg2 = 0 ; | |
24740 | PyObject * obj0 = 0 ; | |
24741 | PyObject * obj1 = 0 ; | |
24742 | char *kwnames[] = { | |
24743 | (char *) "self",(char *) "evt", NULL | |
24744 | }; | |
24745 | ||
24746 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetKeyEvent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24747 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24748 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24749 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxKeyEvent, | |
24750 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
24751 | SWIG_fail; | |
d14a1e28 | 24752 | if (arg2 == NULL) { |
15afbcd0 RD |
24753 | PyErr_SetString(PyExc_TypeError,"null reference"); |
24754 | SWIG_fail; | |
d14a1e28 RD |
24755 | } |
24756 | { | |
24757 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24758 | (arg1)->SetKeyEvent((wxKeyEvent const &)*arg2); | |
24759 | ||
24760 | wxPyEndAllowThreads(__tstate); | |
24761 | if (PyErr_Occurred()) SWIG_fail; | |
24762 | } | |
24763 | Py_INCREF(Py_None); resultobj = Py_None; | |
24764 | return resultobj; | |
24765 | fail: | |
24766 | return NULL; | |
24767 | } | |
24768 | ||
24769 | ||
24770 | static PyObject *_wrap_TreeEvent_GetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24771 | PyObject *resultobj; | |
24772 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24773 | wxString *result; | |
24774 | PyObject * obj0 = 0 ; | |
24775 | char *kwnames[] = { | |
24776 | (char *) "self", NULL | |
24777 | }; | |
24778 | ||
24779 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_GetLabel",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24780 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24781 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24782 | { |
24783 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24784 | { | |
24785 | wxString const &_result_ref = ((wxTreeEvent const *)arg1)->GetLabel(); | |
24786 | result = (wxString *) &_result_ref; | |
24787 | } | |
24788 | ||
24789 | wxPyEndAllowThreads(__tstate); | |
24790 | if (PyErr_Occurred()) SWIG_fail; | |
24791 | } | |
cc6dd355 RD |
24792 | { |
24793 | #if wxUSE_UNICODE | |
24794 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
24795 | #else | |
24796 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
24797 | #endif | |
24798 | } | |
d14a1e28 RD |
24799 | return resultobj; |
24800 | fail: | |
24801 | return NULL; | |
24802 | } | |
24803 | ||
24804 | ||
24805 | static PyObject *_wrap_TreeEvent_SetLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24806 | PyObject *resultobj; | |
24807 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24808 | wxString *arg2 = 0 ; | |
e811c8ce | 24809 | bool temp2 = False ; |
d14a1e28 RD |
24810 | PyObject * obj0 = 0 ; |
24811 | PyObject * obj1 = 0 ; | |
24812 | char *kwnames[] = { | |
24813 | (char *) "self",(char *) "label", NULL | |
24814 | }; | |
24815 | ||
24816 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24817 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24818 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24819 | { |
24820 | arg2 = wxString_in_helper(obj1); | |
24821 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 24822 | temp2 = True; |
d14a1e28 RD |
24823 | } |
24824 | { | |
24825 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24826 | (arg1)->SetLabel((wxString const &)*arg2); | |
24827 | ||
24828 | wxPyEndAllowThreads(__tstate); | |
24829 | if (PyErr_Occurred()) SWIG_fail; | |
24830 | } | |
24831 | Py_INCREF(Py_None); resultobj = Py_None; | |
24832 | { | |
24833 | if (temp2) | |
24834 | delete arg2; | |
24835 | } | |
24836 | return resultobj; | |
24837 | fail: | |
24838 | { | |
24839 | if (temp2) | |
24840 | delete arg2; | |
24841 | } | |
24842 | return NULL; | |
24843 | } | |
24844 | ||
24845 | ||
24846 | static PyObject *_wrap_TreeEvent_IsEditCancelled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24847 | PyObject *resultobj; | |
24848 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24849 | bool result; | |
24850 | PyObject * obj0 = 0 ; | |
24851 | char *kwnames[] = { | |
24852 | (char *) "self", NULL | |
24853 | }; | |
24854 | ||
24855 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeEvent_IsEditCancelled",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
24856 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24857 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
24858 | { |
24859 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24860 | result = (bool)((wxTreeEvent const *)arg1)->IsEditCancelled(); | |
24861 | ||
24862 | wxPyEndAllowThreads(__tstate); | |
24863 | if (PyErr_Occurred()) SWIG_fail; | |
24864 | } | |
4f89f6a3 RD |
24865 | { |
24866 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
24867 | } | |
d14a1e28 RD |
24868 | return resultobj; |
24869 | fail: | |
24870 | return NULL; | |
24871 | } | |
24872 | ||
24873 | ||
24874 | static PyObject *_wrap_TreeEvent_SetEditCanceled(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24875 | PyObject *resultobj; | |
24876 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24877 | bool arg2 ; | |
24878 | PyObject * obj0 = 0 ; | |
24879 | PyObject * obj1 = 0 ; | |
24880 | char *kwnames[] = { | |
24881 | (char *) "self",(char *) "editCancelled", NULL | |
24882 | }; | |
24883 | ||
24884 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetEditCanceled",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24885 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24886 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
24887 | arg2 = (bool) SWIG_AsBool(obj1); | |
24888 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
24889 | { |
24890 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24891 | (arg1)->SetEditCanceled(arg2); | |
24892 | ||
24893 | wxPyEndAllowThreads(__tstate); | |
24894 | if (PyErr_Occurred()) SWIG_fail; | |
24895 | } | |
24896 | Py_INCREF(Py_None); resultobj = Py_None; | |
24897 | return resultobj; | |
24898 | fail: | |
24899 | return NULL; | |
24900 | } | |
24901 | ||
24902 | ||
c9c7117a RD |
24903 | static PyObject *_wrap_TreeEvent_SetToolTip(PyObject *self, PyObject *args, PyObject *kwargs) { |
24904 | PyObject *resultobj; | |
24905 | wxTreeEvent *arg1 = (wxTreeEvent *) 0 ; | |
24906 | wxString *arg2 = 0 ; | |
24907 | bool temp2 = False ; | |
24908 | PyObject * obj0 = 0 ; | |
24909 | PyObject * obj1 = 0 ; | |
24910 | char *kwnames[] = { | |
24911 | (char *) "self",(char *) "toolTip", NULL | |
24912 | }; | |
24913 | ||
24914 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeEvent_SetToolTip",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
24915 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxTreeEvent, |
24916 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
c9c7117a RD |
24917 | { |
24918 | arg2 = wxString_in_helper(obj1); | |
24919 | if (arg2 == NULL) SWIG_fail; | |
24920 | temp2 = True; | |
24921 | } | |
24922 | { | |
24923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
24924 | (arg1)->SetToolTip((wxString const &)*arg2); | |
24925 | ||
24926 | wxPyEndAllowThreads(__tstate); | |
24927 | if (PyErr_Occurred()) SWIG_fail; | |
24928 | } | |
24929 | Py_INCREF(Py_None); resultobj = Py_None; | |
24930 | { | |
24931 | if (temp2) | |
24932 | delete arg2; | |
24933 | } | |
24934 | return resultobj; | |
24935 | fail: | |
24936 | { | |
24937 | if (temp2) | |
24938 | delete arg2; | |
24939 | } | |
24940 | return NULL; | |
24941 | } | |
24942 | ||
24943 | ||
d14a1e28 RD |
24944 | static PyObject * TreeEvent_swigregister(PyObject *self, PyObject *args) { |
24945 | PyObject *obj; | |
24946 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
24947 | SWIG_TypeClientData(SWIGTYPE_p_wxTreeEvent, obj); | |
24948 | Py_INCREF(obj); | |
24949 | return Py_BuildValue((char *)""); | |
24950 | } | |
24951 | static PyObject *_wrap_new_TreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
24952 | PyObject *resultobj; | |
24953 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 24954 | int arg2 = (int) -1 ; |
d14a1e28 RD |
24955 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
24956 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
24957 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
24958 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
24959 | long arg5 = (long) wxTR_DEFAULT_STYLE ; | |
24960 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
24961 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
b2dc1044 | 24962 | wxString const &arg7_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
24963 | wxString *arg7 = (wxString *) &arg7_defvalue ; |
24964 | wxPyTreeCtrl *result; | |
24965 | wxPoint temp3 ; | |
24966 | wxSize temp4 ; | |
e811c8ce | 24967 | bool temp7 = False ; |
d14a1e28 | 24968 | PyObject * obj0 = 0 ; |
994141e6 | 24969 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
24970 | PyObject * obj2 = 0 ; |
24971 | PyObject * obj3 = 0 ; | |
994141e6 | 24972 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
24973 | PyObject * obj5 = 0 ; |
24974 | PyObject * obj6 = 0 ; | |
24975 | char *kwnames[] = { | |
24976 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
24977 | }; | |
24978 | ||
994141e6 | 24979 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_TreeCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
24980 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
24981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 24982 | if (obj1) { |
15afbcd0 RD |
24983 | arg2 = (int) SWIG_AsInt(obj1); |
24984 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 24985 | } |
d14a1e28 RD |
24986 | if (obj2) { |
24987 | { | |
24988 | arg3 = &temp3; | |
24989 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
24990 | } | |
24991 | } | |
24992 | if (obj3) { | |
24993 | { | |
994141e6 RD |
24994 | arg4 = &temp4; |
24995 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
24996 | } | |
24997 | } | |
24998 | if (obj4) { | |
15afbcd0 RD |
24999 | arg5 = (long) SWIG_AsLong(obj4); |
25000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25001 | } |
25002 | if (obj5) { | |
15afbcd0 RD |
25003 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
25004 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25005 | SWIG_fail; | |
d14a1e28 | 25006 | if (arg6 == NULL) { |
15afbcd0 RD |
25007 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25008 | SWIG_fail; | |
d14a1e28 RD |
25009 | } |
25010 | } | |
25011 | if (obj6) { | |
25012 | { | |
25013 | arg7 = wxString_in_helper(obj6); | |
25014 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 25015 | temp7 = True; |
d14a1e28 RD |
25016 | } |
25017 | } | |
25018 | { | |
e3b71cb8 | 25019 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25020 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25021 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
25022 | ||
25023 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25024 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25025 | } |
b0f7404b | 25026 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25027 | { |
25028 | if (temp7) | |
25029 | delete arg7; | |
25030 | } | |
25031 | return resultobj; | |
25032 | fail: | |
25033 | { | |
25034 | if (temp7) | |
25035 | delete arg7; | |
25036 | } | |
25037 | return NULL; | |
25038 | } | |
25039 | ||
25040 | ||
25041 | static PyObject *_wrap_new_PreTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25042 | PyObject *resultobj; | |
25043 | wxPyTreeCtrl *result; | |
25044 | char *kwnames[] = { | |
25045 | NULL | |
25046 | }; | |
25047 | ||
25048 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreTreeCtrl",kwnames)) goto fail; | |
25049 | { | |
e3b71cb8 | 25050 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
25051 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
25052 | result = (wxPyTreeCtrl *)new wxPyTreeCtrl(); | |
25053 | ||
25054 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 25055 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 25056 | } |
b0f7404b | 25057 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeCtrl, 1); |
d14a1e28 RD |
25058 | return resultobj; |
25059 | fail: | |
25060 | return NULL; | |
25061 | } | |
25062 | ||
25063 | ||
25064 | static PyObject *_wrap_TreeCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25065 | PyObject *resultobj; | |
25066 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25067 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 25068 | int arg3 = (int) -1 ; |
d14a1e28 RD |
25069 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
25070 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
25071 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
25072 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
25073 | long arg6 = (long) wxTR_DEFAULT_STYLE ; | |
25074 | wxValidator const &arg7_defvalue = wxDefaultValidator ; | |
25075 | wxValidator *arg7 = (wxValidator *) &arg7_defvalue ; | |
b2dc1044 | 25076 | wxString const &arg8_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
25077 | wxString *arg8 = (wxString *) &arg8_defvalue ; |
25078 | bool result; | |
25079 | wxPoint temp4 ; | |
25080 | wxSize temp5 ; | |
e811c8ce | 25081 | bool temp8 = False ; |
d14a1e28 RD |
25082 | PyObject * obj0 = 0 ; |
25083 | PyObject * obj1 = 0 ; | |
994141e6 | 25084 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25085 | PyObject * obj3 = 0 ; |
25086 | PyObject * obj4 = 0 ; | |
994141e6 | 25087 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
25088 | PyObject * obj6 = 0 ; |
25089 | PyObject * obj7 = 0 ; | |
25090 | char *kwnames[] = { | |
25091 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
25092 | }; | |
25093 | ||
994141e6 | 25094 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOO:TreeCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7)) goto fail; |
15afbcd0 RD |
25095 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25096 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25097 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
25098 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 25099 | if (obj2) { |
15afbcd0 RD |
25100 | arg3 = (int) SWIG_AsInt(obj2); |
25101 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25102 | } |
d14a1e28 RD |
25103 | if (obj3) { |
25104 | { | |
25105 | arg4 = &temp4; | |
25106 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
25107 | } | |
25108 | } | |
25109 | if (obj4) { | |
25110 | { | |
25111 | arg5 = &temp5; | |
25112 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
25113 | } | |
25114 | } | |
994141e6 | 25115 | if (obj5) { |
15afbcd0 RD |
25116 | arg6 = (long) SWIG_AsLong(obj5); |
25117 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25118 | } |
d14a1e28 | 25119 | if (obj6) { |
15afbcd0 RD |
25120 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxValidator, |
25121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25122 | SWIG_fail; | |
d14a1e28 | 25123 | if (arg7 == NULL) { |
15afbcd0 RD |
25124 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25125 | SWIG_fail; | |
d14a1e28 RD |
25126 | } |
25127 | } | |
25128 | if (obj7) { | |
25129 | { | |
25130 | arg8 = wxString_in_helper(obj7); | |
25131 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 25132 | temp8 = True; |
d14a1e28 RD |
25133 | } |
25134 | } | |
25135 | { | |
25136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25137 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxValidator const &)*arg7,(wxString const &)*arg8); | |
25138 | ||
25139 | wxPyEndAllowThreads(__tstate); | |
25140 | if (PyErr_Occurred()) SWIG_fail; | |
25141 | } | |
4f89f6a3 RD |
25142 | { |
25143 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
25144 | } | |
d14a1e28 RD |
25145 | { |
25146 | if (temp8) | |
25147 | delete arg8; | |
25148 | } | |
25149 | return resultobj; | |
25150 | fail: | |
25151 | { | |
25152 | if (temp8) | |
25153 | delete arg8; | |
25154 | } | |
25155 | return NULL; | |
25156 | } | |
25157 | ||
25158 | ||
25159 | static PyObject *_wrap_TreeCtrl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25160 | PyObject *resultobj; | |
25161 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25162 | PyObject *arg2 = (PyObject *) 0 ; | |
25163 | PyObject *arg3 = (PyObject *) 0 ; | |
25164 | PyObject * obj0 = 0 ; | |
25165 | PyObject * obj1 = 0 ; | |
25166 | PyObject * obj2 = 0 ; | |
25167 | char *kwnames[] = { | |
25168 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
25169 | }; | |
25170 | ||
25171 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25172 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25173 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25174 | arg2 = obj1; |
25175 | arg3 = obj2; | |
25176 | { | |
25177 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25178 | (arg1)->_setCallbackInfo(arg2,arg3); | |
25179 | ||
25180 | wxPyEndAllowThreads(__tstate); | |
25181 | if (PyErr_Occurred()) SWIG_fail; | |
25182 | } | |
25183 | Py_INCREF(Py_None); resultobj = Py_None; | |
25184 | return resultobj; | |
25185 | fail: | |
25186 | return NULL; | |
25187 | } | |
25188 | ||
25189 | ||
25190 | static PyObject *_wrap_TreeCtrl_GetCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25191 | PyObject *resultobj; | |
25192 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25193 | size_t result; | |
25194 | PyObject * obj0 = 0 ; | |
25195 | char *kwnames[] = { | |
25196 | (char *) "self", NULL | |
25197 | }; | |
25198 | ||
25199 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetCount",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25200 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25201 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25202 | { |
25203 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25204 | result = (size_t)((wxPyTreeCtrl const *)arg1)->GetCount(); | |
25205 | ||
25206 | wxPyEndAllowThreads(__tstate); | |
25207 | if (PyErr_Occurred()) SWIG_fail; | |
25208 | } | |
15afbcd0 | 25209 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
25210 | return resultobj; |
25211 | fail: | |
25212 | return NULL; | |
25213 | } | |
25214 | ||
25215 | ||
25216 | static PyObject *_wrap_TreeCtrl_GetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25217 | PyObject *resultobj; | |
25218 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25219 | unsigned int result; | |
25220 | PyObject * obj0 = 0 ; | |
25221 | char *kwnames[] = { | |
25222 | (char *) "self", NULL | |
25223 | }; | |
25224 | ||
25225 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetIndent",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25226 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25227 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25228 | { |
25229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25230 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetIndent(); | |
25231 | ||
25232 | wxPyEndAllowThreads(__tstate); | |
25233 | if (PyErr_Occurred()) SWIG_fail; | |
25234 | } | |
15afbcd0 | 25235 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25236 | return resultobj; |
25237 | fail: | |
25238 | return NULL; | |
25239 | } | |
25240 | ||
25241 | ||
25242 | static PyObject *_wrap_TreeCtrl_SetIndent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25243 | PyObject *resultobj; | |
25244 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25245 | unsigned int arg2 ; | |
25246 | PyObject * obj0 = 0 ; | |
25247 | PyObject * obj1 = 0 ; | |
25248 | char *kwnames[] = { | |
25249 | (char *) "self",(char *) "indent", NULL | |
25250 | }; | |
25251 | ||
25252 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetIndent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25253 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25254 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25255 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25256 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25257 | { |
25258 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25259 | (arg1)->SetIndent(arg2); | |
25260 | ||
25261 | wxPyEndAllowThreads(__tstate); | |
25262 | if (PyErr_Occurred()) SWIG_fail; | |
25263 | } | |
25264 | Py_INCREF(Py_None); resultobj = Py_None; | |
25265 | return resultobj; | |
25266 | fail: | |
25267 | return NULL; | |
25268 | } | |
25269 | ||
25270 | ||
25271 | static PyObject *_wrap_TreeCtrl_GetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25272 | PyObject *resultobj; | |
25273 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25274 | unsigned int result; | |
25275 | PyObject * obj0 = 0 ; | |
25276 | char *kwnames[] = { | |
25277 | (char *) "self", NULL | |
25278 | }; | |
25279 | ||
25280 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSpacing",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25281 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25282 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25283 | { |
25284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25285 | result = (unsigned int)((wxPyTreeCtrl const *)arg1)->GetSpacing(); | |
25286 | ||
25287 | wxPyEndAllowThreads(__tstate); | |
25288 | if (PyErr_Occurred()) SWIG_fail; | |
25289 | } | |
15afbcd0 | 25290 | resultobj = SWIG_FromUnsignedInt((unsigned int)result); |
d14a1e28 RD |
25291 | return resultobj; |
25292 | fail: | |
25293 | return NULL; | |
25294 | } | |
25295 | ||
25296 | ||
25297 | static PyObject *_wrap_TreeCtrl_SetSpacing(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25298 | PyObject *resultobj; | |
25299 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25300 | unsigned int arg2 ; | |
25301 | PyObject * obj0 = 0 ; | |
25302 | PyObject * obj1 = 0 ; | |
25303 | char *kwnames[] = { | |
25304 | (char *) "self",(char *) "spacing", NULL | |
25305 | }; | |
25306 | ||
25307 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetSpacing",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25308 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25309 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25310 | arg2 = (unsigned int) SWIG_AsUnsignedInt(obj1); | |
25311 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25312 | { |
25313 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25314 | (arg1)->SetSpacing(arg2); | |
25315 | ||
25316 | wxPyEndAllowThreads(__tstate); | |
25317 | if (PyErr_Occurred()) SWIG_fail; | |
25318 | } | |
25319 | Py_INCREF(Py_None); resultobj = Py_None; | |
25320 | return resultobj; | |
25321 | fail: | |
25322 | return NULL; | |
25323 | } | |
25324 | ||
25325 | ||
25326 | static PyObject *_wrap_TreeCtrl_GetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25327 | PyObject *resultobj; | |
25328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25329 | wxImageList *result; | |
25330 | PyObject * obj0 = 0 ; | |
25331 | char *kwnames[] = { | |
25332 | (char *) "self", NULL | |
25333 | }; | |
25334 | ||
25335 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25336 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25337 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25338 | { |
25339 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25340 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetImageList(); | |
25341 | ||
25342 | wxPyEndAllowThreads(__tstate); | |
25343 | if (PyErr_Occurred()) SWIG_fail; | |
25344 | } | |
25345 | { | |
412d302d | 25346 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25347 | } |
25348 | return resultobj; | |
25349 | fail: | |
25350 | return NULL; | |
25351 | } | |
25352 | ||
25353 | ||
25354 | static PyObject *_wrap_TreeCtrl_GetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25355 | PyObject *resultobj; | |
25356 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25357 | wxImageList *result; | |
25358 | PyObject * obj0 = 0 ; | |
25359 | char *kwnames[] = { | |
25360 | (char *) "self", NULL | |
25361 | }; | |
25362 | ||
25363 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetStateImageList",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
25364 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25365 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25366 | { |
25367 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25368 | result = (wxImageList *)((wxPyTreeCtrl const *)arg1)->GetStateImageList(); | |
25369 | ||
25370 | wxPyEndAllowThreads(__tstate); | |
25371 | if (PyErr_Occurred()) SWIG_fail; | |
25372 | } | |
25373 | { | |
412d302d | 25374 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
25375 | } |
25376 | return resultobj; | |
25377 | fail: | |
25378 | return NULL; | |
25379 | } | |
25380 | ||
25381 | ||
25382 | static PyObject *_wrap_TreeCtrl_SetImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25383 | PyObject *resultobj; | |
25384 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25385 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25386 | PyObject * obj0 = 0 ; | |
25387 | PyObject * obj1 = 0 ; | |
25388 | char *kwnames[] = { | |
25389 | (char *) "self",(char *) "imageList", NULL | |
25390 | }; | |
25391 | ||
25392 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25393 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25394 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25395 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25396 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25397 | { |
25398 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25399 | (arg1)->SetImageList(arg2); | |
25400 | ||
25401 | wxPyEndAllowThreads(__tstate); | |
25402 | if (PyErr_Occurred()) SWIG_fail; | |
25403 | } | |
25404 | Py_INCREF(Py_None); resultobj = Py_None; | |
25405 | return resultobj; | |
25406 | fail: | |
25407 | return NULL; | |
25408 | } | |
25409 | ||
25410 | ||
25411 | static PyObject *_wrap_TreeCtrl_SetStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25412 | PyObject *resultobj; | |
25413 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25414 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25415 | PyObject * obj0 = 0 ; | |
25416 | PyObject * obj1 = 0 ; | |
25417 | char *kwnames[] = { | |
25418 | (char *) "self",(char *) "imageList", NULL | |
25419 | }; | |
25420 | ||
25421 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SetStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25422 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25423 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25424 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25426 | { |
25427 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25428 | (arg1)->SetStateImageList(arg2); | |
25429 | ||
25430 | wxPyEndAllowThreads(__tstate); | |
25431 | if (PyErr_Occurred()) SWIG_fail; | |
25432 | } | |
25433 | Py_INCREF(Py_None); resultobj = Py_None; | |
25434 | return resultobj; | |
25435 | fail: | |
25436 | return NULL; | |
25437 | } | |
25438 | ||
25439 | ||
25440 | static PyObject *_wrap_TreeCtrl_AssignImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25441 | PyObject *resultobj; | |
25442 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25443 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25444 | PyObject * obj0 = 0 ; | |
25445 | PyObject * obj1 = 0 ; | |
25446 | char *kwnames[] = { | |
25447 | (char *) "self",(char *) "imageList", NULL | |
25448 | }; | |
25449 | ||
25450 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25451 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25452 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25453 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25454 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25455 | { |
25456 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25457 | (arg1)->AssignImageList(arg2); | |
25458 | ||
25459 | wxPyEndAllowThreads(__tstate); | |
25460 | if (PyErr_Occurred()) SWIG_fail; | |
25461 | } | |
25462 | Py_INCREF(Py_None); resultobj = Py_None; | |
25463 | return resultobj; | |
25464 | fail: | |
25465 | return NULL; | |
25466 | } | |
25467 | ||
25468 | ||
25469 | static PyObject *_wrap_TreeCtrl_AssignStateImageList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25470 | PyObject *resultobj; | |
25471 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25472 | wxImageList *arg2 = (wxImageList *) 0 ; | |
25473 | PyObject * obj0 = 0 ; | |
25474 | PyObject * obj1 = 0 ; | |
25475 | char *kwnames[] = { | |
25476 | (char *) "self",(char *) "imageList", NULL | |
25477 | }; | |
25478 | ||
25479 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_AssignStateImageList",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25480 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25481 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25482 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxImageList, | |
25483 | SWIG_POINTER_EXCEPTION | SWIG_POINTER_DISOWN)) == -1) SWIG_fail; | |
d14a1e28 RD |
25484 | { |
25485 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25486 | (arg1)->AssignStateImageList(arg2); | |
25487 | ||
25488 | wxPyEndAllowThreads(__tstate); | |
25489 | if (PyErr_Occurred()) SWIG_fail; | |
25490 | } | |
25491 | Py_INCREF(Py_None); resultobj = Py_None; | |
25492 | return resultobj; | |
25493 | fail: | |
25494 | return NULL; | |
25495 | } | |
25496 | ||
25497 | ||
25498 | static PyObject *_wrap_TreeCtrl_GetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25499 | PyObject *resultobj; | |
25500 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25501 | wxTreeItemId *arg2 = 0 ; | |
25502 | wxString result; | |
25503 | PyObject * obj0 = 0 ; | |
25504 | PyObject * obj1 = 0 ; | |
25505 | char *kwnames[] = { | |
25506 | (char *) "self",(char *) "item", NULL | |
25507 | }; | |
25508 | ||
25509 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemText",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25510 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25511 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25512 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25513 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25514 | SWIG_fail; | |
d14a1e28 | 25515 | if (arg2 == NULL) { |
15afbcd0 RD |
25516 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25517 | SWIG_fail; | |
d14a1e28 RD |
25518 | } |
25519 | { | |
25520 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25521 | result = ((wxPyTreeCtrl const *)arg1)->GetItemText((wxTreeItemId const &)*arg2); | |
25522 | ||
25523 | wxPyEndAllowThreads(__tstate); | |
25524 | if (PyErr_Occurred()) SWIG_fail; | |
25525 | } | |
25526 | { | |
25527 | #if wxUSE_UNICODE | |
25528 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
25529 | #else | |
25530 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
25531 | #endif | |
25532 | } | |
25533 | return resultobj; | |
25534 | fail: | |
25535 | return NULL; | |
25536 | } | |
25537 | ||
25538 | ||
25539 | static PyObject *_wrap_TreeCtrl_GetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25540 | PyObject *resultobj; | |
25541 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25542 | wxTreeItemId *arg2 = 0 ; | |
25543 | int arg3 = (int) wxTreeItemIcon_Normal ; | |
25544 | int result; | |
25545 | PyObject * obj0 = 0 ; | |
25546 | PyObject * obj1 = 0 ; | |
994141e6 | 25547 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
25548 | char *kwnames[] = { |
25549 | (char *) "self",(char *) "item",(char *) "which", NULL | |
25550 | }; | |
25551 | ||
994141e6 | 25552 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetItemImage",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
25553 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25554 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25555 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25556 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25557 | SWIG_fail; | |
d14a1e28 | 25558 | if (arg2 == NULL) { |
15afbcd0 RD |
25559 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25560 | SWIG_fail; | |
d14a1e28 | 25561 | } |
994141e6 | 25562 | if (obj2) { |
15afbcd0 RD |
25563 | arg3 = (wxTreeItemIcon) SWIG_AsInt(obj2); |
25564 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25565 | } |
d14a1e28 RD |
25566 | { |
25567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25568 | result = (int)((wxPyTreeCtrl const *)arg1)->GetItemImage((wxTreeItemId const &)*arg2,(wxTreeItemIcon )arg3); | |
25569 | ||
25570 | wxPyEndAllowThreads(__tstate); | |
25571 | if (PyErr_Occurred()) SWIG_fail; | |
25572 | } | |
15afbcd0 | 25573 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
25574 | return resultobj; |
25575 | fail: | |
25576 | return NULL; | |
25577 | } | |
25578 | ||
25579 | ||
25580 | static PyObject *_wrap_TreeCtrl_GetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25581 | PyObject *resultobj; | |
25582 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25583 | wxTreeItemId *arg2 = 0 ; | |
25584 | wxPyTreeItemData *result; | |
25585 | PyObject * obj0 = 0 ; | |
25586 | PyObject * obj1 = 0 ; | |
25587 | char *kwnames[] = { | |
25588 | (char *) "self",(char *) "item", NULL | |
25589 | }; | |
25590 | ||
25591 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25592 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25593 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25594 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25595 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25596 | SWIG_fail; | |
d14a1e28 | 25597 | if (arg2 == NULL) { |
15afbcd0 RD |
25598 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25599 | SWIG_fail; | |
d14a1e28 RD |
25600 | } |
25601 | { | |
25602 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25603 | result = (wxPyTreeItemData *)wxPyTreeCtrl_GetItemData(arg1,(wxTreeItemId const &)*arg2); | |
25604 | ||
25605 | wxPyEndAllowThreads(__tstate); | |
25606 | if (PyErr_Occurred()) SWIG_fail; | |
25607 | } | |
15afbcd0 | 25608 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyTreeItemData, 0); |
d14a1e28 RD |
25609 | return resultobj; |
25610 | fail: | |
25611 | return NULL; | |
25612 | } | |
25613 | ||
25614 | ||
25615 | static PyObject *_wrap_TreeCtrl_GetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25616 | PyObject *resultobj; | |
25617 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25618 | wxTreeItemId *arg2 = 0 ; | |
25619 | PyObject *result; | |
25620 | PyObject * obj0 = 0 ; | |
25621 | PyObject * obj1 = 0 ; | |
25622 | char *kwnames[] = { | |
25623 | (char *) "self",(char *) "item", NULL | |
25624 | }; | |
25625 | ||
25626 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemPyData",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25627 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25628 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25629 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25630 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25631 | SWIG_fail; | |
d14a1e28 | 25632 | if (arg2 == NULL) { |
15afbcd0 RD |
25633 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25634 | SWIG_fail; | |
d14a1e28 RD |
25635 | } |
25636 | { | |
25637 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25638 | result = (PyObject *)wxPyTreeCtrl_GetItemPyData(arg1,(wxTreeItemId const &)*arg2); | |
25639 | ||
25640 | wxPyEndAllowThreads(__tstate); | |
25641 | if (PyErr_Occurred()) SWIG_fail; | |
25642 | } | |
25643 | resultobj = result; | |
25644 | return resultobj; | |
25645 | fail: | |
25646 | return NULL; | |
25647 | } | |
25648 | ||
25649 | ||
25650 | static PyObject *_wrap_TreeCtrl_GetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25651 | PyObject *resultobj; | |
25652 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25653 | wxTreeItemId *arg2 = 0 ; | |
25654 | wxColour result; | |
25655 | PyObject * obj0 = 0 ; | |
25656 | PyObject * obj1 = 0 ; | |
25657 | char *kwnames[] = { | |
25658 | (char *) "self",(char *) "item", NULL | |
25659 | }; | |
25660 | ||
25661 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemTextColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25662 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25663 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25664 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25665 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25666 | SWIG_fail; | |
d14a1e28 | 25667 | if (arg2 == NULL) { |
15afbcd0 RD |
25668 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25669 | SWIG_fail; | |
d14a1e28 RD |
25670 | } |
25671 | { | |
25672 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25673 | result = ((wxPyTreeCtrl const *)arg1)->GetItemTextColour((wxTreeItemId const &)*arg2); | |
25674 | ||
25675 | wxPyEndAllowThreads(__tstate); | |
25676 | if (PyErr_Occurred()) SWIG_fail; | |
25677 | } | |
25678 | { | |
25679 | wxColour * resultptr; | |
25680 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25681 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25682 | } |
25683 | return resultobj; | |
25684 | fail: | |
25685 | return NULL; | |
25686 | } | |
25687 | ||
25688 | ||
25689 | static PyObject *_wrap_TreeCtrl_GetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25690 | PyObject *resultobj; | |
25691 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25692 | wxTreeItemId *arg2 = 0 ; | |
25693 | wxColour result; | |
25694 | PyObject * obj0 = 0 ; | |
25695 | PyObject * obj1 = 0 ; | |
25696 | char *kwnames[] = { | |
25697 | (char *) "self",(char *) "item", NULL | |
25698 | }; | |
25699 | ||
25700 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemBackgroundColour",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25701 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25702 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25705 | SWIG_fail; | |
d14a1e28 | 25706 | if (arg2 == NULL) { |
15afbcd0 RD |
25707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25708 | SWIG_fail; | |
d14a1e28 RD |
25709 | } |
25710 | { | |
25711 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25712 | result = ((wxPyTreeCtrl const *)arg1)->GetItemBackgroundColour((wxTreeItemId const &)*arg2); | |
25713 | ||
25714 | wxPyEndAllowThreads(__tstate); | |
25715 | if (PyErr_Occurred()) SWIG_fail; | |
25716 | } | |
25717 | { | |
25718 | wxColour * resultptr; | |
25719 | resultptr = new wxColour((wxColour &) result); | |
15afbcd0 | 25720 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxColour, 1); |
d14a1e28 RD |
25721 | } |
25722 | return resultobj; | |
25723 | fail: | |
25724 | return NULL; | |
25725 | } | |
25726 | ||
25727 | ||
25728 | static PyObject *_wrap_TreeCtrl_GetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25729 | PyObject *resultobj; | |
25730 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25731 | wxTreeItemId *arg2 = 0 ; | |
25732 | wxFont result; | |
25733 | PyObject * obj0 = 0 ; | |
25734 | PyObject * obj1 = 0 ; | |
25735 | char *kwnames[] = { | |
25736 | (char *) "self",(char *) "item", NULL | |
25737 | }; | |
25738 | ||
25739 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemFont",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
25740 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25741 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25742 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25743 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25744 | SWIG_fail; | |
d14a1e28 | 25745 | if (arg2 == NULL) { |
15afbcd0 RD |
25746 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25747 | SWIG_fail; | |
d14a1e28 RD |
25748 | } |
25749 | { | |
25750 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25751 | result = ((wxPyTreeCtrl const *)arg1)->GetItemFont((wxTreeItemId const &)*arg2); | |
25752 | ||
25753 | wxPyEndAllowThreads(__tstate); | |
25754 | if (PyErr_Occurred()) SWIG_fail; | |
25755 | } | |
25756 | { | |
25757 | wxFont * resultptr; | |
25758 | resultptr = new wxFont((wxFont &) result); | |
15afbcd0 | 25759 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxFont, 1); |
d14a1e28 RD |
25760 | } |
25761 | return resultobj; | |
25762 | fail: | |
25763 | return NULL; | |
25764 | } | |
25765 | ||
25766 | ||
25767 | static PyObject *_wrap_TreeCtrl_SetItemText(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25768 | PyObject *resultobj; | |
25769 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25770 | wxTreeItemId *arg2 = 0 ; | |
25771 | wxString *arg3 = 0 ; | |
e811c8ce | 25772 | bool temp3 = False ; |
d14a1e28 RD |
25773 | PyObject * obj0 = 0 ; |
25774 | PyObject * obj1 = 0 ; | |
25775 | PyObject * obj2 = 0 ; | |
25776 | char *kwnames[] = { | |
25777 | (char *) "self",(char *) "item",(char *) "text", NULL | |
25778 | }; | |
25779 | ||
25780 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemText",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25781 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25782 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25783 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25784 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25785 | SWIG_fail; | |
d14a1e28 | 25786 | if (arg2 == NULL) { |
15afbcd0 RD |
25787 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25788 | SWIG_fail; | |
d14a1e28 RD |
25789 | } |
25790 | { | |
25791 | arg3 = wxString_in_helper(obj2); | |
25792 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 25793 | temp3 = True; |
d14a1e28 RD |
25794 | } |
25795 | { | |
25796 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25797 | (arg1)->SetItemText((wxTreeItemId const &)*arg2,(wxString const &)*arg3); | |
25798 | ||
25799 | wxPyEndAllowThreads(__tstate); | |
25800 | if (PyErr_Occurred()) SWIG_fail; | |
25801 | } | |
25802 | Py_INCREF(Py_None); resultobj = Py_None; | |
25803 | { | |
25804 | if (temp3) | |
25805 | delete arg3; | |
25806 | } | |
25807 | return resultobj; | |
25808 | fail: | |
25809 | { | |
25810 | if (temp3) | |
25811 | delete arg3; | |
25812 | } | |
25813 | return NULL; | |
25814 | } | |
25815 | ||
25816 | ||
25817 | static PyObject *_wrap_TreeCtrl_SetItemImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25818 | PyObject *resultobj; | |
25819 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25820 | wxTreeItemId *arg2 = 0 ; | |
25821 | int arg3 ; | |
25822 | int arg4 = (int) wxTreeItemIcon_Normal ; | |
25823 | PyObject * obj0 = 0 ; | |
25824 | PyObject * obj1 = 0 ; | |
994141e6 RD |
25825 | PyObject * obj2 = 0 ; |
25826 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
25827 | char *kwnames[] = { |
25828 | (char *) "self",(char *) "item",(char *) "image",(char *) "which", NULL | |
25829 | }; | |
25830 | ||
994141e6 | 25831 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|O:TreeCtrl_SetItemImage",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; |
15afbcd0 RD |
25832 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25833 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25834 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25835 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25836 | SWIG_fail; | |
d14a1e28 | 25837 | if (arg2 == NULL) { |
15afbcd0 RD |
25838 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25839 | SWIG_fail; | |
994141e6 | 25840 | } |
15afbcd0 RD |
25841 | arg3 = (int) SWIG_AsInt(obj2); |
25842 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25843 | if (obj3) { |
15afbcd0 RD |
25844 | arg4 = (wxTreeItemIcon) SWIG_AsInt(obj3); |
25845 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 25846 | } |
d14a1e28 RD |
25847 | { |
25848 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25849 | (arg1)->SetItemImage((wxTreeItemId const &)*arg2,arg3,(wxTreeItemIcon )arg4); | |
25850 | ||
25851 | wxPyEndAllowThreads(__tstate); | |
25852 | if (PyErr_Occurred()) SWIG_fail; | |
25853 | } | |
25854 | Py_INCREF(Py_None); resultobj = Py_None; | |
25855 | return resultobj; | |
25856 | fail: | |
25857 | return NULL; | |
25858 | } | |
25859 | ||
25860 | ||
25861 | static PyObject *_wrap_TreeCtrl_SetItemData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25862 | PyObject *resultobj; | |
25863 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25864 | wxTreeItemId *arg2 = 0 ; | |
25865 | wxPyTreeItemData *arg3 = (wxPyTreeItemData *) 0 ; | |
25866 | PyObject * obj0 = 0 ; | |
25867 | PyObject * obj1 = 0 ; | |
25868 | PyObject * obj2 = 0 ; | |
25869 | char *kwnames[] = { | |
25870 | (char *) "self",(char *) "item",(char *) "data", NULL | |
25871 | }; | |
25872 | ||
25873 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25874 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25875 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25876 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25877 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25878 | SWIG_fail; | |
d14a1e28 | 25879 | if (arg2 == NULL) { |
15afbcd0 RD |
25880 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25881 | SWIG_fail; | |
d14a1e28 | 25882 | } |
15afbcd0 RD |
25883 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxPyTreeItemData, |
25884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
25885 | { |
25886 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25887 | wxPyTreeCtrl_SetItemData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25888 | ||
25889 | wxPyEndAllowThreads(__tstate); | |
25890 | if (PyErr_Occurred()) SWIG_fail; | |
25891 | } | |
25892 | Py_INCREF(Py_None); resultobj = Py_None; | |
25893 | return resultobj; | |
25894 | fail: | |
25895 | return NULL; | |
25896 | } | |
25897 | ||
25898 | ||
25899 | static PyObject *_wrap_TreeCtrl_SetItemPyData(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25900 | PyObject *resultobj; | |
25901 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25902 | wxTreeItemId *arg2 = 0 ; | |
25903 | PyObject *arg3 = (PyObject *) 0 ; | |
25904 | PyObject * obj0 = 0 ; | |
25905 | PyObject * obj1 = 0 ; | |
25906 | PyObject * obj2 = 0 ; | |
25907 | char *kwnames[] = { | |
25908 | (char *) "self",(char *) "item",(char *) "obj", NULL | |
25909 | }; | |
25910 | ||
25911 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemPyData",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25912 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25913 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25914 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25915 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25916 | SWIG_fail; | |
d14a1e28 | 25917 | if (arg2 == NULL) { |
15afbcd0 RD |
25918 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25919 | SWIG_fail; | |
d14a1e28 RD |
25920 | } |
25921 | arg3 = obj2; | |
25922 | { | |
25923 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25924 | wxPyTreeCtrl_SetItemPyData(arg1,(wxTreeItemId const &)*arg2,arg3); | |
25925 | ||
25926 | wxPyEndAllowThreads(__tstate); | |
25927 | if (PyErr_Occurred()) SWIG_fail; | |
25928 | } | |
25929 | Py_INCREF(Py_None); resultobj = Py_None; | |
25930 | return resultobj; | |
25931 | fail: | |
25932 | return NULL; | |
25933 | } | |
25934 | ||
25935 | ||
25936 | static PyObject *_wrap_TreeCtrl_SetItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25937 | PyObject *resultobj; | |
25938 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25939 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25940 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25941 | PyObject * obj0 = 0 ; |
25942 | PyObject * obj1 = 0 ; | |
25943 | PyObject * obj2 = 0 ; | |
25944 | char *kwnames[] = { | |
25945 | (char *) "self",(char *) "item",(char *) "has", NULL | |
25946 | }; | |
25947 | ||
25948 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemHasChildren",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25949 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25950 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25951 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25952 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25953 | SWIG_fail; | |
d14a1e28 | 25954 | if (arg2 == NULL) { |
15afbcd0 RD |
25955 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25956 | SWIG_fail; | |
d14a1e28 RD |
25957 | } |
25958 | if (obj2) { | |
15afbcd0 RD |
25959 | arg3 = (bool) SWIG_AsBool(obj2); |
25960 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
25961 | } |
25962 | { | |
25963 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
25964 | (arg1)->SetItemHasChildren((wxTreeItemId const &)*arg2,arg3); | |
25965 | ||
25966 | wxPyEndAllowThreads(__tstate); | |
25967 | if (PyErr_Occurred()) SWIG_fail; | |
25968 | } | |
25969 | Py_INCREF(Py_None); resultobj = Py_None; | |
25970 | return resultobj; | |
25971 | fail: | |
25972 | return NULL; | |
25973 | } | |
25974 | ||
25975 | ||
25976 | static PyObject *_wrap_TreeCtrl_SetItemBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
25977 | PyObject *resultobj; | |
25978 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
25979 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 25980 | bool arg3 = (bool) True ; |
d14a1e28 RD |
25981 | PyObject * obj0 = 0 ; |
25982 | PyObject * obj1 = 0 ; | |
25983 | PyObject * obj2 = 0 ; | |
25984 | char *kwnames[] = { | |
25985 | (char *) "self",(char *) "item",(char *) "bold", NULL | |
25986 | }; | |
25987 | ||
25988 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SetItemBold",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
25989 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
25990 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
25991 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
25992 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
25993 | SWIG_fail; | |
d14a1e28 | 25994 | if (arg2 == NULL) { |
15afbcd0 RD |
25995 | PyErr_SetString(PyExc_TypeError,"null reference"); |
25996 | SWIG_fail; | |
d14a1e28 RD |
25997 | } |
25998 | if (obj2) { | |
15afbcd0 RD |
25999 | arg3 = (bool) SWIG_AsBool(obj2); |
26000 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26001 | } |
26002 | { | |
26003 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26004 | (arg1)->SetItemBold((wxTreeItemId const &)*arg2,arg3); | |
26005 | ||
26006 | wxPyEndAllowThreads(__tstate); | |
26007 | if (PyErr_Occurred()) SWIG_fail; | |
26008 | } | |
26009 | Py_INCREF(Py_None); resultobj = Py_None; | |
26010 | return resultobj; | |
26011 | fail: | |
26012 | return NULL; | |
26013 | } | |
26014 | ||
26015 | ||
26016 | static PyObject *_wrap_TreeCtrl_SetItemTextColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26017 | PyObject *resultobj; | |
26018 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26019 | wxTreeItemId *arg2 = 0 ; | |
26020 | wxColour *arg3 = 0 ; | |
26021 | wxColour temp3 ; | |
26022 | PyObject * obj0 = 0 ; | |
26023 | PyObject * obj1 = 0 ; | |
26024 | PyObject * obj2 = 0 ; | |
26025 | char *kwnames[] = { | |
26026 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26027 | }; | |
26028 | ||
26029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemTextColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 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) { |
15afbcd0 RD |
26036 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26037 | SWIG_fail; | |
d14a1e28 RD |
26038 | } |
26039 | { | |
26040 | arg3 = &temp3; | |
26041 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26042 | } | |
26043 | { | |
26044 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26045 | (arg1)->SetItemTextColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26046 | ||
26047 | wxPyEndAllowThreads(__tstate); | |
26048 | if (PyErr_Occurred()) SWIG_fail; | |
26049 | } | |
26050 | Py_INCREF(Py_None); resultobj = Py_None; | |
26051 | return resultobj; | |
26052 | fail: | |
26053 | return NULL; | |
26054 | } | |
26055 | ||
26056 | ||
26057 | static PyObject *_wrap_TreeCtrl_SetItemBackgroundColour(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26058 | PyObject *resultobj; | |
26059 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26060 | wxTreeItemId *arg2 = 0 ; | |
26061 | wxColour *arg3 = 0 ; | |
26062 | wxColour temp3 ; | |
26063 | PyObject * obj0 = 0 ; | |
26064 | PyObject * obj1 = 0 ; | |
26065 | PyObject * obj2 = 0 ; | |
26066 | char *kwnames[] = { | |
26067 | (char *) "self",(char *) "item",(char *) "col", NULL | |
26068 | }; | |
26069 | ||
26070 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemBackgroundColour",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26071 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26072 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26073 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26074 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26075 | SWIG_fail; | |
d14a1e28 | 26076 | if (arg2 == NULL) { |
15afbcd0 RD |
26077 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26078 | SWIG_fail; | |
d14a1e28 RD |
26079 | } |
26080 | { | |
26081 | arg3 = &temp3; | |
26082 | if ( ! wxColour_helper(obj2, &arg3)) SWIG_fail; | |
26083 | } | |
26084 | { | |
26085 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26086 | (arg1)->SetItemBackgroundColour((wxTreeItemId const &)*arg2,(wxColour const &)*arg3); | |
26087 | ||
26088 | wxPyEndAllowThreads(__tstate); | |
26089 | if (PyErr_Occurred()) SWIG_fail; | |
26090 | } | |
26091 | Py_INCREF(Py_None); resultobj = Py_None; | |
26092 | return resultobj; | |
26093 | fail: | |
26094 | return NULL; | |
26095 | } | |
26096 | ||
26097 | ||
26098 | static PyObject *_wrap_TreeCtrl_SetItemFont(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26099 | PyObject *resultobj; | |
26100 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26101 | wxTreeItemId *arg2 = 0 ; | |
26102 | wxFont *arg3 = 0 ; | |
26103 | PyObject * obj0 = 0 ; | |
26104 | PyObject * obj1 = 0 ; | |
26105 | PyObject * obj2 = 0 ; | |
26106 | char *kwnames[] = { | |
26107 | (char *) "self",(char *) "item",(char *) "font", NULL | |
26108 | }; | |
26109 | ||
26110 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_SetItemFont",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26111 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26112 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26113 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26114 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26115 | SWIG_fail; | |
d14a1e28 | 26116 | if (arg2 == NULL) { |
15afbcd0 RD |
26117 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26118 | SWIG_fail; | |
d14a1e28 | 26119 | } |
15afbcd0 RD |
26120 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxFont, |
26121 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26122 | SWIG_fail; | |
d14a1e28 | 26123 | if (arg3 == NULL) { |
15afbcd0 RD |
26124 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26125 | SWIG_fail; | |
d14a1e28 RD |
26126 | } |
26127 | { | |
26128 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26129 | (arg1)->SetItemFont((wxTreeItemId const &)*arg2,(wxFont const &)*arg3); | |
26130 | ||
26131 | wxPyEndAllowThreads(__tstate); | |
26132 | if (PyErr_Occurred()) SWIG_fail; | |
26133 | } | |
26134 | Py_INCREF(Py_None); resultobj = Py_None; | |
26135 | return resultobj; | |
26136 | fail: | |
26137 | return NULL; | |
26138 | } | |
26139 | ||
26140 | ||
26141 | static PyObject *_wrap_TreeCtrl_IsVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26142 | PyObject *resultobj; | |
26143 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26144 | wxTreeItemId *arg2 = 0 ; | |
26145 | bool result; | |
26146 | PyObject * obj0 = 0 ; | |
26147 | PyObject * obj1 = 0 ; | |
26148 | char *kwnames[] = { | |
26149 | (char *) "self",(char *) "item", NULL | |
26150 | }; | |
26151 | ||
26152 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26153 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26154 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26155 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26156 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26157 | SWIG_fail; | |
d14a1e28 | 26158 | if (arg2 == NULL) { |
15afbcd0 RD |
26159 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26160 | SWIG_fail; | |
d14a1e28 RD |
26161 | } |
26162 | { | |
26163 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26164 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsVisible((wxTreeItemId const &)*arg2); | |
26165 | ||
26166 | wxPyEndAllowThreads(__tstate); | |
26167 | if (PyErr_Occurred()) SWIG_fail; | |
26168 | } | |
4f89f6a3 RD |
26169 | { |
26170 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26171 | } | |
d14a1e28 RD |
26172 | return resultobj; |
26173 | fail: | |
26174 | return NULL; | |
26175 | } | |
26176 | ||
26177 | ||
26178 | static PyObject *_wrap_TreeCtrl_ItemHasChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26179 | PyObject *resultobj; | |
26180 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26181 | wxTreeItemId *arg2 = 0 ; | |
26182 | bool result; | |
26183 | PyObject * obj0 = 0 ; | |
26184 | PyObject * obj1 = 0 ; | |
26185 | char *kwnames[] = { | |
26186 | (char *) "self",(char *) "item", NULL | |
26187 | }; | |
26188 | ||
26189 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ItemHasChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26190 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26191 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26192 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26193 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26194 | SWIG_fail; | |
d14a1e28 | 26195 | if (arg2 == NULL) { |
15afbcd0 RD |
26196 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26197 | SWIG_fail; | |
d14a1e28 RD |
26198 | } |
26199 | { | |
26200 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26201 | result = (bool)((wxPyTreeCtrl const *)arg1)->ItemHasChildren((wxTreeItemId const &)*arg2); | |
26202 | ||
26203 | wxPyEndAllowThreads(__tstate); | |
26204 | if (PyErr_Occurred()) SWIG_fail; | |
26205 | } | |
4f89f6a3 RD |
26206 | { |
26207 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26208 | } | |
d14a1e28 RD |
26209 | return resultobj; |
26210 | fail: | |
26211 | return NULL; | |
26212 | } | |
26213 | ||
26214 | ||
26215 | static PyObject *_wrap_TreeCtrl_IsExpanded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26216 | PyObject *resultobj; | |
26217 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26218 | wxTreeItemId *arg2 = 0 ; | |
26219 | bool result; | |
26220 | PyObject * obj0 = 0 ; | |
26221 | PyObject * obj1 = 0 ; | |
26222 | char *kwnames[] = { | |
26223 | (char *) "self",(char *) "item", NULL | |
26224 | }; | |
26225 | ||
26226 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsExpanded",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26227 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26228 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26229 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26230 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26231 | SWIG_fail; | |
d14a1e28 | 26232 | if (arg2 == NULL) { |
15afbcd0 RD |
26233 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26234 | SWIG_fail; | |
d14a1e28 RD |
26235 | } |
26236 | { | |
26237 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26238 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsExpanded((wxTreeItemId const &)*arg2); | |
26239 | ||
26240 | wxPyEndAllowThreads(__tstate); | |
26241 | if (PyErr_Occurred()) SWIG_fail; | |
26242 | } | |
4f89f6a3 RD |
26243 | { |
26244 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26245 | } | |
d14a1e28 RD |
26246 | return resultobj; |
26247 | fail: | |
26248 | return NULL; | |
26249 | } | |
26250 | ||
26251 | ||
26252 | static PyObject *_wrap_TreeCtrl_IsSelected(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26253 | PyObject *resultobj; | |
26254 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26255 | wxTreeItemId *arg2 = 0 ; | |
26256 | bool result; | |
26257 | PyObject * obj0 = 0 ; | |
26258 | PyObject * obj1 = 0 ; | |
26259 | char *kwnames[] = { | |
26260 | (char *) "self",(char *) "item", NULL | |
26261 | }; | |
26262 | ||
26263 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsSelected",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26264 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26265 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26266 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26267 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26268 | SWIG_fail; | |
d14a1e28 | 26269 | if (arg2 == NULL) { |
15afbcd0 RD |
26270 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26271 | SWIG_fail; | |
d14a1e28 RD |
26272 | } |
26273 | { | |
26274 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26275 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsSelected((wxTreeItemId const &)*arg2); | |
26276 | ||
26277 | wxPyEndAllowThreads(__tstate); | |
26278 | if (PyErr_Occurred()) SWIG_fail; | |
26279 | } | |
4f89f6a3 RD |
26280 | { |
26281 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26282 | } | |
d14a1e28 RD |
26283 | return resultobj; |
26284 | fail: | |
26285 | return NULL; | |
26286 | } | |
26287 | ||
26288 | ||
26289 | static PyObject *_wrap_TreeCtrl_IsBold(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26290 | PyObject *resultobj; | |
26291 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26292 | wxTreeItemId *arg2 = 0 ; | |
26293 | bool result; | |
26294 | PyObject * obj0 = 0 ; | |
26295 | PyObject * obj1 = 0 ; | |
26296 | char *kwnames[] = { | |
26297 | (char *) "self",(char *) "item", NULL | |
26298 | }; | |
26299 | ||
26300 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_IsBold",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26301 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26302 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26303 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26304 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26305 | SWIG_fail; | |
d14a1e28 | 26306 | if (arg2 == NULL) { |
15afbcd0 RD |
26307 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26308 | SWIG_fail; | |
d14a1e28 RD |
26309 | } |
26310 | { | |
26311 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26312 | result = (bool)((wxPyTreeCtrl const *)arg1)->IsBold((wxTreeItemId const &)*arg2); | |
26313 | ||
26314 | wxPyEndAllowThreads(__tstate); | |
26315 | if (PyErr_Occurred()) SWIG_fail; | |
26316 | } | |
4f89f6a3 RD |
26317 | { |
26318 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
26319 | } | |
d14a1e28 RD |
26320 | return resultobj; |
26321 | fail: | |
26322 | return NULL; | |
26323 | } | |
26324 | ||
26325 | ||
26326 | static PyObject *_wrap_TreeCtrl_GetChildrenCount(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26327 | PyObject *resultobj; | |
26328 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26329 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 26330 | bool arg3 = (bool) True ; |
d14a1e28 RD |
26331 | size_t result; |
26332 | PyObject * obj0 = 0 ; | |
26333 | PyObject * obj1 = 0 ; | |
26334 | PyObject * obj2 = 0 ; | |
26335 | char *kwnames[] = { | |
26336 | (char *) "self",(char *) "item",(char *) "recursively", NULL | |
26337 | }; | |
26338 | ||
26339 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetChildrenCount",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26340 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26341 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26342 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26343 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26344 | SWIG_fail; | |
d14a1e28 | 26345 | if (arg2 == NULL) { |
15afbcd0 RD |
26346 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26347 | SWIG_fail; | |
d14a1e28 RD |
26348 | } |
26349 | if (obj2) { | |
15afbcd0 RD |
26350 | arg3 = (bool) SWIG_AsBool(obj2); |
26351 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
26352 | } |
26353 | { | |
26354 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26355 | result = (size_t)(arg1)->GetChildrenCount((wxTreeItemId const &)*arg2,arg3); | |
26356 | ||
26357 | wxPyEndAllowThreads(__tstate); | |
26358 | if (PyErr_Occurred()) SWIG_fail; | |
26359 | } | |
15afbcd0 | 26360 | resultobj = SWIG_FromUnsignedLong((unsigned long)result); |
d14a1e28 RD |
26361 | return resultobj; |
26362 | fail: | |
26363 | return NULL; | |
26364 | } | |
26365 | ||
26366 | ||
26367 | static PyObject *_wrap_TreeCtrl_GetRootItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26368 | PyObject *resultobj; | |
26369 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26370 | wxTreeItemId result; | |
26371 | PyObject * obj0 = 0 ; | |
26372 | char *kwnames[] = { | |
26373 | (char *) "self", NULL | |
26374 | }; | |
26375 | ||
26376 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetRootItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26377 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26378 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26379 | { |
26380 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26381 | result = ((wxPyTreeCtrl const *)arg1)->GetRootItem(); | |
26382 | ||
26383 | wxPyEndAllowThreads(__tstate); | |
26384 | if (PyErr_Occurred()) SWIG_fail; | |
26385 | } | |
26386 | { | |
26387 | wxTreeItemId * resultptr; | |
26388 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26389 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26390 | } |
26391 | return resultobj; | |
26392 | fail: | |
26393 | return NULL; | |
26394 | } | |
26395 | ||
26396 | ||
26397 | static PyObject *_wrap_TreeCtrl_GetSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26398 | PyObject *resultobj; | |
26399 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26400 | wxTreeItemId result; | |
26401 | PyObject * obj0 = 0 ; | |
26402 | char *kwnames[] = { | |
26403 | (char *) "self", NULL | |
26404 | }; | |
26405 | ||
26406 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelection",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26407 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26408 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26409 | { |
26410 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26411 | result = ((wxPyTreeCtrl const *)arg1)->GetSelection(); | |
26412 | ||
26413 | wxPyEndAllowThreads(__tstate); | |
26414 | if (PyErr_Occurred()) SWIG_fail; | |
26415 | } | |
26416 | { | |
26417 | wxTreeItemId * resultptr; | |
26418 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26419 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26420 | } |
26421 | return resultobj; | |
26422 | fail: | |
26423 | return NULL; | |
26424 | } | |
26425 | ||
26426 | ||
26427 | static PyObject *_wrap_TreeCtrl_GetSelections(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26428 | PyObject *resultobj; | |
26429 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26430 | PyObject *result; | |
26431 | PyObject * obj0 = 0 ; | |
26432 | char *kwnames[] = { | |
26433 | (char *) "self", NULL | |
26434 | }; | |
26435 | ||
26436 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetSelections",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26437 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26438 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26439 | { |
26440 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26441 | result = (PyObject *)wxPyTreeCtrl_GetSelections(arg1); | |
26442 | ||
26443 | wxPyEndAllowThreads(__tstate); | |
26444 | if (PyErr_Occurred()) SWIG_fail; | |
26445 | } | |
26446 | resultobj = result; | |
26447 | return resultobj; | |
26448 | fail: | |
26449 | return NULL; | |
26450 | } | |
26451 | ||
26452 | ||
26453 | static PyObject *_wrap_TreeCtrl_GetItemParent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26454 | PyObject *resultobj; | |
26455 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26456 | wxTreeItemId *arg2 = 0 ; | |
26457 | wxTreeItemId result; | |
26458 | PyObject * obj0 = 0 ; | |
26459 | PyObject * obj1 = 0 ; | |
26460 | char *kwnames[] = { | |
26461 | (char *) "self",(char *) "item", NULL | |
26462 | }; | |
26463 | ||
26464 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetItemParent",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26465 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26466 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26467 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26468 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26469 | SWIG_fail; | |
d14a1e28 | 26470 | if (arg2 == NULL) { |
15afbcd0 RD |
26471 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26472 | SWIG_fail; | |
d14a1e28 RD |
26473 | } |
26474 | { | |
26475 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26476 | result = ((wxPyTreeCtrl const *)arg1)->GetItemParent((wxTreeItemId const &)*arg2); | |
26477 | ||
26478 | wxPyEndAllowThreads(__tstate); | |
26479 | if (PyErr_Occurred()) SWIG_fail; | |
26480 | } | |
26481 | { | |
26482 | wxTreeItemId * resultptr; | |
26483 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26484 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26485 | } |
26486 | return resultobj; | |
26487 | fail: | |
26488 | return NULL; | |
26489 | } | |
26490 | ||
26491 | ||
26492 | static PyObject *_wrap_TreeCtrl_GetFirstChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26493 | PyObject *resultobj; | |
26494 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26495 | wxTreeItemId *arg2 = 0 ; | |
26496 | PyObject *result; | |
26497 | PyObject * obj0 = 0 ; | |
26498 | PyObject * obj1 = 0 ; | |
26499 | char *kwnames[] = { | |
26500 | (char *) "self",(char *) "item", NULL | |
26501 | }; | |
26502 | ||
26503 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetFirstChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26504 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26505 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26506 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26507 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26508 | SWIG_fail; | |
d14a1e28 | 26509 | if (arg2 == NULL) { |
15afbcd0 RD |
26510 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26511 | SWIG_fail; | |
d14a1e28 RD |
26512 | } |
26513 | { | |
26514 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26515 | result = (PyObject *)wxPyTreeCtrl_GetFirstChild(arg1,(wxTreeItemId const &)*arg2); | |
26516 | ||
26517 | wxPyEndAllowThreads(__tstate); | |
26518 | if (PyErr_Occurred()) SWIG_fail; | |
26519 | } | |
26520 | resultobj = result; | |
26521 | return resultobj; | |
26522 | fail: | |
26523 | return NULL; | |
26524 | } | |
26525 | ||
26526 | ||
26527 | static PyObject *_wrap_TreeCtrl_GetNextChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26528 | PyObject *resultobj; | |
26529 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26530 | wxTreeItemId *arg2 = 0 ; | |
58203fa6 | 26531 | void *arg3 = (void *) 0 ; |
d14a1e28 RD |
26532 | PyObject *result; |
26533 | PyObject * obj0 = 0 ; | |
26534 | PyObject * obj1 = 0 ; | |
26535 | PyObject * obj2 = 0 ; | |
26536 | char *kwnames[] = { | |
26537 | (char *) "self",(char *) "item",(char *) "cookie", NULL | |
26538 | }; | |
26539 | ||
26540 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:TreeCtrl_GetNextChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
26541 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26542 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26543 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26544 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26545 | SWIG_fail; | |
d14a1e28 | 26546 | if (arg2 == NULL) { |
15afbcd0 RD |
26547 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26548 | SWIG_fail; | |
d14a1e28 | 26549 | } |
15afbcd0 | 26550 | if ((SWIG_ConvertPtr(obj2,&arg3,0,SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; |
d14a1e28 RD |
26551 | { |
26552 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
58203fa6 | 26553 | result = (PyObject *)wxPyTreeCtrl_GetNextChild(arg1,(wxTreeItemId const &)*arg2,arg3); |
d14a1e28 RD |
26554 | |
26555 | wxPyEndAllowThreads(__tstate); | |
26556 | if (PyErr_Occurred()) SWIG_fail; | |
26557 | } | |
26558 | resultobj = result; | |
26559 | return resultobj; | |
26560 | fail: | |
26561 | return NULL; | |
26562 | } | |
26563 | ||
26564 | ||
26565 | static PyObject *_wrap_TreeCtrl_GetLastChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26566 | PyObject *resultobj; | |
26567 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26568 | wxTreeItemId *arg2 = 0 ; | |
26569 | wxTreeItemId result; | |
26570 | PyObject * obj0 = 0 ; | |
26571 | PyObject * obj1 = 0 ; | |
26572 | char *kwnames[] = { | |
26573 | (char *) "self",(char *) "item", NULL | |
26574 | }; | |
26575 | ||
26576 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetLastChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26577 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26578 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26579 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26580 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26581 | SWIG_fail; | |
d14a1e28 | 26582 | if (arg2 == NULL) { |
15afbcd0 RD |
26583 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26584 | SWIG_fail; | |
d14a1e28 RD |
26585 | } |
26586 | { | |
26587 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26588 | result = ((wxPyTreeCtrl const *)arg1)->GetLastChild((wxTreeItemId const &)*arg2); | |
26589 | ||
26590 | wxPyEndAllowThreads(__tstate); | |
26591 | if (PyErr_Occurred()) SWIG_fail; | |
26592 | } | |
26593 | { | |
26594 | wxTreeItemId * resultptr; | |
26595 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26596 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26597 | } |
26598 | return resultobj; | |
26599 | fail: | |
26600 | return NULL; | |
26601 | } | |
26602 | ||
26603 | ||
26604 | static PyObject *_wrap_TreeCtrl_GetNextSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26605 | PyObject *resultobj; | |
26606 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26607 | wxTreeItemId *arg2 = 0 ; | |
26608 | wxTreeItemId result; | |
26609 | PyObject * obj0 = 0 ; | |
26610 | PyObject * obj1 = 0 ; | |
26611 | char *kwnames[] = { | |
26612 | (char *) "self",(char *) "item", NULL | |
26613 | }; | |
26614 | ||
26615 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26616 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26617 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26618 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26619 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26620 | SWIG_fail; | |
d14a1e28 | 26621 | if (arg2 == NULL) { |
15afbcd0 RD |
26622 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26623 | SWIG_fail; | |
d14a1e28 RD |
26624 | } |
26625 | { | |
26626 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26627 | result = ((wxPyTreeCtrl const *)arg1)->GetNextSibling((wxTreeItemId const &)*arg2); | |
26628 | ||
26629 | wxPyEndAllowThreads(__tstate); | |
26630 | if (PyErr_Occurred()) SWIG_fail; | |
26631 | } | |
26632 | { | |
26633 | wxTreeItemId * resultptr; | |
26634 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26635 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26636 | } |
26637 | return resultobj; | |
26638 | fail: | |
26639 | return NULL; | |
26640 | } | |
26641 | ||
26642 | ||
26643 | static PyObject *_wrap_TreeCtrl_GetPrevSibling(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26644 | PyObject *resultobj; | |
26645 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26646 | wxTreeItemId *arg2 = 0 ; | |
26647 | wxTreeItemId result; | |
26648 | PyObject * obj0 = 0 ; | |
26649 | PyObject * obj1 = 0 ; | |
26650 | char *kwnames[] = { | |
26651 | (char *) "self",(char *) "item", NULL | |
26652 | }; | |
26653 | ||
26654 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevSibling",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26655 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26656 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26657 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26658 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26659 | SWIG_fail; | |
d14a1e28 | 26660 | if (arg2 == NULL) { |
15afbcd0 RD |
26661 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26662 | SWIG_fail; | |
d14a1e28 RD |
26663 | } |
26664 | { | |
26665 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26666 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevSibling((wxTreeItemId const &)*arg2); | |
26667 | ||
26668 | wxPyEndAllowThreads(__tstate); | |
26669 | if (PyErr_Occurred()) SWIG_fail; | |
26670 | } | |
26671 | { | |
26672 | wxTreeItemId * resultptr; | |
26673 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26674 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26675 | } |
26676 | return resultobj; | |
26677 | fail: | |
26678 | return NULL; | |
26679 | } | |
26680 | ||
26681 | ||
26682 | static PyObject *_wrap_TreeCtrl_GetFirstVisibleItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26683 | PyObject *resultobj; | |
26684 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26685 | wxTreeItemId result; | |
26686 | PyObject * obj0 = 0 ; | |
26687 | char *kwnames[] = { | |
26688 | (char *) "self", NULL | |
26689 | }; | |
26690 | ||
26691 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetFirstVisibleItem",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
26692 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26693 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26694 | { |
26695 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26696 | result = ((wxPyTreeCtrl const *)arg1)->GetFirstVisibleItem(); | |
26697 | ||
26698 | wxPyEndAllowThreads(__tstate); | |
26699 | if (PyErr_Occurred()) SWIG_fail; | |
26700 | } | |
26701 | { | |
26702 | wxTreeItemId * resultptr; | |
26703 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26704 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26705 | } |
26706 | return resultobj; | |
26707 | fail: | |
26708 | return NULL; | |
26709 | } | |
26710 | ||
26711 | ||
26712 | static PyObject *_wrap_TreeCtrl_GetNextVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26713 | PyObject *resultobj; | |
26714 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26715 | wxTreeItemId *arg2 = 0 ; | |
26716 | wxTreeItemId result; | |
26717 | PyObject * obj0 = 0 ; | |
26718 | PyObject * obj1 = 0 ; | |
26719 | char *kwnames[] = { | |
26720 | (char *) "self",(char *) "item", NULL | |
26721 | }; | |
26722 | ||
26723 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetNextVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26724 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26725 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26726 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26727 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26728 | SWIG_fail; | |
d14a1e28 | 26729 | if (arg2 == NULL) { |
15afbcd0 RD |
26730 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26731 | SWIG_fail; | |
d14a1e28 RD |
26732 | } |
26733 | { | |
26734 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26735 | result = ((wxPyTreeCtrl const *)arg1)->GetNextVisible((wxTreeItemId const &)*arg2); | |
26736 | ||
26737 | wxPyEndAllowThreads(__tstate); | |
26738 | if (PyErr_Occurred()) SWIG_fail; | |
26739 | } | |
26740 | { | |
26741 | wxTreeItemId * resultptr; | |
26742 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26743 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26744 | } |
26745 | return resultobj; | |
26746 | fail: | |
26747 | return NULL; | |
26748 | } | |
26749 | ||
26750 | ||
26751 | static PyObject *_wrap_TreeCtrl_GetPrevVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26752 | PyObject *resultobj; | |
26753 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26754 | wxTreeItemId *arg2 = 0 ; | |
26755 | wxTreeItemId result; | |
26756 | PyObject * obj0 = 0 ; | |
26757 | PyObject * obj1 = 0 ; | |
26758 | char *kwnames[] = { | |
26759 | (char *) "self",(char *) "item", NULL | |
26760 | }; | |
26761 | ||
26762 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_GetPrevVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
26763 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26764 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26765 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26766 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26767 | SWIG_fail; | |
d14a1e28 | 26768 | if (arg2 == NULL) { |
15afbcd0 RD |
26769 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26770 | SWIG_fail; | |
d14a1e28 RD |
26771 | } |
26772 | { | |
26773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26774 | result = ((wxPyTreeCtrl const *)arg1)->GetPrevVisible((wxTreeItemId const &)*arg2); | |
26775 | ||
26776 | wxPyEndAllowThreads(__tstate); | |
26777 | if (PyErr_Occurred()) SWIG_fail; | |
26778 | } | |
26779 | { | |
26780 | wxTreeItemId * resultptr; | |
26781 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26782 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26783 | } |
26784 | return resultobj; | |
26785 | fail: | |
26786 | return NULL; | |
26787 | } | |
26788 | ||
26789 | ||
26790 | static PyObject *_wrap_TreeCtrl_AddRoot(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26791 | PyObject *resultobj; | |
26792 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26793 | wxString *arg2 = 0 ; | |
26794 | int arg3 = (int) -1 ; | |
26795 | int arg4 = (int) -1 ; | |
26796 | wxPyTreeItemData *arg5 = (wxPyTreeItemData *) NULL ; | |
26797 | wxTreeItemId result; | |
e811c8ce | 26798 | bool temp2 = False ; |
d14a1e28 RD |
26799 | PyObject * obj0 = 0 ; |
26800 | PyObject * obj1 = 0 ; | |
994141e6 RD |
26801 | PyObject * obj2 = 0 ; |
26802 | PyObject * obj3 = 0 ; | |
d14a1e28 RD |
26803 | PyObject * obj4 = 0 ; |
26804 | char *kwnames[] = { | |
26805 | (char *) "self",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26806 | }; | |
26807 | ||
994141e6 | 26808 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOO:TreeCtrl_AddRoot",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
26809 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26810 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26811 | { |
26812 | arg2 = wxString_in_helper(obj1); | |
26813 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 26814 | temp2 = True; |
d14a1e28 | 26815 | } |
994141e6 | 26816 | if (obj2) { |
15afbcd0 RD |
26817 | arg3 = (int) SWIG_AsInt(obj2); |
26818 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26819 | } |
26820 | if (obj3) { | |
15afbcd0 RD |
26821 | arg4 = (int) SWIG_AsInt(obj3); |
26822 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26823 | } |
d14a1e28 | 26824 | if (obj4) { |
15afbcd0 RD |
26825 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxPyTreeItemData, |
26826 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26827 | } |
26828 | { | |
26829 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26830 | result = (arg1)->AddRoot((wxString const &)*arg2,arg3,arg4,arg5); | |
26831 | ||
26832 | wxPyEndAllowThreads(__tstate); | |
26833 | if (PyErr_Occurred()) SWIG_fail; | |
26834 | } | |
26835 | { | |
26836 | wxTreeItemId * resultptr; | |
26837 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26838 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26839 | } |
26840 | { | |
26841 | if (temp2) | |
26842 | delete arg2; | |
26843 | } | |
26844 | return resultobj; | |
26845 | fail: | |
26846 | { | |
26847 | if (temp2) | |
26848 | delete arg2; | |
26849 | } | |
26850 | return NULL; | |
26851 | } | |
26852 | ||
26853 | ||
26854 | static PyObject *_wrap_TreeCtrl_PrependItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26855 | PyObject *resultobj; | |
26856 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26857 | wxTreeItemId *arg2 = 0 ; | |
26858 | wxString *arg3 = 0 ; | |
26859 | int arg4 = (int) -1 ; | |
26860 | int arg5 = (int) -1 ; | |
26861 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
26862 | wxTreeItemId result; | |
e811c8ce | 26863 | bool temp3 = False ; |
d14a1e28 RD |
26864 | PyObject * obj0 = 0 ; |
26865 | PyObject * obj1 = 0 ; | |
26866 | PyObject * obj2 = 0 ; | |
994141e6 RD |
26867 | PyObject * obj3 = 0 ; |
26868 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
26869 | PyObject * obj5 = 0 ; |
26870 | char *kwnames[] = { | |
26871 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26872 | }; | |
26873 | ||
994141e6 | 26874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_PrependItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
26875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26877 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26878 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26879 | SWIG_fail; | |
d14a1e28 | 26880 | if (arg2 == NULL) { |
15afbcd0 RD |
26881 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26882 | SWIG_fail; | |
d14a1e28 RD |
26883 | } |
26884 | { | |
26885 | arg3 = wxString_in_helper(obj2); | |
26886 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 26887 | temp3 = True; |
d14a1e28 | 26888 | } |
994141e6 | 26889 | if (obj3) { |
15afbcd0 RD |
26890 | arg4 = (int) SWIG_AsInt(obj3); |
26891 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26892 | } |
26893 | if (obj4) { | |
15afbcd0 RD |
26894 | arg5 = (int) SWIG_AsInt(obj4); |
26895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26896 | } |
d14a1e28 | 26897 | if (obj5) { |
15afbcd0 RD |
26898 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
26899 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26900 | } |
26901 | { | |
26902 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26903 | result = (arg1)->PrependItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
26904 | ||
26905 | wxPyEndAllowThreads(__tstate); | |
26906 | if (PyErr_Occurred()) SWIG_fail; | |
26907 | } | |
26908 | { | |
26909 | wxTreeItemId * resultptr; | |
26910 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26911 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26912 | } |
26913 | { | |
26914 | if (temp3) | |
26915 | delete arg3; | |
26916 | } | |
26917 | return resultobj; | |
26918 | fail: | |
26919 | { | |
26920 | if (temp3) | |
26921 | delete arg3; | |
26922 | } | |
26923 | return NULL; | |
26924 | } | |
26925 | ||
26926 | ||
26927 | static PyObject *_wrap_TreeCtrl_InsertItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
26928 | PyObject *resultobj; | |
26929 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
26930 | wxTreeItemId *arg2 = 0 ; | |
26931 | wxTreeItemId *arg3 = 0 ; | |
26932 | wxString *arg4 = 0 ; | |
26933 | int arg5 = (int) -1 ; | |
26934 | int arg6 = (int) -1 ; | |
26935 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
26936 | wxTreeItemId result; | |
e811c8ce | 26937 | bool temp4 = False ; |
d14a1e28 RD |
26938 | PyObject * obj0 = 0 ; |
26939 | PyObject * obj1 = 0 ; | |
26940 | PyObject * obj2 = 0 ; | |
26941 | PyObject * obj3 = 0 ; | |
994141e6 RD |
26942 | PyObject * obj4 = 0 ; |
26943 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
26944 | PyObject * obj6 = 0 ; |
26945 | char *kwnames[] = { | |
26946 | (char *) "self",(char *) "parent",(char *) "idPrevious",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
26947 | }; | |
26948 | ||
994141e6 | 26949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
26950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
26951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
26952 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
26953 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26954 | SWIG_fail; | |
d14a1e28 | 26955 | if (arg2 == NULL) { |
15afbcd0 RD |
26956 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26957 | SWIG_fail; | |
d14a1e28 | 26958 | } |
15afbcd0 RD |
26959 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxTreeItemId, |
26960 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
26961 | SWIG_fail; | |
d14a1e28 | 26962 | if (arg3 == NULL) { |
15afbcd0 RD |
26963 | PyErr_SetString(PyExc_TypeError,"null reference"); |
26964 | SWIG_fail; | |
d14a1e28 RD |
26965 | } |
26966 | { | |
26967 | arg4 = wxString_in_helper(obj3); | |
26968 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 26969 | temp4 = True; |
d14a1e28 | 26970 | } |
994141e6 | 26971 | if (obj4) { |
15afbcd0 RD |
26972 | arg5 = (int) SWIG_AsInt(obj4); |
26973 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
26974 | } |
26975 | if (obj5) { | |
15afbcd0 RD |
26976 | arg6 = (int) SWIG_AsInt(obj5); |
26977 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 26978 | } |
d14a1e28 | 26979 | if (obj6) { |
15afbcd0 RD |
26980 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
26981 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
26982 | } |
26983 | { | |
26984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
26985 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,(wxTreeItemId const &)*arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
26986 | ||
26987 | wxPyEndAllowThreads(__tstate); | |
26988 | if (PyErr_Occurred()) SWIG_fail; | |
26989 | } | |
26990 | { | |
26991 | wxTreeItemId * resultptr; | |
26992 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 26993 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
26994 | } |
26995 | { | |
26996 | if (temp4) | |
26997 | delete arg4; | |
26998 | } | |
26999 | return resultobj; | |
27000 | fail: | |
27001 | { | |
27002 | if (temp4) | |
27003 | delete arg4; | |
27004 | } | |
27005 | return NULL; | |
27006 | } | |
27007 | ||
27008 | ||
27009 | static PyObject *_wrap_TreeCtrl_InsertItemBefore(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27010 | PyObject *resultobj; | |
27011 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27012 | wxTreeItemId *arg2 = 0 ; | |
27013 | size_t arg3 ; | |
27014 | wxString *arg4 = 0 ; | |
27015 | int arg5 = (int) -1 ; | |
27016 | int arg6 = (int) -1 ; | |
27017 | wxPyTreeItemData *arg7 = (wxPyTreeItemData *) NULL ; | |
27018 | wxTreeItemId result; | |
e811c8ce | 27019 | bool temp4 = False ; |
d14a1e28 RD |
27020 | PyObject * obj0 = 0 ; |
27021 | PyObject * obj1 = 0 ; | |
27022 | PyObject * obj2 = 0 ; | |
27023 | PyObject * obj3 = 0 ; | |
994141e6 RD |
27024 | PyObject * obj4 = 0 ; |
27025 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
27026 | PyObject * obj6 = 0 ; |
27027 | char *kwnames[] = { | |
27028 | (char *) "self",(char *) "parent",(char *) "index",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27029 | }; | |
27030 | ||
994141e6 | 27031 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO|OOO:TreeCtrl_InsertItemBefore",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
27032 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27033 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27034 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27035 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27036 | SWIG_fail; | |
d14a1e28 | 27037 | if (arg2 == NULL) { |
15afbcd0 RD |
27038 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27039 | SWIG_fail; | |
a41e16b6 | 27040 | } |
15afbcd0 RD |
27041 | arg3 = (size_t) SWIG_AsUnsignedLong(obj2); |
27042 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27043 | { |
27044 | arg4 = wxString_in_helper(obj3); | |
27045 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 27046 | temp4 = True; |
d14a1e28 | 27047 | } |
994141e6 | 27048 | if (obj4) { |
15afbcd0 RD |
27049 | arg5 = (int) SWIG_AsInt(obj4); |
27050 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
27051 | } |
27052 | if (obj5) { | |
15afbcd0 RD |
27053 | arg6 = (int) SWIG_AsInt(obj5); |
27054 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27055 | } |
d14a1e28 | 27056 | if (obj6) { |
15afbcd0 RD |
27057 | if ((SWIG_ConvertPtr(obj6,(void **)(&arg7),SWIGTYPE_p_wxPyTreeItemData, |
27058 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27059 | } |
27060 | { | |
27061 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27062 | result = (arg1)->InsertItem((wxTreeItemId const &)*arg2,arg3,(wxString const &)*arg4,arg5,arg6,arg7); | |
27063 | ||
27064 | wxPyEndAllowThreads(__tstate); | |
27065 | if (PyErr_Occurred()) SWIG_fail; | |
27066 | } | |
27067 | { | |
27068 | wxTreeItemId * resultptr; | |
27069 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27070 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27071 | } |
27072 | { | |
27073 | if (temp4) | |
27074 | delete arg4; | |
27075 | } | |
27076 | return resultobj; | |
27077 | fail: | |
27078 | { | |
27079 | if (temp4) | |
27080 | delete arg4; | |
27081 | } | |
27082 | return NULL; | |
27083 | } | |
27084 | ||
27085 | ||
27086 | static PyObject *_wrap_TreeCtrl_AppendItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27087 | PyObject *resultobj; | |
27088 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27089 | wxTreeItemId *arg2 = 0 ; | |
27090 | wxString *arg3 = 0 ; | |
27091 | int arg4 = (int) -1 ; | |
27092 | int arg5 = (int) -1 ; | |
27093 | wxPyTreeItemData *arg6 = (wxPyTreeItemData *) NULL ; | |
27094 | wxTreeItemId result; | |
e811c8ce | 27095 | bool temp3 = False ; |
d14a1e28 RD |
27096 | PyObject * obj0 = 0 ; |
27097 | PyObject * obj1 = 0 ; | |
27098 | PyObject * obj2 = 0 ; | |
994141e6 RD |
27099 | PyObject * obj3 = 0 ; |
27100 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
27101 | PyObject * obj5 = 0 ; |
27102 | char *kwnames[] = { | |
27103 | (char *) "self",(char *) "parent",(char *) "text",(char *) "image",(char *) "selectedImage",(char *) "data", NULL | |
27104 | }; | |
27105 | ||
994141e6 | 27106 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OOO:TreeCtrl_AppendItem",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
27107 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27108 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27109 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27110 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27111 | SWIG_fail; | |
d14a1e28 | 27112 | if (arg2 == NULL) { |
15afbcd0 RD |
27113 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27114 | SWIG_fail; | |
d14a1e28 RD |
27115 | } |
27116 | { | |
27117 | arg3 = wxString_in_helper(obj2); | |
27118 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27119 | temp3 = True; |
d14a1e28 | 27120 | } |
994141e6 | 27121 | if (obj3) { |
15afbcd0 RD |
27122 | arg4 = (int) SWIG_AsInt(obj3); |
27123 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
27124 | } |
27125 | if (obj4) { | |
15afbcd0 RD |
27126 | arg5 = (int) SWIG_AsInt(obj4); |
27127 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27128 | } |
d14a1e28 | 27129 | if (obj5) { |
15afbcd0 RD |
27130 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxPyTreeItemData, |
27131 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27132 | } |
27133 | { | |
27134 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27135 | result = (arg1)->AppendItem((wxTreeItemId const &)*arg2,(wxString const &)*arg3,arg4,arg5,arg6); | |
27136 | ||
27137 | wxPyEndAllowThreads(__tstate); | |
27138 | if (PyErr_Occurred()) SWIG_fail; | |
27139 | } | |
27140 | { | |
27141 | wxTreeItemId * resultptr; | |
27142 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27143 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27144 | } |
27145 | { | |
27146 | if (temp3) | |
27147 | delete arg3; | |
27148 | } | |
27149 | return resultobj; | |
27150 | fail: | |
27151 | { | |
27152 | if (temp3) | |
27153 | delete arg3; | |
27154 | } | |
27155 | return NULL; | |
27156 | } | |
27157 | ||
27158 | ||
27159 | static PyObject *_wrap_TreeCtrl_Delete(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27160 | PyObject *resultobj; | |
27161 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27162 | wxTreeItemId *arg2 = 0 ; | |
27163 | PyObject * obj0 = 0 ; | |
27164 | PyObject * obj1 = 0 ; | |
27165 | char *kwnames[] = { | |
27166 | (char *) "self",(char *) "item", NULL | |
27167 | }; | |
27168 | ||
27169 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Delete",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27170 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27171 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27172 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27173 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27174 | SWIG_fail; | |
d14a1e28 | 27175 | if (arg2 == NULL) { |
15afbcd0 RD |
27176 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27177 | SWIG_fail; | |
d14a1e28 RD |
27178 | } |
27179 | { | |
27180 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27181 | (arg1)->Delete((wxTreeItemId const &)*arg2); | |
27182 | ||
27183 | wxPyEndAllowThreads(__tstate); | |
27184 | if (PyErr_Occurred()) SWIG_fail; | |
27185 | } | |
27186 | Py_INCREF(Py_None); resultobj = Py_None; | |
27187 | return resultobj; | |
27188 | fail: | |
27189 | return NULL; | |
27190 | } | |
27191 | ||
27192 | ||
27193 | static PyObject *_wrap_TreeCtrl_DeleteChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27194 | PyObject *resultobj; | |
27195 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27196 | wxTreeItemId *arg2 = 0 ; | |
27197 | PyObject * obj0 = 0 ; | |
27198 | PyObject * obj1 = 0 ; | |
27199 | char *kwnames[] = { | |
27200 | (char *) "self",(char *) "item", NULL | |
27201 | }; | |
27202 | ||
27203 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_DeleteChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27204 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27205 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27206 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27207 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27208 | SWIG_fail; | |
d14a1e28 | 27209 | if (arg2 == NULL) { |
15afbcd0 RD |
27210 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27211 | SWIG_fail; | |
d14a1e28 RD |
27212 | } |
27213 | { | |
27214 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27215 | (arg1)->DeleteChildren((wxTreeItemId const &)*arg2); | |
27216 | ||
27217 | wxPyEndAllowThreads(__tstate); | |
27218 | if (PyErr_Occurred()) SWIG_fail; | |
27219 | } | |
27220 | Py_INCREF(Py_None); resultobj = Py_None; | |
27221 | return resultobj; | |
27222 | fail: | |
27223 | return NULL; | |
27224 | } | |
27225 | ||
27226 | ||
27227 | static PyObject *_wrap_TreeCtrl_DeleteAllItems(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27228 | PyObject *resultobj; | |
27229 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27230 | PyObject * obj0 = 0 ; | |
27231 | char *kwnames[] = { | |
27232 | (char *) "self", NULL | |
27233 | }; | |
27234 | ||
27235 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_DeleteAllItems",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27236 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27237 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27238 | { |
27239 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27240 | (arg1)->DeleteAllItems(); | |
27241 | ||
27242 | wxPyEndAllowThreads(__tstate); | |
27243 | if (PyErr_Occurred()) SWIG_fail; | |
27244 | } | |
27245 | Py_INCREF(Py_None); resultobj = Py_None; | |
27246 | return resultobj; | |
27247 | fail: | |
27248 | return NULL; | |
27249 | } | |
27250 | ||
27251 | ||
27252 | static PyObject *_wrap_TreeCtrl_Expand(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27253 | PyObject *resultobj; | |
27254 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27255 | wxTreeItemId *arg2 = 0 ; | |
27256 | PyObject * obj0 = 0 ; | |
27257 | PyObject * obj1 = 0 ; | |
27258 | char *kwnames[] = { | |
27259 | (char *) "self",(char *) "item", NULL | |
27260 | }; | |
27261 | ||
27262 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Expand",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27263 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27264 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27265 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27266 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27267 | SWIG_fail; | |
d14a1e28 | 27268 | if (arg2 == NULL) { |
15afbcd0 RD |
27269 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27270 | SWIG_fail; | |
d14a1e28 RD |
27271 | } |
27272 | { | |
27273 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27274 | (arg1)->Expand((wxTreeItemId const &)*arg2); | |
27275 | ||
27276 | wxPyEndAllowThreads(__tstate); | |
27277 | if (PyErr_Occurred()) SWIG_fail; | |
27278 | } | |
27279 | Py_INCREF(Py_None); resultobj = Py_None; | |
27280 | return resultobj; | |
27281 | fail: | |
27282 | return NULL; | |
27283 | } | |
27284 | ||
27285 | ||
27286 | static PyObject *_wrap_TreeCtrl_Collapse(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27287 | PyObject *resultobj; | |
27288 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27289 | wxTreeItemId *arg2 = 0 ; | |
27290 | PyObject * obj0 = 0 ; | |
27291 | PyObject * obj1 = 0 ; | |
27292 | char *kwnames[] = { | |
27293 | (char *) "self",(char *) "item", NULL | |
27294 | }; | |
27295 | ||
27296 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Collapse",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27297 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27298 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27299 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27300 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27301 | SWIG_fail; | |
d14a1e28 | 27302 | if (arg2 == NULL) { |
15afbcd0 RD |
27303 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27304 | SWIG_fail; | |
d14a1e28 RD |
27305 | } |
27306 | { | |
27307 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27308 | (arg1)->Collapse((wxTreeItemId const &)*arg2); | |
27309 | ||
27310 | wxPyEndAllowThreads(__tstate); | |
27311 | if (PyErr_Occurred()) SWIG_fail; | |
27312 | } | |
27313 | Py_INCREF(Py_None); resultobj = Py_None; | |
27314 | return resultobj; | |
27315 | fail: | |
27316 | return NULL; | |
27317 | } | |
27318 | ||
27319 | ||
27320 | static PyObject *_wrap_TreeCtrl_CollapseAndReset(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27321 | PyObject *resultobj; | |
27322 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27323 | wxTreeItemId *arg2 = 0 ; | |
27324 | PyObject * obj0 = 0 ; | |
27325 | PyObject * obj1 = 0 ; | |
27326 | char *kwnames[] = { | |
27327 | (char *) "self",(char *) "item", NULL | |
27328 | }; | |
27329 | ||
27330 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_CollapseAndReset",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27331 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27332 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27333 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27334 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27335 | SWIG_fail; | |
d14a1e28 | 27336 | if (arg2 == NULL) { |
15afbcd0 RD |
27337 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27338 | SWIG_fail; | |
d14a1e28 RD |
27339 | } |
27340 | { | |
27341 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27342 | (arg1)->CollapseAndReset((wxTreeItemId const &)*arg2); | |
27343 | ||
27344 | wxPyEndAllowThreads(__tstate); | |
27345 | if (PyErr_Occurred()) SWIG_fail; | |
27346 | } | |
27347 | Py_INCREF(Py_None); resultobj = Py_None; | |
27348 | return resultobj; | |
27349 | fail: | |
27350 | return NULL; | |
27351 | } | |
27352 | ||
27353 | ||
27354 | static PyObject *_wrap_TreeCtrl_Toggle(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27355 | PyObject *resultobj; | |
27356 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27357 | wxTreeItemId *arg2 = 0 ; | |
27358 | PyObject * obj0 = 0 ; | |
27359 | PyObject * obj1 = 0 ; | |
27360 | char *kwnames[] = { | |
27361 | (char *) "self",(char *) "item", NULL | |
27362 | }; | |
27363 | ||
27364 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_Toggle",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27365 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27366 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27367 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27368 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27369 | SWIG_fail; | |
d14a1e28 | 27370 | if (arg2 == NULL) { |
15afbcd0 RD |
27371 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27372 | SWIG_fail; | |
d14a1e28 RD |
27373 | } |
27374 | { | |
27375 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27376 | (arg1)->Toggle((wxTreeItemId const &)*arg2); | |
27377 | ||
27378 | wxPyEndAllowThreads(__tstate); | |
27379 | if (PyErr_Occurred()) SWIG_fail; | |
27380 | } | |
27381 | Py_INCREF(Py_None); resultobj = Py_None; | |
27382 | return resultobj; | |
27383 | fail: | |
27384 | return NULL; | |
27385 | } | |
27386 | ||
27387 | ||
27388 | static PyObject *_wrap_TreeCtrl_Unselect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27389 | PyObject *resultobj; | |
27390 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27391 | PyObject * obj0 = 0 ; | |
27392 | char *kwnames[] = { | |
27393 | (char *) "self", NULL | |
27394 | }; | |
27395 | ||
27396 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_Unselect",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27397 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27398 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27399 | { |
27400 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27401 | (arg1)->Unselect(); | |
27402 | ||
27403 | wxPyEndAllowThreads(__tstate); | |
27404 | if (PyErr_Occurred()) SWIG_fail; | |
27405 | } | |
27406 | Py_INCREF(Py_None); resultobj = Py_None; | |
27407 | return resultobj; | |
27408 | fail: | |
27409 | return NULL; | |
27410 | } | |
27411 | ||
27412 | ||
3adfb63b RD |
27413 | static PyObject *_wrap_TreeCtrl_UnselectItem(PyObject *self, PyObject *args, PyObject *kwargs) { |
27414 | PyObject *resultobj; | |
27415 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27416 | wxTreeItemId *arg2 = 0 ; | |
27417 | PyObject * obj0 = 0 ; | |
27418 | PyObject * obj1 = 0 ; | |
27419 | char *kwnames[] = { | |
27420 | (char *) "self",(char *) "item", NULL | |
27421 | }; | |
27422 | ||
27423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_UnselectItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27426 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27427 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27428 | SWIG_fail; | |
3adfb63b | 27429 | if (arg2 == NULL) { |
15afbcd0 RD |
27430 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27431 | SWIG_fail; | |
3adfb63b RD |
27432 | } |
27433 | { | |
27434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27435 | (arg1)->UnselectItem((wxTreeItemId const &)*arg2); | |
27436 | ||
27437 | wxPyEndAllowThreads(__tstate); | |
27438 | if (PyErr_Occurred()) SWIG_fail; | |
27439 | } | |
27440 | Py_INCREF(Py_None); resultobj = Py_None; | |
27441 | return resultobj; | |
27442 | fail: | |
27443 | return NULL; | |
27444 | } | |
27445 | ||
27446 | ||
d14a1e28 RD |
27447 | static PyObject *_wrap_TreeCtrl_UnselectAll(PyObject *self, PyObject *args, PyObject *kwargs) { |
27448 | PyObject *resultobj; | |
27449 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27450 | PyObject * obj0 = 0 ; | |
27451 | char *kwnames[] = { | |
27452 | (char *) "self", NULL | |
27453 | }; | |
27454 | ||
27455 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_UnselectAll",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27456 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27457 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27458 | { |
27459 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27460 | (arg1)->UnselectAll(); | |
27461 | ||
27462 | wxPyEndAllowThreads(__tstate); | |
27463 | if (PyErr_Occurred()) SWIG_fail; | |
27464 | } | |
27465 | Py_INCREF(Py_None); resultobj = Py_None; | |
27466 | return resultobj; | |
27467 | fail: | |
27468 | return NULL; | |
27469 | } | |
27470 | ||
27471 | ||
27472 | static PyObject *_wrap_TreeCtrl_SelectItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
3adfb63b RD |
27473 | PyObject *resultobj; |
27474 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27475 | wxTreeItemId *arg2 = 0 ; | |
27476 | bool arg3 = (bool) True ; | |
27477 | PyObject * obj0 = 0 ; | |
27478 | PyObject * obj1 = 0 ; | |
27479 | PyObject * obj2 = 0 ; | |
27480 | char *kwnames[] = { | |
27481 | (char *) "self",(char *) "item",(char *) "select", NULL | |
27482 | }; | |
27483 | ||
27484 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_SelectItem",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27485 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27486 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27487 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27488 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27489 | SWIG_fail; | |
3adfb63b | 27490 | if (arg2 == NULL) { |
15afbcd0 RD |
27491 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27492 | SWIG_fail; | |
3adfb63b RD |
27493 | } |
27494 | if (obj2) { | |
15afbcd0 RD |
27495 | arg3 = (bool) SWIG_AsBool(obj2); |
27496 | if (PyErr_Occurred()) SWIG_fail; | |
3adfb63b RD |
27497 | } |
27498 | { | |
27499 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27500 | (arg1)->SelectItem((wxTreeItemId const &)*arg2,arg3); | |
27501 | ||
27502 | wxPyEndAllowThreads(__tstate); | |
27503 | if (PyErr_Occurred()) SWIG_fail; | |
27504 | } | |
27505 | Py_INCREF(Py_None); resultobj = Py_None; | |
27506 | return resultobj; | |
27507 | fail: | |
27508 | return NULL; | |
27509 | } | |
27510 | ||
27511 | ||
27512 | static PyObject *_wrap_TreeCtrl_ToggleItemSelection(PyObject *self, PyObject *args, PyObject *kwargs) { | |
d14a1e28 RD |
27513 | PyObject *resultobj; |
27514 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27515 | wxTreeItemId *arg2 = 0 ; | |
27516 | PyObject * obj0 = 0 ; | |
27517 | PyObject * obj1 = 0 ; | |
27518 | char *kwnames[] = { | |
27519 | (char *) "self",(char *) "item", NULL | |
27520 | }; | |
27521 | ||
3adfb63b | 27522 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ToggleItemSelection",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
27523 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27524 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27525 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27526 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27527 | SWIG_fail; | |
d14a1e28 | 27528 | if (arg2 == NULL) { |
15afbcd0 RD |
27529 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27530 | SWIG_fail; | |
d14a1e28 RD |
27531 | } |
27532 | { | |
27533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
3adfb63b | 27534 | (arg1)->ToggleItemSelection((wxTreeItemId const &)*arg2); |
d14a1e28 RD |
27535 | |
27536 | wxPyEndAllowThreads(__tstate); | |
27537 | if (PyErr_Occurred()) SWIG_fail; | |
27538 | } | |
27539 | Py_INCREF(Py_None); resultobj = Py_None; | |
27540 | return resultobj; | |
27541 | fail: | |
27542 | return NULL; | |
27543 | } | |
27544 | ||
27545 | ||
27546 | static PyObject *_wrap_TreeCtrl_EnsureVisible(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27547 | PyObject *resultobj; | |
27548 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27549 | wxTreeItemId *arg2 = 0 ; | |
27550 | PyObject * obj0 = 0 ; | |
27551 | PyObject * obj1 = 0 ; | |
27552 | char *kwnames[] = { | |
27553 | (char *) "self",(char *) "item", NULL | |
27554 | }; | |
27555 | ||
27556 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EnsureVisible",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27557 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27558 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27559 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27560 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27561 | SWIG_fail; | |
d14a1e28 | 27562 | if (arg2 == NULL) { |
15afbcd0 RD |
27563 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27564 | SWIG_fail; | |
d14a1e28 RD |
27565 | } |
27566 | { | |
27567 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27568 | (arg1)->EnsureVisible((wxTreeItemId const &)*arg2); | |
27569 | ||
27570 | wxPyEndAllowThreads(__tstate); | |
27571 | if (PyErr_Occurred()) SWIG_fail; | |
27572 | } | |
27573 | Py_INCREF(Py_None); resultobj = Py_None; | |
27574 | return resultobj; | |
27575 | fail: | |
27576 | return NULL; | |
27577 | } | |
27578 | ||
27579 | ||
27580 | static PyObject *_wrap_TreeCtrl_ScrollTo(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27581 | PyObject *resultobj; | |
27582 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27583 | wxTreeItemId *arg2 = 0 ; | |
27584 | PyObject * obj0 = 0 ; | |
27585 | PyObject * obj1 = 0 ; | |
27586 | char *kwnames[] = { | |
27587 | (char *) "self",(char *) "item", NULL | |
27588 | }; | |
27589 | ||
27590 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_ScrollTo",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27591 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27592 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27593 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27594 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27595 | SWIG_fail; | |
d14a1e28 | 27596 | if (arg2 == NULL) { |
15afbcd0 RD |
27597 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27598 | SWIG_fail; | |
d14a1e28 RD |
27599 | } |
27600 | { | |
27601 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27602 | (arg1)->ScrollTo((wxTreeItemId const &)*arg2); | |
27603 | ||
27604 | wxPyEndAllowThreads(__tstate); | |
27605 | if (PyErr_Occurred()) SWIG_fail; | |
27606 | } | |
27607 | Py_INCREF(Py_None); resultobj = Py_None; | |
27608 | return resultobj; | |
27609 | fail: | |
27610 | return NULL; | |
27611 | } | |
27612 | ||
27613 | ||
27614 | static PyObject *_wrap_TreeCtrl_EditLabel(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27615 | PyObject *resultobj; | |
27616 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27617 | wxTreeItemId *arg2 = 0 ; | |
27618 | PyObject * obj0 = 0 ; | |
27619 | PyObject * obj1 = 0 ; | |
27620 | char *kwnames[] = { | |
27621 | (char *) "self",(char *) "item", NULL | |
27622 | }; | |
27623 | ||
27624 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_EditLabel",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27625 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27626 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27627 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27628 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27629 | SWIG_fail; | |
d14a1e28 | 27630 | if (arg2 == NULL) { |
15afbcd0 RD |
27631 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27632 | SWIG_fail; | |
d14a1e28 RD |
27633 | } |
27634 | { | |
27635 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27636 | (arg1)->EditLabel((wxTreeItemId const &)*arg2); | |
27637 | ||
27638 | wxPyEndAllowThreads(__tstate); | |
27639 | if (PyErr_Occurred()) SWIG_fail; | |
27640 | } | |
27641 | Py_INCREF(Py_None); resultobj = Py_None; | |
27642 | return resultobj; | |
27643 | fail: | |
27644 | return NULL; | |
27645 | } | |
27646 | ||
27647 | ||
27648 | static PyObject *_wrap_TreeCtrl_GetEditControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27649 | PyObject *resultobj; | |
27650 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27651 | wxTextCtrl *result; | |
27652 | PyObject * obj0 = 0 ; | |
27653 | char *kwnames[] = { | |
27654 | (char *) "self", NULL | |
27655 | }; | |
27656 | ||
27657 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:TreeCtrl_GetEditControl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
27658 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27659 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27660 | { |
27661 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27662 | result = (wxTextCtrl *)((wxPyTreeCtrl const *)arg1)->GetEditControl(); | |
27663 | ||
27664 | wxPyEndAllowThreads(__tstate); | |
27665 | if (PyErr_Occurred()) SWIG_fail; | |
27666 | } | |
27667 | { | |
412d302d | 27668 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
27669 | } |
27670 | return resultobj; | |
27671 | fail: | |
27672 | return NULL; | |
27673 | } | |
27674 | ||
27675 | ||
27676 | static PyObject *_wrap_TreeCtrl_SortChildren(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27677 | PyObject *resultobj; | |
27678 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27679 | wxTreeItemId *arg2 = 0 ; | |
27680 | PyObject * obj0 = 0 ; | |
27681 | PyObject * obj1 = 0 ; | |
27682 | char *kwnames[] = { | |
27683 | (char *) "self",(char *) "item", NULL | |
27684 | }; | |
27685 | ||
27686 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_SortChildren",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27687 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27688 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27689 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27690 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27691 | SWIG_fail; | |
d14a1e28 | 27692 | if (arg2 == NULL) { |
15afbcd0 RD |
27693 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27694 | SWIG_fail; | |
d14a1e28 RD |
27695 | } |
27696 | { | |
27697 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27698 | (arg1)->SortChildren((wxTreeItemId const &)*arg2); | |
27699 | ||
27700 | wxPyEndAllowThreads(__tstate); | |
27701 | if (PyErr_Occurred()) SWIG_fail; | |
27702 | } | |
27703 | Py_INCREF(Py_None); resultobj = Py_None; | |
27704 | return resultobj; | |
27705 | fail: | |
27706 | return NULL; | |
27707 | } | |
27708 | ||
27709 | ||
27710 | static PyObject *_wrap_TreeCtrl_HitTest(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27711 | PyObject *resultobj; | |
27712 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27713 | wxPoint *arg2 = 0 ; | |
27714 | int *arg3 = 0 ; | |
27715 | wxTreeItemId result; | |
27716 | wxPoint temp2 ; | |
27717 | int temp3 ; | |
27718 | PyObject * obj0 = 0 ; | |
27719 | PyObject * obj1 = 0 ; | |
27720 | char *kwnames[] = { | |
27721 | (char *) "self",(char *) "point", NULL | |
27722 | }; | |
27723 | ||
27724 | arg3 = &temp3; | |
27725 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:TreeCtrl_HitTest",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
27726 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27727 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
27728 | { |
27729 | arg2 = &temp2; | |
27730 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
27731 | } | |
27732 | { | |
27733 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27734 | result = (arg1)->HitTest((wxPoint const &)*arg2,*arg3); | |
27735 | ||
27736 | wxPyEndAllowThreads(__tstate); | |
27737 | if (PyErr_Occurred()) SWIG_fail; | |
27738 | } | |
27739 | { | |
27740 | wxTreeItemId * resultptr; | |
27741 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 27742 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
27743 | } |
27744 | { | |
27745 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
27746 | resultobj = t_output_helper(resultobj,o); | |
27747 | } | |
27748 | return resultobj; | |
27749 | fail: | |
27750 | return NULL; | |
27751 | } | |
27752 | ||
27753 | ||
27754 | static PyObject *_wrap_TreeCtrl_GetBoundingRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27755 | PyObject *resultobj; | |
27756 | wxPyTreeCtrl *arg1 = (wxPyTreeCtrl *) 0 ; | |
27757 | wxTreeItemId *arg2 = 0 ; | |
e811c8ce | 27758 | bool arg3 = (bool) False ; |
d14a1e28 RD |
27759 | PyObject *result; |
27760 | PyObject * obj0 = 0 ; | |
27761 | PyObject * obj1 = 0 ; | |
27762 | PyObject * obj2 = 0 ; | |
27763 | char *kwnames[] = { | |
27764 | (char *) "self",(char *) "item",(char *) "textOnly", NULL | |
27765 | }; | |
27766 | ||
27767 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|O:TreeCtrl_GetBoundingRect",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
27768 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
27769 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
27770 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, | |
27771 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
27772 | SWIG_fail; | |
d14a1e28 | 27773 | if (arg2 == NULL) { |
15afbcd0 RD |
27774 | PyErr_SetString(PyExc_TypeError,"null reference"); |
27775 | SWIG_fail; | |
d14a1e28 RD |
27776 | } |
27777 | if (obj2) { | |
15afbcd0 RD |
27778 | arg3 = (bool) SWIG_AsBool(obj2); |
27779 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
27780 | } |
27781 | { | |
27782 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
27783 | result = (PyObject *)wxPyTreeCtrl_GetBoundingRect(arg1,(wxTreeItemId const &)*arg2,arg3); | |
27784 | ||
27785 | wxPyEndAllowThreads(__tstate); | |
27786 | if (PyErr_Occurred()) SWIG_fail; | |
27787 | } | |
27788 | resultobj = result; | |
27789 | return resultobj; | |
27790 | fail: | |
27791 | return NULL; | |
27792 | } | |
27793 | ||
27794 | ||
74a57fcd RD |
27795 | static PyObject *_wrap_TreeCtrl_GetClassDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
27796 | PyObject *resultobj; | |
27797 | int arg1 = (int) wxWINDOW_VARIANT_NORMAL ; | |
27798 | wxVisualAttributes result; | |
27799 | PyObject * obj0 = 0 ; | |
27800 | char *kwnames[] = { | |
27801 | (char *) "variant", NULL | |
27802 | }; | |
27803 | ||
27804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|O:TreeCtrl_GetClassDefaultAttributes",kwnames,&obj0)) goto fail; | |
27805 | if (obj0) { | |
27806 | arg1 = (wxWindowVariant) SWIG_AsInt(obj0); | |
27807 | if (PyErr_Occurred()) SWIG_fail; | |
27808 | } | |
27809 | { | |
110da5b0 | 27810 | if (!wxPyCheckForApp()) SWIG_fail; |
74a57fcd RD |
27811 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27812 | result = wxPyTreeCtrl::GetClassDefaultAttributes((wxWindowVariant )arg1); | |
27813 | ||
27814 | wxPyEndAllowThreads(__tstate); | |
dfbb5885 | 27815 | if (PyErr_Occurred()) SWIG_fail; |
74a57fcd RD |
27816 | } |
27817 | { | |
27818 | wxVisualAttributes * resultptr; | |
27819 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
27820 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
27821 | } | |
27822 | return resultobj; | |
27823 | fail: | |
27824 | return NULL; | |
27825 | } | |
27826 | ||
27827 | ||
d14a1e28 RD |
27828 | static PyObject * TreeCtrl_swigregister(PyObject *self, PyObject *args) { |
27829 | PyObject *obj; | |
27830 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
27831 | SWIG_TypeClientData(SWIGTYPE_p_wxPyTreeCtrl, obj); | |
27832 | Py_INCREF(obj); | |
27833 | return Py_BuildValue((char *)""); | |
27834 | } | |
b2dc1044 RD |
27835 | static int _wrap_DirDialogDefaultFolderStr_set(PyObject *_val) { |
27836 | PyErr_SetString(PyExc_TypeError,"Variable DirDialogDefaultFolderStr is read-only."); | |
27837 | return 1; | |
27838 | } | |
27839 | ||
27840 | ||
27841 | static PyObject *_wrap_DirDialogDefaultFolderStr_get() { | |
27842 | PyObject *pyobj; | |
27843 | ||
27844 | { | |
27845 | #if wxUSE_UNICODE | |
27846 | pyobj = PyUnicode_FromWideChar((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27847 | #else | |
27848 | pyobj = PyString_FromStringAndSize((&wxPyDirDialogDefaultFolderStr)->c_str(), (&wxPyDirDialogDefaultFolderStr)->Len()); | |
27849 | #endif | |
27850 | } | |
27851 | return pyobj; | |
27852 | } | |
27853 | ||
27854 | ||
d14a1e28 RD |
27855 | static PyObject *_wrap_new_GenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { |
27856 | PyObject *resultobj; | |
27857 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 27858 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
27859 | wxString const &arg3_defvalue = wxPyDirDialogDefaultFolderStr ; |
27860 | wxString *arg3 = (wxString *) &arg3_defvalue ; | |
27861 | wxPoint const &arg4_defvalue = wxDefaultPosition ; | |
27862 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
27863 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
27864 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
27865 | long arg6 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
27866 | wxString const &arg7_defvalue = wxPyEmptyString ; | |
27867 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
27868 | int arg8 = (int) 0 ; | |
b2dc1044 | 27869 | wxString const &arg9_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
27870 | wxString *arg9 = (wxString *) &arg9_defvalue ; |
27871 | wxGenericDirCtrl *result; | |
e811c8ce | 27872 | bool temp3 = False ; |
d14a1e28 RD |
27873 | wxPoint temp4 ; |
27874 | wxSize temp5 ; | |
e811c8ce RD |
27875 | bool temp7 = False ; |
27876 | bool temp9 = False ; | |
d14a1e28 | 27877 | PyObject * obj0 = 0 ; |
994141e6 | 27878 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
27879 | PyObject * obj2 = 0 ; |
27880 | PyObject * obj3 = 0 ; | |
27881 | PyObject * obj4 = 0 ; | |
994141e6 | 27882 | PyObject * obj5 = 0 ; |
d14a1e28 | 27883 | PyObject * obj6 = 0 ; |
994141e6 | 27884 | PyObject * obj7 = 0 ; |
d14a1e28 RD |
27885 | PyObject * obj8 = 0 ; |
27886 | char *kwnames[] = { | |
27887 | (char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
27888 | }; | |
27889 | ||
994141e6 | 27890 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOOOO:new_GenericDirCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8)) goto fail; |
15afbcd0 RD |
27891 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
27892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 27893 | if (obj1) { |
15afbcd0 RD |
27894 | arg2 = (int const) SWIG_AsInt(obj1); |
27895 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27896 | } |
d14a1e28 RD |
27897 | if (obj2) { |
27898 | { | |
27899 | arg3 = wxString_in_helper(obj2); | |
27900 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 27901 | temp3 = True; |
d14a1e28 RD |
27902 | } |
27903 | } | |
27904 | if (obj3) { | |
27905 | { | |
27906 | arg4 = &temp4; | |
27907 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
27908 | } | |
27909 | } | |
27910 | if (obj4) { | |
27911 | { | |
27912 | arg5 = &temp5; | |
27913 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
27914 | } | |
27915 | } | |
994141e6 | 27916 | if (obj5) { |
15afbcd0 RD |
27917 | arg6 = (long) SWIG_AsLong(obj5); |
27918 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27919 | } |
d14a1e28 RD |
27920 | if (obj6) { |
27921 | { | |
27922 | arg7 = wxString_in_helper(obj6); | |
27923 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 27924 | temp7 = True; |
d14a1e28 RD |
27925 | } |
27926 | } | |
994141e6 | 27927 | if (obj7) { |
15afbcd0 RD |
27928 | arg8 = (int) SWIG_AsInt(obj7); |
27929 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 27930 | } |
d14a1e28 RD |
27931 | if (obj8) { |
27932 | { | |
27933 | arg9 = wxString_in_helper(obj8); | |
27934 | if (arg9 == NULL) SWIG_fail; | |
e811c8ce | 27935 | temp9 = True; |
d14a1e28 RD |
27936 | } |
27937 | } | |
27938 | { | |
e3b71cb8 | 27939 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27940 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27941 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(arg1,arg2,(wxString const &)*arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6,(wxString const &)*arg7,arg8,(wxString const &)*arg9); | |
27942 | ||
27943 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27944 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27945 | } |
15afbcd0 | 27946 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27947 | { |
27948 | if (temp3) | |
27949 | delete arg3; | |
27950 | } | |
27951 | { | |
27952 | if (temp7) | |
27953 | delete arg7; | |
27954 | } | |
27955 | { | |
27956 | if (temp9) | |
27957 | delete arg9; | |
27958 | } | |
27959 | return resultobj; | |
27960 | fail: | |
27961 | { | |
27962 | if (temp3) | |
27963 | delete arg3; | |
27964 | } | |
27965 | { | |
27966 | if (temp7) | |
27967 | delete arg7; | |
27968 | } | |
27969 | { | |
27970 | if (temp9) | |
27971 | delete arg9; | |
27972 | } | |
27973 | return NULL; | |
27974 | } | |
27975 | ||
27976 | ||
27977 | static PyObject *_wrap_new_PreGenericDirCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
27978 | PyObject *resultobj; | |
27979 | wxGenericDirCtrl *result; | |
27980 | char *kwnames[] = { | |
27981 | NULL | |
27982 | }; | |
27983 | ||
27984 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreGenericDirCtrl",kwnames)) goto fail; | |
27985 | { | |
e3b71cb8 | 27986 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
27987 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
27988 | result = (wxGenericDirCtrl *)new wxGenericDirCtrl(); | |
27989 | ||
27990 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 27991 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 27992 | } |
15afbcd0 | 27993 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDirCtrl, 1); |
d14a1e28 RD |
27994 | return resultobj; |
27995 | fail: | |
27996 | return NULL; | |
27997 | } | |
27998 | ||
27999 | ||
28000 | static PyObject *_wrap_GenericDirCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28001 | PyObject *resultobj; | |
28002 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28003 | wxWindow *arg2 = (wxWindow *) 0 ; | |
e811c8ce | 28004 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28005 | wxString const &arg4_defvalue = wxPyDirDialogDefaultFolderStr ; |
28006 | wxString *arg4 = (wxString *) &arg4_defvalue ; | |
28007 | wxPoint const &arg5_defvalue = wxDefaultPosition ; | |
28008 | wxPoint *arg5 = (wxPoint *) &arg5_defvalue ; | |
28009 | wxSize const &arg6_defvalue = wxDefaultSize ; | |
28010 | wxSize *arg6 = (wxSize *) &arg6_defvalue ; | |
28011 | long arg7 = (long) wxDIRCTRL_3D_INTERNAL|wxSUNKEN_BORDER ; | |
28012 | wxString const &arg8_defvalue = wxPyEmptyString ; | |
28013 | wxString *arg8 = (wxString *) &arg8_defvalue ; | |
28014 | int arg9 = (int) 0 ; | |
b2dc1044 | 28015 | wxString const &arg10_defvalue = wxPyTreeCtrlNameStr ; |
d14a1e28 RD |
28016 | wxString *arg10 = (wxString *) &arg10_defvalue ; |
28017 | bool result; | |
e811c8ce | 28018 | bool temp4 = False ; |
d14a1e28 RD |
28019 | wxPoint temp5 ; |
28020 | wxSize temp6 ; | |
e811c8ce RD |
28021 | bool temp8 = False ; |
28022 | bool temp10 = False ; | |
d14a1e28 RD |
28023 | PyObject * obj0 = 0 ; |
28024 | PyObject * obj1 = 0 ; | |
994141e6 | 28025 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28026 | PyObject * obj3 = 0 ; |
28027 | PyObject * obj4 = 0 ; | |
28028 | PyObject * obj5 = 0 ; | |
994141e6 | 28029 | PyObject * obj6 = 0 ; |
d14a1e28 | 28030 | PyObject * obj7 = 0 ; |
994141e6 | 28031 | PyObject * obj8 = 0 ; |
d14a1e28 RD |
28032 | PyObject * obj9 = 0 ; |
28033 | char *kwnames[] = { | |
28034 | (char *) "self",(char *) "parent",(char *) "id",(char *) "dir",(char *) "pos",(char *) "size",(char *) "style",(char *) "filter",(char *) "defaultFilter",(char *) "name", NULL | |
28035 | }; | |
28036 | ||
994141e6 | 28037 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOOOOOO:GenericDirCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6,&obj7,&obj8,&obj9)) goto fail; |
15afbcd0 RD |
28038 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28039 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28040 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
28041 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28042 | if (obj2) { |
15afbcd0 RD |
28043 | arg3 = (int const) SWIG_AsInt(obj2); |
28044 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28045 | } |
d14a1e28 RD |
28046 | if (obj3) { |
28047 | { | |
28048 | arg4 = wxString_in_helper(obj3); | |
28049 | if (arg4 == NULL) SWIG_fail; | |
e811c8ce | 28050 | temp4 = True; |
d14a1e28 RD |
28051 | } |
28052 | } | |
28053 | if (obj4) { | |
28054 | { | |
28055 | arg5 = &temp5; | |
28056 | if ( ! wxPoint_helper(obj4, &arg5)) SWIG_fail; | |
28057 | } | |
28058 | } | |
28059 | if (obj5) { | |
28060 | { | |
28061 | arg6 = &temp6; | |
28062 | if ( ! wxSize_helper(obj5, &arg6)) SWIG_fail; | |
28063 | } | |
28064 | } | |
994141e6 | 28065 | if (obj6) { |
15afbcd0 RD |
28066 | arg7 = (long) SWIG_AsLong(obj6); |
28067 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28068 | } |
d14a1e28 RD |
28069 | if (obj7) { |
28070 | { | |
28071 | arg8 = wxString_in_helper(obj7); | |
28072 | if (arg8 == NULL) SWIG_fail; | |
e811c8ce | 28073 | temp8 = True; |
d14a1e28 RD |
28074 | } |
28075 | } | |
994141e6 | 28076 | if (obj8) { |
15afbcd0 RD |
28077 | arg9 = (int) SWIG_AsInt(obj8); |
28078 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28079 | } |
d14a1e28 RD |
28080 | if (obj9) { |
28081 | { | |
28082 | arg10 = wxString_in_helper(obj9); | |
28083 | if (arg10 == NULL) SWIG_fail; | |
e811c8ce | 28084 | temp10 = True; |
d14a1e28 RD |
28085 | } |
28086 | } | |
28087 | { | |
28088 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28089 | result = (bool)(arg1)->Create(arg2,arg3,(wxString const &)*arg4,(wxPoint const &)*arg5,(wxSize const &)*arg6,arg7,(wxString const &)*arg8,arg9,(wxString const &)*arg10); | |
28090 | ||
28091 | wxPyEndAllowThreads(__tstate); | |
28092 | if (PyErr_Occurred()) SWIG_fail; | |
28093 | } | |
4f89f6a3 RD |
28094 | { |
28095 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28096 | } | |
d14a1e28 RD |
28097 | { |
28098 | if (temp4) | |
28099 | delete arg4; | |
28100 | } | |
28101 | { | |
28102 | if (temp8) | |
28103 | delete arg8; | |
28104 | } | |
28105 | { | |
28106 | if (temp10) | |
28107 | delete arg10; | |
28108 | } | |
28109 | return resultobj; | |
28110 | fail: | |
28111 | { | |
28112 | if (temp4) | |
28113 | delete arg4; | |
28114 | } | |
28115 | { | |
28116 | if (temp8) | |
28117 | delete arg8; | |
28118 | } | |
28119 | { | |
28120 | if (temp10) | |
28121 | delete arg10; | |
28122 | } | |
28123 | return NULL; | |
28124 | } | |
28125 | ||
28126 | ||
28127 | static PyObject *_wrap_GenericDirCtrl_ExpandPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28128 | PyObject *resultobj; | |
28129 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28130 | wxString *arg2 = 0 ; | |
28131 | bool result; | |
e811c8ce | 28132 | bool temp2 = False ; |
d14a1e28 RD |
28133 | PyObject * obj0 = 0 ; |
28134 | PyObject * obj1 = 0 ; | |
28135 | char *kwnames[] = { | |
28136 | (char *) "self",(char *) "path", NULL | |
28137 | }; | |
28138 | ||
28139 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ExpandPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28140 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28141 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28142 | { |
28143 | arg2 = wxString_in_helper(obj1); | |
28144 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28145 | temp2 = True; |
d14a1e28 RD |
28146 | } |
28147 | { | |
28148 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28149 | result = (bool)(arg1)->ExpandPath((wxString const &)*arg2); | |
28150 | ||
28151 | wxPyEndAllowThreads(__tstate); | |
28152 | if (PyErr_Occurred()) SWIG_fail; | |
28153 | } | |
4f89f6a3 RD |
28154 | { |
28155 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28156 | } | |
d14a1e28 RD |
28157 | { |
28158 | if (temp2) | |
28159 | delete arg2; | |
28160 | } | |
28161 | return resultobj; | |
28162 | fail: | |
28163 | { | |
28164 | if (temp2) | |
28165 | delete arg2; | |
28166 | } | |
28167 | return NULL; | |
28168 | } | |
28169 | ||
28170 | ||
28171 | static PyObject *_wrap_GenericDirCtrl_GetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28172 | PyObject *resultobj; | |
28173 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28174 | wxString result; | |
28175 | PyObject * obj0 = 0 ; | |
28176 | char *kwnames[] = { | |
28177 | (char *) "self", NULL | |
28178 | }; | |
28179 | ||
28180 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetDefaultPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28181 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28182 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28183 | { |
28184 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28185 | result = ((wxGenericDirCtrl const *)arg1)->GetDefaultPath(); | |
28186 | ||
28187 | wxPyEndAllowThreads(__tstate); | |
28188 | if (PyErr_Occurred()) SWIG_fail; | |
28189 | } | |
28190 | { | |
28191 | #if wxUSE_UNICODE | |
28192 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28193 | #else | |
28194 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28195 | #endif | |
28196 | } | |
28197 | return resultobj; | |
28198 | fail: | |
28199 | return NULL; | |
28200 | } | |
28201 | ||
28202 | ||
28203 | static PyObject *_wrap_GenericDirCtrl_SetDefaultPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28204 | PyObject *resultobj; | |
28205 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28206 | wxString *arg2 = 0 ; | |
e811c8ce | 28207 | bool temp2 = False ; |
d14a1e28 RD |
28208 | PyObject * obj0 = 0 ; |
28209 | PyObject * obj1 = 0 ; | |
28210 | char *kwnames[] = { | |
28211 | (char *) "self",(char *) "path", NULL | |
28212 | }; | |
28213 | ||
28214 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetDefaultPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28215 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28216 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28217 | { |
28218 | arg2 = wxString_in_helper(obj1); | |
28219 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28220 | temp2 = True; |
d14a1e28 RD |
28221 | } |
28222 | { | |
28223 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28224 | (arg1)->SetDefaultPath((wxString const &)*arg2); | |
28225 | ||
28226 | wxPyEndAllowThreads(__tstate); | |
28227 | if (PyErr_Occurred()) SWIG_fail; | |
28228 | } | |
28229 | Py_INCREF(Py_None); resultobj = Py_None; | |
28230 | { | |
28231 | if (temp2) | |
28232 | delete arg2; | |
28233 | } | |
28234 | return resultobj; | |
28235 | fail: | |
28236 | { | |
28237 | if (temp2) | |
28238 | delete arg2; | |
28239 | } | |
28240 | return NULL; | |
28241 | } | |
28242 | ||
28243 | ||
28244 | static PyObject *_wrap_GenericDirCtrl_GetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28245 | PyObject *resultobj; | |
28246 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28247 | wxString result; | |
28248 | PyObject * obj0 = 0 ; | |
28249 | char *kwnames[] = { | |
28250 | (char *) "self", NULL | |
28251 | }; | |
28252 | ||
28253 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetPath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28254 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28255 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28256 | { |
28257 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28258 | result = ((wxGenericDirCtrl const *)arg1)->GetPath(); | |
28259 | ||
28260 | wxPyEndAllowThreads(__tstate); | |
28261 | if (PyErr_Occurred()) SWIG_fail; | |
28262 | } | |
28263 | { | |
28264 | #if wxUSE_UNICODE | |
28265 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28266 | #else | |
28267 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28268 | #endif | |
28269 | } | |
28270 | return resultobj; | |
28271 | fail: | |
28272 | return NULL; | |
28273 | } | |
28274 | ||
28275 | ||
28276 | static PyObject *_wrap_GenericDirCtrl_GetFilePath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28277 | PyObject *resultobj; | |
28278 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28279 | wxString result; | |
28280 | PyObject * obj0 = 0 ; | |
28281 | char *kwnames[] = { | |
28282 | (char *) "self", NULL | |
28283 | }; | |
28284 | ||
28285 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilePath",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28286 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28287 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28288 | { |
28289 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28290 | result = ((wxGenericDirCtrl const *)arg1)->GetFilePath(); | |
28291 | ||
28292 | wxPyEndAllowThreads(__tstate); | |
28293 | if (PyErr_Occurred()) SWIG_fail; | |
28294 | } | |
28295 | { | |
28296 | #if wxUSE_UNICODE | |
28297 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28298 | #else | |
28299 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28300 | #endif | |
28301 | } | |
28302 | return resultobj; | |
28303 | fail: | |
28304 | return NULL; | |
28305 | } | |
28306 | ||
28307 | ||
28308 | static PyObject *_wrap_GenericDirCtrl_SetPath(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28309 | PyObject *resultobj; | |
28310 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28311 | wxString *arg2 = 0 ; | |
e811c8ce | 28312 | bool temp2 = False ; |
d14a1e28 RD |
28313 | PyObject * obj0 = 0 ; |
28314 | PyObject * obj1 = 0 ; | |
28315 | char *kwnames[] = { | |
28316 | (char *) "self",(char *) "path", NULL | |
28317 | }; | |
28318 | ||
28319 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetPath",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28320 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28321 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28322 | { |
28323 | arg2 = wxString_in_helper(obj1); | |
28324 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28325 | temp2 = True; |
d14a1e28 RD |
28326 | } |
28327 | { | |
28328 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28329 | (arg1)->SetPath((wxString const &)*arg2); | |
28330 | ||
28331 | wxPyEndAllowThreads(__tstate); | |
28332 | if (PyErr_Occurred()) SWIG_fail; | |
28333 | } | |
28334 | Py_INCREF(Py_None); resultobj = Py_None; | |
28335 | { | |
28336 | if (temp2) | |
28337 | delete arg2; | |
28338 | } | |
28339 | return resultobj; | |
28340 | fail: | |
28341 | { | |
28342 | if (temp2) | |
28343 | delete arg2; | |
28344 | } | |
28345 | return NULL; | |
28346 | } | |
28347 | ||
28348 | ||
28349 | static PyObject *_wrap_GenericDirCtrl_ShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28350 | PyObject *resultobj; | |
28351 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28352 | bool arg2 ; | |
28353 | PyObject * obj0 = 0 ; | |
28354 | PyObject * obj1 = 0 ; | |
28355 | char *kwnames[] = { | |
28356 | (char *) "self",(char *) "show", NULL | |
28357 | }; | |
28358 | ||
28359 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_ShowHidden",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28360 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28361 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28362 | arg2 = (bool) SWIG_AsBool(obj1); | |
28363 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28364 | { |
28365 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28366 | (arg1)->ShowHidden(arg2); | |
28367 | ||
28368 | wxPyEndAllowThreads(__tstate); | |
28369 | if (PyErr_Occurred()) SWIG_fail; | |
28370 | } | |
28371 | Py_INCREF(Py_None); resultobj = Py_None; | |
28372 | return resultobj; | |
28373 | fail: | |
28374 | return NULL; | |
28375 | } | |
28376 | ||
28377 | ||
28378 | static PyObject *_wrap_GenericDirCtrl_GetShowHidden(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28379 | PyObject *resultobj; | |
28380 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28381 | bool result; | |
28382 | PyObject * obj0 = 0 ; | |
28383 | char *kwnames[] = { | |
28384 | (char *) "self", NULL | |
28385 | }; | |
28386 | ||
28387 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetShowHidden",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28388 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28389 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28390 | { |
28391 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28392 | result = (bool)(arg1)->GetShowHidden(); | |
28393 | ||
28394 | wxPyEndAllowThreads(__tstate); | |
28395 | if (PyErr_Occurred()) SWIG_fail; | |
28396 | } | |
4f89f6a3 RD |
28397 | { |
28398 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28399 | } | |
d14a1e28 RD |
28400 | return resultobj; |
28401 | fail: | |
28402 | return NULL; | |
28403 | } | |
28404 | ||
28405 | ||
28406 | static PyObject *_wrap_GenericDirCtrl_GetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28407 | PyObject *resultobj; | |
28408 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28409 | wxString result; | |
28410 | PyObject * obj0 = 0 ; | |
28411 | char *kwnames[] = { | |
28412 | (char *) "self", NULL | |
28413 | }; | |
28414 | ||
28415 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilter",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28416 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28417 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28418 | { |
28419 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28420 | result = ((wxGenericDirCtrl const *)arg1)->GetFilter(); | |
28421 | ||
28422 | wxPyEndAllowThreads(__tstate); | |
28423 | if (PyErr_Occurred()) SWIG_fail; | |
28424 | } | |
28425 | { | |
28426 | #if wxUSE_UNICODE | |
28427 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
28428 | #else | |
28429 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
28430 | #endif | |
28431 | } | |
28432 | return resultobj; | |
28433 | fail: | |
28434 | return NULL; | |
28435 | } | |
28436 | ||
28437 | ||
28438 | static PyObject *_wrap_GenericDirCtrl_SetFilter(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28439 | PyObject *resultobj; | |
28440 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28441 | wxString *arg2 = 0 ; | |
e811c8ce | 28442 | bool temp2 = False ; |
d14a1e28 RD |
28443 | PyObject * obj0 = 0 ; |
28444 | PyObject * obj1 = 0 ; | |
28445 | char *kwnames[] = { | |
28446 | (char *) "self",(char *) "filter", NULL | |
28447 | }; | |
28448 | ||
28449 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilter",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
28450 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28451 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28452 | { |
28453 | arg2 = wxString_in_helper(obj1); | |
28454 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28455 | temp2 = True; |
d14a1e28 RD |
28456 | } |
28457 | { | |
28458 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28459 | (arg1)->SetFilter((wxString const &)*arg2); | |
28460 | ||
28461 | wxPyEndAllowThreads(__tstate); | |
28462 | if (PyErr_Occurred()) SWIG_fail; | |
28463 | } | |
28464 | Py_INCREF(Py_None); resultobj = Py_None; | |
28465 | { | |
28466 | if (temp2) | |
28467 | delete arg2; | |
28468 | } | |
28469 | return resultobj; | |
28470 | fail: | |
28471 | { | |
28472 | if (temp2) | |
28473 | delete arg2; | |
28474 | } | |
28475 | return NULL; | |
28476 | } | |
28477 | ||
28478 | ||
28479 | static PyObject *_wrap_GenericDirCtrl_GetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28480 | PyObject *resultobj; | |
28481 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28482 | int result; | |
28483 | PyObject * obj0 = 0 ; | |
28484 | char *kwnames[] = { | |
28485 | (char *) "self", NULL | |
28486 | }; | |
28487 | ||
28488 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterIndex",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28489 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28490 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28491 | { |
28492 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28493 | result = (int)((wxGenericDirCtrl const *)arg1)->GetFilterIndex(); | |
28494 | ||
28495 | wxPyEndAllowThreads(__tstate); | |
28496 | if (PyErr_Occurred()) SWIG_fail; | |
28497 | } | |
15afbcd0 | 28498 | resultobj = SWIG_FromInt((int)result); |
d14a1e28 RD |
28499 | return resultobj; |
28500 | fail: | |
28501 | return NULL; | |
28502 | } | |
28503 | ||
28504 | ||
28505 | static PyObject *_wrap_GenericDirCtrl_SetFilterIndex(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28506 | PyObject *resultobj; | |
28507 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28508 | int arg2 ; | |
28509 | PyObject * obj0 = 0 ; | |
994141e6 | 28510 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28511 | char *kwnames[] = { |
28512 | (char *) "self",(char *) "n", NULL | |
28513 | }; | |
28514 | ||
994141e6 | 28515 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:GenericDirCtrl_SetFilterIndex",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
28516 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28517 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28518 | arg2 = (int) SWIG_AsInt(obj1); | |
28519 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28520 | { |
28521 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28522 | (arg1)->SetFilterIndex(arg2); | |
28523 | ||
28524 | wxPyEndAllowThreads(__tstate); | |
28525 | if (PyErr_Occurred()) SWIG_fail; | |
28526 | } | |
28527 | Py_INCREF(Py_None); resultobj = Py_None; | |
28528 | return resultobj; | |
28529 | fail: | |
28530 | return NULL; | |
28531 | } | |
28532 | ||
28533 | ||
28534 | static PyObject *_wrap_GenericDirCtrl_GetRootId(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28535 | PyObject *resultobj; | |
28536 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28537 | wxTreeItemId result; | |
28538 | PyObject * obj0 = 0 ; | |
28539 | char *kwnames[] = { | |
28540 | (char *) "self", NULL | |
28541 | }; | |
28542 | ||
28543 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetRootId",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28544 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28545 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28546 | { |
28547 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28548 | result = (arg1)->GetRootId(); | |
28549 | ||
28550 | wxPyEndAllowThreads(__tstate); | |
28551 | if (PyErr_Occurred()) SWIG_fail; | |
28552 | } | |
28553 | { | |
28554 | wxTreeItemId * resultptr; | |
28555 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28556 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28557 | } |
28558 | return resultobj; | |
28559 | fail: | |
28560 | return NULL; | |
28561 | } | |
28562 | ||
28563 | ||
28564 | static PyObject *_wrap_GenericDirCtrl_GetTreeCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28565 | PyObject *resultobj; | |
28566 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
b2dc1044 | 28567 | wxPyTreeCtrl *result; |
d14a1e28 RD |
28568 | PyObject * obj0 = 0 ; |
28569 | char *kwnames[] = { | |
28570 | (char *) "self", NULL | |
28571 | }; | |
28572 | ||
28573 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetTreeCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28574 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28575 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28576 | { |
28577 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
b2dc1044 | 28578 | result = (wxPyTreeCtrl *)((wxGenericDirCtrl const *)arg1)->GetTreeCtrl(); |
d14a1e28 RD |
28579 | |
28580 | wxPyEndAllowThreads(__tstate); | |
28581 | if (PyErr_Occurred()) SWIG_fail; | |
28582 | } | |
28583 | { | |
412d302d | 28584 | resultobj = wxPyMake_wxObject(result, 0); |
d14a1e28 RD |
28585 | } |
28586 | return resultobj; | |
28587 | fail: | |
28588 | return NULL; | |
28589 | } | |
28590 | ||
28591 | ||
28592 | static PyObject *_wrap_GenericDirCtrl_GetFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28593 | PyObject *resultobj; | |
28594 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28595 | wxDirFilterListCtrl *result; | |
28596 | PyObject * obj0 = 0 ; | |
28597 | char *kwnames[] = { | |
28598 | (char *) "self", NULL | |
28599 | }; | |
28600 | ||
28601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_GetFilterListCtrl",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28603 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28604 | { |
28605 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28606 | result = (wxDirFilterListCtrl *)((wxGenericDirCtrl const *)arg1)->GetFilterListCtrl(); | |
28607 | ||
28608 | wxPyEndAllowThreads(__tstate); | |
28609 | if (PyErr_Occurred()) SWIG_fail; | |
28610 | } | |
15afbcd0 | 28611 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 0); |
d14a1e28 RD |
28612 | return resultobj; |
28613 | fail: | |
28614 | return NULL; | |
28615 | } | |
28616 | ||
28617 | ||
28618 | static PyObject *_wrap_GenericDirCtrl_FindChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28619 | PyObject *resultobj; | |
28620 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28621 | wxTreeItemId arg2 ; | |
28622 | wxString *arg3 = 0 ; | |
28623 | bool *arg4 = 0 ; | |
28624 | wxTreeItemId result; | |
28625 | wxTreeItemId *argp2 ; | |
e811c8ce | 28626 | bool temp3 = False ; |
d14a1e28 RD |
28627 | bool temp4 ; |
28628 | PyObject * obj0 = 0 ; | |
28629 | PyObject * obj1 = 0 ; | |
28630 | PyObject * obj2 = 0 ; | |
28631 | char *kwnames[] = { | |
28632 | (char *) "self",(char *) "parentId",(char *) "path", NULL | |
28633 | }; | |
28634 | ||
28635 | arg4 = &temp4; | |
28636 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:GenericDirCtrl_FindChild",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
28637 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28638 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28639 | if ((SWIG_ConvertPtr(obj1,(void **)(&argp2),SWIGTYPE_p_wxTreeItemId, | |
28640 | SWIG_POINTER_EXCEPTION) == -1)) SWIG_fail; | |
28641 | arg2 = *argp2; | |
d14a1e28 RD |
28642 | { |
28643 | arg3 = wxString_in_helper(obj2); | |
28644 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 28645 | temp3 = True; |
d14a1e28 RD |
28646 | } |
28647 | { | |
28648 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28649 | result = (arg1)->FindChild(arg2,(wxString const &)*arg3,*arg4); | |
28650 | ||
28651 | wxPyEndAllowThreads(__tstate); | |
28652 | if (PyErr_Occurred()) SWIG_fail; | |
28653 | } | |
28654 | { | |
28655 | wxTreeItemId * resultptr; | |
28656 | resultptr = new wxTreeItemId((wxTreeItemId &) result); | |
15afbcd0 | 28657 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxTreeItemId, 1); |
d14a1e28 RD |
28658 | } |
28659 | { | |
28660 | PyObject *o = PyInt_FromLong((long) (*arg4)); | |
28661 | resultobj = t_output_helper(resultobj,o); | |
28662 | } | |
28663 | { | |
28664 | if (temp3) | |
28665 | delete arg3; | |
28666 | } | |
28667 | return resultobj; | |
28668 | fail: | |
28669 | { | |
28670 | if (temp3) | |
28671 | delete arg3; | |
28672 | } | |
28673 | return NULL; | |
28674 | } | |
28675 | ||
28676 | ||
28677 | static PyObject *_wrap_GenericDirCtrl_DoResize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28678 | PyObject *resultobj; | |
28679 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28680 | PyObject * obj0 = 0 ; | |
28681 | char *kwnames[] = { | |
28682 | (char *) "self", NULL | |
28683 | }; | |
28684 | ||
28685 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_DoResize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28686 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28687 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28688 | { |
28689 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28690 | (arg1)->DoResize(); | |
28691 | ||
28692 | wxPyEndAllowThreads(__tstate); | |
28693 | if (PyErr_Occurred()) SWIG_fail; | |
28694 | } | |
28695 | Py_INCREF(Py_None); resultobj = Py_None; | |
28696 | return resultobj; | |
28697 | fail: | |
28698 | return NULL; | |
28699 | } | |
28700 | ||
28701 | ||
28702 | static PyObject *_wrap_GenericDirCtrl_ReCreateTree(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28703 | PyObject *resultobj; | |
28704 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
28705 | PyObject * obj0 = 0 ; | |
28706 | char *kwnames[] = { | |
28707 | (char *) "self", NULL | |
28708 | }; | |
28709 | ||
28710 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:GenericDirCtrl_ReCreateTree",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
28711 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28712 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28713 | { |
28714 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28715 | (arg1)->ReCreateTree(); | |
28716 | ||
28717 | wxPyEndAllowThreads(__tstate); | |
28718 | if (PyErr_Occurred()) SWIG_fail; | |
28719 | } | |
28720 | Py_INCREF(Py_None); resultobj = Py_None; | |
28721 | return resultobj; | |
28722 | fail: | |
28723 | return NULL; | |
28724 | } | |
28725 | ||
28726 | ||
28727 | static PyObject * GenericDirCtrl_swigregister(PyObject *self, PyObject *args) { | |
28728 | PyObject *obj; | |
28729 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28730 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDirCtrl, obj); | |
28731 | Py_INCREF(obj); | |
28732 | return Py_BuildValue((char *)""); | |
28733 | } | |
28734 | static PyObject *_wrap_new_DirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28735 | PyObject *resultobj; | |
28736 | wxGenericDirCtrl *arg1 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28737 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28738 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28739 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28740 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28741 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28742 | long arg5 = (long) 0 ; | |
28743 | wxDirFilterListCtrl *result; | |
28744 | wxPoint temp3 ; | |
28745 | wxSize temp4 ; | |
28746 | PyObject * obj0 = 0 ; | |
994141e6 | 28747 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28748 | PyObject * obj2 = 0 ; |
28749 | PyObject * obj3 = 0 ; | |
994141e6 | 28750 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28751 | char *kwnames[] = { |
28752 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28753 | }; | |
28754 | ||
994141e6 | 28755 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_DirFilterListCtrl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
28756 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDirCtrl, |
28757 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28758 | if (obj1) { |
15afbcd0 RD |
28759 | arg2 = (int const) SWIG_AsInt(obj1); |
28760 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28761 | } |
d14a1e28 RD |
28762 | if (obj2) { |
28763 | { | |
28764 | arg3 = &temp3; | |
28765 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28766 | } | |
28767 | } | |
28768 | if (obj3) { | |
28769 | { | |
28770 | arg4 = &temp4; | |
28771 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28772 | } | |
28773 | } | |
994141e6 | 28774 | if (obj4) { |
15afbcd0 RD |
28775 | arg5 = (long) SWIG_AsLong(obj4); |
28776 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28777 | } |
d14a1e28 | 28778 | { |
e3b71cb8 | 28779 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28780 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28781 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
28782 | ||
28783 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28784 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28785 | } |
15afbcd0 | 28786 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28787 | return resultobj; |
28788 | fail: | |
28789 | return NULL; | |
28790 | } | |
28791 | ||
28792 | ||
28793 | static PyObject *_wrap_new_PreDirFilterListCtrl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28794 | PyObject *resultobj; | |
28795 | wxDirFilterListCtrl *result; | |
28796 | char *kwnames[] = { | |
28797 | NULL | |
28798 | }; | |
28799 | ||
28800 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PreDirFilterListCtrl",kwnames)) goto fail; | |
28801 | { | |
e3b71cb8 | 28802 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
28803 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
28804 | result = (wxDirFilterListCtrl *)new wxDirFilterListCtrl(); | |
28805 | ||
28806 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 28807 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 28808 | } |
15afbcd0 | 28809 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxDirFilterListCtrl, 1); |
d14a1e28 RD |
28810 | return resultobj; |
28811 | fail: | |
28812 | return NULL; | |
28813 | } | |
28814 | ||
28815 | ||
28816 | static PyObject *_wrap_DirFilterListCtrl_Create(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28817 | PyObject *resultobj; | |
28818 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28819 | wxGenericDirCtrl *arg2 = (wxGenericDirCtrl *) 0 ; | |
e811c8ce | 28820 | int arg3 = (int) (int)-1 ; |
d14a1e28 RD |
28821 | wxPoint const &arg4_defvalue = wxDefaultPosition ; |
28822 | wxPoint *arg4 = (wxPoint *) &arg4_defvalue ; | |
28823 | wxSize const &arg5_defvalue = wxDefaultSize ; | |
28824 | wxSize *arg5 = (wxSize *) &arg5_defvalue ; | |
28825 | long arg6 = (long) 0 ; | |
28826 | bool result; | |
28827 | wxPoint temp4 ; | |
28828 | wxSize temp5 ; | |
28829 | PyObject * obj0 = 0 ; | |
28830 | PyObject * obj1 = 0 ; | |
994141e6 | 28831 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28832 | PyObject * obj3 = 0 ; |
28833 | PyObject * obj4 = 0 ; | |
994141e6 | 28834 | PyObject * obj5 = 0 ; |
d14a1e28 RD |
28835 | char *kwnames[] = { |
28836 | (char *) "self",(char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
28837 | }; | |
28838 | ||
994141e6 | 28839 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO|OOOO:DirFilterListCtrl_Create",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
28840 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
28842 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxGenericDirCtrl, | |
28843 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 28844 | if (obj2) { |
15afbcd0 RD |
28845 | arg3 = (int const) SWIG_AsInt(obj2); |
28846 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28847 | } |
d14a1e28 RD |
28848 | if (obj3) { |
28849 | { | |
28850 | arg4 = &temp4; | |
28851 | if ( ! wxPoint_helper(obj3, &arg4)) SWIG_fail; | |
28852 | } | |
28853 | } | |
28854 | if (obj4) { | |
28855 | { | |
28856 | arg5 = &temp5; | |
28857 | if ( ! wxSize_helper(obj4, &arg5)) SWIG_fail; | |
28858 | } | |
28859 | } | |
994141e6 | 28860 | if (obj5) { |
15afbcd0 RD |
28861 | arg6 = (long) SWIG_AsLong(obj5); |
28862 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28863 | } |
d14a1e28 RD |
28864 | { |
28865 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28866 | result = (bool)(arg1)->Create(arg2,arg3,(wxPoint const &)*arg4,(wxSize const &)*arg5,arg6); | |
28867 | ||
28868 | wxPyEndAllowThreads(__tstate); | |
28869 | if (PyErr_Occurred()) SWIG_fail; | |
28870 | } | |
4f89f6a3 RD |
28871 | { |
28872 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
28873 | } | |
d14a1e28 RD |
28874 | return resultobj; |
28875 | fail: | |
28876 | return NULL; | |
28877 | } | |
28878 | ||
28879 | ||
28880 | static PyObject *_wrap_DirFilterListCtrl_FillFilterList(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28881 | PyObject *resultobj; | |
28882 | wxDirFilterListCtrl *arg1 = (wxDirFilterListCtrl *) 0 ; | |
28883 | wxString *arg2 = 0 ; | |
28884 | int arg3 ; | |
e811c8ce | 28885 | bool temp2 = False ; |
d14a1e28 RD |
28886 | PyObject * obj0 = 0 ; |
28887 | PyObject * obj1 = 0 ; | |
994141e6 | 28888 | PyObject * obj2 = 0 ; |
d14a1e28 RD |
28889 | char *kwnames[] = { |
28890 | (char *) "self",(char *) "filter",(char *) "defaultFilter", NULL | |
28891 | }; | |
28892 | ||
994141e6 | 28893 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DirFilterListCtrl_FillFilterList",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
28894 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxDirFilterListCtrl, |
28895 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
28896 | { |
28897 | arg2 = wxString_in_helper(obj1); | |
28898 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 28899 | temp2 = True; |
d14a1e28 | 28900 | } |
15afbcd0 RD |
28901 | arg3 = (int) SWIG_AsInt(obj2); |
28902 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
28903 | { |
28904 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
28905 | (arg1)->FillFilterList((wxString const &)*arg2,arg3); | |
28906 | ||
28907 | wxPyEndAllowThreads(__tstate); | |
28908 | if (PyErr_Occurred()) SWIG_fail; | |
28909 | } | |
28910 | Py_INCREF(Py_None); resultobj = Py_None; | |
28911 | { | |
28912 | if (temp2) | |
28913 | delete arg2; | |
28914 | } | |
28915 | return resultobj; | |
28916 | fail: | |
28917 | { | |
28918 | if (temp2) | |
28919 | delete arg2; | |
28920 | } | |
28921 | return NULL; | |
28922 | } | |
28923 | ||
28924 | ||
28925 | static PyObject * DirFilterListCtrl_swigregister(PyObject *self, PyObject *args) { | |
28926 | PyObject *obj; | |
28927 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
28928 | SWIG_TypeClientData(SWIGTYPE_p_wxDirFilterListCtrl, obj); | |
28929 | Py_INCREF(obj); | |
28930 | return Py_BuildValue((char *)""); | |
28931 | } | |
28932 | static PyObject *_wrap_new_PyControl(PyObject *self, PyObject *args, PyObject *kwargs) { | |
28933 | PyObject *resultobj; | |
28934 | wxWindow *arg1 = (wxWindow *) 0 ; | |
248ed943 | 28935 | int arg2 = (int) (int)-1 ; |
d14a1e28 RD |
28936 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
28937 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
28938 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
28939 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
28940 | long arg5 = (long) 0 ; | |
28941 | wxValidator const &arg6_defvalue = wxDefaultValidator ; | |
28942 | wxValidator *arg6 = (wxValidator *) &arg6_defvalue ; | |
28943 | wxString const &arg7_defvalue = wxPyControlNameStr ; | |
28944 | wxString *arg7 = (wxString *) &arg7_defvalue ; | |
28945 | wxPyControl *result; | |
28946 | wxPoint temp3 ; | |
28947 | wxSize temp4 ; | |
e811c8ce | 28948 | bool temp7 = False ; |
d14a1e28 | 28949 | PyObject * obj0 = 0 ; |
994141e6 | 28950 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
28951 | PyObject * obj2 = 0 ; |
28952 | PyObject * obj3 = 0 ; | |
994141e6 | 28953 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
28954 | PyObject * obj5 = 0 ; |
28955 | PyObject * obj6 = 0 ; | |
28956 | char *kwnames[] = { | |
28957 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style",(char *) "validator",(char *) "name", NULL | |
28958 | }; | |
28959 | ||
248ed943 | 28960 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOOOO:new_PyControl",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5,&obj6)) goto fail; |
15afbcd0 RD |
28961 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
28962 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
248ed943 RD |
28963 | if (obj1) { |
28964 | arg2 = (int const) SWIG_AsInt(obj1); | |
28965 | if (PyErr_Occurred()) SWIG_fail; | |
28966 | } | |
d14a1e28 RD |
28967 | if (obj2) { |
28968 | { | |
28969 | arg3 = &temp3; | |
28970 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
28971 | } | |
28972 | } | |
28973 | if (obj3) { | |
28974 | { | |
28975 | arg4 = &temp4; | |
28976 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
28977 | } | |
28978 | } | |
994141e6 | 28979 | if (obj4) { |
15afbcd0 RD |
28980 | arg5 = (long) SWIG_AsLong(obj4); |
28981 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 28982 | } |
d14a1e28 | 28983 | if (obj5) { |
15afbcd0 RD |
28984 | if ((SWIG_ConvertPtr(obj5,(void **)(&arg6),SWIGTYPE_p_wxValidator, |
28985 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
28986 | SWIG_fail; | |
d14a1e28 | 28987 | if (arg6 == NULL) { |
15afbcd0 RD |
28988 | PyErr_SetString(PyExc_TypeError,"null reference"); |
28989 | SWIG_fail; | |
d14a1e28 RD |
28990 | } |
28991 | } | |
28992 | if (obj6) { | |
28993 | { | |
28994 | arg7 = wxString_in_helper(obj6); | |
28995 | if (arg7 == NULL) SWIG_fail; | |
e811c8ce | 28996 | temp7 = True; |
d14a1e28 RD |
28997 | } |
28998 | } | |
28999 | { | |
e3b71cb8 | 29000 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
29001 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29002 | result = (wxPyControl *)new wxPyControl(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5,(wxValidator const &)*arg6,(wxString const &)*arg7); | |
29003 | ||
29004 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29005 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 29006 | } |
15afbcd0 | 29007 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); |
d14a1e28 RD |
29008 | { |
29009 | if (temp7) | |
29010 | delete arg7; | |
29011 | } | |
29012 | return resultobj; | |
29013 | fail: | |
29014 | { | |
29015 | if (temp7) | |
29016 | delete arg7; | |
29017 | } | |
29018 | return NULL; | |
29019 | } | |
29020 | ||
29021 | ||
1cb4a8aa RD |
29022 | static PyObject *_wrap_new_PrePyControl(PyObject *self, PyObject *args, PyObject *kwargs) { |
29023 | PyObject *resultobj; | |
29024 | wxPyControl *result; | |
29025 | char *kwnames[] = { | |
29026 | NULL | |
29027 | }; | |
29028 | ||
29029 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_PrePyControl",kwnames)) goto fail; | |
29030 | { | |
e3b71cb8 | 29031 | if (!wxPyCheckForApp()) SWIG_fail; |
1cb4a8aa RD |
29032 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
29033 | result = (wxPyControl *)new wxPyControl(); | |
29034 | ||
29035 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 29036 | if (PyErr_Occurred()) SWIG_fail; |
1cb4a8aa RD |
29037 | } |
29038 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxPyControl, 1); | |
29039 | return resultobj; | |
29040 | fail: | |
29041 | return NULL; | |
29042 | } | |
29043 | ||
29044 | ||
d14a1e28 RD |
29045 | static PyObject *_wrap_PyControl__setCallbackInfo(PyObject *self, PyObject *args, PyObject *kwargs) { |
29046 | PyObject *resultobj; | |
29047 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29048 | PyObject *arg2 = (PyObject *) 0 ; | |
29049 | PyObject *arg3 = (PyObject *) 0 ; | |
29050 | PyObject * obj0 = 0 ; | |
29051 | PyObject * obj1 = 0 ; | |
29052 | PyObject * obj2 = 0 ; | |
29053 | char *kwnames[] = { | |
29054 | (char *) "self",(char *) "self",(char *) "_class", NULL | |
29055 | }; | |
29056 | ||
29057 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl__setCallbackInfo",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
29058 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29059 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29060 | arg2 = obj1; |
29061 | arg3 = obj2; | |
29062 | { | |
29063 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29064 | (arg1)->_setCallbackInfo(arg2,arg3); | |
29065 | ||
29066 | wxPyEndAllowThreads(__tstate); | |
29067 | if (PyErr_Occurred()) SWIG_fail; | |
29068 | } | |
29069 | Py_INCREF(Py_None); resultobj = Py_None; | |
29070 | return resultobj; | |
29071 | fail: | |
29072 | return NULL; | |
29073 | } | |
29074 | ||
29075 | ||
db3e571a RD |
29076 | static PyObject *_wrap_PyControl_SetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { |
29077 | PyObject *resultobj; | |
29078 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29079 | wxSize *arg2 = 0 ; | |
29080 | wxSize temp2 ; | |
29081 | PyObject * obj0 = 0 ; | |
29082 | PyObject * obj1 = 0 ; | |
29083 | char *kwnames[] = { | |
29084 | (char *) "self",(char *) "size", NULL | |
29085 | }; | |
29086 | ||
29087 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_SetBestSize",kwnames,&obj0,&obj1)) goto fail; | |
29088 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29089 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29090 | { | |
29091 | arg2 = &temp2; | |
29092 | if ( ! wxSize_helper(obj1, &arg2)) SWIG_fail; | |
29093 | } | |
29094 | { | |
29095 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29096 | (arg1)->SetBestSize((wxSize const &)*arg2); | |
29097 | ||
29098 | wxPyEndAllowThreads(__tstate); | |
29099 | if (PyErr_Occurred()) SWIG_fail; | |
29100 | } | |
29101 | Py_INCREF(Py_None); resultobj = Py_None; | |
29102 | return resultobj; | |
29103 | fail: | |
29104 | return NULL; | |
29105 | } | |
29106 | ||
29107 | ||
d14a1e28 RD |
29108 | static PyObject *_wrap_PyControl_base_DoMoveWindow(PyObject *self, PyObject *args, PyObject *kwargs) { |
29109 | PyObject *resultobj; | |
29110 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29111 | int arg2 ; | |
29112 | int arg3 ; | |
29113 | int arg4 ; | |
29114 | int arg5 ; | |
29115 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29116 | PyObject * obj1 = 0 ; |
29117 | PyObject * obj2 = 0 ; | |
29118 | PyObject * obj3 = 0 ; | |
29119 | PyObject * obj4 = 0 ; | |
d14a1e28 RD |
29120 | char *kwnames[] = { |
29121 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height", NULL | |
29122 | }; | |
29123 | ||
994141e6 | 29124 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:PyControl_base_DoMoveWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
29125 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29126 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29127 | arg2 = (int) SWIG_AsInt(obj1); | |
29128 | if (PyErr_Occurred()) SWIG_fail; | |
29129 | arg3 = (int) SWIG_AsInt(obj2); | |
29130 | if (PyErr_Occurred()) SWIG_fail; | |
29131 | arg4 = (int) SWIG_AsInt(obj3); | |
29132 | if (PyErr_Occurred()) SWIG_fail; | |
29133 | arg5 = (int) SWIG_AsInt(obj4); | |
29134 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29135 | { |
29136 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29137 | (arg1)->base_DoMoveWindow(arg2,arg3,arg4,arg5); | |
29138 | ||
29139 | wxPyEndAllowThreads(__tstate); | |
29140 | if (PyErr_Occurred()) SWIG_fail; | |
29141 | } | |
29142 | Py_INCREF(Py_None); resultobj = Py_None; | |
29143 | return resultobj; | |
29144 | fail: | |
29145 | return NULL; | |
29146 | } | |
29147 | ||
29148 | ||
29149 | static PyObject *_wrap_PyControl_base_DoSetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29150 | PyObject *resultobj; | |
29151 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29152 | int arg2 ; | |
29153 | int arg3 ; | |
29154 | int arg4 ; | |
29155 | int arg5 ; | |
29156 | int arg6 = (int) wxSIZE_AUTO ; | |
29157 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29158 | PyObject * obj1 = 0 ; |
29159 | PyObject * obj2 = 0 ; | |
29160 | PyObject * obj3 = 0 ; | |
29161 | PyObject * obj4 = 0 ; | |
29162 | PyObject * obj5 = 0 ; | |
d14a1e28 RD |
29163 | char *kwnames[] = { |
29164 | (char *) "self",(char *) "x",(char *) "y",(char *) "width",(char *) "height",(char *) "sizeFlags", NULL | |
29165 | }; | |
29166 | ||
994141e6 | 29167 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO|O:PyControl_base_DoSetSize",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4,&obj5)) goto fail; |
15afbcd0 RD |
29168 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29169 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29170 | arg2 = (int) SWIG_AsInt(obj1); | |
29171 | if (PyErr_Occurred()) SWIG_fail; | |
29172 | arg3 = (int) SWIG_AsInt(obj2); | |
29173 | if (PyErr_Occurred()) SWIG_fail; | |
29174 | arg4 = (int) SWIG_AsInt(obj3); | |
29175 | if (PyErr_Occurred()) SWIG_fail; | |
29176 | arg5 = (int) SWIG_AsInt(obj4); | |
29177 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29178 | if (obj5) { |
15afbcd0 RD |
29179 | arg6 = (int) SWIG_AsInt(obj5); |
29180 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29181 | } |
d14a1e28 RD |
29182 | { |
29183 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29184 | (arg1)->base_DoSetSize(arg2,arg3,arg4,arg5,arg6); | |
29185 | ||
29186 | wxPyEndAllowThreads(__tstate); | |
29187 | if (PyErr_Occurred()) SWIG_fail; | |
29188 | } | |
29189 | Py_INCREF(Py_None); resultobj = Py_None; | |
29190 | return resultobj; | |
29191 | fail: | |
29192 | return NULL; | |
29193 | } | |
29194 | ||
29195 | ||
29196 | static PyObject *_wrap_PyControl_base_DoSetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29197 | PyObject *resultobj; | |
29198 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29199 | int arg2 ; | |
29200 | int arg3 ; | |
29201 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29202 | PyObject * obj1 = 0 ; |
29203 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29204 | char *kwnames[] = { |
29205 | (char *) "self",(char *) "width",(char *) "height", NULL | |
29206 | }; | |
29207 | ||
994141e6 | 29208 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetClientSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29209 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29210 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29211 | arg2 = (int) SWIG_AsInt(obj1); | |
29212 | if (PyErr_Occurred()) SWIG_fail; | |
29213 | arg3 = (int) SWIG_AsInt(obj2); | |
29214 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29215 | { |
29216 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29217 | (arg1)->base_DoSetClientSize(arg2,arg3); | |
29218 | ||
29219 | wxPyEndAllowThreads(__tstate); | |
29220 | if (PyErr_Occurred()) SWIG_fail; | |
29221 | } | |
29222 | Py_INCREF(Py_None); resultobj = Py_None; | |
29223 | return resultobj; | |
29224 | fail: | |
29225 | return NULL; | |
29226 | } | |
29227 | ||
29228 | ||
29229 | static PyObject *_wrap_PyControl_base_DoSetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29230 | PyObject *resultobj; | |
29231 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29232 | int arg2 ; | |
29233 | int arg3 ; | |
29234 | PyObject * obj0 = 0 ; | |
994141e6 RD |
29235 | PyObject * obj1 = 0 ; |
29236 | PyObject * obj2 = 0 ; | |
d14a1e28 RD |
29237 | char *kwnames[] = { |
29238 | (char *) "self",(char *) "x",(char *) "y", NULL | |
29239 | }; | |
29240 | ||
994141e6 | 29241 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:PyControl_base_DoSetVirtualSize",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
29242 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29243 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29244 | arg2 = (int) SWIG_AsInt(obj1); | |
29245 | if (PyErr_Occurred()) SWIG_fail; | |
29246 | arg3 = (int) SWIG_AsInt(obj2); | |
29247 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
29248 | { |
29249 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29250 | (arg1)->base_DoSetVirtualSize(arg2,arg3); | |
29251 | ||
29252 | wxPyEndAllowThreads(__tstate); | |
29253 | if (PyErr_Occurred()) SWIG_fail; | |
29254 | } | |
29255 | Py_INCREF(Py_None); resultobj = Py_None; | |
29256 | return resultobj; | |
29257 | fail: | |
29258 | return NULL; | |
29259 | } | |
29260 | ||
29261 | ||
29262 | static PyObject *_wrap_PyControl_base_DoGetSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29263 | PyObject *resultobj; | |
29264 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29265 | int *arg2 = (int *) 0 ; | |
29266 | int *arg3 = (int *) 0 ; | |
29267 | int temp2 ; | |
29268 | int temp3 ; | |
29269 | PyObject * obj0 = 0 ; | |
29270 | char *kwnames[] = { | |
29271 | (char *) "self", NULL | |
29272 | }; | |
29273 | ||
29274 | arg2 = &temp2; | |
29275 | arg3 = &temp3; | |
29276 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29277 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29278 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29279 | { |
29280 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29281 | ((wxPyControl const *)arg1)->base_DoGetSize(arg2,arg3); | |
29282 | ||
29283 | wxPyEndAllowThreads(__tstate); | |
29284 | if (PyErr_Occurred()) SWIG_fail; | |
29285 | } | |
29286 | Py_INCREF(Py_None); resultobj = Py_None; | |
29287 | { | |
29288 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29289 | resultobj = t_output_helper(resultobj,o); | |
29290 | } | |
29291 | { | |
29292 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29293 | resultobj = t_output_helper(resultobj,o); | |
29294 | } | |
29295 | return resultobj; | |
29296 | fail: | |
29297 | return NULL; | |
29298 | } | |
29299 | ||
29300 | ||
29301 | static PyObject *_wrap_PyControl_base_DoGetClientSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29302 | PyObject *resultobj; | |
29303 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29304 | int *arg2 = (int *) 0 ; | |
29305 | int *arg3 = (int *) 0 ; | |
29306 | int temp2 ; | |
29307 | int temp3 ; | |
29308 | PyObject * obj0 = 0 ; | |
29309 | char *kwnames[] = { | |
29310 | (char *) "self", NULL | |
29311 | }; | |
29312 | ||
29313 | arg2 = &temp2; | |
29314 | arg3 = &temp3; | |
29315 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetClientSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29316 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29317 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29318 | { |
29319 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29320 | ((wxPyControl const *)arg1)->base_DoGetClientSize(arg2,arg3); | |
29321 | ||
29322 | wxPyEndAllowThreads(__tstate); | |
29323 | if (PyErr_Occurred()) SWIG_fail; | |
29324 | } | |
29325 | Py_INCREF(Py_None); resultobj = Py_None; | |
29326 | { | |
29327 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29328 | resultobj = t_output_helper(resultobj,o); | |
29329 | } | |
29330 | { | |
29331 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29332 | resultobj = t_output_helper(resultobj,o); | |
29333 | } | |
29334 | return resultobj; | |
29335 | fail: | |
29336 | return NULL; | |
29337 | } | |
29338 | ||
29339 | ||
29340 | static PyObject *_wrap_PyControl_base_DoGetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29341 | PyObject *resultobj; | |
29342 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29343 | int *arg2 = (int *) 0 ; | |
29344 | int *arg3 = (int *) 0 ; | |
29345 | int temp2 ; | |
29346 | int temp3 ; | |
29347 | PyObject * obj0 = 0 ; | |
29348 | char *kwnames[] = { | |
29349 | (char *) "self", NULL | |
29350 | }; | |
29351 | ||
29352 | arg2 = &temp2; | |
29353 | arg3 = &temp3; | |
29354 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29355 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29356 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29357 | { |
29358 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29359 | ((wxPyControl const *)arg1)->base_DoGetPosition(arg2,arg3); | |
29360 | ||
29361 | wxPyEndAllowThreads(__tstate); | |
29362 | if (PyErr_Occurred()) SWIG_fail; | |
29363 | } | |
29364 | Py_INCREF(Py_None); resultobj = Py_None; | |
29365 | { | |
29366 | PyObject *o = PyInt_FromLong((long) (*arg2)); | |
29367 | resultobj = t_output_helper(resultobj,o); | |
29368 | } | |
29369 | { | |
29370 | PyObject *o = PyInt_FromLong((long) (*arg3)); | |
29371 | resultobj = t_output_helper(resultobj,o); | |
29372 | } | |
29373 | return resultobj; | |
29374 | fail: | |
29375 | return NULL; | |
29376 | } | |
29377 | ||
29378 | ||
29379 | static PyObject *_wrap_PyControl_base_DoGetVirtualSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29380 | PyObject *resultobj; | |
29381 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29382 | wxSize result; | |
29383 | PyObject * obj0 = 0 ; | |
29384 | char *kwnames[] = { | |
29385 | (char *) "self", NULL | |
29386 | }; | |
29387 | ||
29388 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetVirtualSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29389 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29390 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29391 | { |
29392 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29393 | result = ((wxPyControl const *)arg1)->base_DoGetVirtualSize(); | |
29394 | ||
29395 | wxPyEndAllowThreads(__tstate); | |
29396 | if (PyErr_Occurred()) SWIG_fail; | |
29397 | } | |
29398 | { | |
29399 | wxSize * resultptr; | |
29400 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29401 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29402 | } |
29403 | return resultobj; | |
29404 | fail: | |
29405 | return NULL; | |
29406 | } | |
29407 | ||
29408 | ||
29409 | static PyObject *_wrap_PyControl_base_DoGetBestSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29410 | PyObject *resultobj; | |
29411 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29412 | wxSize result; | |
29413 | PyObject * obj0 = 0 ; | |
29414 | char *kwnames[] = { | |
29415 | (char *) "self", NULL | |
29416 | }; | |
29417 | ||
29418 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_DoGetBestSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29419 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29420 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29421 | { |
29422 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29423 | result = ((wxPyControl const *)arg1)->base_DoGetBestSize(); | |
29424 | ||
29425 | wxPyEndAllowThreads(__tstate); | |
29426 | if (PyErr_Occurred()) SWIG_fail; | |
29427 | } | |
29428 | { | |
29429 | wxSize * resultptr; | |
29430 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29431 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29432 | } |
29433 | return resultobj; | |
29434 | fail: | |
29435 | return NULL; | |
29436 | } | |
29437 | ||
29438 | ||
29439 | static PyObject *_wrap_PyControl_base_InitDialog(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29440 | PyObject *resultobj; | |
29441 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29442 | PyObject * obj0 = 0 ; | |
29443 | char *kwnames[] = { | |
29444 | (char *) "self", NULL | |
29445 | }; | |
29446 | ||
29447 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_InitDialog",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29448 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29449 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29450 | { |
29451 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29452 | (arg1)->base_InitDialog(); | |
29453 | ||
29454 | wxPyEndAllowThreads(__tstate); | |
29455 | if (PyErr_Occurred()) SWIG_fail; | |
29456 | } | |
29457 | Py_INCREF(Py_None); resultobj = Py_None; | |
29458 | return resultobj; | |
29459 | fail: | |
29460 | return NULL; | |
29461 | } | |
29462 | ||
29463 | ||
29464 | static PyObject *_wrap_PyControl_base_TransferDataToWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29465 | PyObject *resultobj; | |
29466 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29467 | bool result; | |
29468 | PyObject * obj0 = 0 ; | |
29469 | char *kwnames[] = { | |
29470 | (char *) "self", NULL | |
29471 | }; | |
29472 | ||
29473 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataToWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29474 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29475 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29476 | { |
29477 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29478 | result = (bool)(arg1)->base_TransferDataToWindow(); | |
29479 | ||
29480 | wxPyEndAllowThreads(__tstate); | |
29481 | if (PyErr_Occurred()) SWIG_fail; | |
29482 | } | |
4f89f6a3 RD |
29483 | { |
29484 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29485 | } | |
d14a1e28 RD |
29486 | return resultobj; |
29487 | fail: | |
29488 | return NULL; | |
29489 | } | |
29490 | ||
29491 | ||
29492 | static PyObject *_wrap_PyControl_base_TransferDataFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29493 | PyObject *resultobj; | |
29494 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29495 | bool result; | |
29496 | PyObject * obj0 = 0 ; | |
29497 | char *kwnames[] = { | |
29498 | (char *) "self", NULL | |
29499 | }; | |
29500 | ||
29501 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_TransferDataFromWindow",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29502 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29503 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29504 | { |
29505 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29506 | result = (bool)(arg1)->base_TransferDataFromWindow(); | |
29507 | ||
29508 | wxPyEndAllowThreads(__tstate); | |
29509 | if (PyErr_Occurred()) SWIG_fail; | |
29510 | } | |
4f89f6a3 RD |
29511 | { |
29512 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29513 | } | |
d14a1e28 RD |
29514 | return resultobj; |
29515 | fail: | |
29516 | return NULL; | |
29517 | } | |
29518 | ||
29519 | ||
29520 | static PyObject *_wrap_PyControl_base_Validate(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29521 | PyObject *resultobj; | |
29522 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29523 | bool result; | |
29524 | PyObject * obj0 = 0 ; | |
29525 | char *kwnames[] = { | |
29526 | (char *) "self", NULL | |
29527 | }; | |
29528 | ||
29529 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_Validate",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29530 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29531 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29532 | { |
29533 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29534 | result = (bool)(arg1)->base_Validate(); | |
29535 | ||
29536 | wxPyEndAllowThreads(__tstate); | |
29537 | if (PyErr_Occurred()) SWIG_fail; | |
29538 | } | |
4f89f6a3 RD |
29539 | { |
29540 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29541 | } | |
d14a1e28 RD |
29542 | return resultobj; |
29543 | fail: | |
29544 | return NULL; | |
29545 | } | |
29546 | ||
29547 | ||
29548 | static PyObject *_wrap_PyControl_base_AcceptsFocus(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29549 | PyObject *resultobj; | |
29550 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29551 | bool result; | |
29552 | PyObject * obj0 = 0 ; | |
29553 | char *kwnames[] = { | |
29554 | (char *) "self", NULL | |
29555 | }; | |
29556 | ||
29557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocus",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29559 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29560 | { |
29561 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29562 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocus(); | |
29563 | ||
29564 | wxPyEndAllowThreads(__tstate); | |
29565 | if (PyErr_Occurred()) SWIG_fail; | |
29566 | } | |
4f89f6a3 RD |
29567 | { |
29568 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29569 | } | |
d14a1e28 RD |
29570 | return resultobj; |
29571 | fail: | |
29572 | return NULL; | |
29573 | } | |
29574 | ||
29575 | ||
29576 | static PyObject *_wrap_PyControl_base_AcceptsFocusFromKeyboard(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29577 | PyObject *resultobj; | |
29578 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29579 | bool result; | |
29580 | PyObject * obj0 = 0 ; | |
29581 | char *kwnames[] = { | |
29582 | (char *) "self", NULL | |
29583 | }; | |
29584 | ||
29585 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_AcceptsFocusFromKeyboard",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29586 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29587 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29588 | { |
29589 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29590 | result = (bool)((wxPyControl const *)arg1)->base_AcceptsFocusFromKeyboard(); | |
29591 | ||
29592 | wxPyEndAllowThreads(__tstate); | |
29593 | if (PyErr_Occurred()) SWIG_fail; | |
29594 | } | |
4f89f6a3 RD |
29595 | { |
29596 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29597 | } | |
d14a1e28 RD |
29598 | return resultobj; |
29599 | fail: | |
29600 | return NULL; | |
29601 | } | |
29602 | ||
29603 | ||
29604 | static PyObject *_wrap_PyControl_base_GetMaxSize(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29605 | PyObject *resultobj; | |
29606 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29607 | wxSize result; | |
29608 | PyObject * obj0 = 0 ; | |
29609 | char *kwnames[] = { | |
29610 | (char *) "self", NULL | |
29611 | }; | |
29612 | ||
29613 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetMaxSize",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29614 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29615 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29616 | { |
29617 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29618 | result = ((wxPyControl const *)arg1)->base_GetMaxSize(); | |
29619 | ||
29620 | wxPyEndAllowThreads(__tstate); | |
29621 | if (PyErr_Occurred()) SWIG_fail; | |
29622 | } | |
29623 | { | |
29624 | wxSize * resultptr; | |
29625 | resultptr = new wxSize((wxSize &) result); | |
15afbcd0 | 29626 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxSize, 1); |
d14a1e28 RD |
29627 | } |
29628 | return resultobj; | |
29629 | fail: | |
29630 | return NULL; | |
29631 | } | |
29632 | ||
29633 | ||
29634 | static PyObject *_wrap_PyControl_base_AddChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29635 | PyObject *resultobj; | |
29636 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29637 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29638 | PyObject * obj0 = 0 ; | |
29639 | PyObject * obj1 = 0 ; | |
29640 | char *kwnames[] = { | |
29641 | (char *) "self",(char *) "child", NULL | |
29642 | }; | |
29643 | ||
29644 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_AddChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29645 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29646 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29647 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29648 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29649 | { |
29650 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29651 | (arg1)->base_AddChild(arg2); | |
29652 | ||
29653 | wxPyEndAllowThreads(__tstate); | |
29654 | if (PyErr_Occurred()) SWIG_fail; | |
29655 | } | |
29656 | Py_INCREF(Py_None); resultobj = Py_None; | |
29657 | return resultobj; | |
29658 | fail: | |
29659 | return NULL; | |
29660 | } | |
29661 | ||
29662 | ||
29663 | static PyObject *_wrap_PyControl_base_RemoveChild(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29664 | PyObject *resultobj; | |
29665 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29666 | wxWindow *arg2 = (wxWindow *) 0 ; | |
29667 | PyObject * obj0 = 0 ; | |
29668 | PyObject * obj1 = 0 ; | |
29669 | char *kwnames[] = { | |
29670 | (char *) "self",(char *) "child", NULL | |
29671 | }; | |
29672 | ||
29673 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_RemoveChild",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29674 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, |
29675 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29676 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
29677 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29678 | { |
29679 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29680 | (arg1)->base_RemoveChild(arg2); | |
29681 | ||
29682 | wxPyEndAllowThreads(__tstate); | |
29683 | if (PyErr_Occurred()) SWIG_fail; | |
29684 | } | |
29685 | Py_INCREF(Py_None); resultobj = Py_None; | |
29686 | return resultobj; | |
29687 | fail: | |
29688 | return NULL; | |
29689 | } | |
29690 | ||
29691 | ||
1cb4a8aa RD |
29692 | static PyObject *_wrap_PyControl_base_ShouldInheritColours(PyObject *self, PyObject *args, PyObject *kwargs) { |
29693 | PyObject *resultobj; | |
29694 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29695 | bool result; | |
29696 | PyObject * obj0 = 0 ; | |
29697 | char *kwnames[] = { | |
29698 | (char *) "self", NULL | |
29699 | }; | |
29700 | ||
29701 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_ShouldInheritColours",kwnames,&obj0)) goto fail; | |
29702 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29703 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29704 | { | |
29705 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
db3e571a | 29706 | result = (bool)((wxPyControl const *)arg1)->base_ShouldInheritColours(); |
1cb4a8aa RD |
29707 | |
29708 | wxPyEndAllowThreads(__tstate); | |
29709 | if (PyErr_Occurred()) SWIG_fail; | |
29710 | } | |
29711 | { | |
29712 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
29713 | } | |
29714 | return resultobj; | |
29715 | fail: | |
29716 | return NULL; | |
29717 | } | |
29718 | ||
29719 | ||
29720 | static PyObject *_wrap_PyControl_base_ApplyParentThemeBackground(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29721 | PyObject *resultobj; | |
29722 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29723 | wxColour *arg2 = 0 ; | |
29724 | wxColour temp2 ; | |
29725 | PyObject * obj0 = 0 ; | |
29726 | PyObject * obj1 = 0 ; | |
29727 | char *kwnames[] = { | |
29728 | (char *) "self",(char *) "c", NULL | |
29729 | }; | |
29730 | ||
29731 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:PyControl_base_ApplyParentThemeBackground",kwnames,&obj0,&obj1)) goto fail; | |
29732 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29733 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29734 | { | |
29735 | arg2 = &temp2; | |
29736 | if ( ! wxColour_helper(obj1, &arg2)) SWIG_fail; | |
29737 | } | |
29738 | { | |
29739 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29740 | (arg1)->base_ApplyParentThemeBackground((wxColour const &)*arg2); | |
29741 | ||
29742 | wxPyEndAllowThreads(__tstate); | |
29743 | if (PyErr_Occurred()) SWIG_fail; | |
29744 | } | |
29745 | Py_INCREF(Py_None); resultobj = Py_None; | |
29746 | return resultobj; | |
29747 | fail: | |
29748 | return NULL; | |
29749 | } | |
29750 | ||
29751 | ||
db3e571a RD |
29752 | static PyObject *_wrap_PyControl_base_GetDefaultAttributes(PyObject *self, PyObject *args, PyObject *kwargs) { |
29753 | PyObject *resultobj; | |
29754 | wxPyControl *arg1 = (wxPyControl *) 0 ; | |
29755 | wxVisualAttributes result; | |
29756 | PyObject * obj0 = 0 ; | |
29757 | char *kwnames[] = { | |
29758 | (char *) "self", NULL | |
29759 | }; | |
29760 | ||
29761 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:PyControl_base_GetDefaultAttributes",kwnames,&obj0)) goto fail; | |
29762 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyControl, | |
29763 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
29764 | { | |
29765 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29766 | result = (arg1)->base_GetDefaultAttributes(); | |
29767 | ||
29768 | wxPyEndAllowThreads(__tstate); | |
29769 | if (PyErr_Occurred()) SWIG_fail; | |
29770 | } | |
29771 | { | |
29772 | wxVisualAttributes * resultptr; | |
29773 | resultptr = new wxVisualAttributes((wxVisualAttributes &) result); | |
29774 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxVisualAttributes, 1); | |
29775 | } | |
29776 | return resultobj; | |
29777 | fail: | |
29778 | return NULL; | |
29779 | } | |
29780 | ||
29781 | ||
d14a1e28 RD |
29782 | static PyObject * PyControl_swigregister(PyObject *self, PyObject *args) { |
29783 | PyObject *obj; | |
29784 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
29785 | SWIG_TypeClientData(SWIGTYPE_p_wxPyControl, obj); | |
29786 | Py_INCREF(obj); | |
29787 | return Py_BuildValue((char *)""); | |
29788 | } | |
29789 | static PyObject *_wrap_new_HelpEvent(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29790 | PyObject *resultobj; | |
29791 | wxEventType arg1 = (wxEventType) wxEVT_NULL ; | |
e811c8ce | 29792 | int arg2 = (int) 0 ; |
d14a1e28 RD |
29793 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
29794 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
29795 | wxHelpEvent *result; | |
29796 | wxPoint temp3 ; | |
994141e6 RD |
29797 | PyObject * obj0 = 0 ; |
29798 | PyObject * obj1 = 0 ; | |
d14a1e28 RD |
29799 | PyObject * obj2 = 0 ; |
29800 | char *kwnames[] = { | |
29801 | (char *) "type",(char *) "winid",(char *) "pt", NULL | |
29802 | }; | |
29803 | ||
994141e6 RD |
29804 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OOO:new_HelpEvent",kwnames,&obj0,&obj1,&obj2)) goto fail; |
29805 | if (obj0) { | |
15afbcd0 RD |
29806 | arg1 = (wxEventType) SWIG_AsInt(obj0); |
29807 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 RD |
29808 | } |
29809 | if (obj1) { | |
15afbcd0 RD |
29810 | arg2 = (int) SWIG_AsInt(obj1); |
29811 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 29812 | } |
d14a1e28 RD |
29813 | if (obj2) { |
29814 | { | |
29815 | arg3 = &temp3; | |
29816 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
29817 | } | |
29818 | } | |
29819 | { | |
29820 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29821 | result = (wxHelpEvent *)new wxHelpEvent(arg1,arg2,(wxPoint const &)*arg3); | |
29822 | ||
29823 | wxPyEndAllowThreads(__tstate); | |
29824 | if (PyErr_Occurred()) SWIG_fail; | |
29825 | } | |
15afbcd0 | 29826 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpEvent, 1); |
d14a1e28 RD |
29827 | return resultobj; |
29828 | fail: | |
29829 | return NULL; | |
29830 | } | |
29831 | ||
29832 | ||
29833 | static PyObject *_wrap_HelpEvent_GetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29834 | PyObject *resultobj; | |
29835 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
15afbcd0 | 29836 | wxPoint result; |
d14a1e28 RD |
29837 | PyObject * obj0 = 0 ; |
29838 | char *kwnames[] = { | |
29839 | (char *) "self", NULL | |
29840 | }; | |
29841 | ||
29842 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetPosition",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29843 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29844 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29845 | { |
29846 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
15afbcd0 | 29847 | result = ((wxHelpEvent const *)arg1)->GetPosition(); |
d14a1e28 RD |
29848 | |
29849 | wxPyEndAllowThreads(__tstate); | |
29850 | if (PyErr_Occurred()) SWIG_fail; | |
29851 | } | |
15afbcd0 RD |
29852 | { |
29853 | wxPoint * resultptr; | |
29854 | resultptr = new wxPoint((wxPoint &) result); | |
29855 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxPoint, 1); | |
29856 | } | |
d14a1e28 RD |
29857 | return resultobj; |
29858 | fail: | |
29859 | return NULL; | |
29860 | } | |
29861 | ||
29862 | ||
29863 | static PyObject *_wrap_HelpEvent_SetPosition(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29864 | PyObject *resultobj; | |
29865 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29866 | wxPoint *arg2 = 0 ; | |
29867 | wxPoint temp2 ; | |
29868 | PyObject * obj0 = 0 ; | |
29869 | PyObject * obj1 = 0 ; | |
29870 | char *kwnames[] = { | |
29871 | (char *) "self",(char *) "pos", NULL | |
29872 | }; | |
29873 | ||
29874 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetPosition",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29875 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29876 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29877 | { |
29878 | arg2 = &temp2; | |
29879 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
29880 | } | |
29881 | { | |
29882 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29883 | (arg1)->SetPosition((wxPoint const &)*arg2); | |
29884 | ||
29885 | wxPyEndAllowThreads(__tstate); | |
29886 | if (PyErr_Occurred()) SWIG_fail; | |
29887 | } | |
29888 | Py_INCREF(Py_None); resultobj = Py_None; | |
29889 | return resultobj; | |
29890 | fail: | |
29891 | return NULL; | |
29892 | } | |
29893 | ||
29894 | ||
29895 | static PyObject *_wrap_HelpEvent_GetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29896 | PyObject *resultobj; | |
29897 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29898 | wxString *result; | |
29899 | PyObject * obj0 = 0 ; | |
29900 | char *kwnames[] = { | |
29901 | (char *) "self", NULL | |
29902 | }; | |
29903 | ||
29904 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetLink",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29905 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29906 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29907 | { |
29908 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29909 | { | |
29910 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetLink(); | |
29911 | result = (wxString *) &_result_ref; | |
29912 | } | |
29913 | ||
29914 | wxPyEndAllowThreads(__tstate); | |
29915 | if (PyErr_Occurred()) SWIG_fail; | |
29916 | } | |
cc6dd355 RD |
29917 | { |
29918 | #if wxUSE_UNICODE | |
29919 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29920 | #else | |
29921 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29922 | #endif | |
29923 | } | |
d14a1e28 RD |
29924 | return resultobj; |
29925 | fail: | |
29926 | return NULL; | |
29927 | } | |
29928 | ||
29929 | ||
29930 | static PyObject *_wrap_HelpEvent_SetLink(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29931 | PyObject *resultobj; | |
29932 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29933 | wxString *arg2 = 0 ; | |
e811c8ce | 29934 | bool temp2 = False ; |
d14a1e28 RD |
29935 | PyObject * obj0 = 0 ; |
29936 | PyObject * obj1 = 0 ; | |
29937 | char *kwnames[] = { | |
29938 | (char *) "self",(char *) "link", NULL | |
29939 | }; | |
29940 | ||
29941 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetLink",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
29942 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29943 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29944 | { |
29945 | arg2 = wxString_in_helper(obj1); | |
29946 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 29947 | temp2 = True; |
d14a1e28 RD |
29948 | } |
29949 | { | |
29950 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29951 | (arg1)->SetLink((wxString const &)*arg2); | |
29952 | ||
29953 | wxPyEndAllowThreads(__tstate); | |
29954 | if (PyErr_Occurred()) SWIG_fail; | |
29955 | } | |
29956 | Py_INCREF(Py_None); resultobj = Py_None; | |
29957 | { | |
29958 | if (temp2) | |
29959 | delete arg2; | |
29960 | } | |
29961 | return resultobj; | |
29962 | fail: | |
29963 | { | |
29964 | if (temp2) | |
29965 | delete arg2; | |
29966 | } | |
29967 | return NULL; | |
29968 | } | |
29969 | ||
29970 | ||
29971 | static PyObject *_wrap_HelpEvent_GetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
29972 | PyObject *resultobj; | |
29973 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
29974 | wxString *result; | |
29975 | PyObject * obj0 = 0 ; | |
29976 | char *kwnames[] = { | |
29977 | (char *) "self", NULL | |
29978 | }; | |
29979 | ||
29980 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpEvent_GetTarget",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
29981 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
29982 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
29983 | { |
29984 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
29985 | { | |
29986 | wxString const &_result_ref = ((wxHelpEvent const *)arg1)->GetTarget(); | |
29987 | result = (wxString *) &_result_ref; | |
29988 | } | |
29989 | ||
29990 | wxPyEndAllowThreads(__tstate); | |
29991 | if (PyErr_Occurred()) SWIG_fail; | |
29992 | } | |
cc6dd355 RD |
29993 | { |
29994 | #if wxUSE_UNICODE | |
29995 | resultobj = PyUnicode_FromWideChar(result->c_str(), result->Len()); | |
29996 | #else | |
29997 | resultobj = PyString_FromStringAndSize(result->c_str(), result->Len()); | |
29998 | #endif | |
29999 | } | |
d14a1e28 RD |
30000 | return resultobj; |
30001 | fail: | |
30002 | return NULL; | |
30003 | } | |
30004 | ||
30005 | ||
30006 | static PyObject *_wrap_HelpEvent_SetTarget(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30007 | PyObject *resultobj; | |
30008 | wxHelpEvent *arg1 = (wxHelpEvent *) 0 ; | |
30009 | wxString *arg2 = 0 ; | |
e811c8ce | 30010 | bool temp2 = False ; |
d14a1e28 RD |
30011 | PyObject * obj0 = 0 ; |
30012 | PyObject * obj1 = 0 ; | |
30013 | char *kwnames[] = { | |
30014 | (char *) "self",(char *) "target", NULL | |
30015 | }; | |
30016 | ||
30017 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpEvent_SetTarget",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30018 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpEvent, |
30019 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30020 | { |
30021 | arg2 = wxString_in_helper(obj1); | |
30022 | if (arg2 == NULL) SWIG_fail; | |
e811c8ce | 30023 | temp2 = True; |
d14a1e28 RD |
30024 | } |
30025 | { | |
30026 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30027 | (arg1)->SetTarget((wxString const &)*arg2); | |
30028 | ||
30029 | wxPyEndAllowThreads(__tstate); | |
30030 | if (PyErr_Occurred()) SWIG_fail; | |
30031 | } | |
30032 | Py_INCREF(Py_None); resultobj = Py_None; | |
30033 | { | |
30034 | if (temp2) | |
30035 | delete arg2; | |
30036 | } | |
30037 | return resultobj; | |
30038 | fail: | |
30039 | { | |
30040 | if (temp2) | |
30041 | delete arg2; | |
30042 | } | |
30043 | return NULL; | |
30044 | } | |
30045 | ||
30046 | ||
30047 | static PyObject * HelpEvent_swigregister(PyObject *self, PyObject *args) { | |
30048 | PyObject *obj; | |
30049 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30050 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpEvent, obj); | |
30051 | Py_INCREF(obj); | |
30052 | return Py_BuildValue((char *)""); | |
30053 | } | |
30054 | static PyObject *_wrap_new_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30055 | PyObject *resultobj; | |
30056 | wxWindow *arg1 = (wxWindow *) NULL ; | |
e811c8ce | 30057 | bool arg2 = (bool) True ; |
d14a1e28 RD |
30058 | wxContextHelp *result; |
30059 | PyObject * obj0 = 0 ; | |
30060 | PyObject * obj1 = 0 ; | |
30061 | char *kwnames[] = { | |
30062 | (char *) "window",(char *) "doNow", NULL | |
30063 | }; | |
30064 | ||
30065 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"|OO:new_ContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
30066 | if (obj0) { | |
15afbcd0 RD |
30067 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30068 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30069 | } |
30070 | if (obj1) { | |
15afbcd0 RD |
30071 | arg2 = (bool) SWIG_AsBool(obj1); |
30072 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30073 | } |
30074 | { | |
e3b71cb8 | 30075 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30076 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30077 | result = (wxContextHelp *)new wxContextHelp(arg1,arg2); | |
30078 | ||
30079 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30080 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30081 | } |
15afbcd0 | 30082 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelp, 1); |
d14a1e28 RD |
30083 | return resultobj; |
30084 | fail: | |
30085 | return NULL; | |
30086 | } | |
30087 | ||
30088 | ||
30089 | static PyObject *_wrap_delete_ContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30090 | PyObject *resultobj; | |
30091 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30092 | PyObject * obj0 = 0 ; | |
30093 | char *kwnames[] = { | |
30094 | (char *) "self", NULL | |
30095 | }; | |
30096 | ||
30097 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_ContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30098 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30099 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30100 | { |
30101 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30102 | delete arg1; | |
30103 | ||
30104 | wxPyEndAllowThreads(__tstate); | |
30105 | if (PyErr_Occurred()) SWIG_fail; | |
30106 | } | |
30107 | Py_INCREF(Py_None); resultobj = Py_None; | |
30108 | return resultobj; | |
30109 | fail: | |
30110 | return NULL; | |
30111 | } | |
30112 | ||
30113 | ||
30114 | static PyObject *_wrap_ContextHelp_BeginContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30115 | PyObject *resultobj; | |
30116 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30117 | wxWindow *arg2 = (wxWindow *) NULL ; | |
30118 | bool result; | |
30119 | PyObject * obj0 = 0 ; | |
30120 | PyObject * obj1 = 0 ; | |
30121 | char *kwnames[] = { | |
30122 | (char *) "self",(char *) "window", NULL | |
30123 | }; | |
30124 | ||
30125 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:ContextHelp_BeginContextHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30126 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30127 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 | 30128 | if (obj1) { |
15afbcd0 RD |
30129 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, |
30130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30131 | } |
30132 | { | |
30133 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30134 | result = (bool)(arg1)->BeginContextHelp(arg2); | |
30135 | ||
30136 | wxPyEndAllowThreads(__tstate); | |
30137 | if (PyErr_Occurred()) SWIG_fail; | |
30138 | } | |
4f89f6a3 RD |
30139 | { |
30140 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30141 | } | |
d14a1e28 RD |
30142 | return resultobj; |
30143 | fail: | |
30144 | return NULL; | |
30145 | } | |
30146 | ||
30147 | ||
30148 | static PyObject *_wrap_ContextHelp_EndContextHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30149 | PyObject *resultobj; | |
30150 | wxContextHelp *arg1 = (wxContextHelp *) 0 ; | |
30151 | bool result; | |
30152 | PyObject * obj0 = 0 ; | |
30153 | char *kwnames[] = { | |
30154 | (char *) "self", NULL | |
30155 | }; | |
30156 | ||
30157 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:ContextHelp_EndContextHelp",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30158 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxContextHelp, |
30159 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30160 | { |
30161 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30162 | result = (bool)(arg1)->EndContextHelp(); | |
30163 | ||
30164 | wxPyEndAllowThreads(__tstate); | |
30165 | if (PyErr_Occurred()) SWIG_fail; | |
30166 | } | |
4f89f6a3 RD |
30167 | { |
30168 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30169 | } | |
d14a1e28 RD |
30170 | return resultobj; |
30171 | fail: | |
30172 | return NULL; | |
30173 | } | |
30174 | ||
30175 | ||
30176 | static PyObject * ContextHelp_swigregister(PyObject *self, PyObject *args) { | |
30177 | PyObject *obj; | |
30178 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30179 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelp, obj); | |
30180 | Py_INCREF(obj); | |
30181 | return Py_BuildValue((char *)""); | |
30182 | } | |
30183 | static PyObject *_wrap_new_ContextHelpButton(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30184 | PyObject *resultobj; | |
30185 | wxWindow *arg1 = (wxWindow *) 0 ; | |
e811c8ce | 30186 | int arg2 = (int) wxID_CONTEXT_HELP ; |
d14a1e28 RD |
30187 | wxPoint const &arg3_defvalue = wxDefaultPosition ; |
30188 | wxPoint *arg3 = (wxPoint *) &arg3_defvalue ; | |
30189 | wxSize const &arg4_defvalue = wxDefaultSize ; | |
30190 | wxSize *arg4 = (wxSize *) &arg4_defvalue ; | |
30191 | long arg5 = (long) wxBU_AUTODRAW ; | |
30192 | wxContextHelpButton *result; | |
30193 | wxPoint temp3 ; | |
30194 | wxSize temp4 ; | |
30195 | PyObject * obj0 = 0 ; | |
994141e6 | 30196 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30197 | PyObject * obj2 = 0 ; |
30198 | PyObject * obj3 = 0 ; | |
994141e6 | 30199 | PyObject * obj4 = 0 ; |
d14a1e28 RD |
30200 | char *kwnames[] = { |
30201 | (char *) "parent",(char *) "id",(char *) "pos",(char *) "size",(char *) "style", NULL | |
30202 | }; | |
30203 | ||
994141e6 | 30204 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|OOOO:new_ContextHelpButton",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; |
15afbcd0 RD |
30205 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxWindow, |
30206 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
994141e6 | 30207 | if (obj1) { |
15afbcd0 RD |
30208 | arg2 = (int) SWIG_AsInt(obj1); |
30209 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30210 | } |
d14a1e28 RD |
30211 | if (obj2) { |
30212 | { | |
30213 | arg3 = &temp3; | |
30214 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
30215 | } | |
30216 | } | |
30217 | if (obj3) { | |
30218 | { | |
30219 | arg4 = &temp4; | |
30220 | if ( ! wxSize_helper(obj3, &arg4)) SWIG_fail; | |
30221 | } | |
30222 | } | |
994141e6 | 30223 | if (obj4) { |
15afbcd0 RD |
30224 | arg5 = (long) SWIG_AsLong(obj4); |
30225 | if (PyErr_Occurred()) SWIG_fail; | |
994141e6 | 30226 | } |
d14a1e28 | 30227 | { |
e3b71cb8 | 30228 | if (!wxPyCheckForApp()) SWIG_fail; |
d14a1e28 RD |
30229 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30230 | result = (wxContextHelpButton *)new wxContextHelpButton(arg1,arg2,(wxPoint const &)*arg3,(wxSize const &)*arg4,arg5); | |
30231 | ||
30232 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30233 | if (PyErr_Occurred()) SWIG_fail; |
d14a1e28 | 30234 | } |
15afbcd0 | 30235 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxContextHelpButton, 1); |
d14a1e28 RD |
30236 | return resultobj; |
30237 | fail: | |
30238 | return NULL; | |
30239 | } | |
30240 | ||
30241 | ||
30242 | static PyObject * ContextHelpButton_swigregister(PyObject *self, PyObject *args) { | |
30243 | PyObject *obj; | |
30244 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30245 | SWIG_TypeClientData(SWIGTYPE_p_wxContextHelpButton, obj); | |
30246 | Py_INCREF(obj); | |
30247 | return Py_BuildValue((char *)""); | |
30248 | } | |
30249 | static PyObject *_wrap_HelpProvider_Set(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30250 | PyObject *resultobj; | |
30251 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30252 | wxHelpProvider *result; | |
30253 | PyObject * obj0 = 0 ; | |
30254 | char *kwnames[] = { | |
30255 | (char *) "helpProvider", NULL | |
30256 | }; | |
30257 | ||
30258 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Set",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30259 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30260 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30261 | { |
30262 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30263 | result = (wxHelpProvider *)wxHelpProvider::Set(arg1); | |
30264 | ||
30265 | wxPyEndAllowThreads(__tstate); | |
30266 | if (PyErr_Occurred()) SWIG_fail; | |
30267 | } | |
15afbcd0 | 30268 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30269 | return resultobj; |
30270 | fail: | |
30271 | return NULL; | |
30272 | } | |
30273 | ||
30274 | ||
30275 | static PyObject *_wrap_HelpProvider_Get(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30276 | PyObject *resultobj; | |
30277 | wxHelpProvider *result; | |
30278 | char *kwnames[] = { | |
30279 | NULL | |
30280 | }; | |
30281 | ||
30282 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":HelpProvider_Get",kwnames)) goto fail; | |
30283 | { | |
30284 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30285 | result = (wxHelpProvider *)wxHelpProvider::Get(); | |
30286 | ||
30287 | wxPyEndAllowThreads(__tstate); | |
30288 | if (PyErr_Occurred()) SWIG_fail; | |
30289 | } | |
15afbcd0 | 30290 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxHelpProvider, 0); |
d14a1e28 RD |
30291 | return resultobj; |
30292 | fail: | |
30293 | return NULL; | |
30294 | } | |
30295 | ||
30296 | ||
30297 | static PyObject *_wrap_HelpProvider_GetHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30298 | PyObject *resultobj; | |
30299 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30300 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30301 | wxString result; | |
30302 | PyObject * obj0 = 0 ; | |
30303 | PyObject * obj1 = 0 ; | |
30304 | char *kwnames[] = { | |
30305 | (char *) "self",(char *) "window", NULL | |
30306 | }; | |
30307 | ||
30308 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_GetHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30309 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30310 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30311 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30312 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30313 | { |
30314 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30315 | result = (arg1)->GetHelp((wxWindow const *)arg2); | |
30316 | ||
30317 | wxPyEndAllowThreads(__tstate); | |
30318 | if (PyErr_Occurred()) SWIG_fail; | |
30319 | } | |
30320 | { | |
30321 | #if wxUSE_UNICODE | |
30322 | resultobj = PyUnicode_FromWideChar((&result)->c_str(), (&result)->Len()); | |
30323 | #else | |
30324 | resultobj = PyString_FromStringAndSize((&result)->c_str(), (&result)->Len()); | |
30325 | #endif | |
30326 | } | |
30327 | return resultobj; | |
30328 | fail: | |
30329 | return NULL; | |
30330 | } | |
30331 | ||
30332 | ||
30333 | static PyObject *_wrap_HelpProvider_ShowHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30334 | PyObject *resultobj; | |
30335 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30336 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30337 | bool result; | |
30338 | PyObject * obj0 = 0 ; | |
30339 | PyObject * obj1 = 0 ; | |
30340 | char *kwnames[] = { | |
30341 | (char *) "self",(char *) "window", NULL | |
30342 | }; | |
30343 | ||
30344 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_ShowHelp",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30345 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30346 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30347 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30348 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30349 | { |
30350 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30351 | result = (bool)(arg1)->ShowHelp(arg2); | |
30352 | ||
30353 | wxPyEndAllowThreads(__tstate); | |
30354 | if (PyErr_Occurred()) SWIG_fail; | |
30355 | } | |
4f89f6a3 RD |
30356 | { |
30357 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30358 | } | |
d14a1e28 RD |
30359 | return resultobj; |
30360 | fail: | |
30361 | return NULL; | |
30362 | } | |
30363 | ||
30364 | ||
30365 | static PyObject *_wrap_HelpProvider_AddHelp(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30366 | PyObject *resultobj; | |
30367 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30368 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30369 | wxString *arg3 = 0 ; | |
e811c8ce | 30370 | bool temp3 = False ; |
d14a1e28 RD |
30371 | PyObject * obj0 = 0 ; |
30372 | PyObject * obj1 = 0 ; | |
30373 | PyObject * obj2 = 0 ; | |
30374 | char *kwnames[] = { | |
30375 | (char *) "self",(char *) "window",(char *) "text", NULL | |
30376 | }; | |
30377 | ||
30378 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelp",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
30379 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30380 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30381 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30382 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30383 | { |
30384 | arg3 = wxString_in_helper(obj2); | |
30385 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30386 | temp3 = True; |
d14a1e28 RD |
30387 | } |
30388 | { | |
30389 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30390 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30391 | ||
30392 | wxPyEndAllowThreads(__tstate); | |
30393 | if (PyErr_Occurred()) SWIG_fail; | |
30394 | } | |
30395 | Py_INCREF(Py_None); resultobj = Py_None; | |
30396 | { | |
30397 | if (temp3) | |
30398 | delete arg3; | |
30399 | } | |
30400 | return resultobj; | |
30401 | fail: | |
30402 | { | |
30403 | if (temp3) | |
30404 | delete arg3; | |
30405 | } | |
30406 | return NULL; | |
30407 | } | |
30408 | ||
30409 | ||
30410 | static PyObject *_wrap_HelpProvider_AddHelpById(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30411 | PyObject *resultobj; | |
30412 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
e811c8ce | 30413 | int arg2 ; |
d14a1e28 | 30414 | wxString *arg3 = 0 ; |
e811c8ce | 30415 | bool temp3 = False ; |
d14a1e28 | 30416 | PyObject * obj0 = 0 ; |
994141e6 | 30417 | PyObject * obj1 = 0 ; |
d14a1e28 RD |
30418 | PyObject * obj2 = 0 ; |
30419 | char *kwnames[] = { | |
30420 | (char *) "self",(char *) "id",(char *) "text", NULL | |
30421 | }; | |
30422 | ||
994141e6 | 30423 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:HelpProvider_AddHelpById",kwnames,&obj0,&obj1,&obj2)) goto fail; |
15afbcd0 RD |
30424 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30425 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30426 | arg2 = (int) SWIG_AsInt(obj1); | |
30427 | if (PyErr_Occurred()) SWIG_fail; | |
d14a1e28 RD |
30428 | { |
30429 | arg3 = wxString_in_helper(obj2); | |
30430 | if (arg3 == NULL) SWIG_fail; | |
e811c8ce | 30431 | temp3 = True; |
d14a1e28 RD |
30432 | } |
30433 | { | |
30434 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30435 | (arg1)->AddHelp(arg2,(wxString const &)*arg3); | |
30436 | ||
30437 | wxPyEndAllowThreads(__tstate); | |
30438 | if (PyErr_Occurred()) SWIG_fail; | |
30439 | } | |
30440 | Py_INCREF(Py_None); resultobj = Py_None; | |
30441 | { | |
30442 | if (temp3) | |
30443 | delete arg3; | |
30444 | } | |
30445 | return resultobj; | |
30446 | fail: | |
30447 | { | |
30448 | if (temp3) | |
30449 | delete arg3; | |
30450 | } | |
30451 | return NULL; | |
30452 | } | |
30453 | ||
30454 | ||
15afbcd0 RD |
30455 | static PyObject *_wrap_HelpProvider_RemoveHelp(PyObject *self, PyObject *args, PyObject *kwargs) { |
30456 | PyObject *resultobj; | |
30457 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30458 | wxWindow *arg2 = (wxWindow *) 0 ; | |
30459 | PyObject * obj0 = 0 ; | |
30460 | PyObject * obj1 = 0 ; | |
30461 | char *kwnames[] = { | |
30462 | (char *) "self",(char *) "window", NULL | |
30463 | }; | |
30464 | ||
30465 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:HelpProvider_RemoveHelp",kwnames,&obj0,&obj1)) goto fail; | |
30466 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, | |
30467 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30468 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxWindow, | |
30469 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30470 | { | |
30471 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30472 | (arg1)->RemoveHelp(arg2); | |
30473 | ||
30474 | wxPyEndAllowThreads(__tstate); | |
30475 | if (PyErr_Occurred()) SWIG_fail; | |
30476 | } | |
30477 | Py_INCREF(Py_None); resultobj = Py_None; | |
30478 | return resultobj; | |
30479 | fail: | |
30480 | return NULL; | |
30481 | } | |
30482 | ||
30483 | ||
d14a1e28 RD |
30484 | static PyObject *_wrap_HelpProvider_Destroy(PyObject *self, PyObject *args, PyObject *kwargs) { |
30485 | PyObject *resultobj; | |
30486 | wxHelpProvider *arg1 = (wxHelpProvider *) 0 ; | |
30487 | PyObject * obj0 = 0 ; | |
30488 | char *kwnames[] = { | |
30489 | (char *) "self", NULL | |
30490 | }; | |
30491 | ||
30492 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:HelpProvider_Destroy",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30493 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxHelpProvider, |
30494 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
d14a1e28 RD |
30495 | { |
30496 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30497 | wxHelpProvider_Destroy(arg1); | |
30498 | ||
30499 | wxPyEndAllowThreads(__tstate); | |
30500 | if (PyErr_Occurred()) SWIG_fail; | |
30501 | } | |
30502 | Py_INCREF(Py_None); resultobj = Py_None; | |
30503 | return resultobj; | |
30504 | fail: | |
30505 | return NULL; | |
30506 | } | |
30507 | ||
30508 | ||
30509 | static PyObject * HelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30510 | PyObject *obj; | |
30511 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30512 | SWIG_TypeClientData(SWIGTYPE_p_wxHelpProvider, obj); | |
30513 | Py_INCREF(obj); | |
30514 | return Py_BuildValue((char *)""); | |
30515 | } | |
30516 | static PyObject *_wrap_new_SimpleHelpProvider(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30517 | PyObject *resultobj; | |
30518 | wxSimpleHelpProvider *result; | |
30519 | char *kwnames[] = { | |
30520 | NULL | |
30521 | }; | |
30522 | ||
30523 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)":new_SimpleHelpProvider",kwnames)) goto fail; | |
30524 | { | |
30525 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30526 | result = (wxSimpleHelpProvider *)new wxSimpleHelpProvider(); | |
30527 | ||
30528 | wxPyEndAllowThreads(__tstate); | |
30529 | if (PyErr_Occurred()) SWIG_fail; | |
30530 | } | |
15afbcd0 | 30531 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxSimpleHelpProvider, 1); |
d14a1e28 RD |
30532 | return resultobj; |
30533 | fail: | |
30534 | return NULL; | |
30535 | } | |
30536 | ||
30537 | ||
30538 | static PyObject * SimpleHelpProvider_swigregister(PyObject *self, PyObject *args) { | |
30539 | PyObject *obj; | |
30540 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
30541 | SWIG_TypeClientData(SWIGTYPE_p_wxSimpleHelpProvider, obj); | |
30542 | Py_INCREF(obj); | |
30543 | return Py_BuildValue((char *)""); | |
30544 | } | |
e811c8ce RD |
30545 | static PyObject *_wrap_new_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { |
30546 | PyObject *resultobj; | |
30547 | wxBitmap *arg1 = 0 ; | |
30548 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30549 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30550 | wxGenericDragImage *result; | |
30551 | PyObject * obj0 = 0 ; | |
30552 | PyObject * obj1 = 0 ; | |
30553 | char *kwnames[] = { | |
30554 | (char *) "image",(char *) "cursor", NULL | |
30555 | }; | |
30556 | ||
30557 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragImage",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30558 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxBitmap, |
30559 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30560 | SWIG_fail; | |
e811c8ce | 30561 | if (arg1 == NULL) { |
15afbcd0 RD |
30562 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30563 | SWIG_fail; | |
e811c8ce RD |
30564 | } |
30565 | if (obj1) { | |
15afbcd0 RD |
30566 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30567 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30568 | SWIG_fail; | |
e811c8ce | 30569 | if (arg2 == NULL) { |
15afbcd0 RD |
30570 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30571 | SWIG_fail; | |
e811c8ce RD |
30572 | } |
30573 | } | |
30574 | { | |
e3b71cb8 | 30575 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30576 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30577 | result = (wxGenericDragImage *)new wxGenericDragImage((wxBitmap const &)*arg1,(wxCursor const &)*arg2); | |
30578 | ||
30579 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30580 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30581 | } |
15afbcd0 | 30582 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30583 | return resultobj; |
30584 | fail: | |
30585 | return NULL; | |
30586 | } | |
30587 | ||
30588 | ||
30589 | static PyObject *_wrap_new_DragIcon(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30590 | PyObject *resultobj; | |
30591 | wxIcon *arg1 = 0 ; | |
30592 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30593 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30594 | wxGenericDragImage *result; | |
30595 | PyObject * obj0 = 0 ; | |
30596 | PyObject * obj1 = 0 ; | |
30597 | char *kwnames[] = { | |
30598 | (char *) "image",(char *) "cursor", NULL | |
30599 | }; | |
30600 | ||
30601 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragIcon",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30602 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxIcon, |
30603 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30604 | SWIG_fail; | |
e811c8ce | 30605 | if (arg1 == NULL) { |
15afbcd0 RD |
30606 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30607 | SWIG_fail; | |
e811c8ce RD |
30608 | } |
30609 | if (obj1) { | |
15afbcd0 RD |
30610 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30611 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30612 | SWIG_fail; | |
e811c8ce | 30613 | if (arg2 == NULL) { |
15afbcd0 RD |
30614 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30615 | SWIG_fail; | |
e811c8ce RD |
30616 | } |
30617 | } | |
30618 | { | |
e3b71cb8 | 30619 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30620 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30621 | result = (wxGenericDragImage *)new wxGenericDragImage((wxIcon const &)*arg1,(wxCursor const &)*arg2); | |
30622 | ||
30623 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30624 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30625 | } |
15afbcd0 | 30626 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30627 | return resultobj; |
30628 | fail: | |
30629 | return NULL; | |
30630 | } | |
30631 | ||
30632 | ||
30633 | static PyObject *_wrap_new_DragString(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30634 | PyObject *resultobj; | |
30635 | wxString *arg1 = 0 ; | |
30636 | wxCursor const &arg2_defvalue = wxNullCursor ; | |
30637 | wxCursor *arg2 = (wxCursor *) &arg2_defvalue ; | |
30638 | wxGenericDragImage *result; | |
30639 | bool temp1 = False ; | |
30640 | PyObject * obj0 = 0 ; | |
30641 | PyObject * obj1 = 0 ; | |
30642 | char *kwnames[] = { | |
30643 | (char *) "str",(char *) "cursor", NULL | |
30644 | }; | |
30645 | ||
30646 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O|O:new_DragString",kwnames,&obj0,&obj1)) goto fail; | |
30647 | { | |
30648 | arg1 = wxString_in_helper(obj0); | |
30649 | if (arg1 == NULL) SWIG_fail; | |
30650 | temp1 = True; | |
30651 | } | |
30652 | if (obj1) { | |
15afbcd0 RD |
30653 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxCursor, |
30654 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30655 | SWIG_fail; | |
e811c8ce | 30656 | if (arg2 == NULL) { |
15afbcd0 RD |
30657 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30658 | SWIG_fail; | |
e811c8ce RD |
30659 | } |
30660 | } | |
30661 | { | |
e3b71cb8 | 30662 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30663 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30664 | result = (wxGenericDragImage *)new wxGenericDragImage((wxString const &)*arg1,(wxCursor const &)*arg2); | |
30665 | ||
30666 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30667 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30668 | } |
15afbcd0 | 30669 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30670 | { |
30671 | if (temp1) | |
30672 | delete arg1; | |
30673 | } | |
30674 | return resultobj; | |
30675 | fail: | |
30676 | { | |
30677 | if (temp1) | |
30678 | delete arg1; | |
30679 | } | |
30680 | return NULL; | |
30681 | } | |
30682 | ||
30683 | ||
30684 | static PyObject *_wrap_new_DragTreeItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30685 | PyObject *resultobj; | |
30686 | wxPyTreeCtrl *arg1 = 0 ; | |
30687 | wxTreeItemId *arg2 = 0 ; | |
30688 | wxGenericDragImage *result; | |
30689 | PyObject * obj0 = 0 ; | |
30690 | PyObject * obj1 = 0 ; | |
30691 | char *kwnames[] = { | |
30692 | (char *) "treeCtrl",(char *) "id", NULL | |
30693 | }; | |
30694 | ||
30695 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragTreeItem",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30696 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyTreeCtrl, |
30697 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30698 | SWIG_fail; | |
e811c8ce | 30699 | if (arg1 == NULL) { |
15afbcd0 RD |
30700 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30701 | SWIG_fail; | |
e811c8ce | 30702 | } |
15afbcd0 RD |
30703 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxTreeItemId, |
30704 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30705 | SWIG_fail; | |
e811c8ce | 30706 | if (arg2 == NULL) { |
15afbcd0 RD |
30707 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30708 | SWIG_fail; | |
e811c8ce RD |
30709 | } |
30710 | { | |
e3b71cb8 | 30711 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30712 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30713 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyTreeCtrl const &)*arg1,*arg2); | |
30714 | ||
30715 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30716 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30717 | } |
15afbcd0 | 30718 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30719 | return resultobj; |
30720 | fail: | |
30721 | return NULL; | |
30722 | } | |
30723 | ||
30724 | ||
30725 | static PyObject *_wrap_new_DragListItem(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30726 | PyObject *resultobj; | |
30727 | wxPyListCtrl *arg1 = 0 ; | |
30728 | long arg2 ; | |
30729 | wxGenericDragImage *result; | |
30730 | PyObject * obj0 = 0 ; | |
994141e6 | 30731 | PyObject * obj1 = 0 ; |
e811c8ce RD |
30732 | char *kwnames[] = { |
30733 | (char *) "listCtrl",(char *) "id", NULL | |
30734 | }; | |
30735 | ||
994141e6 | 30736 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:new_DragListItem",kwnames,&obj0,&obj1)) goto fail; |
15afbcd0 RD |
30737 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxPyListCtrl, |
30738 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
30739 | SWIG_fail; | |
e811c8ce | 30740 | if (arg1 == NULL) { |
15afbcd0 RD |
30741 | PyErr_SetString(PyExc_TypeError,"null reference"); |
30742 | SWIG_fail; | |
994141e6 | 30743 | } |
15afbcd0 RD |
30744 | arg2 = (long) SWIG_AsLong(obj1); |
30745 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce | 30746 | { |
e3b71cb8 | 30747 | if (!wxPyCheckForApp()) SWIG_fail; |
e811c8ce RD |
30748 | PyThreadState* __tstate = wxPyBeginAllowThreads(); |
30749 | result = (wxGenericDragImage *)new wxGenericDragImage((wxPyListCtrl const &)*arg1,arg2); | |
30750 | ||
30751 | wxPyEndAllowThreads(__tstate); | |
110da5b0 | 30752 | if (PyErr_Occurred()) SWIG_fail; |
e811c8ce | 30753 | } |
15afbcd0 | 30754 | resultobj = SWIG_NewPointerObj((void*)(result), SWIGTYPE_p_wxGenericDragImage, 1); |
e811c8ce RD |
30755 | return resultobj; |
30756 | fail: | |
30757 | return NULL; | |
30758 | } | |
30759 | ||
30760 | ||
30761 | static PyObject *_wrap_delete_DragImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30762 | PyObject *resultobj; | |
30763 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30764 | PyObject * obj0 = 0 ; | |
30765 | char *kwnames[] = { | |
30766 | (char *) "self", NULL | |
30767 | }; | |
30768 | ||
30769 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:delete_DragImage",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30770 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30771 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30772 | { |
30773 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30774 | delete arg1; | |
30775 | ||
30776 | wxPyEndAllowThreads(__tstate); | |
30777 | if (PyErr_Occurred()) SWIG_fail; | |
30778 | } | |
30779 | Py_INCREF(Py_None); resultobj = Py_None; | |
30780 | return resultobj; | |
30781 | fail: | |
30782 | return NULL; | |
30783 | } | |
30784 | ||
30785 | ||
30786 | static PyObject *_wrap_DragImage_SetBackingBitmap(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30787 | PyObject *resultobj; | |
30788 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30789 | wxBitmap *arg2 = (wxBitmap *) 0 ; | |
30790 | PyObject * obj0 = 0 ; | |
30791 | PyObject * obj1 = 0 ; | |
30792 | char *kwnames[] = { | |
30793 | (char *) "self",(char *) "bitmap", NULL | |
30794 | }; | |
30795 | ||
30796 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_SetBackingBitmap",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30797 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30798 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30799 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxBitmap, | |
30800 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30801 | { |
30802 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30803 | (arg1)->SetBackingBitmap(arg2); | |
30804 | ||
30805 | wxPyEndAllowThreads(__tstate); | |
30806 | if (PyErr_Occurred()) SWIG_fail; | |
30807 | } | |
30808 | Py_INCREF(Py_None); resultobj = Py_None; | |
30809 | return resultobj; | |
30810 | fail: | |
30811 | return NULL; | |
30812 | } | |
30813 | ||
30814 | ||
30815 | static PyObject *_wrap_DragImage_BeginDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30816 | PyObject *resultobj; | |
30817 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30818 | wxPoint *arg2 = 0 ; | |
30819 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30820 | bool arg4 = (bool) False ; | |
30821 | wxRect *arg5 = (wxRect *) NULL ; | |
30822 | bool result; | |
30823 | wxPoint temp2 ; | |
30824 | PyObject * obj0 = 0 ; | |
30825 | PyObject * obj1 = 0 ; | |
30826 | PyObject * obj2 = 0 ; | |
30827 | PyObject * obj3 = 0 ; | |
30828 | PyObject * obj4 = 0 ; | |
30829 | char *kwnames[] = { | |
30830 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "fullScreen",(char *) "rect", NULL | |
30831 | }; | |
30832 | ||
30833 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO|OO:DragImage_BeginDrag",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
30834 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30835 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30836 | { |
30837 | arg2 = &temp2; | |
30838 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30839 | } | |
15afbcd0 RD |
30840 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30841 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce | 30842 | if (obj3) { |
15afbcd0 RD |
30843 | arg4 = (bool) SWIG_AsBool(obj3); |
30844 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
30845 | } |
30846 | if (obj4) { | |
15afbcd0 RD |
30847 | if ((SWIG_ConvertPtr(obj4,(void **)(&arg5),SWIGTYPE_p_wxRect, |
30848 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30849 | } |
30850 | { | |
30851 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30852 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4,arg5); | |
30853 | ||
30854 | wxPyEndAllowThreads(__tstate); | |
30855 | if (PyErr_Occurred()) SWIG_fail; | |
30856 | } | |
4f89f6a3 RD |
30857 | { |
30858 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30859 | } | |
e811c8ce RD |
30860 | return resultobj; |
30861 | fail: | |
30862 | return NULL; | |
30863 | } | |
30864 | ||
30865 | ||
30866 | static PyObject *_wrap_DragImage_BeginDragBounded(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30867 | PyObject *resultobj; | |
30868 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30869 | wxPoint *arg2 = 0 ; | |
30870 | wxWindow *arg3 = (wxWindow *) 0 ; | |
30871 | wxWindow *arg4 = (wxWindow *) 0 ; | |
30872 | bool result; | |
30873 | wxPoint temp2 ; | |
30874 | PyObject * obj0 = 0 ; | |
30875 | PyObject * obj1 = 0 ; | |
30876 | PyObject * obj2 = 0 ; | |
30877 | PyObject * obj3 = 0 ; | |
30878 | char *kwnames[] = { | |
30879 | (char *) "self",(char *) "hotspot",(char *) "window",(char *) "boundingWindow", NULL | |
30880 | }; | |
30881 | ||
30882 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOO:DragImage_BeginDragBounded",kwnames,&obj0,&obj1,&obj2,&obj3)) goto fail; | |
15afbcd0 RD |
30883 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30884 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30885 | { |
30886 | arg2 = &temp2; | |
30887 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30888 | } | |
15afbcd0 RD |
30889 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxWindow, |
30890 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
30891 | if ((SWIG_ConvertPtr(obj3,(void **)(&arg4),SWIGTYPE_p_wxWindow, | |
30892 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30893 | { |
30894 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30895 | result = (bool)(arg1)->BeginDrag((wxPoint const &)*arg2,arg3,arg4); | |
30896 | ||
30897 | wxPyEndAllowThreads(__tstate); | |
30898 | if (PyErr_Occurred()) SWIG_fail; | |
30899 | } | |
4f89f6a3 RD |
30900 | { |
30901 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30902 | } | |
e811c8ce RD |
30903 | return resultobj; |
30904 | fail: | |
30905 | return NULL; | |
30906 | } | |
30907 | ||
30908 | ||
30909 | static PyObject *_wrap_DragImage_EndDrag(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30910 | PyObject *resultobj; | |
30911 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30912 | bool result; | |
30913 | PyObject * obj0 = 0 ; | |
30914 | char *kwnames[] = { | |
30915 | (char *) "self", NULL | |
30916 | }; | |
30917 | ||
30918 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_EndDrag",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30919 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30920 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30921 | { |
30922 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30923 | result = (bool)(arg1)->EndDrag(); | |
30924 | ||
30925 | wxPyEndAllowThreads(__tstate); | |
30926 | if (PyErr_Occurred()) SWIG_fail; | |
30927 | } | |
4f89f6a3 RD |
30928 | { |
30929 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30930 | } | |
e811c8ce RD |
30931 | return resultobj; |
30932 | fail: | |
30933 | return NULL; | |
30934 | } | |
30935 | ||
30936 | ||
30937 | static PyObject *_wrap_DragImage_Move(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30938 | PyObject *resultobj; | |
30939 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30940 | wxPoint *arg2 = 0 ; | |
30941 | bool result; | |
30942 | wxPoint temp2 ; | |
30943 | PyObject * obj0 = 0 ; | |
30944 | PyObject * obj1 = 0 ; | |
30945 | char *kwnames[] = { | |
30946 | (char *) "self",(char *) "pt", NULL | |
30947 | }; | |
30948 | ||
30949 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_Move",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
30950 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30951 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30952 | { |
30953 | arg2 = &temp2; | |
30954 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
30955 | } | |
30956 | { | |
30957 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30958 | result = (bool)(arg1)->Move((wxPoint const &)*arg2); | |
30959 | ||
30960 | wxPyEndAllowThreads(__tstate); | |
30961 | if (PyErr_Occurred()) SWIG_fail; | |
30962 | } | |
4f89f6a3 RD |
30963 | { |
30964 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30965 | } | |
e811c8ce RD |
30966 | return resultobj; |
30967 | fail: | |
30968 | return NULL; | |
30969 | } | |
30970 | ||
30971 | ||
30972 | static PyObject *_wrap_DragImage_Show(PyObject *self, PyObject *args, PyObject *kwargs) { | |
30973 | PyObject *resultobj; | |
30974 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
30975 | bool result; | |
30976 | PyObject * obj0 = 0 ; | |
30977 | char *kwnames[] = { | |
30978 | (char *) "self", NULL | |
30979 | }; | |
30980 | ||
30981 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Show",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
30982 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
30983 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
30984 | { |
30985 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
30986 | result = (bool)(arg1)->Show(); | |
30987 | ||
30988 | wxPyEndAllowThreads(__tstate); | |
30989 | if (PyErr_Occurred()) SWIG_fail; | |
30990 | } | |
4f89f6a3 RD |
30991 | { |
30992 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
30993 | } | |
e811c8ce RD |
30994 | return resultobj; |
30995 | fail: | |
30996 | return NULL; | |
30997 | } | |
30998 | ||
30999 | ||
31000 | static PyObject *_wrap_DragImage_Hide(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31001 | PyObject *resultobj; | |
31002 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31003 | bool result; | |
31004 | PyObject * obj0 = 0 ; | |
31005 | char *kwnames[] = { | |
31006 | (char *) "self", NULL | |
31007 | }; | |
31008 | ||
31009 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"O:DragImage_Hide",kwnames,&obj0)) goto fail; | |
15afbcd0 RD |
31010 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31011 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31012 | { |
31013 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31014 | result = (bool)(arg1)->Hide(); | |
31015 | ||
31016 | wxPyEndAllowThreads(__tstate); | |
31017 | if (PyErr_Occurred()) SWIG_fail; | |
31018 | } | |
4f89f6a3 RD |
31019 | { |
31020 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31021 | } | |
e811c8ce RD |
31022 | return resultobj; |
31023 | fail: | |
31024 | return NULL; | |
31025 | } | |
31026 | ||
31027 | ||
31028 | static PyObject *_wrap_DragImage_GetImageRect(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31029 | PyObject *resultobj; | |
31030 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31031 | wxPoint *arg2 = 0 ; | |
31032 | wxRect result; | |
31033 | wxPoint temp2 ; | |
31034 | PyObject * obj0 = 0 ; | |
31035 | PyObject * obj1 = 0 ; | |
31036 | char *kwnames[] = { | |
31037 | (char *) "self",(char *) "pos", NULL | |
31038 | }; | |
31039 | ||
31040 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OO:DragImage_GetImageRect",kwnames,&obj0,&obj1)) goto fail; | |
15afbcd0 RD |
31041 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31042 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31043 | { |
31044 | arg2 = &temp2; | |
31045 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31046 | } | |
31047 | { | |
31048 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31049 | result = ((wxGenericDragImage const *)arg1)->GetImageRect((wxPoint const &)*arg2); | |
31050 | ||
31051 | wxPyEndAllowThreads(__tstate); | |
31052 | if (PyErr_Occurred()) SWIG_fail; | |
31053 | } | |
31054 | { | |
31055 | wxRect * resultptr; | |
31056 | resultptr = new wxRect((wxRect &) result); | |
15afbcd0 | 31057 | resultobj = SWIG_NewPointerObj((void *)(resultptr), SWIGTYPE_p_wxRect, 1); |
e811c8ce RD |
31058 | } |
31059 | return resultobj; | |
31060 | fail: | |
31061 | return NULL; | |
31062 | } | |
31063 | ||
31064 | ||
31065 | static PyObject *_wrap_DragImage_DoDrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31066 | PyObject *resultobj; | |
31067 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31068 | wxDC *arg2 = 0 ; | |
31069 | wxPoint *arg3 = 0 ; | |
31070 | bool result; | |
31071 | wxPoint temp3 ; | |
31072 | PyObject * obj0 = 0 ; | |
31073 | PyObject * obj1 = 0 ; | |
31074 | PyObject * obj2 = 0 ; | |
31075 | char *kwnames[] = { | |
31076 | (char *) "self",(char *) "dc",(char *) "pos", NULL | |
31077 | }; | |
31078 | ||
31079 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOO:DragImage_DoDrawImage",kwnames,&obj0,&obj1,&obj2)) goto fail; | |
15afbcd0 RD |
31080 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31081 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31082 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31083 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31084 | SWIG_fail; | |
e811c8ce | 31085 | if (arg2 == NULL) { |
15afbcd0 RD |
31086 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31087 | SWIG_fail; | |
e811c8ce RD |
31088 | } |
31089 | { | |
31090 | arg3 = &temp3; | |
31091 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31092 | } | |
31093 | { | |
31094 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31095 | result = (bool)((wxGenericDragImage const *)arg1)->DoDrawImage(*arg2,(wxPoint const &)*arg3); | |
31096 | ||
31097 | wxPyEndAllowThreads(__tstate); | |
31098 | if (PyErr_Occurred()) SWIG_fail; | |
31099 | } | |
4f89f6a3 RD |
31100 | { |
31101 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31102 | } | |
e811c8ce RD |
31103 | return resultobj; |
31104 | fail: | |
31105 | return NULL; | |
31106 | } | |
31107 | ||
31108 | ||
31109 | static PyObject *_wrap_DragImage_UpdateBackingFromWindow(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31110 | PyObject *resultobj; | |
31111 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31112 | wxDC *arg2 = 0 ; | |
31113 | wxMemoryDC *arg3 = 0 ; | |
31114 | wxRect *arg4 = 0 ; | |
31115 | wxRect *arg5 = 0 ; | |
31116 | bool result; | |
31117 | wxRect temp4 ; | |
31118 | wxRect temp5 ; | |
31119 | PyObject * obj0 = 0 ; | |
31120 | PyObject * obj1 = 0 ; | |
31121 | PyObject * obj2 = 0 ; | |
31122 | PyObject * obj3 = 0 ; | |
31123 | PyObject * obj4 = 0 ; | |
31124 | char *kwnames[] = { | |
31125 | (char *) "self",(char *) "windowDC",(char *) "destDC",(char *) "sourceRect",(char *) "destRect", NULL | |
31126 | }; | |
31127 | ||
31128 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_UpdateBackingFromWindow",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31129 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31130 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
31131 | if ((SWIG_ConvertPtr(obj1,(void **)(&arg2),SWIGTYPE_p_wxDC, | |
31132 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31133 | SWIG_fail; | |
e811c8ce | 31134 | if (arg2 == NULL) { |
15afbcd0 RD |
31135 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31136 | SWIG_fail; | |
e811c8ce | 31137 | } |
15afbcd0 RD |
31138 | if ((SWIG_ConvertPtr(obj2,(void **)(&arg3),SWIGTYPE_p_wxMemoryDC, |
31139 | SWIG_POINTER_EXCEPTION | 0)) == -1) | |
31140 | SWIG_fail; | |
e811c8ce | 31141 | if (arg3 == NULL) { |
15afbcd0 RD |
31142 | PyErr_SetString(PyExc_TypeError,"null reference"); |
31143 | SWIG_fail; | |
e811c8ce RD |
31144 | } |
31145 | { | |
31146 | arg4 = &temp4; | |
31147 | if ( ! wxRect_helper(obj3, &arg4)) SWIG_fail; | |
31148 | } | |
31149 | { | |
31150 | arg5 = &temp5; | |
31151 | if ( ! wxRect_helper(obj4, &arg5)) SWIG_fail; | |
31152 | } | |
31153 | { | |
31154 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31155 | result = (bool)((wxGenericDragImage const *)arg1)->UpdateBackingFromWindow(*arg2,*arg3,(wxRect const &)*arg4,(wxRect const &)*arg5); | |
31156 | ||
31157 | wxPyEndAllowThreads(__tstate); | |
31158 | if (PyErr_Occurred()) SWIG_fail; | |
31159 | } | |
4f89f6a3 RD |
31160 | { |
31161 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31162 | } | |
e811c8ce RD |
31163 | return resultobj; |
31164 | fail: | |
31165 | return NULL; | |
31166 | } | |
31167 | ||
31168 | ||
31169 | static PyObject *_wrap_DragImage_RedrawImage(PyObject *self, PyObject *args, PyObject *kwargs) { | |
31170 | PyObject *resultobj; | |
31171 | wxGenericDragImage *arg1 = (wxGenericDragImage *) 0 ; | |
31172 | wxPoint *arg2 = 0 ; | |
31173 | wxPoint *arg3 = 0 ; | |
31174 | bool arg4 ; | |
31175 | bool arg5 ; | |
31176 | bool result; | |
31177 | wxPoint temp2 ; | |
31178 | wxPoint temp3 ; | |
31179 | PyObject * obj0 = 0 ; | |
31180 | PyObject * obj1 = 0 ; | |
31181 | PyObject * obj2 = 0 ; | |
31182 | PyObject * obj3 = 0 ; | |
31183 | PyObject * obj4 = 0 ; | |
31184 | char *kwnames[] = { | |
31185 | (char *) "self",(char *) "oldPos",(char *) "newPos",(char *) "eraseOld",(char *) "drawNew", NULL | |
31186 | }; | |
31187 | ||
31188 | if(!PyArg_ParseTupleAndKeywords(args,kwargs,(char *)"OOOOO:DragImage_RedrawImage",kwnames,&obj0,&obj1,&obj2,&obj3,&obj4)) goto fail; | |
15afbcd0 RD |
31189 | if ((SWIG_ConvertPtr(obj0,(void **)(&arg1),SWIGTYPE_p_wxGenericDragImage, |
31190 | SWIG_POINTER_EXCEPTION | 0)) == -1) SWIG_fail; | |
e811c8ce RD |
31191 | { |
31192 | arg2 = &temp2; | |
31193 | if ( ! wxPoint_helper(obj1, &arg2)) SWIG_fail; | |
31194 | } | |
31195 | { | |
31196 | arg3 = &temp3; | |
31197 | if ( ! wxPoint_helper(obj2, &arg3)) SWIG_fail; | |
31198 | } | |
15afbcd0 RD |
31199 | arg4 = (bool) SWIG_AsBool(obj3); |
31200 | if (PyErr_Occurred()) SWIG_fail; | |
31201 | arg5 = (bool) SWIG_AsBool(obj4); | |
31202 | if (PyErr_Occurred()) SWIG_fail; | |
e811c8ce RD |
31203 | { |
31204 | PyThreadState* __tstate = wxPyBeginAllowThreads(); | |
31205 | result = (bool)(arg1)->RedrawImage((wxPoint const &)*arg2,(wxPoint const &)*arg3,arg4,arg5); | |
31206 | ||
31207 | wxPyEndAllowThreads(__tstate); | |
31208 | if (PyErr_Occurred()) SWIG_fail; | |
31209 | } | |
4f89f6a3 RD |
31210 | { |
31211 | resultobj = result ? Py_True : Py_False; Py_INCREF(resultobj); | |
31212 | } | |
e811c8ce RD |
31213 | return resultobj; |
31214 | fail: | |
31215 | return NULL; | |
31216 | } | |
31217 | ||
31218 | ||
31219 | static PyObject * DragImage_swigregister(PyObject *self, PyObject *args) { | |
31220 | PyObject *obj; | |
31221 | if (!PyArg_ParseTuple(args,(char*)"O", &obj)) return NULL; | |
31222 | SWIG_TypeClientData(SWIGTYPE_p_wxGenericDragImage, obj); | |
31223 | Py_INCREF(obj); | |
31224 | return Py_BuildValue((char *)""); | |
31225 | } | |
31226 | static PyMethodDef SwigMethods[] = { | |
31227 | { (char *)"new_Button", (PyCFunction) _wrap_new_Button, METH_VARARGS | METH_KEYWORDS }, | |
31228 | { (char *)"new_PreButton", (PyCFunction) _wrap_new_PreButton, METH_VARARGS | METH_KEYWORDS }, | |
31229 | { (char *)"Button_Create", (PyCFunction) _wrap_Button_Create, METH_VARARGS | METH_KEYWORDS }, | |
31230 | { (char *)"Button_SetDefault", (PyCFunction) _wrap_Button_SetDefault, METH_VARARGS | METH_KEYWORDS }, | |
31231 | { (char *)"Button_GetDefaultSize", (PyCFunction) _wrap_Button_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31232 | { (char *)"Button_GetClassDefaultAttributes", (PyCFunction) _wrap_Button_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31233 | { (char *)"Button_swigregister", Button_swigregister, METH_VARARGS }, |
31234 | { (char *)"new_BitmapButton", (PyCFunction) _wrap_new_BitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31235 | { (char *)"new_PreBitmapButton", (PyCFunction) _wrap_new_PreBitmapButton, METH_VARARGS | METH_KEYWORDS }, | |
31236 | { (char *)"BitmapButton_Create", (PyCFunction) _wrap_BitmapButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31237 | { (char *)"BitmapButton_GetBitmapLabel", (PyCFunction) _wrap_BitmapButton_GetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31238 | { (char *)"BitmapButton_GetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_GetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31239 | { (char *)"BitmapButton_GetBitmapFocus", (PyCFunction) _wrap_BitmapButton_GetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31240 | { (char *)"BitmapButton_GetBitmapSelected", (PyCFunction) _wrap_BitmapButton_GetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31241 | { (char *)"BitmapButton_SetBitmapDisabled", (PyCFunction) _wrap_BitmapButton_SetBitmapDisabled, METH_VARARGS | METH_KEYWORDS }, | |
31242 | { (char *)"BitmapButton_SetBitmapFocus", (PyCFunction) _wrap_BitmapButton_SetBitmapFocus, METH_VARARGS | METH_KEYWORDS }, | |
31243 | { (char *)"BitmapButton_SetBitmapSelected", (PyCFunction) _wrap_BitmapButton_SetBitmapSelected, METH_VARARGS | METH_KEYWORDS }, | |
31244 | { (char *)"BitmapButton_SetBitmapLabel", (PyCFunction) _wrap_BitmapButton_SetBitmapLabel, METH_VARARGS | METH_KEYWORDS }, | |
31245 | { (char *)"BitmapButton_SetMargins", (PyCFunction) _wrap_BitmapButton_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31246 | { (char *)"BitmapButton_GetMarginX", (PyCFunction) _wrap_BitmapButton_GetMarginX, METH_VARARGS | METH_KEYWORDS }, | |
31247 | { (char *)"BitmapButton_GetMarginY", (PyCFunction) _wrap_BitmapButton_GetMarginY, METH_VARARGS | METH_KEYWORDS }, | |
31248 | { (char *)"BitmapButton_swigregister", BitmapButton_swigregister, METH_VARARGS }, | |
31249 | { (char *)"new_CheckBox", (PyCFunction) _wrap_new_CheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31250 | { (char *)"new_PreCheckBox", (PyCFunction) _wrap_new_PreCheckBox, METH_VARARGS | METH_KEYWORDS }, | |
31251 | { (char *)"CheckBox_Create", (PyCFunction) _wrap_CheckBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31252 | { (char *)"CheckBox_GetValue", (PyCFunction) _wrap_CheckBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31253 | { (char *)"CheckBox_IsChecked", (PyCFunction) _wrap_CheckBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31254 | { (char *)"CheckBox_SetValue", (PyCFunction) _wrap_CheckBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31255 | { (char *)"CheckBox_Get3StateValue", (PyCFunction) _wrap_CheckBox_Get3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31256 | { (char *)"CheckBox_Set3StateValue", (PyCFunction) _wrap_CheckBox_Set3StateValue, METH_VARARGS | METH_KEYWORDS }, | |
31257 | { (char *)"CheckBox_Is3State", (PyCFunction) _wrap_CheckBox_Is3State, METH_VARARGS | METH_KEYWORDS }, | |
31258 | { (char *)"CheckBox_Is3rdStateAllowedForUser", (PyCFunction) _wrap_CheckBox_Is3rdStateAllowedForUser, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31259 | { (char *)"CheckBox_GetClassDefaultAttributes", (PyCFunction) _wrap_CheckBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31260 | { (char *)"CheckBox_swigregister", CheckBox_swigregister, METH_VARARGS }, |
31261 | { (char *)"new_Choice", (PyCFunction) _wrap_new_Choice, METH_VARARGS | METH_KEYWORDS }, | |
31262 | { (char *)"new_PreChoice", (PyCFunction) _wrap_new_PreChoice, METH_VARARGS | METH_KEYWORDS }, | |
31263 | { (char *)"Choice_Create", (PyCFunction) _wrap_Choice_Create, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31264 | { (char *)"Choice_SetSelection", (PyCFunction) _wrap_Choice_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
31265 | { (char *)"Choice_SetStringSelection", (PyCFunction) _wrap_Choice_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31266 | { (char *)"Choice_SetString", (PyCFunction) _wrap_Choice_SetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31267 | { (char *)"Choice_GetClassDefaultAttributes", (PyCFunction) _wrap_Choice_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31268 | { (char *)"Choice_swigregister", Choice_swigregister, METH_VARARGS }, |
31269 | { (char *)"new_ComboBox", (PyCFunction) _wrap_new_ComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31270 | { (char *)"new_PreComboBox", (PyCFunction) _wrap_new_PreComboBox, METH_VARARGS | METH_KEYWORDS }, | |
31271 | { (char *)"ComboBox_Create", (PyCFunction) _wrap_ComboBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31272 | { (char *)"ComboBox_GetValue", (PyCFunction) _wrap_ComboBox_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31273 | { (char *)"ComboBox_SetValue", (PyCFunction) _wrap_ComboBox_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31274 | { (char *)"ComboBox_Copy", (PyCFunction) _wrap_ComboBox_Copy, METH_VARARGS | METH_KEYWORDS }, | |
31275 | { (char *)"ComboBox_Cut", (PyCFunction) _wrap_ComboBox_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31276 | { (char *)"ComboBox_Paste", (PyCFunction) _wrap_ComboBox_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31277 | { (char *)"ComboBox_SetInsertionPoint", (PyCFunction) _wrap_ComboBox_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31278 | { (char *)"ComboBox_GetInsertionPoint", (PyCFunction) _wrap_ComboBox_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31279 | { (char *)"ComboBox_GetLastPosition", (PyCFunction) _wrap_ComboBox_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31280 | { (char *)"ComboBox_Replace", (PyCFunction) _wrap_ComboBox_Replace, METH_VARARGS | METH_KEYWORDS }, | |
fd3f2efe | 31281 | { (char *)"ComboBox_SetSelection", (PyCFunction) _wrap_ComboBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce | 31282 | { (char *)"ComboBox_SetMark", (PyCFunction) _wrap_ComboBox_SetMark, METH_VARARGS | METH_KEYWORDS }, |
121b9a67 RD |
31283 | { (char *)"ComboBox_SetStringSelection", (PyCFunction) _wrap_ComboBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, |
31284 | { (char *)"ComboBox_SetString", (PyCFunction) _wrap_ComboBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
e811c8ce RD |
31285 | { (char *)"ComboBox_SetEditable", (PyCFunction) _wrap_ComboBox_SetEditable, METH_VARARGS | METH_KEYWORDS }, |
31286 | { (char *)"ComboBox_SetInsertionPointEnd", (PyCFunction) _wrap_ComboBox_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31287 | { (char *)"ComboBox_Remove", (PyCFunction) _wrap_ComboBox_Remove, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31288 | { (char *)"ComboBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ComboBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31289 | { (char *)"ComboBox_swigregister", ComboBox_swigregister, METH_VARARGS }, |
31290 | { (char *)"new_Gauge", (PyCFunction) _wrap_new_Gauge, METH_VARARGS | METH_KEYWORDS }, | |
31291 | { (char *)"new_PreGauge", (PyCFunction) _wrap_new_PreGauge, METH_VARARGS | METH_KEYWORDS }, | |
31292 | { (char *)"Gauge_Create", (PyCFunction) _wrap_Gauge_Create, METH_VARARGS | METH_KEYWORDS }, | |
31293 | { (char *)"Gauge_SetRange", (PyCFunction) _wrap_Gauge_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31294 | { (char *)"Gauge_GetRange", (PyCFunction) _wrap_Gauge_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31295 | { (char *)"Gauge_SetValue", (PyCFunction) _wrap_Gauge_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31296 | { (char *)"Gauge_GetValue", (PyCFunction) _wrap_Gauge_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31297 | { (char *)"Gauge_IsVertical", (PyCFunction) _wrap_Gauge_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31298 | { (char *)"Gauge_SetShadowWidth", (PyCFunction) _wrap_Gauge_SetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31299 | { (char *)"Gauge_GetShadowWidth", (PyCFunction) _wrap_Gauge_GetShadowWidth, METH_VARARGS | METH_KEYWORDS }, | |
31300 | { (char *)"Gauge_SetBezelFace", (PyCFunction) _wrap_Gauge_SetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
31301 | { (char *)"Gauge_GetBezelFace", (PyCFunction) _wrap_Gauge_GetBezelFace, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31302 | { (char *)"Gauge_GetClassDefaultAttributes", (PyCFunction) _wrap_Gauge_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31303 | { (char *)"Gauge_swigregister", Gauge_swigregister, METH_VARARGS }, |
31304 | { (char *)"new_StaticBox", (PyCFunction) _wrap_new_StaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31305 | { (char *)"new_PreStaticBox", (PyCFunction) _wrap_new_PreStaticBox, METH_VARARGS | METH_KEYWORDS }, | |
31306 | { (char *)"StaticBox_Create", (PyCFunction) _wrap_StaticBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31307 | { (char *)"StaticBox_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31308 | { (char *)"StaticBox_swigregister", StaticBox_swigregister, METH_VARARGS }, |
31309 | { (char *)"new_StaticLine", (PyCFunction) _wrap_new_StaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31310 | { (char *)"new_PreStaticLine", (PyCFunction) _wrap_new_PreStaticLine, METH_VARARGS | METH_KEYWORDS }, | |
31311 | { (char *)"StaticLine_Create", (PyCFunction) _wrap_StaticLine_Create, METH_VARARGS | METH_KEYWORDS }, | |
31312 | { (char *)"StaticLine_IsVertical", (PyCFunction) _wrap_StaticLine_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31313 | { (char *)"StaticLine_GetDefaultSize", (PyCFunction) _wrap_StaticLine_GetDefaultSize, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31314 | { (char *)"StaticLine_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticLine_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31315 | { (char *)"StaticLine_swigregister", StaticLine_swigregister, METH_VARARGS }, |
31316 | { (char *)"new_StaticText", (PyCFunction) _wrap_new_StaticText, METH_VARARGS | METH_KEYWORDS }, | |
31317 | { (char *)"new_PreStaticText", (PyCFunction) _wrap_new_PreStaticText, METH_VARARGS | METH_KEYWORDS }, | |
31318 | { (char *)"StaticText_Create", (PyCFunction) _wrap_StaticText_Create, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31319 | { (char *)"StaticText_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticText_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31320 | { (char *)"StaticText_swigregister", StaticText_swigregister, METH_VARARGS }, |
31321 | { (char *)"new_StaticBitmap", (PyCFunction) _wrap_new_StaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31322 | { (char *)"new_PreStaticBitmap", (PyCFunction) _wrap_new_PreStaticBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31323 | { (char *)"StaticBitmap_Create", (PyCFunction) _wrap_StaticBitmap_Create, METH_VARARGS | METH_KEYWORDS }, | |
31324 | { (char *)"StaticBitmap_GetBitmap", (PyCFunction) _wrap_StaticBitmap_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31325 | { (char *)"StaticBitmap_SetBitmap", (PyCFunction) _wrap_StaticBitmap_SetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31326 | { (char *)"StaticBitmap_SetIcon", (PyCFunction) _wrap_StaticBitmap_SetIcon, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31327 | { (char *)"StaticBitmap_GetClassDefaultAttributes", (PyCFunction) _wrap_StaticBitmap_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31328 | { (char *)"StaticBitmap_swigregister", StaticBitmap_swigregister, METH_VARARGS }, |
31329 | { (char *)"new_ListBox", (PyCFunction) _wrap_new_ListBox, METH_VARARGS | METH_KEYWORDS }, | |
31330 | { (char *)"new_PreListBox", (PyCFunction) _wrap_new_PreListBox, METH_VARARGS | METH_KEYWORDS }, | |
31331 | { (char *)"ListBox_Create", (PyCFunction) _wrap_ListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31332 | { (char *)"ListBox_Insert", (PyCFunction) _wrap_ListBox_Insert, METH_VARARGS | METH_KEYWORDS }, | |
31333 | { (char *)"ListBox_InsertItems", (PyCFunction) _wrap_ListBox_InsertItems, METH_VARARGS | METH_KEYWORDS }, | |
31334 | { (char *)"ListBox_Set", (PyCFunction) _wrap_ListBox_Set, METH_VARARGS | METH_KEYWORDS }, | |
31335 | { (char *)"ListBox_IsSelected", (PyCFunction) _wrap_ListBox_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31336 | { (char *)"ListBox_SetSelection", (PyCFunction) _wrap_ListBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31337 | { (char *)"ListBox_Select", (PyCFunction) _wrap_ListBox_Select, METH_VARARGS | METH_KEYWORDS }, | |
31338 | { (char *)"ListBox_Deselect", (PyCFunction) _wrap_ListBox_Deselect, METH_VARARGS | METH_KEYWORDS }, | |
31339 | { (char *)"ListBox_DeselectAll", (PyCFunction) _wrap_ListBox_DeselectAll, METH_VARARGS | METH_KEYWORDS }, | |
31340 | { (char *)"ListBox_SetStringSelection", (PyCFunction) _wrap_ListBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31341 | { (char *)"ListBox_GetSelections", (PyCFunction) _wrap_ListBox_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31342 | { (char *)"ListBox_SetFirstItem", (PyCFunction) _wrap_ListBox_SetFirstItem, METH_VARARGS | METH_KEYWORDS }, | |
31343 | { (char *)"ListBox_SetFirstItemStr", (PyCFunction) _wrap_ListBox_SetFirstItemStr, METH_VARARGS | METH_KEYWORDS }, | |
31344 | { (char *)"ListBox_EnsureVisible", (PyCFunction) _wrap_ListBox_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31345 | { (char *)"ListBox_AppendAndEnsureVisible", (PyCFunction) _wrap_ListBox_AppendAndEnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31346 | { (char *)"ListBox_IsSorted", (PyCFunction) _wrap_ListBox_IsSorted, METH_VARARGS | METH_KEYWORDS }, | |
c3eb6258 RD |
31347 | { (char *)"ListBox_SetItemForegroundColour", (PyCFunction) _wrap_ListBox_SetItemForegroundColour, METH_VARARGS | METH_KEYWORDS }, |
31348 | { (char *)"ListBox_SetItemBackgroundColour", (PyCFunction) _wrap_ListBox_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31349 | { (char *)"ListBox_SetItemFont", (PyCFunction) _wrap_ListBox_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31350 | { (char *)"ListBox_GetClassDefaultAttributes", (PyCFunction) _wrap_ListBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31351 | { (char *)"ListBox_swigregister", ListBox_swigregister, METH_VARARGS }, |
31352 | { (char *)"new_CheckListBox", (PyCFunction) _wrap_new_CheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31353 | { (char *)"new_PreCheckListBox", (PyCFunction) _wrap_new_PreCheckListBox, METH_VARARGS | METH_KEYWORDS }, | |
31354 | { (char *)"CheckListBox_Create", (PyCFunction) _wrap_CheckListBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31355 | { (char *)"CheckListBox_IsChecked", (PyCFunction) _wrap_CheckListBox_IsChecked, METH_VARARGS | METH_KEYWORDS }, | |
31356 | { (char *)"CheckListBox_Check", (PyCFunction) _wrap_CheckListBox_Check, METH_VARARGS | METH_KEYWORDS }, | |
31357 | { (char *)"CheckListBox_GetItemHeight", (PyCFunction) _wrap_CheckListBox_GetItemHeight, METH_VARARGS | METH_KEYWORDS }, | |
31358 | { (char *)"CheckListBox_HitTest", (PyCFunction) _wrap_CheckListBox_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31359 | { (char *)"CheckListBox_HitTestXY", (PyCFunction) _wrap_CheckListBox_HitTestXY, METH_VARARGS | METH_KEYWORDS }, | |
31360 | { (char *)"CheckListBox_swigregister", CheckListBox_swigregister, METH_VARARGS }, | |
908b74cd | 31361 | { (char *)"new_TextAttr", (PyCFunction) _wrap_new_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
994141e6 | 31362 | { (char *)"delete_TextAttr", (PyCFunction) _wrap_delete_TextAttr, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31363 | { (char *)"TextAttr_Init", (PyCFunction) _wrap_TextAttr_Init, METH_VARARGS | METH_KEYWORDS }, |
31364 | { (char *)"TextAttr_SetTextColour", (PyCFunction) _wrap_TextAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31365 | { (char *)"TextAttr_SetBackgroundColour", (PyCFunction) _wrap_TextAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31366 | { (char *)"TextAttr_SetFont", (PyCFunction) _wrap_TextAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31367 | { (char *)"TextAttr_SetAlignment", (PyCFunction) _wrap_TextAttr_SetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31368 | { (char *)"TextAttr_SetTabs", (PyCFunction) _wrap_TextAttr_SetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31369 | { (char *)"TextAttr_SetLeftIndent", (PyCFunction) _wrap_TextAttr_SetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31370 | { (char *)"TextAttr_SetRightIndent", (PyCFunction) _wrap_TextAttr_SetRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31371 | { (char *)"TextAttr_SetFlags", (PyCFunction) _wrap_TextAttr_SetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31372 | { (char *)"TextAttr_HasTextColour", (PyCFunction) _wrap_TextAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31373 | { (char *)"TextAttr_HasBackgroundColour", (PyCFunction) _wrap_TextAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31374 | { (char *)"TextAttr_HasFont", (PyCFunction) _wrap_TextAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31375 | { (char *)"TextAttr_HasAlignment", (PyCFunction) _wrap_TextAttr_HasAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31376 | { (char *)"TextAttr_HasTabs", (PyCFunction) _wrap_TextAttr_HasTabs, METH_VARARGS | METH_KEYWORDS }, | |
31377 | { (char *)"TextAttr_HasLeftIndent", (PyCFunction) _wrap_TextAttr_HasLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
31378 | { (char *)"TextAttr_HasRightIndent", (PyCFunction) _wrap_TextAttr_HasRightIndent, METH_VARARGS | METH_KEYWORDS }, | |
31379 | { (char *)"TextAttr_HasFlag", (PyCFunction) _wrap_TextAttr_HasFlag, METH_VARARGS | METH_KEYWORDS }, | |
31380 | { (char *)"TextAttr_GetTextColour", (PyCFunction) _wrap_TextAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31381 | { (char *)"TextAttr_GetBackgroundColour", (PyCFunction) _wrap_TextAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31382 | { (char *)"TextAttr_GetFont", (PyCFunction) _wrap_TextAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31383 | { (char *)"TextAttr_GetAlignment", (PyCFunction) _wrap_TextAttr_GetAlignment, METH_VARARGS | METH_KEYWORDS }, | |
31384 | { (char *)"TextAttr_GetTabs", (PyCFunction) _wrap_TextAttr_GetTabs, METH_VARARGS | METH_KEYWORDS }, | |
31385 | { (char *)"TextAttr_GetLeftIndent", (PyCFunction) _wrap_TextAttr_GetLeftIndent, METH_VARARGS | METH_KEYWORDS }, | |
5e4ca4a8 | 31386 | { (char *)"TextAttr_GetLeftSubIndent", (PyCFunction) _wrap_TextAttr_GetLeftSubIndent, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31387 | { (char *)"TextAttr_GetRightIndent", (PyCFunction) _wrap_TextAttr_GetRightIndent, METH_VARARGS | METH_KEYWORDS }, |
31388 | { (char *)"TextAttr_GetFlags", (PyCFunction) _wrap_TextAttr_GetFlags, METH_VARARGS | METH_KEYWORDS }, | |
31389 | { (char *)"TextAttr_IsDefault", (PyCFunction) _wrap_TextAttr_IsDefault, METH_VARARGS | METH_KEYWORDS }, | |
31390 | { (char *)"TextAttr_Combine", (PyCFunction) _wrap_TextAttr_Combine, METH_VARARGS | METH_KEYWORDS }, | |
31391 | { (char *)"TextAttr_swigregister", TextAttr_swigregister, METH_VARARGS }, | |
31392 | { (char *)"new_TextCtrl", (PyCFunction) _wrap_new_TextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31393 | { (char *)"new_PreTextCtrl", (PyCFunction) _wrap_new_PreTextCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31394 | { (char *)"TextCtrl_Create", (PyCFunction) _wrap_TextCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31395 | { (char *)"TextCtrl_GetValue", (PyCFunction) _wrap_TextCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31396 | { (char *)"TextCtrl_SetValue", (PyCFunction) _wrap_TextCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31397 | { (char *)"TextCtrl_GetRange", (PyCFunction) _wrap_TextCtrl_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31398 | { (char *)"TextCtrl_GetLineLength", (PyCFunction) _wrap_TextCtrl_GetLineLength, METH_VARARGS | METH_KEYWORDS }, | |
31399 | { (char *)"TextCtrl_GetLineText", (PyCFunction) _wrap_TextCtrl_GetLineText, METH_VARARGS | METH_KEYWORDS }, | |
31400 | { (char *)"TextCtrl_GetNumberOfLines", (PyCFunction) _wrap_TextCtrl_GetNumberOfLines, METH_VARARGS | METH_KEYWORDS }, | |
31401 | { (char *)"TextCtrl_IsModified", (PyCFunction) _wrap_TextCtrl_IsModified, METH_VARARGS | METH_KEYWORDS }, | |
31402 | { (char *)"TextCtrl_IsEditable", (PyCFunction) _wrap_TextCtrl_IsEditable, METH_VARARGS | METH_KEYWORDS }, | |
31403 | { (char *)"TextCtrl_IsSingleLine", (PyCFunction) _wrap_TextCtrl_IsSingleLine, METH_VARARGS | METH_KEYWORDS }, | |
31404 | { (char *)"TextCtrl_IsMultiLine", (PyCFunction) _wrap_TextCtrl_IsMultiLine, METH_VARARGS | METH_KEYWORDS }, | |
31405 | { (char *)"TextCtrl_GetSelection", (PyCFunction) _wrap_TextCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31406 | { (char *)"TextCtrl_GetStringSelection", (PyCFunction) _wrap_TextCtrl_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31407 | { (char *)"TextCtrl_Clear", (PyCFunction) _wrap_TextCtrl_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31408 | { (char *)"TextCtrl_Replace", (PyCFunction) _wrap_TextCtrl_Replace, METH_VARARGS | METH_KEYWORDS }, | |
31409 | { (char *)"TextCtrl_Remove", (PyCFunction) _wrap_TextCtrl_Remove, METH_VARARGS | METH_KEYWORDS }, | |
31410 | { (char *)"TextCtrl_LoadFile", (PyCFunction) _wrap_TextCtrl_LoadFile, METH_VARARGS | METH_KEYWORDS }, | |
31411 | { (char *)"TextCtrl_SaveFile", (PyCFunction) _wrap_TextCtrl_SaveFile, METH_VARARGS | METH_KEYWORDS }, | |
31412 | { (char *)"TextCtrl_MarkDirty", (PyCFunction) _wrap_TextCtrl_MarkDirty, METH_VARARGS | METH_KEYWORDS }, | |
31413 | { (char *)"TextCtrl_DiscardEdits", (PyCFunction) _wrap_TextCtrl_DiscardEdits, METH_VARARGS | METH_KEYWORDS }, | |
31414 | { (char *)"TextCtrl_SetMaxLength", (PyCFunction) _wrap_TextCtrl_SetMaxLength, METH_VARARGS | METH_KEYWORDS }, | |
31415 | { (char *)"TextCtrl_WriteText", (PyCFunction) _wrap_TextCtrl_WriteText, METH_VARARGS | METH_KEYWORDS }, | |
31416 | { (char *)"TextCtrl_AppendText", (PyCFunction) _wrap_TextCtrl_AppendText, METH_VARARGS | METH_KEYWORDS }, | |
31417 | { (char *)"TextCtrl_EmulateKeyPress", (PyCFunction) _wrap_TextCtrl_EmulateKeyPress, METH_VARARGS | METH_KEYWORDS }, | |
31418 | { (char *)"TextCtrl_SetStyle", (PyCFunction) _wrap_TextCtrl_SetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31419 | { (char *)"TextCtrl_GetStyle", (PyCFunction) _wrap_TextCtrl_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31420 | { (char *)"TextCtrl_SetDefaultStyle", (PyCFunction) _wrap_TextCtrl_SetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31421 | { (char *)"TextCtrl_GetDefaultStyle", (PyCFunction) _wrap_TextCtrl_GetDefaultStyle, METH_VARARGS | METH_KEYWORDS }, | |
31422 | { (char *)"TextCtrl_XYToPosition", (PyCFunction) _wrap_TextCtrl_XYToPosition, METH_VARARGS | METH_KEYWORDS }, | |
31423 | { (char *)"TextCtrl_PositionToXY", (PyCFunction) _wrap_TextCtrl_PositionToXY, METH_VARARGS | METH_KEYWORDS }, | |
31424 | { (char *)"TextCtrl_ShowPosition", (PyCFunction) _wrap_TextCtrl_ShowPosition, METH_VARARGS | METH_KEYWORDS }, | |
4d5c3d91 | 31425 | { (char *)"TextCtrl_HitTest", (PyCFunction) _wrap_TextCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, |
4896ac9e | 31426 | { (char *)"TextCtrl_HitTestPos", (PyCFunction) _wrap_TextCtrl_HitTestPos, METH_VARARGS | METH_KEYWORDS }, |
e811c8ce RD |
31427 | { (char *)"TextCtrl_Copy", (PyCFunction) _wrap_TextCtrl_Copy, METH_VARARGS | METH_KEYWORDS }, |
31428 | { (char *)"TextCtrl_Cut", (PyCFunction) _wrap_TextCtrl_Cut, METH_VARARGS | METH_KEYWORDS }, | |
31429 | { (char *)"TextCtrl_Paste", (PyCFunction) _wrap_TextCtrl_Paste, METH_VARARGS | METH_KEYWORDS }, | |
31430 | { (char *)"TextCtrl_CanCopy", (PyCFunction) _wrap_TextCtrl_CanCopy, METH_VARARGS | METH_KEYWORDS }, | |
31431 | { (char *)"TextCtrl_CanCut", (PyCFunction) _wrap_TextCtrl_CanCut, METH_VARARGS | METH_KEYWORDS }, | |
31432 | { (char *)"TextCtrl_CanPaste", (PyCFunction) _wrap_TextCtrl_CanPaste, METH_VARARGS | METH_KEYWORDS }, | |
31433 | { (char *)"TextCtrl_Undo", (PyCFunction) _wrap_TextCtrl_Undo, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31434 | { (char *)"TextCtrl_Redo", (PyCFunction) _wrap_TextCtrl_Redo, METH_VARARGS | METH_KEYWORDS }, |
31435 | { (char *)"TextCtrl_CanUndo", (PyCFunction) _wrap_TextCtrl_CanUndo, METH_VARARGS | METH_KEYWORDS }, | |
31436 | { (char *)"TextCtrl_CanRedo", (PyCFunction) _wrap_TextCtrl_CanRedo, METH_VARARGS | METH_KEYWORDS }, | |
31437 | { (char *)"TextCtrl_SetInsertionPoint", (PyCFunction) _wrap_TextCtrl_SetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31438 | { (char *)"TextCtrl_SetInsertionPointEnd", (PyCFunction) _wrap_TextCtrl_SetInsertionPointEnd, METH_VARARGS | METH_KEYWORDS }, | |
31439 | { (char *)"TextCtrl_GetInsertionPoint", (PyCFunction) _wrap_TextCtrl_GetInsertionPoint, METH_VARARGS | METH_KEYWORDS }, | |
31440 | { (char *)"TextCtrl_GetLastPosition", (PyCFunction) _wrap_TextCtrl_GetLastPosition, METH_VARARGS | METH_KEYWORDS }, | |
31441 | { (char *)"TextCtrl_SetSelection", (PyCFunction) _wrap_TextCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31442 | { (char *)"TextCtrl_SelectAll", (PyCFunction) _wrap_TextCtrl_SelectAll, METH_VARARGS | METH_KEYWORDS }, | |
31443 | { (char *)"TextCtrl_SetEditable", (PyCFunction) _wrap_TextCtrl_SetEditable, METH_VARARGS | METH_KEYWORDS }, | |
31444 | { (char *)"TextCtrl_write", (PyCFunction) _wrap_TextCtrl_write, METH_VARARGS | METH_KEYWORDS }, | |
31445 | { (char *)"TextCtrl_GetString", (PyCFunction) _wrap_TextCtrl_GetString, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31446 | { (char *)"TextCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TextCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31447 | { (char *)"TextCtrl_swigregister", TextCtrl_swigregister, METH_VARARGS }, |
31448 | { (char *)"new_TextUrlEvent", (PyCFunction) _wrap_new_TextUrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31449 | { (char *)"TextUrlEvent_GetMouseEvent", (PyCFunction) _wrap_TextUrlEvent_GetMouseEvent, METH_VARARGS | METH_KEYWORDS }, | |
31450 | { (char *)"TextUrlEvent_GetURLStart", (PyCFunction) _wrap_TextUrlEvent_GetURLStart, METH_VARARGS | METH_KEYWORDS }, | |
31451 | { (char *)"TextUrlEvent_GetURLEnd", (PyCFunction) _wrap_TextUrlEvent_GetURLEnd, METH_VARARGS | METH_KEYWORDS }, | |
31452 | { (char *)"TextUrlEvent_swigregister", TextUrlEvent_swigregister, METH_VARARGS }, | |
31453 | { (char *)"new_ScrollBar", (PyCFunction) _wrap_new_ScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31454 | { (char *)"new_PreScrollBar", (PyCFunction) _wrap_new_PreScrollBar, METH_VARARGS | METH_KEYWORDS }, | |
31455 | { (char *)"ScrollBar_Create", (PyCFunction) _wrap_ScrollBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31456 | { (char *)"ScrollBar_GetThumbPosition", (PyCFunction) _wrap_ScrollBar_GetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31457 | { (char *)"ScrollBar_GetThumbSize", (PyCFunction) _wrap_ScrollBar_GetThumbSize, METH_VARARGS | METH_KEYWORDS }, | |
31458 | { (char *)"ScrollBar_GetPageSize", (PyCFunction) _wrap_ScrollBar_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31459 | { (char *)"ScrollBar_GetRange", (PyCFunction) _wrap_ScrollBar_GetRange, METH_VARARGS | METH_KEYWORDS }, | |
31460 | { (char *)"ScrollBar_IsVertical", (PyCFunction) _wrap_ScrollBar_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31461 | { (char *)"ScrollBar_SetThumbPosition", (PyCFunction) _wrap_ScrollBar_SetThumbPosition, METH_VARARGS | METH_KEYWORDS }, | |
31462 | { (char *)"ScrollBar_SetScrollbar", (PyCFunction) _wrap_ScrollBar_SetScrollbar, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31463 | { (char *)"ScrollBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ScrollBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31464 | { (char *)"ScrollBar_swigregister", ScrollBar_swigregister, METH_VARARGS }, |
31465 | { (char *)"new_SpinButton", (PyCFunction) _wrap_new_SpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31466 | { (char *)"new_PreSpinButton", (PyCFunction) _wrap_new_PreSpinButton, METH_VARARGS | METH_KEYWORDS }, | |
31467 | { (char *)"SpinButton_Create", (PyCFunction) _wrap_SpinButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31468 | { (char *)"SpinButton_GetValue", (PyCFunction) _wrap_SpinButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31469 | { (char *)"SpinButton_GetMin", (PyCFunction) _wrap_SpinButton_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31470 | { (char *)"SpinButton_GetMax", (PyCFunction) _wrap_SpinButton_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31471 | { (char *)"SpinButton_SetValue", (PyCFunction) _wrap_SpinButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31472 | { (char *)"SpinButton_SetMin", (PyCFunction) _wrap_SpinButton_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31473 | { (char *)"SpinButton_SetMax", (PyCFunction) _wrap_SpinButton_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31474 | { (char *)"SpinButton_SetRange", (PyCFunction) _wrap_SpinButton_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31475 | { (char *)"SpinButton_IsVertical", (PyCFunction) _wrap_SpinButton_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31476 | { (char *)"SpinButton_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31477 | { (char *)"SpinButton_swigregister", SpinButton_swigregister, METH_VARARGS }, |
31478 | { (char *)"new_SpinCtrl", (PyCFunction) _wrap_new_SpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31479 | { (char *)"new_PreSpinCtrl", (PyCFunction) _wrap_new_PreSpinCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31480 | { (char *)"SpinCtrl_Create", (PyCFunction) _wrap_SpinCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31481 | { (char *)"SpinCtrl_GetValue", (PyCFunction) _wrap_SpinCtrl_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31482 | { (char *)"SpinCtrl_SetValue", (PyCFunction) _wrap_SpinCtrl_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31483 | { (char *)"SpinCtrl_SetValueString", (PyCFunction) _wrap_SpinCtrl_SetValueString, METH_VARARGS | METH_KEYWORDS }, | |
31484 | { (char *)"SpinCtrl_SetRange", (PyCFunction) _wrap_SpinCtrl_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31485 | { (char *)"SpinCtrl_GetMin", (PyCFunction) _wrap_SpinCtrl_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31486 | { (char *)"SpinCtrl_GetMax", (PyCFunction) _wrap_SpinCtrl_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31487 | { (char *)"SpinCtrl_SetSelection", (PyCFunction) _wrap_SpinCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31488 | { (char *)"SpinCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_SpinCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31489 | { (char *)"SpinCtrl_swigregister", SpinCtrl_swigregister, METH_VARARGS }, |
d1e20054 RD |
31490 | { (char *)"new_SpinEvent", (PyCFunction) _wrap_new_SpinEvent, METH_VARARGS | METH_KEYWORDS }, |
31491 | { (char *)"SpinEvent_GetPosition", (PyCFunction) _wrap_SpinEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31492 | { (char *)"SpinEvent_SetPosition", (PyCFunction) _wrap_SpinEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
31493 | { (char *)"SpinEvent_swigregister", SpinEvent_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
31494 | { (char *)"new_RadioBox", (PyCFunction) _wrap_new_RadioBox, METH_VARARGS | METH_KEYWORDS }, |
31495 | { (char *)"new_PreRadioBox", (PyCFunction) _wrap_new_PreRadioBox, METH_VARARGS | METH_KEYWORDS }, | |
31496 | { (char *)"RadioBox_Create", (PyCFunction) _wrap_RadioBox_Create, METH_VARARGS | METH_KEYWORDS }, | |
31497 | { (char *)"RadioBox_SetSelection", (PyCFunction) _wrap_RadioBox_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31498 | { (char *)"RadioBox_GetSelection", (PyCFunction) _wrap_RadioBox_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31499 | { (char *)"RadioBox_GetStringSelection", (PyCFunction) _wrap_RadioBox_GetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31500 | { (char *)"RadioBox_SetStringSelection", (PyCFunction) _wrap_RadioBox_SetStringSelection, METH_VARARGS | METH_KEYWORDS }, | |
31501 | { (char *)"RadioBox_GetCount", (PyCFunction) _wrap_RadioBox_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31502 | { (char *)"RadioBox_FindString", (PyCFunction) _wrap_RadioBox_FindString, METH_VARARGS | METH_KEYWORDS }, | |
31503 | { (char *)"RadioBox_GetString", (PyCFunction) _wrap_RadioBox_GetString, METH_VARARGS | METH_KEYWORDS }, | |
31504 | { (char *)"RadioBox_SetString", (PyCFunction) _wrap_RadioBox_SetString, METH_VARARGS | METH_KEYWORDS }, | |
31505 | { (char *)"RadioBox_EnableItem", (PyCFunction) _wrap_RadioBox_EnableItem, METH_VARARGS | METH_KEYWORDS }, | |
31506 | { (char *)"RadioBox_ShowItem", (PyCFunction) _wrap_RadioBox_ShowItem, METH_VARARGS | METH_KEYWORDS }, | |
31507 | { (char *)"RadioBox_GetColumnCount", (PyCFunction) _wrap_RadioBox_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31508 | { (char *)"RadioBox_GetRowCount", (PyCFunction) _wrap_RadioBox_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31509 | { (char *)"RadioBox_GetNextItem", (PyCFunction) _wrap_RadioBox_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31510 | { (char *)"RadioBox_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioBox_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31511 | { (char *)"RadioBox_swigregister", RadioBox_swigregister, METH_VARARGS }, |
31512 | { (char *)"new_RadioButton", (PyCFunction) _wrap_new_RadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31513 | { (char *)"new_PreRadioButton", (PyCFunction) _wrap_new_PreRadioButton, METH_VARARGS | METH_KEYWORDS }, | |
31514 | { (char *)"RadioButton_Create", (PyCFunction) _wrap_RadioButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31515 | { (char *)"RadioButton_GetValue", (PyCFunction) _wrap_RadioButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31516 | { (char *)"RadioButton_SetValue", (PyCFunction) _wrap_RadioButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31517 | { (char *)"RadioButton_GetClassDefaultAttributes", (PyCFunction) _wrap_RadioButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31518 | { (char *)"RadioButton_swigregister", RadioButton_swigregister, METH_VARARGS }, |
31519 | { (char *)"new_Slider", (PyCFunction) _wrap_new_Slider, METH_VARARGS | METH_KEYWORDS }, | |
31520 | { (char *)"new_PreSlider", (PyCFunction) _wrap_new_PreSlider, METH_VARARGS | METH_KEYWORDS }, | |
31521 | { (char *)"Slider_Create", (PyCFunction) _wrap_Slider_Create, METH_VARARGS | METH_KEYWORDS }, | |
31522 | { (char *)"Slider_GetValue", (PyCFunction) _wrap_Slider_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31523 | { (char *)"Slider_SetValue", (PyCFunction) _wrap_Slider_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31524 | { (char *)"Slider_SetRange", (PyCFunction) _wrap_Slider_SetRange, METH_VARARGS | METH_KEYWORDS }, | |
31525 | { (char *)"Slider_GetMin", (PyCFunction) _wrap_Slider_GetMin, METH_VARARGS | METH_KEYWORDS }, | |
31526 | { (char *)"Slider_GetMax", (PyCFunction) _wrap_Slider_GetMax, METH_VARARGS | METH_KEYWORDS }, | |
31527 | { (char *)"Slider_SetMin", (PyCFunction) _wrap_Slider_SetMin, METH_VARARGS | METH_KEYWORDS }, | |
31528 | { (char *)"Slider_SetMax", (PyCFunction) _wrap_Slider_SetMax, METH_VARARGS | METH_KEYWORDS }, | |
31529 | { (char *)"Slider_SetLineSize", (PyCFunction) _wrap_Slider_SetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31530 | { (char *)"Slider_SetPageSize", (PyCFunction) _wrap_Slider_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31531 | { (char *)"Slider_GetLineSize", (PyCFunction) _wrap_Slider_GetLineSize, METH_VARARGS | METH_KEYWORDS }, | |
31532 | { (char *)"Slider_GetPageSize", (PyCFunction) _wrap_Slider_GetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31533 | { (char *)"Slider_SetThumbLength", (PyCFunction) _wrap_Slider_SetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31534 | { (char *)"Slider_GetThumbLength", (PyCFunction) _wrap_Slider_GetThumbLength, METH_VARARGS | METH_KEYWORDS }, | |
31535 | { (char *)"Slider_SetTickFreq", (PyCFunction) _wrap_Slider_SetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31536 | { (char *)"Slider_GetTickFreq", (PyCFunction) _wrap_Slider_GetTickFreq, METH_VARARGS | METH_KEYWORDS }, | |
31537 | { (char *)"Slider_ClearTicks", (PyCFunction) _wrap_Slider_ClearTicks, METH_VARARGS | METH_KEYWORDS }, | |
31538 | { (char *)"Slider_SetTick", (PyCFunction) _wrap_Slider_SetTick, METH_VARARGS | METH_KEYWORDS }, | |
31539 | { (char *)"Slider_ClearSel", (PyCFunction) _wrap_Slider_ClearSel, METH_VARARGS | METH_KEYWORDS }, | |
31540 | { (char *)"Slider_GetSelEnd", (PyCFunction) _wrap_Slider_GetSelEnd, METH_VARARGS | METH_KEYWORDS }, | |
31541 | { (char *)"Slider_GetSelStart", (PyCFunction) _wrap_Slider_GetSelStart, METH_VARARGS | METH_KEYWORDS }, | |
31542 | { (char *)"Slider_SetSelection", (PyCFunction) _wrap_Slider_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31543 | { (char *)"Slider_GetClassDefaultAttributes", (PyCFunction) _wrap_Slider_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31544 | { (char *)"Slider_swigregister", Slider_swigregister, METH_VARARGS }, |
31545 | { (char *)"new_ToggleButton", (PyCFunction) _wrap_new_ToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31546 | { (char *)"new_PreToggleButton", (PyCFunction) _wrap_new_PreToggleButton, METH_VARARGS | METH_KEYWORDS }, | |
31547 | { (char *)"ToggleButton_Create", (PyCFunction) _wrap_ToggleButton_Create, METH_VARARGS | METH_KEYWORDS }, | |
31548 | { (char *)"ToggleButton_SetValue", (PyCFunction) _wrap_ToggleButton_SetValue, METH_VARARGS | METH_KEYWORDS }, | |
31549 | { (char *)"ToggleButton_GetValue", (PyCFunction) _wrap_ToggleButton_GetValue, METH_VARARGS | METH_KEYWORDS }, | |
31550 | { (char *)"ToggleButton_SetLabel", (PyCFunction) _wrap_ToggleButton_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31551 | { (char *)"ToggleButton_GetClassDefaultAttributes", (PyCFunction) _wrap_ToggleButton_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31552 | { (char *)"ToggleButton_swigregister", ToggleButton_swigregister, METH_VARARGS }, |
31553 | { (char *)"BookCtrl_GetPageCount", (PyCFunction) _wrap_BookCtrl_GetPageCount, METH_VARARGS | METH_KEYWORDS }, | |
31554 | { (char *)"BookCtrl_GetPage", (PyCFunction) _wrap_BookCtrl_GetPage, METH_VARARGS | METH_KEYWORDS }, | |
31555 | { (char *)"BookCtrl_GetSelection", (PyCFunction) _wrap_BookCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31556 | { (char *)"BookCtrl_SetPageText", (PyCFunction) _wrap_BookCtrl_SetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31557 | { (char *)"BookCtrl_GetPageText", (PyCFunction) _wrap_BookCtrl_GetPageText, METH_VARARGS | METH_KEYWORDS }, | |
31558 | { (char *)"BookCtrl_SetImageList", (PyCFunction) _wrap_BookCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31559 | { (char *)"BookCtrl_AssignImageList", (PyCFunction) _wrap_BookCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31560 | { (char *)"BookCtrl_GetImageList", (PyCFunction) _wrap_BookCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31561 | { (char *)"BookCtrl_GetPageImage", (PyCFunction) _wrap_BookCtrl_GetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31562 | { (char *)"BookCtrl_SetPageImage", (PyCFunction) _wrap_BookCtrl_SetPageImage, METH_VARARGS | METH_KEYWORDS }, | |
31563 | { (char *)"BookCtrl_SetPageSize", (PyCFunction) _wrap_BookCtrl_SetPageSize, METH_VARARGS | METH_KEYWORDS }, | |
31564 | { (char *)"BookCtrl_CalcSizeFromPage", (PyCFunction) _wrap_BookCtrl_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
31565 | { (char *)"BookCtrl_DeletePage", (PyCFunction) _wrap_BookCtrl_DeletePage, METH_VARARGS | METH_KEYWORDS }, | |
31566 | { (char *)"BookCtrl_RemovePage", (PyCFunction) _wrap_BookCtrl_RemovePage, METH_VARARGS | METH_KEYWORDS }, | |
31567 | { (char *)"BookCtrl_DeleteAllPages", (PyCFunction) _wrap_BookCtrl_DeleteAllPages, METH_VARARGS | METH_KEYWORDS }, | |
31568 | { (char *)"BookCtrl_AddPage", (PyCFunction) _wrap_BookCtrl_AddPage, METH_VARARGS | METH_KEYWORDS }, | |
31569 | { (char *)"BookCtrl_InsertPage", (PyCFunction) _wrap_BookCtrl_InsertPage, METH_VARARGS | METH_KEYWORDS }, | |
31570 | { (char *)"BookCtrl_SetSelection", (PyCFunction) _wrap_BookCtrl_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31571 | { (char *)"BookCtrl_AdvanceSelection", (PyCFunction) _wrap_BookCtrl_AdvanceSelection, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31572 | { (char *)"BookCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_BookCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31573 | { (char *)"BookCtrl_swigregister", BookCtrl_swigregister, METH_VARARGS }, |
31574 | { (char *)"new_BookCtrlEvent", (PyCFunction) _wrap_new_BookCtrlEvent, METH_VARARGS | METH_KEYWORDS }, | |
31575 | { (char *)"BookCtrlEvent_GetSelection", (PyCFunction) _wrap_BookCtrlEvent_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31576 | { (char *)"BookCtrlEvent_SetSelection", (PyCFunction) _wrap_BookCtrlEvent_SetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31577 | { (char *)"BookCtrlEvent_GetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_GetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31578 | { (char *)"BookCtrlEvent_SetOldSelection", (PyCFunction) _wrap_BookCtrlEvent_SetOldSelection, METH_VARARGS | METH_KEYWORDS }, | |
31579 | { (char *)"BookCtrlEvent_swigregister", BookCtrlEvent_swigregister, METH_VARARGS }, | |
31580 | { (char *)"new_Notebook", (PyCFunction) _wrap_new_Notebook, METH_VARARGS | METH_KEYWORDS }, | |
31581 | { (char *)"new_PreNotebook", (PyCFunction) _wrap_new_PreNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31582 | { (char *)"Notebook_Create", (PyCFunction) _wrap_Notebook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31583 | { (char *)"Notebook_GetRowCount", (PyCFunction) _wrap_Notebook_GetRowCount, METH_VARARGS | METH_KEYWORDS }, | |
31584 | { (char *)"Notebook_SetPadding", (PyCFunction) _wrap_Notebook_SetPadding, METH_VARARGS | METH_KEYWORDS }, | |
31585 | { (char *)"Notebook_SetTabSize", (PyCFunction) _wrap_Notebook_SetTabSize, METH_VARARGS | METH_KEYWORDS }, | |
31586 | { (char *)"Notebook_HitTest", (PyCFunction) _wrap_Notebook_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31587 | { (char *)"Notebook_CalcSizeFromPage", (PyCFunction) _wrap_Notebook_CalcSizeFromPage, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31588 | { (char *)"Notebook_GetClassDefaultAttributes", (PyCFunction) _wrap_Notebook_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31589 | { (char *)"Notebook_swigregister", Notebook_swigregister, METH_VARARGS }, |
31590 | { (char *)"new_NotebookEvent", (PyCFunction) _wrap_new_NotebookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31591 | { (char *)"NotebookEvent_swigregister", NotebookEvent_swigregister, METH_VARARGS }, | |
31592 | { (char *)"new_Listbook", (PyCFunction) _wrap_new_Listbook, METH_VARARGS | METH_KEYWORDS }, | |
31593 | { (char *)"new_PreListbook", (PyCFunction) _wrap_new_PreListbook, METH_VARARGS | METH_KEYWORDS }, | |
31594 | { (char *)"Listbook_Create", (PyCFunction) _wrap_Listbook_Create, METH_VARARGS | METH_KEYWORDS }, | |
31595 | { (char *)"Listbook_IsVertical", (PyCFunction) _wrap_Listbook_IsVertical, METH_VARARGS | METH_KEYWORDS }, | |
31596 | { (char *)"Listbook_swigregister", Listbook_swigregister, METH_VARARGS }, | |
31597 | { (char *)"new_ListbookEvent", (PyCFunction) _wrap_new_ListbookEvent, METH_VARARGS | METH_KEYWORDS }, | |
31598 | { (char *)"ListbookEvent_swigregister", ListbookEvent_swigregister, METH_VARARGS }, | |
31599 | { (char *)"new_BookCtrlSizer", (PyCFunction) _wrap_new_BookCtrlSizer, METH_VARARGS | METH_KEYWORDS }, | |
31600 | { (char *)"BookCtrlSizer_RecalcSizes", (PyCFunction) _wrap_BookCtrlSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31601 | { (char *)"BookCtrlSizer_CalcMin", (PyCFunction) _wrap_BookCtrlSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31602 | { (char *)"BookCtrlSizer_GetControl", (PyCFunction) _wrap_BookCtrlSizer_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31603 | { (char *)"BookCtrlSizer_swigregister", BookCtrlSizer_swigregister, METH_VARARGS }, | |
31604 | { (char *)"new_NotebookSizer", (PyCFunction) _wrap_new_NotebookSizer, METH_VARARGS | METH_KEYWORDS }, | |
31605 | { (char *)"NotebookSizer_RecalcSizes", (PyCFunction) _wrap_NotebookSizer_RecalcSizes, METH_VARARGS | METH_KEYWORDS }, | |
31606 | { (char *)"NotebookSizer_CalcMin", (PyCFunction) _wrap_NotebookSizer_CalcMin, METH_VARARGS | METH_KEYWORDS }, | |
31607 | { (char *)"NotebookSizer_GetNotebook", (PyCFunction) _wrap_NotebookSizer_GetNotebook, METH_VARARGS | METH_KEYWORDS }, | |
31608 | { (char *)"NotebookSizer_swigregister", NotebookSizer_swigregister, METH_VARARGS }, | |
31609 | { (char *)"ToolBarToolBase_GetId", (PyCFunction) _wrap_ToolBarToolBase_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31610 | { (char *)"ToolBarToolBase_GetControl", (PyCFunction) _wrap_ToolBarToolBase_GetControl, METH_VARARGS | METH_KEYWORDS }, | |
31611 | { (char *)"ToolBarToolBase_GetToolBar", (PyCFunction) _wrap_ToolBarToolBase_GetToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31612 | { (char *)"ToolBarToolBase_IsButton", (PyCFunction) _wrap_ToolBarToolBase_IsButton, METH_VARARGS | METH_KEYWORDS }, | |
31613 | { (char *)"ToolBarToolBase_IsControl", (PyCFunction) _wrap_ToolBarToolBase_IsControl, METH_VARARGS | METH_KEYWORDS }, | |
31614 | { (char *)"ToolBarToolBase_IsSeparator", (PyCFunction) _wrap_ToolBarToolBase_IsSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31615 | { (char *)"ToolBarToolBase_GetStyle", (PyCFunction) _wrap_ToolBarToolBase_GetStyle, METH_VARARGS | METH_KEYWORDS }, | |
31616 | { (char *)"ToolBarToolBase_GetKind", (PyCFunction) _wrap_ToolBarToolBase_GetKind, METH_VARARGS | METH_KEYWORDS }, | |
31617 | { (char *)"ToolBarToolBase_IsEnabled", (PyCFunction) _wrap_ToolBarToolBase_IsEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31618 | { (char *)"ToolBarToolBase_IsToggled", (PyCFunction) _wrap_ToolBarToolBase_IsToggled, METH_VARARGS | METH_KEYWORDS }, | |
31619 | { (char *)"ToolBarToolBase_CanBeToggled", (PyCFunction) _wrap_ToolBarToolBase_CanBeToggled, METH_VARARGS | METH_KEYWORDS }, | |
31620 | { (char *)"ToolBarToolBase_GetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31621 | { (char *)"ToolBarToolBase_GetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31622 | { (char *)"ToolBarToolBase_GetBitmap", (PyCFunction) _wrap_ToolBarToolBase_GetBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31623 | { (char *)"ToolBarToolBase_GetLabel", (PyCFunction) _wrap_ToolBarToolBase_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31624 | { (char *)"ToolBarToolBase_GetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_GetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31625 | { (char *)"ToolBarToolBase_GetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_GetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31626 | { (char *)"ToolBarToolBase_Enable", (PyCFunction) _wrap_ToolBarToolBase_Enable, METH_VARARGS | METH_KEYWORDS }, | |
31627 | { (char *)"ToolBarToolBase_Toggle", (PyCFunction) _wrap_ToolBarToolBase_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31628 | { (char *)"ToolBarToolBase_SetToggle", (PyCFunction) _wrap_ToolBarToolBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31629 | { (char *)"ToolBarToolBase_SetShortHelp", (PyCFunction) _wrap_ToolBarToolBase_SetShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31630 | { (char *)"ToolBarToolBase_SetLongHelp", (PyCFunction) _wrap_ToolBarToolBase_SetLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31631 | { (char *)"ToolBarToolBase_SetNormalBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetNormalBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31632 | { (char *)"ToolBarToolBase_SetDisabledBitmap", (PyCFunction) _wrap_ToolBarToolBase_SetDisabledBitmap, METH_VARARGS | METH_KEYWORDS }, | |
31633 | { (char *)"ToolBarToolBase_SetLabel", (PyCFunction) _wrap_ToolBarToolBase_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31634 | { (char *)"ToolBarToolBase_Detach", (PyCFunction) _wrap_ToolBarToolBase_Detach, METH_VARARGS | METH_KEYWORDS }, | |
31635 | { (char *)"ToolBarToolBase_Attach", (PyCFunction) _wrap_ToolBarToolBase_Attach, METH_VARARGS | METH_KEYWORDS }, | |
31636 | { (char *)"ToolBarToolBase_GetClientData", (PyCFunction) _wrap_ToolBarToolBase_GetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31637 | { (char *)"ToolBarToolBase_SetClientData", (PyCFunction) _wrap_ToolBarToolBase_SetClientData, METH_VARARGS | METH_KEYWORDS }, | |
31638 | { (char *)"ToolBarToolBase_swigregister", ToolBarToolBase_swigregister, METH_VARARGS }, | |
31639 | { (char *)"ToolBarBase_DoAddTool", (PyCFunction) _wrap_ToolBarBase_DoAddTool, METH_VARARGS | METH_KEYWORDS }, | |
31640 | { (char *)"ToolBarBase_DoInsertTool", (PyCFunction) _wrap_ToolBarBase_DoInsertTool, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 RD |
31641 | { (char *)"ToolBarBase_AddToolItem", (PyCFunction) _wrap_ToolBarBase_AddToolItem, METH_VARARGS | METH_KEYWORDS }, |
31642 | { (char *)"ToolBarBase_InsertToolItem", (PyCFunction) _wrap_ToolBarBase_InsertToolItem, METH_VARARGS | METH_KEYWORDS }, | |
d14a1e28 RD |
31643 | { (char *)"ToolBarBase_AddControl", (PyCFunction) _wrap_ToolBarBase_AddControl, METH_VARARGS | METH_KEYWORDS }, |
31644 | { (char *)"ToolBarBase_InsertControl", (PyCFunction) _wrap_ToolBarBase_InsertControl, METH_VARARGS | METH_KEYWORDS }, | |
31645 | { (char *)"ToolBarBase_FindControl", (PyCFunction) _wrap_ToolBarBase_FindControl, METH_VARARGS | METH_KEYWORDS }, | |
31646 | { (char *)"ToolBarBase_AddSeparator", (PyCFunction) _wrap_ToolBarBase_AddSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31647 | { (char *)"ToolBarBase_InsertSeparator", (PyCFunction) _wrap_ToolBarBase_InsertSeparator, METH_VARARGS | METH_KEYWORDS }, | |
31648 | { (char *)"ToolBarBase_RemoveTool", (PyCFunction) _wrap_ToolBarBase_RemoveTool, METH_VARARGS | METH_KEYWORDS }, | |
31649 | { (char *)"ToolBarBase_DeleteToolByPos", (PyCFunction) _wrap_ToolBarBase_DeleteToolByPos, METH_VARARGS | METH_KEYWORDS }, | |
31650 | { (char *)"ToolBarBase_DeleteTool", (PyCFunction) _wrap_ToolBarBase_DeleteTool, METH_VARARGS | METH_KEYWORDS }, | |
31651 | { (char *)"ToolBarBase_ClearTools", (PyCFunction) _wrap_ToolBarBase_ClearTools, METH_VARARGS | METH_KEYWORDS }, | |
31652 | { (char *)"ToolBarBase_Realize", (PyCFunction) _wrap_ToolBarBase_Realize, METH_VARARGS | METH_KEYWORDS }, | |
31653 | { (char *)"ToolBarBase_EnableTool", (PyCFunction) _wrap_ToolBarBase_EnableTool, METH_VARARGS | METH_KEYWORDS }, | |
31654 | { (char *)"ToolBarBase_ToggleTool", (PyCFunction) _wrap_ToolBarBase_ToggleTool, METH_VARARGS | METH_KEYWORDS }, | |
31655 | { (char *)"ToolBarBase_SetToggle", (PyCFunction) _wrap_ToolBarBase_SetToggle, METH_VARARGS | METH_KEYWORDS }, | |
31656 | { (char *)"ToolBarBase_GetToolClientData", (PyCFunction) _wrap_ToolBarBase_GetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31657 | { (char *)"ToolBarBase_SetToolClientData", (PyCFunction) _wrap_ToolBarBase_SetToolClientData, METH_VARARGS | METH_KEYWORDS }, | |
31658 | { (char *)"ToolBarBase_GetToolPos", (PyCFunction) _wrap_ToolBarBase_GetToolPos, METH_VARARGS | METH_KEYWORDS }, | |
31659 | { (char *)"ToolBarBase_GetToolState", (PyCFunction) _wrap_ToolBarBase_GetToolState, METH_VARARGS | METH_KEYWORDS }, | |
31660 | { (char *)"ToolBarBase_GetToolEnabled", (PyCFunction) _wrap_ToolBarBase_GetToolEnabled, METH_VARARGS | METH_KEYWORDS }, | |
31661 | { (char *)"ToolBarBase_SetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_SetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31662 | { (char *)"ToolBarBase_GetToolShortHelp", (PyCFunction) _wrap_ToolBarBase_GetToolShortHelp, METH_VARARGS | METH_KEYWORDS }, | |
31663 | { (char *)"ToolBarBase_SetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_SetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31664 | { (char *)"ToolBarBase_GetToolLongHelp", (PyCFunction) _wrap_ToolBarBase_GetToolLongHelp, METH_VARARGS | METH_KEYWORDS }, | |
31665 | { (char *)"ToolBarBase_SetMarginsXY", (PyCFunction) _wrap_ToolBarBase_SetMarginsXY, METH_VARARGS | METH_KEYWORDS }, | |
31666 | { (char *)"ToolBarBase_SetMargins", (PyCFunction) _wrap_ToolBarBase_SetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31667 | { (char *)"ToolBarBase_SetToolPacking", (PyCFunction) _wrap_ToolBarBase_SetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31668 | { (char *)"ToolBarBase_SetToolSeparation", (PyCFunction) _wrap_ToolBarBase_SetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31669 | { (char *)"ToolBarBase_GetToolMargins", (PyCFunction) _wrap_ToolBarBase_GetToolMargins, METH_VARARGS | METH_KEYWORDS }, | |
31670 | { (char *)"ToolBarBase_GetMargins", (PyCFunction) _wrap_ToolBarBase_GetMargins, METH_VARARGS | METH_KEYWORDS }, | |
31671 | { (char *)"ToolBarBase_GetToolPacking", (PyCFunction) _wrap_ToolBarBase_GetToolPacking, METH_VARARGS | METH_KEYWORDS }, | |
31672 | { (char *)"ToolBarBase_GetToolSeparation", (PyCFunction) _wrap_ToolBarBase_GetToolSeparation, METH_VARARGS | METH_KEYWORDS }, | |
31673 | { (char *)"ToolBarBase_SetRows", (PyCFunction) _wrap_ToolBarBase_SetRows, METH_VARARGS | METH_KEYWORDS }, | |
31674 | { (char *)"ToolBarBase_SetMaxRowsCols", (PyCFunction) _wrap_ToolBarBase_SetMaxRowsCols, METH_VARARGS | METH_KEYWORDS }, | |
31675 | { (char *)"ToolBarBase_GetMaxRows", (PyCFunction) _wrap_ToolBarBase_GetMaxRows, METH_VARARGS | METH_KEYWORDS }, | |
31676 | { (char *)"ToolBarBase_GetMaxCols", (PyCFunction) _wrap_ToolBarBase_GetMaxCols, METH_VARARGS | METH_KEYWORDS }, | |
31677 | { (char *)"ToolBarBase_SetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_SetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31678 | { (char *)"ToolBarBase_GetToolBitmapSize", (PyCFunction) _wrap_ToolBarBase_GetToolBitmapSize, METH_VARARGS | METH_KEYWORDS }, | |
31679 | { (char *)"ToolBarBase_GetToolSize", (PyCFunction) _wrap_ToolBarBase_GetToolSize, METH_VARARGS | METH_KEYWORDS }, | |
31680 | { (char *)"ToolBarBase_FindToolForPosition", (PyCFunction) _wrap_ToolBarBase_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
3a04f143 | 31681 | { (char *)"ToolBarBase_FindById", (PyCFunction) _wrap_ToolBarBase_FindById, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31682 | { (char *)"ToolBarBase_IsVertical", (PyCFunction) _wrap_ToolBarBase_IsVertical, METH_VARARGS | METH_KEYWORDS }, |
31683 | { (char *)"ToolBarBase_swigregister", ToolBarBase_swigregister, METH_VARARGS }, | |
31684 | { (char *)"new_ToolBar", (PyCFunction) _wrap_new_ToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31685 | { (char *)"new_PreToolBar", (PyCFunction) _wrap_new_PreToolBar, METH_VARARGS | METH_KEYWORDS }, | |
31686 | { (char *)"ToolBar_Create", (PyCFunction) _wrap_ToolBar_Create, METH_VARARGS | METH_KEYWORDS }, | |
31687 | { (char *)"ToolBar_FindToolForPosition", (PyCFunction) _wrap_ToolBar_FindToolForPosition, METH_VARARGS | METH_KEYWORDS }, | |
22bfe96c | 31688 | { (char *)"ToolBar_GetClassDefaultAttributes", (PyCFunction) _wrap_ToolBar_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31689 | { (char *)"ToolBar_swigregister", ToolBar_swigregister, METH_VARARGS }, |
31690 | { (char *)"new_ListItemAttr", (PyCFunction) _wrap_new_ListItemAttr, METH_VARARGS | METH_KEYWORDS }, | |
31691 | { (char *)"ListItemAttr_SetTextColour", (PyCFunction) _wrap_ListItemAttr_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31692 | { (char *)"ListItemAttr_SetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31693 | { (char *)"ListItemAttr_SetFont", (PyCFunction) _wrap_ListItemAttr_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31694 | { (char *)"ListItemAttr_HasTextColour", (PyCFunction) _wrap_ListItemAttr_HasTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31695 | { (char *)"ListItemAttr_HasBackgroundColour", (PyCFunction) _wrap_ListItemAttr_HasBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31696 | { (char *)"ListItemAttr_HasFont", (PyCFunction) _wrap_ListItemAttr_HasFont, METH_VARARGS | METH_KEYWORDS }, | |
31697 | { (char *)"ListItemAttr_GetTextColour", (PyCFunction) _wrap_ListItemAttr_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31698 | { (char *)"ListItemAttr_GetBackgroundColour", (PyCFunction) _wrap_ListItemAttr_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31699 | { (char *)"ListItemAttr_GetFont", (PyCFunction) _wrap_ListItemAttr_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31700 | { (char *)"ListItemAttr_Destroy", (PyCFunction) _wrap_ListItemAttr_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31701 | { (char *)"ListItemAttr_swigregister", ListItemAttr_swigregister, METH_VARARGS }, | |
31702 | { (char *)"new_ListItem", (PyCFunction) _wrap_new_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31703 | { (char *)"delete_ListItem", (PyCFunction) _wrap_delete_ListItem, METH_VARARGS | METH_KEYWORDS }, | |
31704 | { (char *)"ListItem_Clear", (PyCFunction) _wrap_ListItem_Clear, METH_VARARGS | METH_KEYWORDS }, | |
31705 | { (char *)"ListItem_ClearAttributes", (PyCFunction) _wrap_ListItem_ClearAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31706 | { (char *)"ListItem_SetMask", (PyCFunction) _wrap_ListItem_SetMask, METH_VARARGS | METH_KEYWORDS }, | |
31707 | { (char *)"ListItem_SetId", (PyCFunction) _wrap_ListItem_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31708 | { (char *)"ListItem_SetColumn", (PyCFunction) _wrap_ListItem_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31709 | { (char *)"ListItem_SetState", (PyCFunction) _wrap_ListItem_SetState, METH_VARARGS | METH_KEYWORDS }, | |
31710 | { (char *)"ListItem_SetStateMask", (PyCFunction) _wrap_ListItem_SetStateMask, METH_VARARGS | METH_KEYWORDS }, | |
31711 | { (char *)"ListItem_SetText", (PyCFunction) _wrap_ListItem_SetText, METH_VARARGS | METH_KEYWORDS }, | |
31712 | { (char *)"ListItem_SetImage", (PyCFunction) _wrap_ListItem_SetImage, METH_VARARGS | METH_KEYWORDS }, | |
31713 | { (char *)"ListItem_SetData", (PyCFunction) _wrap_ListItem_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31714 | { (char *)"ListItem_SetWidth", (PyCFunction) _wrap_ListItem_SetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31715 | { (char *)"ListItem_SetAlign", (PyCFunction) _wrap_ListItem_SetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31716 | { (char *)"ListItem_SetTextColour", (PyCFunction) _wrap_ListItem_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31717 | { (char *)"ListItem_SetBackgroundColour", (PyCFunction) _wrap_ListItem_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31718 | { (char *)"ListItem_SetFont", (PyCFunction) _wrap_ListItem_SetFont, METH_VARARGS | METH_KEYWORDS }, | |
31719 | { (char *)"ListItem_GetMask", (PyCFunction) _wrap_ListItem_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31720 | { (char *)"ListItem_GetId", (PyCFunction) _wrap_ListItem_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31721 | { (char *)"ListItem_GetColumn", (PyCFunction) _wrap_ListItem_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31722 | { (char *)"ListItem_GetState", (PyCFunction) _wrap_ListItem_GetState, METH_VARARGS | METH_KEYWORDS }, | |
31723 | { (char *)"ListItem_GetText", (PyCFunction) _wrap_ListItem_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31724 | { (char *)"ListItem_GetImage", (PyCFunction) _wrap_ListItem_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31725 | { (char *)"ListItem_GetData", (PyCFunction) _wrap_ListItem_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31726 | { (char *)"ListItem_GetWidth", (PyCFunction) _wrap_ListItem_GetWidth, METH_VARARGS | METH_KEYWORDS }, | |
31727 | { (char *)"ListItem_GetAlign", (PyCFunction) _wrap_ListItem_GetAlign, METH_VARARGS | METH_KEYWORDS }, | |
31728 | { (char *)"ListItem_GetAttributes", (PyCFunction) _wrap_ListItem_GetAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31729 | { (char *)"ListItem_HasAttributes", (PyCFunction) _wrap_ListItem_HasAttributes, METH_VARARGS | METH_KEYWORDS }, | |
31730 | { (char *)"ListItem_GetTextColour", (PyCFunction) _wrap_ListItem_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31731 | { (char *)"ListItem_GetBackgroundColour", (PyCFunction) _wrap_ListItem_GetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31732 | { (char *)"ListItem_GetFont", (PyCFunction) _wrap_ListItem_GetFont, METH_VARARGS | METH_KEYWORDS }, | |
31733 | { (char *)"ListItem_m_mask_set", (PyCFunction) _wrap_ListItem_m_mask_set, METH_VARARGS | METH_KEYWORDS }, | |
31734 | { (char *)"ListItem_m_mask_get", (PyCFunction) _wrap_ListItem_m_mask_get, METH_VARARGS | METH_KEYWORDS }, | |
31735 | { (char *)"ListItem_m_itemId_set", (PyCFunction) _wrap_ListItem_m_itemId_set, METH_VARARGS | METH_KEYWORDS }, | |
31736 | { (char *)"ListItem_m_itemId_get", (PyCFunction) _wrap_ListItem_m_itemId_get, METH_VARARGS | METH_KEYWORDS }, | |
31737 | { (char *)"ListItem_m_col_set", (PyCFunction) _wrap_ListItem_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31738 | { (char *)"ListItem_m_col_get", (PyCFunction) _wrap_ListItem_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31739 | { (char *)"ListItem_m_state_set", (PyCFunction) _wrap_ListItem_m_state_set, METH_VARARGS | METH_KEYWORDS }, | |
31740 | { (char *)"ListItem_m_state_get", (PyCFunction) _wrap_ListItem_m_state_get, METH_VARARGS | METH_KEYWORDS }, | |
31741 | { (char *)"ListItem_m_stateMask_set", (PyCFunction) _wrap_ListItem_m_stateMask_set, METH_VARARGS | METH_KEYWORDS }, | |
31742 | { (char *)"ListItem_m_stateMask_get", (PyCFunction) _wrap_ListItem_m_stateMask_get, METH_VARARGS | METH_KEYWORDS }, | |
31743 | { (char *)"ListItem_m_text_set", (PyCFunction) _wrap_ListItem_m_text_set, METH_VARARGS | METH_KEYWORDS }, | |
31744 | { (char *)"ListItem_m_text_get", (PyCFunction) _wrap_ListItem_m_text_get, METH_VARARGS | METH_KEYWORDS }, | |
31745 | { (char *)"ListItem_m_image_set", (PyCFunction) _wrap_ListItem_m_image_set, METH_VARARGS | METH_KEYWORDS }, | |
31746 | { (char *)"ListItem_m_image_get", (PyCFunction) _wrap_ListItem_m_image_get, METH_VARARGS | METH_KEYWORDS }, | |
31747 | { (char *)"ListItem_m_data_set", (PyCFunction) _wrap_ListItem_m_data_set, METH_VARARGS | METH_KEYWORDS }, | |
31748 | { (char *)"ListItem_m_data_get", (PyCFunction) _wrap_ListItem_m_data_get, METH_VARARGS | METH_KEYWORDS }, | |
31749 | { (char *)"ListItem_m_format_set", (PyCFunction) _wrap_ListItem_m_format_set, METH_VARARGS | METH_KEYWORDS }, | |
31750 | { (char *)"ListItem_m_format_get", (PyCFunction) _wrap_ListItem_m_format_get, METH_VARARGS | METH_KEYWORDS }, | |
31751 | { (char *)"ListItem_m_width_set", (PyCFunction) _wrap_ListItem_m_width_set, METH_VARARGS | METH_KEYWORDS }, | |
31752 | { (char *)"ListItem_m_width_get", (PyCFunction) _wrap_ListItem_m_width_get, METH_VARARGS | METH_KEYWORDS }, | |
31753 | { (char *)"ListItem_swigregister", ListItem_swigregister, METH_VARARGS }, | |
31754 | { (char *)"new_ListEvent", (PyCFunction) _wrap_new_ListEvent, METH_VARARGS | METH_KEYWORDS }, | |
31755 | { (char *)"ListEvent_m_code_set", (PyCFunction) _wrap_ListEvent_m_code_set, METH_VARARGS | METH_KEYWORDS }, | |
31756 | { (char *)"ListEvent_m_code_get", (PyCFunction) _wrap_ListEvent_m_code_get, METH_VARARGS | METH_KEYWORDS }, | |
31757 | { (char *)"ListEvent_m_oldItemIndex_set", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31758 | { (char *)"ListEvent_m_oldItemIndex_get", (PyCFunction) _wrap_ListEvent_m_oldItemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31759 | { (char *)"ListEvent_m_itemIndex_set", (PyCFunction) _wrap_ListEvent_m_itemIndex_set, METH_VARARGS | METH_KEYWORDS }, | |
31760 | { (char *)"ListEvent_m_itemIndex_get", (PyCFunction) _wrap_ListEvent_m_itemIndex_get, METH_VARARGS | METH_KEYWORDS }, | |
31761 | { (char *)"ListEvent_m_col_set", (PyCFunction) _wrap_ListEvent_m_col_set, METH_VARARGS | METH_KEYWORDS }, | |
31762 | { (char *)"ListEvent_m_col_get", (PyCFunction) _wrap_ListEvent_m_col_get, METH_VARARGS | METH_KEYWORDS }, | |
31763 | { (char *)"ListEvent_m_pointDrag_set", (PyCFunction) _wrap_ListEvent_m_pointDrag_set, METH_VARARGS | METH_KEYWORDS }, | |
31764 | { (char *)"ListEvent_m_pointDrag_get", (PyCFunction) _wrap_ListEvent_m_pointDrag_get, METH_VARARGS | METH_KEYWORDS }, | |
31765 | { (char *)"ListEvent_m_item_get", (PyCFunction) _wrap_ListEvent_m_item_get, METH_VARARGS | METH_KEYWORDS }, | |
31766 | { (char *)"ListEvent_GetKeyCode", (PyCFunction) _wrap_ListEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31767 | { (char *)"ListEvent_GetIndex", (PyCFunction) _wrap_ListEvent_GetIndex, METH_VARARGS | METH_KEYWORDS }, | |
31768 | { (char *)"ListEvent_GetColumn", (PyCFunction) _wrap_ListEvent_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31769 | { (char *)"ListEvent_GetPoint", (PyCFunction) _wrap_ListEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31770 | { (char *)"ListEvent_GetLabel", (PyCFunction) _wrap_ListEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31771 | { (char *)"ListEvent_GetText", (PyCFunction) _wrap_ListEvent_GetText, METH_VARARGS | METH_KEYWORDS }, | |
31772 | { (char *)"ListEvent_GetImage", (PyCFunction) _wrap_ListEvent_GetImage, METH_VARARGS | METH_KEYWORDS }, | |
31773 | { (char *)"ListEvent_GetData", (PyCFunction) _wrap_ListEvent_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31774 | { (char *)"ListEvent_GetMask", (PyCFunction) _wrap_ListEvent_GetMask, METH_VARARGS | METH_KEYWORDS }, | |
31775 | { (char *)"ListEvent_GetItem", (PyCFunction) _wrap_ListEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31776 | { (char *)"ListEvent_GetCacheFrom", (PyCFunction) _wrap_ListEvent_GetCacheFrom, METH_VARARGS | METH_KEYWORDS }, | |
31777 | { (char *)"ListEvent_GetCacheTo", (PyCFunction) _wrap_ListEvent_GetCacheTo, METH_VARARGS | METH_KEYWORDS }, | |
31778 | { (char *)"ListEvent_IsEditCancelled", (PyCFunction) _wrap_ListEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31779 | { (char *)"ListEvent_SetEditCanceled", (PyCFunction) _wrap_ListEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
31780 | { (char *)"ListEvent_swigregister", ListEvent_swigregister, METH_VARARGS }, | |
31781 | { (char *)"new_ListCtrl", (PyCFunction) _wrap_new_ListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31782 | { (char *)"new_PreListCtrl", (PyCFunction) _wrap_new_PreListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31783 | { (char *)"ListCtrl_Create", (PyCFunction) _wrap_ListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31784 | { (char *)"ListCtrl__setCallbackInfo", (PyCFunction) _wrap_ListCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31785 | { (char *)"ListCtrl_SetForegroundColour", (PyCFunction) _wrap_ListCtrl_SetForegroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31786 | { (char *)"ListCtrl_SetBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31787 | { (char *)"ListCtrl_GetColumn", (PyCFunction) _wrap_ListCtrl_GetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31788 | { (char *)"ListCtrl_SetColumn", (PyCFunction) _wrap_ListCtrl_SetColumn, METH_VARARGS | METH_KEYWORDS }, | |
31789 | { (char *)"ListCtrl_GetColumnWidth", (PyCFunction) _wrap_ListCtrl_GetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31790 | { (char *)"ListCtrl_SetColumnWidth", (PyCFunction) _wrap_ListCtrl_SetColumnWidth, METH_VARARGS | METH_KEYWORDS }, | |
31791 | { (char *)"ListCtrl_GetCountPerPage", (PyCFunction) _wrap_ListCtrl_GetCountPerPage, METH_VARARGS | METH_KEYWORDS }, | |
31792 | { (char *)"ListCtrl_GetViewRect", (PyCFunction) _wrap_ListCtrl_GetViewRect, METH_VARARGS | METH_KEYWORDS }, | |
31793 | { (char *)"ListCtrl_GetItem", (PyCFunction) _wrap_ListCtrl_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31794 | { (char *)"ListCtrl_SetItem", (PyCFunction) _wrap_ListCtrl_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31795 | { (char *)"ListCtrl_SetStringItem", (PyCFunction) _wrap_ListCtrl_SetStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31796 | { (char *)"ListCtrl_GetItemState", (PyCFunction) _wrap_ListCtrl_GetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31797 | { (char *)"ListCtrl_SetItemState", (PyCFunction) _wrap_ListCtrl_SetItemState, METH_VARARGS | METH_KEYWORDS }, | |
31798 | { (char *)"ListCtrl_SetItemImage", (PyCFunction) _wrap_ListCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31799 | { (char *)"ListCtrl_GetItemText", (PyCFunction) _wrap_ListCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31800 | { (char *)"ListCtrl_SetItemText", (PyCFunction) _wrap_ListCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31801 | { (char *)"ListCtrl_GetItemData", (PyCFunction) _wrap_ListCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31802 | { (char *)"ListCtrl_SetItemData", (PyCFunction) _wrap_ListCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31803 | { (char *)"ListCtrl_GetItemPosition", (PyCFunction) _wrap_ListCtrl_GetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31804 | { (char *)"ListCtrl_GetItemRect", (PyCFunction) _wrap_ListCtrl_GetItemRect, METH_VARARGS | METH_KEYWORDS }, | |
31805 | { (char *)"ListCtrl_SetItemPosition", (PyCFunction) _wrap_ListCtrl_SetItemPosition, METH_VARARGS | METH_KEYWORDS }, | |
31806 | { (char *)"ListCtrl_GetItemCount", (PyCFunction) _wrap_ListCtrl_GetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31807 | { (char *)"ListCtrl_GetColumnCount", (PyCFunction) _wrap_ListCtrl_GetColumnCount, METH_VARARGS | METH_KEYWORDS }, | |
31808 | { (char *)"ListCtrl_GetItemSpacing", (PyCFunction) _wrap_ListCtrl_GetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31809 | { (char *)"ListCtrl_SetItemSpacing", (PyCFunction) _wrap_ListCtrl_SetItemSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31810 | { (char *)"ListCtrl_GetSelectedItemCount", (PyCFunction) _wrap_ListCtrl_GetSelectedItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31811 | { (char *)"ListCtrl_GetTextColour", (PyCFunction) _wrap_ListCtrl_GetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31812 | { (char *)"ListCtrl_SetTextColour", (PyCFunction) _wrap_ListCtrl_SetTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31813 | { (char *)"ListCtrl_GetTopItem", (PyCFunction) _wrap_ListCtrl_GetTopItem, METH_VARARGS | METH_KEYWORDS }, | |
31814 | { (char *)"ListCtrl_SetSingleStyle", (PyCFunction) _wrap_ListCtrl_SetSingleStyle, METH_VARARGS | METH_KEYWORDS }, | |
31815 | { (char *)"ListCtrl_SetWindowStyleFlag", (PyCFunction) _wrap_ListCtrl_SetWindowStyleFlag, METH_VARARGS | METH_KEYWORDS }, | |
31816 | { (char *)"ListCtrl_GetNextItem", (PyCFunction) _wrap_ListCtrl_GetNextItem, METH_VARARGS | METH_KEYWORDS }, | |
31817 | { (char *)"ListCtrl_GetImageList", (PyCFunction) _wrap_ListCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31818 | { (char *)"ListCtrl_SetImageList", (PyCFunction) _wrap_ListCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31819 | { (char *)"ListCtrl_AssignImageList", (PyCFunction) _wrap_ListCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
4276dc52 | 31820 | { (char *)"ListCtrl_InReportView", (PyCFunction) _wrap_ListCtrl_InReportView, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31821 | { (char *)"ListCtrl_IsVirtual", (PyCFunction) _wrap_ListCtrl_IsVirtual, METH_VARARGS | METH_KEYWORDS }, |
31822 | { (char *)"ListCtrl_RefreshItem", (PyCFunction) _wrap_ListCtrl_RefreshItem, METH_VARARGS | METH_KEYWORDS }, | |
31823 | { (char *)"ListCtrl_RefreshItems", (PyCFunction) _wrap_ListCtrl_RefreshItems, METH_VARARGS | METH_KEYWORDS }, | |
31824 | { (char *)"ListCtrl_Arrange", (PyCFunction) _wrap_ListCtrl_Arrange, METH_VARARGS | METH_KEYWORDS }, | |
31825 | { (char *)"ListCtrl_DeleteItem", (PyCFunction) _wrap_ListCtrl_DeleteItem, METH_VARARGS | METH_KEYWORDS }, | |
31826 | { (char *)"ListCtrl_DeleteAllItems", (PyCFunction) _wrap_ListCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31827 | { (char *)"ListCtrl_DeleteColumn", (PyCFunction) _wrap_ListCtrl_DeleteColumn, METH_VARARGS | METH_KEYWORDS }, | |
31828 | { (char *)"ListCtrl_DeleteAllColumns", (PyCFunction) _wrap_ListCtrl_DeleteAllColumns, METH_VARARGS | METH_KEYWORDS }, | |
31829 | { (char *)"ListCtrl_ClearAll", (PyCFunction) _wrap_ListCtrl_ClearAll, METH_VARARGS | METH_KEYWORDS }, | |
31830 | { (char *)"ListCtrl_EditLabel", (PyCFunction) _wrap_ListCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31831 | { (char *)"ListCtrl_EnsureVisible", (PyCFunction) _wrap_ListCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, | |
31832 | { (char *)"ListCtrl_FindItem", (PyCFunction) _wrap_ListCtrl_FindItem, METH_VARARGS | METH_KEYWORDS }, | |
31833 | { (char *)"ListCtrl_FindItemData", (PyCFunction) _wrap_ListCtrl_FindItemData, METH_VARARGS | METH_KEYWORDS }, | |
31834 | { (char *)"ListCtrl_FindItemAtPos", (PyCFunction) _wrap_ListCtrl_FindItemAtPos, METH_VARARGS | METH_KEYWORDS }, | |
31835 | { (char *)"ListCtrl_HitTest", (PyCFunction) _wrap_ListCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31836 | { (char *)"ListCtrl_InsertItem", (PyCFunction) _wrap_ListCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31837 | { (char *)"ListCtrl_InsertStringItem", (PyCFunction) _wrap_ListCtrl_InsertStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31838 | { (char *)"ListCtrl_InsertImageItem", (PyCFunction) _wrap_ListCtrl_InsertImageItem, METH_VARARGS | METH_KEYWORDS }, | |
31839 | { (char *)"ListCtrl_InsertImageStringItem", (PyCFunction) _wrap_ListCtrl_InsertImageStringItem, METH_VARARGS | METH_KEYWORDS }, | |
31840 | { (char *)"ListCtrl_InsertColumnInfo", (PyCFunction) _wrap_ListCtrl_InsertColumnInfo, METH_VARARGS | METH_KEYWORDS }, | |
31841 | { (char *)"ListCtrl_InsertColumn", (PyCFunction) _wrap_ListCtrl_InsertColumn, METH_VARARGS | METH_KEYWORDS }, | |
31842 | { (char *)"ListCtrl_SetItemCount", (PyCFunction) _wrap_ListCtrl_SetItemCount, METH_VARARGS | METH_KEYWORDS }, | |
31843 | { (char *)"ListCtrl_ScrollList", (PyCFunction) _wrap_ListCtrl_ScrollList, METH_VARARGS | METH_KEYWORDS }, | |
31844 | { (char *)"ListCtrl_SetItemTextColour", (PyCFunction) _wrap_ListCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31845 | { (char *)"ListCtrl_GetItemTextColour", (PyCFunction) _wrap_ListCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31846 | { (char *)"ListCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31847 | { (char *)"ListCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_ListCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31848 | { (char *)"ListCtrl_SortItems", (PyCFunction) _wrap_ListCtrl_SortItems, METH_VARARGS | METH_KEYWORDS }, | |
31849 | { (char *)"ListCtrl_GetMainWindow", (PyCFunction) _wrap_ListCtrl_GetMainWindow, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31850 | { (char *)"ListCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_ListCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31851 | { (char *)"ListCtrl_swigregister", ListCtrl_swigregister, METH_VARARGS }, |
31852 | { (char *)"new_ListView", (PyCFunction) _wrap_new_ListView, METH_VARARGS | METH_KEYWORDS }, | |
31853 | { (char *)"new_PreListView", (PyCFunction) _wrap_new_PreListView, METH_VARARGS | METH_KEYWORDS }, | |
31854 | { (char *)"ListView_Create", (PyCFunction) _wrap_ListView_Create, METH_VARARGS | METH_KEYWORDS }, | |
31855 | { (char *)"ListView_Select", (PyCFunction) _wrap_ListView_Select, METH_VARARGS | METH_KEYWORDS }, | |
31856 | { (char *)"ListView_Focus", (PyCFunction) _wrap_ListView_Focus, METH_VARARGS | METH_KEYWORDS }, | |
31857 | { (char *)"ListView_GetFocusedItem", (PyCFunction) _wrap_ListView_GetFocusedItem, METH_VARARGS | METH_KEYWORDS }, | |
31858 | { (char *)"ListView_GetNextSelected", (PyCFunction) _wrap_ListView_GetNextSelected, METH_VARARGS | METH_KEYWORDS }, | |
31859 | { (char *)"ListView_GetFirstSelected", (PyCFunction) _wrap_ListView_GetFirstSelected, METH_VARARGS | METH_KEYWORDS }, | |
31860 | { (char *)"ListView_IsSelected", (PyCFunction) _wrap_ListView_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31861 | { (char *)"ListView_SetColumnImage", (PyCFunction) _wrap_ListView_SetColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31862 | { (char *)"ListView_ClearColumnImage", (PyCFunction) _wrap_ListView_ClearColumnImage, METH_VARARGS | METH_KEYWORDS }, | |
31863 | { (char *)"ListView_swigregister", ListView_swigregister, METH_VARARGS }, | |
31864 | { (char *)"new_TreeItemId", (PyCFunction) _wrap_new_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31865 | { (char *)"delete_TreeItemId", (PyCFunction) _wrap_delete_TreeItemId, METH_VARARGS | METH_KEYWORDS }, | |
31866 | { (char *)"TreeItemId_IsOk", (PyCFunction) _wrap_TreeItemId_IsOk, METH_VARARGS | METH_KEYWORDS }, | |
31867 | { (char *)"TreeItemId___eq__", (PyCFunction) _wrap_TreeItemId___eq__, METH_VARARGS | METH_KEYWORDS }, | |
31868 | { (char *)"TreeItemId___ne__", (PyCFunction) _wrap_TreeItemId___ne__, METH_VARARGS | METH_KEYWORDS }, | |
31869 | { (char *)"TreeItemId_m_pItem_set", (PyCFunction) _wrap_TreeItemId_m_pItem_set, METH_VARARGS | METH_KEYWORDS }, | |
31870 | { (char *)"TreeItemId_m_pItem_get", (PyCFunction) _wrap_TreeItemId_m_pItem_get, METH_VARARGS | METH_KEYWORDS }, | |
31871 | { (char *)"TreeItemId_swigregister", TreeItemId_swigregister, METH_VARARGS }, | |
31872 | { (char *)"new_TreeItemData", (PyCFunction) _wrap_new_TreeItemData, METH_VARARGS | METH_KEYWORDS }, | |
31873 | { (char *)"TreeItemData_GetData", (PyCFunction) _wrap_TreeItemData_GetData, METH_VARARGS | METH_KEYWORDS }, | |
31874 | { (char *)"TreeItemData_SetData", (PyCFunction) _wrap_TreeItemData_SetData, METH_VARARGS | METH_KEYWORDS }, | |
31875 | { (char *)"TreeItemData_GetId", (PyCFunction) _wrap_TreeItemData_GetId, METH_VARARGS | METH_KEYWORDS }, | |
31876 | { (char *)"TreeItemData_SetId", (PyCFunction) _wrap_TreeItemData_SetId, METH_VARARGS | METH_KEYWORDS }, | |
31877 | { (char *)"TreeItemData_Destroy", (PyCFunction) _wrap_TreeItemData_Destroy, METH_VARARGS | METH_KEYWORDS }, | |
31878 | { (char *)"TreeItemData_swigregister", TreeItemData_swigregister, METH_VARARGS }, | |
31879 | { (char *)"new_TreeEvent", (PyCFunction) _wrap_new_TreeEvent, METH_VARARGS | METH_KEYWORDS }, | |
31880 | { (char *)"TreeEvent_GetItem", (PyCFunction) _wrap_TreeEvent_GetItem, METH_VARARGS | METH_KEYWORDS }, | |
31881 | { (char *)"TreeEvent_SetItem", (PyCFunction) _wrap_TreeEvent_SetItem, METH_VARARGS | METH_KEYWORDS }, | |
31882 | { (char *)"TreeEvent_GetOldItem", (PyCFunction) _wrap_TreeEvent_GetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31883 | { (char *)"TreeEvent_SetOldItem", (PyCFunction) _wrap_TreeEvent_SetOldItem, METH_VARARGS | METH_KEYWORDS }, | |
31884 | { (char *)"TreeEvent_GetPoint", (PyCFunction) _wrap_TreeEvent_GetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31885 | { (char *)"TreeEvent_SetPoint", (PyCFunction) _wrap_TreeEvent_SetPoint, METH_VARARGS | METH_KEYWORDS }, | |
31886 | { (char *)"TreeEvent_GetKeyEvent", (PyCFunction) _wrap_TreeEvent_GetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31887 | { (char *)"TreeEvent_GetKeyCode", (PyCFunction) _wrap_TreeEvent_GetKeyCode, METH_VARARGS | METH_KEYWORDS }, | |
31888 | { (char *)"TreeEvent_SetKeyEvent", (PyCFunction) _wrap_TreeEvent_SetKeyEvent, METH_VARARGS | METH_KEYWORDS }, | |
31889 | { (char *)"TreeEvent_GetLabel", (PyCFunction) _wrap_TreeEvent_GetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31890 | { (char *)"TreeEvent_SetLabel", (PyCFunction) _wrap_TreeEvent_SetLabel, METH_VARARGS | METH_KEYWORDS }, | |
31891 | { (char *)"TreeEvent_IsEditCancelled", (PyCFunction) _wrap_TreeEvent_IsEditCancelled, METH_VARARGS | METH_KEYWORDS }, | |
31892 | { (char *)"TreeEvent_SetEditCanceled", (PyCFunction) _wrap_TreeEvent_SetEditCanceled, METH_VARARGS | METH_KEYWORDS }, | |
c9c7117a | 31893 | { (char *)"TreeEvent_SetToolTip", (PyCFunction) _wrap_TreeEvent_SetToolTip, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31894 | { (char *)"TreeEvent_swigregister", TreeEvent_swigregister, METH_VARARGS }, |
31895 | { (char *)"new_TreeCtrl", (PyCFunction) _wrap_new_TreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31896 | { (char *)"new_PreTreeCtrl", (PyCFunction) _wrap_new_PreTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31897 | { (char *)"TreeCtrl_Create", (PyCFunction) _wrap_TreeCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31898 | { (char *)"TreeCtrl__setCallbackInfo", (PyCFunction) _wrap_TreeCtrl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, | |
31899 | { (char *)"TreeCtrl_GetCount", (PyCFunction) _wrap_TreeCtrl_GetCount, METH_VARARGS | METH_KEYWORDS }, | |
31900 | { (char *)"TreeCtrl_GetIndent", (PyCFunction) _wrap_TreeCtrl_GetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31901 | { (char *)"TreeCtrl_SetIndent", (PyCFunction) _wrap_TreeCtrl_SetIndent, METH_VARARGS | METH_KEYWORDS }, | |
31902 | { (char *)"TreeCtrl_GetSpacing", (PyCFunction) _wrap_TreeCtrl_GetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31903 | { (char *)"TreeCtrl_SetSpacing", (PyCFunction) _wrap_TreeCtrl_SetSpacing, METH_VARARGS | METH_KEYWORDS }, | |
31904 | { (char *)"TreeCtrl_GetImageList", (PyCFunction) _wrap_TreeCtrl_GetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31905 | { (char *)"TreeCtrl_GetStateImageList", (PyCFunction) _wrap_TreeCtrl_GetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31906 | { (char *)"TreeCtrl_SetImageList", (PyCFunction) _wrap_TreeCtrl_SetImageList, METH_VARARGS | METH_KEYWORDS }, | |
31907 | { (char *)"TreeCtrl_SetStateImageList", (PyCFunction) _wrap_TreeCtrl_SetStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31908 | { (char *)"TreeCtrl_AssignImageList", (PyCFunction) _wrap_TreeCtrl_AssignImageList, METH_VARARGS | METH_KEYWORDS }, | |
31909 | { (char *)"TreeCtrl_AssignStateImageList", (PyCFunction) _wrap_TreeCtrl_AssignStateImageList, METH_VARARGS | METH_KEYWORDS }, | |
31910 | { (char *)"TreeCtrl_GetItemText", (PyCFunction) _wrap_TreeCtrl_GetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31911 | { (char *)"TreeCtrl_GetItemImage", (PyCFunction) _wrap_TreeCtrl_GetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31912 | { (char *)"TreeCtrl_GetItemData", (PyCFunction) _wrap_TreeCtrl_GetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31913 | { (char *)"TreeCtrl_GetItemPyData", (PyCFunction) _wrap_TreeCtrl_GetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31914 | { (char *)"TreeCtrl_GetItemTextColour", (PyCFunction) _wrap_TreeCtrl_GetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31915 | { (char *)"TreeCtrl_GetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_GetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31916 | { (char *)"TreeCtrl_GetItemFont", (PyCFunction) _wrap_TreeCtrl_GetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31917 | { (char *)"TreeCtrl_SetItemText", (PyCFunction) _wrap_TreeCtrl_SetItemText, METH_VARARGS | METH_KEYWORDS }, | |
31918 | { (char *)"TreeCtrl_SetItemImage", (PyCFunction) _wrap_TreeCtrl_SetItemImage, METH_VARARGS | METH_KEYWORDS }, | |
31919 | { (char *)"TreeCtrl_SetItemData", (PyCFunction) _wrap_TreeCtrl_SetItemData, METH_VARARGS | METH_KEYWORDS }, | |
31920 | { (char *)"TreeCtrl_SetItemPyData", (PyCFunction) _wrap_TreeCtrl_SetItemPyData, METH_VARARGS | METH_KEYWORDS }, | |
31921 | { (char *)"TreeCtrl_SetItemHasChildren", (PyCFunction) _wrap_TreeCtrl_SetItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31922 | { (char *)"TreeCtrl_SetItemBold", (PyCFunction) _wrap_TreeCtrl_SetItemBold, METH_VARARGS | METH_KEYWORDS }, | |
31923 | { (char *)"TreeCtrl_SetItemTextColour", (PyCFunction) _wrap_TreeCtrl_SetItemTextColour, METH_VARARGS | METH_KEYWORDS }, | |
31924 | { (char *)"TreeCtrl_SetItemBackgroundColour", (PyCFunction) _wrap_TreeCtrl_SetItemBackgroundColour, METH_VARARGS | METH_KEYWORDS }, | |
31925 | { (char *)"TreeCtrl_SetItemFont", (PyCFunction) _wrap_TreeCtrl_SetItemFont, METH_VARARGS | METH_KEYWORDS }, | |
31926 | { (char *)"TreeCtrl_IsVisible", (PyCFunction) _wrap_TreeCtrl_IsVisible, METH_VARARGS | METH_KEYWORDS }, | |
31927 | { (char *)"TreeCtrl_ItemHasChildren", (PyCFunction) _wrap_TreeCtrl_ItemHasChildren, METH_VARARGS | METH_KEYWORDS }, | |
31928 | { (char *)"TreeCtrl_IsExpanded", (PyCFunction) _wrap_TreeCtrl_IsExpanded, METH_VARARGS | METH_KEYWORDS }, | |
31929 | { (char *)"TreeCtrl_IsSelected", (PyCFunction) _wrap_TreeCtrl_IsSelected, METH_VARARGS | METH_KEYWORDS }, | |
31930 | { (char *)"TreeCtrl_IsBold", (PyCFunction) _wrap_TreeCtrl_IsBold, METH_VARARGS | METH_KEYWORDS }, | |
31931 | { (char *)"TreeCtrl_GetChildrenCount", (PyCFunction) _wrap_TreeCtrl_GetChildrenCount, METH_VARARGS | METH_KEYWORDS }, | |
31932 | { (char *)"TreeCtrl_GetRootItem", (PyCFunction) _wrap_TreeCtrl_GetRootItem, METH_VARARGS | METH_KEYWORDS }, | |
31933 | { (char *)"TreeCtrl_GetSelection", (PyCFunction) _wrap_TreeCtrl_GetSelection, METH_VARARGS | METH_KEYWORDS }, | |
31934 | { (char *)"TreeCtrl_GetSelections", (PyCFunction) _wrap_TreeCtrl_GetSelections, METH_VARARGS | METH_KEYWORDS }, | |
31935 | { (char *)"TreeCtrl_GetItemParent", (PyCFunction) _wrap_TreeCtrl_GetItemParent, METH_VARARGS | METH_KEYWORDS }, | |
31936 | { (char *)"TreeCtrl_GetFirstChild", (PyCFunction) _wrap_TreeCtrl_GetFirstChild, METH_VARARGS | METH_KEYWORDS }, | |
31937 | { (char *)"TreeCtrl_GetNextChild", (PyCFunction) _wrap_TreeCtrl_GetNextChild, METH_VARARGS | METH_KEYWORDS }, | |
31938 | { (char *)"TreeCtrl_GetLastChild", (PyCFunction) _wrap_TreeCtrl_GetLastChild, METH_VARARGS | METH_KEYWORDS }, | |
31939 | { (char *)"TreeCtrl_GetNextSibling", (PyCFunction) _wrap_TreeCtrl_GetNextSibling, METH_VARARGS | METH_KEYWORDS }, | |
31940 | { (char *)"TreeCtrl_GetPrevSibling", (PyCFunction) _wrap_TreeCtrl_GetPrevSibling, METH_VARARGS | METH_KEYWORDS }, | |
31941 | { (char *)"TreeCtrl_GetFirstVisibleItem", (PyCFunction) _wrap_TreeCtrl_GetFirstVisibleItem, METH_VARARGS | METH_KEYWORDS }, | |
31942 | { (char *)"TreeCtrl_GetNextVisible", (PyCFunction) _wrap_TreeCtrl_GetNextVisible, METH_VARARGS | METH_KEYWORDS }, | |
31943 | { (char *)"TreeCtrl_GetPrevVisible", (PyCFunction) _wrap_TreeCtrl_GetPrevVisible, METH_VARARGS | METH_KEYWORDS }, | |
31944 | { (char *)"TreeCtrl_AddRoot", (PyCFunction) _wrap_TreeCtrl_AddRoot, METH_VARARGS | METH_KEYWORDS }, | |
31945 | { (char *)"TreeCtrl_PrependItem", (PyCFunction) _wrap_TreeCtrl_PrependItem, METH_VARARGS | METH_KEYWORDS }, | |
31946 | { (char *)"TreeCtrl_InsertItem", (PyCFunction) _wrap_TreeCtrl_InsertItem, METH_VARARGS | METH_KEYWORDS }, | |
31947 | { (char *)"TreeCtrl_InsertItemBefore", (PyCFunction) _wrap_TreeCtrl_InsertItemBefore, METH_VARARGS | METH_KEYWORDS }, | |
31948 | { (char *)"TreeCtrl_AppendItem", (PyCFunction) _wrap_TreeCtrl_AppendItem, METH_VARARGS | METH_KEYWORDS }, | |
31949 | { (char *)"TreeCtrl_Delete", (PyCFunction) _wrap_TreeCtrl_Delete, METH_VARARGS | METH_KEYWORDS }, | |
31950 | { (char *)"TreeCtrl_DeleteChildren", (PyCFunction) _wrap_TreeCtrl_DeleteChildren, METH_VARARGS | METH_KEYWORDS }, | |
31951 | { (char *)"TreeCtrl_DeleteAllItems", (PyCFunction) _wrap_TreeCtrl_DeleteAllItems, METH_VARARGS | METH_KEYWORDS }, | |
31952 | { (char *)"TreeCtrl_Expand", (PyCFunction) _wrap_TreeCtrl_Expand, METH_VARARGS | METH_KEYWORDS }, | |
31953 | { (char *)"TreeCtrl_Collapse", (PyCFunction) _wrap_TreeCtrl_Collapse, METH_VARARGS | METH_KEYWORDS }, | |
31954 | { (char *)"TreeCtrl_CollapseAndReset", (PyCFunction) _wrap_TreeCtrl_CollapseAndReset, METH_VARARGS | METH_KEYWORDS }, | |
31955 | { (char *)"TreeCtrl_Toggle", (PyCFunction) _wrap_TreeCtrl_Toggle, METH_VARARGS | METH_KEYWORDS }, | |
31956 | { (char *)"TreeCtrl_Unselect", (PyCFunction) _wrap_TreeCtrl_Unselect, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31957 | { (char *)"TreeCtrl_UnselectItem", (PyCFunction) _wrap_TreeCtrl_UnselectItem, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31958 | { (char *)"TreeCtrl_UnselectAll", (PyCFunction) _wrap_TreeCtrl_UnselectAll, METH_VARARGS | METH_KEYWORDS }, |
31959 | { (char *)"TreeCtrl_SelectItem", (PyCFunction) _wrap_TreeCtrl_SelectItem, METH_VARARGS | METH_KEYWORDS }, | |
3adfb63b | 31960 | { (char *)"TreeCtrl_ToggleItemSelection", (PyCFunction) _wrap_TreeCtrl_ToggleItemSelection, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31961 | { (char *)"TreeCtrl_EnsureVisible", (PyCFunction) _wrap_TreeCtrl_EnsureVisible, METH_VARARGS | METH_KEYWORDS }, |
31962 | { (char *)"TreeCtrl_ScrollTo", (PyCFunction) _wrap_TreeCtrl_ScrollTo, METH_VARARGS | METH_KEYWORDS }, | |
31963 | { (char *)"TreeCtrl_EditLabel", (PyCFunction) _wrap_TreeCtrl_EditLabel, METH_VARARGS | METH_KEYWORDS }, | |
31964 | { (char *)"TreeCtrl_GetEditControl", (PyCFunction) _wrap_TreeCtrl_GetEditControl, METH_VARARGS | METH_KEYWORDS }, | |
31965 | { (char *)"TreeCtrl_SortChildren", (PyCFunction) _wrap_TreeCtrl_SortChildren, METH_VARARGS | METH_KEYWORDS }, | |
31966 | { (char *)"TreeCtrl_HitTest", (PyCFunction) _wrap_TreeCtrl_HitTest, METH_VARARGS | METH_KEYWORDS }, | |
31967 | { (char *)"TreeCtrl_GetBoundingRect", (PyCFunction) _wrap_TreeCtrl_GetBoundingRect, METH_VARARGS | METH_KEYWORDS }, | |
74a57fcd | 31968 | { (char *)"TreeCtrl_GetClassDefaultAttributes", (PyCFunction) _wrap_TreeCtrl_GetClassDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
31969 | { (char *)"TreeCtrl_swigregister", TreeCtrl_swigregister, METH_VARARGS }, |
31970 | { (char *)"new_GenericDirCtrl", (PyCFunction) _wrap_new_GenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31971 | { (char *)"new_PreGenericDirCtrl", (PyCFunction) _wrap_new_PreGenericDirCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31972 | { (char *)"GenericDirCtrl_Create", (PyCFunction) _wrap_GenericDirCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31973 | { (char *)"GenericDirCtrl_ExpandPath", (PyCFunction) _wrap_GenericDirCtrl_ExpandPath, METH_VARARGS | METH_KEYWORDS }, | |
31974 | { (char *)"GenericDirCtrl_GetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_GetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31975 | { (char *)"GenericDirCtrl_SetDefaultPath", (PyCFunction) _wrap_GenericDirCtrl_SetDefaultPath, METH_VARARGS | METH_KEYWORDS }, | |
31976 | { (char *)"GenericDirCtrl_GetPath", (PyCFunction) _wrap_GenericDirCtrl_GetPath, METH_VARARGS | METH_KEYWORDS }, | |
31977 | { (char *)"GenericDirCtrl_GetFilePath", (PyCFunction) _wrap_GenericDirCtrl_GetFilePath, METH_VARARGS | METH_KEYWORDS }, | |
31978 | { (char *)"GenericDirCtrl_SetPath", (PyCFunction) _wrap_GenericDirCtrl_SetPath, METH_VARARGS | METH_KEYWORDS }, | |
31979 | { (char *)"GenericDirCtrl_ShowHidden", (PyCFunction) _wrap_GenericDirCtrl_ShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31980 | { (char *)"GenericDirCtrl_GetShowHidden", (PyCFunction) _wrap_GenericDirCtrl_GetShowHidden, METH_VARARGS | METH_KEYWORDS }, | |
31981 | { (char *)"GenericDirCtrl_GetFilter", (PyCFunction) _wrap_GenericDirCtrl_GetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31982 | { (char *)"GenericDirCtrl_SetFilter", (PyCFunction) _wrap_GenericDirCtrl_SetFilter, METH_VARARGS | METH_KEYWORDS }, | |
31983 | { (char *)"GenericDirCtrl_GetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_GetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31984 | { (char *)"GenericDirCtrl_SetFilterIndex", (PyCFunction) _wrap_GenericDirCtrl_SetFilterIndex, METH_VARARGS | METH_KEYWORDS }, | |
31985 | { (char *)"GenericDirCtrl_GetRootId", (PyCFunction) _wrap_GenericDirCtrl_GetRootId, METH_VARARGS | METH_KEYWORDS }, | |
31986 | { (char *)"GenericDirCtrl_GetTreeCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetTreeCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31987 | { (char *)"GenericDirCtrl_GetFilterListCtrl", (PyCFunction) _wrap_GenericDirCtrl_GetFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31988 | { (char *)"GenericDirCtrl_FindChild", (PyCFunction) _wrap_GenericDirCtrl_FindChild, METH_VARARGS | METH_KEYWORDS }, | |
31989 | { (char *)"GenericDirCtrl_DoResize", (PyCFunction) _wrap_GenericDirCtrl_DoResize, METH_VARARGS | METH_KEYWORDS }, | |
31990 | { (char *)"GenericDirCtrl_ReCreateTree", (PyCFunction) _wrap_GenericDirCtrl_ReCreateTree, METH_VARARGS | METH_KEYWORDS }, | |
31991 | { (char *)"GenericDirCtrl_swigregister", GenericDirCtrl_swigregister, METH_VARARGS }, | |
31992 | { (char *)"new_DirFilterListCtrl", (PyCFunction) _wrap_new_DirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31993 | { (char *)"new_PreDirFilterListCtrl", (PyCFunction) _wrap_new_PreDirFilterListCtrl, METH_VARARGS | METH_KEYWORDS }, | |
31994 | { (char *)"DirFilterListCtrl_Create", (PyCFunction) _wrap_DirFilterListCtrl_Create, METH_VARARGS | METH_KEYWORDS }, | |
31995 | { (char *)"DirFilterListCtrl_FillFilterList", (PyCFunction) _wrap_DirFilterListCtrl_FillFilterList, METH_VARARGS | METH_KEYWORDS }, | |
31996 | { (char *)"DirFilterListCtrl_swigregister", DirFilterListCtrl_swigregister, METH_VARARGS }, | |
31997 | { (char *)"new_PyControl", (PyCFunction) _wrap_new_PyControl, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa | 31998 | { (char *)"new_PrePyControl", (PyCFunction) _wrap_new_PrePyControl, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 | 31999 | { (char *)"PyControl__setCallbackInfo", (PyCFunction) _wrap_PyControl__setCallbackInfo, METH_VARARGS | METH_KEYWORDS }, |
db3e571a | 32000 | { (char *)"PyControl_SetBestSize", (PyCFunction) _wrap_PyControl_SetBestSize, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
32001 | { (char *)"PyControl_base_DoMoveWindow", (PyCFunction) _wrap_PyControl_base_DoMoveWindow, METH_VARARGS | METH_KEYWORDS }, |
32002 | { (char *)"PyControl_base_DoSetSize", (PyCFunction) _wrap_PyControl_base_DoSetSize, METH_VARARGS | METH_KEYWORDS }, | |
32003 | { (char *)"PyControl_base_DoSetClientSize", (PyCFunction) _wrap_PyControl_base_DoSetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32004 | { (char *)"PyControl_base_DoSetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoSetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32005 | { (char *)"PyControl_base_DoGetSize", (PyCFunction) _wrap_PyControl_base_DoGetSize, METH_VARARGS | METH_KEYWORDS }, | |
32006 | { (char *)"PyControl_base_DoGetClientSize", (PyCFunction) _wrap_PyControl_base_DoGetClientSize, METH_VARARGS | METH_KEYWORDS }, | |
32007 | { (char *)"PyControl_base_DoGetPosition", (PyCFunction) _wrap_PyControl_base_DoGetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32008 | { (char *)"PyControl_base_DoGetVirtualSize", (PyCFunction) _wrap_PyControl_base_DoGetVirtualSize, METH_VARARGS | METH_KEYWORDS }, | |
32009 | { (char *)"PyControl_base_DoGetBestSize", (PyCFunction) _wrap_PyControl_base_DoGetBestSize, METH_VARARGS | METH_KEYWORDS }, | |
32010 | { (char *)"PyControl_base_InitDialog", (PyCFunction) _wrap_PyControl_base_InitDialog, METH_VARARGS | METH_KEYWORDS }, | |
32011 | { (char *)"PyControl_base_TransferDataToWindow", (PyCFunction) _wrap_PyControl_base_TransferDataToWindow, METH_VARARGS | METH_KEYWORDS }, | |
32012 | { (char *)"PyControl_base_TransferDataFromWindow", (PyCFunction) _wrap_PyControl_base_TransferDataFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32013 | { (char *)"PyControl_base_Validate", (PyCFunction) _wrap_PyControl_base_Validate, METH_VARARGS | METH_KEYWORDS }, | |
32014 | { (char *)"PyControl_base_AcceptsFocus", (PyCFunction) _wrap_PyControl_base_AcceptsFocus, METH_VARARGS | METH_KEYWORDS }, | |
32015 | { (char *)"PyControl_base_AcceptsFocusFromKeyboard", (PyCFunction) _wrap_PyControl_base_AcceptsFocusFromKeyboard, METH_VARARGS | METH_KEYWORDS }, | |
32016 | { (char *)"PyControl_base_GetMaxSize", (PyCFunction) _wrap_PyControl_base_GetMaxSize, METH_VARARGS | METH_KEYWORDS }, | |
32017 | { (char *)"PyControl_base_AddChild", (PyCFunction) _wrap_PyControl_base_AddChild, METH_VARARGS | METH_KEYWORDS }, | |
32018 | { (char *)"PyControl_base_RemoveChild", (PyCFunction) _wrap_PyControl_base_RemoveChild, METH_VARARGS | METH_KEYWORDS }, | |
1cb4a8aa RD |
32019 | { (char *)"PyControl_base_ShouldInheritColours", (PyCFunction) _wrap_PyControl_base_ShouldInheritColours, METH_VARARGS | METH_KEYWORDS }, |
32020 | { (char *)"PyControl_base_ApplyParentThemeBackground", (PyCFunction) _wrap_PyControl_base_ApplyParentThemeBackground, METH_VARARGS | METH_KEYWORDS }, | |
db3e571a | 32021 | { (char *)"PyControl_base_GetDefaultAttributes", (PyCFunction) _wrap_PyControl_base_GetDefaultAttributes, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
32022 | { (char *)"PyControl_swigregister", PyControl_swigregister, METH_VARARGS }, |
32023 | { (char *)"new_HelpEvent", (PyCFunction) _wrap_new_HelpEvent, METH_VARARGS | METH_KEYWORDS }, | |
32024 | { (char *)"HelpEvent_GetPosition", (PyCFunction) _wrap_HelpEvent_GetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32025 | { (char *)"HelpEvent_SetPosition", (PyCFunction) _wrap_HelpEvent_SetPosition, METH_VARARGS | METH_KEYWORDS }, | |
32026 | { (char *)"HelpEvent_GetLink", (PyCFunction) _wrap_HelpEvent_GetLink, METH_VARARGS | METH_KEYWORDS }, | |
32027 | { (char *)"HelpEvent_SetLink", (PyCFunction) _wrap_HelpEvent_SetLink, METH_VARARGS | METH_KEYWORDS }, | |
32028 | { (char *)"HelpEvent_GetTarget", (PyCFunction) _wrap_HelpEvent_GetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32029 | { (char *)"HelpEvent_SetTarget", (PyCFunction) _wrap_HelpEvent_SetTarget, METH_VARARGS | METH_KEYWORDS }, | |
32030 | { (char *)"HelpEvent_swigregister", HelpEvent_swigregister, METH_VARARGS }, | |
32031 | { (char *)"new_ContextHelp", (PyCFunction) _wrap_new_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32032 | { (char *)"delete_ContextHelp", (PyCFunction) _wrap_delete_ContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32033 | { (char *)"ContextHelp_BeginContextHelp", (PyCFunction) _wrap_ContextHelp_BeginContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32034 | { (char *)"ContextHelp_EndContextHelp", (PyCFunction) _wrap_ContextHelp_EndContextHelp, METH_VARARGS | METH_KEYWORDS }, | |
32035 | { (char *)"ContextHelp_swigregister", ContextHelp_swigregister, METH_VARARGS }, | |
32036 | { (char *)"new_ContextHelpButton", (PyCFunction) _wrap_new_ContextHelpButton, METH_VARARGS | METH_KEYWORDS }, | |
32037 | { (char *)"ContextHelpButton_swigregister", ContextHelpButton_swigregister, METH_VARARGS }, | |
32038 | { (char *)"HelpProvider_Set", (PyCFunction) _wrap_HelpProvider_Set, METH_VARARGS | METH_KEYWORDS }, | |
32039 | { (char *)"HelpProvider_Get", (PyCFunction) _wrap_HelpProvider_Get, METH_VARARGS | METH_KEYWORDS }, | |
32040 | { (char *)"HelpProvider_GetHelp", (PyCFunction) _wrap_HelpProvider_GetHelp, METH_VARARGS | METH_KEYWORDS }, | |
32041 | { (char *)"HelpProvider_ShowHelp", (PyCFunction) _wrap_HelpProvider_ShowHelp, METH_VARARGS | METH_KEYWORDS }, | |
32042 | { (char *)"HelpProvider_AddHelp", (PyCFunction) _wrap_HelpProvider_AddHelp, METH_VARARGS | METH_KEYWORDS }, | |
32043 | { (char *)"HelpProvider_AddHelpById", (PyCFunction) _wrap_HelpProvider_AddHelpById, METH_VARARGS | METH_KEYWORDS }, | |
15afbcd0 | 32044 | { (char *)"HelpProvider_RemoveHelp", (PyCFunction) _wrap_HelpProvider_RemoveHelp, METH_VARARGS | METH_KEYWORDS }, |
d14a1e28 RD |
32045 | { (char *)"HelpProvider_Destroy", (PyCFunction) _wrap_HelpProvider_Destroy, METH_VARARGS | METH_KEYWORDS }, |
32046 | { (char *)"HelpProvider_swigregister", HelpProvider_swigregister, METH_VARARGS }, | |
32047 | { (char *)"new_SimpleHelpProvider", (PyCFunction) _wrap_new_SimpleHelpProvider, METH_VARARGS | METH_KEYWORDS }, | |
32048 | { (char *)"SimpleHelpProvider_swigregister", SimpleHelpProvider_swigregister, METH_VARARGS }, | |
e811c8ce RD |
32049 | { (char *)"new_DragImage", (PyCFunction) _wrap_new_DragImage, METH_VARARGS | METH_KEYWORDS }, |
32050 | { (char *)"new_DragIcon", (PyCFunction) _wrap_new_DragIcon, METH_VARARGS | METH_KEYWORDS }, | |
32051 | { (char *)"new_DragString", (PyCFunction) _wrap_new_DragString, METH_VARARGS | METH_KEYWORDS }, | |
32052 | { (char *)"new_DragTreeItem", (PyCFunction) _wrap_new_DragTreeItem, METH_VARARGS | METH_KEYWORDS }, | |
32053 | { (char *)"new_DragListItem", (PyCFunction) _wrap_new_DragListItem, METH_VARARGS | METH_KEYWORDS }, | |
32054 | { (char *)"delete_DragImage", (PyCFunction) _wrap_delete_DragImage, METH_VARARGS | METH_KEYWORDS }, | |
32055 | { (char *)"DragImage_SetBackingBitmap", (PyCFunction) _wrap_DragImage_SetBackingBitmap, METH_VARARGS | METH_KEYWORDS }, | |
32056 | { (char *)"DragImage_BeginDrag", (PyCFunction) _wrap_DragImage_BeginDrag, METH_VARARGS | METH_KEYWORDS }, | |
32057 | { (char *)"DragImage_BeginDragBounded", (PyCFunction) _wrap_DragImage_BeginDragBounded, METH_VARARGS | METH_KEYWORDS }, | |
32058 | { (char *)"DragImage_EndDrag", (PyCFunction) _wrap_DragImage_EndDrag, METH_VARARGS | METH_KEYWORDS }, | |
32059 | { (char *)"DragImage_Move", (PyCFunction) _wrap_DragImage_Move, METH_VARARGS | METH_KEYWORDS }, | |
32060 | { (char *)"DragImage_Show", (PyCFunction) _wrap_DragImage_Show, METH_VARARGS | METH_KEYWORDS }, | |
32061 | { (char *)"DragImage_Hide", (PyCFunction) _wrap_DragImage_Hide, METH_VARARGS | METH_KEYWORDS }, | |
32062 | { (char *)"DragImage_GetImageRect", (PyCFunction) _wrap_DragImage_GetImageRect, METH_VARARGS | METH_KEYWORDS }, | |
32063 | { (char *)"DragImage_DoDrawImage", (PyCFunction) _wrap_DragImage_DoDrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32064 | { (char *)"DragImage_UpdateBackingFromWindow", (PyCFunction) _wrap_DragImage_UpdateBackingFromWindow, METH_VARARGS | METH_KEYWORDS }, | |
32065 | { (char *)"DragImage_RedrawImage", (PyCFunction) _wrap_DragImage_RedrawImage, METH_VARARGS | METH_KEYWORDS }, | |
32066 | { (char *)"DragImage_swigregister", DragImage_swigregister, METH_VARARGS }, | |
d14a1e28 RD |
32067 | { NULL, NULL } |
32068 | }; | |
32069 | ||
32070 | ||
32071 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (BEGIN) -------- */ | |
32072 | ||
32073 | static void *_p_wxNotebookEventTo_p_wxBookCtrlEvent(void *x) { | |
32074 | return (void *)((wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32075 | } | |
32076 | static void *_p_wxListbookEventTo_p_wxBookCtrlEvent(void *x) { | |
32077 | return (void *)((wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32078 | } | |
32079 | static void *_p_wxBoxSizerTo_p_wxSizer(void *x) { | |
32080 | return (void *)((wxSizer *) ((wxBoxSizer *) x)); | |
32081 | } | |
32082 | static void *_p_wxStaticBoxSizerTo_p_wxSizer(void *x) { | |
32083 | return (void *)((wxSizer *) (wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32084 | } | |
32085 | static void *_p_wxGridBagSizerTo_p_wxSizer(void *x) { | |
32086 | return (void *)((wxSizer *) (wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32087 | } | |
32088 | static void *_p_wxGridSizerTo_p_wxSizer(void *x) { | |
32089 | return (void *)((wxSizer *) ((wxGridSizer *) x)); | |
32090 | } | |
32091 | static void *_p_wxFlexGridSizerTo_p_wxSizer(void *x) { | |
32092 | return (void *)((wxSizer *) (wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32093 | } | |
32094 | static void *_p_wxNotebookSizerTo_p_wxSizer(void *x) { | |
32095 | return (void *)((wxSizer *) ((wxNotebookSizer *) x)); | |
32096 | } | |
32097 | static void *_p_wxPySizerTo_p_wxSizer(void *x) { | |
32098 | return (void *)((wxSizer *) ((wxPySizer *) x)); | |
32099 | } | |
32100 | static void *_p_wxBookCtrlSizerTo_p_wxSizer(void *x) { | |
32101 | return (void *)((wxSizer *) ((wxBookCtrlSizer *) x)); | |
32102 | } | |
32103 | static void *_p_wxContextMenuEventTo_p_wxEvent(void *x) { | |
32104 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32105 | } | |
32106 | static void *_p_wxMenuEventTo_p_wxEvent(void *x) { | |
32107 | return (void *)((wxEvent *) ((wxMenuEvent *) x)); | |
32108 | } | |
32109 | static void *_p_wxCloseEventTo_p_wxEvent(void *x) { | |
32110 | return (void *)((wxEvent *) ((wxCloseEvent *) x)); | |
32111 | } | |
32112 | static void *_p_wxMouseEventTo_p_wxEvent(void *x) { | |
32113 | return (void *)((wxEvent *) ((wxMouseEvent *) x)); | |
32114 | } | |
32115 | static void *_p_wxEraseEventTo_p_wxEvent(void *x) { | |
32116 | return (void *)((wxEvent *) ((wxEraseEvent *) x)); | |
32117 | } | |
32118 | static void *_p_wxTreeEventTo_p_wxEvent(void *x) { | |
32119 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32120 | } | |
32121 | static void *_p_wxSetCursorEventTo_p_wxEvent(void *x) { | |
32122 | return (void *)((wxEvent *) ((wxSetCursorEvent *) x)); | |
32123 | } | |
32124 | static void *_p_wxInitDialogEventTo_p_wxEvent(void *x) { | |
32125 | return (void *)((wxEvent *) ((wxInitDialogEvent *) x)); | |
32126 | } | |
32127 | static void *_p_wxScrollEventTo_p_wxEvent(void *x) { | |
32128 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxScrollEvent *) x)); | |
32129 | } | |
32130 | static void *_p_wxTextUrlEventTo_p_wxEvent(void *x) { | |
32131 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32132 | } | |
32133 | static void *_p_wxBookCtrlEventTo_p_wxEvent(void *x) { | |
32134 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32135 | } | |
32136 | static void *_p_wxPyEventTo_p_wxEvent(void *x) { | |
32137 | return (void *)((wxEvent *) ((wxPyEvent *) x)); | |
32138 | } | |
32139 | static void *_p_wxNotifyEventTo_p_wxEvent(void *x) { | |
32140 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32141 | } | |
32142 | static void *_p_wxListEventTo_p_wxEvent(void *x) { | |
32143 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32144 | } | |
32145 | static void *_p_wxNotebookEventTo_p_wxEvent(void *x) { | |
32146 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32147 | } | |
32148 | static void *_p_wxListbookEventTo_p_wxEvent(void *x) { | |
32149 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32150 | } | |
32151 | static void *_p_wxHelpEventTo_p_wxEvent(void *x) { | |
32152 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxHelpEvent *) x)); | |
32153 | } | |
32154 | static void *_p_wxIdleEventTo_p_wxEvent(void *x) { | |
32155 | return (void *)((wxEvent *) ((wxIdleEvent *) x)); | |
32156 | } | |
32157 | static void *_p_wxWindowCreateEventTo_p_wxEvent(void *x) { | |
32158 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32159 | } | |
32160 | static void *_p_wxQueryNewPaletteEventTo_p_wxEvent(void *x) { | |
32161 | return (void *)((wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32162 | } | |
32163 | static void *_p_wxMaximizeEventTo_p_wxEvent(void *x) { | |
32164 | return (void *)((wxEvent *) ((wxMaximizeEvent *) x)); | |
32165 | } | |
32166 | static void *_p_wxIconizeEventTo_p_wxEvent(void *x) { | |
32167 | return (void *)((wxEvent *) ((wxIconizeEvent *) x)); | |
32168 | } | |
32169 | static void *_p_wxActivateEventTo_p_wxEvent(void *x) { | |
32170 | return (void *)((wxEvent *) ((wxActivateEvent *) x)); | |
32171 | } | |
32172 | static void *_p_wxSizeEventTo_p_wxEvent(void *x) { | |
32173 | return (void *)((wxEvent *) ((wxSizeEvent *) x)); | |
32174 | } | |
32175 | static void *_p_wxMoveEventTo_p_wxEvent(void *x) { | |
32176 | return (void *)((wxEvent *) ((wxMoveEvent *) x)); | |
32177 | } | |
32178 | static void *_p_wxPaintEventTo_p_wxEvent(void *x) { | |
32179 | return (void *)((wxEvent *) ((wxPaintEvent *) x)); | |
32180 | } | |
32181 | static void *_p_wxNcPaintEventTo_p_wxEvent(void *x) { | |
32182 | return (void *)((wxEvent *) ((wxNcPaintEvent *) x)); | |
32183 | } | |
32184 | static void *_p_wxUpdateUIEventTo_p_wxEvent(void *x) { | |
32185 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32186 | } | |
32187 | static void *_p_wxPaletteChangedEventTo_p_wxEvent(void *x) { | |
32188 | return (void *)((wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32189 | } | |
32190 | static void *_p_wxDisplayChangedEventTo_p_wxEvent(void *x) { | |
32191 | return (void *)((wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32192 | } | |
32193 | static void *_p_wxMouseCaptureChangedEventTo_p_wxEvent(void *x) { | |
32194 | return (void *)((wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32195 | } | |
32196 | static void *_p_wxSysColourChangedEventTo_p_wxEvent(void *x) { | |
32197 | return (void *)((wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32198 | } | |
32199 | static void *_p_wxDropFilesEventTo_p_wxEvent(void *x) { | |
32200 | return (void *)((wxEvent *) ((wxDropFilesEvent *) x)); | |
32201 | } | |
32202 | static void *_p_wxFocusEventTo_p_wxEvent(void *x) { | |
32203 | return (void *)((wxEvent *) ((wxFocusEvent *) x)); | |
32204 | } | |
32205 | static void *_p_wxChildFocusEventTo_p_wxEvent(void *x) { | |
32206 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32207 | } | |
32208 | static void *_p_wxShowEventTo_p_wxEvent(void *x) { | |
32209 | return (void *)((wxEvent *) ((wxShowEvent *) x)); | |
32210 | } | |
32211 | static void *_p_wxCommandEventTo_p_wxEvent(void *x) { | |
32212 | return (void *)((wxEvent *) ((wxCommandEvent *) x)); | |
32213 | } | |
32214 | static void *_p_wxPyCommandEventTo_p_wxEvent(void *x) { | |
32215 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32216 | } | |
32217 | static void *_p_wxWindowDestroyEventTo_p_wxEvent(void *x) { | |
32218 | return (void *)((wxEvent *) (wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32219 | } | |
32220 | static void *_p_wxNavigationKeyEventTo_p_wxEvent(void *x) { | |
32221 | return (void *)((wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32222 | } | |
32223 | static void *_p_wxKeyEventTo_p_wxEvent(void *x) { | |
32224 | return (void *)((wxEvent *) ((wxKeyEvent *) x)); | |
32225 | } | |
32226 | static void *_p_wxScrollWinEventTo_p_wxEvent(void *x) { | |
32227 | return (void *)((wxEvent *) ((wxScrollWinEvent *) x)); | |
32228 | } | |
d1e20054 RD |
32229 | static void *_p_wxSpinEventTo_p_wxEvent(void *x) { |
32230 | return (void *)((wxEvent *) (wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32231 | } | |
d14a1e28 RD |
32232 | static void *_p_wxComboBoxTo_p_wxItemContainer(void *x) { |
32233 | return (void *)((wxItemContainer *) ((wxComboBox *) x)); | |
32234 | } | |
32235 | static void *_p_wxDirFilterListCtrlTo_p_wxItemContainer(void *x) { | |
32236 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32237 | } | |
32238 | static void *_p_wxChoiceTo_p_wxItemContainer(void *x) { | |
32239 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxChoice *) x)); | |
32240 | } | |
32241 | static void *_p_wxControlWithItemsTo_p_wxItemContainer(void *x) { | |
32242 | return (void *)((wxItemContainer *) ((wxControlWithItems *) x)); | |
32243 | } | |
32244 | static void *_p_wxListBoxTo_p_wxItemContainer(void *x) { | |
32245 | return (void *)((wxItemContainer *) (wxControlWithItems *) ((wxListBox *) x)); | |
32246 | } | |
32247 | static void *_p_wxCheckListBoxTo_p_wxItemContainer(void *x) { | |
32248 | return (void *)((wxItemContainer *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32249 | } | |
32250 | static void *_p_wxListViewTo_p_wxPyListCtrl(void *x) { | |
32251 | return (void *)((wxPyListCtrl *) ((wxListView *) x)); | |
32252 | } | |
32253 | static void *_p_wxCheckListBoxTo_p_wxControl(void *x) { | |
32254 | return (void *)((wxControl *) (wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32255 | } | |
32256 | static void *_p_wxListBoxTo_p_wxControl(void *x) { | |
32257 | return (void *)((wxControl *) (wxControlWithItems *) ((wxListBox *) x)); | |
32258 | } | |
32259 | static void *_p_wxChoiceTo_p_wxControl(void *x) { | |
32260 | return (void *)((wxControl *) (wxControlWithItems *) ((wxChoice *) x)); | |
32261 | } | |
32262 | static void *_p_wxToolBarTo_p_wxControl(void *x) { | |
32263 | return (void *)((wxControl *) (wxToolBarBase *) ((wxToolBar *) x)); | |
32264 | } | |
32265 | static void *_p_wxStaticBitmapTo_p_wxControl(void *x) { | |
32266 | return (void *)((wxControl *) ((wxStaticBitmap *) x)); | |
32267 | } | |
32268 | static void *_p_wxComboBoxTo_p_wxControl(void *x) { | |
32269 | return (void *)((wxControl *) ((wxComboBox *) x)); | |
32270 | } | |
32271 | static void *_p_wxSpinCtrlTo_p_wxControl(void *x) { | |
32272 | return (void *)((wxControl *) ((wxSpinCtrl *) x)); | |
32273 | } | |
32274 | static void *_p_wxStaticBoxTo_p_wxControl(void *x) { | |
32275 | return (void *)((wxControl *) ((wxStaticBox *) x)); | |
32276 | } | |
32277 | static void *_p_wxPyListCtrlTo_p_wxControl(void *x) { | |
32278 | return (void *)((wxControl *) ((wxPyListCtrl *) x)); | |
32279 | } | |
32280 | static void *_p_wxPyTreeCtrlTo_p_wxControl(void *x) { | |
32281 | return (void *)((wxControl *) ((wxPyTreeCtrl *) x)); | |
32282 | } | |
32283 | static void *_p_wxDirFilterListCtrlTo_p_wxControl(void *x) { | |
32284 | return (void *)((wxControl *) (wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32285 | } | |
32286 | static void *_p_wxScrollBarTo_p_wxControl(void *x) { | |
32287 | return (void *)((wxControl *) ((wxScrollBar *) x)); | |
32288 | } | |
32289 | static void *_p_wxBookCtrlTo_p_wxControl(void *x) { | |
32290 | return (void *)((wxControl *) ((wxBookCtrl *) x)); | |
32291 | } | |
32292 | static void *_p_wxRadioButtonTo_p_wxControl(void *x) { | |
32293 | return (void *)((wxControl *) ((wxRadioButton *) x)); | |
32294 | } | |
32295 | static void *_p_wxToggleButtonTo_p_wxControl(void *x) { | |
32296 | return (void *)((wxControl *) ((wxToggleButton *) x)); | |
32297 | } | |
32298 | static void *_p_wxGaugeTo_p_wxControl(void *x) { | |
32299 | return (void *)((wxControl *) ((wxGauge *) x)); | |
32300 | } | |
32301 | static void *_p_wxToolBarBaseTo_p_wxControl(void *x) { | |
32302 | return (void *)((wxControl *) ((wxToolBarBase *) x)); | |
32303 | } | |
32304 | static void *_p_wxBitmapButtonTo_p_wxControl(void *x) { | |
32305 | return (void *)((wxControl *) (wxButton *) ((wxBitmapButton *) x)); | |
32306 | } | |
32307 | static void *_p_wxButtonTo_p_wxControl(void *x) { | |
32308 | return (void *)((wxControl *) ((wxButton *) x)); | |
32309 | } | |
32310 | static void *_p_wxSpinButtonTo_p_wxControl(void *x) { | |
32311 | return (void *)((wxControl *) ((wxSpinButton *) x)); | |
32312 | } | |
32313 | static void *_p_wxContextHelpButtonTo_p_wxControl(void *x) { | |
32314 | return (void *)((wxControl *) (wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32315 | } | |
32316 | static void *_p_wxControlWithItemsTo_p_wxControl(void *x) { | |
32317 | return (void *)((wxControl *) ((wxControlWithItems *) x)); | |
32318 | } | |
32319 | static void *_p_wxRadioBoxTo_p_wxControl(void *x) { | |
32320 | return (void *)((wxControl *) ((wxRadioBox *) x)); | |
32321 | } | |
32322 | static void *_p_wxNotebookTo_p_wxControl(void *x) { | |
32323 | return (void *)((wxControl *) (wxBookCtrl *) ((wxNotebook *) x)); | |
32324 | } | |
32325 | static void *_p_wxListbookTo_p_wxControl(void *x) { | |
32326 | return (void *)((wxControl *) (wxBookCtrl *) ((wxListbook *) x)); | |
32327 | } | |
32328 | static void *_p_wxCheckBoxTo_p_wxControl(void *x) { | |
32329 | return (void *)((wxControl *) ((wxCheckBox *) x)); | |
32330 | } | |
32331 | static void *_p_wxTextCtrlTo_p_wxControl(void *x) { | |
32332 | return (void *)((wxControl *) ((wxTextCtrl *) x)); | |
32333 | } | |
32334 | static void *_p_wxListViewTo_p_wxControl(void *x) { | |
32335 | return (void *)((wxControl *) (wxPyListCtrl *) ((wxListView *) x)); | |
32336 | } | |
32337 | static void *_p_wxSliderTo_p_wxControl(void *x) { | |
32338 | return (void *)((wxControl *) ((wxSlider *) x)); | |
32339 | } | |
32340 | static void *_p_wxGenericDirCtrlTo_p_wxControl(void *x) { | |
32341 | return (void *)((wxControl *) ((wxGenericDirCtrl *) x)); | |
32342 | } | |
32343 | static void *_p_wxPyControlTo_p_wxControl(void *x) { | |
32344 | return (void *)((wxControl *) ((wxPyControl *) x)); | |
32345 | } | |
32346 | static void *_p_wxStaticLineTo_p_wxControl(void *x) { | |
32347 | return (void *)((wxControl *) ((wxStaticLine *) x)); | |
32348 | } | |
32349 | static void *_p_wxStaticTextTo_p_wxControl(void *x) { | |
32350 | return (void *)((wxControl *) ((wxStaticText *) x)); | |
32351 | } | |
32352 | static void *_p_wxToolBarTo_p_wxToolBarBase(void *x) { | |
32353 | return (void *)((wxToolBarBase *) ((wxToolBar *) x)); | |
32354 | } | |
32355 | static void *_p_wxDirFilterListCtrlTo_p_wxChoice(void *x) { | |
32356 | return (void *)((wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32357 | } | |
32358 | static void *_p_wxTreeEventTo_p_wxNotifyEvent(void *x) { | |
32359 | return (void *)((wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32360 | } | |
32361 | static void *_p_wxBookCtrlEventTo_p_wxNotifyEvent(void *x) { | |
32362 | return (void *)((wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32363 | } | |
32364 | static void *_p_wxListEventTo_p_wxNotifyEvent(void *x) { | |
32365 | return (void *)((wxNotifyEvent *) ((wxListEvent *) x)); | |
32366 | } | |
d1e20054 RD |
32367 | static void *_p_wxSpinEventTo_p_wxNotifyEvent(void *x) { |
32368 | return (void *)((wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32369 | } | |
d14a1e28 RD |
32370 | static void *_p_wxNotebookEventTo_p_wxNotifyEvent(void *x) { |
32371 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32372 | } | |
32373 | static void *_p_wxListbookEventTo_p_wxNotifyEvent(void *x) { | |
32374 | return (void *)((wxNotifyEvent *) (wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32375 | } | |
32376 | static void *_p_wxBookCtrlTo_p_wxEvtHandler(void *x) { | |
32377 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32378 | } | |
32379 | static void *_p_wxMenuBarTo_p_wxEvtHandler(void *x) { | |
32380 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxMenuBar *) x)); | |
32381 | } | |
32382 | static void *_p_wxValidatorTo_p_wxEvtHandler(void *x) { | |
32383 | return (void *)((wxEvtHandler *) ((wxValidator *) x)); | |
32384 | } | |
32385 | static void *_p_wxPyValidatorTo_p_wxEvtHandler(void *x) { | |
32386 | return (void *)((wxEvtHandler *) (wxValidator *) ((wxPyValidator *) x)); | |
32387 | } | |
32388 | static void *_p_wxToolBarTo_p_wxEvtHandler(void *x) { | |
32389 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32390 | } | |
32391 | static void *_p_wxMenuTo_p_wxEvtHandler(void *x) { | |
32392 | return (void *)((wxEvtHandler *) ((wxMenu *) x)); | |
32393 | } | |
32394 | static void *_p_wxToggleButtonTo_p_wxEvtHandler(void *x) { | |
32395 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32396 | } | |
32397 | static void *_p_wxRadioButtonTo_p_wxEvtHandler(void *x) { | |
32398 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32399 | } | |
32400 | static void *_p_wxWindowTo_p_wxEvtHandler(void *x) { | |
32401 | return (void *)((wxEvtHandler *) ((wxWindow *) x)); | |
32402 | } | |
32403 | static void *_p_wxControlTo_p_wxEvtHandler(void *x) { | |
32404 | return (void *)((wxEvtHandler *) (wxWindow *) ((wxControl *) x)); | |
32405 | } | |
32406 | static void *_p_wxToolBarBaseTo_p_wxEvtHandler(void *x) { | |
32407 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32408 | } | |
32409 | static void *_p_wxPyListCtrlTo_p_wxEvtHandler(void *x) { | |
32410 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32411 | } | |
32412 | static void *_p_wxComboBoxTo_p_wxEvtHandler(void *x) { | |
32413 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32414 | } | |
32415 | static void *_p_wxDirFilterListCtrlTo_p_wxEvtHandler(void *x) { | |
32416 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32417 | } | |
32418 | static void *_p_wxPyControlTo_p_wxEvtHandler(void *x) { | |
32419 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32420 | } | |
32421 | static void *_p_wxPyAppTo_p_wxEvtHandler(void *x) { | |
32422 | return (void *)((wxEvtHandler *) ((wxPyApp *) x)); | |
32423 | } | |
32424 | static void *_p_wxGenericDirCtrlTo_p_wxEvtHandler(void *x) { | |
32425 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32426 | } | |
32427 | static void *_p_wxScrollBarTo_p_wxEvtHandler(void *x) { | |
32428 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32429 | } | |
32430 | static void *_p_wxControlWithItemsTo_p_wxEvtHandler(void *x) { | |
32431 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32432 | } | |
32433 | static void *_p_wxGaugeTo_p_wxEvtHandler(void *x) { | |
32434 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32435 | } | |
32436 | static void *_p_wxStaticLineTo_p_wxEvtHandler(void *x) { | |
32437 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32438 | } | |
32439 | static void *_p_wxListbookTo_p_wxEvtHandler(void *x) { | |
32440 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32441 | } | |
32442 | static void *_p_wxPyTreeCtrlTo_p_wxEvtHandler(void *x) { | |
32443 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32444 | } | |
32445 | static void *_p_wxCheckBoxTo_p_wxEvtHandler(void *x) { | |
32446 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32447 | } | |
32448 | static void *_p_wxRadioBoxTo_p_wxEvtHandler(void *x) { | |
32449 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32450 | } | |
32451 | static void *_p_wxCheckListBoxTo_p_wxEvtHandler(void *x) { | |
32452 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32453 | } | |
32454 | static void *_p_wxListBoxTo_p_wxEvtHandler(void *x) { | |
32455 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32456 | } | |
32457 | static void *_p_wxChoiceTo_p_wxEvtHandler(void *x) { | |
32458 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32459 | } | |
32460 | static void *_p_wxNotebookTo_p_wxEvtHandler(void *x) { | |
32461 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32462 | } | |
32463 | static void *_p_wxStaticBitmapTo_p_wxEvtHandler(void *x) { | |
32464 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32465 | } | |
32466 | static void *_p_wxListViewTo_p_wxEvtHandler(void *x) { | |
32467 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32468 | } | |
32469 | static void *_p_wxSpinCtrlTo_p_wxEvtHandler(void *x) { | |
32470 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32471 | } | |
32472 | static void *_p_wxStaticTextTo_p_wxEvtHandler(void *x) { | |
32473 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32474 | } | |
32475 | static void *_p_wxStaticBoxTo_p_wxEvtHandler(void *x) { | |
32476 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32477 | } | |
32478 | static void *_p_wxSliderTo_p_wxEvtHandler(void *x) { | |
32479 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32480 | } | |
32481 | static void *_p_wxSpinButtonTo_p_wxEvtHandler(void *x) { | |
32482 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32483 | } | |
32484 | static void *_p_wxButtonTo_p_wxEvtHandler(void *x) { | |
32485 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxButton *) x)); | |
32486 | } | |
32487 | static void *_p_wxBitmapButtonTo_p_wxEvtHandler(void *x) { | |
32488 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32489 | } | |
32490 | static void *_p_wxContextHelpButtonTo_p_wxEvtHandler(void *x) { | |
32491 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32492 | } | |
32493 | static void *_p_wxTextCtrlTo_p_wxEvtHandler(void *x) { | |
32494 | return (void *)((wxEvtHandler *) (wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32495 | } | |
32496 | static void *_p_wxCheckListBoxTo_p_wxListBox(void *x) { | |
32497 | return (void *)((wxListBox *) ((wxCheckListBox *) x)); | |
32498 | } | |
32499 | static void *_p_wxListbookTo_p_wxBookCtrl(void *x) { | |
32500 | return (void *)((wxBookCtrl *) ((wxListbook *) x)); | |
32501 | } | |
32502 | static void *_p_wxNotebookTo_p_wxBookCtrl(void *x) { | |
32503 | return (void *)((wxBookCtrl *) ((wxNotebook *) x)); | |
32504 | } | |
32505 | static void *_p_wxBitmapButtonTo_p_wxButton(void *x) { | |
32506 | return (void *)((wxButton *) ((wxBitmapButton *) x)); | |
32507 | } | |
32508 | static void *_p_wxContextHelpButtonTo_p_wxButton(void *x) { | |
32509 | return (void *)((wxButton *) (wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32510 | } | |
32511 | static void *_p_wxContextHelpButtonTo_p_wxBitmapButton(void *x) { | |
32512 | return (void *)((wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32513 | } | |
32514 | static void *_p_wxSimpleHelpProviderTo_p_wxHelpProvider(void *x) { | |
32515 | return (void *)((wxHelpProvider *) ((wxSimpleHelpProvider *) x)); | |
32516 | } | |
32517 | static void *_p_wxLayoutConstraintsTo_p_wxObject(void *x) { | |
32518 | return (void *)((wxObject *) ((wxLayoutConstraints *) x)); | |
32519 | } | |
32520 | static void *_p_wxGBSizerItemTo_p_wxObject(void *x) { | |
32521 | return (void *)((wxObject *) (wxSizerItem *) ((wxGBSizerItem *) x)); | |
32522 | } | |
32523 | static void *_p_wxSizerItemTo_p_wxObject(void *x) { | |
32524 | return (void *)((wxObject *) ((wxSizerItem *) x)); | |
32525 | } | |
32526 | static void *_p_wxScrollEventTo_p_wxObject(void *x) { | |
32527 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxScrollEvent *) x)); | |
32528 | } | |
32529 | static void *_p_wxIndividualLayoutConstraintTo_p_wxObject(void *x) { | |
32530 | return (void *)((wxObject *) ((wxIndividualLayoutConstraint *) x)); | |
32531 | } | |
32532 | static void *_p_wxTextUrlEventTo_p_wxObject(void *x) { | |
32533 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32534 | } | |
32535 | static void *_p_wxBookCtrlEventTo_p_wxObject(void *x) { | |
32536 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32537 | } | |
32538 | static void *_p_wxStaticBoxSizerTo_p_wxObject(void *x) { | |
32539 | return (void *)((wxObject *) (wxSizer *)(wxBoxSizer *) ((wxStaticBoxSizer *) x)); | |
32540 | } | |
32541 | static void *_p_wxBoxSizerTo_p_wxObject(void *x) { | |
32542 | return (void *)((wxObject *) (wxSizer *) ((wxBoxSizer *) x)); | |
32543 | } | |
32544 | static void *_p_wxSizerTo_p_wxObject(void *x) { | |
32545 | return (void *)((wxObject *) ((wxSizer *) x)); | |
32546 | } | |
32547 | static void *_p_wxGridBagSizerTo_p_wxObject(void *x) { | |
32548 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *)(wxFlexGridSizer *) ((wxGridBagSizer *) x)); | |
32549 | } | |
32550 | static void *_p_wxCheckBoxTo_p_wxObject(void *x) { | |
32551 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxCheckBox *) x)); | |
32552 | } | |
32553 | static void *_p_wxPyTreeCtrlTo_p_wxObject(void *x) { | |
32554 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyTreeCtrl *) x)); | |
32555 | } | |
32556 | static void *_p_wxUpdateUIEventTo_p_wxObject(void *x) { | |
32557 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
32558 | } | |
32559 | static void *_p_wxEventTo_p_wxObject(void *x) { | |
32560 | return (void *)((wxObject *) ((wxEvent *) x)); | |
32561 | } | |
32562 | static void *_p_wxFlexGridSizerTo_p_wxObject(void *x) { | |
32563 | return (void *)((wxObject *) (wxSizer *)(wxGridSizer *) ((wxFlexGridSizer *) x)); | |
32564 | } | |
32565 | static void *_p_wxGridSizerTo_p_wxObject(void *x) { | |
32566 | return (void *)((wxObject *) (wxSizer *) ((wxGridSizer *) x)); | |
32567 | } | |
32568 | static void *_p_wxInitDialogEventTo_p_wxObject(void *x) { | |
32569 | return (void *)((wxObject *) (wxEvent *) ((wxInitDialogEvent *) x)); | |
32570 | } | |
32571 | static void *_p_wxGenericDirCtrlTo_p_wxObject(void *x) { | |
32572 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGenericDirCtrl *) x)); | |
32573 | } | |
32574 | static void *_p_wxPyListCtrlTo_p_wxObject(void *x) { | |
32575 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyListCtrl *) x)); | |
32576 | } | |
32577 | static void *_p_wxDirFilterListCtrlTo_p_wxObject(void *x) { | |
32578 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32579 | } | |
32580 | static void *_p_wxPaintEventTo_p_wxObject(void *x) { | |
32581 | return (void *)((wxObject *) (wxEvent *) ((wxPaintEvent *) x)); | |
32582 | } | |
32583 | static void *_p_wxNcPaintEventTo_p_wxObject(void *x) { | |
32584 | return (void *)((wxObject *) (wxEvent *) ((wxNcPaintEvent *) x)); | |
32585 | } | |
32586 | static void *_p_wxPaletteChangedEventTo_p_wxObject(void *x) { | |
32587 | return (void *)((wxObject *) (wxEvent *) ((wxPaletteChangedEvent *) x)); | |
32588 | } | |
32589 | static void *_p_wxDisplayChangedEventTo_p_wxObject(void *x) { | |
32590 | return (void *)((wxObject *) (wxEvent *) ((wxDisplayChangedEvent *) x)); | |
32591 | } | |
32592 | static void *_p_wxMouseCaptureChangedEventTo_p_wxObject(void *x) { | |
32593 | return (void *)((wxObject *) (wxEvent *) ((wxMouseCaptureChangedEvent *) x)); | |
32594 | } | |
32595 | static void *_p_wxSysColourChangedEventTo_p_wxObject(void *x) { | |
32596 | return (void *)((wxObject *) (wxEvent *) ((wxSysColourChangedEvent *) x)); | |
32597 | } | |
32598 | static void *_p_wxStaticLineTo_p_wxObject(void *x) { | |
32599 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticLine *) x)); | |
32600 | } | |
32601 | static void *_p_wxControlTo_p_wxObject(void *x) { | |
32602 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxControl *) x)); | |
32603 | } | |
32604 | static void *_p_wxPyControlTo_p_wxObject(void *x) { | |
32605 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxPyControl *) x)); | |
32606 | } | |
32607 | static void *_p_wxGaugeTo_p_wxObject(void *x) { | |
32608 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxGauge *) x)); | |
32609 | } | |
32610 | static void *_p_wxRadioButtonTo_p_wxObject(void *x) { | |
32611 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioButton *) x)); | |
32612 | } | |
32613 | static void *_p_wxToggleButtonTo_p_wxObject(void *x) { | |
32614 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToggleButton *) x)); | |
32615 | } | |
32616 | static void *_p_wxToolBarBaseTo_p_wxObject(void *x) { | |
32617 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxToolBarBase *) x)); | |
32618 | } | |
32619 | static void *_p_wxSetCursorEventTo_p_wxObject(void *x) { | |
32620 | return (void *)((wxObject *) (wxEvent *) ((wxSetCursorEvent *) x)); | |
32621 | } | |
32622 | static void *_p_wxChoiceTo_p_wxObject(void *x) { | |
32623 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32624 | } | |
32625 | static void *_p_wxFSFileTo_p_wxObject(void *x) { | |
32626 | return (void *)((wxObject *) ((wxFSFile *) x)); | |
32627 | } | |
32628 | static void *_p_wxPySizerTo_p_wxObject(void *x) { | |
32629 | return (void *)((wxObject *) (wxSizer *) ((wxPySizer *) x)); | |
32630 | } | |
32631 | static void *_p_wxListViewTo_p_wxObject(void *x) { | |
32632 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32633 | } | |
32634 | static void *_p_wxTextCtrlTo_p_wxObject(void *x) { | |
32635 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxTextCtrl *) x)); | |
32636 | } | |
32637 | static void *_p_wxNotebookTo_p_wxObject(void *x) { | |
32638 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32639 | } | |
32640 | static void *_p_wxPyEventTo_p_wxObject(void *x) { | |
32641 | return (void *)((wxObject *) (wxEvent *) ((wxPyEvent *) x)); | |
32642 | } | |
32643 | static void *_p_wxNotifyEventTo_p_wxObject(void *x) { | |
32644 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxNotifyEvent *) x)); | |
32645 | } | |
32646 | static void *_p_wxListbookTo_p_wxObject(void *x) { | |
32647 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32648 | } | |
32649 | static void *_p_wxShowEventTo_p_wxObject(void *x) { | |
32650 | return (void *)((wxObject *) (wxEvent *) ((wxShowEvent *) x)); | |
32651 | } | |
32652 | static void *_p_wxStaticBitmapTo_p_wxObject(void *x) { | |
32653 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBitmap *) x)); | |
32654 | } | |
32655 | static void *_p_wxSliderTo_p_wxObject(void *x) { | |
32656 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSlider *) x)); | |
32657 | } | |
32658 | static void *_p_wxMenuItemTo_p_wxObject(void *x) { | |
32659 | return (void *)((wxObject *) ((wxMenuItem *) x)); | |
32660 | } | |
32661 | static void *_p_wxIdleEventTo_p_wxObject(void *x) { | |
32662 | return (void *)((wxObject *) (wxEvent *) ((wxIdleEvent *) x)); | |
32663 | } | |
32664 | static void *_p_wxWindowCreateEventTo_p_wxObject(void *x) { | |
32665 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
32666 | } | |
32667 | static void *_p_wxQueryNewPaletteEventTo_p_wxObject(void *x) { | |
32668 | return (void *)((wxObject *) (wxEvent *) ((wxQueryNewPaletteEvent *) x)); | |
32669 | } | |
32670 | static void *_p_wxMaximizeEventTo_p_wxObject(void *x) { | |
32671 | return (void *)((wxObject *) (wxEvent *) ((wxMaximizeEvent *) x)); | |
32672 | } | |
32673 | static void *_p_wxIconizeEventTo_p_wxObject(void *x) { | |
32674 | return (void *)((wxObject *) (wxEvent *) ((wxIconizeEvent *) x)); | |
32675 | } | |
32676 | static void *_p_wxSizeEventTo_p_wxObject(void *x) { | |
32677 | return (void *)((wxObject *) (wxEvent *) ((wxSizeEvent *) x)); | |
32678 | } | |
32679 | static void *_p_wxMoveEventTo_p_wxObject(void *x) { | |
32680 | return (void *)((wxObject *) (wxEvent *) ((wxMoveEvent *) x)); | |
32681 | } | |
32682 | static void *_p_wxActivateEventTo_p_wxObject(void *x) { | |
32683 | return (void *)((wxObject *) (wxEvent *) ((wxActivateEvent *) x)); | |
32684 | } | |
32685 | static void *_p_wxStaticBoxTo_p_wxObject(void *x) { | |
32686 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticBox *) x)); | |
32687 | } | |
32688 | static void *_p_wxContextHelpTo_p_wxObject(void *x) { | |
32689 | return (void *)((wxObject *) ((wxContextHelp *) x)); | |
32690 | } | |
32691 | static void *_p_wxXPMHandlerTo_p_wxObject(void *x) { | |
32692 | return (void *)((wxObject *) (wxImageHandler *) ((wxXPMHandler *) x)); | |
32693 | } | |
32694 | static void *_p_wxPNMHandlerTo_p_wxObject(void *x) { | |
32695 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNMHandler *) x)); | |
32696 | } | |
32697 | static void *_p_wxJPEGHandlerTo_p_wxObject(void *x) { | |
32698 | return (void *)((wxObject *) (wxImageHandler *) ((wxJPEGHandler *) x)); | |
32699 | } | |
32700 | static void *_p_wxPCXHandlerTo_p_wxObject(void *x) { | |
32701 | return (void *)((wxObject *) (wxImageHandler *) ((wxPCXHandler *) x)); | |
32702 | } | |
32703 | static void *_p_wxGIFHandlerTo_p_wxObject(void *x) { | |
32704 | return (void *)((wxObject *) (wxImageHandler *) ((wxGIFHandler *) x)); | |
32705 | } | |
32706 | static void *_p_wxPNGHandlerTo_p_wxObject(void *x) { | |
32707 | return (void *)((wxObject *) (wxImageHandler *) ((wxPNGHandler *) x)); | |
32708 | } | |
32709 | static void *_p_wxANIHandlerTo_p_wxObject(void *x) { | |
32710 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *)(wxCURHandler *) ((wxANIHandler *) x)); | |
32711 | } | |
32712 | static void *_p_wxCURHandlerTo_p_wxObject(void *x) { | |
32713 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *)(wxICOHandler *) ((wxCURHandler *) x)); | |
32714 | } | |
32715 | static void *_p_wxICOHandlerTo_p_wxObject(void *x) { | |
32716 | return (void *)((wxObject *) (wxImageHandler *)(wxBMPHandler *) ((wxICOHandler *) x)); | |
32717 | } | |
32718 | static void *_p_wxBMPHandlerTo_p_wxObject(void *x) { | |
32719 | return (void *)((wxObject *) (wxImageHandler *) ((wxBMPHandler *) x)); | |
32720 | } | |
32721 | static void *_p_wxImageHandlerTo_p_wxObject(void *x) { | |
32722 | return (void *)((wxObject *) ((wxImageHandler *) x)); | |
32723 | } | |
32724 | static void *_p_wxTIFFHandlerTo_p_wxObject(void *x) { | |
32725 | return (void *)((wxObject *) (wxImageHandler *) ((wxTIFFHandler *) x)); | |
32726 | } | |
32727 | static void *_p_wxEvtHandlerTo_p_wxObject(void *x) { | |
32728 | return (void *)((wxObject *) ((wxEvtHandler *) x)); | |
32729 | } | |
32730 | static void *_p_wxListEventTo_p_wxObject(void *x) { | |
32731 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxListEvent *) x)); | |
32732 | } | |
32733 | static void *_p_wxListBoxTo_p_wxObject(void *x) { | |
32734 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32735 | } | |
32736 | static void *_p_wxCheckListBoxTo_p_wxObject(void *x) { | |
32737 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32738 | } | |
32739 | static void *_p_wxBookCtrlTo_p_wxObject(void *x) { | |
32740 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxBookCtrl *) x)); | |
32741 | } | |
d14a1e28 RD |
32742 | static void *_p_wxButtonTo_p_wxObject(void *x) { |
32743 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxButton *) x)); | |
32744 | } | |
1e0c8722 RD |
32745 | static void *_p_wxBitmapButtonTo_p_wxObject(void *x) { |
32746 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32747 | } | |
d14a1e28 RD |
32748 | static void *_p_wxSpinButtonTo_p_wxObject(void *x) { |
32749 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinButton *) x)); | |
32750 | } | |
32751 | static void *_p_wxContextHelpButtonTo_p_wxObject(void *x) { | |
32752 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32753 | } | |
1e0c8722 RD |
32754 | static void *_p_wxAcceleratorTableTo_p_wxObject(void *x) { |
32755 | return (void *)((wxObject *) ((wxAcceleratorTable *) x)); | |
32756 | } | |
d14a1e28 RD |
32757 | static void *_p_wxScrollBarTo_p_wxObject(void *x) { |
32758 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxScrollBar *) x)); | |
32759 | } | |
32760 | static void *_p_wxRadioBoxTo_p_wxObject(void *x) { | |
32761 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxRadioBox *) x)); | |
32762 | } | |
32763 | static void *_p_wxComboBoxTo_p_wxObject(void *x) { | |
32764 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxComboBox *) x)); | |
32765 | } | |
32766 | static void *_p_wxHelpEventTo_p_wxObject(void *x) { | |
32767 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxHelpEvent *) x)); | |
32768 | } | |
32769 | static void *_p_wxListItemTo_p_wxObject(void *x) { | |
32770 | return (void *)((wxObject *) ((wxListItem *) x)); | |
32771 | } | |
32772 | static void *_p_wxImageTo_p_wxObject(void *x) { | |
32773 | return (void *)((wxObject *) ((wxImage *) x)); | |
32774 | } | |
32775 | static void *_p_wxNotebookSizerTo_p_wxObject(void *x) { | |
32776 | return (void *)((wxObject *) (wxSizer *) ((wxNotebookSizer *) x)); | |
32777 | } | |
32778 | static void *_p_wxScrollWinEventTo_p_wxObject(void *x) { | |
32779 | return (void *)((wxObject *) (wxEvent *) ((wxScrollWinEvent *) x)); | |
32780 | } | |
d1e20054 RD |
32781 | static void *_p_wxSpinEventTo_p_wxObject(void *x) { |
32782 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxSpinEvent *) x)); | |
32783 | } | |
e811c8ce RD |
32784 | static void *_p_wxGenericDragImageTo_p_wxObject(void *x) { |
32785 | return (void *)((wxObject *) ((wxGenericDragImage *) x)); | |
32786 | } | |
d14a1e28 RD |
32787 | static void *_p_wxSpinCtrlTo_p_wxObject(void *x) { |
32788 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxSpinCtrl *) x)); | |
32789 | } | |
32790 | static void *_p_wxNotebookEventTo_p_wxObject(void *x) { | |
32791 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
32792 | } | |
32793 | static void *_p_wxListbookEventTo_p_wxObject(void *x) { | |
32794 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
32795 | } | |
32796 | static void *_p_wxWindowDestroyEventTo_p_wxObject(void *x) { | |
32797 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32798 | } | |
32799 | static void *_p_wxNavigationKeyEventTo_p_wxObject(void *x) { | |
32800 | return (void *)((wxObject *) (wxEvent *) ((wxNavigationKeyEvent *) x)); | |
32801 | } | |
32802 | static void *_p_wxKeyEventTo_p_wxObject(void *x) { | |
32803 | return (void *)((wxObject *) (wxEvent *) ((wxKeyEvent *) x)); | |
32804 | } | |
32805 | static void *_p_wxWindowTo_p_wxObject(void *x) { | |
32806 | return (void *)((wxObject *) (wxEvtHandler *) ((wxWindow *) x)); | |
32807 | } | |
32808 | static void *_p_wxMenuTo_p_wxObject(void *x) { | |
32809 | return (void *)((wxObject *) (wxEvtHandler *) ((wxMenu *) x)); | |
32810 | } | |
32811 | static void *_p_wxMenuBarTo_p_wxObject(void *x) { | |
32812 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *) ((wxMenuBar *) x)); | |
32813 | } | |
32814 | static void *_p_wxFileSystemTo_p_wxObject(void *x) { | |
32815 | return (void *)((wxObject *) ((wxFileSystem *) x)); | |
32816 | } | |
32817 | static void *_p_wxContextMenuEventTo_p_wxObject(void *x) { | |
32818 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32819 | } | |
32820 | static void *_p_wxMenuEventTo_p_wxObject(void *x) { | |
32821 | return (void *)((wxObject *) (wxEvent *) ((wxMenuEvent *) x)); | |
32822 | } | |
32823 | static void *_p_wxPyAppTo_p_wxObject(void *x) { | |
32824 | return (void *)((wxObject *) (wxEvtHandler *) ((wxPyApp *) x)); | |
32825 | } | |
32826 | static void *_p_wxCloseEventTo_p_wxObject(void *x) { | |
32827 | return (void *)((wxObject *) (wxEvent *) ((wxCloseEvent *) x)); | |
32828 | } | |
32829 | static void *_p_wxMouseEventTo_p_wxObject(void *x) { | |
32830 | return (void *)((wxObject *) (wxEvent *) ((wxMouseEvent *) x)); | |
32831 | } | |
32832 | static void *_p_wxEraseEventTo_p_wxObject(void *x) { | |
32833 | return (void *)((wxObject *) (wxEvent *) ((wxEraseEvent *) x)); | |
32834 | } | |
32835 | static void *_p_wxTreeEventTo_p_wxObject(void *x) { | |
32836 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *)(wxNotifyEvent *) ((wxTreeEvent *) x)); | |
32837 | } | |
32838 | static void *_p_wxPyCommandEventTo_p_wxObject(void *x) { | |
32839 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32840 | } | |
32841 | static void *_p_wxCommandEventTo_p_wxObject(void *x) { | |
32842 | return (void *)((wxObject *) (wxEvent *) ((wxCommandEvent *) x)); | |
32843 | } | |
32844 | static void *_p_wxStaticTextTo_p_wxObject(void *x) { | |
32845 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxStaticText *) x)); | |
32846 | } | |
32847 | static void *_p_wxDropFilesEventTo_p_wxObject(void *x) { | |
32848 | return (void *)((wxObject *) (wxEvent *) ((wxDropFilesEvent *) x)); | |
32849 | } | |
32850 | static void *_p_wxFocusEventTo_p_wxObject(void *x) { | |
32851 | return (void *)((wxObject *) (wxEvent *) ((wxFocusEvent *) x)); | |
32852 | } | |
32853 | static void *_p_wxChildFocusEventTo_p_wxObject(void *x) { | |
32854 | return (void *)((wxObject *) (wxEvent *)(wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32855 | } | |
32856 | static void *_p_wxControlWithItemsTo_p_wxObject(void *x) { | |
32857 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *) ((wxControlWithItems *) x)); | |
32858 | } | |
32859 | static void *_p_wxToolBarToolBaseTo_p_wxObject(void *x) { | |
32860 | return (void *)((wxObject *) ((wxToolBarToolBase *) x)); | |
32861 | } | |
32862 | static void *_p_wxToolBarTo_p_wxObject(void *x) { | |
32863 | return (void *)((wxObject *) (wxEvtHandler *)(wxWindow *)(wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32864 | } | |
32865 | static void *_p_wxPyValidatorTo_p_wxObject(void *x) { | |
32866 | return (void *)((wxObject *) (wxEvtHandler *)(wxValidator *) ((wxPyValidator *) x)); | |
32867 | } | |
32868 | static void *_p_wxValidatorTo_p_wxObject(void *x) { | |
32869 | return (void *)((wxObject *) (wxEvtHandler *) ((wxValidator *) x)); | |
32870 | } | |
32871 | static void *_p_wxBookCtrlSizerTo_p_wxObject(void *x) { | |
32872 | return (void *)((wxObject *) (wxSizer *) ((wxBookCtrlSizer *) x)); | |
32873 | } | |
32874 | static void *_p_wxBookCtrlTo_p_wxWindow(void *x) { | |
32875 | return (void *)((wxWindow *) (wxControl *) ((wxBookCtrl *) x)); | |
32876 | } | |
32877 | static void *_p_wxMenuBarTo_p_wxWindow(void *x) { | |
32878 | return (void *)((wxWindow *) ((wxMenuBar *) x)); | |
32879 | } | |
32880 | static void *_p_wxToolBarTo_p_wxWindow(void *x) { | |
32881 | return (void *)((wxWindow *) (wxControl *)(wxToolBarBase *) ((wxToolBar *) x)); | |
32882 | } | |
32883 | static void *_p_wxToggleButtonTo_p_wxWindow(void *x) { | |
32884 | return (void *)((wxWindow *) (wxControl *) ((wxToggleButton *) x)); | |
32885 | } | |
32886 | static void *_p_wxRadioButtonTo_p_wxWindow(void *x) { | |
32887 | return (void *)((wxWindow *) (wxControl *) ((wxRadioButton *) x)); | |
32888 | } | |
32889 | static void *_p_wxPyControlTo_p_wxWindow(void *x) { | |
32890 | return (void *)((wxWindow *) (wxControl *) ((wxPyControl *) x)); | |
32891 | } | |
32892 | static void *_p_wxControlTo_p_wxWindow(void *x) { | |
32893 | return (void *)((wxWindow *) ((wxControl *) x)); | |
32894 | } | |
32895 | static void *_p_wxToolBarBaseTo_p_wxWindow(void *x) { | |
32896 | return (void *)((wxWindow *) (wxControl *) ((wxToolBarBase *) x)); | |
32897 | } | |
32898 | static void *_p_wxDirFilterListCtrlTo_p_wxWindow(void *x) { | |
32899 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxChoice *) ((wxDirFilterListCtrl *) x)); | |
32900 | } | |
32901 | static void *_p_wxPyListCtrlTo_p_wxWindow(void *x) { | |
32902 | return (void *)((wxWindow *) (wxControl *) ((wxPyListCtrl *) x)); | |
32903 | } | |
32904 | static void *_p_wxComboBoxTo_p_wxWindow(void *x) { | |
32905 | return (void *)((wxWindow *) (wxControl *) ((wxComboBox *) x)); | |
32906 | } | |
32907 | static void *_p_wxGenericDirCtrlTo_p_wxWindow(void *x) { | |
32908 | return (void *)((wxWindow *) (wxControl *) ((wxGenericDirCtrl *) x)); | |
32909 | } | |
32910 | static void *_p_wxScrollBarTo_p_wxWindow(void *x) { | |
32911 | return (void *)((wxWindow *) (wxControl *) ((wxScrollBar *) x)); | |
32912 | } | |
32913 | static void *_p_wxControlWithItemsTo_p_wxWindow(void *x) { | |
32914 | return (void *)((wxWindow *) (wxControl *) ((wxControlWithItems *) x)); | |
32915 | } | |
32916 | static void *_p_wxGaugeTo_p_wxWindow(void *x) { | |
32917 | return (void *)((wxWindow *) (wxControl *) ((wxGauge *) x)); | |
32918 | } | |
32919 | static void *_p_wxStaticLineTo_p_wxWindow(void *x) { | |
32920 | return (void *)((wxWindow *) (wxControl *) ((wxStaticLine *) x)); | |
32921 | } | |
32922 | static void *_p_wxListbookTo_p_wxWindow(void *x) { | |
32923 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxListbook *) x)); | |
32924 | } | |
32925 | static void *_p_wxPyTreeCtrlTo_p_wxWindow(void *x) { | |
32926 | return (void *)((wxWindow *) (wxControl *) ((wxPyTreeCtrl *) x)); | |
32927 | } | |
32928 | static void *_p_wxCheckBoxTo_p_wxWindow(void *x) { | |
32929 | return (void *)((wxWindow *) (wxControl *) ((wxCheckBox *) x)); | |
32930 | } | |
32931 | static void *_p_wxRadioBoxTo_p_wxWindow(void *x) { | |
32932 | return (void *)((wxWindow *) (wxControl *) ((wxRadioBox *) x)); | |
32933 | } | |
32934 | static void *_p_wxCheckListBoxTo_p_wxWindow(void *x) { | |
32935 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *)(wxListBox *) ((wxCheckListBox *) x)); | |
32936 | } | |
32937 | static void *_p_wxChoiceTo_p_wxWindow(void *x) { | |
32938 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxChoice *) x)); | |
32939 | } | |
32940 | static void *_p_wxListBoxTo_p_wxWindow(void *x) { | |
32941 | return (void *)((wxWindow *) (wxControl *)(wxControlWithItems *) ((wxListBox *) x)); | |
32942 | } | |
32943 | static void *_p_wxListViewTo_p_wxWindow(void *x) { | |
32944 | return (void *)((wxWindow *) (wxControl *)(wxPyListCtrl *) ((wxListView *) x)); | |
32945 | } | |
32946 | static void *_p_wxNotebookTo_p_wxWindow(void *x) { | |
32947 | return (void *)((wxWindow *) (wxControl *)(wxBookCtrl *) ((wxNotebook *) x)); | |
32948 | } | |
32949 | static void *_p_wxStaticBitmapTo_p_wxWindow(void *x) { | |
32950 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBitmap *) x)); | |
32951 | } | |
32952 | static void *_p_wxSpinCtrlTo_p_wxWindow(void *x) { | |
32953 | return (void *)((wxWindow *) (wxControl *) ((wxSpinCtrl *) x)); | |
32954 | } | |
32955 | static void *_p_wxStaticTextTo_p_wxWindow(void *x) { | |
32956 | return (void *)((wxWindow *) (wxControl *) ((wxStaticText *) x)); | |
32957 | } | |
32958 | static void *_p_wxStaticBoxTo_p_wxWindow(void *x) { | |
32959 | return (void *)((wxWindow *) (wxControl *) ((wxStaticBox *) x)); | |
32960 | } | |
32961 | static void *_p_wxSliderTo_p_wxWindow(void *x) { | |
32962 | return (void *)((wxWindow *) (wxControl *) ((wxSlider *) x)); | |
32963 | } | |
32964 | static void *_p_wxSpinButtonTo_p_wxWindow(void *x) { | |
32965 | return (void *)((wxWindow *) (wxControl *) ((wxSpinButton *) x)); | |
32966 | } | |
32967 | static void *_p_wxButtonTo_p_wxWindow(void *x) { | |
32968 | return (void *)((wxWindow *) (wxControl *) ((wxButton *) x)); | |
32969 | } | |
32970 | static void *_p_wxBitmapButtonTo_p_wxWindow(void *x) { | |
32971 | return (void *)((wxWindow *) (wxControl *)(wxButton *) ((wxBitmapButton *) x)); | |
32972 | } | |
32973 | static void *_p_wxContextHelpButtonTo_p_wxWindow(void *x) { | |
32974 | return (void *)((wxWindow *) (wxControl *)(wxButton *)(wxBitmapButton *) ((wxContextHelpButton *) x)); | |
32975 | } | |
32976 | static void *_p_wxTextCtrlTo_p_wxWindow(void *x) { | |
32977 | return (void *)((wxWindow *) (wxControl *) ((wxTextCtrl *) x)); | |
32978 | } | |
32979 | static void *_p_wxWindowDestroyEventTo_p_wxCommandEvent(void *x) { | |
32980 | return (void *)((wxCommandEvent *) ((wxWindowDestroyEvent *) x)); | |
32981 | } | |
32982 | static void *_p_wxBookCtrlEventTo_p_wxCommandEvent(void *x) { | |
32983 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxBookCtrlEvent *) x)); | |
32984 | } | |
32985 | static void *_p_wxTextUrlEventTo_p_wxCommandEvent(void *x) { | |
32986 | return (void *)((wxCommandEvent *) ((wxTextUrlEvent *) x)); | |
32987 | } | |
32988 | static void *_p_wxScrollEventTo_p_wxCommandEvent(void *x) { | |
32989 | return (void *)((wxCommandEvent *) ((wxScrollEvent *) x)); | |
32990 | } | |
32991 | static void *_p_wxPyCommandEventTo_p_wxCommandEvent(void *x) { | |
32992 | return (void *)((wxCommandEvent *) ((wxPyCommandEvent *) x)); | |
32993 | } | |
32994 | static void *_p_wxContextMenuEventTo_p_wxCommandEvent(void *x) { | |
32995 | return (void *)((wxCommandEvent *) ((wxContextMenuEvent *) x)); | |
32996 | } | |
32997 | static void *_p_wxChildFocusEventTo_p_wxCommandEvent(void *x) { | |
32998 | return (void *)((wxCommandEvent *) ((wxChildFocusEvent *) x)); | |
32999 | } | |
33000 | static void *_p_wxListbookEventTo_p_wxCommandEvent(void *x) { | |
33001 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxListbookEvent *) x)); | |
33002 | } | |
33003 | static void *_p_wxNotebookEventTo_p_wxCommandEvent(void *x) { | |
33004 | return (void *)((wxCommandEvent *) (wxNotifyEvent *)(wxBookCtrlEvent *) ((wxNotebookEvent *) x)); | |
33005 | } | |
33006 | static void *_p_wxListEventTo_p_wxCommandEvent(void *x) { | |
33007 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxListEvent *) x)); | |
33008 | } | |
33009 | static void *_p_wxWindowCreateEventTo_p_wxCommandEvent(void *x) { | |
33010 | return (void *)((wxCommandEvent *) ((wxWindowCreateEvent *) x)); | |
33011 | } | |
33012 | static void *_p_wxTreeEventTo_p_wxCommandEvent(void *x) { | |
33013 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxTreeEvent *) x)); | |
33014 | } | |
d1e20054 RD |
33015 | static void *_p_wxSpinEventTo_p_wxCommandEvent(void *x) { |
33016 | return (void *)((wxCommandEvent *) (wxNotifyEvent *) ((wxSpinEvent *) x)); | |
33017 | } | |
d14a1e28 RD |
33018 | static void *_p_wxHelpEventTo_p_wxCommandEvent(void *x) { |
33019 | return (void *)((wxCommandEvent *) ((wxHelpEvent *) x)); | |
33020 | } | |
33021 | static void *_p_wxNotifyEventTo_p_wxCommandEvent(void *x) { | |
33022 | return (void *)((wxCommandEvent *) ((wxNotifyEvent *) x)); | |
33023 | } | |
33024 | static void *_p_wxUpdateUIEventTo_p_wxCommandEvent(void *x) { | |
33025 | return (void *)((wxCommandEvent *) ((wxUpdateUIEvent *) x)); | |
33026 | } | |
33027 | static void *_p_wxDirFilterListCtrlTo_p_wxControlWithItems(void *x) { | |
33028 | return (void *)((wxControlWithItems *) (wxChoice *) ((wxDirFilterListCtrl *) x)); | |
33029 | } | |
33030 | static void *_p_wxChoiceTo_p_wxControlWithItems(void *x) { | |
33031 | return (void *)((wxControlWithItems *) ((wxChoice *) x)); | |
33032 | } | |
33033 | static void *_p_wxListBoxTo_p_wxControlWithItems(void *x) { | |
33034 | return (void *)((wxControlWithItems *) ((wxListBox *) x)); | |
33035 | } | |
33036 | static void *_p_wxCheckListBoxTo_p_wxControlWithItems(void *x) { | |
33037 | return (void *)((wxControlWithItems *) (wxListBox *) ((wxCheckListBox *) x)); | |
33038 | } | |
33039 | static void *_p_wxPyValidatorTo_p_wxValidator(void *x) { | |
33040 | return (void *)((wxValidator *) ((wxPyValidator *) x)); | |
33041 | } | |
15afbcd0 RD |
33042 | 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}}; |
33043 | 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}}; | |
33044 | 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}}; | |
33045 | 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}}; | |
33046 | 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}}; | |
33047 | 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}}; | |
33048 | 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}}; | |
33049 | 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}}; | |
33050 | 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}}; | |
33051 | 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}}; | |
15afbcd0 | 33052 | static swig_type_info _swigt__p_wxPyListCtrl[] = {{"_p_wxPyListCtrl", 0, "wxPyListCtrl *", 0, 0, 0, 0},{"_p_wxPyListCtrl", 0, 0, 0, 0, 0, 0},{"_p_wxListView", _p_wxListViewTo_p_wxPyListCtrl, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
74a57fcd | 33053 | 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}}; |
15afbcd0 RD |
33054 | 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}}; |
33055 | 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}}; | |
33056 | 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}}; | |
33057 | 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}}; | |
33058 | 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}}; | |
33059 | 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}}; | |
33060 | 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}}; | |
33061 | 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}}; | |
33062 | static swig_type_info _swigt__p_wxChoice[] = {{"_p_wxChoice", 0, "wxChoice *", 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}}; | |
33063 | 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}}; | |
33064 | 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}}; | |
33065 | 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}}; | |
33066 | 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}}; | |
33067 | 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}}; | |
33068 | 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}}; | |
33069 | 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}}; | |
33070 | static swig_type_info _swigt__p_wxIcon[] = {{"_p_wxIcon", 0, "wxIcon *", 0, 0, 0, 0},{"_p_wxIcon", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; | |
74a57fcd | 33071 | static swig_type_info _swigt__p_wxVisualAttributes[] = {{"_p_wxVisualAttributes", 0, "wxVisualAttributes *", 0, 0, 0, 0},{"_p_wxVisualAttributes", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
15afbcd0 RD |
33072 | 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}}; |
33073 | 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}}; | |
33074 | 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}}; | |
33075 | 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}}; | |
33076 | 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}}; | |
33077 | 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}}; | |
33078 | 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}}; | |
33079 | 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}}; | |
33080 | 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}}; | |
33081 | 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}}; | |
33082 | 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}}; | |
33083 | 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}}; | |
33084 | 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}}; | |
15afbcd0 | 33085 | static swig_type_info _swigt__p_wxCheckListBox[] = {{"_p_wxCheckListBox", 0, "wxCheckListBox *", 0, 0, 0, 0},{"_p_wxCheckListBox", 0, 0, 0, 0, 0, 0},{0, 0, 0, 0, 0, 0, 0}}; |
74a57fcd | 33086 | 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}}; |
15afbcd0 RD |
33087 | 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}}; |
33088 | 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}}; | |
33089 | 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}}; | |
33090 | 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}}; | |
33091 | 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}}; | |
33092 | 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}}; | |
33093 | 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}}; | |
33094 | 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}}; | |
33095 | 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}}; | |
33096 | 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}}; | |
33097 | 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}}; | |
33098 | 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}}; | |
33099 | 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}}; | |
33100 | 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}}; | |
33101 | 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}}; | |
33102 | 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}}; | |
33103 | 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}}; | |
33104 | 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}}; | |
33105 | 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}}; | |
33106 | 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}}; | |
33107 | 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}}; | |
33108 | 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}}; | |
33109 | 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}}; | |
33110 | 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}}; | |
33111 | 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}}; | |
33112 | 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}}; | |
33113 | 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}}; | |
33114 | 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}}; | |
33115 | 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}}; | |
33116 | 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}}; | |
33117 | 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}}; | |
33118 | 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}}; | |
33119 | 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}}; | |
33120 | 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}}; | |
33121 | static swig_type_info _swigt__p_wxControlWithItems[] = {{"_p_wxControlWithItems", 0, "wxControlWithItems *", 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}}; | |
33122 | 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}}; | |
33123 | 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}}; | |
33124 | 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}}; | |
33125 | 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}}; | |
33126 | 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 |
33127 | |
33128 | static swig_type_info *swig_types_initial[] = { | |
33129 | _swigt__p_wxTextUrlEvent, | |
33130 | _swigt__p_wxBookCtrlEvent, | |
33131 | _swigt__p_wxSizer, | |
d14a1e28 RD |
33132 | _swigt__p_wxCheckBox, |
33133 | _swigt__p_wxPyTreeCtrl, | |
33134 | _swigt__p_wxEvent, | |
33135 | _swigt__p_wxGenericDirCtrl, | |
33136 | _swigt__p_bool, | |
33137 | _swigt__p_wxPyTreeItemData, | |
33138 | _swigt__p_wxItemContainer, | |
d14a1e28 | 33139 | _swigt__p_wxPyListCtrl, |
74a57fcd | 33140 | _swigt__p_wxDirFilterListCtrl, |
d14a1e28 RD |
33141 | _swigt__p_wxStaticLine, |
33142 | _swigt__p_wxControl, | |
33143 | _swigt__p_wxPyControl, | |
33144 | _swigt__p_wxGauge, | |
33145 | _swigt__p_wxToolBarBase, | |
33146 | _swigt__p_wxFont, | |
33147 | _swigt__p_wxToggleButton, | |
33148 | _swigt__p_wxRadioButton, | |
33149 | _swigt__p_wxChoice, | |
e811c8ce | 33150 | _swigt__p_wxMemoryDC, |
d14a1e28 | 33151 | _swigt__p_wxListItemAttr, |
58203fa6 | 33152 | _swigt__p_void, |
d14a1e28 RD |
33153 | _swigt__p_int, |
33154 | _swigt__p_wxSize, | |
e811c8ce | 33155 | _swigt__p_wxDC, |
d14a1e28 RD |
33156 | _swigt__p_wxListView, |
33157 | _swigt__p_wxIcon, | |
74a57fcd | 33158 | _swigt__p_wxVisualAttributes, |
d14a1e28 RD |
33159 | _swigt__p_wxTextCtrl, |
33160 | _swigt__p_wxNotebook, | |
33161 | _swigt__p_wxNotifyEvent, | |
33162 | _swigt__p_wxArrayString, | |
33163 | _swigt__p_wxListbook, | |
33164 | _swigt__p_wxStaticBitmap, | |
33165 | _swigt__p_wxSlider, | |
33166 | _swigt__p_wxStaticBox, | |
33167 | _swigt__p_wxArrayInt, | |
33168 | _swigt__p_wxContextHelp, | |
33169 | _swigt__p_long, | |
33170 | _swigt__p_wxEvtHandler, | |
33171 | _swigt__p_wxListEvent, | |
d14a1e28 | 33172 | _swigt__p_wxCheckListBox, |
74a57fcd | 33173 | _swigt__p_wxListBox, |
d14a1e28 RD |
33174 | _swigt__p_wxBookCtrl, |
33175 | _swigt__p_wxSpinButton, | |
33176 | _swigt__p_wxButton, | |
33177 | _swigt__p_wxBitmapButton, | |
33178 | _swigt__p_wxRect, | |
33179 | _swigt__p_wxContextHelpButton, | |
33180 | _swigt__p_wxRadioBox, | |
33181 | _swigt__p_wxScrollBar, | |
994141e6 | 33182 | _swigt__p_char, |
d14a1e28 RD |
33183 | _swigt__p_wxTreeItemId, |
33184 | _swigt__p_wxComboBox, | |
33185 | _swigt__p_wxHelpEvent, | |
33186 | _swigt__p_wxListItem, | |
33187 | _swigt__p_wxNotebookSizer, | |
d1e20054 | 33188 | _swigt__p_wxSpinEvent, |
e811c8ce | 33189 | _swigt__p_wxGenericDragImage, |
d14a1e28 RD |
33190 | _swigt__p_wxSpinCtrl, |
33191 | _swigt__p_wxImageList, | |
33192 | _swigt__p_wxHelpProvider, | |
33193 | _swigt__p_wxTextAttr, | |
33194 | _swigt__p_wxSimpleHelpProvider, | |
33195 | _swigt__p_wxPoint, | |
33196 | _swigt__p_wxListbookEvent, | |
33197 | _swigt__p_wxNotebookEvent, | |
33198 | _swigt__p_wxObject, | |
e811c8ce | 33199 | _swigt__p_wxCursor, |
d14a1e28 RD |
33200 | _swigt__p_wxKeyEvent, |
33201 | _swigt__p_wxWindow, | |
33202 | _swigt__p_wxString, | |
33203 | _swigt__p_wxBitmap, | |
33204 | _swigt__p_wxTreeEvent, | |
33205 | _swigt__p_wxMouseEvent, | |
33206 | _swigt__p_wxCommandEvent, | |
33207 | _swigt__p_wxStaticText, | |
33208 | _swigt__p_wxControlWithItems, | |
33209 | _swigt__p_wxToolBarToolBase, | |
33210 | _swigt__p_wxColour, | |
33211 | _swigt__p_wxToolBar, | |
33212 | _swigt__p_wxBookCtrlSizer, | |
33213 | _swigt__p_wxValidator, | |
33214 | 0 | |
33215 | }; | |
33216 | ||
33217 | ||
33218 | /* -------- TYPE CONVERSION AND EQUIVALENCE RULES (END) -------- */ | |
33219 | ||
33220 | static swig_const_info swig_const_table[] = { | |
d14a1e28 RD |
33221 | {0}}; |
33222 | ||
33223 | #ifdef __cplusplus | |
33224 | } | |
33225 | #endif | |
33226 | ||
33227 | #ifdef __cplusplus | |
33228 | extern "C" | |
33229 | #endif | |
33230 | SWIGEXPORT(void) SWIG_init(void) { | |
33231 | static PyObject *SWIG_globals = 0; | |
33232 | static int typeinit = 0; | |
33233 | PyObject *m, *d; | |
33234 | int i; | |
33235 | if (!SWIG_globals) SWIG_globals = SWIG_newvarlink(); | |
33236 | m = Py_InitModule((char *) SWIG_name, SwigMethods); | |
33237 | d = PyModule_GetDict(m); | |
33238 | ||
33239 | if (!typeinit) { | |
33240 | for (i = 0; swig_types_initial[i]; i++) { | |
33241 | swig_types[i] = SWIG_TypeRegister(swig_types_initial[i]); | |
33242 | } | |
33243 | typeinit = 1; | |
33244 | } | |
33245 | SWIG_InstallConstants(d,swig_const_table); | |
33246 | ||
b2dc1044 RD |
33247 | PyDict_SetItemString(d,(char*)"cvar", SWIG_globals); |
33248 | SWIG_addvarlink(SWIG_globals,(char*)"ButtonNameStr",_wrap_ButtonNameStr_get, _wrap_ButtonNameStr_set); | |
15afbcd0 RD |
33249 | PyDict_SetItemString(d,"BU_LEFT", SWIG_FromInt((int)wxBU_LEFT)); |
33250 | PyDict_SetItemString(d,"BU_TOP", SWIG_FromInt((int)wxBU_TOP)); | |
33251 | PyDict_SetItemString(d,"BU_RIGHT", SWIG_FromInt((int)wxBU_RIGHT)); | |
33252 | PyDict_SetItemString(d,"BU_BOTTOM", SWIG_FromInt((int)wxBU_BOTTOM)); | |
33253 | PyDict_SetItemString(d,"BU_EXACTFIT", SWIG_FromInt((int)wxBU_EXACTFIT)); | |
33254 | PyDict_SetItemString(d,"BU_AUTODRAW", SWIG_FromInt((int)wxBU_AUTODRAW)); | |
b2dc1044 | 33255 | SWIG_addvarlink(SWIG_globals,(char*)"CheckBoxNameStr",_wrap_CheckBoxNameStr_get, _wrap_CheckBoxNameStr_set); |
15afbcd0 RD |
33256 | PyDict_SetItemString(d,"CHK_2STATE", SWIG_FromInt((int)wxCHK_2STATE)); |
33257 | PyDict_SetItemString(d,"CHK_3STATE", SWIG_FromInt((int)wxCHK_3STATE)); | |
33258 | PyDict_SetItemString(d,"CHK_ALLOW_3RD_STATE_FOR_USER", SWIG_FromInt((int)wxCHK_ALLOW_3RD_STATE_FOR_USER)); | |
33259 | PyDict_SetItemString(d,"CHK_UNCHECKED", SWIG_FromInt((int)wxCHK_UNCHECKED)); | |
33260 | PyDict_SetItemString(d,"CHK_CHECKED", SWIG_FromInt((int)wxCHK_CHECKED)); | |
33261 | PyDict_SetItemString(d,"CHK_UNDETERMINED", SWIG_FromInt((int)wxCHK_UNDETERMINED)); | |
b2dc1044 RD |
33262 | SWIG_addvarlink(SWIG_globals,(char*)"ChoiceNameStr",_wrap_ChoiceNameStr_get, _wrap_ChoiceNameStr_set); |
33263 | SWIG_addvarlink(SWIG_globals,(char*)"ComboBoxNameStr",_wrap_ComboBoxNameStr_get, _wrap_ComboBoxNameStr_set); | |
33264 | SWIG_addvarlink(SWIG_globals,(char*)"GaugeNameStr",_wrap_GaugeNameStr_get, _wrap_GaugeNameStr_set); | |
15afbcd0 RD |
33265 | PyDict_SetItemString(d,"GA_HORIZONTAL", SWIG_FromInt((int)wxGA_HORIZONTAL)); |
33266 | PyDict_SetItemString(d,"GA_VERTICAL", SWIG_FromInt((int)wxGA_VERTICAL)); | |
33267 | PyDict_SetItemString(d,"GA_SMOOTH", SWIG_FromInt((int)wxGA_SMOOTH)); | |
33268 | PyDict_SetItemString(d,"GA_PROGRESSBAR", SWIG_FromInt((int)wxGA_PROGRESSBAR)); | |
b2dc1044 RD |
33269 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBitmapNameStr",_wrap_StaticBitmapNameStr_get, _wrap_StaticBitmapNameStr_set); |
33270 | SWIG_addvarlink(SWIG_globals,(char*)"StaticBoxNameStr",_wrap_StaticBoxNameStr_get, _wrap_StaticBoxNameStr_set); | |
33271 | SWIG_addvarlink(SWIG_globals,(char*)"StaticTextNameStr",_wrap_StaticTextNameStr_get, _wrap_StaticTextNameStr_set); | |
33272 | SWIG_addvarlink(SWIG_globals,(char*)"ListBoxNameStr",_wrap_ListBoxNameStr_get, _wrap_ListBoxNameStr_set); | |
33273 | SWIG_addvarlink(SWIG_globals,(char*)"TextCtrlNameStr",_wrap_TextCtrlNameStr_get, _wrap_TextCtrlNameStr_set); | |
15afbcd0 RD |
33274 | PyDict_SetItemString(d,"TE_NO_VSCROLL", SWIG_FromInt((int)wxTE_NO_VSCROLL)); |
33275 | PyDict_SetItemString(d,"TE_AUTO_SCROLL", SWIG_FromInt((int)wxTE_AUTO_SCROLL)); | |
33276 | PyDict_SetItemString(d,"TE_READONLY", SWIG_FromInt((int)wxTE_READONLY)); | |
33277 | PyDict_SetItemString(d,"TE_MULTILINE", SWIG_FromInt((int)wxTE_MULTILINE)); | |
33278 | PyDict_SetItemString(d,"TE_PROCESS_TAB", SWIG_FromInt((int)wxTE_PROCESS_TAB)); | |
33279 | PyDict_SetItemString(d,"TE_LEFT", SWIG_FromInt((int)wxTE_LEFT)); | |
33280 | PyDict_SetItemString(d,"TE_CENTER", SWIG_FromInt((int)wxTE_CENTER)); | |
33281 | PyDict_SetItemString(d,"TE_RIGHT", SWIG_FromInt((int)wxTE_RIGHT)); | |
33282 | PyDict_SetItemString(d,"TE_CENTRE", SWIG_FromInt((int)wxTE_CENTRE)); | |
33283 | PyDict_SetItemString(d,"TE_RICH", SWIG_FromInt((int)wxTE_RICH)); | |
33284 | PyDict_SetItemString(d,"TE_PROCESS_ENTER", SWIG_FromInt((int)wxTE_PROCESS_ENTER)); | |
33285 | PyDict_SetItemString(d,"TE_PASSWORD", SWIG_FromInt((int)wxTE_PASSWORD)); | |
33286 | PyDict_SetItemString(d,"TE_AUTO_URL", SWIG_FromInt((int)wxTE_AUTO_URL)); | |
33287 | PyDict_SetItemString(d,"TE_NOHIDESEL", SWIG_FromInt((int)wxTE_NOHIDESEL)); | |
33288 | PyDict_SetItemString(d,"TE_DONTWRAP", SWIG_FromInt((int)wxTE_DONTWRAP)); | |
33289 | PyDict_SetItemString(d,"TE_LINEWRAP", SWIG_FromInt((int)wxTE_LINEWRAP)); | |
33290 | PyDict_SetItemString(d,"TE_WORDWRAP", SWIG_FromInt((int)wxTE_WORDWRAP)); | |
33291 | PyDict_SetItemString(d,"TE_RICH2", SWIG_FromInt((int)wxTE_RICH2)); | |
33292 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_DEFAULT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_DEFAULT)); | |
33293 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_LEFT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_LEFT)); | |
33294 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTRE", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTRE)); | |
33295 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_CENTER", SWIG_FromInt((int)wxTEXT_ALIGNMENT_CENTER)); | |
33296 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_RIGHT", SWIG_FromInt((int)wxTEXT_ALIGNMENT_RIGHT)); | |
33297 | PyDict_SetItemString(d,"TEXT_ALIGNMENT_JUSTIFIED", SWIG_FromInt((int)wxTEXT_ALIGNMENT_JUSTIFIED)); | |
33298 | PyDict_SetItemString(d,"TEXT_ATTR_TEXT_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_TEXT_COLOUR)); | |
33299 | PyDict_SetItemString(d,"TEXT_ATTR_BACKGROUND_COLOUR", SWIG_FromInt((int)wxTEXT_ATTR_BACKGROUND_COLOUR)); | |
33300 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_FACE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_FACE)); | |
33301 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_SIZE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_SIZE)); | |
33302 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_WEIGHT", SWIG_FromInt((int)wxTEXT_ATTR_FONT_WEIGHT)); | |
33303 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_ITALIC", SWIG_FromInt((int)wxTEXT_ATTR_FONT_ITALIC)); | |
33304 | PyDict_SetItemString(d,"TEXT_ATTR_FONT_UNDERLINE", SWIG_FromInt((int)wxTEXT_ATTR_FONT_UNDERLINE)); | |
33305 | PyDict_SetItemString(d,"TEXT_ATTR_FONT", SWIG_FromInt((int)wxTEXT_ATTR_FONT)); | |
33306 | PyDict_SetItemString(d,"TEXT_ATTR_ALIGNMENT", SWIG_FromInt((int)wxTEXT_ATTR_ALIGNMENT)); | |
33307 | PyDict_SetItemString(d,"TEXT_ATTR_LEFT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_LEFT_INDENT)); | |
33308 | PyDict_SetItemString(d,"TEXT_ATTR_RIGHT_INDENT", SWIG_FromInt((int)wxTEXT_ATTR_RIGHT_INDENT)); | |
33309 | PyDict_SetItemString(d,"TEXT_ATTR_TABS", SWIG_FromInt((int)wxTEXT_ATTR_TABS)); | |
33310 | PyDict_SetItemString(d,"TE_HT_UNKNOWN", SWIG_FromInt((int)wxTE_HT_UNKNOWN)); | |
33311 | PyDict_SetItemString(d,"TE_HT_BEFORE", SWIG_FromInt((int)wxTE_HT_BEFORE)); | |
33312 | PyDict_SetItemString(d,"TE_HT_ON_TEXT", SWIG_FromInt((int)wxTE_HT_ON_TEXT)); | |
33313 | PyDict_SetItemString(d,"TE_HT_BELOW", SWIG_FromInt((int)wxTE_HT_BELOW)); | |
33314 | PyDict_SetItemString(d,"TE_HT_BEYOND", SWIG_FromInt((int)wxTE_HT_BEYOND)); | |
d14a1e28 RD |
33315 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_UPDATED", PyInt_FromLong(wxEVT_COMMAND_TEXT_UPDATED)); |
33316 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_ENTER", PyInt_FromLong(wxEVT_COMMAND_TEXT_ENTER)); | |
33317 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_URL", PyInt_FromLong(wxEVT_COMMAND_TEXT_URL)); | |
33318 | PyDict_SetItemString(d, "wxEVT_COMMAND_TEXT_MAXLEN", PyInt_FromLong(wxEVT_COMMAND_TEXT_MAXLEN)); | |
b2dc1044 RD |
33319 | SWIG_addvarlink(SWIG_globals,(char*)"ScrollBarNameStr",_wrap_ScrollBarNameStr_get, _wrap_ScrollBarNameStr_set); |
33320 | SWIG_addvarlink(SWIG_globals,(char*)"SPIN_BUTTON_NAME",_wrap_SPIN_BUTTON_NAME_get, _wrap_SPIN_BUTTON_NAME_set); | |
33321 | SWIG_addvarlink(SWIG_globals,(char*)"SpinCtrlNameStr",_wrap_SpinCtrlNameStr_get, _wrap_SpinCtrlNameStr_set); | |
15afbcd0 RD |
33322 | PyDict_SetItemString(d,"SP_HORIZONTAL", SWIG_FromInt((int)wxSP_HORIZONTAL)); |
33323 | PyDict_SetItemString(d,"SP_VERTICAL", SWIG_FromInt((int)wxSP_VERTICAL)); | |
33324 | PyDict_SetItemString(d,"SP_ARROW_KEYS", SWIG_FromInt((int)wxSP_ARROW_KEYS)); | |
33325 | PyDict_SetItemString(d,"SP_WRAP", SWIG_FromInt((int)wxSP_WRAP)); | |
d14a1e28 | 33326 | PyDict_SetItemString(d, "wxEVT_COMMAND_SPINCTRL_UPDATED", PyInt_FromLong(wxEVT_COMMAND_SPINCTRL_UPDATED)); |
b2dc1044 RD |
33327 | SWIG_addvarlink(SWIG_globals,(char*)"RadioBoxNameStr",_wrap_RadioBoxNameStr_get, _wrap_RadioBoxNameStr_set); |
33328 | SWIG_addvarlink(SWIG_globals,(char*)"RadioButtonNameStr",_wrap_RadioButtonNameStr_get, _wrap_RadioButtonNameStr_set); | |
33329 | SWIG_addvarlink(SWIG_globals,(char*)"SliderNameStr",_wrap_SliderNameStr_get, _wrap_SliderNameStr_set); | |
33330 | SWIG_addvarlink(SWIG_globals,(char*)"ToggleButtonNameStr",_wrap_ToggleButtonNameStr_get, _wrap_ToggleButtonNameStr_set); | |
d14a1e28 | 33331 | PyDict_SetItemString(d, "wxEVT_COMMAND_TOGGLEBUTTON_CLICKED", PyInt_FromLong(wxEVT_COMMAND_TOGGLEBUTTON_CLICKED)); |
b2dc1044 | 33332 | SWIG_addvarlink(SWIG_globals,(char*)"NOTEBOOK_NAME",_wrap_NOTEBOOK_NAME_get, _wrap_NOTEBOOK_NAME_set); |
15afbcd0 RD |
33333 | PyDict_SetItemString(d,"NB_FIXEDWIDTH", SWIG_FromInt((int)wxNB_FIXEDWIDTH)); |
33334 | PyDict_SetItemString(d,"NB_TOP", SWIG_FromInt((int)wxNB_TOP)); | |
33335 | PyDict_SetItemString(d,"NB_LEFT", SWIG_FromInt((int)wxNB_LEFT)); | |
33336 | PyDict_SetItemString(d,"NB_RIGHT", SWIG_FromInt((int)wxNB_RIGHT)); | |
33337 | PyDict_SetItemString(d,"NB_BOTTOM", SWIG_FromInt((int)wxNB_BOTTOM)); | |
33338 | PyDict_SetItemString(d,"NB_MULTILINE", SWIG_FromInt((int)wxNB_MULTILINE)); | |
33339 | PyDict_SetItemString(d,"NB_HITTEST_NOWHERE", SWIG_FromInt((int)wxNB_HITTEST_NOWHERE)); | |
33340 | PyDict_SetItemString(d,"NB_HITTEST_ONICON", SWIG_FromInt((int)wxNB_HITTEST_ONICON)); | |
33341 | PyDict_SetItemString(d,"NB_HITTEST_ONLABEL", SWIG_FromInt((int)wxNB_HITTEST_ONLABEL)); | |
33342 | PyDict_SetItemString(d,"NB_HITTEST_ONITEM", SWIG_FromInt((int)wxNB_HITTEST_ONITEM)); | |
d14a1e28 RD |
33343 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGED)); |
33344 | PyDict_SetItemString(d, "wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_NOTEBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33345 | PyDict_SetItemString(d,"LB_DEFAULT", SWIG_FromInt((int)wxLB_DEFAULT)); |
33346 | PyDict_SetItemString(d,"LB_TOP", SWIG_FromInt((int)wxLB_TOP)); | |
33347 | PyDict_SetItemString(d,"LB_BOTTOM", SWIG_FromInt((int)wxLB_BOTTOM)); | |
33348 | PyDict_SetItemString(d,"LB_LEFT", SWIG_FromInt((int)wxLB_LEFT)); | |
33349 | PyDict_SetItemString(d,"LB_RIGHT", SWIG_FromInt((int)wxLB_RIGHT)); | |
33350 | PyDict_SetItemString(d,"LB_ALIGN_MASK", SWIG_FromInt((int)wxLB_ALIGN_MASK)); | |
d14a1e28 RD |
33351 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGED)); |
33352 | PyDict_SetItemString(d, "wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING", PyInt_FromLong(wxEVT_COMMAND_LISTBOOK_PAGE_CHANGING)); | |
15afbcd0 RD |
33353 | PyDict_SetItemString(d,"TOOL_STYLE_BUTTON", SWIG_FromInt((int)wxTOOL_STYLE_BUTTON)); |
33354 | PyDict_SetItemString(d,"TOOL_STYLE_SEPARATOR", SWIG_FromInt((int)wxTOOL_STYLE_SEPARATOR)); | |
33355 | PyDict_SetItemString(d,"TOOL_STYLE_CONTROL", SWIG_FromInt((int)wxTOOL_STYLE_CONTROL)); | |
33356 | PyDict_SetItemString(d,"TB_HORIZONTAL", SWIG_FromInt((int)wxTB_HORIZONTAL)); | |
33357 | PyDict_SetItemString(d,"TB_VERTICAL", SWIG_FromInt((int)wxTB_VERTICAL)); | |
33358 | PyDict_SetItemString(d,"TB_3DBUTTONS", SWIG_FromInt((int)wxTB_3DBUTTONS)); | |
33359 | PyDict_SetItemString(d,"TB_FLAT", SWIG_FromInt((int)wxTB_FLAT)); | |
33360 | PyDict_SetItemString(d,"TB_DOCKABLE", SWIG_FromInt((int)wxTB_DOCKABLE)); | |
33361 | PyDict_SetItemString(d,"TB_NOICONS", SWIG_FromInt((int)wxTB_NOICONS)); | |
33362 | PyDict_SetItemString(d,"TB_TEXT", SWIG_FromInt((int)wxTB_TEXT)); | |
33363 | PyDict_SetItemString(d,"TB_NODIVIDER", SWIG_FromInt((int)wxTB_NODIVIDER)); | |
33364 | PyDict_SetItemString(d,"TB_NOALIGN", SWIG_FromInt((int)wxTB_NOALIGN)); | |
33365 | PyDict_SetItemString(d,"TB_HORZ_LAYOUT", SWIG_FromInt((int)wxTB_HORZ_LAYOUT)); | |
33366 | PyDict_SetItemString(d,"TB_HORZ_TEXT", SWIG_FromInt((int)wxTB_HORZ_TEXT)); | |
b2dc1044 | 33367 | SWIG_addvarlink(SWIG_globals,(char*)"ListCtrlNameStr",_wrap_ListCtrlNameStr_get, _wrap_ListCtrlNameStr_set); |
15afbcd0 RD |
33368 | PyDict_SetItemString(d,"LC_VRULES", SWIG_FromInt((int)wxLC_VRULES)); |
33369 | PyDict_SetItemString(d,"LC_HRULES", SWIG_FromInt((int)wxLC_HRULES)); | |
33370 | PyDict_SetItemString(d,"LC_ICON", SWIG_FromInt((int)wxLC_ICON)); | |
33371 | PyDict_SetItemString(d,"LC_SMALL_ICON", SWIG_FromInt((int)wxLC_SMALL_ICON)); | |
33372 | PyDict_SetItemString(d,"LC_LIST", SWIG_FromInt((int)wxLC_LIST)); | |
33373 | PyDict_SetItemString(d,"LC_REPORT", SWIG_FromInt((int)wxLC_REPORT)); | |
33374 | PyDict_SetItemString(d,"LC_ALIGN_TOP", SWIG_FromInt((int)wxLC_ALIGN_TOP)); | |
33375 | PyDict_SetItemString(d,"LC_ALIGN_LEFT", SWIG_FromInt((int)wxLC_ALIGN_LEFT)); | |
33376 | PyDict_SetItemString(d,"LC_AUTOARRANGE", SWIG_FromInt((int)wxLC_AUTOARRANGE)); | |
33377 | PyDict_SetItemString(d,"LC_VIRTUAL", SWIG_FromInt((int)wxLC_VIRTUAL)); | |
33378 | PyDict_SetItemString(d,"LC_EDIT_LABELS", SWIG_FromInt((int)wxLC_EDIT_LABELS)); | |
33379 | PyDict_SetItemString(d,"LC_NO_HEADER", SWIG_FromInt((int)wxLC_NO_HEADER)); | |
33380 | PyDict_SetItemString(d,"LC_NO_SORT_HEADER", SWIG_FromInt((int)wxLC_NO_SORT_HEADER)); | |
33381 | PyDict_SetItemString(d,"LC_SINGLE_SEL", SWIG_FromInt((int)wxLC_SINGLE_SEL)); | |
33382 | PyDict_SetItemString(d,"LC_SORT_ASCENDING", SWIG_FromInt((int)wxLC_SORT_ASCENDING)); | |
33383 | PyDict_SetItemString(d,"LC_SORT_DESCENDING", SWIG_FromInt((int)wxLC_SORT_DESCENDING)); | |
33384 | PyDict_SetItemString(d,"LC_MASK_TYPE", SWIG_FromInt((int)wxLC_MASK_TYPE)); | |
33385 | PyDict_SetItemString(d,"LC_MASK_ALIGN", SWIG_FromInt((int)wxLC_MASK_ALIGN)); | |
33386 | PyDict_SetItemString(d,"LC_MASK_SORT", SWIG_FromInt((int)wxLC_MASK_SORT)); | |
33387 | PyDict_SetItemString(d,"LIST_MASK_STATE", SWIG_FromInt((int)wxLIST_MASK_STATE)); | |
33388 | PyDict_SetItemString(d,"LIST_MASK_TEXT", SWIG_FromInt((int)wxLIST_MASK_TEXT)); | |
33389 | PyDict_SetItemString(d,"LIST_MASK_IMAGE", SWIG_FromInt((int)wxLIST_MASK_IMAGE)); | |
33390 | PyDict_SetItemString(d,"LIST_MASK_DATA", SWIG_FromInt((int)wxLIST_MASK_DATA)); | |
33391 | PyDict_SetItemString(d,"LIST_SET_ITEM", SWIG_FromInt((int)wxLIST_SET_ITEM)); | |
33392 | PyDict_SetItemString(d,"LIST_MASK_WIDTH", SWIG_FromInt((int)wxLIST_MASK_WIDTH)); | |
33393 | PyDict_SetItemString(d,"LIST_MASK_FORMAT", SWIG_FromInt((int)wxLIST_MASK_FORMAT)); | |
33394 | PyDict_SetItemString(d,"LIST_STATE_DONTCARE", SWIG_FromInt((int)wxLIST_STATE_DONTCARE)); | |
33395 | PyDict_SetItemString(d,"LIST_STATE_DROPHILITED", SWIG_FromInt((int)wxLIST_STATE_DROPHILITED)); | |
33396 | PyDict_SetItemString(d,"LIST_STATE_FOCUSED", SWIG_FromInt((int)wxLIST_STATE_FOCUSED)); | |
33397 | PyDict_SetItemString(d,"LIST_STATE_SELECTED", SWIG_FromInt((int)wxLIST_STATE_SELECTED)); | |
33398 | PyDict_SetItemString(d,"LIST_STATE_CUT", SWIG_FromInt((int)wxLIST_STATE_CUT)); | |
33399 | PyDict_SetItemString(d,"LIST_STATE_DISABLED", SWIG_FromInt((int)wxLIST_STATE_DISABLED)); | |
33400 | PyDict_SetItemString(d,"LIST_STATE_FILTERED", SWIG_FromInt((int)wxLIST_STATE_FILTERED)); | |
33401 | PyDict_SetItemString(d,"LIST_STATE_INUSE", SWIG_FromInt((int)wxLIST_STATE_INUSE)); | |
33402 | PyDict_SetItemString(d,"LIST_STATE_PICKED", SWIG_FromInt((int)wxLIST_STATE_PICKED)); | |
33403 | PyDict_SetItemString(d,"LIST_STATE_SOURCE", SWIG_FromInt((int)wxLIST_STATE_SOURCE)); | |
33404 | PyDict_SetItemString(d,"LIST_HITTEST_ABOVE", SWIG_FromInt((int)wxLIST_HITTEST_ABOVE)); | |
33405 | PyDict_SetItemString(d,"LIST_HITTEST_BELOW", SWIG_FromInt((int)wxLIST_HITTEST_BELOW)); | |
33406 | PyDict_SetItemString(d,"LIST_HITTEST_NOWHERE", SWIG_FromInt((int)wxLIST_HITTEST_NOWHERE)); | |
33407 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMICON)); | |
33408 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMLABEL)); | |
33409 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMRIGHT)); | |
33410 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxLIST_HITTEST_ONITEMSTATEICON)); | |
33411 | PyDict_SetItemString(d,"LIST_HITTEST_TOLEFT", SWIG_FromInt((int)wxLIST_HITTEST_TOLEFT)); | |
33412 | PyDict_SetItemString(d,"LIST_HITTEST_TORIGHT", SWIG_FromInt((int)wxLIST_HITTEST_TORIGHT)); | |
33413 | PyDict_SetItemString(d,"LIST_HITTEST_ONITEM", SWIG_FromInt((int)wxLIST_HITTEST_ONITEM)); | |
33414 | PyDict_SetItemString(d,"LIST_NEXT_ABOVE", SWIG_FromInt((int)wxLIST_NEXT_ABOVE)); | |
33415 | PyDict_SetItemString(d,"LIST_NEXT_ALL", SWIG_FromInt((int)wxLIST_NEXT_ALL)); | |
33416 | PyDict_SetItemString(d,"LIST_NEXT_BELOW", SWIG_FromInt((int)wxLIST_NEXT_BELOW)); | |
33417 | PyDict_SetItemString(d,"LIST_NEXT_LEFT", SWIG_FromInt((int)wxLIST_NEXT_LEFT)); | |
33418 | PyDict_SetItemString(d,"LIST_NEXT_RIGHT", SWIG_FromInt((int)wxLIST_NEXT_RIGHT)); | |
33419 | PyDict_SetItemString(d,"LIST_ALIGN_DEFAULT", SWIG_FromInt((int)wxLIST_ALIGN_DEFAULT)); | |
33420 | PyDict_SetItemString(d,"LIST_ALIGN_LEFT", SWIG_FromInt((int)wxLIST_ALIGN_LEFT)); | |
33421 | PyDict_SetItemString(d,"LIST_ALIGN_TOP", SWIG_FromInt((int)wxLIST_ALIGN_TOP)); | |
33422 | PyDict_SetItemString(d,"LIST_ALIGN_SNAP_TO_GRID", SWIG_FromInt((int)wxLIST_ALIGN_SNAP_TO_GRID)); | |
33423 | PyDict_SetItemString(d,"LIST_FORMAT_LEFT", SWIG_FromInt((int)wxLIST_FORMAT_LEFT)); | |
33424 | PyDict_SetItemString(d,"LIST_FORMAT_RIGHT", SWIG_FromInt((int)wxLIST_FORMAT_RIGHT)); | |
33425 | PyDict_SetItemString(d,"LIST_FORMAT_CENTRE", SWIG_FromInt((int)wxLIST_FORMAT_CENTRE)); | |
33426 | PyDict_SetItemString(d,"LIST_FORMAT_CENTER", SWIG_FromInt((int)wxLIST_FORMAT_CENTER)); | |
33427 | PyDict_SetItemString(d,"LIST_AUTOSIZE", SWIG_FromInt((int)wxLIST_AUTOSIZE)); | |
33428 | PyDict_SetItemString(d,"LIST_AUTOSIZE_USEHEADER", SWIG_FromInt((int)wxLIST_AUTOSIZE_USEHEADER)); | |
33429 | PyDict_SetItemString(d,"LIST_RECT_BOUNDS", SWIG_FromInt((int)wxLIST_RECT_BOUNDS)); | |
33430 | PyDict_SetItemString(d,"LIST_RECT_ICON", SWIG_FromInt((int)wxLIST_RECT_ICON)); | |
33431 | PyDict_SetItemString(d,"LIST_RECT_LABEL", SWIG_FromInt((int)wxLIST_RECT_LABEL)); | |
33432 | PyDict_SetItemString(d,"LIST_FIND_UP", SWIG_FromInt((int)wxLIST_FIND_UP)); | |
33433 | PyDict_SetItemString(d,"LIST_FIND_DOWN", SWIG_FromInt((int)wxLIST_FIND_DOWN)); | |
33434 | PyDict_SetItemString(d,"LIST_FIND_LEFT", SWIG_FromInt((int)wxLIST_FIND_LEFT)); | |
33435 | PyDict_SetItemString(d,"LIST_FIND_RIGHT", SWIG_FromInt((int)wxLIST_FIND_RIGHT)); | |
d14a1e28 RD |
33436 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_DRAG)); |
33437 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_RDRAG)); | |
33438 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_BEGIN_LABEL_EDIT)); | |
33439 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_LIST_END_LABEL_EDIT)); | |
33440 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ITEM)); | |
33441 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS", PyInt_FromLong(wxEVT_COMMAND_LIST_DELETE_ALL_ITEMS)); | |
33442 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_GET_INFO)); | |
33443 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_LIST_SET_INFO)); | |
33444 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_SELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_SELECTED)); | |
33445 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_DESELECTED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_DESELECTED)); | |
33446 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_LIST_KEY_DOWN)); | |
33447 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_INSERT_ITEM", PyInt_FromLong(wxEVT_COMMAND_LIST_INSERT_ITEM)); | |
33448 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_CLICK)); | |
33449 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_RIGHT_CLICK)); | |
33450 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_MIDDLE_CLICK)); | |
33451 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_ACTIVATED)); | |
33452 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_CACHE_HINT", PyInt_FromLong(wxEVT_COMMAND_LIST_CACHE_HINT)); | |
33453 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_RIGHT_CLICK)); | |
33454 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_BEGIN_DRAG)); | |
33455 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_DRAGGING", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_DRAGGING)); | |
33456 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_COL_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_LIST_COL_END_DRAG)); | |
33457 | PyDict_SetItemString(d, "wxEVT_COMMAND_LIST_ITEM_FOCUSED", PyInt_FromLong(wxEVT_COMMAND_LIST_ITEM_FOCUSED)); | |
33458 | ||
33459 | // Map renamed classes back to their common name for OOR | |
33460 | wxPyPtrTypeMap_Add("wxListCtrl", "wxPyListCtrl"); | |
33461 | ||
b2dc1044 | 33462 | SWIG_addvarlink(SWIG_globals,(char*)"TreeCtrlNameStr",_wrap_TreeCtrlNameStr_get, _wrap_TreeCtrlNameStr_set); |
15afbcd0 RD |
33463 | PyDict_SetItemString(d,"TR_NO_BUTTONS", SWIG_FromInt((int)wxTR_NO_BUTTONS)); |
33464 | PyDict_SetItemString(d,"TR_HAS_BUTTONS", SWIG_FromInt((int)wxTR_HAS_BUTTONS)); | |
33465 | PyDict_SetItemString(d,"TR_NO_LINES", SWIG_FromInt((int)wxTR_NO_LINES)); | |
33466 | PyDict_SetItemString(d,"TR_LINES_AT_ROOT", SWIG_FromInt((int)wxTR_LINES_AT_ROOT)); | |
33467 | PyDict_SetItemString(d,"TR_SINGLE", SWIG_FromInt((int)wxTR_SINGLE)); | |
33468 | PyDict_SetItemString(d,"TR_MULTIPLE", SWIG_FromInt((int)wxTR_MULTIPLE)); | |
33469 | PyDict_SetItemString(d,"TR_EXTENDED", SWIG_FromInt((int)wxTR_EXTENDED)); | |
33470 | PyDict_SetItemString(d,"TR_HAS_VARIABLE_ROW_HEIGHT", SWIG_FromInt((int)wxTR_HAS_VARIABLE_ROW_HEIGHT)); | |
33471 | PyDict_SetItemString(d,"TR_EDIT_LABELS", SWIG_FromInt((int)wxTR_EDIT_LABELS)); | |
33472 | PyDict_SetItemString(d,"TR_HIDE_ROOT", SWIG_FromInt((int)wxTR_HIDE_ROOT)); | |
33473 | PyDict_SetItemString(d,"TR_ROW_LINES", SWIG_FromInt((int)wxTR_ROW_LINES)); | |
33474 | PyDict_SetItemString(d,"TR_FULL_ROW_HIGHLIGHT", SWIG_FromInt((int)wxTR_FULL_ROW_HIGHLIGHT)); | |
33475 | PyDict_SetItemString(d,"TR_DEFAULT_STYLE", SWIG_FromInt((int)wxTR_DEFAULT_STYLE)); | |
33476 | PyDict_SetItemString(d,"TR_TWIST_BUTTONS", SWIG_FromInt((int)wxTR_TWIST_BUTTONS)); | |
33477 | PyDict_SetItemString(d,"TR_MAC_BUTTONS", SWIG_FromInt((int)wxTR_MAC_BUTTONS)); | |
33478 | PyDict_SetItemString(d,"TR_AQUA_BUTTONS", SWIG_FromInt((int)wxTR_AQUA_BUTTONS)); | |
33479 | PyDict_SetItemString(d,"TreeItemIcon_Normal", SWIG_FromInt((int)wxTreeItemIcon_Normal)); | |
33480 | PyDict_SetItemString(d,"TreeItemIcon_Selected", SWIG_FromInt((int)wxTreeItemIcon_Selected)); | |
33481 | PyDict_SetItemString(d,"TreeItemIcon_Expanded", SWIG_FromInt((int)wxTreeItemIcon_Expanded)); | |
33482 | PyDict_SetItemString(d,"TreeItemIcon_SelectedExpanded", SWIG_FromInt((int)wxTreeItemIcon_SelectedExpanded)); | |
33483 | PyDict_SetItemString(d,"TreeItemIcon_Max", SWIG_FromInt((int)wxTreeItemIcon_Max)); | |
33484 | PyDict_SetItemString(d,"TREE_HITTEST_ABOVE", SWIG_FromInt((int)wxTREE_HITTEST_ABOVE)); | |
33485 | PyDict_SetItemString(d,"TREE_HITTEST_BELOW", SWIG_FromInt((int)wxTREE_HITTEST_BELOW)); | |
33486 | PyDict_SetItemString(d,"TREE_HITTEST_NOWHERE", SWIG_FromInt((int)wxTREE_HITTEST_NOWHERE)); | |
33487 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMBUTTON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMBUTTON)); | |
33488 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMICON)); | |
33489 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMINDENT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMINDENT)); | |
33490 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLABEL", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLABEL)); | |
33491 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMRIGHT", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMRIGHT)); | |
33492 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMSTATEICON", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMSTATEICON)); | |
33493 | PyDict_SetItemString(d,"TREE_HITTEST_TOLEFT", SWIG_FromInt((int)wxTREE_HITTEST_TOLEFT)); | |
33494 | PyDict_SetItemString(d,"TREE_HITTEST_TORIGHT", SWIG_FromInt((int)wxTREE_HITTEST_TORIGHT)); | |
33495 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMUPPERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMUPPERPART)); | |
33496 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEMLOWERPART", SWIG_FromInt((int)wxTREE_HITTEST_ONITEMLOWERPART)); | |
33497 | PyDict_SetItemString(d,"TREE_HITTEST_ONITEM", SWIG_FromInt((int)wxTREE_HITTEST_ONITEM)); | |
d14a1e28 RD |
33498 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_DRAG)); |
33499 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_RDRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_RDRAG)); | |
33500 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_BEGIN_LABEL_EDIT)); | |
33501 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_LABEL_EDIT", PyInt_FromLong(wxEVT_COMMAND_TREE_END_LABEL_EDIT)); | |
33502 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_DELETE_ITEM", PyInt_FromLong(wxEVT_COMMAND_TREE_DELETE_ITEM)); | |
33503 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_GET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_GET_INFO)); | |
33504 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SET_INFO", PyInt_FromLong(wxEVT_COMMAND_TREE_SET_INFO)); | |
33505 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDED)); | |
33506 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_EXPANDING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_EXPANDING)); | |
33507 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSED)); | |
33508 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_COLLAPSING", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_COLLAPSING)); | |
33509 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGED", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGED)); | |
33510 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_SEL_CHANGING", PyInt_FromLong(wxEVT_COMMAND_TREE_SEL_CHANGING)); | |
33511 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_KEY_DOWN", PyInt_FromLong(wxEVT_COMMAND_TREE_KEY_DOWN)); | |
33512 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_ACTIVATED", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_ACTIVATED)); | |
33513 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_RIGHT_CLICK)); | |
33514 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_MIDDLE_CLICK)); | |
33515 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_END_DRAG", PyInt_FromLong(wxEVT_COMMAND_TREE_END_DRAG)); | |
33516 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK", PyInt_FromLong(wxEVT_COMMAND_TREE_STATE_IMAGE_CLICK)); | |
c9c7117a | 33517 | PyDict_SetItemString(d, "wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP", PyInt_FromLong(wxEVT_COMMAND_TREE_ITEM_GETTOOLTIP)); |
d14a1e28 RD |
33518 | |
33519 | // Map renamed classes back to their common name for OOR | |
33520 | wxPyPtrTypeMap_Add("wxTreeItemData", "wxPyTreeItemData"); | |
33521 | wxPyPtrTypeMap_Add("wxTreeCtrl", "wxPyTreeCtrl"); | |
33522 | ||
b2dc1044 | 33523 | SWIG_addvarlink(SWIG_globals,(char*)"DirDialogDefaultFolderStr",_wrap_DirDialogDefaultFolderStr_get, _wrap_DirDialogDefaultFolderStr_set); |
15afbcd0 RD |
33524 | PyDict_SetItemString(d,"DIRCTRL_DIR_ONLY", SWIG_FromInt((int)wxDIRCTRL_DIR_ONLY)); |
33525 | PyDict_SetItemString(d,"DIRCTRL_SELECT_FIRST", SWIG_FromInt((int)wxDIRCTRL_SELECT_FIRST)); | |
33526 | PyDict_SetItemString(d,"DIRCTRL_SHOW_FILTERS", SWIG_FromInt((int)wxDIRCTRL_SHOW_FILTERS)); | |
33527 | PyDict_SetItemString(d,"DIRCTRL_3D_INTERNAL", SWIG_FromInt((int)wxDIRCTRL_3D_INTERNAL)); | |
33528 | PyDict_SetItemString(d,"DIRCTRL_EDIT_LABELS", SWIG_FromInt((int)wxDIRCTRL_EDIT_LABELS)); | |
33529 | PyDict_SetItemString(d,"FRAME_EX_CONTEXTHELP", SWIG_FromInt((int)wxFRAME_EX_CONTEXTHELP)); | |
33530 | PyDict_SetItemString(d,"DIALOG_EX_CONTEXTHELP", SWIG_FromInt((int)wxDIALOG_EX_CONTEXTHELP)); | |
d14a1e28 RD |
33531 | PyDict_SetItemString(d, "wxEVT_HELP", PyInt_FromLong(wxEVT_HELP)); |
33532 | PyDict_SetItemString(d, "wxEVT_DETAILED_HELP", PyInt_FromLong(wxEVT_DETAILED_HELP)); | |
e811c8ce RD |
33533 | |
33534 | wxPyPtrTypeMap_Add("wxDragImage", "wxGenericDragImage"); | |
33535 | ||
d14a1e28 RD |
33536 | } |
33537 |